query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Autogenerated method stub
@Override public void buildMethods(JDefinedClass cls) { }
{ "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 buildDefaultMethods(JDefinedClass cls) { }
{ "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 extends_(JDefinedClass cls) { }
{ "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 implements_(JDefinedClass cls) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
method about amount of legs
void sitOn();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumOfLegs() {\n return numOfLegs;\n }", "int getLegs();", "public int getLegs() {\n return legs;\n }", "private int countGrasses()//issues...see comment below in countTrees()\n {\n int grasses = 0;\n Field field = getField();\n Iterator<Location> it;\n List<Object> plantList = new List<>();\n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Grass) {\n grasses++;\n }\n }\n return grasses;\n }", "int nbLignes();", "public int numberOfKnightsIn() { // numero di cavalieri a tavola\n \n return numeroCompl;\n }", "void setLegs(int legs);", "public int countBadLegs() {\n int badLegs = 0;\n\n for (int i = 0; i < locations(); i++) {\n badLegs += (locationIsLeg(i) && isLocationBad(i)) ? 1 : 0;\n }\n\n return badLegs;\n }", "int getTotalLeased();", "public int countOfGenerations ();", "int getPartitionLagsCount();", "public int numLeaves() {\n return numLeaves(root);//invokes helper method\n }", "int getWayCount();", "int getAchievementsCount();", "int getLength() {\n return levels.length;\n }", "public int get_numLostBags(){\r\n return num_lost_bags;\r\n }", "int getNumberOfInfantry();", "int getReaultCount();", "public int countLevels() {\n return levels.size();\n }", "public int my_leaf_count();", "public int passengers(){\n return currentCapacity(); \n }", "public int countLeaves(){\n return countLeaves(root);\n }", "@Override\n\tpublic double mangeLegumes() {\n\t\treturn quantiteLegumes*this.getPoids();\n\t}", "public int rodCount ();", "int getPointsCount();", "public int totalNum(){\n return wp.size();\n }", "public int lireCount() {\n\t\treturn cpt;\n\t}", "public Integer countGoals();", "int getBlockNumsCount();", "int getBlockNumsCount();", "int countFeatures();", "int countFeatures();", "public double getHpns(){\r\n switch(this.grlType){\r\n case \"The Choosy\":\r\n return this.chGrlfrnd.iLevel;\r\n case \"The Normal\":\r\n return this.nGrlfrnd.iLevel;\r\n case \"The Desperate\":\r\n return this.dsGrlfrnd.iLevel;\r\n \r\n }\r\n return 0;\r\n }", "int getAchieveInfoCount();", "private void applyLvlUpCost() {\n }", "public int howManyLevels()\r\n\t{\r\n\t\t// Formula is the ceiling of the log base 2 of (the current number of nodes + 1)\r\n\t\treturn (int) Math.ceil(Math.log(getCounter() + 1) / Math.log(2));\r\n\t}", "int getLettersCount();", "int sizeOfLanesArray();", "public int numTrees () { throw new RuntimeException(); }", "int getQuestCount();", "public int numberOfOccorrence();", "int getNumberOfArtillery();", "public int getTotRuptures();", "int getBlockLocationsCount();", "public int totalWordsTree() {\r\n\t\treturn count;\r\n\t}", "public void gagne()\r\n\t{\r\n\t\tthis.nbVictoires++;\r\n\t}", "long getLaenge() {\n long leange = 0;\n for (Song song : songlist) {\n if (song != null)\n leange += song.getLeange();\n }\n return leange;\n }", "public int getHitsLeft(){\n return hitsLeft;\n }", "int getBlockNumbersCount();", "public static int getLevelCount() {\n return levels.size();\n }", "int getGroupCount();", "public int numberOfTires() {\n int tires = 4;\n return tires;\n }", "private static int numLines() {\n\t\tif(subway != null)\n\t\t\treturn subway[0].length;\n\t\treturn 0;\n\t}", "int getFeaturesCount();", "int NoOfNodes() {\r\n return noOfNodes;\r\n }", "public int numberOfHotels() {\r\n \tint anzahlHotel=hotelDAO.getHotelList().size();\r\n \treturn anzahlHotel;\r\n }", "public int getNumMissiles(){\n return this.nunMissiles;\n }", "public double klSize() {\n\t\tif (klSize_ == 0) {\n\t\t\tdouble klSum = 0;\n\t\t\tint size = size();\n\t\t\tif (size <= 1)\n\t\t\t\treturn 0;\n\t\t\tdouble uniform = 1.0 / size;\n\t\t\tfor (Double prob : itemProbs_.values()) {\n\t\t\t\tklSum += klDivergence(prob, uniform);\n\t\t\t}\n\t\t\tdouble logBase = Math.log(size);\n\t\t\tklSize_ = Math.max(size * (1 - klSum / logBase), 1);\n\t\t}\n\t\treturn klSize_;\n\t}", "public int getLoGrades() {\n return loGrades;\n }", "public int getNumGruppoPacchetti();", "public int getProblemCount();", "int getAoisCount();", "public int size() {\r\n\t\treturn this.taille;\r\n\t}", "int countPowertypeRanges();", "public int calculerKgsNourritureParJour(){\r\n\t\treturn noms.size() * 10;\r\n\t}", "protected double Hops() {\r\n\t\tint hops = 0;\r\n\t\tIterator<Flow> f = this.flows.iterator();\r\n\t\twhile (f.hasNext()) {\r\n\t\t\thops += f.next().getLinks().size();\r\n\t\t}\r\n\t\treturn hops;\r\n\t}", "int getBattlesLost();", "int getFaintedPokemonCount();", "public int losses(String team) {\n return getTeamByName(team).losses;\r\n }", "public int GetNPoints();", "public int length() {\n \t\tif (-1 == n_points) setupForDisplay();\n \t\treturn n_points;\n \t}", "int getFeatureCount();", "@Override\n\tpublic int kyunggicount() throws Exception {\n\t\treturn dao.kyunggicount();\n\t}", "public int getHats() {\n return totalHats;\n }", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "int getTrucksCount();", "void computeLevelCount() {\r\n Hierarchy[] hiers = axis.getHierarchies();\r\n int hierarchyCount = axis.getHierarchies().length;\r\n levelCount = new int[hierarchyCount];\r\n skipAllMember = new boolean[hierarchyCount];\r\n for (int i = 0; i < hiers.length; i++) {\r\n levelCount[i] = Integer.MIN_VALUE;\r\n skipAllMember[i] = hiers[i].hasAll();\r\n }\r\n\r\n Iterator it = axis.getPositions().iterator();\r\n while (it.hasNext()) {\r\n Position p = (Position) it.next();\r\n Member[] members = p.getMembers();\r\n for (int i = 0; i < members.length; i++) {\r\n int count = members[i].getRootDistance() + 1;\r\n levelCount[i] = Math.max(levelCount[i], count);\r\n if (members[i].isAll())\r\n skipAllMember[i] = false;\r\n }\r\n }\r\n\r\n // if the ALL member is not on the axis, we will not add it\r\n for (int i = 0; i < hierarchyCount; i++) {\r\n if (skipAllMember[i])\r\n levelCount[i] -= 1;\r\n }\r\n\r\n // the number of members per position is the sum of all deltas\r\n totalLevelCount = 0;\r\n for (int i = 0; i < hierarchyCount; i++)\r\n totalLevelCount += levelCount[i];\r\n }", "public int getFeaturesCount();", "public int getNumFaceDown(){\n int faceDown = 0;\n for(int i = 0; i < pilePlace; i++){\n if(pile[i].getFace() == \"Down\"){\n faceDown++;\n }\n }\n return faceDown;\n }", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "int getScoresCount();", "int getNumberOfStonesLeftToPlace();", "public int losses(String team) {\n\n return 0;\n }", "long countPostings() {\n \tlong result = 0;\n \tfor (Layer layer : layers.values())\n \t\tresult += layer.size();\n \treturn result;\n }", "public Counter getNumberOfLives() {\r\n return this.numberOfLives;\r\n }", "public int getGears();", "int getLocationsCount();", "int getReservePokemonCount();", "private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\n }", "int getEducationsCount();", "@java.lang.Override\n public int getGoalsCount() {\n return goals_.size();\n }", "public int antalSager() {\n int antalSager = 0;\n for (int i = 0; i < sager.size(); i++) {\n for (int j = 0; j < sager.get(i).size(); j++) {\n antalSager += 1;\n }\n }\n return antalSager;\n }", "public int getLivesRemaining();", "public int get_count();", "static int size_of_lhld(String passed){\n\t\treturn 3;\n\t}", "public static int getCount()\n\t{\n\t\treturn projectileCount;\n\t}", "public int getCantidadRobots();", "org.apache.xmlbeans.XmlInt xgetLegs();", "int getInCount();" ]
[ "0.7839254", "0.78056663", "0.7633847", "0.6770246", "0.67262185", "0.65710646", "0.65530545", "0.6534757", "0.6520739", "0.6507943", "0.64968926", "0.63678336", "0.6367462", "0.63660765", "0.63602597", "0.6322599", "0.631815", "0.6288294", "0.6264221", "0.624476", "0.6229785", "0.6222435", "0.6215063", "0.6212886", "0.62084764", "0.6206232", "0.6197424", "0.6191637", "0.6168988", "0.6168988", "0.6161951", "0.6161951", "0.6152237", "0.6147411", "0.6139899", "0.6139607", "0.61332256", "0.6104884", "0.6103216", "0.60932124", "0.6091302", "0.608028", "0.6072344", "0.60689354", "0.60678875", "0.6067507", "0.6066066", "0.60607654", "0.6046531", "0.60463643", "0.6041614", "0.6019179", "0.601527", "0.6014025", "0.60139143", "0.6010899", "0.6008778", "0.6006737", "0.59971076", "0.5996572", "0.5991745", "0.5990732", "0.59867877", "0.5969176", "0.59684145", "0.5962689", "0.5959976", "0.59560096", "0.5947342", "0.594544", "0.59452134", "0.5944774", "0.5931097", "0.5925119", "0.59198195", "0.59198195", "0.59198195", "0.5917998", "0.5914424", "0.59058094", "0.59003556", "0.5899551", "0.5893452", "0.5892828", "0.5882026", "0.58816904", "0.58812785", "0.58811367", "0.5880341", "0.587739", "0.58759683", "0.5874764", "0.5868516", "0.5867863", "0.5867278", "0.5862843", "0.58627367", "0.58607274", "0.58599627", "0.5847563", "0.583746" ]
0.0
-1
Gets the value of the taille property.
public float getTaille() { return taille; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getTaille() {\n return taille;\n }", "public int getTaille() {\n return taille;\n }", "public int getTaille(){\r\n return this.taille;\r\n }", "public int obtenirTaille()\n\t{\n\t\treturn this.taille;\n\t}", "public T getTail() {\n\t\treturn tail.value;\n\t}", "public void setTaille(long taille) {\n this.taille = taille;\n }", "public int getTaillePoule (){\n\t\treturn 3;\n\t}", "public void setTaille(float value) {\r\n this.taille = value;\r\n }", "@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}", "public NodeD getTail() {\n return tail;\n }", "public Node getTail() {\n\t\treturn tail;\n\t}", "public Node getTail() {\n\t\treturn tail;\n\t}", "public int taille() {\n\t\treturn getSize();\n\t}", "public Column getTail() {\n return tail != null ? tail : this;\n }", "public E getTail() {\n if (isCurrent() && tail != null) { return tail.getData(); }\n else { throw new IllegalStateException(\"There is no tail element.\"); }\n }", "public DoublyLinkedListNode<T> getTail() {\n // DO NOT MODIFY!\n return tail;\n }", "public Point getTailLocation ()\r\n {\r\n if (tailLocation == null) {\r\n computeLocations();\r\n }\r\n\r\n return tailLocation;\r\n }", "public int getTailleGrille() {\n\t\treturn this.tailleGrille;\r\n\t}", "public Square getTail() {\n return this.tail;\n }", "public Car getTail(){\n\t\treturn cars.get(cars.size()-1);\n\t}", "public synchronized ListNode getTail() {\n\t\treturn tail;\n\t}", "public ListNode getTail()\n {\n return tail;\n }", "public int size() {\r\n\t\treturn this.taille;\r\n\t}", "public int getBodyTemperature() {\n return this.bodyTemperature;\n }", "public Shape getTailShape()\n {\n // If already set, just return\n if (_tailShape!=null) return _tailShape;\n\n // Create/configure/set TailShape\n Path2D path = new Path2D();\n path.moveTo(0, 0);\n path.lineTo(16, 6);\n path.lineTo(0, 12);\n path.lineTo(5, 6);\n path.close();\n return _tailShape = path;\n }", "public LinkedNode tail() {\n return tail;\n }", "public String tail() {\n if (isEmpty() == false) {\n return head.getData();\n } else {\n return null;\n }\n }", "public java.lang.Integer getLeaserule() {\n\treturn leaserule;\n}", "@Override\n public String tail() {\n String str = null;\n if (!isEmpty()) {\n str = tail.getValue();\n }\n return str;\n }", "public\n String getLf()\n {\n return lf;\n }", "public Node getTailNode();", "float getLte();", "public boolean isTail() {\n return tail;\n }", "public int getLE() {\n return this.le;\n }", "public final int getLE() {\n\treturn le;\n }", "public IntegerProperty getTemp() {\n\t\treturn temperature;\n\t}", "public int getLattine() {\n\t\treturn nLattine;\n\t}", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineBlur() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineBlur());\n }", "public float getTiltY() {\n return pm.pen.getLevelValue(PLevel.Type.TILT_Y);\n }", "public IntVector tail () {\n return tail;\n }", "public Type show_tail() {\n \t \n \t //just return element in tail\n\t return(len != 1 ? tail.show_element(): null);\n }", "public Anneau (int taille){\r\n this.taille=taille;\r\n }", "@Override\n public int tailCount() {\n return tails.size();\n }", "public double getAltitude() {\n return selv;\n }", "public String getLnt() {\n return lnt;\n }", "public String getTlf(){\n return tlf;\n }", "public double getMilesOfTrail() {\n\t\treturn milesOfTrail;\n\t}", "public CharSequence getTrailing() {\n\t\treturn trailing;\n\t}", "public double getDeltaT() {\n\t\tif (deltatIsValid) {\n\t\t\treturn this.deltaT;\n\t\t}\n\t\tthis.deltaT = calc_deltaT(this.getJulDay());\n\t\tdeltatIsValid = true;\n\t\treturn this.deltaT;\n\t}", "public BigDecimal getTermlvl() {\r\n return (BigDecimal) getAttributeInternal(TERMLVL);\r\n }", "public Point2D.Double getTLPoint(){\n\t\treturn new Point2D.Double(xCoord - width/2, yCoord - height/2);\n\t}", "public int getAltitude() {\n return altitude;\n }", "public ArrayList<Tayte> getTaytteet() {\r\n\t\treturn this.taytteet;\r\n\t}", "public int getHeadTails() \n {\n return numHeadTails; \n }", "public DurationFactor getTupletFactor ()\r\n {\r\n return tupletFactor;\r\n }", "public int getWater() {\n\t\treturn water.getValue();\n\t}", "public int getAltitude() {\n return altitude_;\n }", "public long getAltitude() {\n return altitude_;\n }", "public int getAltitude() {\n return altitude_;\n }", "public long getAltitude() {\n return altitude_;\n }", "public double getAltitude() {\n return altitude;\n }", "public double getAltitude() {\n return altitude;\n }", "public ObjectProperty<DrawingInfos> lastLineProperty() {\n return lastLine;\n }", "public Double getAltitude()\n\t{\n\t\treturn null;\n\t}", "public String getAltitudeRef()\n {\n return myAltitudeRef;\n }", "public double get(CANTalon talon) {\n\t\treturn talon.get();\n\t}", "public Property getLeafProperty() {\n Entity e = root;\n if (e == null) {\n if (parent != null) {\n e = parent.get(ContentType.EntityType, null);\n }\n }\n if (e == null) {\n return null;\n }\n if (isIndexSelector()) {\n return null;\n }\n Property prop = property;\n if (prop == null) {\n prop = e.getEntity().getEntityType().findProperty(tags);\n }\n return prop;\n }", "public int getDroneDelay()\r\n {\r\n return droneDelay;\r\n }", "public int getTwoTails() \n {\n return numTwoTails; \n }", "public double getTorqueFtLb() {\r\n return torqueFtLb;\r\n }", "@Basic @Raw @Immutable\n public double getMaxVelocity(){\n return this.maxVelocity = SPEED_OF_LIGHT;\n }", "@Nullable\n public DpProp getEnd() {\n if (mImpl.hasEnd()) {\n return DpProp.fromProto(mImpl.getEnd());\n } else {\n return null;\n }\n }", "@Override\n\tpublic Vector2 getLinearVelocity() {\n\t\treturn body.getLinearVelocity();\n\t}", "public Vector3f getLinearVelocity() {\r\n\t\treturn linearVelocity;\r\n\t}", "public double getL() {\n return l;\n }", "public int getTerminalExonLength() { \n\t\tfinal BEDentry te = getBEDentry().getBlockAtRelativePosition(-1); \n\t\treturn( te.getChromEnd() - te.getChromStart() ); \n\t}", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineMiterLimit() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineMiterLimit());\n }", "public String getLrry() {\n return lrry;\n }", "public Double getMaxAltitude() {\n return maxAltitude;\n }", "public double GetTonnage() {\n if( LotSize != CurLotSize ) {\n double TonsPerShot = Tonnage / (double) LotSize;\n return CommonTools.RoundFractionalTons( TonsPerShot * (double) CurLotSize );\n }\n return Tonnage;\n }", "public double getTip() {\r\n return tipCalculator.getCalculatedTip();\r\n }", "public Long getTesuryo05() {\r\n return tesuryo05;\r\n }", "public double getAntennaHeight()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "@Override\r\n\tpublic double getAltitude(){\r\n\t\treturn altitude;\r\n\t}", "public String getEnd() {\n\t\t\t\t\n\t\t\t\t\tString vS = \"NONE\";\n\t\t\t\t\tSystem.out.println(vS + \" l \" + length);\n\t\t\t\t\tif (length != 0) vS = tail.getPrev().getValue();\n\t\t\t\t\tSystem.out.println(vS + \" l2 \" + length);\n\t\t\t\treturn vS;\n\t\t\t\t}", "public float getTaux() {\r\n\treturn this.taux;\r\n}", "@Nullable\n public DpProp getBottom() {\n if (mImpl.hasBottom()) {\n return DpProp.fromProto(mImpl.getBottom());\n } else {\n return null;\n }\n }", "public boolean addTailor(Tailor tailor);", "public String back()\n {\n\treturn tail.value;\n }", "public static String getTrail() {\n\t\treturn trail.toString();\n\t}", "public double getLead(\n )\n {return lead;}", "public int getTip() {\n\t\treturn tip;\n\t}", "public synchronized double get() {\n return m_liftSpeed;\n }", "public double getMaxT() {\n return v[points_per_segment - 1];\n }", "public Place tail(){\n return places.get(places.size()-1);\n }", "public Bullet getBullet() {\r\n\t\treturn this.bullet;\r\n\t}", "public Long getTesuryo02() {\r\n return tesuryo02;\r\n }", "public String getTallaNbr() {\n return (String)getAttributeInternal(TALLANBR);\n }", "public double getLoa() {\n\t\treturn _tempNoTiceShipMessage.getLoa();\n\t}", "public int getTriage (){\r\n return triage;\r\n }" ]
[ "0.84617585", "0.837915", "0.7807006", "0.7663185", "0.7151307", "0.70313215", "0.6877997", "0.6848829", "0.6633604", "0.6622935", "0.6439738", "0.6439738", "0.6428844", "0.6386988", "0.63814217", "0.6349831", "0.63485324", "0.6332381", "0.63178766", "0.6192258", "0.5963693", "0.59625804", "0.58684", "0.58588946", "0.58187324", "0.57749856", "0.5757652", "0.5715897", "0.56878793", "0.56624883", "0.5641671", "0.56114143", "0.55931085", "0.5525269", "0.54784566", "0.54177636", "0.53726983", "0.5346316", "0.53283936", "0.53283256", "0.53168726", "0.53043777", "0.53001785", "0.52979815", "0.52974904", "0.5276334", "0.5250868", "0.5241504", "0.5217622", "0.5200692", "0.5192836", "0.5185909", "0.51844406", "0.5181244", "0.5179402", "0.5176878", "0.5175768", "0.51735735", "0.5172223", "0.5170473", "0.5155996", "0.5155996", "0.51552445", "0.514689", "0.5145506", "0.51386344", "0.5134444", "0.51322085", "0.5126581", "0.5126119", "0.51108676", "0.5105115", "0.5098738", "0.50965226", "0.5091291", "0.50909", "0.50852776", "0.50766885", "0.50762", "0.5068088", "0.5066087", "0.5059831", "0.50567025", "0.50374186", "0.5036105", "0.50357455", "0.5032528", "0.5029701", "0.5028176", "0.50253105", "0.5019769", "0.5018423", "0.5012551", "0.5007262", "0.5005413", "0.5004634", "0.5002943", "0.49957824", "0.49910653", "0.49902064" ]
0.8400655
1
Sets the value of the taille property.
public void setTaille(float value) { this.taille = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTaille(long taille) {\n this.taille = taille;\n }", "public float getTaille() {\r\n return taille;\r\n }", "public long getTaille() {\n return taille;\n }", "public void setTail(T element) {\n\t\tthis.tail.value = element;\n\t}", "public int getTaille() {\n return taille;\n }", "public void setTail(Node tail) {\n\t\tthis.tail = tail;\n\t}", "public void setTail(Connector<T> tail) {\n\t\tthis.tail = tail;\n\t}", "public void setTail(boolean tail) {\n this.tail = tail;\n }", "public void setTail(ListNode node)\n {\n tail = node;\n }", "public int getTaille(){\r\n return this.taille;\r\n }", "public Anneau (int taille){\r\n this.taille=taille;\r\n }", "@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}", "public boolean addTailor(Tailor tailor);", "public int obtenirTaille()\n\t{\n\t\treturn this.taille;\n\t}", "public void setArrowTail(int baseX, int baseY, int tipX, int tipY);", "public void set(double speed, CANTalon talon) {\n\t\ttalon.set(speed);\n\t}", "public int getTaillePoule (){\n\t\treturn 3;\n\t}", "public void setMem(int taille_tache, int n) {\r\n if (n == 1)\r\n this.memoire -= taille_tache; // lors du placement de la tache\r\n\r\n else this.memoire += taille_tache;// lors de la fin de la tache, liberer l'espace memoire\r\n }", "public T getTail() {\n\t\treturn tail.value;\n\t}", "public Builder setAltitude(long value) {\n bitField0_ |= 0x00000040;\n altitude_ = value;\n onChanged();\n return this;\n }", "public void setLydoTraVe(String lydoTraVe);", "public void tailDown () {\r\n\t\ttail_mode = true;\r\n\t\tsuper.tailDown();\r\n\t}", "public void setDeltaT(int value) {\n this.deltaT = value;\n }", "public void setStany(Towar t) {\n\t\t\n\t}", "default void setLength(double t) {\r\n scaleDirection(t / getLength());\r\n }", "public void setSecond(T tt) {\n\t\t\tthis.t = tt;\n\t\t}", "public com.example.DNSLog.Builder setTLLs(java.util.List<java.lang.Integer> value) {\n validate(fields()[21], value);\n this.TLLs = value;\n fieldSetFlags()[21] = true;\n return this;\n }", "@Override\n\tpublic void setTow(float tow) {\n\t\t\n\t}", "public abstract void setTurtleRecursive(TurtleModel value);", "public Builder setRt(int value) {\n bitField0_ |= 0x00000001;\n rt_ = value;\n onChanged();\n return this;\n }", "public NodeD getTail() {\n return tail;\n }", "public void setTupletFactor (DurationFactor tupletFactor)\r\n {\r\n this.tupletFactor = tupletFactor;\r\n }", "private void setMinor(long value) {\n bitField0_ |= 0x00000002;\n minor_ = value;\n }", "public Builder setAltitude(int value) {\n \n altitude_ = value;\n onChanged();\n return this;\n }", "public void setCrust(){\n this.crust = \"Thin\";\n }", "public void setL(double value) {\n this.l = value;\n }", "public int taille() {\n\t\treturn getSize();\n\t}", "public final void setLuchtd(java.math.BigDecimal luchtd)\n\t{\n\t\tsetLuchtd(getContext(), luchtd);\n\t}", "public void setLeaserule(java.lang.Integer newLeaserule) {\n\tleaserule = newLeaserule;\n}", "public void addAtTail(int val) {\n if(len==0) {\n addAtHead(val);\n return;\n }\n SingleNode cur = new SingleNode(val, null);\n tail.next = cur;\n tail = cur;\n len++;\n }", "public final void setLE(int le) {\n\tif (le < 0 || le > 65536) {\n\t throw new IllegalArgumentException(\"Length should be from '1' to '65535'.\");\n\t} else {\n\t this.le = le;\n\t}\n }", "public void setDelta(double value) {\r\n this.delta = value;\r\n }", "public void setTelefone(String telefone) {\n String oldTelefone = this.telefone;\n this.telefone = telefone;\n propertyChangeSupport.firePropertyChange(PROP_TELEFONE, oldTelefone, telefone);\n }", "public void setTON(int value) {\r\n this.ton = value;\r\n }", "public Column getTail() {\n return tail != null ? tail : this;\n }", "public Node getTail() {\n\t\treturn tail;\n\t}", "public Node getTail() {\n\t\treturn tail;\n\t}", "public synchronized void set (double speed){\n m_liftSpeed = speed;\n if (m_liftSpeed < 0 && isLowerLimit() == false) {\n m_liftMotor.set(m_liftSpeed);\n } else if (m_liftSpeed > 0 && isUpperLimit() == false){\n m_liftMotor.set(m_liftSpeed);\n } else {\n m_liftSpeed = 0;\n m_liftMotor.set(0); \n }\n }", "public void setProperty(Integer t) {\n\n\t\t}", "public void setLn(final int ln) {\r\n this.ln = ln;\r\n }", "public void ajouterLave(SVector3d position, SVector3d taille) {\n\n\t\tLave o = new Lave(position, taille);\n\t\tobstaclesList.add(o);\n\t}", "public void setSecond(double value) {\n this.second = value;\n }", "abstract public void setTurtle(TurtleModel t);", "public void setSpeed() {\n if (this.equals(null)) {\n this.speedValue=-5;\n }\n }", "public void setTaux(final float newTaux) {\r\n\tthis.taux = newTaux;\r\n}", "private void setPatch(long value) {\n bitField0_ |= 0x00000008;\n patch_ = value;\n }", "public void insertAtTail(int newValue) {\n DoublyLinkedList newNode = new DoublyLinkedList(newValue, tail.getPrev(), tail);\n newNode.getPrev().setNext(newNode);\n tail.setPrev(newNode);\n length += 1;\n }", "public void setTlf(String tlf){\n this.tlf = tlf;\n }", "public void setTomato(double countNo) {\n tomato = countNo;\r\n }", "public void setBodyTemperature(int bodyTemperature) {\n this.bodyTemperature = bodyTemperature;\n }", "public final void setLE(short le) {\n\tif (le == (short) 0x0000) {\n\t setLE(65536);\n\t} else {\n\t setLE(le & 0xFFFF);\n\t}\n }", "public void setParcelTemperature(double value) {\r\n this.parcelTemperature = value;\r\n }", "public void setTension(double power){\n int T_limit = 0;\n int L_limit = 0;\n if(tenPot.pidGet() < tenPotMAX && !Bottom_Limit_Switch.get()){\n L_limit = -1;\n }\n if(tenPot.pidGet() > tenPotMIN && !Top_Limit_Switch.get()){\n T_limit = 1;\n }\n if(power <= T_limit && power >= L_limit){\n motor.set(power);\n }else if(power > T_limit){\n motor.set(T_limit);\n }else if(power < L_limit){\n motor.set(L_limit);\n }\n }", "private void setHeight(long value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n }", "public void set(long value) {\n\t\t\tset(1, value);\n\t\t}", "public void setLineMovement(Timeline t)\r\n {\r\n timeline = t;\r\n }", "void setLegs(int legs);", "public void setT(Type t) {\n \t\tthis.t = t;\n \t}", "public void setAntennaHeight(double antennaHeight)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ANTENNAHEIGHT$10);\r\n }\r\n target.setDoubleValue(antennaHeight);\r\n }\r\n }", "public ByteBuf setLongLE(int index, long value)\r\n/* 811: */ {\r\n/* 812:820 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 813:821 */ return super.setLongLE(index, value);\r\n/* 814: */ }", "private static void setLever(org.bukkit.block.Block lever, boolean down) {\n\t\tif (lever.getType() != Material.LEVER) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tbyte data = lever.getData();\n\t\tint newData;\n\t\tif (down) {\n\t\t\tnewData = data | 0x8;\n\t\t} else {\n\t\t\tnewData = data & 0x7;\n\t\t}\n\t\tif (newData != data) {\n\t\t\t// CraftBukkit start - Redstone event for lever\n\t\t\tint old = !down ? 1 : 0;\n\t\t\tint current = down ? 1 : 0;\n\t\t\tBlockRedstoneEvent eventRedstone = new BlockRedstoneEvent(lever, old, current);\n\t\t\tBukkit.getServer().getPluginManager().callEvent(eventRedstone);\n\t\t\tif ((eventRedstone.getNewCurrent() > 0) != down) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// CraftBukkit end\n\t\t\tlever.setData((byte) newData, true);\n\t\t\tlever.getState().update();\n\t\t\tBlock attached = lever.getRelative(((Attachable) lever.getState().getData()).getAttachedFace());\n\t\t}\n\t}", "public ListNode getTail()\n {\n return tail;\n }", "public final void setLE(byte le) {\n\tif (le == (byte) 0x00) {\n\t setLE(256);\n\t} else {\n\t setLE(le & 0xFF);\n\t}\n }", "public void setTallied(java.lang.Boolean value);", "public void setLength( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}", "public void xsetAntennaHeight(org.apache.xmlbeans.XmlDouble antennaHeight)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDouble target = null;\r\n target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlDouble)get_store().add_attribute_user(ANTENNAHEIGHT$10);\r\n }\r\n target.set(antennaHeight);\r\n }\r\n }", "public void setLargo(Number value)\n {\n setAttributeInternal(LARGO, value);\n }", "public final void setLuchtd(com.mendix.systemwideinterfaces.core.IContext context, java.math.BigDecimal luchtd)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Luchtd.toString(), luchtd);\n\t}", "public void setOrdem(long value) {\n this.ordem = value;\n }", "public void setHumidityTemperature(double value) {\r\n this.humidityTemperature = value;\r\n }", "public boolean isTail() {\n return tail;\n }", "public void setTemperature(int value) {\n this.temperature = value;\n }", "public Shape getTailShape()\n {\n // If already set, just return\n if (_tailShape!=null) return _tailShape;\n\n // Create/configure/set TailShape\n Path2D path = new Path2D();\n path.moveTo(0, 0);\n path.lineTo(16, 6);\n path.lineTo(0, 12);\n path.lineTo(5, 6);\n path.close();\n return _tailShape = path;\n }", "void setValue(T value) throws YangException;", "public void set(double val);", "public void setBread(Bread bread) {\n\t\tthis.bread = bread;\n\t}", "public Point getTailLocation ()\r\n {\r\n if (tailLocation == null) {\r\n computeLocations();\r\n }\r\n\r\n return tailLocation;\r\n }", "public void setMaxSpeed(double value) {\n super.setMaxSpeed(value);\n }", "@Setteri\n public void asetaLiite(Tiedosto liite){\n this.liite = liite;\n }", "private void setLit(boolean value)\n\t{\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].setLit(value);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}", "public void setHeight(double value) {\n this.height = value;\n }", "public void setValue(long value) {\n\t this.value = value;\n\t }", "public void setLA(long value) {\n this.la = value;\n }", "void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}", "public Tower() {\n this.top = ' ';\n this.rest = null;\n }", "public int size() {\r\n\t\treturn this.taille;\r\n\t}", "@Override\n public void set(double value)\n {\n final String funcName = \"set\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"value=%f\", value);\n }\n\n if (!TrcUtil.inRange(value, -1.0, 1.0))\n {\n throw new IllegalArgumentException(\"Value must be in the range of -1.0 to 1.0.\");\n }\n\n if (softLowerLimitEnabled && value < 0.0 && getPosition() <= softLowerLimit\n || softUpperLimitEnabled && value > 0.0 && getPosition() >= softUpperLimit)\n {\n value = 0.0;\n }\n\n if (maxVelocity == 0.0)\n {\n currPower = value;\n }\n // else\n // {\n // controlMode = ControlMode.Velocity;\n // value *= maxVelocity;\n // value = TrcUtil.round(value); // Velocity mode is in sensor units/100ms, and sensor units are in integers.\n // }\n motor.set(value);\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"! (value=%f)\", value);\n }\n }", "public void setTorqueFtLb(double torqueFtLb) {\r\n this.torqueFtLb = torqueFtLb;\r\n }", "public void setCarte(Carte carte) {\n this.carte = carte;\n }", "public void setTelefono(long value) {\r\n this.telefono = value;\r\n }" ]
[ "0.81249666", "0.67704225", "0.6611688", "0.6516397", "0.64770013", "0.63545984", "0.63377756", "0.6242167", "0.61828566", "0.6062271", "0.6017558", "0.5866198", "0.5819696", "0.5578163", "0.5390753", "0.53297937", "0.52766514", "0.512611", "0.5062235", "0.50479823", "0.5009505", "0.50070834", "0.49997026", "0.49539977", "0.49245194", "0.49062824", "0.48899776", "0.48796406", "0.48750687", "0.48735207", "0.48368824", "0.48298708", "0.48036385", "0.48024303", "0.4791018", "0.47885364", "0.4784642", "0.477907", "0.47718167", "0.47713283", "0.4770517", "0.47620353", "0.4756873", "0.47494462", "0.47473088", "0.4725144", "0.4725144", "0.4706895", "0.47003844", "0.46912357", "0.46883327", "0.46786627", "0.46771485", "0.46662822", "0.46607348", "0.46451816", "0.4641444", "0.46405903", "0.46352553", "0.46322545", "0.46268886", "0.4621965", "0.4612269", "0.4611175", "0.46022344", "0.46008044", "0.45978898", "0.45940155", "0.45836994", "0.4570256", "0.45622864", "0.45524973", "0.45519403", "0.45501128", "0.4547616", "0.4543564", "0.4533215", "0.45247215", "0.45244753", "0.45233247", "0.45233044", "0.45161402", "0.45136786", "0.45120487", "0.45118365", "0.4510267", "0.45083717", "0.45077386", "0.45047972", "0.45033923", "0.4503334", "0.45002922", "0.44997653", "0.4497968", "0.44943872", "0.44900972", "0.44848868", "0.44838384", "0.44836792", "0.44788486" ]
0.78092873
1
Return the amount monk has to pay Write your code here
static int amount_to_pay(String Q, String P, int[] cost){ int max_amount = 0; for (int i = 0; i < P.length(); i++) { int amount = getAmountToPay(P, Q, cost, i); if (amount > max_amount) { max_amount = amount; } } return max_amount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void determineWeeklyPay(){\r\n weeklyPay = commission*sales;\r\n }", "protected double getPay() {\n\t\tint extraHrs = 0;\n\t\tif (this.hoursWrkd > 40) {\n\t\t\textraHrs = this.hoursWrkd - 40;\n\t\t\treturn (hourlyRate * 40) + (extraHrs * (hourlyRate * 1.5));\n\t\t} else {\n\t\t\treturn hoursWrkd * hourlyRate;\n\t\t}\t\t\n\t}", "public double calculatePay() \r\n\t{\r\n\t\treturn (payRate*hoursWorked);\r\n\t}", "public double calculatePay() {\n\t\treturn 0;\r\n\t}", "public double calculateWeeklyPay(){\r\n double weeklyPay = salary / 52.0;\r\n return weeklyPay;\r\n }", "public double getMoney() {\n double wallet = console.promptForDouble(\"PLEASE ENTER SOME MONEY: \");\n return wallet;\n\n }", "@Override\n public double calculatePay(double nmHrs) {\n //52 weeks in a year and 40 hours per week\n double hrRate = getSalary() / (40*52);\n //calculate their weekly pay\n double paycheck = 40 * hrRate;\n //determine if they worked overtime and calculate it\n if (nmHrs > 40) {\n double OT = nmHrs - 40;\n double OTMoney = OT * (hrRate*1.5);\n return OTMoney + paycheck;\n }\n //else return their normal weekly paycheck\n else {\n return paycheck;\n }\n\n }", "@Override \n public double getPaymentAmount() \n { \n return getWeeklySalary(); \n }", "int getMoney();", "void payBills();", "double getMoney();", "double getPaidAmount();", "public double salaryPay() {\n\t\treturn overtimePay() + getSalary();\n\t}", "public double makeAPayment(double annualLeaseAmount){\n double paymentMade = 0.0;//\n return paymentMade;\n /*Now it's 0.0. There must be a place somewhere\n that has a 'make a payment'\n button or text field or whatever...\n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ \n }", "double getPaid();", "int getBonusMoney();", "public abstract String withdrawAmount(double amountToBeWithdrawn);", "private double calculateMoneyToSpend() {\n\t\tdouble moneyToSpend = getMoney();\n\t\tif(moneyToSpend < 300) {\n\t\t\tmoneyToSpend = 0;//We do not want the player to go below 200E\n\t\t}\n\t\telse if(moneyToSpend < 500) {\n\t\t\tmoneyToSpend *= 0.34;\n\t\t}\n\t\telse if(moneyToSpend < 1000) {\n\t\t\tmoneyToSpend*= 0.4;\n\t\t}\n\t\telse if(moneyToSpend < 1500) {\n\t\t\tmoneyToSpend*= 0.5;\n\t\t}\n\t\telse if(moneyToSpend < 2000) {\n\t\t\tmoneyToSpend*= 0.6;\n\t\t}\n\t\telse {\n\t\t\tmoneyToSpend*= 0.7;\n\t\t}\n\t\treturn moneyToSpend;\n\t}", "@Override\n public double calculatePay ()\n {\n double commissionPay = this.sales * this.rate / 100;\n return commissionPay;\n }", "public static void main(String[] args) {\n int desposit=50;\n double interest=(50*0.005);\n double totalamount=desposit+interest;\n \n System.out.print(\"Total balance after the year is \");\n \n System.out.print(totalamount*12);\n System.out.println(\" Kyat\");\n\t}", "double getUnpaidAmount();", "public double pay(){\n\t\treturn payRate;\n\t}", "@Override\n public String pay(int amount) {\n return (amount +\" paid with credit/debit card.\");\n }", "public double pay()\r\n{\r\ndouble pay = hoursWorked * payRate;\r\nhoursWorked = 0;\r\nreturn pay;\r\n//IMPLEMENT THIS\r\n}", "public abstract double pay();", "@Override\r\n\tpublic int getPayCheque() {\n\t\treturn profit+annuelSalary;\r\n\t\t\r\n\t}", "public static BigDecimal calcTotalMoney()\n {\n SharedPreferences defaultSP;\n defaultSP = PreferenceManager.getDefaultSharedPreferences(MainActivity.mActivity);\n manualTime = Integer.valueOf(defaultSP.getString(\"moneyMode\", \"4\"));\n boolean plus = PolyApplication.plus;\n PolyApplication app = ((PolyApplication) MainActivity.mActivity.getApplication());\n\n if(!plus)\n {\n\n if (manualTime == 4 && app.user.getMeals() > 0)\n {\n today.setToNow();\n int minutes = (today.hour * 60) + today.minute;\n if (minutes >= 420 && minutes <= 599)\n {\n money = mealWorth[0];\n } else if (minutes >= 600 && minutes <= 1019)\n {\n money = mealWorth[1];\n } else if (minutes >= 1020 && minutes <= 1214)\n {\n money = mealWorth[2];\n } else\n {\n money = mealWorth[3];\n }\n return money.subtract(moneySpent).setScale(2);\n } else if(app.user.getMeals() > 0)\n {\n return mealWorth[manualTime].subtract(moneySpent).setScale(2);\n }\n else\n {\n return new BigDecimal(0.00).subtract(moneySpent).setScale(2);\n }\n }\n else\n {\n return ((PolyApplication) MainActivity.mActivity.getApplication()).user.getPlusDollars().subtract(moneySpent);\n }\n }", "@Override\n public double payment(double amount) {\n return amount * 98 / 100 ;\n }", "@Override\n public int tonKho() {\n return getAmount() - amountBorrow;\n }", "double purchasePrice();", "int getMoneyValue();", "int getMoneyValue();", "public Double getTotalBuyMoney() {\r\n return totalBuyMoney;\r\n }", "public double calculateSeverancePay() {\r\n severancePay = (2020 - yearOfStart) * 20 * 0.8;\r\n return severancePay;\r\n }", "public int withdraw() {\n\t\tif ((acc.getBalance() - keyboard.getAmt()) > acc.getMinimumBalace()) {\r\n\t\t\tif (casher.withdraw(keyboard.getAmt()) == 1) {\r\n\t\t\t\tsetNewBalance();\r\n\t\t\t\t\r\n\t\t\t\treciept.printer(acc.getAccountNumber(), acc.getBalance(), keyboard.getAmt());\r\n\t\t\t\treturn 1;\r\n\t\t\t} else\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn 0;\r\n\r\n\t}", "@Override\r\n public int calculateSalary()\r\n {\r\n return weeklySalary*4;\r\n }", "int getBuyCurrent();", "public void getSalary() {\n this.payDay(this.monthlyIncome);\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount getCapitalPayed();", "public void calculatePayment() {}", "@Override\n public double calculatePay(double numHours) {\n double hourlyRate = this.getSalary() / (40 * 52);\n return hourlyRate * 40 + hourlyRate * 1.5 * (numHours - 40);\n }", "public BigDecimal getPayAmt();", "@Override\n public double pay() {\n double payment = super.pay() + (this.commision_rate * this.total_sales);\n this.total_sales = 0;\n return payment;\n }", "public void calculateWageForMonth() {\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\temployeeAttendanceUsingCase();\n\t\t\ttotalSalary = totalSalary + salary;\n\t\t\t// return totalSalary;\n\t\t}\n\t}", "public double printOutput() {\r\n return calculateNetPay();\r\n }", "public double getrealamounttoSavemonthly()\n\t{\n\t\treturn this.moneyremainingtoSave()%this.gettimetoAchieve();\n\t}", "public void payEconomical() {\n if (this.balance >= 2.50) {\n this.balance -= 2.50;\n }\n }", "public int getAmountBought() {\n //System.out.println(clientName + \" has bought \" + amountBought + \" shares of \" + companyName);\n return amountBought;\n }", "public double calculatePayment (int hours);", "int payInTurbo(String turboCardNo, float turboAmount, String destinationTurboOfCourse, String installmentsButInTurbo);", "public double pay(double amountPayed){\n \n try{\n double change = this.sale.pay(amountPayed);\n this.accounting.updateFinance( this.sale.getAmountToPay() );\n \n this.inventory.updateInventory( this.sale.getListOfProducts() );\n \n Printer printer = new Printer();\n printer.printReceipt( this.sale.creatSaleDTO() );\n \n return change;\n }catch (Exception a){\n System.out.print(a);\n return 0;\n }\n }", "public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}", "public static void amountPaid(){\n NewProject.tot_paid = Double.parseDouble(getInput(\"Please enter NEW amount paid to date: \"));\r\n\r\n UpdateData.updatePayment();\r\n updateMenu();\t//Return back to previous menu.\r\n\r\n }", "public void win(int wager){\n bankroll += wager;\n }", "public double findWeight(){\n int totalCoins = gold + silver + copper + electrum + platinum;\n if((totalCoins % 3) == 0){\n return totalCoins/3;\n }\n return totalCoins * weight;\n }", "@Override\n public double calculatePayDay()\n {\n double perWeekEarned = hourlyRate * hoursPerWeek;\n return (double)Math.round(perWeekEarned * 100) / 100;\n }", "public void enterPayment(int coinCount, Coin coinType)\n {\n balance = balance + coinType.getValue() * coinCount;\n // your code here\n \n }", "int getBuyQuantity();", "public int getMoney() {\n return wallet.getMoney();\n }", "public void autoPay() {}", "public void recordPurchase(double amount)\n {\n balance = balance - amount;\n // your code here\n \n }", "private static double checkOut() {\n double discount = 0;\n System.out.print(\"Do you have any coupon code (y/n): \");\n String response = sc.nextLine();\n if (!response.equals(\"y\") && !response.equals(\"n\")) {\n System.out.println(\"Invalid input\");\n checkOut();\n return 0;\n } else {\n if (response.equals(\"y\")) discount = getDiscount();\n }\n double total = printBill(discount);\n double cash = 0;\n while (true) {\n System.out.print(\"Cash: \");\n String input = sc.nextLine();\n if (input.charAt(0) < 48 || input.charAt(0) > 57) {\n System.out.println(\"Invalid input\");\n continue;\n }\n cash = Double.parseDouble(input);\n if (cash < total) {\n System.out.println(\"IS THAT JOKE? HAHAHA\");\n System.out.printf(\"You have to pay at least %.2f Baht%n\", total);\n } else {\n System.out.printf(\"%47s: %8.2f Baht%n\", \"Cash\", cash);\n System.out.printf(\"%47s: %8.2f Baht%n\", \"Change\", cash - total);\n break;\n }\n }\n return total;\n }", "public String payWorker() {\n\t\tString ret;\n\t\tif (!super.payWorker().isEmpty()) {\n\t\t\tNumberFormat formatter = new DecimalFormat(\"#0.00\");\n\t\t\tret = getName() + \" is an hourly Worker and is paid \" + formatter.format(getPayment());\n\t\t\tSystem.out.println(ret);\n\t\t\tthis.num_hours = 0;\n\t\t\treturn ret;\n\t\t} else {\n\t\t\tret = getName() + \" has already been paid and needs to work more hours this week.\";\n\t\t\tSystem.out.println(ret);\n\t\t\treturn ret;\n\t\t}\n\t}", "private double getAmount() {\n\t\twhile ( true ) {\n\t\t\t// Prompt\n\t\t\tSystem.out.printf(\n\t\t\t\t\t\"\\nThe total price of the cart is $%.2f. How much would you like to pay (without currency symbol)?\",\n\t\t\t\t\tthis.shoppingCart.getTotalPrice() );\n\n\t\t\t// Read input\n\t\t\tString line = this.in.nextLine().trim();\n\n\t\t\t// Validate\n\t\t\tdouble amount;\n\t\t\ttry {\n\t\t\t\tamount = Double.parseDouble( line );\n\t\t\t} catch ( NumberFormatException e ) {\n\t\t\t\tSystem.out.println( \"Please enter a valid amount.\" );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Check if it's equal to cart total\n\t\t\tif ( Math.abs(amount - this.shoppingCart.getTotalPrice()) < 0.01 ) {\n\t\t\t\tSystem.out.println( \"Payment accepted.\" );\n\t\t\t\treturn amount;\n\t\t\t} else {\n\t\t\t\tSystem.out.println( \"The amount you entered is not the full price of the cart.\" );\n\t\t\t}\n\t\t}\n\t}", "private double requestCashPayment(double total) {\n double paid = 0;\n while (paid < total) {\n double entered = ScannerHelper.getDoubleInput(\"Enter amount paid: \", 0);\n paid += entered;\n System.out.printf(\"Accepted $%.2f in cash, Remaining amount to pay: $%.2f\\n\", entered, (total - paid >= 0) ? total - paid : 0);\n }\n return paid;\n }", "private static double totalPrice(double price_interest, double dwnpymnt) {\n \treturn price_interest + dwnpymnt;\n }", "public double calculateNetPay() {\r\n return net_pay = grosspay - Statetax - Fedtax; }", "public double calculatedConsuption(){\nint tressToSow=0;\n\nif (getKiloWatts() >=1 && getKiloWatts() <= 1000){\n\ttressToSow = 8;\n}\nelse if (getKiloWatts() >=1001 && getKiloWatts ()<=3000){\n\ttressToSow = 35;\n}\nelse if (getKiloWatts() > 3000){\n\ttressToSow=500;\n}\nreturn tressToSow;\n}", "public int getMoney() {\n \t\treturn money;\n \t}", "public static void main(String args[]){\n System.out.println(\"Enter the no. of sales you make\");\n Scanner sc = new Scanner(System.in);\n int sale = sc.nextInt();\n System.out.println(\"Entern the no of experince in current Job\");\n int year = sc.nextInt();\n int pay=1000;\n int requiredSales =10;\n int requiredExp = 2;\n\n if (sale>=requiredSales) {\n if (year>=requiredExp) {\n // Calculate the pay\n pay = pay + 250;\n // Display the pay\n System.out.println(\"Your pay is \" + pay);\n }\n else\n System.out.println(\"Sorry you are not qualified, your experince is less\");\n }\n else\n {\n System.out.println(\"Sorry you are not qualified, fuck your self mc\");\n }\n\n }", "@Override\n public double earnings() {\n if (getHours() < 40)\n return getWage() * getHours();\n else\n return 40 * getWage() + ( getHours() - 40 ) * getWage() * 1.5;\n }", "@Override\n public double annualSalary(){\n double bonus = 0.00;\n\n if(currentStockPrice > 50){\n bonus = 30000;\n }\n\n return (super.annualSalary() + bonus);\n }", "public static int paid(long phonenumber, int pinnumber, int amount, String name, String name1) {\n\t\tif (name == \"online payment\") {\n\t\t\tSystem.out.println(\"You are a cash on delivery\");\n\t\t\tSystem.out.println(\"Okk! Caring Your Dreams....\");\n\t\t} else {\n\t\t\tSystem.out.println(\"You are a online payment...\");\n\t\t\tSystem.out.println(\"The Phone no is: \" + phonenumber);\n\t\t\tSystem.out.println(\"The pinnumber is: \" + pinnumber);\n\t\t\tSystem.out.println(\"The Amount is: \" + amount);\n\t\t}\n\t\tSystem.out.println(\"Paid Successfully...\");\n\t\tSystem.out.println(\"___________________________________________________\");\n\t\tSystem.out.println(\"Your Medicine is delivered from within few days....\");\n\t\tSystem.out.println(\"Thank You! Take Care for your Health...\");\n\t\tSystem.out.println(\"___________________________________________________\");\n\t\treturn amount;\n\t}", "public int getJackpot(){ return amount; }", "public double getGrossWage(){\r\n\t return (salary + addings);\r\n }", "public int getMoneyAfterBet() {\n moneyAfterBet = initialBudget - betAmount;\n // initialBudget = moneyAfterBet;\n return moneyAfterBet;\n\n }", "int getAmount();", "private void calculateBill() {\n\t\tif (unit <= 100) {\r\n\t\t\tbill = unit * 5;\r\n\t\t}else if(unit<=200){\r\n\t\t\tbill=((unit-100)*7+500);\r\n\t\t}else if(unit<=300){\r\n\t\t\tbill=((unit-200)*10+1200);\r\n\t\t}else if(unit>300){\r\n\t\t\tbill=((unit-300)*15+2200);\r\n\t\t}\r\n\t\tSystem.out.println(\"EB amount is :\"+bill);\r\n\t}", "public int getMoney()\n {\n return money;\n }", "double getBalance();", "double getBalance();", "public int getMoney(){\n\t\treturn money;\n\t}", "public int getMoney(){\n\t\treturn money;\n\t}", "double getTotalProfit();", "public int getWorth()\n {\n return worth;\n }", "public static void main(String[] args) {\n var balance = MoneyRound.roundToXPlaces(sayThenGetDouble(\"What is your balance? \"),\n PRECISION_TO_ROUND_TO);\n //Then, do the same with the APR and monthly payment. (Divided APR when first gotten)\n var apr = sayThenGetDouble(\"What is the APR on the card (as a percent)? \") / DOUBLE_TO_PERCENT_DIVISOR;\n var monthlyPayment = MoneyRound.roundToXPlaces(\n sayThenGetDouble(\"What is the monthly payment you can make? \"), PRECISION_TO_ROUND_TO);\n System.out.print(\"\\n\");\n //Newline here for better text formatting.\n //Then, call calculateMonthsUntilPaidOff from the PaymentCalculator class.\n var payCalc = new PaymentCalculator(apr, balance, monthlyPayment);\n var monthsUntilPaidOff = payCalc.calculateMonthsUntilPaidOff();\n //Finally, return the amount of months until the card is paid off.\n System.out.println(\"It will take you \" + monthsUntilPaidOff + \" months to pay off this card.\");\n\n\n }", "public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }", "public Money getTotalBalance();", "public double getMoney() { //Not useful for the project but used on the test.\n\t\treturn money;\n\t}", "int getMoney() {\n\t\treturn _money;\n\t}", "public double getCurrentPay() {\n return currentPay;\n }", "public static int numPennies(double money) {\n // REPLACE THIS WITH YOUR CODE\n return 0;\n }", "public int annualSalary(){\r\n int aSalary = monthlySalary * MONTHS;\r\n return aSalary;\r\n }", "private int calculatePrice() {\n int price = numberOfCoffees * 5;\n\n return price;\n\n\n }", "long getAmount();", "public int getMoney()\n\t{\n\t\treturn money;\n\t}", "public void salary() {\n System.out.print(\"Wage: \");\n double wage = in.nextDouble();\n System.out.print(\"Hours: \");\n double hours = in.nextDouble();\n final double REG_HOURS = 40;\n final double OVERTIME_MULTIPLIER = 0.5;\n\n double salary = wage * hours;\n if (hours > REG_HOURS) {\n salary += (hours - REG_HOURS) * wage * OVERTIME_MULTIPLIER;\n }\n\n System.out.printf(\"\\nYou'll make $%,.2f this week.\\n\\n\", salary);\n }", "public void returnAct() {\r\n\t\t\r\n\t\tif(createWine() != null) {\r\n\t\t\t\r\n\t\t\ttext_amount =String.valueOf( cus.returnTransaction(createWine()));\r\n\t\t\twine_name.setText(name.getText());\r\n\t\t\tamount.setText(\" £ \" + text_amount + \" \" );\r\n\t\t\tbalance.setText(\" £ \" + isCredit((double)cus.getAccount() / 100.00) + \" \");\r\n\t\t\t\r\n\t\t\t//reset all textfield\r\n\t\t\tname.setText(null);\r\n\t\t\tquantity.setText(null);\r\n\t\t\tprice.setText(null);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\t\r\n\t\t\tname.setText(null);\r\n\t\t\tquantity.setText(null);\r\n\t\t\tprice.setText(null);\r\n\t\t\t\r\n\t\t}\r\n\t}", "private String marketBuyAmounts() {\r\n\t\tint[] amounts= market.getBuyAmounts();\r\n\t\tString out = \"Buy Requests Are: \";\r\n\t\tfor(int i=0; i<amounts.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+amounts[i]+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "public double calculateChangeToGive() {\r\n\t\treturn amountPaid - amountToPay;\r\n\t}", "private String money() {\r\n\t\tint[] m =tile.getAgentMoney();\r\n\t\tString out =\"Agent Money: \\n\";\r\n\t\tint total=0;\r\n\t\tint square=(int)Math.sqrt(m.length);\r\n\t\tif(square*square<m.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<m.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<m.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%8s\", m[i]+\"\"));\r\n\t\t\t\t\ttotal=total+m[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"Agent Total: \"+total);\r\n\t\tint companyTotal=0;\r\n\t\tout=out.concat(\"\\n\\nCompany Money: \\n\");\r\n\t\tm=tile.getCompanyMoney();\r\n\t\tsquare=(int)Math.sqrt(m.length);\r\n\t\tif(square*square<m.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<m.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<m.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%8s\", m[i]));\r\n\t\t\t\t\tcompanyTotal=companyTotal+m[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"Company Total: \"+companyTotal);\r\n\t\tout=out.concat(\"\\nTotal total: \"+(total+companyTotal));\r\n\t\tif(total+companyTotal!=tile.getPeopleSize()*tile.getAverageMoney()) {\r\n\t\t\tSTART=false;\r\n\t\t}\r\n\t\treturn out;\r\n\t}" ]
[ "0.69058037", "0.68124825", "0.67857933", "0.67493534", "0.67482704", "0.67323625", "0.6686934", "0.66650784", "0.6658153", "0.66314924", "0.66285217", "0.6540704", "0.649775", "0.64786035", "0.64702463", "0.64696026", "0.64554435", "0.64529705", "0.6444649", "0.6418302", "0.64115113", "0.6402415", "0.6393149", "0.6356931", "0.6340736", "0.63280016", "0.62993664", "0.62416697", "0.6201213", "0.62004507", "0.6115476", "0.6115476", "0.6105736", "0.61055195", "0.61008734", "0.6098715", "0.6098303", "0.6085951", "0.60850495", "0.60847396", "0.6060665", "0.60534364", "0.6046879", "0.6043587", "0.6042394", "0.60357344", "0.6028278", "0.6024546", "0.6021884", "0.6011244", "0.6010746", "0.6009542", "0.60090554", "0.6008088", "0.6004369", "0.59966993", "0.59926987", "0.5986901", "0.59683365", "0.59675574", "0.5960905", "0.5952497", "0.59472317", "0.59265256", "0.59255373", "0.59249896", "0.59226847", "0.59175617", "0.59143025", "0.5913561", "0.59128994", "0.59125227", "0.5904568", "0.59030306", "0.59006286", "0.5890913", "0.5890112", "0.58868957", "0.58864856", "0.58816594", "0.58816594", "0.58765155", "0.58765155", "0.5868732", "0.5867591", "0.5866509", "0.5866435", "0.58582693", "0.58563006", "0.58552676", "0.585349", "0.58448553", "0.5842134", "0.58400124", "0.58264166", "0.5823038", "0.5821363", "0.5814057", "0.5812156", "0.58115196", "0.58100635" ]
0.0
-1
strength of declared pattern correlation, a > b, in [0..1.0]
public double getPatternStrength(Detail a, Detail b) { if (a.getPatterns().size() == 0) return 0.0; List<String> bPatterns = b.getPatterns(); double s = 0; for (String aP : a.getPatterns()) { if (bPatterns.contains(aP)) { s += 1.0; } //TODO accumulate matched super-patterns } return s / ((double)a.getPatterns().size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int bresA(int a, int b, int d) { //A as in Axis\n int add = 0;\n err += b;\n if(2*err >= a) {\n add = d;\n err -= a;\n }\n return add;\n }", "double correlationCoefficient(User a, User b) throws CwebApiException;", "private double calcG(int a, int b) {\n return a % 2 == 0 && b % 2 == 0 ? 20 : a % 2 == 1 && b % 2 == 1 ? 1 : 5;\n }", "Double getFrictionCoefficient();", "public double getStrength() {\n return\n (left.isDiscrete() ? 1 : left.getStrength())\n * (right.isDiscrete() ? 1 : right.getStrength());\n }", "public double LengthB(){\n\t\treturn Math.abs(x4 - x3);\n\t}", "private int agreement(SpatialObject x, SpatialObject y) {\n\n\t\tint agr = -1;\n\n\t\tif (x.getScore() > y.getScore()) {\n\t\t\tif (x.getRate() > y.getRate()) {\n\t\t\t\tagr = 1;\n\t\t\t}\n\t\t} else if (x.getScore() < y.getScore()) {\n\t\t\tif (x.getRate() < y.getRate()) {\n\t\t\t\tagr = 1;\n\t\t\t}\n\t\t} \n\n\t\tif (x.getScore() == y.getScore() && x.getRate() != y.getRate()) {\n\t\t\tagr = 2; \t\t\n\t\t}\n\n\t\tif (x.getRate() == y.getRate() && x.getScore() != y.getScore()) {\n\t\t\tagr = 3;\t\t\n\t\t} \n\n\t\tif (x.getRate() == y.getRate() && x.getScore() == y.getScore()) {\n\t\t\tagr = 0;\n\t\t}\t\t\n\t\treturn agr;\n\t}", "@Override\n\tpublic double getRx() {\n\ndouble object = 0;\n for(int i = 0; i < x.length; i++){\n object += Math.pow(y[i] - ( theta[0] + theta[1] * x[i]), 2);\n }\n return object / 2 ;\n }", "public float lengthSquared ( );", "public double LengthA(){\n\t\treturn Math.abs(x2 - x1);\n\t}", "public static double RELATIVE_PERCENTAGE_SUPPORT(Feature a, Feature b) {\n double num = 0.0, den = 0.0, dinf, dsup, rat = -1.0;\n int i;\n\n if (!a.type.equals(b.type)) Dataset.perror(\"Feature.class :: not the same class for features\");\n\n if (Feature.IS_CONTINUOUS(a.type)) {\n if ((b.dmax == b.dmin) || (a.dmax <= b.dmin) || (a.dmin >= b.dmax)) return 0.0;\n\n if (a.dmin < b.dmin) dinf = b.dmin;\n else dinf = a.dmin;\n\n if (a.dmax > b.dmax) dsup = b.dmax;\n else dsup = a.dmax;\n\n num = dsup - dinf;\n den = b.dmax - b.dmin;\n } else if (Feature.IS_INTEGER(a.type)) {\n if ((a.imax < b.imin) || (a.imin > b.imax)) return 0.0;\n\n if (a.imin <= b.imin) dinf = (double) b.imin;\n else dinf = (double) a.imin;\n\n if (a.imax >= b.imax) dsup = (double) b.imax;\n else dsup = (double) a.imax;\n\n num = dsup - dinf + 1.0;\n den = ((double) (b.imax - b.imin)) + 1.0;\n } else if (Feature.IS_NOMINAL(a.type)) {\n if (b.modalities.size() == 0) return 0.0;\n else den = (double) b.modalities.size();\n\n num = 0.0;\n for (i = 0; i < a.modalities.size(); i++)\n if (b.modalities.contains((String) a.modalities.elementAt(i))) num += 1.0;\n } else Dataset.perror(\"Feature.class :: feature type unknown\");\n\n rat = num / den;\n if ((rat < 0.0) || (rat > 1.0))\n Dataset.perror(\"Feature.class :: ratio \" + rat + \" not a probability\");\n return rat;\n }", "float genChance();", "double redPercentage();", "@Override\n\tdouble chuVi() {\n\t\treturn (canhA + canhB) * 2;\n\t}", "private int numberOfCoefficients(int degree) {\n return (int) (0.5 * (Math.pow(degree + 1, 2) + degree + 1));\n }", "public double result(double f) {\n double phi = Math.pow((Math.sin(2.0 * Math.PI * f / (2.0 * sample_rate))), 2.0);\n double r = (Math.pow(b0 + b1 + b2, 2.0) - 4.0 * (b0 * b1 + 4.0 * b0 * b2 + b1 * b2) * phi + 16.0 * b0 * b2 * phi * phi) / (Math.pow(1.0 + a1 + a2, 2.0) - 4.0 * (a1 + 4.0 * a2 + a1 * a2) * phi + 16.0 * a2 * phi * phi);\n if (r < 0) {\n r = 0;\n }\n return Math.sqrt(r);\n }", "public static void main(String[] args) {\n int a = 2; // starting number\n int r = 2; // Common ratio\n int n = 5; // N th term to be find\n\n int curr_term;\n for (int i = 0; i < n; i++) {\n curr_term = a * (int)Math.pow(r, i);\n System.out.print(curr_term + \" \");\n }\n\n }", "private double weight(){\n return ((double) (m_PositiveCount + m_NegativeCount)) / ((double) m_PositiveCount);\n }", "private int calculateConsecutiveDuplicateMutationsThreshold(){\n \tint combinedSiteLength = region.getCombinedSitesLength();\n \tif(combinedSiteLength <= 10){\n \t\treturn 100; // around the order of magnitude of 1,000,000 if we assume each of the 10 positions could have any of the 4 nucleotides\n \t}else{\n \t\tint consecFactor = 400000 / (combinedSiteLength * combinedSiteLength * combinedSiteLength * iContext.strategy.nucleotides.length);\n \t\treturn Math.max(2, consecFactor);\n \t}\n }", "int getStrength();", "int getStrength();", "public static void checkConsistency(){\n double[] aNormalW=new double[numberOfObjectives];\n double randomIndex=0;\n double sum=0;\n for (int row=0;row<numberOfObjectives;row++){\n for (int column=0;column<numberOfObjectives;column++){\n\n sum+=weights[column]*objectives[row][column];\n }\n df.setRoundingMode(RoundingMode.UP);\n aNormalW[row]= Double.valueOf(df.format(sum));\n sum=0;\n }\n double awtDividedByWt=0;\n for (int i=0;i<numberOfObjectives;i++){\n awtDividedByWt+=aNormalW[i]/weights[i];\n decimalFormat.setRoundingMode(RoundingMode.HALF_UP);\n Double.valueOf(decimalFormat.format(awtDividedByWt));\n }\n double reciprocalNumber=(double) 1/numberOfObjectives;\n decimalFormat.setRoundingMode(RoundingMode.UP);\n Double.valueOf(decimalFormat.format(reciprocalNumber));\n double step3=reciprocalNumber*awtDividedByWt;\n decimalFormat.setRoundingMode(RoundingMode.UP);\n double numerator=Double.valueOf(decimalFormat.format(step3))-numberOfObjectives;\n double denominator=numberOfObjectives-1;\n decimalFormat.setRoundingMode(RoundingMode.UP);\n double ci=Double.valueOf(decimalFormat.format(numerator)) /denominator;\n decimalFormat.setRoundingMode(RoundingMode.CEILING);\n System.out.println(\"Consistency Index (CI)= \"+Double.valueOf(decimalFormat.format(ci)));\n System.out.println();\n double ciDividedByRI=ci/table23(numberOfObjectives);\n decimalFormat.setRoundingMode(RoundingMode.UP);\n // Double.valueOf(df.format(ciDividedByRI));\n if (ciDividedByRI<0.10){\n randomIndex=ci/table23(numberOfObjectives);\n decimalFormat.setRoundingMode(RoundingMode.UP);\n System.out.println(\"Random Index (RI)= \"+Double.valueOf(decimalFormat.format(randomIndex)));\n System.out.println(\"degree of consistency is satisfactory !!\");\n }else {\n System.out.println(\"the AHP may not yield meaningful results !!\");\n }\n System.out.println();\n }", "public static void corrDistOut()\t\n\t{\t \n\t\n\t\tdouble c, n, w;\n\t\t\n\t\t//System.err.println(\"CORRDIST\");\n\n\t\tclade = clad[k];\n\t\n\t clade.meanDc = 0;\n\t clade.meanDn = 0;\n\t clade.meanWeight = 0;\n\t clade.sumDcxWeight = 0;\n\t clade.sumDnxWeight = 0;\n\t clade.sumDcSq = 0;\n\t clade.sumDnSq = 0;\n\t clade.sumWeightSq = 0;\n\t\t\n\t\tc = n = w = 0;\n\t\t\n\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t \tclade.meanDc += clade.Dc[i] / (double) clade.numSubClades;\n\t \tclade.meanDn += clade.Dn[i] / (double) clade.numSubClades;\n\t \tclade.meanWeight += clade.weight[i] / (double) clade.numSubClades;\n\t \tclade.sumDcxWeight += clade.Dc[i] * clade.weight[i];\n\t \tclade.sumDnxWeight += clade.Dn[i] * clade.weight[i];\n\t \tclade.sumDcSq += Math.pow (clade.Dc[i],2); \n\t \tclade.sumDnSq += Math.pow(clade.Dn[i],2); \n\t \tclade.sumWeightSq += Math.pow(clade.weight[i], 2);\n\t \t \t}\t\n\t \n\t c = clade.sumDcSq - (double) clade.numSubClades * Math.pow(clade.meanDc,2);\n\t n = clade.sumDnSq - (double) clade.numSubClades * Math.pow(clade.meanDn,2);\n\t \tw = clade.sumWeightSq - (double) clade.numSubClades * Math.pow(clade.meanWeight,2); \n\n\t\tif(clade.sumDcSq == 0 || c == 0 || w == 0)\n\t\t\tclade.corrDcWeights = NA; \n\t else\n\t\t\tclade.corrDcWeights = (clade.sumDcxWeight - (double)clade.numSubClades * clade.meanDc * clade.meanWeight) / (Math.sqrt(c*w));\n\n\t\tif(clade.sumDnSq == 0 || n == 0 || w == 0)\n\t\t\tclade.corrDnWeights = NA; \n\t else\n\t\t\tclade.corrDnWeights = (clade.sumDnxWeight - (double) clade.numSubClades * clade.meanDn * clade.meanWeight) / (Math.sqrt(n*w));\n\n\t if(clade.corrDcWeights > 1 && clade.corrDcWeights < 2)\n\t clade.corrDcWeights = 1;\n\t \n\t if(clade.corrDcWeights < -1)\n\t clade.corrDcWeights = -1;\n\t \n\t if(clade.corrDnWeights > 1 && clade.corrDnWeights < 2)\n\t clade.corrDnWeights = 1;\n\t \n\t if(clade.corrDnWeights < -1)\n\t clade.corrDnWeights = -1; \n\n\t\t//System.err.println(\"Correlations clade \" + clade.cladeName + \": \" + clade.corrDcWeights + \" \" + clade.corrDnWeights);\n\n\t}", "private static double calculaDistancia(double[] param1, double[] param2){\n\t\tdouble res1= Math.pow((param1[0]-param2[0]), 2);\n\t\tdouble res2= Math.pow((param1[1]-param2[1]), 2);\n\t\tdouble res3= Math.pow((param1[2]-param2[2]), 2);\n\t\tdouble res4= res1 + res2 + res3;\n\t\tdouble res5= res4/3;\n\t\tdouble res6= Math.sqrt(res5);\n\t\treturn res6;\n\t}", "public int weight ();", "public double relativeInterference(Node w, Link a) {\n\t\tif (w == a.getSender()) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn sigma*Math.pow(a.getLength()/w.distanceToOtherNode(a.getReceiver()),exp)\n\t\t\t/(1-Math.pow(a.getLength()/max_rad,exp));\n\t}", "double indexOfCoincidence(int length, int[] alphabet){\n\t\tdouble n=length;\n\t\tdouble IOC = 0;\n\t\tfor(int i=0;i<alphabet.length;i++){\n\t\t\tIOC+=alphabet[i]*(alphabet[i]-1);\n\t\t}\n\n\t\tdouble something = IOC/(length*(length-1));\n\n\t\tSystem.out.println(something);\n\t\treturn n;\n\t}", "public double getSpeedAccordingExcessPercent(double a, double b, double excess) {\n return a * excess * excess + b;\n }", "protected Double successProbability(){\n\t\tnodeKValues = collectKValues();\n\t\tList<Integer[]> placements = getDistinctPlacements(getMinKPath());\n\t\tlong maxNumberOfColorings = 0;\n\t\tfor (Integer[] placement : placements){\n\t\t\tlong colorings = numberOfColorings(placement);\n\t\t\tif (colorings > maxNumberOfColorings)\n\t\t\t\tmaxNumberOfColorings = colorings;\n\t\t}\n\t\tDouble probability = 1.0/maxNumberOfColorings;\n\t\tfor (int i=1; i<=pathLength; i++){ // factorial of pathlength\n\t\t\tprobability = probability * i;\n\t\t}\n\t\treturn probability;\n\t}", "public float getRainStrength(Point3d position){\r\n\t\treturn world.isRainingAt(new BlockPos(position.x, position.y + 1, position.z)) ? world.getRainStrength(1.0F) + world.getThunderStrength(1.0F) : 0.0F;\r\n\t}", "private int degreeFromCoefficients(int numOfCoefficients) {\n return (int) (0.5*(-1 + (int)(Math.sqrt(1+8*numOfCoefficients))))-1;\n }", "abstract double getLengthSquared();", "public double calculateObservedDisagreement();", "public double getCoefficient();", "public Double calculateSimilarity(OWLObject a, OWLObject b);", "public static double similarity(Color c1,Color c2){\n LOG.info(\"C1,\"+c1.toString()+\",C2:\"+c2.toString());\n //\n double r2_r1 = distance(c2.getRed(),c1.getRed());\n double g2_g1 = distance(c2.getGreen(),c1.getGreen());\n double b2_b1 = distance(c2.getBlue(),c1.getBlue());\n\n double distance = Math.sqrt(r2_r1+g2_g1+b2_b1);\n double avgRgb = Math.sqrt(Math.pow(255,2)+Math.pow(255,2)+Math.pow(255,2));\n double differ = distance/avgRgb;\n LOG.info(\"differ,\"+differ+\"distance:\"+distance+\",avgRgb:\"+avgRgb);\n return 1.00-differ;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint a[]= {2,1,6,4};\r\n\t\tint b[]= {1,5};\r\n\t\tint count=0;\r\n\t\tfor(int i=0;i<a.length;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<b.length;j++)\r\n\t\t\t{\r\n\t\r\n\t\t\t\tif(Math.pow(a[i],b[j])>Math.pow(b[j],a[i]))\r\n\t\t\t\t\t\r\n\t\t\t\t\tcount=count+1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(count);\r\n\t\t\r\n\r\n\t}", "int getMinimalPaletteDistance();", "abstract double rightProbability();", "public static double randomadec(int a, int b, int semilla){ \n Random r = new Random(semilla);\n Double ri = b + ( a - b ) * r.nextDouble(); \n return ri;\n }", "private float diffusitivity(float d) {\r\n return (1.0f / (1.0f + (d * d) / (lambda * lambda)));\r\n }", "@Override\n\tdouble dienTich() {\n\t\treturn canhA * canhB;\n\t}", "private double habitStrength(Double spFrequency, double totalFrequency) {\n\t\treturn totalFrequency ==0 ? 1:spFrequency/totalFrequency;\n\t}", "String getCollisionAvoidanceFactor();", "public static void checkUpdateProbabilityOnAtomicRelations()\r\n\t{\r\n\t\tint[] base_relations = {1,2,4,8,16,32,64,128};\r\n\t\tint r1,r2,r3;\r\n\t\tint total = 0;\r\n\t\tint update = 0;\r\n\t\tfor (int i = 0; i < 8; i++)\r\n\t\t{\r\n\t\t\t r1 = base_relations[i];\r\n\t\t\tfor(int j = 0; j < 8; j++)\r\n\t\t\t{\r\n\t\t\t\tr2 = base_relations[j];\r\n\t\t\t\r\n\t\t\t\tfor(int k = 0; k < 8; k++)\r\n\t\t\t\t{ \r\n\t\t\t\t\tr3 = base_relations[k];\r\n\t\t\t\t\ttotal++;\r\n\t\t\t\t\t//int new_r3 = CompositionTable.LookUpTable(r1, r2);\r\n\t\t\t\t\tint new_r3 = SetOperators.intersection(r3, \r\n\t\t\t\t\t\t\t\tCompositionTable.LookUpTable(r1, r2));\r\n\t\t\t\t\t//System.out.println(new_r3);\r\n\t\t\t\t\tif( new_r3 != r3 )\r\n\t\t\t\t\t{\t\r\n\t\t\t\t\t\tupdate++;\r\n\t\t\t\t\t\t//System.out.println(new_r3);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\tSystem.out.println(\" total \" + total + \" update \" + update);\r\n\t\tSystem.out.println((double)update/total);\r\n\t\t\t\t\r\n\t}", "private static double ct(double W, double Vr, double V){\n\t\t/*\n\t\t//declaring constants\n\t\tdouble A0 = 0.5766; \n\t\tdouble A1 = 1.9169;\n\t\tdouble A2 = -1.0712;\n\t\tdouble A3 = 1.6898;\n\t\t\n\t\tdouble aW = a/W;\n\t\tdouble Eqn1 = A0 + (A1*aW) + (A2*(aW*aW)) + (A3*(aW*aW*aW));\n\t\t//I don't know if they need to be able to see what the reference voltage is\n\t\tdouble Vr = initialV/Eqn1;\n\t\t*/\n\t\t//declaring constants\n\t\tdouble B0 = -0.5051;\n\t\tdouble B1 = 0.8857; \n\t\tdouble B2 = -0.1398;\n\t\tdouble B3 = 0.0002398;\n\t\t\n\t\tdouble VVr = V/Vr;\n\t\tdouble Eqn2 = B0 + (B1*VVr) + (B2*(VVr*VVr)) + (B3*(VVr*VVr*VVr));\n\t\t//crack size, A calculated for any voltage\n\t\tdouble A = Eqn2 * W;\n\t\treturn A;\n\t\t\n\t}", "public double resta(double a, double b) {\n\t\treturn a-b;\n\t}", "static int count(int a, int b, int n) \n\t{ \n\t\t\n\t\t// function call to pre-calculate the \n\t\t// factorials and modInverse of factorials \n\t\tpregenFact(); \n\t\tpregenInverse(); \n\n\t\t// if a and b are same \n\t\tif (a == b) \n\t\t{ \n\t\t\treturn (check(a * n, a, b)); \n\t\t} \n\n\t\tint ans = 0; \n\t\tfor (int i = 0; i <= n; ++i) \n\t\t{ \n\t\t\tif (check(i * a + (n - i) * b, a, b) == 1) \n\t\t\t{ \n\t\t\t\tans = (ans + comb(n, i)) % mod; \n\t\t\t} \n\t\t} \n\t\treturn ans; \n\t}", "private float calculateAbsorption() {\n int i = getWeightedBucket();\n \n//System.out.println(\" bucket: \" + i);\n\n // the max modification is +/-5 % , broken into 0.5 % chunks\n float modifier = -0.05f;\n modifier += (float)(i * 0.005);\n \n return(modifier);\n }", "private int staticEval(Side p, Board b) {\n if (p.equals(Side.RED) && b.numOfSide(p) > C * Math.pow(b.size(), 2)) {\n return C0;\n } else if (p.equals(Side.BLUE)\n && b.numOfSide(p) > C * Math.pow(b.size(), 2)) {\n return C0;\n } else {\n return 0;\n }\n }", "float norm2();", "public double calculateExpectedDisagreement();", "public double calculateInformationGain (AbstractRule A, AbstractRule B)\n\t{\n\t\tdouble a = Math.log((double)(A.getPM() + C1)/(double)(A.getPM() + A.getNM() + C2))/Math.log(2);\n\t\tdouble b = Math.log((double)(B.getPM() + C1)/(double)(B.getPM() + B.getNM() + C2))/Math.log(2);\n\t\treturn a - b;\n\t}", "public int R_M(){\n\t\tBigInteger nminus1=n.subtract(BigInteger.ONE);\n\t\tdo{\n\t\t\tif(nminus1.mod(two.pow(a)).equals(BigInteger.ZERO)){\n\t\t\t\ttable.add(a);\n\t\t\t}\n\t\t\titerator++;\n\t\t\ta++;\n\t\t}while(!(two.pow(a).compareTo(n)>0));\n\t\t\n\t\ta=table.get(table.size()-1);\n\t\tBigInteger m=nminus1.divide(two.pow(a));\n\t\tint wlen=n.bitLength();\n\t\tBigInteger b;\n\t\tBigInteger z;\n\t\tfor(int i=0;i<iterations;i++){\n\t\t\tint straznik=0;\n\t\t\tint straznik1=0;\n\t\t\tdo{\n\t\t\t b=new BigInteger(wlen,new Random());\n\t\t\t}while(!(b.compareTo(BigInteger.ONE)>0) && !(b.compareTo(nminus1)<0));\n\t\t\tz=b.modPow(m, n);\n\t\t\tif(z.equals(BigInteger.ONE) || z.equals(nminus1)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int j=0;j<a-1;j++){\n\t\t\t\t\tz=z.pow(2).mod(n);\n\t\t\t\t\tif(z.equals(nminus1)){\n\t\t\t\t\t\tstraznik++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(z.equals(BigInteger.ONE)){\n\t\t\t\t\t\tstraznik1++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(straznik==1){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(straznik1==1){\n\t\t\t\t\tgetComposite();\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\tgetComposite();\n\t\t\treturn 0;\n\t\t}\n\t\tgetProbablyPrime();\n\t\treturn 1;\n\t\t}", "private double calcB1() {\n double[] dataX = dsX.getDataX();\n double[] dataY = dsY.getDataY();\n double sumX = 0;\n double sumY = 0;\n double sumXY = 0;\n double sumXsq = 0;\n\n for (int i = 0; i < dataX.length; i++) {\n sumX += dataX[i];\n sumY += dataY[i];\n sumXY += dataX[i] * dataY[i];\n sumXsq += Math.pow(dataX[i], 2);\n }\n return (((dataX.length * sumXY) - (sumX * sumY)) / ((dataX.length * sumXsq) - (Math.pow(sumX, 2))));\n }", "double trustCoefficientCentrality(User src, User tgt);", "private int mcCalc(int a, int b) {\n if (a == 1) {\n return b;\n } else if (a == 2) {\n return mc2[b / 16][b % 16] ^ 0x42;\n } else if (a == 3) {\n return mc3[b / 16][b % 16] ^ 0x42;\n }\n return 0;\n }", "public static int findGCF(int a, int b) {\r\n\t\tint GCF = 1;\r\n\t\tfor (int i = 1; i <= Math.abs(a); i++) {\r\n\t\t\t// loop to find greatest common factor\r\n\t\t\tif (((a % i) == 0) && ((b % i) == 0)) {\r\n\t\t\t\tGCF = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn GCF;\r\n\t}", "public static int discrete(double[] a) { \n double r = Math.random();\n double sum = 0.0;\n for (int i = 0; i < a.length; i++) {\n sum = sum + a[i];\n if (sum >= r) return i;\n }\n assert (false);\n return -1;\n }", "public void calculateEffectiveness(){\n double[] typeEffective = new double[18];\n \n for(int i = 0; i < 18; i++){\n typeEffective[i] = tc.getEffectiveNumber(i, tc.convertType(type1));\n }\n \n if(type2 != null){\n for(int i = 0; i < 18; i++){\n typeEffective[i] *= tc.getEffectiveNumber(i, tc.convertType(type2));\n }\n }\n \n for(int i = 0; i < 18; i++){\n if(typeEffective[i] != 1){\n if(typeEffective[i] > 1){\n double[] newWeak = {i,typeEffective[i]};\n weak.add(newWeak);\n }else{\n double[] newStrong = {i,typeEffective[i]};\n strong.add(newStrong);\n }\n }\n }\n }", "double getCritChance();", "public double corr(DocumentVector other) {\n\t\tdouble mean1 = mean();\n\t\tdouble mean2 = other.mean();\n\t\t\n\t\tint n = Math.min(this.getAttCount(), other.getAttCount());\n\t\tdouble VX = 0, VY = 0;\n\t\tdouble VXY = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble deviate1 = this.getValueAsReal(i) - mean1;\n\t\t\tdouble deviate2 = other.getValueAsReal(i) - mean2;\n\t\t\t\n\t\t\tVX += deviate1 * deviate1;\n\t\t\tVY += deviate2 * deviate2;\n\t\t\tVXY += deviate1 * deviate2;\n\t\t}\n\t\t\n\t\tif (VX == 0 || VY == 0)\n\t\t\treturn Constants.UNUSED;\n\t\telse\n\t\t\treturn VXY / Math.sqrt(VX * VY);\n\t}", "float norm();", "private static int evaluateUpRightDiagonalStrength(UnderlyingArray array, final int x, final int y) {\n int strength = 0;\n for (int cY = y - 3; cY <= y + 1; cY += 2) {\n for (int cX = x - 1; cX <= x + 3; cX += 2) {\n strength += getRGBChannelsDifferenceSum(array.getRGB(cX, cY), array.getRGB(cX - 2, cY + 2));\n }\n }\n return strength;\n }", "public int generateStrength() {\n\t\tRandom rand = new Random();\n\t\tint strength = rand.nextInt(41) - 10;\n\t\treturn strength;\n\t}", "private static double FindR2(double[] _y, double[] _x)\n {\n double avg = FindMeanY(_y);\n double sum = 0;\n double yQuad = 0;\n\n // a = SolutionMatrix.get(1, 0);\n // b = SolutionMatrix.get(2, 0);\n // find average\n for(int i = 0; i < _y.length; i ++)\n {\n yQuad += Math.pow((_y[i] - avg), 2);\n }\n\n double Usefulnum1 = 0;\n double Usefulnum2 = 0;\n double Usefulnum3 = 0;\n\n double[] Equation = new double[d+1];\n\n // find equation\n for(int i = 0; i < SolutionMatrix.getColumnDimension(); i++)\n {\n //Usefulnum1 = SolutionMatrix.get((SolutionMatrix.getColumnDimension() - 1 - i), 0) * _x[i]; // a...z value\n for (int jj = d; jj > 0; jj--)\n {\n Usefulnum2 = SolutionMatrix.get(SolutionMatrix.getColumnDimension() - jj, 0) * _x[i];\n Usefulnum3 += Math.pow(_y[i] - Usefulnum2, 2);\n }\n }\n System.out.print(Usefulnum3);\n for(int i = 0; i < _y.length; i ++)\n {\n\n }\n\n return sum;\n }", "double getReliability();", "int getMaximalReplaceDistance(int usedColors);", "float getCostReduction();", "int getStrength(IBlockAccess iBlockAccess, BlockPos blockPos);", "private double determinanteCuadrada(){\n\t\tdouble deter = 1;\n\t\tdouble [][] matriz = this.clone().getComponentes();\n\t\t\t\t\n\t\tfor(int i=0;i<this.dimensionCol;i++){\n\t\t\tif(matriz[i][i]==0){\n\t\t\t\tif(this.intercambiarConRenglonNoNuloPorDebajo(matriz, i)==true){\n\t\t\t\t\tdeter *= (-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.llevarACeroPosicionesPorDebajo(matriz, i);\n\t\t\tdeter*=matriz[i][i];\n\t\t}\n\t\t\t\t\n\t\treturn deter;\n\t}", "public double calculateInformationGain (AbstractRule A)\n\t{\n\t\tdouble a = Math.log((double)(A.getPM() + C1)/(double)(A.getPM() + A.getNM() + C2))/Math.log(2);\n\t\treturn a;\n\t}", "public Feature withStrength(double s) {\n RealConjunctiveFeature result = (RealConjunctiveFeature) clone();\n if (!left.isDiscrete()) {\n result.left = left.withStrength(s);\n if (!right.isDiscrete()) result.right = right.withStrength(1);\n }\n else result.right = right.withStrength(s);\n return result;\n }", "private double d(Point a, Point b){\n\t\treturn Math.sqrt(Math.pow(b.getX()-a.getX(),2) + Math.pow(a.getY() - b.getY(), 2));\r\n\t}", "private static int evaluateDownRightDiagonalStrength(UnderlyingArray array, final int x, final int y) {\n int strength = 0;\n for (int cY = y - 3; cY <= y + 1; cY += 2) {\n for (int cX = x - 3; cX <= x + 1; cX += 2) {\n strength += getRGBChannelsDifferenceSum(array.getRGB(cX, cY), array.getRGB(cX + 2, cY + 2));\n }\n }\n return strength;\n }", "public double r() { return Math.sqrt(x*x + y*y); }", "protected abstract float _getGrowthChance();", "public static void main(String[] args) {\n\t\tint a = Integer.parseInt(args[0]);\n\t\tint c = Integer.parseInt(args[1]);\n\t\tint m = Integer.parseInt(args[2]);\n\t\tint x0 = Integer.parseInt(args[3]);\n\t\tint n = Integer.parseInt(args[4]);\n\n\t\t// conditions 1, 2, and 3 as defined in header comment\n\t\tboolean condition1 = (a > 0 && c > 0);\n\t\tboolean condition2 = (a < m && c < m && x0 < m);\n\t\tboolean condition3 = gcd(c, m) == 1;\n\n\t\t// with conditions checked, and since x % y = x % (-y)\n\t\t// under java's modulus operator, we will take the\n\t\t// absolute value of m to prevent any possible\n\t\t// exceptions resulting from negative values for m\n\t\tif (m < 0) {\n\t\t\tm *= -1;\n\t\t}\n\n\t\t// create 10 buckets to tally the LCF's distribution\n\t\t// each bucket is initialized to 0\n\t\tint[] distribution = new int[10];\n\n\t\t// find distribution\n\t\tint x = x0; // function initial value\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tx = (a * x + c) % m; // x has value x_i\n\n\t\t\t// since we want outputs from 0 to m-1\n\t\t\t// inclusive, and since java's modulus\n\t\t\t// operator produces negative output only\n\t\t\t// when the dividend is negative, and since\n\t\t\t// negative values for x_0 are acceptable;\n\t\t\t// we must perform negative checks on x\n\t\t\tif (x < 0) { // -m < x < 0\n\t\t\t\tx += m; // 0 < x < m\n\t\t\t}\n\n\t\t\t// find bucket for this x\n\t\t\tint bucket = 9;\n\n\t\t\t// since x < m, 10x < 10m\n\t\t\t// in this way, each bucket has a range\n\t\t\t// differing by at most 1 from each other\n\t\t\t// bucket\n\t\t\twhile (10 * x < bucket * m) {\n\t\t\t\tbucket--;\n\t\t\t}\n\t\t\t// increment count for the bucket of this x\n\t\t\tdistribution[bucket]++;\n\t\t}\n\n\t\t// calculate V as defined in header comment\n\t\tdouble v = pearsonChiSquare(distribution, n);\n\n\t\t// assemble output\n\t\tString output = \"\";\n\n\t\t// report condition check results\n\t\tif (condition1 && condition2 && condition3) {\n\t\t\toutput += \"Conditions satisfied\";\n\t\t} else { // at least one condition not satisfied\n\t\t\tif (!condition1) {\n\t\t\t\toutput += \"Condition 1 not satisfied\";\n\t\t\t}\n\n\t\t\tif (!condition2) {\n\t\t\t\t// check if line break needed\n\t\t\t\tif (!condition1) {\n\t\t\t\t\toutput += \"\\n\";\n\t\t\t\t}\n\n\t\t\t\toutput += \"Condition 2 not satisfied\";\n\t\t\t}\n\n\t\t\tif (!condition3) {\n\t\t\t\t// check if line break needed\n\t\t\t\tif (!(condition1 && condition2)) {\n\t\t\t\t\toutput += \"\\n\";\n\t\t\t\t}\n\n\t\t\t\toutput+= \"Condition 3 not satisfied\";\n\t\t\t}\n\t\t}\n\n\n\t\t// report V and decide function suitability\n\n\t\t// format V\n\t\tDecimalFormat fourPlaces = new DecimalFormat(\"0.0000\");\n\t\toutput += \"\\nV = \" + fourPlaces.format(v) + \"; \";\n\n\t\t// report conclusion\n\t\toutput += \"this function is \";\n\t\tif (v >= 3.325 && v <= 16.92) {\n\t\t\toutput += \"ok\";\n\t\t} else if (v >= 2.088 && v <= 21.67) {\n\t\t\toutput += \"suspicious\";\n\t\t} else {\n\t\t\toutput += \"rejected\";\n\t\t}\n\n\t\t// print report to standard output\n\t\tSystem.out.println(output);\n\t}", "public static double calculateAnalogyQuality(DirectedGraphAdapter<Concept> mapping)\n\t{\n\t\tList<Concept> schema = SchemaEngine.createSchema(mapping);\n\t\t//sort schema nodes by type (decreasing)\n\t\tCollections.sort(schema, new ConceptTypeComparator());\n\t\tfor(Concept s : schema)\n\t\t{\n\t\t\ts.score += initialMatchScore;\t//TODO could have different initialMatchScores for different concept types, like Forbus & Gentner\n\t\t\t//TODO don't include roles that aren't part of the schema itself! Actually, the role scores aren't included in the final tally; only nodes in the schema are added into the total score\n\t\t\tfor(Concept role : s.roles)\n\t\t\t{\n\t\t\t\tif(role != null && !(role instanceof AnonymousToken))\n\t\t\t\t{\n\t\t\t\t\trole.score += trickleDownFactor*s.score;\t//why does Forbus & Gentner use max{ W(MH2) + delta*W(MH1); 1.0}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//add up all scores from schema nodes\n\t\tdouble totalScore = 0;\n\t\tfor(Concept s : schema)\n\t\t{\n\t\t\ttotalScore += s.score;\n\t\t}\n\t\treturn totalScore;\n\t}", "public static double similarity(ColorHsv c1,ColorHsv c2){\n LOG.info(\"Ch1,\"+c1.toString()+\",Ch2:\"+c2.toString());\n //\n double avgHue = (c1.H + c2.H)/2;\n double distance = Math.abs(c1.H-avgHue);\n double differ = distance/avgHue;\n LOG.info(\"differ:\"+differ+\"distance:\"+distance+\",avgHue:\"+avgHue);\n return 1.00-differ;\n }", "public static int gcf(int [] operand) {\r\n \t\tint count = 1;\r\n \t\tint factor = 1;\r\n \t\twhile (count <= Math.min(Math.abs(operand[0]), operand[1])) { \r\n \t\t\t//Java had sign problems here if the numerator was negative\r\n \t\t\tif (Math.abs(operand[0]%count) == 0 && Math.abs(operand[1]%count) ==0) {\r\n \t\t\t\tfactor = count; \r\n \t\t\t}\r\n \t\t\tcount++;\r\n \t\t}\r\n \t\treturn (factor);\r\n \t}", "public abstract boolean isCongruent(LambdaTerm P);", "public int getNetworth();", "boolean hasStrength();", "private static int mixSigColor(int c1, int c2, int ratio) {//0~100\r\n return 0xff & (((c2 * ratio) + (c1 * (100 - ratio))) / 100);\r\n }", "@Override\r\n\tpublic Double getModel_fixed_correlation() {\n\t\treturn super.getModel_fixed_correlation();\r\n\t}", "public float getChance()\n {\n return 1.0f;\n }", "private double computeSumAlpha()\n\t{\n\t\tdouble sum = 0;\n\t\tdouble[] a = svm.getAlphas();\n\t\tfor(double d : a)\n\t\t\tsum += Math.abs(d);\n\t\treturn sum;\n\t}", "public abstract double calculatePenalty(int[] dimSpecMin, int[] dimSpecMax,\n\t\t\t\t\t\t\t\t\t\t\tBucket b);", "float getSpecialProb();", "@Override\r\n\tpublic double getRx() {\n\t\treturn 2 * this.a;\r\n\t}", "private static double dif(Color one, Color two) {\n\t\treturn Math.abs(one.getRed() - two.getRed()) + Math.abs(one.getGreen() - two.getGreen()) + Math.abs(one.getBlue() - two.getBlue());\n\t}", "public static double discriminant(double a, double b, double c) {\n\t\treturn (b * b) - (4 * a * c);\r\n\t}", "public double sampleDouble() {\n double x = sample01();\n if ( x < (b-a)/(c-a))\n x = Math.sqrt(x*(b-a)*(c-a)) + a;\n else\n x = c- Math.sqrt((1-x)*(c-a)*(c-b));\n return x;\n }", "public double contagionProbability(Person p)\n\t{\n\t\tif(p.getAge()<=18)\n\t\t{\n\t\t\treturn con_18*p.contagionProbability();\n\t\t}\n\t\tif(p.getAge()>18 && p.getAge()<=55)\n\t\t{\n\t\t\treturn con_18_55*p.contagionProbability();\n\t\t}\n\t\treturn con_up55*p.contagionProbability();\n\t}", "public boolean larger(CRational1 r) {\n\t\tint cn = (this.n * r.d) - (this.d * r.n);\r\n\t\tif (cn < 0)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "public static void checkUpdateProbabilityOnALLRelations()\r\n\t{\r\n\t\tint[] base_relations = {1,2,4,8,16,32,64,128};\r\n\t\tint r1,r2,r3;\r\n\t\tint total = 0;\r\n\t\tint update = 0;\r\n\t\tfor (int i = 0; i < 8; i++)\r\n\t\t{\r\n\t\t\t r1 = base_relations[i];\r\n\t\t\tfor(int j = 1; j < 255; j++)\r\n\t\t\t{\r\n\t\t\t\tr2 = j;\r\n\t\t\t\t/*if(r2 == 1 || r2 == 2 || r2 == 4 || r2 == 8 || r2 == 16 || r2 == 32 || r2 == 64 || r2 == 128)\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\telse*/\r\n\t\t\t\tfor(int k = 1; k < 255; k++)\r\n\t\t\t\t{ \r\n\t\t\t\t\tr3 = k;\r\n\t\t\t\t\t/*if(r3 == 1 || r3 == 2 || r3 == 4 || r3 == 8 || r3 == 16 || r3 == 32 || r3 == 64 || r3 == 128)\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\telse*/\r\n\t\t\t\t\t{\t\r\n\t\t\t\t\t\ttotal++;\r\n\t\t\t\t\t\tint new_r3 = SetOperators.intersection(r3, \r\n\t\t\t\t\t\t\t\tCompositionTable.LookUpTable(r1, r2));\r\n\t\t\t\t\t\tif(new_r3 != r3 && new_r3 != 0)\r\n\t\t\t\t\t\t\tupdate++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println((double)update/total);\r\n\t\t\t\t\r\n\t}", "public static int rollStrength(){\n num1 = (int)(Math.random()*(20-0+1)+0);\n return num1;\n }", "public static int calculateThrowScore(float a, float b, float c, Float res) {\r\n\t\treturn (int)(a * Math.pow(res - b, c));\r\n\t}", "float getConfidence();" ]
[ "0.56584805", "0.56118506", "0.53444", "0.5326102", "0.5313525", "0.5256102", "0.5254534", "0.52403766", "0.52393097", "0.5149645", "0.5141672", "0.50961816", "0.5084288", "0.5069822", "0.50615865", "0.5021533", "0.5011972", "0.50030065", "0.4982811", "0.49750236", "0.49750236", "0.49606338", "0.4959702", "0.49357274", "0.49247506", "0.48948994", "0.48940155", "0.48921362", "0.48878536", "0.48714936", "0.48635665", "0.48633605", "0.48597413", "0.4859643", "0.48557776", "0.48483515", "0.48482138", "0.48280516", "0.4826709", "0.48237562", "0.4819662", "0.48180205", "0.48144507", "0.4807122", "0.47928715", "0.47925207", "0.47892466", "0.47781804", "0.47648597", "0.4764775", "0.47565046", "0.4750058", "0.47424245", "0.47397488", "0.4734727", "0.47317943", "0.47313702", "0.47289088", "0.4723585", "0.47179314", "0.47149572", "0.47111005", "0.46971977", "0.4695052", "0.46904314", "0.46845672", "0.46819183", "0.46788922", "0.4678509", "0.4674489", "0.46734396", "0.4672907", "0.46689793", "0.4668369", "0.46651843", "0.4662938", "0.4660995", "0.4659624", "0.46558744", "0.46545976", "0.46498993", "0.46491617", "0.46486038", "0.46389064", "0.46377566", "0.46359995", "0.46278375", "0.4624309", "0.462026", "0.46139738", "0.4612237", "0.46097443", "0.46095523", "0.46061173", "0.4602057", "0.46014804", "0.45997515", "0.45980313", "0.4597835", "0.45977992" ]
0.65604615
0
compare A.Indefinite's > B.Definite's satisfaction or dissatisfaction
public double getIndefiniteDefiniteComparison(Detail a, Detail b) { //TODO use numIndefiniteProperties rather than numTotalProperties ?? double numProperties = a.getProperties().size(); if (numProperties == 0.0) return 0.0; double s = 0; for (PropertyValue aP : a.getProperties()) { if (aP instanceof IndefiniteValue) { IndefiniteValue iap = (IndefiniteValue) aP; double maxSat = 0; for (PropertyValue bP : getProperties(b, aP.getProperty())) { if (bP instanceof DefiniteValue) { DefiniteValue dbp = (DefiniteValue)bP; double sat = satisifies(iap, dbp); if (sat > maxSat) maxSat = sat; } } s += maxSat; } } return s / numProperties; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getIndefiniteIndefiniteComparison(Detail a, Detail b) {\n\t\t//TODO calculate indefinite -> indefinite detail mutual satisfaction / overlap */\n\t\treturn 0.0;\n\t}", "public void testComparisons() {\n\tfinal double small = Math.pow(2.0, -42);\n\n\t// Input: a, b\n\tdouble[][] input = new double[][] { new double[] { 1, 1 },\n\t\tnew double[] { 1, 2 }, new double[] { 1, 1 - small / 10 },\n\t\tnew double[] { 1, 1 + small / 10 },\n\n\t\tnew double[] { 0, 1 }, new double[] { 0, 0 },\n\t\tnew double[] { 0, -1 }, new double[] { 0, small / 100 },\n\t\tnew double[] { 2100000001.0001, 2100000001.0003 }, };\n\n\t// Output: less, equals\n\tboolean[][] output = new boolean[][] { new boolean[] { false, true },\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true },\n\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true }, };\n\n\tfor (int i = 0; i < input.length; ++i) {\n\t boolean l = StandardFloatingPointComparator.getDouble().less(\n\t\t input[i][0], input[i][1]);\n\t boolean e = StandardFloatingPointComparator.getDouble().equals(\n\t\t input[i][0], input[i][1]);\n\n\t boolean ne = StandardFloatingPointComparator.getDouble().notEquals(\n\t\t input[i][0], input[i][1]);\n\t boolean le = StandardFloatingPointComparator.getDouble()\n\t\t .lessOrEquals(input[i][0], input[i][1]);\n\t boolean g = StandardFloatingPointComparator.getDouble().greater(\n\t\t input[i][0], input[i][1]);\n\t boolean ge = StandardFloatingPointComparator.getDouble()\n\t\t .greaterOrEquals(input[i][0], input[i][1]);\n\n\t boolean less = output[i][0];\n\t boolean equals = output[i][1];\n\n\t boolean notEquals = !equals;\n\t boolean lessOrEquals = less || equals;\n\t boolean greater = !lessOrEquals;\n\t boolean greaterOrEquals = !less;\n\n\t assertFalse(l != less);\n\t assertFalse(g != greater);\n\t assertFalse(e != equals);\n\t assertFalse(ne != notEquals);\n\t assertFalse(le != lessOrEquals);\n\t assertFalse(ge != greaterOrEquals);\n\t}\n }", "public static int compareSafetyComputations() {\n\t\tSystem.out.println(\"Distance,Duration,Exhalation,Derived,Inferred\");\n\t\tfinal boolean[] derived_results = new boolean[10];\n\t\tfinal boolean[] inferred_results = new boolean[10];\n\t\tint correctInferences = 0;\n\t\tfor(int i = 0; i < derived_results.length; i++) {\n\t\t\tfinal int randomDistance = (int) (Math.random() * (LARGE_DISTANCE * 3));\n\t\t\tfinal int randomDuration = (int) (Math.random() * (LARGE_DURATION * 3));\n\t\t\tfinal int randomExhalation = (int) (Math.random() * (LARGE_EXHALATION_LEVEL * 3));\n\t\t\tderived_results[i] = isDerivedSafe(randomDistance, randomDuration, randomExhalation);\n\t\t\tinferred_results[i] = isInferredSafe(randomDistance, randomDuration, randomExhalation);\n\t\t\tSystem.out.println(randomDistance + COMMA + randomDuration + COMMA \n\t\t\t\t\t\t\t\t+ randomExhalation + COMMA + derived_results[i] + COMMA\n\t\t\t\t\t\t\t\t+ inferred_results[i]);\n\t\t}\n\t\tfor(int j = 0; j < derived_results.length; j++) {\n\t\t\tif(derived_results[j] == inferred_results[j]) {\n\t\t\t\tcorrectInferences++;\n\t\t\t}\n\t\t}\n\t\treturn correctInferences;\n\t}", "public boolean downwardTrend() {\n\t\tfor(int index = 1; index < NUM_DECADES; index++) {\n\t\t\tif(rank.get(index-1) >= rank.get(index)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public void testGreaterThanElement() {\n\t // fail(\"testGreaterThanElement\");\n \tCircuit circuit = new Circuit();\n \tDouble x1 = 0.5;\n \tAnd and = (And) circuit.getFactory().getGate(Gate.AND);\n\t\tNot not = (Not) circuit.getFactory().getGate(Gate.NOT);\n\t\tGte gte1 = (Gte) circuit.getFactory().getGate(Gate.GTE);\n \tand.setLeftInput(x1);\n \tnot.setInput(x1);\n \tnot.eval();\n \tand.setRightInput(not.getOutput());\n\t\tand.eval();\n \tgte1.setLeftInput(and.getOutput());\n\t\tgte1.setRightInput(x1);\n \tassertEquals( new Double(0.0), gte1.eval());\n }", "@Test\n public void compareTo_right() throws Exception {\n\n Full b5p7 = new Full(cardsB7p5);\n Full b8p5 = new Full(cardsB8P5);\n Full b8p5mixed = new Full(cardsB8P5mixed);\n Paire pair = new Paire(cardsPair);\n QuinteFlush quinteFlush = new QuinteFlush(cardsQuinteFlush);\n\n //b5p7 < b8p5\n assertEquals(-1, b5p7.compareTo(b8p5));\n //b8p5 = b8p5\n assertEquals(0, b8p5mixed.compareTo(b8p5));\n //b8p5 > b5p7\n assertEquals(1, b8p5.compareTo(b5p7));\n // full > paire\n assertEquals(1, b5p7.compareTo(pair));\n //full< QuiteFlush\n assertEquals(-1, b5p7.compareTo(quinteFlush));\n\n }", "private boolean checkGreedyDefense() {\r\n return enTotal.get(2)+1 < myTotal.get(2) && enTotal.get(0)+1 < myTotal.get(0);\r\n }", "@Override\r\n public int compare(Node o1, Node o2) {\r\n\r\n ArrayList<Litteral> solution1 = o1.getValeur();\r\n ArrayList<Litteral> solution2 = o2.getValeur();\r\n int satisfaitClauseNumberS1 = satInstance.satisfaitClauseNumber(solution1);\r\n int satisfaitClauseNumberS2 = satInstance.satisfaitClauseNumber(solution2);\r\n return satisfaitClauseNumberS2 - satisfaitClauseNumberS1;\r\n\r\n }", "private void checkStability() {\n double maxDeviation = Double.NEGATIVE_INFINITY;\n\n DeviationIterator itr = new DeviationIterator(currentOutcome, nActs);\n while (itr.hasNext()) {\n int[] devOutcome = itr.next();\n\n // this shouldn't happen\n if (eGame.getNumSamples(devOutcome) <= 0) {\n System.out.println(\"BRD: checking equilibrium with unsampled deviations!\");\n System.out.println(\"Current: \" + Arrays.toString(currentOutcome));\n System.out.println(\"Unsampled: \" + Arrays.toString(devOutcome));\n return;\n }\n\n double devBenefit = eGame.getPayoff(devOutcome, itr.getDeviatingPlayer()) -\n eGame.getPayoff(currentOutcome, itr.getDeviatingPlayer());\n\n maxDeviation = Math.max(maxDeviation, devBenefit);\n\n // terminate early; not better than one we have already confirmed\n if (maxDeviation >= confirmedStability) return;\n }\n\n if (maxDeviation < confirmedStability) {\n confirmedStability = maxDeviation;\n mostStableConfirmed = currentOutcome.clone();\n if (samplesToConfirmEquilibrium < 0 &&\n confirmedStability <= 0) {\n samplesToConfirmEquilibrium = eGame.getTotalNumSamples();\n }\n }\n }", "boolean hasAlreadCompareLose();", "private boolean compareMomenta(int[] a, int[] b){\n return ((a[0] == b[0]) &&\n (a[1]) == b[1]) ;\n }", "private boolean isGreater(BigInt rhs) {\n if (isPositive && !rhs.isPositive) {\n // rhs is negative and this is positive\n return true;\n } else if (!isPositive && rhs.isPositive) {\n // rhs is positive and this is negative\n return false;\n }\n // The numbers have the same sign\n\n if (number.size() > rhs.number.size()) {\n // This is longer than the other, so this is bigger if it positive\n return isPositive;\n } else if (number.size() < rhs.number.size()) {\n // This is shorter than the other, so the other is bigger if this positive\n return !isPositive;\n }\n\n for (int i = number.size() - 1; i >= 0; --i) {\n if (number.get(i) > rhs.number.get(i)) {\n return isPositive;\n } else if (number.get(i) < rhs.number.get(i)) {\n return !isPositive;\n }\n }\n\n return false;\n }", "public void boundsLex(int [] a , IntDomainVar [] x , int [] b,int j) throws ContradictionException{\n\n int i =0;\n\n\n while( i< n && a[i]==b[i]){\n\n\n if((x[i].getInf()==a[i] || x[i].updateInf(a[i], this, false)) &&\n (x[i].getSup()==b[i] || x[i].updateSup(b[i], this, false))){\n i++;\n }else{\n this.fail();\n }\n\n }\n\n\n if(i<n )\n if ((x[i].getInf()==a[i] || x[i].updateInf(a[i], this, false)) &&\n (x[i].getSup()==b[i] || x[i].updateSup(b[i], this, false))){\n }else{\n this.fail();\n }\n\n\n if(i==n || x[i].getNextDomainValue(a[i])<b[i]){\n return ;\n }\n\n i+=1;\n\n while(i<n && (b[i]+1 <= a[i]-1) && x[i].getInf()==b[i] && x[i].getSup()==a[i]){\n if(x[i].removeInterval(b[i]+1,a[i]-1, this, false)){\n i++;\n }else{\n this.fail();\n\n }\n }\n\n if(i<n) {\n if (b[i] + 1 <= a[i] - 1 && x[i].getInf() <= b[i] &&\n b[i] <= x[i].getSup() && x[i].getSup() >= a[i] && a[i] >= x[i].getInf()) {\n if (!x[i].removeInterval(b[i] + 1, a[i] - 1, this, false)) {\n this.fail();\n }\n }\n }\n\n }", "public boolean upwardTrend() {\n\t\tfor(int index = 1; index < NUM_DECADES; index++) {\n\t\t\tif(rank.get(index-1) <= rank.get(index)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean istVoll()\n\t{\n\t return (_spalte0 > 0) && (_spalte1 > 0) && (_spalte2 > 0);\n\t}", "public static int compareMT(Node A, Node B, Node goal){\r\n int mtA = misplacedTiles(A, goal);\r\n int mtB = misplacedTiles(B, goal);\r\n if (mtA<mtB)\r\n return -1;\r\n if (mtA>mtB)\r\n return 1;\r\n else\r\n return 0;\r\n }", "public static boolean almost_leq(double a, double b) {\n return almost_leq(a, b, PRECISION_DEFAULT);\n }", "public boolean check() {\n BigInteger t1 = y.modPow(int2, c.p);\n BigInteger t2 = x.modPow(int3, c.p);\n BigInteger t3 = ((t2.add(c.a.multiply(x))).add(c.b)).mod(c.p);\n return t1.compareTo(t3) == 0;\n }", "public static boolean compararAnoMesReferencia(Integer anoMesReferencia1, Integer anoMesReferencia2, String sinal) {\r\n\t\tboolean retorno = true;\r\n\r\n\t\t// Separando os valores de mês e ano para realizar a comparação\r\n\t\tString mesReferencia1 = String.valueOf(anoMesReferencia1.intValue()).substring(4, 6);\r\n\t\tString anoReferencia1 = String.valueOf(anoMesReferencia1.intValue()).substring(0, 4);\r\n\r\n\t\tString mesReferencia2 = String.valueOf(anoMesReferencia2.intValue()).substring(4, 6);\r\n\t\tString anoReferencia2 = String.valueOf(anoMesReferencia2.intValue()).substring(0, 4);\r\n\r\n\t\tif (sinal.equalsIgnoreCase(\"=\")) {\r\n\t\t\tif (!Integer.valueOf(anoReferencia1).equals(Integer.valueOf(anoReferencia2))) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (!Integer.valueOf(mesReferencia1).equals(Integer.valueOf(mesReferencia2))) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t} else if (sinal.equalsIgnoreCase(\">\")) {\r\n\t\t\tif (Integer.valueOf(anoReferencia1).intValue() < Integer.valueOf(anoReferencia2).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (Integer.valueOf(anoReferencia1).equals(Integer.valueOf(anoReferencia2))\r\n\t\t\t\t\t&& Integer.valueOf(mesReferencia1).intValue() <= Integer.valueOf(mesReferencia2).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (Integer.valueOf(anoReferencia2).intValue() < Integer.valueOf(anoReferencia1).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (Integer.valueOf(anoReferencia2).equals(Integer.valueOf(anoReferencia1))\r\n\t\t\t\t\t&& Integer.valueOf(mesReferencia2).intValue() <= Integer.valueOf(mesReferencia1).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public boolean greaterthan(Inatnum a) throws Exception{\n if((this.isZero() &&a.isZero())==true) {return false;}//if both this and a are both zero, it returns false because it is not greater than. \n if((this.isZero())==false&&a.isZero()==true) {return true;}//conditional returns if a is greater than this.\n if((this.isZero())==true&&a.isZero()==false) {return false;}//conditional returns if this is greater than a.\n else {return this.pred().greaterthan(a.pred()); }//recursive call to subtract one from this and a.\n }", "public boolean geq(Inatnum a) throws Exception {\n\t\tif((this.isZero() &&a.isZero())==true) {return true;}//if our first value is zero and our a value is zero then return true\n\t\tif((this.isZero())==false&&a.isZero()==true) {return true;}// if our first value isnt zero and our a value is then return true\n\t\tif((this.isZero())==true&&a.isZero()==false) {return false;}//if our first value is zero and our a value is not then return false\n\t\telse {return this.pred().geq(a.pred());\t}}", "public int compare(Solution f1, Solution f2) {\n \t\t\t\treturn f1.f - f2.f;\n \t\t\t}", "public int compareTo(Object x) {\n if (x instanceof Fish) {\n Fish f=(Fish)x;\n // lets compare by name\n // return name.compareTo(f.getName());\n //by fins\n if(fins<f.getFins()) return -1; //if fins of first are < fins of second\n if(fins==f.getFins()) return 0;\n return 1; // if fins of first are > fins of second\n }\n else {//panic\n System.out.println(\"Error: You can only compare fish to fish, duh!\");\n System.exit(1);\n }\n return 0;\n }", "public static boolean compararAnoMesReferencia(String anoMesReferencia1, String anoMesReferencia2, String sinal) {\r\n\t\tboolean retorno = true;\r\n\r\n\t\t// Separando os valores de mês e ano para realizar a comparação\r\n\t\tString mesReferencia1 = String.valueOf(anoMesReferencia1).substring(4, 6);\r\n\t\tString anoReferencia1 = String.valueOf(anoMesReferencia1).substring(0, 4);\r\n\r\n\t\tString mesReferencia2 = String.valueOf(anoMesReferencia2).substring(4, 6);\r\n\t\tString anoReferencia2 = String.valueOf(anoMesReferencia2).substring(0, 4);\r\n\r\n\t\tif (sinal.equalsIgnoreCase(\"=\")) {\r\n\t\t\tif (!Integer.valueOf(anoReferencia1).equals(Integer.valueOf(anoReferencia2))) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (!Integer.valueOf(mesReferencia1).equals(Integer.valueOf(mesReferencia2))) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t} else if (sinal.equalsIgnoreCase(\">\")) {\r\n\t\t\tif (Integer.valueOf(anoReferencia1).intValue() < Integer.valueOf(anoReferencia2).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (Integer.valueOf(anoReferencia1).equals(Integer.valueOf(anoReferencia2))\r\n\t\t\t\t\t&& Integer.valueOf(mesReferencia1).intValue() <= Integer.valueOf(mesReferencia2).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (Integer.valueOf(anoReferencia2).intValue() < Integer.valueOf(anoReferencia1).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (Integer.valueOf(anoReferencia2).equals(Integer.valueOf(anoReferencia1))\r\n\t\t\t\t\t&& Integer.valueOf(mesReferencia2).intValue() <= Integer.valueOf(mesReferencia1).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "static boolean bigint_gt(bigint a, bigint b)\n {\n if (a.bigint_sign && !b.bigint_sign)\n return true;\n else if (!a.bigint_sign && b.bigint_sign)\n return false;\n else\n {\n if (a.bigint_len > b.bigint_len)\n return a.bigint_sign;\n else if (a.bigint_len < b.bigint_len)\n return !a.bigint_sign;\n else\n for (int i = 0; i < a.bigint_len; i++)\n {\n int j = a.bigint_len - 1 - i;\n if (a.bigint_chiffres[j] > b.bigint_chiffres[j])\n return a.bigint_sign;\n else if (a.bigint_chiffres[j] < b.bigint_chiffres[j])\n return !a.bigint_sign;\n }\n return true;\n }\n }", "private boolean isApproximatelyEqual(Node n, Node first) {\r\n\t\tDouble nwD = n.getWeightValueUnsynchronized(\"value\");\r\n\t\tdouble nw = nwD==null ? 1.0 : nwD.doubleValue();\r\n\t\tDouble fwD = first.getWeightValueUnsynchronized(\"value\");\r\n\t\tdouble fw = fwD==null ? 1.0 : fwD.doubleValue();\r\n\t\treturn fw*_alphaFactor <= nw &&\r\n\t\t\t first.getNborsUnsynchronized().size()*_alphaFactor >= \r\n\t\t\t n.getNborsUnsynchronized().size();\r\n\t}", "public static int compareMO(Node A, Node B, Node goal){\r\n int mtA = myOwn(A, goal);\r\n int mtB = myOwn(B, goal);\r\n if (mtA<mtB)\r\n return -1;\r\n if (mtA>mtB)\r\n return 1;\r\n else\r\n return 0;\r\n }", "boolean test() {\n int comp = this._col1.value().compareTo(this._col2.value());\n if (comp < 0 && (this.compRep & LT) != 0\n || comp > 0 && (this.compRep & GT) != 0\n || comp == 0 && (this.compRep & EQ) != 0) {\n return true;\n }\n return false;\n }", "private boolean isDFltdFMin()\n {\n double fLow = (x2.getF(0) < x1.getF(0)) ? x2.getF(0) : x1.getF(0);\n double dF = Math.abs(fLowBor-fLow);\n return (dF < dFMin) ? true : false;\n }", "public static void main(String [] args){\n double a= 5+(4*5)/5;\n double b= (6*4%2)+15;\n System.out.println(\"a = \"+a);\n System.out.println(\"b = \"+b); \n \n //Ejemplo de operadores relacionales.\n boolean resultado1= a > b;\n boolean resultado2= a !=b; \n System.out.println(\"R1= \"+resultado1);\n System.out.println(\"R2= \"+resultado2); \n }", "public static boolean compare_dictdata(DictionaryData i, DictionaryData j)\r\n {\r\n if( i.frequency == j.frequency)\r\n {\r\n return j.word.compareTo(i.word) < 0; // i < j\r\n }\r\n return i.frequency < j.frequency;\r\n\r\n }", "@Override\n\tpublic int compare(Assignment a1, Assignment a2) {\n\t\tif (a1.weight > a2.weight && a1.deadline < a2.deadline) return -1;\n\t\tif (a1.weight > a2.weight && a1.deadline > a2.deadline) return 1;\n\t\tif (a1.weight < a2.weight && a1.deadline < a2.deadline) return -1;\n\t\tif (a1.weight < a2.weight && a1.deadline > a2.deadline) return 1;\n\t\tif (a1.weight == a2.weight && a1.deadline < a2.deadline) return -1;\n\t\tif (a1.weight == a2.weight && a1.deadline > a2.deadline) return 1;\n\t\tif (a1.weight < a2.weight) return 1;\n\t\tif (a1.weight > a2.weight) return -1;\n\t\treturn 0;\n\t}", "public boolean leq(Inatnum a) throws Exception {//purpose: to find if an innatum is less than our equal to another inatnum\n\t\tif((this.isZero() &&a.isZero())==true) {return true;}//if our this value is zero and our a value is zero then return true\n\t\tif((this.isZero())==false&&a.isZero()==true) {return false;}// if our this value isnt zero and our a value is then return false\n\t\tif((this.isZero())==true&&a.isZero()==false) {return true;}// if our this value is zero and our a value isnt then return true\n\t\telse {return this.pred().leq(a.pred());\t}}", "public final boolean greaterThanEquals() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue >= topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static void compare () {\r\n for (int i = 0; i < dim; i++) {\r\n for (int j = 0; j < dim; j++) {\r\n if (d[i][j] != adjacencyMatrix[i][j])// here \r\n {\r\n System.out.println(\"Comparison failed\");\r\n \r\n return;\r\n }\r\n }\r\n }\r\n System.out.println(\"Comparison succeeded\");\r\n }", "public static boolean almost_leq(double a, double b, long maxUlps) {\n return a <= b || almost_equals(a, b, maxUlps);\n }", "public boolean lessthan(Inatnum a) throws Exception{\n if((this.isZero() &&a.isZero())==true) {return false;}//if both this and a are both zero, it returns false because it is not less than.\n if((this.isZero())==false&&a.isZero()==true) {return false;}//conditional that check if a is less than this.\n if((this.isZero())==true&&a.isZero()==false) {return true;}//conditional that checks if this is less than a.\n else {return this.pred().lessthan(a.pred()); }}", "@Test\n void compareTo_Identical_AllParts()\n {\n runIsMatchTest(AnswerType.yes, AnswerType.yes, AnswerType.yes, AnswerType.yes, ContactMatchType.Identical);\n }", "public static boolean almost_greater(double a, double b) {\n if (almost_equals(a,b)) {\n return false;\n }\n return a > b;\n }", "public boolean almostEqual(double a, double b);", "public void checkIndependence(Node a, Node b, Node observed) {\n /*\n * Compute paths from a to b\n * */\n List<List<Node>> pathsFromAtoB = findUndirectedPaths(a, b);\n\n /*\n * Find if there is a path that contains observed\n * */\n for(List<Node> path : pathsFromAtoB) {\n for (Node node : path) {\n if (node.value == observed.value) {\n /*\n * At this point, we know that observed is on the path, between a and b\n * this means that there must be an edge that enters observed and an edge that exists observed\n * */\n System.out.println(a.value + \" _|_ \" + b.value + \" | \" + observed.value + \" - true\");\n return;\n }\n }\n }\n\n /*\n * The criteria isn't matched\n * */\n System.out.println(a.value + \" _|_ \" + b.value + \" | \" + observed.value + \" - false\");\n }", "public void testCompareBoolean() {\n\t\tboolean one = true;\n\t\tboolean two = false;\n\t\t//false ist kleiner wie true\n\t\tassertTrue(comp.compareBoolean(two, one) == -1);\n\t\tassertTrue(comp.compareBoolean(one, one) == 0);\n\t\tassertTrue(comp.compareBoolean(two, two) == 0);\n\t\tassertTrue(comp.compareBoolean(one, two) == 1);\n\t}", "public int igualA(Stack<String> sta) {\n\n double val1;\n double val2;\n int resp = -1;\n\n try {\n if (ComprobarNumero(sta.peek())) {\n val1 = Double.parseDouble(sta.pop());\n } else {\n val1 = hashmap.get(sta.pop());\n }\n\n if (ComprobarNumero(sta.peek())) {\n val2 = Double.parseDouble(sta.pop());\n } else {\n val2 = hashmap.get(sta.pop());\n }\n\n if (val1 == val2) {\n resp = 1;\n } else {\n resp = 0;\n }\n\n } catch (Exception e) {\n System.out.println(\"Error de Sintaxis\");\n }\n return resp;\n }", "@Test\n void compareTo_NoMatch_AllParts() {\n runIsMatchTest(AnswerType.no, AnswerType.no, AnswerType.no, AnswerType.no, ContactMatchType.NoMatch);\n }", "public boolean istrianglevalid(double semiPer) {\n //declare variables\n boolean checkA = true;\n boolean checkB = true;\n boolean checkC = true;\n \n if (semiPer >= sideA && semiPer >= sideB && semiPer >= sideC) {\n return true;\n } else {\n return false;\n }\n }", "protected boolean isSolutionBest(double solutionValue1, double solutionValue2){\n return tspProblem.isSolutionBest(solutionValue1, solutionValue2);\n }", "private boolean consistencyCheckC2Constraints(double[][] xResults, double[][] yResults, double[] alpha) {\n\t\tint n = mExplicitMDP.getNumStates();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble outxValue = GRBSolverUtils.getOutValue(i, xResults, mExplicitMDP);\n\t\t\tdouble outyValue = GRBSolverUtils.getOutValue(i, yResults, mExplicitMDP);\n\t\t\tdouble inyValue = GRBSolverUtils.getInValue(i, yResults, mExplicitMDP);\n\t\t\tboolean satisfied = GRBSolverUtils.approximatelyEqual(outxValue + outyValue - inyValue, alpha[i],\n\t\t\t\t\tmSettings.getFeasibilityTolerance());\n\n\t\t\tif (!satisfied) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean solve() {\n\t\tSet<String> noteWords = noteMap.keySet();\n\t\tSet<String> magazineWords = magazineMap.keySet();\n\t\tSystem.out.println(\"M containsAll N : \" + magazineWords.containsAll(noteWords));\n\t\tif (magazineWords.containsAll(noteWords)) {\n\t\t\tfor (String noteWord : noteWords) {\n\t\t\t\tif (noteMap.get(noteWord) > magazineMap.get(noteWord)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\n\t}", "@Override\n public int compareTo(UnconstrainedBidElement o) {\n return Double.compare(o.demandWatt, demandWatt);\n }", "public boolean esDeterministico(){\n NodoA x, y;\n x = primerElemento();\n y = x.getLigaDer();\n boolean bandera = true;\n while(x != cabeza){\n while(y != cabeza){\n if(y.getSimbolo().equals( x.getSimbolo())){\n \n if(!listaND.contains(x)){\n listaND.add(x);\n }\n \n bandera= false;\n }\n y = y.getLigaDer();\n }\n \n x = x.getLigaDer();\n y = x.getLigaDer();\n \n \n }\n \n return bandera;\n \n }", "public final boolean greaterThan() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue > topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean greaterEqualP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) >= (yRatio.numerator * x.denominator));\n }\n }\n }", "public static boolean compareListElements(ArrayList<Double> a,ArrayList<Double> b){\n\t\t\n\t\tif(a==null && b==null)\n\t\t\treturn true;\n\t\t\n\t\tif(a.size()!=b.size())\n\t\t\treturn false;\n\t\t\n\t\tint i=0,j,k;\n\t\t\n\t\twhile(i<a.size())\n\t\t{\n\t\t\tj=(int) (100*a.get(i));\n\t\t\tk=(int) (100*b.get(i));\n\t\t\t\n\t\t\tif(j!=k)\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public static boolean almost_equals(double a, double b, long maxUlps) {\n if (a == b) { // if two numbers are equal, then the are almost_equal\n return true;\n }\n\n // special case of comparing to zero.\n if (a == 0.0 || b == 0.0) {\n double comp = 1.0e-13; // should correspond to PRECISION_DEFAULT;\n if (maxUlps == PRECISION5) comp = 1.0e-5;\n if (maxUlps == PRECISION7) comp = 1.0e-7;\n if (maxUlps == PRECISION9) comp = 1.0e-9;\n if (maxUlps == PRECISION13) comp = 1.0e-13;\n if (Math.abs(a) < comp && Math.abs(b) < comp) {\n return true;\n }\n }\n\n //if (Double.isNaN(a) || Double.isNaN(b)) { // this operation is slooooooow\n // return false;\n // }\n if (!(a < b || b < a)) { // idiom to filter out NaN's\n return false;\n }\n if (Double.isInfinite(a) || Double.isInfinite(b)) {\n return false;\n }\n\n\n long aInt = Double.doubleToLongBits(a);\n\n // Make aInt lexicographically ordered as a twos-complement long\n if (aInt < 0)\n aInt = 0x8000000000000000l - aInt;\n\n // Make bInt lexicographically ordered as a twos-complement long\n long bInt = Double.doubleToLongBits(b);\n\n if (bInt < 0)\n bInt = 0x8000000000000000l - bInt;\n\n long intDiff = Math.abs(aInt - bInt); // This is valid because IEEE-754\n // doubles are required to be\n // lexically ordered\n\n if (intDiff <= maxUlps) {\n return true;\n }\n\n return false;\n }", "@Test\n public void compareHandTypesNegativeTest() {\n PokerHand hand1 = new PokerHand();\n hand1.setHandType(PokerHand.HandType.FLUSH);\n PokerHand hand2 = new PokerHand();\n hand2.setHandType(PokerHand.HandType.FOUROFAKIND);\n\n int result = hand1.compareTo(hand2);\n\n Assert.assertTrue(result < 0);\n }", "public int mayorOIgualQue(Stack<String> sta) {\n\n double val1;\n double val2;\n int resp = -1;\n\n try {\n if (ComprobarNumero(sta.peek())) {\n val1 = Double.parseDouble(sta.pop());\n } else {\n val1 = hashmap.get(sta.pop());\n }\n\n if (ComprobarNumero(sta.peek())) {\n val2 = Double.parseDouble(sta.pop());\n } else {\n val2 = hashmap.get(sta.pop());\n }\n\n if (val1 >= val2) {\n resp = 1;\n } else {\n resp = 0;\n }\n\n } catch (Exception e) {\n System.out.println(\"Error de Sintaxis\");\n }\n return resp;\n }", "public abstract String representInequality();", "@Test\n public void compareTo() {\n assertTrue(DATE_A.compareTo(DATE_A) == 0);\n\n // testing recess week and reading week.\n assertTrue(DATE_READING.compareTo(DATE_AFTER_READING) == -1);\n assertTrue(DATE_RECESS.compareTo(DATE_AFTER_RECESS) == -1);\n }", "private int compareA(AState s1, AState s2) {\n if (s1.getPrice() > s2.getPrice())\n return 1;\n if (s1.getPrice()< s2.getPrice())\n return -1;\n else\n return 0;\n\n }", "@Test\n @DisplayName(\"Test should detect inequality between unequal states.\")\n public void testShouldResultInInequality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Goodbye\");\n\n Assertions.assertThat(os1).isNotEqualTo(os2);\n }", "public final BooleanDataValue greaterOrEquals(DataValueDescriptor left,\n\t\t\t\t\t\t\t DataValueDescriptor right)\n\t\t\t\t\t\t\t\tthrows StandardException\n\t{\n\t\tboolean isGreaterEquals = false;\n\n\t\tif (left.isNull() || right.isNull())\n\t\t{\n\t\t\tisGreaterEquals = false;\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\tisGreaterEquals = SQLBinary.compare(left.getBytes(), right.getBytes()) >= 0;\n\t\t}\n\n\t\treturn SQLBoolean.truthValue(left,\n\t\t\t\t\t\t\t\t\t right,\n\t\t\t\t\t\t\t\t\t isGreaterEquals);\n\t}", "public int menorOIgualQue(Stack<String> sta) {\n\n double val1;\n double val2;\n int resp = -1;\n\n try {\n if (ComprobarNumero(sta.peek())) {\n val1 = Double.parseDouble(sta.pop());\n } else {\n val1 = hashmap.get(sta.pop());\n }\n\n if (ComprobarNumero(sta.peek())) {\n val2 = Double.parseDouble(sta.pop());\n } else {\n val2 = hashmap.get(sta.pop());\n }\n\n if (val1 <= val2) {\n resp = 1;\n } else {\n resp = 0;\n }\n\n } catch (Exception e) {\n System.out.println(\"Error de Sintaxis\");\n }\n return resp;\n }", "public boolean greaterP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) > (yRatio.numerator * x.denominator));\n }\n }\n }", "public int compare(Key<Double, Double> a, Key<Double, Double> b){\n\t\t\tif (a.getFirst() < b.getFirst()){\n\t\t\t\treturn -1;\n\t\t\t} else if (a.getFirst() == b.getFirst()){\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}", "public boolean isBullish(){\n return (Double.compare(this.open, this.close) < 0) ? true : false;\r\n }", "private boolean compare(ValueType first, ValueType second) {\r\n // TODO\r\n return false;\r\n }", "@Override\r\n public int compareTo(QuestionInfo a) {\n \r\n if (this.grauDeEquilibrio > a.grauDeEquilibrio)\r\n return -1;\r\n \r\n else if (this.grauDeEquilibrio < a.grauDeEquilibrio)\r\n return 1;\r\n else\r\n return 0;\r\n }", "private Comparison compareValues(SimpleNode first, SimpleNode second) {\n return Objects.equals(first.jjtGetValue(), second.jjtGetValue()) ? Comparison.IS_EQUAL\n : Comparison.notEqual(\"Node values differ: \" + first.jjtGetValue() + \" vs \" + second.jjtGetValue());\n }", "@Override\n public boolean isGreater(Query e1, Query e2) {\n return this.compare(e1,e2) == this.GREATER;\n }", "public void checkUnsatisfiability() throws Exception{\n\t\t\n\t\tLogOutput.printAlways(\"\\nUNSATISFIABILITY\");\n\t\t\n\t\t\n\t\t//Transform mappings 2 owl\n\t\tgetOWLAxioms4Mappings();\n\t\t\t\t\n\t\t//Reason\n\t\tsetUpReasoner(false);\n\t\t\n\t\tinit = Calendar.getInstance().getTimeInMillis();\n\t\t\n\t\tint unsat=0;\n\t\tint unknown=0;\n\t\t\n\t\tint num_class=0;\n\t\t\n\t\tint state;\n\t\t\n\t\tfor (OWLClass cls: reasoner_access.getOntology().getClassesInSignature()){\n\t\t\t\n\t\t\t//LogOutput.printAlways(\"Is unsat?? \" + cls.toString());\n\t\t\t\n\t\t\t/*if (!reasoner_access.isSatisfiable(cls)){\n\t\t\t\tunsat++;\n\t\t\t\tLogOutput.printAlways(cls + \"- UNSAT\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tLogOutput.printAlways(cls + \"- SAT\");\n\t\t\t}*/\n\t\t\t\n\t\t\tnum_class++;\n\t\t\t\n\t\t\tstate = reasoner_access.isSatisfiable_withTimeout(cls, 10);\n\t\t\t\n\t\t\tif (state == reasoner_access.UNSAT){\n\t\t\t\tunsat++;\n\t\t\t\t//LogOutput.printAlways(cls + \"- UNSAT\");\n\t\t\t}\n\t\t\telse if (state == reasoner_access.UNKNOWN){\n\t\t\t\tunknown++;\n\t\t\t\tLogOutput.printAlways(\"\\t\" + cls.getIRI().toString() + \"- UNKNOWN SAT. Test: \" + num_class);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tfin = Calendar.getInstance().getTimeInMillis();\n\t\t\n\t\tdouble time = (float)((double)fin-(double)init)/1000.0;\n\t\t\n\t\t\n\t\tLogOutput.printAlways(\"\\tUNSAT classes: \" + unsat + \" of \" + reasoner_access.getOntology().getClassesInSignature().size());\n\t\tLogOutput.printAlways(\"\\tUNKNOWN classes: \" + unknown + \" of \" + reasoner_access.getOntology().getClassesInSignature().size());\n\t\tLogOutput.printAlways(\"\\tTIME checking unsatisfiability (s): \" + time + \n\t\t\t\t\", Averageper class: \" + Utilities.getRoundValue(\n\t\t\t\t\t\t(time/((double)reasoner_access.getOntology().getClassesInSignature().size())),\n\t\t\t\t\t\t8));\n\t}", "public static int comp( double a, double b, double relTol, double absTol ) {\n return equal( a, b, relTol, absTol ) ? 0 : ( a < b ? -1 : 1 );\n }", "public static boolean almost_greater(double a, double b, long maxUlps) {\n if (almost_equals(a, b, maxUlps)) {\n return false;\n }\n return a > b;\n }", "Boolean getCompletelyCorrect();", "public final BooleanDataValue greaterThan(DataValueDescriptor left,\n\t\t\t\t\t\t\t DataValueDescriptor right)\n\t\t\t\t\t\t\t\tthrows StandardException\n\t{\n\t\tboolean isGreaterThan = false;\n\n\t\tif (left.isNull() || right.isNull())\n\t\t{\n\t\t\tisGreaterThan = false;\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\tisGreaterThan = SQLBinary.compare(left.getBytes(), right.getBytes()) > 0;\n\t\t}\n\n\t\treturn SQLBoolean.truthValue(left,\n\t\t\t\t\t\t\t\t\t right,\n\t\t\t\t\t\t\t\t\t isGreaterThan);\n\t}", "public boolean isBearish(){\n return (Double.compare(this.open, this.close) > 0) ? true : false;\r\n }", "public int isGreaterThan(PokerHand otherHand)\n\t{\n\t\tint rank1 = this.getValue();\n\t\tint rank2 = otherHand.getValue();\n\t\tif(rank1 == rank2) return 0;\n\t\telse if(rank1 < rank2) return 1;\n\t\telse return -1;\n\t}", "private boolean greater(int i, int j) {\r\n\r\n return compare(pq[i], pq[j]) > 0;\r\n\r\n }", "public AbstractBoolean greater(Interval other){\n\t\ttry {\n\t\t\t// If this.max > this.min then True\n\t\t\tif ((!this.low.equals(\"-Inf\"))\n\t\t\t\t\t&& (!other.high.equals(\"+Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.low) > Integer.parseInt(other.high))\n\t\t\t\treturn AbstractBoolean.True();\n\n\t\t\t// If this.min < other.max then False\n\t\t\tif ((!other.low.equals(\"-Inf\"))\n\t\t\t\t\t&& (!this.high.equals(\"+Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.high) < Integer.parseInt(other.low))\n\t\t\t\treturn AbstractBoolean.False();\n\n\t\t} catch (NumberFormatException e){\n\t\t\treturn AbstractBoolean.TopBool();\n\t\t}\n\n\t\treturn AbstractBoolean.TopBool();\n\t}", "boolean isPossible() {\n return (sideOne + sideTwo > sideThree) && (sideTwo + sideThree > sideOne) && (sideThree + sideOne > sideTwo);\n }", "public boolean checkstability()\r\n\t\t{\r\n\t\t\tArrayList<String> previouselement = null;\r\n\t\t\t\r\n\t\t\tSystem.out.println(womenmatchinlist);\r\n\t\t\t\r\n\t\t\tfor(int l=0;l<womenmatchinlist.size();l++)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tString matchedman = menmatchinglist.get(l);\r\n\t\t\t\t\r\n\t\t\t\tString matchedwoman = womenmatchinlist.get(l);\r\n\t\t\t\t\r\n\t\t\t\tint matchedwomanindex = women.indexOf(matchedwoman);\r\n\t\t\t\t\r\n\t\t\t\tfor(int z=0;z<women.size();z++)\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\tif(womenpreflist[matchedwomanindex][z].equals(matchedman))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(z>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfor(int s=0;s<=z;s++)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tpreviouselement = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tpreviouselement.add(womenpreflist[matchedwomanindex][s]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\treturn true;\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\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(previouselement.isEmpty()==false)\r\n\t\t\t\t{\r\n\r\n\t\t\t\tfor(int t=0;t<previouselement.size();t++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tString higherpreferman = previouselement.get(t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// find current partner of higherpreferman\r\n\t\t\t\t\t\r\n\t\t\t\t\tint higherprefmenindex = menmatchinglist.indexOf(higherpreferman);\r\n\t\t\t\t\t\r\n\t\t\t\t\tString currentpartnerofhigher = womenmatchinlist.get(higherprefmenindex);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tint tempindex = men.indexOf(higherpreferman);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int i=0;i<numberofwomen;i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// if new partner comes before current partner then return true\r\n\t\t\t\t\t\tif(menpreflist[tempindex][i].equals(currentpartnerofhigher))\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t// otherwise return false\r\n\t\t\t\t\t\tif(womenpreflist[tempindex][i].equals(matchedwoman))\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\treturn false;\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\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn false;\r\n\t\t\t\r\n\t\t}", "public static boolean a_lteq_b(BigDecimal a, BigDecimal b) {\n\t\tif (a == null || b == null) {\n\t\t\tthrow new RuntimeException(\"a_lteq_b参数错误,a:[\" + a + \"],b:[\" + b + \"]\");\n\t\t}\n\t\tint result = a.compareTo(b);\n\t\tboolean c = result == -1 || result == 0;\n\t\tif (LOG.isDebugEnabled()) {\n\t\t\tLOG.debug(\"[\" + a + \" <= \" + b + \" is \" + c + \"]\");\n\t\t}\n\t\treturn c;\n\t}", "public int compare(Money moneyA, Money moneyB) throws NoSuchExchangeRateException {\n if (moneyA.amount.doubleValue() > convert(moneyB, moneyA.currency).amount.doubleValue()) return 1;\n else if (moneyA.amount.doubleValue() < convert(moneyB, moneyA.currency).amount.doubleValue()) return -1;\n else return 0;\n }", "static List<Integer> compareTriplets(List<Integer> a, List<Integer> b) {\r\n\t\tList<Integer> val = new ArrayList<>();\r\n\t\tint aScore = 0;\r\n\t\tint bScore = 0;\r\n\t\tfor (int i=0; i<3;i++) {\r\n\t\t\tfor (int j=0;j<3;j++) {\r\n\t\t\t\tif (i==j) {\r\n\t\t\t\t\tint tempA = a.get(i);\r\n\t\t\t\t\tint tempB = b.get(j);\r\n\t\t\t\t\tif (!(1<=tempA && tempA<=100 && 1<=tempB && 1<=tempB)) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (tempA<tempB) {\r\n\t\t\t\t\t\tbScore += 1;\r\n\t\t\t\t\t} else if (tempA>tempB) {\r\n\t\t\t\t\t\taScore += 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tval.add(aScore);\r\n\t\tval.add(bScore);\r\n\t\treturn val;\r\n\t}", "public double calculateExpectedDisagreement();", "public static int comp( float a, float b, float relTol, float absTol ) {\n return equal( a, b, relTol, absTol ) ? 0 : ( a < b ? -1 : 1 );\n }", "public boolean winner(){\n\t\treturn goals1 > goals2;\n\t}", "private int compareToFronteras(Pares f){\n\t\t\tint devolucion=0;\n\t\t\t\n\t\t\tif(this.distancia<f.getDistancia()){\n\t\t\t\tdevolucion=1;\n\t\t\t}else if(this.distancia==f.getDistancia()){\n\t\t\t\tdevolucion=0;\n\t\t\t}else if(this.distancia>f.getDistancia()){\n\t\t\t\tdevolucion=-1;\n\t\t\t}\n\t\t\t\n\t\t\treturn devolucion;\n\t\t}", "private boolean secondMilestoneAccomplished()\n {\n if( (firstMilestoneAccomplished()) &&\n (beliefs.puzzle[1][0] == 5) &&\n (beliefs.puzzle[1][1] == 6) &&\n (beliefs.puzzle[1][2] == 7) &&\n (beliefs.puzzle[1][3] == 8)\n )\n return true;\n else\n return false;\n }", "public boolean isValid() {\n\t\tif(goals1 == goals2 && !usedExtraTime)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public boolean isValid() {\n\n if (this.eTime == INFINITY) return false;\n\n int oldCountA = (a != null) ? a.getCount() : 0;\n int oldCountB = (b != null) ? b.getCount() : 0;\n\n if (countA != oldCountA || countB != oldCountB)\n return false;\n\n return true;\n }", "public boolean greaterThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == 1;\n }", "public boolean isBancrupt(){\r\n \treturn _budget <= 0;\r\n }", "public int compare(mess m){\n if (m.get_avail()!=this.get_avail()){\r\n \t//System.out.println(\"yes\");\r\n if (m.get_avail()>this.get_avail())return 1;\r\n else return -1;\r\n }\r\n else if (m.get_nutrition()!=this.get_nutrition()){\r\n \t//System.out.println(m.get_nutrition()+\" \"+this.get_nutrition());\r\n if (m.get_nutrition()>this.get_nutrition())return 1;\r\n else return -1;\r\n }\r\n else if (m.get_hygiene()!=this.get_hygiene()){\r\n if (m.get_hygiene()>this.get_hygiene())return 1;\r\n else return -1;\r\n }\r\n else{\r\n if (m.get_deliv()<this.get_deliv())return 1;\r\n else return -1;\r\n }\r\n }", "private boolean checkComp() {\n\t\tfor (int i = 0; i < comp.length; i++) {\n\t\t\tfor (int j = 0; j < comp[i].length; j++) {\n\t\t\t\tif (comp[i][j] != answer[i][j]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static boolean compare_face(int a, int b, String c){\n if (c.equals(\"g\")){ // The less than is never actually used in this scope. But who knows what the future holds?\n if (a > b){\n return true;\n }\n return false;\n }\n if (c.equals(\"l\")){\n if (a < b){\n return true;\n }\n return false;\n }\n return false; // Something went wrong here. But logically it'll never happen, so don't worry boys and girls.\n }", "@Override\r\n\t\t\tpublic int compare(Entry<Integer, Double> o1, Entry<Integer, Double> o2) {\n\t\t\t\tif ((o1.getValue()-o2.getValue())>0) {\r\n\t\t\t\t\t\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t} else if ((o1.getValue()-o2.getValue())<0) {\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t}", "boolean isNilMultipleBetMinimum();", "protected boolean isOverdue() {\n\t\t// this might be backwards, go back and check later\n\t\t/*int i = todaysDate.compareTo(returnDate);// returns 0, a positive num, or a negative num\n\t\tif (i == 0) { return false;}\t\t// the dates are equal, not overdue\n\t\telse if (i > 0) { return true; }\t// positive value if the invoking object is later than date\n\t\telse { return false; } */\t\t\t// negative value if the invoking object is earlier than date\n\t\t\n\t\t// can also do\n\t\tif (todaysDate.getTime() > returnDate.getTime() ) { return true; }\n\t\telse { return false; }\t// if the difference in time is less than or equal\n\t}", "public int compare(Question q1, Question q2) {\n if (formula(q1) > formula(q2)) {\n return 1;\n } else if (formula(q1) < formula(q2)) {\n return -1;\n }\n return 0;\n }", "public int compare(Expense ideaVal1, Expense ideaVal2) {\n Long val1 = ideaVal1.getCurrentDate();\n Long val2 = ideaVal2.getCurrentDate();\n return val2.compareTo(val1);\n }" ]
[ "0.68039817", "0.5641907", "0.55098873", "0.54901373", "0.5473233", "0.54713356", "0.54324853", "0.5426857", "0.54268545", "0.5412635", "0.5384436", "0.52956194", "0.5234173", "0.52271974", "0.51934445", "0.5176381", "0.51678485", "0.5151179", "0.514417", "0.51324373", "0.5110365", "0.5105902", "0.50959826", "0.50883853", "0.5084482", "0.5073151", "0.50655586", "0.5043865", "0.5037549", "0.5035312", "0.5021594", "0.5017438", "0.5017065", "0.50111234", "0.5010648", "0.5007525", "0.49881163", "0.49811408", "0.49790254", "0.49776465", "0.49660674", "0.49583644", "0.4951033", "0.49501252", "0.4949413", "0.4941882", "0.4941013", "0.49169996", "0.49076742", "0.49062568", "0.49044627", "0.4889701", "0.4883049", "0.48822898", "0.48741865", "0.48684135", "0.48662788", "0.48652643", "0.48589548", "0.48532072", "0.4844717", "0.48427075", "0.48347044", "0.48332065", "0.4826259", "0.482383", "0.4812091", "0.47953203", "0.47936442", "0.47922307", "0.47899255", "0.47891742", "0.47785348", "0.47770777", "0.47765547", "0.47748673", "0.47748294", "0.47666925", "0.47595403", "0.4757661", "0.47532403", "0.47522953", "0.47497603", "0.47496653", "0.47473678", "0.47442544", "0.47433135", "0.47418562", "0.47391403", "0.47383204", "0.473485", "0.47321704", "0.47275826", "0.47260755", "0.47171533", "0.47073546", "0.47040686", "0.4703148", "0.46993688", "0.46978635" ]
0.6213571
1
compare indefinite indefinite satisfaction or dissatisfaction
public double getIndefiniteIndefiniteComparison(Detail a, Detail b) { //TODO calculate indefinite -> indefinite detail mutual satisfaction / overlap */ return 0.0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int compareSafetyComputations() {\n\t\tSystem.out.println(\"Distance,Duration,Exhalation,Derived,Inferred\");\n\t\tfinal boolean[] derived_results = new boolean[10];\n\t\tfinal boolean[] inferred_results = new boolean[10];\n\t\tint correctInferences = 0;\n\t\tfor(int i = 0; i < derived_results.length; i++) {\n\t\t\tfinal int randomDistance = (int) (Math.random() * (LARGE_DISTANCE * 3));\n\t\t\tfinal int randomDuration = (int) (Math.random() * (LARGE_DURATION * 3));\n\t\t\tfinal int randomExhalation = (int) (Math.random() * (LARGE_EXHALATION_LEVEL * 3));\n\t\t\tderived_results[i] = isDerivedSafe(randomDistance, randomDuration, randomExhalation);\n\t\t\tinferred_results[i] = isInferredSafe(randomDistance, randomDuration, randomExhalation);\n\t\t\tSystem.out.println(randomDistance + COMMA + randomDuration + COMMA \n\t\t\t\t\t\t\t\t+ randomExhalation + COMMA + derived_results[i] + COMMA\n\t\t\t\t\t\t\t\t+ inferred_results[i]);\n\t\t}\n\t\tfor(int j = 0; j < derived_results.length; j++) {\n\t\t\tif(derived_results[j] == inferred_results[j]) {\n\t\t\t\tcorrectInferences++;\n\t\t\t}\n\t\t}\n\t\treturn correctInferences;\n\t}", "Boolean getCompletelyCorrect();", "public void checkUnsatisfiability() throws Exception{\n\t\t\n\t\tLogOutput.printAlways(\"\\nUNSATISFIABILITY\");\n\t\t\n\t\t\n\t\t//Transform mappings 2 owl\n\t\tgetOWLAxioms4Mappings();\n\t\t\t\t\n\t\t//Reason\n\t\tsetUpReasoner(false);\n\t\t\n\t\tinit = Calendar.getInstance().getTimeInMillis();\n\t\t\n\t\tint unsat=0;\n\t\tint unknown=0;\n\t\t\n\t\tint num_class=0;\n\t\t\n\t\tint state;\n\t\t\n\t\tfor (OWLClass cls: reasoner_access.getOntology().getClassesInSignature()){\n\t\t\t\n\t\t\t//LogOutput.printAlways(\"Is unsat?? \" + cls.toString());\n\t\t\t\n\t\t\t/*if (!reasoner_access.isSatisfiable(cls)){\n\t\t\t\tunsat++;\n\t\t\t\tLogOutput.printAlways(cls + \"- UNSAT\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tLogOutput.printAlways(cls + \"- SAT\");\n\t\t\t}*/\n\t\t\t\n\t\t\tnum_class++;\n\t\t\t\n\t\t\tstate = reasoner_access.isSatisfiable_withTimeout(cls, 10);\n\t\t\t\n\t\t\tif (state == reasoner_access.UNSAT){\n\t\t\t\tunsat++;\n\t\t\t\t//LogOutput.printAlways(cls + \"- UNSAT\");\n\t\t\t}\n\t\t\telse if (state == reasoner_access.UNKNOWN){\n\t\t\t\tunknown++;\n\t\t\t\tLogOutput.printAlways(\"\\t\" + cls.getIRI().toString() + \"- UNKNOWN SAT. Test: \" + num_class);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tfin = Calendar.getInstance().getTimeInMillis();\n\t\t\n\t\tdouble time = (float)((double)fin-(double)init)/1000.0;\n\t\t\n\t\t\n\t\tLogOutput.printAlways(\"\\tUNSAT classes: \" + unsat + \" of \" + reasoner_access.getOntology().getClassesInSignature().size());\n\t\tLogOutput.printAlways(\"\\tUNKNOWN classes: \" + unknown + \" of \" + reasoner_access.getOntology().getClassesInSignature().size());\n\t\tLogOutput.printAlways(\"\\tTIME checking unsatisfiability (s): \" + time + \n\t\t\t\t\", Averageper class: \" + Utilities.getRoundValue(\n\t\t\t\t\t\t(time/((double)reasoner_access.getOntology().getClassesInSignature().size())),\n\t\t\t\t\t\t8));\n\t}", "private void checkStability() {\n double maxDeviation = Double.NEGATIVE_INFINITY;\n\n DeviationIterator itr = new DeviationIterator(currentOutcome, nActs);\n while (itr.hasNext()) {\n int[] devOutcome = itr.next();\n\n // this shouldn't happen\n if (eGame.getNumSamples(devOutcome) <= 0) {\n System.out.println(\"BRD: checking equilibrium with unsampled deviations!\");\n System.out.println(\"Current: \" + Arrays.toString(currentOutcome));\n System.out.println(\"Unsampled: \" + Arrays.toString(devOutcome));\n return;\n }\n\n double devBenefit = eGame.getPayoff(devOutcome, itr.getDeviatingPlayer()) -\n eGame.getPayoff(currentOutcome, itr.getDeviatingPlayer());\n\n maxDeviation = Math.max(maxDeviation, devBenefit);\n\n // terminate early; not better than one we have already confirmed\n if (maxDeviation >= confirmedStability) return;\n }\n\n if (maxDeviation < confirmedStability) {\n confirmedStability = maxDeviation;\n mostStableConfirmed = currentOutcome.clone();\n if (samplesToConfirmEquilibrium < 0 &&\n confirmedStability <= 0) {\n samplesToConfirmEquilibrium = eGame.getTotalNumSamples();\n }\n }\n }", "public void evaluate_anti_fixedpoint() {\n // DES_action_type = 0;\n // JOptionPane.showMessageDialog(null, \"Evaluating the Anti-FP && Action-Type = \" +\n // DES_action_type);\n int[] last2_anti_fixedpoint_rounds = new int[64];\n for (int i = 0; i < 32; i++) {\n last2_anti_fixedpoint_rounds[i] = DES_anti_fixedpoint_sequence[9][i];\n last2_anti_fixedpoint_rounds[32 + i] = DES_anti_fixedpoint_sequence[8][i];\n }\n DES_anti_fixedpoint = select(last2_anti_fixedpoint_rounds, FP);\n\n for (int i = 0; i < 64; i++)\n DES_anti_fixedpoint[i] = 1 ^ DES_anti_fixedpoint[i];\n }", "Boolean getPartiallyCorrect();", "int getWrongAnswers();", "boolean hasCorrect();", "public boolean isSolved(){ return getRemainingValues() == 0; }", "@Test\n \tpublic void testCheckingAccusation() {\n \t\t//Set answer\n \t\tSolution answer = new Solution(\"Colonel Mustard\", \"Knife\", \"Library\");\n \t\tSolution guess = new Solution(\"Colonel Mustard\", \"Knife\", \"Library\");\n \t\tgame.setAnswer(answer);\n \t\t//Check correct accusation\n \t\t//correct if it contains the correct person, weapon and room\n \t\tAssert.assertTrue(game.checkAccusation(guess));\n \t\t//Check false accusation\n \t\t//not correct if the room is wrong, or if the person is wrong, if the weapon is wrong, or if all three are wrong\n \t\t//wrong room\n \t\tguess = new Solution(\"Colonel Mustard\", \"Knife\", \"Billiards Room\");\n \t\tAssert.assertFalse(game.checkAccusation(guess));\n \t\t//wrong weapon\n \t\tguess = new Solution(\"Colonel Mustard\", \"Lead Pipe\", \"Library\");\n \t\tAssert.assertFalse(game.checkAccusation(guess));\n \t\t//wrong person\n \t\tguess = new Solution(\"Ms. Peacock\", \"Knife\", \"Library\");\n \t\tAssert.assertFalse(game.checkAccusation(guess));\n \t}", "public boolean check() {\n BigInteger t1 = y.modPow(int2, c.p);\n BigInteger t2 = x.modPow(int3, c.p);\n BigInteger t3 = ((t2.add(c.a.multiply(x))).add(c.b)).mod(c.p);\n return t1.compareTo(t3) == 0;\n }", "private boolean checkGreedyDefense() {\r\n return enTotal.get(2)+1 < myTotal.get(2) && enTotal.get(0)+1 < myTotal.get(0);\r\n }", "public double calculateExpectedDisagreement();", "boolean hasAlreadCompareLose();", "boolean getCorrect();", "public double calculateSatisfaction(){\n\n\t\tdouble satisfaction=0;\n\t\tif(calculateSurveyQuantity()>=10){\n\n\t\t\tfor(int i=0; i<surveys.length; i++){\n\n\t\t\t\tif(surveys[i]!=null){\n\n\t\t\t\t\tsatisfaction+=surveys[i].calculateSatisfaction();\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tsatisfaction/=calculateSurveyQuantity();\n\n\t\t}\n\n\t\treturn satisfaction;\n\n\t}", "public boolean estValide() {\n\t\treturn ( estDedans() && estImpaire() ); \n }", "private boolean consistencyCheckC2Constraints(double[][] xResults, double[][] yResults, double[] alpha) {\n\t\tint n = mExplicitMDP.getNumStates();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble outxValue = GRBSolverUtils.getOutValue(i, xResults, mExplicitMDP);\n\t\t\tdouble outyValue = GRBSolverUtils.getOutValue(i, yResults, mExplicitMDP);\n\t\t\tdouble inyValue = GRBSolverUtils.getInValue(i, yResults, mExplicitMDP);\n\t\t\tboolean satisfied = GRBSolverUtils.approximatelyEqual(outxValue + outyValue - inyValue, alpha[i],\n\t\t\t\t\tmSettings.getFeasibilityTolerance());\n\n\t\t\tif (!satisfied) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean checkIfAnyUnsat() throws Exception{\n\t\t\n\t\tLogOutput.printAlways(\"\\nUNSATISFIABILITY\");\n\t\t\n\t\tlong initlocal = Calendar.getInstance().getTimeInMillis();\n\t\t\n\t\t\n\t\tint state;\n\t\tint num_class=0;\n\t\t\n\t\tfor (OWLClass cls: reasoner_access.getOntology().getClassesInSignature()){\n\t\t\t\n\t\t\tnum_class++;\n\t\t\t\n\t\t\tstate = reasoner_access.isSatisfiable_withTimeout(cls, 10);\n\t\t\t\n\t\t\tif (state == reasoner_access.UNSAT){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if (state == reasoner_access.UNKNOWN){\n\t\t\t\tLogOutput.printAlways(\"\\t\" + cls.getIRI().toString() + \"- UNKNOWN SAT. Test: \" + num_class);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tfin = Calendar.getInstance().getTimeInMillis();\n\t\t\n\t\tdouble time = (float)((double)fin-(double)initlocal)/1000.0;\n\t\t\n\t\treturn false;\n\t\t\n\t\t\n\t}", "public void calculerSatisfaction(AgentState etat) {\n\n int nb = this.getConstraints().size();\n if (GeographicAgentGeneralisation.logger.isDebugEnabled()) {\n GeographicAgentGeneralisation.logger\n .debug(\"calcul de satisfaction de l'agent \" + this\n + \" (nb contraintes=\" + nb + \")\");\n }\n\n // si l'agent n'a pas de contrainte ou qu'il est supprime, il est\n // parfaitement satisfait\n if (nb == 0 || this instanceof GeographicObjectAgent\n && ((GeographicObjectAgentGeneralisation) this).isDeleted()) {\n if (GeographicAgentGeneralisation.logger.isDebugEnabled()) {\n GeographicAgentGeneralisation.logger.debug(\" S=100\");\n }\n\n this.setSatisfaction(100.0);\n etat.setSatisfaction(100);\n\n // stocke les valeurs de satisfaction des contraintes\n for (Constraint cont : this.getConstraints()) {\n etat.getValeursMesures().put(cont.getClass().getSimpleName(),\n new Double(100));\n }\n return;\n }\n\n // calcul de la moyenne des satisfactions des contrainte ponderee par leur\n // importance\n double sommeSatisfactions = 0.0;\n double sommeImportances = 0.0;\n for (Constraint cont : this.getConstraints()) {\n // calcul de satisfaction de la contrainte\n GeographicConstraint cont_ = (GeographicConstraint) cont;\n cont_.computeSatisfaction();\n\n // stocke la valeur de satisfaction\n etat.getValeursMesures().put(cont.getClass().getSimpleName(),\n new Double(cont_.getSatisfaction()));\n\n sommeSatisfactions += cont_.getImportance() * cont_.getSatisfaction();\n sommeImportances += cont_.getImportance();\n\n if (GeographicAgentGeneralisation.logger.isTraceEnabled()) {\n GeographicAgentGeneralisation.logger\n .trace(\" Cont: \" + cont_.getClass().getSimpleName() + \" imp=\"\n + cont_.getImportance() + \" s=\" + cont_.getSatisfaction());\n }\n }\n if (sommeImportances == 0) {\n this.setSatisfaction(100.0);\n } else {\n this.setSatisfaction(sommeSatisfactions / sommeImportances);\n }\n etat.setSatisfaction(this.getSatisfaction());\n if (GeographicAgentGeneralisation.logger.isDebugEnabled()) {\n GeographicAgentGeneralisation.logger\n .debug(\" S=\" + this.getSatisfaction());\n }\n }", "public boolean checkstability()\r\n\t\t{\r\n\t\t\tArrayList<String> previouselement = null;\r\n\t\t\t\r\n\t\t\tSystem.out.println(womenmatchinlist);\r\n\t\t\t\r\n\t\t\tfor(int l=0;l<womenmatchinlist.size();l++)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tString matchedman = menmatchinglist.get(l);\r\n\t\t\t\t\r\n\t\t\t\tString matchedwoman = womenmatchinlist.get(l);\r\n\t\t\t\t\r\n\t\t\t\tint matchedwomanindex = women.indexOf(matchedwoman);\r\n\t\t\t\t\r\n\t\t\t\tfor(int z=0;z<women.size();z++)\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\tif(womenpreflist[matchedwomanindex][z].equals(matchedman))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(z>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfor(int s=0;s<=z;s++)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tpreviouselement = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tpreviouselement.add(womenpreflist[matchedwomanindex][s]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\treturn true;\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\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(previouselement.isEmpty()==false)\r\n\t\t\t\t{\r\n\r\n\t\t\t\tfor(int t=0;t<previouselement.size();t++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tString higherpreferman = previouselement.get(t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// find current partner of higherpreferman\r\n\t\t\t\t\t\r\n\t\t\t\t\tint higherprefmenindex = menmatchinglist.indexOf(higherpreferman);\r\n\t\t\t\t\t\r\n\t\t\t\t\tString currentpartnerofhigher = womenmatchinlist.get(higherprefmenindex);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tint tempindex = men.indexOf(higherpreferman);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int i=0;i<numberofwomen;i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// if new partner comes before current partner then return true\r\n\t\t\t\t\t\tif(menpreflist[tempindex][i].equals(currentpartnerofhigher))\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t// otherwise return false\r\n\t\t\t\t\t\tif(womenpreflist[tempindex][i].equals(matchedwoman))\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\treturn false;\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\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn false;\r\n\t\t\t\r\n\t\t}", "@Override\r\n public int compare(Node o1, Node o2) {\r\n\r\n ArrayList<Litteral> solution1 = o1.getValeur();\r\n ArrayList<Litteral> solution2 = o2.getValeur();\r\n int satisfaitClauseNumberS1 = satInstance.satisfaitClauseNumber(solution1);\r\n int satisfaitClauseNumberS2 = satInstance.satisfaitClauseNumber(solution2);\r\n return satisfaitClauseNumberS2 - satisfaitClauseNumberS1;\r\n\r\n }", "boolean hasSuit();", "boolean isUnsatisfiable(PluralTupleLatticeElement value);", "private boolean secondMilestoneAccomplished()\n {\n if( (firstMilestoneAccomplished()) &&\n (beliefs.puzzle[1][0] == 5) &&\n (beliefs.puzzle[1][1] == 6) &&\n (beliefs.puzzle[1][2] == 7) &&\n (beliefs.puzzle[1][3] == 8)\n )\n return true;\n else\n return false;\n }", "public boolean istVoll()\n\t{\n\t return (_spalte0 > 0) && (_spalte1 > 0) && (_spalte2 > 0);\n\t}", "private static boolean isItVisted(Node node) {\n\t\t\n\t\tboolean areNodesEqual = false;\n\t\tfor (Node temp : nodesCovered) {\n\t\t\tif(choice==1){\n\t\t\t\tif (node.count == temp.count) \t\t\t\t{\n\t\t\t\t\tif (areTheyEqual(temp.stateSpace, node.stateSpace)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t }\n\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tif (node.manhattanDist == temp.manhattanDist) {\n\t\t\t\t\t\tif (areTheyEqual(temp.stateSpace, node.stateSpace)) {\n\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\treturn areNodesEqual;\n\t}", "public static int check (int nhap){\n int f1 =0 ; int f2 = 1; int f3 = 1;\n \n if(nhap < 0 ){\n return -1;\n }else if(nhap == 0 || nhap ==1){\n return nhap;\n }else{\n for(int i = 2 ; i< nhap ; i++){\n f1 = f2;\n f2 = f3;\n f3 = f2 + f1;\n }\n }\n return f3;\n }", "public boolean estImpaire() {\n\t\treturn (((i+j)%2) == 1); \n }", "public double ComputeSatisfaction (LinkedList<Inhabitant> population) {\n\t\tint s = 0;\n\t\tfor(int i =0; i < population.size(); i++) {\n\t\t\ts = s + population.get(i).getSatisfaction();\n\t\t}\n\t\treturn s/(population.size());\n\t}", "boolean hasCorrectAnswer();", "public void isUnsatisfiable() throws SolverException, InterruptedException {\n if (context.getFormulaManager().getBooleanFormulaManager().isTrue(formulaUnderTest)) {\n failWithoutActual(\n Fact.fact(\"expected to be\", \"unsatisfiable\"),\n Fact.fact(\"but was\", \"trivially satisfiable\"));\n return;\n }\n\n checkIsUnsat(formulaUnderTest, Fact.simpleFact(\"expected to be unsatisfiable\"));\n }", "public boolean isSolvable() {\n int inversions = 0;\n int zrow = 0;\n int beg;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if (tiles[i][j] == 0)\n zrow = i;\n else {\n for (int k = i; k < n; k++) {\n beg = (k == i)? j+1 : 0;\n for (int l = beg; l < n; l++) {\n if (tiles[i][j] != 0 && tiles[k][l] != 0 && tiles[i][j] > tiles[k][l])\n inversions++;\n }\n }\n }\n }\n }\n if (n%2 == 1)\n return (inversions%2 == 0);\n return ((inversions+zrow)%2 == 1);\n }", "@Override\n public void computeSatisfaction() {\n\n }", "public boolean isSatisfied() {\n for (IntegerVariable v : integerVariables) {\n if (!v.isSatisfied()) {\n // Logger.fine(v.toString() + \" is not satisfied\");\n return false;\n }\n }\n for (Clause clause : clauses) {\n if (!clause.isSatisfied()) {\n // Logger.fine(clause.toString() + \" is not satisfied\");\n return false;\n }\n }\n return true;\n }", "public void evaluate_anti_fixedpoint_sequence() {\n // JOptionPane.showMessageDialog(null, \"Evaluating the Anti-FP sequence m[8]...m[17]\" );\n // DES_action_type = 1;\n int[][] init_anti_fixedpoint_sequence = new int[10][32];\n\n // Initialisierung\n // for (int p=0; p<10; p++)\n // for (int t=0; t<32; t++)\n // init_anti_fixedpoint_sequence[p][t] = 0;\n intialize_matrix(init_anti_fixedpoint_sequence);\n DES_anti_fixedpoint_sequence = init_anti_fixedpoint_sequence;\n\n for (int j = 0; j < 32; j++) {\n DES_anti_fixedpoint_sequence[0][j] = DES_m8[j];\n DES_anti_fixedpoint_sequence[1][j] = 1 ^ DES_m8[j];\n }\n\n for (int i = 2; i < 10; i++) {\n int[] input_SBoxes = exclusive_or(expand_32bit(DES_anti_fixedpoint_sequence[i - 1]), DES_K[i + 6]);\n int[] fmK = select(lookup_SBoxes(input_SBoxes), P);\n DES_anti_fixedpoint_sequence[i] = exclusive_or(DES_anti_fixedpoint_sequence[i - 2], fmK);\n }\n }", "private @NonNull DetailedConfigMismatchResult checkWithSat(@NonNull Cnf varModel, @NonNull Cnf varModelNegated,\n @NonNull String varName, @NonNull Formula feConstraint) {\n \n DetailedConfigMismatchResult mismatchResult;\n \n try {\n Formula featureEffect = or(not(new Variable(varName)), feConstraint); // Variable => feConstraint\n Cnf featureEffectAsCnf = converter.convert(featureEffect);\n \n // NOT (Variable => feConstraint)\n Cnf feViolationAsCnf = converter.convert(and(varName, not(feConstraint)));\n \n ISatSolver solver = SatSolverFactory.createSolver(varModel, false);\n \n boolean isCommonPart = solver.isSatisfiable(featureEffectAsCnf);\n \n if (!isCommonPart) {\n mismatchResult = new DetailedConfigMismatchResult(varName, feConstraint,\n DetailedMismatchResultType.CONTRADICTION);\n } else {\n boolean isVmMoreGeneral = solver.isSatisfiable(feViolationAsCnf);\n \n ISatSolver negatedSolver = SatSolverFactory.createSolver(varModelNegated, false);\n boolean isEffectMoreGeneral = negatedSolver.isSatisfiable(featureEffectAsCnf);\n \n if (isVmMoreGeneral) {\n mismatchResult = new DetailedConfigMismatchResult(varName, feConstraint,\n isEffectMoreGeneral ? DetailedMismatchResultType.PARTIAL_OVERLAP\n : DetailedMismatchResultType.VM_MORE_GENERAL);\n \n if (isEffectMoreGeneral) {\n // special case: check if the partial overlap is only possible when the feature is\n // deselected; if so, change the status\n \n // Variable AND featureEffect\n Cnf featureActive = converter.convert(and(new Variable(varName), featureEffect));\n \n if (!solver.isSatisfiable(featureActive)) {\n //only possible to satisfy with the varName negated\n mismatchResult = new DetailedConfigMismatchResult(varName, feConstraint,\n DetailedMismatchResultType.PARTIAL_OVERLAP_DEAD);\n }\n }\n } else {\n mismatchResult = new DetailedConfigMismatchResult(varName, feConstraint,\n isEffectMoreGeneral ? DetailedMismatchResultType.FORMULA_MORE_GENERAL\n : DetailedMismatchResultType.CONSISTENT);\n \n if (isEffectMoreGeneral && feConstraint.toString().equals(\"1\")) {\n // special case: the SAT checks do not properly detect equivalence with a feature effect\n // of TRUE\n // find if the variable is not implying anything in the FM, and if so, return a\n // CONSISTENT finding\n if (!checkVariableHasImplications(varModel, varName)) {\n mismatchResult = new DetailedConfigMismatchResult(varName, feConstraint,\n DetailedMismatchResultType.CONSISTENT);\n }\n }\n }\n \n }\n \n } catch (ConverterException | SolverException e) {\n mismatchResult = new DetailedConfigMismatchResult(varName, feConstraint, DetailedMismatchResultType.ERROR);\n LOGGER.logError(\"Could not translate feature effect constraint for variable: \"\n + varName + \", reason: \" + e.getMessage());\n }\n \n return mismatchResult;\n }", "private boolean checkSolutions() {\n\t\tfor (int i = 0; i < population; ++i) {\n\t\t\tif (populationArray.get(i).getFitness() == 0) {\n\t\t\t\tsolution = populationArray.get(i);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean checkComp() {\n\t\tfor (int i = 0; i < comp.length; i++) {\n\t\t\tfor (int j = 0; j < comp[i].length; j++) {\n\t\t\t\tif (comp[i][j] != answer[i][j]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean estDedans() {\n\t\treturn ( (i >= 0)&&(i < Constantes.N)&&(j >= 0)&&(j < Constantes.N) ); \n }", "@Override\n\tpublic boolean CheckFacts(){\n\t\tqueries.add( query );\n\t\t\n\t\t// while there are still queries to be proven\n\t\twhile ( queries.size() > 0 )\n\t\t{\n\t\t\t// take the first query off of queries to be checked \n\t\t\tString currentQuery = queries.remove(0);\n\n\t\t\t// add it to the list of queries that will be used to output (if true)\n\t\t\toutputFacts.add( currentQuery );\n\n\t\t\t// Compare currentQuery with every fact in Facts:\n\t\t\t// if it matches a fact then the current loop can end\n\t\t\tif( ! CompareToFacts( currentQuery ) )\n\t\t\t{\n\t\t\t\t// if not, compare currentQuery with every entailed literal\n\t\t\t\t// if it matches, add the literal(s) from the left\n\t\t\t\t// of the entailment onto queries\n\t\t\t\tif( ! CompareToClauses( currentQuery ) )\n\t\t\t\t{\n\t\t\t\t\t// if currentQuery still didn’t find a match then \n\t\t\t\t\t// the search has failed \n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// when queries is empty, it means there are no more queries to prove,\n\t\t// so the search was a success\n\t\treturn true;\n\t}", "private boolean consistencyCheckC1Constraints(double[][] xResults) {\n\t\tint n = mExplicitMDP.getNumStates();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble outxValue = GRBSolverUtils.getOutValue(i, xResults, mExplicitMDP);\n\t\t\tdouble inxValue = GRBSolverUtils.getInValue(i, xResults, mExplicitMDP);\n\t\t\tboolean satisfied = GRBSolverUtils.approximatelyEqual(outxValue, inxValue,\n\t\t\t\t\tmSettings.getFeasibilityTolerance());\n\n\t\t\tif (!satisfied) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private void repairUnsatisfiability(int maxExplanations){\n\t\n\t\texplanations_onto.setMaxExplanations(maxExplanations);\n\t\t//explanations_onto.setMaxExplanationSearch(500);\n\t\t\n\t\tinit = Calendar.getInstance().getTimeInMillis();\n\t\t\n\t\tint number=0;\n\t\t\n\t\tint numExplanations=0;\n\t\tint numExplanationsSearch=0;\n\t\t\n\t\tfor (OWLClass cls : reasoner_access.getUnsatisfiableClasses()){\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"\\nUNSAT CLASS: \" + cls.getIRI().toString());\n\t\t\tnumber++;\n\t\t\t\n\t\t\t//Subclass of nothing\n\t\t\texplanations_onto.handleExplanations(\n\t\t\t\t\tindex.getFactory().getOWLSubClassOfAxiom(cls, index.getFactory().getOWLNothing()));\n\t\t\t\n\t\t\tnumExplanations+=explanations_onto.getNumberExplanations();\n\t\t\tnumExplanationsSearch+=explanations_onto.getNumberExplanationSearch();\n\t\t\t\n\t\t\tif (explanations_onto.isTimedOut()){\n\t\t\t\tLogOutput.print(\"Time out in explanation extraction\");\t\t\t\n\t\t\t\t//return false; //TODO Allow output...\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif (number==10)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t\t\t\t\t\n\t\t}\n\t\t\n\t\tfin = Calendar.getInstance().getTimeInMillis();\n\t\n\t\tdouble time = (float)((double)fin-(double)init)/1000.0;\n\t\t\n\t\n\t\tLogOutput.printAlways(\"\\tAverage Explanations per unsat (s): \" + Utilities.getRoundValue(\n\t\t\t\t\t\t//(time/((double)reasoner_access.getUnsatisfiableClasses().size())),\n\t\t\t\t\t\t(numExplanations/((double)number)),\n\t\t\t\t\t\t4));\n\t\t\n\t\tLogOutput.printAlways(\"\\tAverage Explanation Search per unsat (s): \" + Utilities.getRoundValue(\n\t\t\t\t//(time/((double)reasoner_access.getUnsatisfiableClasses().size())),\n\t\t\t\t(numExplanationsSearch/((double)number)),\n\t\t\t\t4));\n\t\t\n\t\t\n\t\tLogOutput.printAlways(\"\\tTIME getting explanations per unsat classes (s): \" + time + \n\t\t\t\t\", Average per unsat class: \" + Utilities.getRoundValue(\n\t\t\t\t\t\t//(time/((double)reasoner_access.getUnsatisfiableClasses().size())),\n\t\t\t\t\t\t(time/((double)number)),\n\t\t\t\t\t\t4));\n\t\t\n\t\t\n\t}", "public int compareAns(int x)\n\t{\n\t\tif(x == correctAns)\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\treturn 0;\n\t\t}\n\t}", "@Test\r\n public void testSubtractionAsReversion() {\r\n Application.loadQuestions();\r\n assertTrue(Application.allQuestions.contains(\"21 - 7 = ?\") || Application.allQuestions.contains(\"21 - 14 = ?\"));\r\n }", "@Test\n\tprivate void checkPossibilityTest() {\n\t\tint[] input = new int[] {1,1,1};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {0,0,3};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {4,2,3};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {2,3,4,2,3};\n Assertions.assertThat(checkPossibility(input)).isFalse();\n\t}", "public void verifyAnswer() {\n\t\tint i=0;\n\t\tSystem.out.println(\"in verify answer function\");\n\t\tSystem.out.println(\"Number of Answers: \"+ansCount);\n\t\tSystem.out.println(\"User ans: \"+userEquation);\n\t\tif (ansCount==0)\n\t\t\tlb2.setText(\"There is no solution for this set\");\n\t\telse{\n\t\t\tint c=0;\n\t\t\t\n\t\t\twhile(c<ansCount) {\n\t\t\t\tif (solutions[i].equals(userEquation)) {\n\t\t\t\t\tSystem.out.println(\"Ans was Correct\");\n\t\t\t\t\tfinal long duration = System.nanoTime() - startTime;\n\t\t\t\t\tseconds = TimeUnit.NANOSECONDS.toSeconds(duration);\n\t\t\t\t\tlb2.setText(\"Congradulations! You took \"+seconds+\" seconds to find an answer.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t\tc++;\n\t\t\t\tSystem.out.println(\"C: \"+c);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Ans was not Correct\");\n\t}\n\t}", "private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }", "boolean isNilMultipleBetMinimum();", "public boolean istrianglevalid(double semiPer) {\n //declare variables\n boolean checkA = true;\n boolean checkB = true;\n boolean checkC = true;\n \n if (semiPer >= sideA && semiPer >= sideB && semiPer >= sideC) {\n return true;\n } else {\n return false;\n }\n }", "void findFeasible() {\n\n\t\tfor( int u = 0; u < neg.length; u++ ) {\t\n\t\t\tint i = neg[u];\n\t\t\tfor( int v = 0; v < pos.length; v++ ) {\t\n\t\t\t\tint j = pos[v];\n\t\t\t\tf[i][j] = -delta[i] < delta[j]? -delta[i]: delta[j];\n\t\t\t\tdelta[i] += f[i][j];\n\t\t\t\tdelta[j] -= f[i][j];\n\t\t\t}\n\t\t}\n\t}", "public void isSatisfiable() throws SolverException, InterruptedException {\n final BooleanFormulaManager bmgr = context.getFormulaManager().getBooleanFormulaManager();\n if (bmgr.isFalse(formulaUnderTest)) {\n failWithoutActual(\n Fact.fact(\"expected to be\", \"satisfiable\"),\n Fact.fact(\"but was\", \"trivially unsatisfiable\"));\n return;\n }\n\n try (ProverEnvironment prover = context.newProverEnvironment()) {\n prover.push(formulaUnderTest);\n if (!prover.isUnsat()) {\n return; // success\n }\n }\n\n reportUnsatCoreForUnexpectedUnsatisfiableFormula();\n }", "private int finalCheck(int n, int max1, int max2){\r\n\r\n //this represents all the numbers that are guaranteed not to be the answer.\r\n //the distance to the end of the array for each array from max is all the right hand numbers the answer cannot be\r\n\r\n n = n - (array1.length + array2.length - max1 - max2 - 2);\r\n\r\n int x0, x1, x2, x3;\r\n x0 = x1 = x2 = x3 = 0;\r\n\r\n //assigning all the values into 4 variables\r\n x0 = array1[max1];\r\n x1 = array2[max2];\r\n //sometimes the pairs are both assigned to the end of the list, so the lower hand value is checked for vailidity\r\n if(max1 > 0){\r\n x2 = array1[max1-1];\r\n }\r\n if(max2 > 0){\r\n x3 = array2[max2-1];\r\n }\r\n\r\n //put into an array, sorted and returned based on previous n calculation\r\n int[] array = new int[]{x0, x1, x2,x3};\r\n\r\n sorter(array);\r\n\r\n if(n==3){\r\n return array[1];\r\n } else if(n==2){\r\n return array[2];\r\n } else return array[3];\r\n }", "boolean isFinalAnswer(List<List<Integer>> puzzle) {\n List<Integer> expectedList = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9);\n\n // check row\n int rowMatchedCount = 9;\n for (int rowIndex = 0; rowIndex < 9; rowIndex++) {\n List<Integer> rowNums = new ArrayList<>(puzzle.get(rowIndex));\n Collections.sort(rowNums);\n if (rowNums.equals(expectedList)) {\n rowMatchedCount -= 1;\n }\n }\n\n // check col\n int colMatchedCount = 9;\n for (int colIndex = 0; colIndex < 9; colIndex++) {\n List<Integer> colNums = new ArrayList<>(getColValues(colIndex, puzzle));\n Collections.sort(colNums);\n if (colNums.equals(expectedList)) {\n colMatchedCount -= 1;\n }\n }\n\n // check block\n int blockMatchedCount = 9;\n for (List<Integer> rowAndCol : getAllBlockTopLeftPos()) {\n List<Integer> blockNums =\n new ArrayList<>(getBlockValues(rowAndCol.get(0), rowAndCol.get(1), puzzle));\n Collections.sort(blockNums);\n if (blockNums.equals(expectedList)) {\n blockMatchedCount -= 1;\n }\n }\n\n return (rowMatchedCount + colMatchedCount + blockMatchedCount) == 0;\n }", "@Test\n\tpublic void evalCrispDistanceWithFuzzyNumberOverlap2(){\n\t\tFuzzySet res = cs4.distance(dfn3);\n\t\tassertTrue(res instanceof FuzzyInterval);\n\t\tFuzzyInterval fuzzyRes = (FuzzyInterval)res;\n\t\t//Puntos limite\n\t\tassertTrue(fuzzyRes.getMembershipValue(0)==1);\n\t\tassertTrue(fuzzyRes.getMembershipValue(1)==1);\n\t\tassertTrue(fuzzyRes.getMembershipValue(2)==0);\n\t\t//Valores exteriores\n\t\tassertTrue(fuzzyRes.getMembershipValue(3)==0);\n\t\tassertTrue(fuzzyRes.getMembershipValue(-1)==0);\n\t}", "@Override\n\tpublic void doit() {\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint i = saisie_entier();\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint j = saisie_entier();\n\t\t// tous deux strictements positifs ou strictement négatifs? \n\t\t// vrai => produit positif\n\t\t// faux => produit negatif ou nul\n\t\tboolean Truth = TrueIfSameTruthValue(i,j,this.estposit);\n if (Truth){afficher_texte(UtilitaireChainesCommunes.resultat_positif);}\n else{ \n \t// l un des deux est soit de signe différent soit nul.\n \t// on vire le cas \"est de signe différent\" (on aurait pu faire l autre)\n \tboolean Truth2 = ((i < 0 && j > 0) || (i > 0 && j < 0));\n \tif (Truth2){afficher_texte(UtilitaireChainesCommunes.resultat_negatif);}\n \telse {afficher_texte(UtilitaireChainesCommunes.nombre_nul);}\n }\n\n\t}", "public static void main(String args[]) {\n boolean hasSATscore = true;\n boolean hasHighSchoolTranscript = true;\n boolean isInternational=false;\n boolean hasTOFELscore=false;\n\n /*\n * logical_step2: Check if the applicant is eligible to apply to the university\n * logical_step_details: the applicant must have a SAT score, a high school transcript and must have TOEFL score\n * if is an international student.\n * question_1: What does the following block of code do?\n * answer 1: Check if the applicant is eligible to apply to the university\n * question_2: What is the data type of the variable isElig?\n * answer 2: isElig is a Boolean data type\n * question_3: What is the value of: !isInternational. (value assigned above)\n * answer_3: the value of !isInternational is true\n * question_4: What is the output the following block of code?\n * answer_4: the code displays the following statement \"You eligibility requirement has been evaluated to :true\"\n */\n\n /*\n * stm_comment: isElig contains result of logical operation between the variables. logical and (&&), logical or(||) and not operator is used \n * question_1: Please explain how the value of isElig evaluated.\n * answer_1: isElig contains result of logical operation between the variables\n * question_2: Please state the operators used in the code block below.\n * answer_2: logical and (&&), logical or(||) and not operator is used .\n *\n */\n\n boolean isElig = hasSATscore && hasHighSchoolTranscript && (!isInternational || (isInternational && hasTOFELscore));\n System.out.println(\" Your eligibility requirement has been evaluated to :\" +isElig );\n\n\n }", "public static void isSAT(Predicate pred, int[] vList){\n\t\t\n\t\tStack<Integer> assignedVariables = new Stack<Integer>();\n\t\tboolean satisfiability = false;\n\t\twhile(assignedCount<vList.length/2){\n\t\t\tif(pred.isContainsVariable(assignedCount+1, vList.length/2) == 0){\n\t\t\t\tvList[assignedCount] = 0;\n\t\t\t\tvList[assignedCount+vList.length/2] = 1;\n\t\t\t\tassignedCount++;\n\t\t\t} else {\n\t\t\t\tfailedPoint = assignedCount+1;\n\t\t\t\tsatisfiability = assignVariableAndEvaluatePred(pred, vList, assignedVariables);\n\t\t\t\t\n\t\t\t\tif(!satisfiability){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(satisfiability){\n\t\t\t\n\t\t\tsats.add(vList);\n\t\t\t\n\t\t\tgetAllSat(pred, vList);\n\t\t\t\n\t\t\tSystem.out.println(\"Satisfied Assigned Values for Variables:\");\n\t\t\tfor(int[] arr: sats){\n\t\t\t\tfor(int i=0; i<vList.length/2; i++){\n\t\t\t\t\tSystem.out.print(arr[i] + \" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Satisfied Clauses:\");\n\t\t\tfor(int i : pred.clauses.keySet()){\n\t\t\t\tClause c = pred.clauses.get(i);\n\t\t\t\tif(i==pred.clauses.size()){\n\t\t\t\t\tSystem.out.print(\"(\" + c.getL1().value + \" V \" + c.getL2().value + \" V \" + c.getL3().value + \" )\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"(\" + c.getL1().value + \" V \" + c.getL2().value + \" V \" + c.getL3().value + \" ) ^ \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t} else {\n\t\t\tSystem.out.println(\"No Possible Variable Values for Satisfiability\");\n\t\t\t\n\t\t\tSystem.out.println(\"UnSatisfied Variable: \" + failedPoint);\n\t\t\t\n\t\t\tSystem.out.println(\"Backtracked Node Count: \" + backTrackedCount);\n\t\t\t\n\t\t\tSystem.out.println(\"UnSatisfied Clauses:\");\n\t\t\tfor(int i : pred.clauses.keySet()){\n\t\t\t\tClause c = pred.clauses.get(i);\n\t\t\t\tif(i==pred.clauses.size()){\n\t\t\t\t\tSystem.out.print(\"(\" + c.getL1().value + \" V \" + c.getL2().value + \" V \" + c.getL3().value + \")\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"(\" + c.getL1().value + \" V \" + c.getL2().value + \" V \" + c.getL3().value + \") ^ \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public boolean solve(){\n\t\treturn solve(0,0);\n\t}", "public static boolean isStable(ArrayList<int[]> assignment1, double[][] matrix) {\n\t\tboolean error = false;\n\t\tboolean result = true;\n\t\tfor (int i = 0, len = assignment1.size(); i < len; i++) {\n\t\t\tdouble value = matrix[assignment1.get(i)[0]][assignment1.get(i)[1]];\n\t\t\terror = false;\n\t\t\t// loop over entries\n\t\t\tfor (int x = 0; x < matrix.length; x++) {\n\t\t\t\t// check all solutions that are better\n\t\t\t\tif (matrix[x][assignment1.get(i)[1]] < value) {\n\t\t\t\t\t// find the result in this row\n\t\t\t\t\tdouble hook = -1;\n\t\t\t\t\tfor (int j = 0; j < assignment1.size(); j++) {\n\t\t\t\t\t\t// check if there is a result with this\n\t\t\t\t\t\tif (assignment1.get(j)[0] == x) {\n\t\t\t\t\t\t\thook = matrix[assignment1.get(j)[0]][assignment1.get(j)[1]];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// check if the result is better\n\t\t\t\t\tif (hook != -1) {\n\t\t\t\t\t\tif (matrix[x][assignment1.get(i)[1]] < hook) {\n\t\t\t\t\t\t\terror = true;\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// loop over entries\n\t\t\tfor (int y = 0; y < matrix[0].length; y++) {\n\t\t\t\t// check all solutions that are better\n\t\t\t\tif (matrix[assignment1.get(i)[0]][y] < value) {\n\t\t\t\t\t// find the result in this col\n\t\t\t\t\tdouble hook = -1;\n\t\t\t\t\tfor (int j = 0; j < assignment1.size(); j++) {\n\t\t\t\t\t\t// check if there is a result with this\n\t\t\t\t\t\tif (assignment1.get(j)[1] == y) {\n\t\t\t\t\t\t\thook = matrix[assignment1.get(j)[0]][assignment1.get(j)[1]];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// check if the result is better\n\t\t\t\t\tif (hook != -1) {\n\t\t\t\t\t\tif (matrix[assignment1.get(i)[0]][y] < hook) {\n\t\t\t\t\t\t\terror = true;\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\tif (error) {\n\t\t\t\tSystem.out.println(\"Unstable at \" + assignment1.get(i)[0] + \", \" + assignment1.get(i)[1]);\n\t\t\t\tresult = false;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private boolean finalMilestoneAccomplished()\n {\n if( (firstMilestoneAccomplished()) &&\n (secondMilestoneAccomplished()) &&\n (thirdMilestoneAccomplished()) &&\n (beliefs.puzzle[2][1] == 10) &&\n (beliefs.puzzle[2][2] == 11) &&\n (beliefs.puzzle[2][3] == 12) &&\n (beliefs.puzzle[3][1] == 14) &&\n (beliefs.puzzle[3][2] == 15)\n\n )\n return true;\n else\n return false;\n }", "private boolean mo3742a(int i) {\n int i2 = i * 2;\n if (this.f1426A[i2].f1416c != null) {\n ConstraintAnchor eVar = this.f1426A[i2].f1416c.f1416c;\n ConstraintAnchor[] eVarArr = this.f1426A;\n if (eVar != eVarArr[i2]) {\n int i3 = i2 + 1;\n return eVarArr[i3].f1416c != null && this.f1426A[i3].f1416c.f1416c == this.f1426A[i3];\n }\n }\n }", "public boolean satisfactory(String name) {\n // checks if student exists - stores index in student list if exists\n int exists = this.studentExists(name);\n\n // student does not exist\n if (this.studentExists(name) == -1) {\n return false;\n } else if ((studentList.get(exists)).getBestScore() > 0) {\n // student has best score above zero\n return true;\n } else {\n // student has all zero scores\n return false;\n }\n }", "public boolean LocalImprovementDNF (TableVar Variables, TableDat Examples) {\r\n IndDNF solucion = new IndDNF(Variables.getNVars(), Variables);\r\n QualityMeasures res, new_res;\r\n int mejor, cambio;\r\n int[] indices = new int[Variables.getNVars()];\r\n float[] evalua = new float[Variables.getNVars()];\r\n boolean improvement = true;\r\n boolean retValue = false;\r\n int control;\r\n\r\n // Store the pos of the best guy in \"mejor\"\r\n mejor = poblac.getBestGuy();\r\n\r\n // Copy in \"solucion\" the rule to improve\r\n for (int i=0; i<Variables.getNVars(); i++)\r\n for (int j=0; j<=Variables.getNLabelVar(i); j++)\r\n solucion.setCromElemGene(i, j, poblac.getCromElemGene(mejor,i,j));\r\n\r\n // Evaluate de rule and get the measures\r\n solucion.evalInd(this, Variables, Examples, false);\r\n Trials++; // Increment the number of trials\r\n res = solucion.getMedidas();\r\n\r\n control = 1;\r\n\r\n while ((improvement)&&(control<Variables.getNVars())) {\r\n improvement = false; // By now, there is no improvement\r\n for (int i=0; i<Variables.getNVars(); i++) {\r\n indices[i]=i;\r\n // It does not matter if the variable is discrete or continuous\r\n if (solucion.getCromElemGene(i,Variables.getNLabelVar(i))==0)\r\n // If variable does not actually takes part in the rule\r\n evalua[i] = -1;\r\n else {\r\n // The initial value is not stored cause we know the value is 1\r\n solucion.setCromElemGene(i, Variables.getNLabelVar(i),0);\r\n solucion.evalInd(this, Variables, Examples, false);\r\n Trials++;\r\n new_res = solucion.getMedidas();\r\n\r\n if ((new_res.getCnf() >= res.getCnf())&&(new_res.getSup() >= res.getSup())) {\r\n evalua[i] = new_res.getSup();\r\n improvement = true;\r\n }\r\n else\r\n evalua[i]=-1;\r\n // Restore initial values of \"solucion\"\r\n solucion.setCromElemGene(i, Variables.getNLabelVar(i), 1);\r\n }\r\n }\r\n\r\n if (improvement) {\r\n Utils.OrCrecIndex (evalua,0,Variables.getNVars()-1,indices);\r\n cambio = indices[Variables.getNVars()-1];\r\n for (int j=0; j<=Variables.getNLabelVar(cambio); j++)\r\n solucion.setCromElemGene(cambio, j, 0);\r\n\r\n res.setSup(evalua[Variables.getNVars()-1]);\r\n // Important: take into account not to eliminate all the variables of the rule\r\n\r\n // If there is improvement, set return value to true\r\n retValue = true;\r\n control++;\r\n\r\n }\r\n } // End while \"improvement\"\r\n\r\n // Store the new rule if it was improved\r\n if (retValue==true){\r\n for (int i=0; i<Variables.getNVars(); i++)\r\n for (int j=0; j<=Variables.getNLabelVar(i); j++)\r\n poblac.setCromElemGene(mejor, i, j, solucion.getCromElemGene(i,j));\r\n poblac.setIndivEvaluated(mejor,false);\r\n }\r\n\r\n return retValue;\r\n\r\n }", "private boolean isSolvable() {\n\t\tshort permutations = 0; // the number of incorrect orderings of tiles\n\t\tshort currentTileViewLocationScore;\n\t\tshort subsequentTileViewLocationScore;\n\n\t\t// Start at the first tile\n\t\tfor (int i = 0; i < tiles.size() - 2; i++) {\n\t\t\tTile tile = tiles.get(i);\n\n\t\t\t// Determine the tile's location value\n\t\t\tcurrentTileViewLocationScore = computeLocationValue(tile\n\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t// Compare the tile's location score to all of the tiles that\n\t\t\t// follow it\n\t\t\tfor (int j = i + 1; j < tiles.size() - 1; j++) {\n\t\t\t\tTile tSub = tiles.get(j);\n\n\t\t\t\tsubsequentTileViewLocationScore = computeLocationValue(tSub\n\t\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t\t// If a tile is found to be out of order, increment the number\n\t\t\t\t// of permutations.\n\t\t\t\tif (currentTileViewLocationScore > subsequentTileViewLocationScore) {\n\t\t\t\t\tpermutations++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// return whether number of permutations is even\n\t\treturn permutations % 2 == 0;\n\t}", "public boolean downwardTrend() {\n\t\tfor(int index = 1; index < NUM_DECADES; index++) {\n\t\t\tif(rank.get(index-1) >= rank.get(index)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public double getIndefiniteDefiniteComparison(Detail a, Detail b) {\n\t\t//TODO use numIndefiniteProperties rather than numTotalProperties ??\n\t\tdouble numProperties = a.getProperties().size();\n\n\t\tif (numProperties == 0.0)\n\t\t\treturn 0.0;\n\t\t\n\t\tdouble s = 0; \n\t\tfor (PropertyValue aP : a.getProperties()) {\n\t\t\tif (aP instanceof IndefiniteValue) {\n\t\t\t\tIndefiniteValue iap = (IndefiniteValue) aP;\n\t\t\t\t\n\t\t\t\tdouble maxSat = 0;\n\t\t\t\t\n\t\t\t\tfor (PropertyValue bP : getProperties(b, aP.getProperty())) {\n\t\t\t\t\tif (bP instanceof DefiniteValue) {\n\t\t\t\t\t\tDefiniteValue dbp = (DefiniteValue)bP;\n\t\t\t\t\t\tdouble sat = satisifies(iap, dbp);\n\t\t\t\t\t\tif (sat > maxSat)\n\t\t\t\t\t\t\tmaxSat = sat;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ts += maxSat;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn s / numProperties;\n\t}", "boolean isPossible() {\n return (sideOne + sideTwo > sideThree) && (sideTwo + sideThree > sideOne) && (sideThree + sideOne > sideTwo);\n }", "public void testComparisons() {\n\tfinal double small = Math.pow(2.0, -42);\n\n\t// Input: a, b\n\tdouble[][] input = new double[][] { new double[] { 1, 1 },\n\t\tnew double[] { 1, 2 }, new double[] { 1, 1 - small / 10 },\n\t\tnew double[] { 1, 1 + small / 10 },\n\n\t\tnew double[] { 0, 1 }, new double[] { 0, 0 },\n\t\tnew double[] { 0, -1 }, new double[] { 0, small / 100 },\n\t\tnew double[] { 2100000001.0001, 2100000001.0003 }, };\n\n\t// Output: less, equals\n\tboolean[][] output = new boolean[][] { new boolean[] { false, true },\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true },\n\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true }, };\n\n\tfor (int i = 0; i < input.length; ++i) {\n\t boolean l = StandardFloatingPointComparator.getDouble().less(\n\t\t input[i][0], input[i][1]);\n\t boolean e = StandardFloatingPointComparator.getDouble().equals(\n\t\t input[i][0], input[i][1]);\n\n\t boolean ne = StandardFloatingPointComparator.getDouble().notEquals(\n\t\t input[i][0], input[i][1]);\n\t boolean le = StandardFloatingPointComparator.getDouble()\n\t\t .lessOrEquals(input[i][0], input[i][1]);\n\t boolean g = StandardFloatingPointComparator.getDouble().greater(\n\t\t input[i][0], input[i][1]);\n\t boolean ge = StandardFloatingPointComparator.getDouble()\n\t\t .greaterOrEquals(input[i][0], input[i][1]);\n\n\t boolean less = output[i][0];\n\t boolean equals = output[i][1];\n\n\t boolean notEquals = !equals;\n\t boolean lessOrEquals = less || equals;\n\t boolean greater = !lessOrEquals;\n\t boolean greaterOrEquals = !less;\n\n\t assertFalse(l != less);\n\t assertFalse(g != greater);\n\t assertFalse(e != equals);\n\t assertFalse(ne != notEquals);\n\t assertFalse(le != lessOrEquals);\n\t assertFalse(ge != greaterOrEquals);\n\t}\n }", "boolean checkStability() {\n\r\n for (int roommateIndex = 0; roommateIndex < preferenceA.length - 1; roommateIndex++) {//Iterates through all roommates to check their pair is stable\r\n\r\n int roommate = roommateIndex + 1; //Sets roommate equal to the roommateIndex + 1\r\n int roommatePair = getPairedRoommate(roommate);//roommatePair is set equal to the roommate's pair\r\n\r\n for (int roommatePrefIndex = 0; roommatePrefIndex < preferenceA[roommateIndex].length; roommatePrefIndex++) {//Iterates through roommate's preferences until the loop is broken\r\n\r\n int roommatePref = preferenceA[roommateIndex][roommatePrefIndex];//Sets the roommatePref equal to the roommate's current preference in the preference array\r\n if (roommatePref == roommatePair) //If the roommate's preference is equal to it's pair before it is equal to a roommate that prefers them, then the current roommate is stable\r\n break;\r\n\r\n int roommatePrefPair = getPairedRoommate(roommatePref);//sets roommatePrefPair to the roommate's current preference's paired roommate\r\n for (int roommatePrefPrefIndex = 0; roommatePrefPrefIndex < preferenceA[roommateIndex].length; roommatePrefPrefIndex++) {//Iterates through roommate's current preference's preferences until the loop is broken\r\n\r\n int roommatePrefPref = preferenceA[roommatePref - 1][roommatePrefPrefIndex];//sets roommatePrefPref equal to the roommate's current preference's current preference\r\n if (roommatePrefPref == roommatePrefPair) // if roommatePrefPref is equal to roommatePrefPair then the roommate's current preference does not want to pair with roommate\r\n break;\r\n if (roommatePrefPref == roommate) //if the roommatePrefPref is equal to roommate then the roommate's current preference wants to pair with the roommate, which means the system is unstable\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "@Test\n void _correctIfCaseTest() {\n\n actionApply();\n\n for (ReceiverPair receiverPair : dependedReceiverPairs) {\n for (AssingablePair assingablePair : incompatibleAssignablePairs) {\n verify(model).arithm(receiverPair.getVariableReceiver(), \"=\", assingablePair.getIndexAssignable());\n }\n }\n }", "public boolean isSolutionExist() {\n // Mengecek apakah sebuah matriks SPL memiliki solusi\n boolean ada_solusi = true;\n\n int i = this.NBrsEff - 1;\n\n while(ada_solusi && i >= 0){\n int j = 0;\n boolean found = false;\n\n while(!found && j <= this.NKolEff) {\n if(this.M[i][j] != 0 && j != this.NKolEff - 1) {\n found = true;\n }\n j += 1;\n }\n\n if(!found) {\n boolean all_zero_brs = false;\n\n for(int k = 0; k < this.NBrsEff; k++){\n if(this.isAllZeroBrs(k)) {\n all_zero_brs = true;\n }\n }\n\n if(!all_zero_brs) {\n ada_solusi = false;\n }\n }\n\n i -= 1;\n }\n\n return ada_solusi;\n }", "public boolean checkEquality(){\n boolean flag = true;\n for (int i = 0; i < boardRows ; i++) {\n for (int j = 0; j < boardColumns; j++) {\n if(this.currentBoardState[i][j] != this.goalBoardState[i][j]){\n flag = false;\n }\n }\n }\n return flag;\n }", "public boolean upwardTrend() {\n\t\tfor(int index = 1; index < NUM_DECADES; index++) {\n\t\t\tif(rank.get(index-1) <= rank.get(index)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static void main(String[] args) {\n\n\t\tint n1, n2, n3;\n\t\tn1 = 41;\n\t\tn2 = 4;\n\t\tn3 = 421;\n\n\t\tif (n1 == n2 && n1 != n3) {\n\t\t\tSystem.out.println(\"n1 and n2 are equal.\");\n\t\t}\n\n\t\telse if (n2 == n3 && n2 != n1) {\n\t\t\tSystem.out.println(\"n2 and n3 are equal.\");\n\t\t}\n\n\t\telse if (n1 == n3 && n1 != n2) {\n\t\t\tSystem.out.println(\"n1 and n3 are equal.\");\n\t\t}\n\n\t\telse if (n1 == n2 && n1 == n3 && n2 == n3) {\n\t\t\tSystem.out.println(\"They are all equal.\");\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"None of them are equal.\");\n\t\t}\n\n\t\tSystem.out.println(\"=======================\");\n\t\t// 2nd solution. wrong solution.\n\n\t\tint n11 = 15;\n\t\tint n22 = 15;\n\t\tint n33 = 15;\n\n\t\tif (n11 == n22 && n11 == n33 && n22 == n33) {\n\t\t\tSystem.out.println(\"all equal.\");\n\t\t}\n\n\t\tif ((n11 == n22) & (n11 != n33)) {\n\t\t\tSystem.out.println(\"n11 and n22 are equal.\");\n\t\t}\n\n\t\tif (n22 == n33 & n22 != n11) {\n\t\t\tSystem.out.println(\"n22 and n33 are equal.\");\n\t\t}\n\n\t\tif (n11 == n33 & n11 != n22) {\n\t\t\tSystem.out.println(\"n11 and n33 are equal.\");\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"none of them are equal.\");\n\t\t}\n\t\tSystem.out.println(\"=======================\");\n\n\t\t// 3rd solution. nested if\n\n\t\tint A = 15;\n\t\tint B = 151;\n\t\tint C = 11;\n\n\t\tif (A == B && A == C && B == C) {\n\t\t\tSystem.out.println(\"all are equal.\");\n\t\t}\n\n\t\telse // if they are not all equal\n\t\t\tif (A == B) {\n\t\t\t\tSystem.out.println(\"A and B are equal.\");\n\t\t\t}\n\t\n\t\t\telse if (A == C) {\n\t\t\t\tSystem.out.println(\"A and C are equal.\");\n\t\t\t}\n\t\n\t\t\telse if (B == C) {\n\t\t\t\tSystem.out.println(\"B and C are equal.\");\n\t\t\t}\n\t\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"none of them are equal.\");\n\t\t\t}\n\n\t\tSystem.out.println(\"=======================\");\n\n\t\tint grade = 101;\n\n\t\tif (grade >= 60 && grade <= 100) {\n\n\t\t\tif (grade >= 90 && grade <= 100) {\n\t\t\t\tSystem.out.println(\"grade is A\");\n\t\t\t}\n\n\t\t\telse if (grade >= 80 && grade < 90) {\n\t\t\t\tSystem.out.println(\"grade is B\");\n\t\t\t}\n\n\t\t\telse if (grade >= 70 && grade < 80) {\n\t\t\t\tSystem.out.println(\"grade is C\");\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"grade is D\");\n\t\t\t}\n\t\t} // closing curly brace of the first if statement. very important.\n\n\t\telse if (grade >= 0 && grade < 60) {\n\t\t\tSystem.out.println(\"Failed.\");\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"invalid entry\");\n\t\t}\n\n\t}", "boolean hasDecision();", "boolean hasDecision();", "public double calculateObservedDisagreement();", "public static void compare () {\r\n for (int i = 0; i < dim; i++) {\r\n for (int j = 0; j < dim; j++) {\r\n if (d[i][j] != adjacencyMatrix[i][j])// here \r\n {\r\n System.out.println(\"Comparison failed\");\r\n \r\n return;\r\n }\r\n }\r\n }\r\n System.out.println(\"Comparison succeeded\");\r\n }", "private void getCorrectAnswers() {\n\t\tfor(int i = 0; i < numberAmt; i++) {\n\t\t\tif(randomNumbers.get(i).equals(answers.get(i)))\n\t\t\t\tcorrectAnswers++;\n\t\t}\n\t}", "public boolean avanti();", "public void boundsLex(int [] a , IntDomainVar [] x , int [] b,int j) throws ContradictionException{\n\n int i =0;\n\n\n while( i< n && a[i]==b[i]){\n\n\n if((x[i].getInf()==a[i] || x[i].updateInf(a[i], this, false)) &&\n (x[i].getSup()==b[i] || x[i].updateSup(b[i], this, false))){\n i++;\n }else{\n this.fail();\n }\n\n }\n\n\n if(i<n )\n if ((x[i].getInf()==a[i] || x[i].updateInf(a[i], this, false)) &&\n (x[i].getSup()==b[i] || x[i].updateSup(b[i], this, false))){\n }else{\n this.fail();\n }\n\n\n if(i==n || x[i].getNextDomainValue(a[i])<b[i]){\n return ;\n }\n\n i+=1;\n\n while(i<n && (b[i]+1 <= a[i]-1) && x[i].getInf()==b[i] && x[i].getSup()==a[i]){\n if(x[i].removeInterval(b[i]+1,a[i]-1, this, false)){\n i++;\n }else{\n this.fail();\n\n }\n }\n\n if(i<n) {\n if (b[i] + 1 <= a[i] - 1 && x[i].getInf() <= b[i] &&\n b[i] <= x[i].getSup() && x[i].getSup() >= a[i] && a[i] >= x[i].getInf()) {\n if (!x[i].removeInterval(b[i] + 1, a[i] - 1, this, false)) {\n this.fail();\n }\n }\n }\n\n }", "boolean hasHasInjury();", "public boolean esDeterministico(){\n NodoA x, y;\n x = primerElemento();\n y = x.getLigaDer();\n boolean bandera = true;\n while(x != cabeza){\n while(y != cabeza){\n if(y.getSimbolo().equals( x.getSimbolo())){\n \n if(!listaND.contains(x)){\n listaND.add(x);\n }\n \n bandera= false;\n }\n y = y.getLigaDer();\n }\n \n x = x.getLigaDer();\n y = x.getLigaDer();\n \n \n }\n \n return bandera;\n \n }", "private boolean isWrong() {\n\t\treturn wrongMatches >= 5;\n\t}", "private boolean feasible() {\n\t\tint weight = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tassert x[i] == 0 || x[i] == 1;\n\t\t\tweight += w[i] * x[i];\n\t\t}\n\t\treturn weight <= k;\n\t}", "boolean hasEresult();", "public boolean solucionar() {\n\t\treturn false;\n\t}", "@Test\n\tpublic void testEqualityCheck() {\n\t\tadd(\"f(x)=x^3\");\n\t\tadd(\"g(x)=-x^3\");\n\t\tt(\"f==g\", \"false\");\n\t\tt(\"f!=g\", \"true\");\n\t\tt(\"f==-g\", \"true\");\n\t\tt(\"f!=-g\", \"false\");\n\t}", "boolean isMet();", "public double getBestSolutionEvaluation();", "public boolean solve() {\n\t\tSet<String> noteWords = noteMap.keySet();\n\t\tSet<String> magazineWords = magazineMap.keySet();\n\t\tSystem.out.println(\"M containsAll N : \" + magazineWords.containsAll(noteWords));\n\t\tif (magazineWords.containsAll(noteWords)) {\n\t\t\tfor (String noteWord : noteWords) {\n\t\t\t\tif (noteMap.get(noteWord) > magazineMap.get(noteWord)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\n\t}", "private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}", "@Override\n\t\tpublic boolean goalTest() {\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tif (state[i] != xGoals[i] || state[i + k] != yGoals[i]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "@Test\n void compareTo_Identical_AllParts()\n {\n runIsMatchTest(AnswerType.yes, AnswerType.yes, AnswerType.yes, AnswerType.yes, ContactMatchType.Identical);\n }", "@Test\n\tpublic void evalCrispDistanceWithFuzzyNumberOverlap1(){\n\t\tFuzzySet res = cs4.distance(dfn2);\n\t\tassertTrue(res instanceof FuzzyInterval);\n\t\tFuzzyInterval fuzzyRes = (FuzzyInterval)res;\n\t\t//Puntos limite\n\t\tassertTrue(fuzzyRes.getMembershipValue(0)==1);\n\t\tassertTrue(fuzzyRes.getMembershipValue(1)==1);\n\t\tassertTrue(fuzzyRes.getMembershipValue(2)==1);\n\t\t//Valores extremos\n\t\tassertTrue(fuzzyRes.getMembershipValue(3)==0);\n\t\t//Valores exteriores\n\t\tassertTrue(fuzzyRes.getMembershipValue(3.1)==0);\n\t\tassertTrue(fuzzyRes.getMembershipValue(-1)==0);\n\t}", "private static State determineIfInsolvableOrMultiple (double[][] augmentedMatrix, int n) {\n State ret = State.MULTIPLE; // Default is multiple\n for (int i = 0; i < n; i++) {\n boolean rowZero = true;\n for (int j = 0; j < n; j++) {\n if (Math.abs (augmentedMatrix[i][j]) < EPSILON) {\n continue;\n } else {\n rowZero = false;\n }\n }\n if (rowZero) {\n if (Math.abs (augmentedMatrix[i][n]) > EPSILON) {\n ret = State.INCONSISTENT;\n break;\n } else {\n ret = State.MULTIPLE;\n break;\n }\n }\n }\n return ret;\n }", "public int getCorrectans()\n\t{\n\t\treturn correctAns;\n\t}", "public static int solve() {\n FactorizationSieve sieve = new FactorizationSieve(LIMIT + 1);\n int[] abundants = new int[LIMIT + 1];\n int k = 0;\n\n for (int n = 1; n <= LIMIT; n++)\n if (sieve.sigma(1, n) > n + n)\n abundants[k++] = n;\n\n // Sum pair of abundant numbers\n BitSet absums = new BitSet(LIMIT + 1);\n for (int i = 0; i < k; i++) {\n for (int j = i; j < k; j++) {\n int n = abundants[i] + abundants[j];\n if (n > LIMIT)\n break;\n absums.set(n);\n }\n }\n\n // Find all numbers that cannot be written as the sum of two abundant numbers\n int res = 0;\n for (int n = 1; n <= LIMIT; n++)\n if (!absums.get(n))\n res += n;\n return res;\n }", "public boolean checkSatisifies(Design design, AUndertaking task)\n {\n resetState();\n return checkCombination(design, task);\n }" ]
[ "0.59097403", "0.5840068", "0.5722604", "0.5694555", "0.5668296", "0.5655555", "0.5655058", "0.5621027", "0.56187874", "0.55533093", "0.55372304", "0.5489352", "0.5488482", "0.5479272", "0.5442888", "0.53888714", "0.5386902", "0.53772867", "0.5365673", "0.5360758", "0.53546786", "0.53176236", "0.5285982", "0.5276623", "0.5267866", "0.5252693", "0.524989", "0.5247222", "0.52429646", "0.5235628", "0.52318686", "0.5226612", "0.5222563", "0.5222399", "0.5213709", "0.5210313", "0.52102613", "0.52100325", "0.5209826", "0.5202268", "0.51912826", "0.5165567", "0.5164253", "0.5156723", "0.5148389", "0.5137966", "0.5106757", "0.51061064", "0.50975543", "0.5089189", "0.50808936", "0.50761986", "0.5071387", "0.5071217", "0.50709724", "0.50701267", "0.5063016", "0.50610477", "0.5059945", "0.5056998", "0.50548065", "0.50377756", "0.5037237", "0.50346863", "0.50306267", "0.5021737", "0.5015203", "0.5010469", "0.5009069", "0.5006125", "0.5002595", "0.49997145", "0.4993892", "0.4990529", "0.49862465", "0.4969487", "0.4969487", "0.49673823", "0.49633154", "0.49579296", "0.49577907", "0.49500874", "0.49463508", "0.4944356", "0.49442688", "0.49336442", "0.493242", "0.49282303", "0.49224982", "0.4920967", "0.49181792", "0.4915767", "0.4914851", "0.49130753", "0.48981535", "0.48971233", "0.48948127", "0.4894359", "0.4888227", "0.48844206" ]
0.6262229
0
Generates a dummy quiz...
public interface QuizGenerator { Quiz generateQuiz(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void generateQuestion();", "public void generateDemoQuiz() {\n Quiz demoQuiz = new Quiz(); //Instantiate a Quiz\n Category testCategory = makeCategory(); //Make some bs categories to attach the quiz\n Question question1 = new Question(); //Make some bs questions (just one for now)\n question1.setQuestion(\"Which of the following famous scientist cured Cat Cancer?\"); //Set the question ... of the question? IDK how to word this better\n\n //Make some funny cat names\n Answer a1 = new Answer(\"H. John Whiskers\");\n Answer a2 = new Answer(\"Bartolemeu Meowser\");\n Answer a3 = new Answer(\"Catalie Portman\");\n Answer a4 = new Answer(\"Anderson Pooper\");\n\n //Build an arraylist full of said cat names\n ArrayList<Answer> answerList = new ArrayList<Answer>();\n answerList.add(a1);\n answerList.add(a2);\n answerList.add(a3);\n answerList.add(a4);\n\n //Put those answers inside that question!\n question1.setAnswerChoices(answerList);\n question1.setCorrectAnswer(a1); //Everybody knows H John Whiskers cured kitty cancer\n\n //Build an arraylist full of the question(s) you just made, in our demo case there is only one question\n ArrayList<Question> questionList = new ArrayList<Question>();\n questionList.add(question1); //Put the questions inside your list\n\n\n //Put all the data you just made into a Quiz\n demoQuiz.setQuizName(\"Famous Cat Scientists\");\n demoQuiz.setQuizCategory(testCategory);\n demoQuiz.setQuizQuestions(questionList);\n\n }", "@Test\n public void shouldNotGiveQuestionIfAllQuestionsHaveBeenAnswered() {\n attributes.put(FinancialPlanningSpeechlet.GOAL_AMOUNT_KEY, 1000.0);\n attributes.put(FinancialPlanningSpeechlet.MONTHLY_CONTRIBUTION_KEY, 1000.0);\n attributes.put(FinancialPlanningSpeechlet.GOAL_PERIOD_KEY, 1000.0);\n String question = NextQuestionFactory.get(session);\n\n assertThat(question, Is.is(\"\"));\n }", "@Test\r\n\tpublic void testCreate() {\r\n\t\tQuestion q = new Question(\"Empty\", 1, 20, quizzes, null, choices);\r\n\t\tdao.create(q);\r\n\t}", "public String generateQuestion(){\r\n qType = rand.nextInt(2);\r\n if (qType ==0)\r\n return \"Multiple choice question.\";\r\n else\r\n return \"Single choice question.\";\r\n }", "private void generateNewQuestion() {\n GameManager gameManager = new GameManager();\n long previousQuestionId = -1;\n try {\n previousQuestionId = mGameModel.getQuestion().getId();\n } catch (NullPointerException e) {\n previousQuestionId = -1;\n }\n mGameModel.setQuestion(gameManager.generateRandomQuestion(previousQuestionId));\n mGameModel.getGameMaster().setDidPlayerAnswer(false);\n mGameModel.getGameMaster().setPlayerAnswerCorrect(false);\n mGameModel.getGameSlave().setDidPlayerAnswer(false);\n mGameModel.getGameSlave().setPlayerAnswerCorrect(false);\n LOGD(TAG, \"New question generated\");\n }", "@Ignore\n @Test\n public void shouldNotGiveQuestionIfAllQuestionsHaveBeenAnsweredWithInts() {\n attributes.put(FinancialPlanningSpeechlet.GOAL_AMOUNT_KEY, 1000);\n attributes.put(FinancialPlanningSpeechlet.MONTHLY_CONTRIBUTION_KEY, 1000);\n attributes.put(FinancialPlanningSpeechlet.GOAL_PERIOD_KEY, 1000);\n String question = NextQuestionFactory.get(session);\n\n assertThat(question, Is.is(\"\"));\n }", "public void quiz() {\n\t\t\t\t\tcorrectans = 0;\n\t\t\t\t\tint k = 0;\n\t\t\t\t\tint j = 0;\n\t\t\t\t\tint M = 0;\n\t\t\t\t\tj = readDifficulty();\n\t\t\t\t\tM = readProblemType();\n\t\t\t\t\t//ask the student to solve 10 different problems, as determined by the problem type\n\t\t\t for(int i = 0; i < 10; i++ ) {\n\t\t\t \t//contain two numbers sampled from a uniform random distribution with bounds determined by the problem difficulty\n\t\t\t \tint x = rand.nextInt(j); \n\t\t\t\t int y = rand.nextInt(j);\n\t\t\t\t int O = askquestion(j, M,x,y);\n\t\t\t\t if(M == 4) {\n\t\t\t\t \t float floatans = readdivision();\n\t\t\t\t \tk = divisionsol(floatans, x, y);\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t int userin = readResponse();\n\t\t\t k = isnanswercorrect(O , userin);\n\t\t\t }\n\t\t\t if(k == 1) {\n\t\t\t \t correctans++;\n\t\t\t }\n\t\t\t }\n\t\t\t int L = 0;\n\t\t\t L = displayCompletionMessage(correctans);\n\t\t\t if ( L == 1) {\n\t\t\t \tquiz();\n\t\t\t }\n\t\t\t else {\n\t\t\t \treturn;\n\t\t\t }\n\t\t\t \n\t\t\t\t}", "public void questionGenerator()\n\t{\n\t\t//creates questions\n\t\toperation = rand.nextInt(3) + min;\n\t\t\n\t\t//makes max # 10 to make it easier for user if random generator picks multiplication problem\n\t\tif (operation == 3)\n\t\t\tmax = 10; \n\t\t\n\t\t//sets random for number1 & number2\n\t\tnumber1 = rand.nextInt(max) + min; //random number max and min\n\t\tnumber2 = rand.nextInt(max) + min; \n\t\t\t\t\n\t\t//ensures final answer of problem is not negative by switching #'s if random generator picks subtraction problem\n\t\tif (operation == 2 && number1 < number2)\n\t\t{\n\t\t\tint tempNum = number1;\n\t\t\tnumber1 = number2;\n\t\t\tnumber2 = tempNum;\n\t\t}\n\t\tanswer = 0;\n\t\t\n\t\t//randomizes operator to randomize question types\n\t\tif (operation == 1)\n\t\t{\n\t\t\toperator = '+';\n\t\t\tanswer = number1 + number2;\n\t\t}\n\t\tif (operation == 2)\n\t\t{\n\t\t\toperator = '-';\n\t\t\tanswer = number1 - number2;\n\t\t}\n\t\tif (operation == 3)\n\t\t{\n\t\t\toperator = '*';\n\t\t\tanswer = number1 * number2;\n\t\t}\n\t\t\t\n\t\t//prints question\n\t\tlabel2.setText(\"Question: \" + number1 + \" \" + operator + \" \" + number2 + \" = ?\");\n\t}", "public String checkNewQuestions() {\n\t\tint numAnswers = testGenerator.getNumAnswers(questionNo);\n\t\tString question = \"\";\n\n\t\tquestion += testGenerator.getQuestionText(questionNo);\n\t\tquestion += testGenerator.getAnswerText(questionNo, 1);\n\t\tquestion += testGenerator.getAnswerText(questionNo, 2);\n\n\t\tif(numAnswers >= 3) {\n\t\t\tquestion += testGenerator.getAnswerText(questionNo, 3);\n\t\t} \n\t\tif(numAnswers == 4) {\n\t\t\tquestion += testGenerator.getAnswerText(questionNo, 4);\n\t\t}\n\t\treturn question;\n\t}", "@Test\n public void initializeBasicQuizTest() throws CakeException {\n /*\n QuestionList test = new QuestionList(QuestionType.BASIC);\n\n //check if there are the correct number of test questions\n assertEquals(test.getQuestionList().size(), MAX_QUESTIONS);\n\n // check if there are any duplicate questions\n Set<Question> set = new HashSet<>(test.getQuestionList());\n assertEquals(set.size(), test.getQuestionList().size());\n */\n }", "public void testEmptyQuiz(){\n onView(withId(R.id.quiz_button)).perform(click());\n onView(withId(R.id.quiz_make)).perform(click());\n onView(withId(R.id.submit_button)).perform(click());\n Activity current = getActivity();\n assertNotNull(current);\n onView(withId(R.id.homeButton));\n }", "public static void main(){\n \n \n String question = \"There are 10 types of people in this world, those who understand binary and those who don't.\";\n String answer = \"true\";\n \n Question tfQuest = new Question (question, answer);\n tfQuest.getAnswer();\n \n }", "static void generateQuestions(int numQuestions, int selection, String fileName, String points) {\n String finalAnswers = \"\";\n switch (selection) {\n case 1:\n for (int i = 0; i < numQuestions; i++) {\n finalAnswers += one(points);\n }\n break;\n case 2:\n for (int i = 0; i < numQuestions; i++) {\n finalAnswers += two(points);\n }\n break;\n case 3:\n for (int i = 0; i < numQuestions; i++) {\n finalAnswers += three(points);\n }\n break;\n case 4:\n for (int i = 0; i < numQuestions; i++) {\n finalAnswers += four(points);\n }\n break;\n default:\n System.out.println(\"Wrong selection. Please try again\");\n break;\n }\n writeAnswers(fileName, finalAnswers);\n }", "public static void main(String[] args){\r\n String[] prompts = {\"Do you want to take a survey?\",\r\n \"Do you like yes or no questions?\",\r\n \"Will you continue answering these?\",\r\n \"Are you some kind of robot?\",\r\n \"Do you have special powers?\",\r\n \"Do you use them for good or for awesome?\",\r\n \"Will you use them on me?\"};\r\n int i;\r\n for (i = 0; i <= QUESTIONS && yesNoQuestion(prompts[i]); i++); \r\n if (i < 3) System.out.println(\"You are lame.\");\r\n else System.out.println(\"You are mildly cool.\");\r\n if (i >= 4) System.out.println(\"Actually, you're a cool robot.\");\r\n if (i >= 5) System.out.println(\"...with cool powers.\");\r\n if (i >= 6) System.out.println(\"Please use your powers on me!\");\r\n if (i >= 7) System.out.println(\"Ooh, that feels good.\");\r\n }", "@Before\n public void runBefore() {\n q1 = new TrueFalseQuestion(8, \"You are awesome.\", true);\n q2 = new TrueFalseQuestion(16, \"Donuts are bad for you.\", true);\n q3 = new TrueFalseQuestion(1, \"You suck at programming\", true);\n qList = new QuestionsList();\n qList.addQuestion(q1);\n qList.addQuestion(q2);\n qList.addQuestion(q3);\n\n testQuiz = new DecrementMarksQuiz(qList);\n }", "@Override\n public Question generate() {\n return new Question(\"Why do Canadians prefer their jokes in hexadecimal?\",\n \"Because 7 8 9 A!\");\n }", "@Test\r\n\tpublic void createQuizTest() {\r\n\r\n\t\tquizBean qbean = new quizBean(3, 2, 10, 10, 00);\r\n\t\tboolean b = false;\r\n\t\ttry {\r\n\t\t\tInstructorUI.appendQuizNodeToXML(qbean);\r\n\t\t\tquizReader reader = new quizReader();\r\n\r\n\t\t\ttry {\r\n\t\t\t\tquizzes qlist = reader.read(quizXMLPath);\r\n\r\n\t\t\t\tfor (quizBean q : qlist) {\r\n\t\t\t\t\tif (q.compareTo(qbean) == 0 && !b) {\r\n\t\t\t\t\t\tb = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tb = false;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tb = false;\r\n\t\t}\r\n\r\n\t\tAssert.assertTrue(b);\r\n\r\n\t}", "public static void generateQuizz(int size)\n {\n nb1 = new int[size];\n nb2 = new int[size];\n answer = new int[size];\n for(int i = 0; i<size; i++)\n {\n nb1[i] = (int)(Math.random()*50+1);\n nb2[i] = (int)(Math.random()*50+1);\n answer[i] = 0;\n }\n \n }", "private void creatingNewQuestion() {\r\n AbstractStatement<?> s;\r\n ListQuestions lq = new ListQuestions(ThemesController.getThemeSelected());\r\n switch ((String) typeQuestion.getValue()) {\r\n case \"TrueFalse\":\r\n // just to be sure the answer corresponds to the json file\r\n Boolean answer = CorrectAnswer.getText().equalsIgnoreCase(\"true\");\r\n s = new TrueFalse<>(Text.getText(), answer);\r\n break;\r\n\r\n case \"MCQ\":\r\n s = new MCQ<>(Text.getText(), TextAnswer1.getText(), TextAnswer2.getText(), TextAnswer3.getText(), CorrectAnswer.getText());\r\n break;\r\n\r\n default:\r\n s = new ShortAnswer<>(Text.getText(), CorrectAnswer.getText());\r\n break;\r\n }\r\n lq.addQuestion(new Question(s, ThemesController.getThemeSelected(), Difficulty.fromInteger((Integer) difficulty.getValue()) ));\r\n lq.writeJson(ThemesController.getThemeSelected());\r\n }", "protected void constructNewQuestion(){\n arabicWordScoreItem = wordScoreTable.whatWordToLearn();\n arabicWord = arabicWordScoreItem.word;\n correctAnswer = dictionary.get(arabicWord);\n\n for (int i=0;i<wrongAnswers.length;i++){\n int wrongAnswerId;\n String randomArabicWord;\n String wrongAnswer;\n do {\n wrongAnswerId = constructQuestionRandom.nextInt(next_word_index);\n randomArabicWord = dictionary_key_list.get(wrongAnswerId);\n wrongAnswer = dictionary.get(randomArabicWord);\n } while (wrongAnswer.equals(correctAnswer));\n wrongAnswers[i] = wrongAnswer;\n }\n }", "private void fillQuestionsTable() {\n Question q1 = new Question(\"Who is NOT a Master on the Jedi council?\", \"Anakin Skywalker\", \"Obi Wan Kenobi\", \"Mace Windu\", \"Yoda\", 1);\n Question q2 = new Question(\"Who was Anakin Skywalker's padawan?\", \"Kit Fisto\", \"Ashoka Tano\", \"Barris Ofee\", \"Jacen Solo\",2);\n Question q3 = new Question(\"What Separatist leader liked to make find additions to his collection?\", \"Pong Krell\", \"Count Dooku\", \"General Grevious\", \"Darth Bane\", 3);\n Question q4 = new Question(\"Choose the correct Response:\\n Hello There!\", \"General Kenobi!\", \"You are a bold one!\", \"You never should have come here!\", \"You turned her against me!\", 1);\n Question q5 = new Question(\"What ancient combat technique did Master Obi Wan Kenobi use to his advantage throughout the Clone Wars?\", \"Kendo arts\", \"The High ground\", \"Lightsaber Form VIII\", \"Force healing\", 2);\n Question q6 = new Question(\"What was the only surviving member of Domino squad?\", \"Fives\", \"Heavy\", \"Echo\", \"Jesse\", 3);\n Question q7 = new Question(\"What Jedi brutally murdered children as a part of his descent to become a Sith?\", \"Quinlan Vos\", \"Plo Koon\", \"Kit Fisto\", \"Anakin Skywalker\", 4);\n Question q8 = new Question(\"What Sith was the first to reveal himself to the Jedi after a millenia and was subsquently cut in half shortly after?\", \"Darth Plagieus\", \"Darth Maul\", \"Darth Bane\", \"Darth Cadeus\", 2);\n Question q9 = new Question(\"What 4 armed creature operates a diner on the upper levels of Coruscant?\", \"Dexter Jettster\", \"Cad Bane\", \"Aurua Sing\", \"Dorme Amidala\", 1);\n Question q10 = new Question(\"What ruler fell in love with an underage boy and subsequently married him once he became a Jedi?\", \"Aurua Sing\", \"Duttchess Satine\", \"Mara Jade\", \"Padme Amidala\", 4);\n\n // adds them to the list\n addQuestion(q1);\n addQuestion(q2);\n addQuestion(q3);\n addQuestion(q4);\n addQuestion(q5);\n addQuestion(q6);\n addQuestion(q7);\n addQuestion(q8);\n addQuestion(q9);\n addQuestion(q10);\n }", "protected QuestionNGram() {/* intentionally empty block */}", "public void takeQuiz()\r\n\t{\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tRandom generator = new Random();\r\n\t\tint question;\r\n\t\tint right = 0;\r\n\t\tString answer;\r\n\t\t\r\n\t\tfor(int i=0; i<10; i++)\r\n\t\t{\r\n\t\t\tquestion = generator.nextInt(questions.size());\r\n\t\t\t\r\n\t\t\tSystem.out.println( (i+1) + \".\" + questions.get(question).toString());\r\n\t\t\tSystem.out.println(\"Answer: \");\r\n\t\t\tanswer = in.nextLine();\r\n\t\t\t\r\n\t\t\t//checks input\r\n\t\t\twhile( !( answer.equalsIgnoreCase(\"1\") || answer.equalsIgnoreCase(\"2\") || answer.equalsIgnoreCase(\"3\") || answer.equalsIgnoreCase(\"4\") ) )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Invalid entry. Enter again:\");\r\n\t\t\t\tanswer = in.nextLine();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif( answer.equalsIgnoreCase(questions.get(question).getCorrectAnswer()))\r\n\t\t\t{\r\n\t\t\t\tright++;\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"You got \" + right + \" questions right.\");\r\n\t}", "public void createQuestion(int sid,int qid,String qtype,String qtitle,String answer_a,String answer_b,String answer_c,String answer_d);", "public Test makeTest(DataSource ds, List<Question> givenQns){\n\t\tArrayList<Question> startQns = new ArrayList<Question>();\n\t\tfor (int i = 0; i < givenQns.size(); i++){\n\t\t\tstartQns.add((Question)givenQns.get(i));\n\t\t}\n\t\tString category = startQns.get(0).getCategory();\n\t\tString difficulty = \"any\";\n\t\t\n\t\twhile(startQns.size()>5){\n\t\t\tint index = (int)(Math.random()*startQns.size());\n\t\t\tstartQns.remove(index);\n\t\t}\n\t\tTest test = this.makeTest(ds, difficulty, category, 5, startQns);\n//\t\tSystem.out.println(\"TestMakerA->test: \" + test.toString());\n\t\tint[] correct = new int[5];\n\t\tArrayList<Question[]> questions = (ArrayList<Question[]>)test.getTest();\n\n\t\tfor(int i = 0; i < 5; i++){\n\t\t\tcorrect[i] = (int)(Math.random()*4);\n\t\t\tif(questions.get(i)[correct[i]] != startQns.get(i)){\n\t\t\t\tquestions.get(i)[correct[i]] = startQns.get(i);\n\t\t\t}\n\t\t}\n\n\t\ttest.setCorrect(correct);\n\t\treturn test;\n\t}", "public void quizCreate(View view)\n {\n //Create screen\n correctOption = r.nextInt(4) + 1;\n int rand = generateRandom(r);\n\n setContentView(R.layout.quiz_layout1);\n ImageView pokeImage = (ImageView) findViewById(R.id.quiz_image);\n if (rand <= 0) {\n return;\n }\n int imageInt = getResources().getIdentifier(imageFilePrefix + rand, \"drawable\", getPackageName());\n pokeImage.setImageResource(imageInt);\n Button correctButton = (Button) findViewById(options.get(correctOption));\n correctButton.setText(myDbHelper.queryName(rand));\n\n }", "private void addQuestion() {\n Question q = new Question(\n \"¿Quien propuso la prueba del camino básico ?\", \"Tom McCabe\", \"Tom Robert\", \"Tom Charlie\", \"Tom McCabe\");\n this.addQuestion(q);\n\n\n Question q1 = new Question(\"¿Qué es una prueba de Caja negra y que errores desean encontrar en las categorías?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \" determina la funcionalidad del sistema\", \" determina la funcionalidad del sistema\");\n this.addQuestion(q1);\n Question q2 = new Question(\"¿Qué es la complejidad ciclomática es una métrica de calidad software?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \"basada en el cálculo del número\", \"basada en el cálculo del número\");\n this.addQuestion(q2);\n //preguntas del quiz II\n Question q3=new Question(\"Las pruebas de caja blanca buscan revisar los caminos, condiciones, \" +\n \"particiones de control y datos, de las funciones o módulos del sistema; \" +\n \"para lo cual el grupo de diseño de pruebas debe:\",\n \"Conformar un grupo de personas para que use el sistema nuevo\",\n \"Ejecutar sistema nuevo con los datos usados en el sistema actual\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\");\n this.addQuestion(q3);\n Question q4=new Question(\"¿Las pruebas unitarias son llamadas?\",\n \"Pruebas del camino\", \"Pruebas modulares\",\n \"Pruebas de complejidad\", \"Pruebas modulares\");\n this.addQuestion(q4);\n Question q5=new Question(\"¿Qué es una prueba de camino básico?\",\n \"Hace una cobertura de declaraciones del código\",\n \"Permite determinar si un modulo esta listo\",\n \"Técnica de pueba de caja blanca\",\n \"Técnica de pueba de caja blanca\" );\n this.addQuestion(q5);\n Question q6=new Question(\"Prueba de camino es propuesta:\", \"Tom McCabe\", \"McCall \", \"Pressman\",\n \"Tom McCabe\");\n this.addQuestion(q6);\n Question q7=new Question(\"¿Qué es complejidad ciclomatica?\",\"Grafo de flujo\",\"Programming\",\n \"Metrica\",\"Metrica\");\n this.addQuestion(q7);\n //preguntas del quiz III\n Question q8 = new Question(\n \"¿Se le llama prueba de regresión?\", \"Se tienen que hacer nuevas pruebas donde se han probado antes\",\n \"Manten informes detallados de las pruebas\", \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\");\n this.addQuestion(q8);\n Question q9 = new Question(\"¿Cómo se realizan las pruebas de regresión?\",\n \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\", \"A través de herramientas de automatización de pruebas\", \"A través de herramientas de automatización de pruebas\");\n this.addQuestion(q9);\n Question q10 = new Question(\"¿Cuándo ya hay falta de tiempo para ejecutar casos de prueba ya ejecutadas se dejan?\",\n \"En primer plano\", \"En segundo plano\", \"En tercer plano\", \"En segundo plano\");\n this.addQuestion(q10);\n //preguntas del quiz IV\n Question q11 = new Question(\n \"¿En qué se enfocan las pruebas funcionales?\",\n \"Enfocarse en los requisitos funcionales\", \"Enfocarse en los requisitos no funcionales\",\n \"Verificar la apropiada aceptación de datos\", \"Enfocarse en los requisitos funcionales\");\n this.addQuestion(q11);\n Question q12 = new Question(\"Las metas de estas pruebas son:\", \"Verificar la apropiada aceptación de datos\",\n \"Verificar el procesamiento\", \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\",\n \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\");\n this.addQuestion(q12);\n Question q13 = new Question(\"¿En qué estan basadas este tipo de pruebas?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Técnicas de cajas negra\", \"Técnicas de cajas negra\");\n this.addQuestion(q13);\n //preguntas del quiz V\n Question q14 = new Question(\n \"¿Cúal es el objetivo de esta técnica?\", \"Identificar errores introducidos por la combinación de programas probados unitariamente\",\n \"Decide qué acciones tomar cuando se descubren problemas\",\n \"Verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Identificar errores introducidos por la combinación de programas probados unitariamente\");\n this.addQuestion(q14);\n Question q15 = new Question(\"¿Cúal es la descripción de la Prueba?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\");\n this.addQuestion(q15);\n Question q16 = new Question(\"Por cada caso de prueba ejecutado:\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Comparar el resultado esperado con el resultado obtenido\", \"Comparar el resultado esperado con el resultado obtenido\");\n this.addQuestion(q16);\n //preguntas del quiz VI\n Question q17 = new Question(\n \"Este tipo de pruebas sirven para garantizar que la calidad del código es realmente óptima:\",\n \"Pruebas Unitarias\", \"Pruebas de Calidad de Código\",\n \"Pruebas de Regresión\", \"Pruebas de Calidad de Código\");\n this.addQuestion(q17);\n Question q18 = new Question(\"Pruebas de Calidad de código sirven para: \",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Verificar que las especificaciones de diseño sean alcanzadas\",\n \"Garantizar la probabilidad de tener errores o bugs en la codificación\", \"Garantizar la probabilidad de tener errores o bugs en la codificación\");\n this.addQuestion(q18);\n Question q19 = new Question(\"Este análisis nos indica el porcentaje que nuestro código desarrollado ha sido probado por las pruebas unitarias\",\n \"Cobertura\", \"Focalización\", \"Regresión\", \"Cobertura\");\n this.addQuestion(q19);\n\n Question q20 = new Question( \"¿Qué significa V(G)?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Regiones\");\n this.addQuestion(q20);\n\n Question q21 = new Question( \"¿Qué significa A?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Aristas\");\n this.addQuestion(q21);\n\n Question q22 = new Question( \"¿Qué significa N?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Nodos\");\n this.addQuestion(q22);\n\n Question q23 = new Question( \"¿Qué significa P?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos Predicado\", \"Número de Nodos Predicado\");\n this.addQuestion(q23);\n Question q24 = new Question( \"De cuantás formas se puede calcular la complejidad ciclomatica V(G):\",\n \"3\", \"1\", \"2\", \"3\");\n this.addQuestion(q24);\n\n // END\n }", "private void study(String studyToolId) {\n String[][] questionsAndAnswers = studyToolManager.fetchQuestionsAndAnswers(studyToolId);\n String templateId = studyToolManager.getStudyToolTemplateId(studyToolId);\n TemplateManager.TemplateType templateType = templateManager.getTemplateType(Integer.parseInt(templateId));\n List<Object> timeInfo = templateManager.getTimeInfo(templateId);\n boolean isTimed = (Boolean) timeInfo.get(0);\n boolean isTimedPerQuestion = (Boolean) timeInfo.get(1);\n long timeLimitInMS = 1000 * (Integer) timeInfo.get(2);\n long quizStartTime = System.currentTimeMillis();\n int total_score = questionsAndAnswers.length;\n int curr_score = 0;\n Queue<String[]> questionsToRepeat = new LinkedList<>();\n AnswerChecker answerChecker = studyToolManager.getAnswerChecker(studyToolId);\n for (String[] qa : questionsAndAnswers) {\n long questionStartTime = System.currentTimeMillis();\n studyToolDisplayer.displayAQuestion(qa);\n regularPresenter.getAnswerPrompter(templateType);\n String answer = scanner.nextLine();\n boolean correctness = answerChecker.isCorrectAnswer(answer, qa[1]);\n if (templateType.equals(TemplateManager.TemplateType.FC) && !correctness) {\n // TODO: make this depend on template's configuration\n questionsToRepeat.add(qa);\n }\n long questionTimeElapsed = System.currentTimeMillis() - questionStartTime;\n if (isTimed && isTimedPerQuestion && (questionTimeElapsed >= timeLimitInMS)) {\n regularPresenter.ranOutOfTimeReporter();\n } else {\n curr_score += (correctness ? 1 : 0);\n regularPresenter.correctnessReporter(correctness);\n }\n regularPresenter.pressEnterToShowAnswer();\n scanner.nextLine();\n studyToolDisplayer.displayAnAnswer(qa);\n }\n //FC only, for repeating wrong questions until all is memorized\n while (!questionsToRepeat.isEmpty()) {\n String[] qa = questionsToRepeat.poll();\n studyToolDisplayer.displayAQuestion(qa);\n regularPresenter.getAnswerPrompter(templateType);\n String answer = scanner.nextLine();\n boolean correctness = answerChecker.isCorrectAnswer(answer, qa[1]);\n if (!correctness) {\n questionsToRepeat.add(qa);\n }\n regularPresenter.correctnessReporter(correctness);\n regularPresenter.pressEnterToShowAnswer();\n studyToolDisplayer.displayAnAnswer(qa);\n }\n long quizTimeElapsed = System.currentTimeMillis() - quizStartTime;\n if (isTimed && !isTimedPerQuestion && (quizTimeElapsed >= timeLimitInMS)){\n regularPresenter.ranOutOfTimeReporter();\n }\n else if (templateManager.isTemplateScored(templateId)) {\n String score = curr_score + \"/\" + total_score;\n regularPresenter.studySessionEndedReporter(score);\n }\n }", "public ArrayList<String> generateAnswers(){\r\n ArrayList<String> ans;\r\n if(qType==0){\r\n ans = new ArrayList(Arrays.asList(\"A\",\"B\",\"C\",\"D\",\"E\"));\r\n }\r\n else{\r\n ans = new ArrayList(Arrays.asList(\"Choice 1\",\"Choice 2\"));\r\n }\r\n return ans;\r\n }", "public String printOutQuestion()\n\t{\n\t\tRandom rand = new Random();\n\t\tString[] answers = new String[4];\n\t\tString returnString;\n\t\tanswers[0] = answer;\n\t\tanswers[1] = falseAnswers[0];\n\t\tanswers[2] = falseAnswers[1];\n\t\tanswers[3] = falseAnswers[2];\n\t\tString firstAns = \"\", secondAns = \"\", thirdAns = \"\", fourthAns = \"\";\n\t\t\n\t\twhile(firstAns == secondAns || firstAns == thirdAns || firstAns == fourthAns || secondAns == thirdAns || secondAns == fourthAns || thirdAns == fourthAns)\n\t\t{\n\t\t\tfirstAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(firstAns); Used for debugging\n\t\t\tsecondAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(secondAns); Used for debugging\n\t\t\tthirdAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(thirdAns); Used for debugging\n\t\t\tfourthAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(fourthAns); Used for debugging\n\t\t}\n\t\t\n\t\tanswerA = firstAns;\n\t\tanswerB = secondAns;\n\t\tanswerC = thirdAns;\n\t\tanswerD = fourthAns;\n\t\t//System.out.println(questionString + \"Answer A: \" + firstAns + \"Answer B: \" + secondAns + \"Answer C: \" + thirdAns + \"Answer D: \" + fourthAns); Used for debugging\n\t\treturnString = questionString + \"?\"; \n\t\tSystem.out.println(\"Actual Answer is: \" + answer);\n\t\treturn returnString;\n\t}", "public void resetQuiz() \r\n { \r\n // use AssetManager to get image file names for enabled regions\r\n // loop through each region\r\n // get a list of all flag image files in this region\r\n // reset the number of correct answers made\r\n // reset the total number of guesses the user made\r\n // clear prior list of quiz countries\r\n \r\n\r\n // add FLAGS_IN_QUIZ random file names to the quizCountriesList\r\n\r\n // get the random file name\r\n // if the region is enabled and it hasn't already been chosen\r\n\r\n // start the quiz by loading the first flag\r\n }", "public void setQuestion(){\n\n\n triggerReport(); //Check if max questions are displayed, if yes then show report\n\n MyDatabase db = new MyDatabase(QuizCorner.this);\n Cursor words = db.getQuizQuestion();\n TextView question_text = (TextView) findViewById(R.id.question_text);\n RadioButton rb;\n resetOptions();\n disableCheck();\n enableRadioButtons();\n hideAnswer();\n words.moveToFirst();\n word = words.getString(words.getColumnIndex(\"word\"));\n correct_answer = words.getString(words.getColumnIndex(\"meaning\"));\n question_text.setText(word + \" means:\");\n for (int i = 0; i < 4; i++){\n answers[i] = words.getString(words.getColumnIndex(\"meaning\"));\n words.moveToNext();\n }\n answers = randomizeArray(answers);\n for (int i = 0; i < 4; i++){\n rb = (RadioButton) findViewById(options[i]);\n rb.setText(answers[i]);\n }\n question_displayed_count++;\n }", "public void createEssay() {\n Question q = new Essay(this.in,this.o);\n this.o.setDisplay(\"Enter the prompt for your Essay question:\\n\");\n this.o.getDisplay();\n\n q.setPrompt(this.in.getUserInput());\n\n int numAns = 0;\n while (numAns == 0) {\n this.o.setDisplay(\"How many answers does this question have?\\n\");\n this.o.getDisplay();\n\n try {\n numAns = Integer.parseInt(this.in.getUserInput());\n if (numAns > numChoices || numAns < 1) {\n numAns = 0;\n } else {\n q.setMaxResponses(numAns);\n }\n } catch (NumberFormatException e) {\n numAns = 0;\n }\n }\n\n if (isTest) {\n RCA ca = new RCA(this.in,this.o);\n Test t = (Test)this.survey;\n String ans;\n\n this.o.setDisplay(\"Enter correct answer(s)\\n\");\n this.o.getDisplay();\n\n for (int j=0; j < q.getMaxResponses(); j++){\n\n ans = this.in.getUserInput();\n\n ca.addResponse(ans);\n }\n t.addAnswer(ca);\n }\n\n this.survey.addQuestion(q);\n }", "public AssistantJack(int answerSet) {\n\t\tthis();\n\t\tif(answerSet == 1) {\n\t\t\tthis.correctTheory = new Theory(1,1,1);\n\t\t}\n\t\telse if (answerSet == 2) {\n\t\t\tthis.correctTheory = new Theory(6, 10, 6);\n\t\t}\n\t\telse {\n\t\t\tRandom random = new Random();\n\t\t\tint weapon = random.nextInt(6) + 1;\n\t\t\tint location = random.nextInt(10) + 1;\n\t\t\tint person = random.nextInt(6) + 1;\n\t\t\tthis.correctTheory = new Theory(weapon, location, person);\n\t\t}\n\t}", "private void settingQuestion() {\n\n int[] setWord = {0, 0, 0, 0, 0};\n int[] setPos = {0, 0, 0, 0};\n int[] setBtn = {0, 0, 0, 0};\n\n Random ans = new Random();\n int wordNum = ans.nextInt(vocabularyLesson.size());\n //answer = vocabularyLesson.get(wordNum).getMean();\n word = vocabularyLesson.get(wordNum).getWord();\n vocabularyID = vocabularyLesson.get(wordNum).getId();\n answer = word;\n\n Practice practice = pc.getPracticeById(vocabularyID);\n if (practice != null) {\n Log.d(\"idVocabulary\", practice.getSentence());\n question.setText(practice.getSentence());\n }\n\n\n // Random position contain answer\n setWord[wordNum] = 1;\n Random p = new Random();\n int pos = p.nextInt(4);\n if (pos == 0) {\n word1.setText(word);\n setBtn[0] = 1;\n }\n if (pos == 1) {\n word2.setText(word);\n setBtn[1] = 1;\n }\n if (pos == 2) {\n word3.setText(word);\n setBtn[2] = 1;\n }\n if (pos == 3) {\n word4.setText(word);\n setBtn[3] = 1;\n }\n setPos[pos] = 1;\n\n // Random 3 position contain 3 answer\n for (int i = 0; i < 3; i++) {\n Random ques = new Random();\n int num = ques.nextInt(5);\n int p1 = ques.nextInt(4);\n while (setWord[num] == 1 || setPos[p1] == 1) {\n num = ques.nextInt(5);\n p1 = ques.nextInt(4);\n }\n String wordIncorrect = vocabularyLesson.get(num).getWord();\n setWord[num] = 1;\n setPos[p1] = 1;\n if (setBtn[p1] == 0 && p1 == 0) {\n word1.setText(wordIncorrect);\n setBtn[0] = 1;\n }\n if (setBtn[p1] == 0 && p1 == 1) {\n word2.setText(wordIncorrect);\n setBtn[1] = 1;\n }\n if (setBtn[p1] == 0 && p1 == 2) {\n word3.setText(wordIncorrect);\n setBtn[2] = 1;\n }\n if (setBtn[p1] == 0 && p1 == 3) {\n word4.setText(wordIncorrect);\n setBtn[3] = 1;\n }\n }\n\n }", "public static void displayQuestions() {\n System.out.println(\"1. Is your character male?\");\n System.out.println(\"2. Is your character female?\");\n System.out.println(\"3. Does your character have brown hair?\");\n System.out.println(\"4. Does your character have red hair?\");\n System.out.println(\"5. Does your character have blonde hair?\");\n System.out.println(\"6. Does your character have green eyes?\");\n System.out.println(\"7. Does your character have blue eyes?\");\n System.out.println(\"8. Does your character have brown eyes?\");\n System.out.println(\"9. Is your character wearing a green shirt?\");\n System.out.println(\"10. Is your character wearing a blue shirt?\");\n System.out.println(\"11. Is your character wearing a red shirt?\");\n }", "public void setSingleChoices() {\r\n Random randomGenerator = new Random();\r\n int singleAnswer = randomGenerator.nextInt(4);\r\n studentAnswer.add(singleAnswer); }", "public void fillQuestionsTable() {\n\n //Hard Questions\n Questions q1 = new Questions(\"The redshift of a distant galaxy is 0·014. According to Hubble’s law, the distance of the galaxy from Earth is? \", \" 9·66 × 10e-12 m\", \" 9·32 × 10e27 m\", \"1·83 × 10e24 m\", \"1·30 × 10e26 m \", 3);\n addQuestion(q1);\n Questions q2 = new Questions(\"A ray of monochromatic light passes from air into water. The wavelength of this light in air is 589 nm. The speed of this light in water is? \", \" 2·56 × 10e2 m/s \", \"4·52 × 10e2 m/s\", \"4·78 × 10e2 m/s\", \"1·52 × 10e2 m/s\", 2);\n addQuestion(q2);\n Questions q3 = new Questions(\"A car is moving at a speed of 2·0 m s−1. The car now accelerates at 4·0 m s−2 until it reaches a speed of 14 m s−1. The distance travelled by the car during this acceleration is\", \"1.5m\", \"18m\", \"24m\", \"25m\", 3);\n addQuestion(q3);\n Questions q4 = new Questions(\"A spacecraft is travelling at 0·10c relative to a star. \\nAn observer on the spacecraft measures the speed of light emitted by the star to be?\", \"0.90c\", \"1.00c\", \"1.01c\", \"0.99c\", 2);\n addQuestion(q4);\n Questions q5 = new Questions(\"Measurements of the expansion rate of the Universe lead to the conclusion that the rate of expansion is increasing. Present theory proposes that this is due to? \", \"Redshift\", \"Dark Matter\", \"Dark Energy\", \"Gravity\", 3);\n addQuestion(q5);\n Questions q6 = new Questions(\"A block of wood slides with a constant velocity down a slope. The slope makes an angle of 30º with the horizontal axis. The mass of the block is 2·0 kg. The magnitude of the force of friction acting on the block is?\" , \"1.0N\", \"2.0N\", \"9.0N\", \"9.8N\", 4);\n addQuestion(q6);\n Questions q7 = new Questions(\"A planet orbits a star at a distance of 3·0 × 10e9 m. The star exerts a gravitational force of 1·6 × 10e27 N on the planet. The mass of the star is 6·0 × 10e30 kg. The mass of the planet is? \", \"2.4 x 10e14 kg\", \"3.6 x 10e25 kg\", \"1.2 x 10e16 kg\", \"1.6 x 10e26 kg\", 2);\n addQuestion(q7);\n Questions q8 = new Questions(\"Radiation of frequency 9·00 × 10e15 Hz is incident on a clean metal surface. The maximum kinetic energy of a photoelectron ejected from this surface is 5·70 × 10e−18 J. The work function of the metal is?\", \"2.67 x 10e-19 J\", \"9.10 x 10e-1 J\", \"1.60 x 10e-18 J\", \"4.80 x 10e-2 J\", 1);\n addQuestion(q8);\n Questions q9 = new Questions(\"The irradiance of light from a point source is 32 W m−2 at a distance of 4·0 m from the source. The irradiance of the light at a distance of 16 m from the source is? \", \"1.0 W m-2\", \"8.0 W m-2\", \"4.0 W m-2\", \"2.0 W m-2\", 4);\n addQuestion(q9);\n Questions q10 = new Questions(\"A person stands on a weighing machine in a lift. When the lift is at rest, the reading on the weighing machine is 700 N. The lift now descends and its speed increases at a constant rate. The reading on the weighing machine...\", \"Is a constant value higher than 700N. \", \"Is a constant value lower than 700N. \", \"Continually increases from 700 N. \", \"Continually decreases from 700 N. \", 2);\n addQuestion(q10);\n\n //Medium Questions\n Questions q11 = new Questions(\"What is Newtons Second Law of Motion?\", \"F = ma\", \"m = Fa\", \"F = a/m\", \"Every action has an equal and opposite reaction\", 1);\n addQuestion(q11);\n Questions q12 = new Questions(\"In s = vt, what does s stand for?\", \"Distance\", \"Speed\", \"Sin\", \"Displacement\", 4);\n addQuestion(q12);\n Questions q13 = new Questions(\"An object reaches terminal velocity when...\", \"Forward force is greater than the frictional force.\", \"All forces acting on that object are equal.\", \"Acceleration starts decreasing.\", \"Acceleration is greater than 0\", 2);\n addQuestion(q13);\n Questions q14 = new Questions(\"An Elastic Collision is where?\", \"There is no loss of Kinetic Energy.\", \"There is a small loss in Kinetic Energy.\", \"There is an increase in Kinetic Energy.\", \"Some Kinetic Energy is transferred to another type.\", 1);\n addQuestion(q14);\n Questions q15 = new Questions(\"The speed of light is?\", \"Different for all observers.\", \"The same for all observers. \", \"The same speed regardless of the medium it is travelling through. \", \"Equal to the speed of sound.\", 2);\n addQuestion(q15);\n Questions q16 = new Questions(\"What is redshift?\", \"Light moving to us, shifting to red. \", \"A dodgy gear change. \", \"Light moving away from us shifting to longer wavelengths.\", \"Another word for dark energy. \", 3);\n addQuestion(q16);\n Questions q17 = new Questions(\"Which law allows us to estimate the age of the universe?\", \"Newtons 3rd Law \", \"The Hubble-Lemaitre Law \", \"Planck's Law \", \"Wien's Law \", 2);\n addQuestion(q17);\n Questions q18 = new Questions(\"The standard model...\", \"Models how time interacts with space. \", \"Describes how entropy works. \", \"Is the 2nd Law of Thermodynamics. \", \"Describes the fundamental particles of the universe and how they interact\", 4);\n addQuestion(q18);\n Questions q19 = new Questions(\"The photoelectric effect gives evidence for?\", \"The wave model of light. \", \"The particle model of light. \", \"The speed of light. \", \"The frequency of light. \", 2);\n addQuestion(q19);\n Questions q20 = new Questions(\"AC is a current which...\", \"Doesn't change direction. \", \"Is often called variable current. \", \"Is sneaky. \", \"Changes direction and instantaneous value with time. \", 4);\n addQuestion(q20);\n\n //Easy Questions\n Questions q21 = new Questions(\"What properties does light display?\", \"Wave\", \"Particle\", \"Both\", \"Neither\", 3);\n addQuestion(q21);\n Questions q22 = new Questions(\"In V = IR, what does V stand for?\", \"Velocity\", \"Voltage\", \"Viscosity\", \"Volume\", 2);\n addQuestion(q22);\n Questions q23 = new Questions(\"The abbreviation rms typically stands for?\", \"Round mean sandwich. \", \"Random manic speed. \", \"Root manic speed. \", \"Root mean squared. \", 4);\n addQuestion(q23);\n Questions q24 = new Questions(\"Path Difference = \", \"= (m/λ) or (m + ½)/λ where m = 0,1,2…\", \"= mλ or (m + ½) λ where m = 0,1,2…\", \"= λ / m or (λ + ½) / m where m = 0,1,2…\", \" = mλ or (m + ½) λ where m = 0.5,1.5,2.5,…\", 2);\n addQuestion(q24);\n Questions q25 = new Questions(\"How many types of quark are there?\", \"6\", \"4 \", \"8\", \"2\", 1);\n addQuestion(q25);\n Questions q26 = new Questions(\"A neutrino is a type of?\", \"Baryon\", \"Gluon\", \"Lepton\", \"Quark\", 3);\n addQuestion(q26);\n Questions q27 = new Questions(\"A moving charge produces:\", \"A weak field\", \"An electric field\", \"A strong field\", \"Another moving charge\", 2);\n addQuestion(q27);\n Questions q28 = new Questions(\"What contains nuclear fusion reactors?\", \"A magnetic field\", \"An electric field\", \"A pool of water\", \"Large amounts of padding\", 1);\n addQuestion(q28);\n Questions q29 = new Questions(\"What is the critical angle of a surface?\", \"The incident angle where the angle of refraction is 45 degrees.\", \"The incident angle where the angle of refraction is 90 degrees.\", \"The incident angle where the angle of refraction is 135 degrees.\", \"The incident angle where the angle of refraction is 180 degrees.\", 2);\n addQuestion(q29);\n Questions q30 = new Questions(\"Which is not a type of Lepton?\", \"Electron\", \"Tau\", \"Gluon\", \"Muon\", 3);\n addQuestion(q30);\n }", "public Test(ArrayList<WrittenQuestion> questions){\r\n\t\tmyQuestions = new ArrayList<WrittenQuestion>();\r\n\t\tfor(WrittenQuestion q : questions){\r\n\t\t\tif(q instanceof Question){\r\n\t\t\t\tmyQuestions.add(new Question((Question)q));\r\n\t\t\t}else{\r\n\t\t\t\tmyQuestions.add(new WrittenQuestion(q));\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(allIDs==null){\r\n\t\t\tallIDs = new ArrayList<Integer>();\r\n\t\t\tfor (int i = 0; i<1000; i++){\r\n\t\t\t\tallIDs.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tRandom r = new Random();\r\n\t\tid = allIDs.remove((int)(r.nextInt(allIDs.size())));\r\n\r\n\t}", "public QuestionTF() {}", "public static void main(String[] args) {\n\t\tRandom rand = new Random();\n\t\tScanner scan = new Scanner(System.in);\n\t\tint randNum;\n\t\tString userGuess;\n\t\tString outcome;\n\t\tString goAgain;\n\t\tboolean goAgainValid=false;\n\t\tboolean quit=false;\n\t\t\n\t\ttry {\n\t\t\t// declaring the questions and answers\n\t\t\tString[] jokeQuestions = { \"Largest planet ? \", \"Worse song ever ? \", \"Capital of Peru?\", \"Roman god of War ?\" };\n\t\t\tString[] jokeAnswers = { \"Jupiter\", \"Baby\", \"Lima\", \"Mars\" };\n\t\n\t\t\tSystem.out.println(\"General knowledge quiz...\");\n\t\t\n\t\t\tdo {\n\t\t\t\t// generate random number (between 0-3)\n\t\t\t\trandNum = rand.nextInt(4);\n\t\t\t\t\n\t\t\t\t// user given random question\n\t\t\t\tSystem.out.println(\"\\nQ: \"+jokeQuestions[randNum]);\n\t\t\t\t// user responds\n\t\t\t\tSystem.out.printf(\"A: \");\n\t\t\t\tuserGuess = scan.next();\n\t\t\t\t// user answer checked against correct answer\n\t\t\t\tif (userGuess.equalsIgnoreCase(jokeAnswers[randNum])) {\n\t\t\t\t\t// correct\n\t\t\t\t\toutcome = \"Well done, your answer was correct!\";\n\t\t\t\t} else {\n\t\t\t\t\t// wrong\n\t\t\t\t\toutcome = \"Sorry, your answer was incorrect\";\n\t\t\t\t}\n\t\t\t\t// user is notified of outcome\n\t\t\t\tSystem.out.println(\"\\n\"+outcome);\n\t\t\t\t// user is prompted to continue or quit (loop until they give a valid response\n\t\t\t\tdo {\n\t\t\t\t\tSystem.out.println(\"Would you like another question? (Y or N)\");\n\t\t\t\t\tgoAgain = scan.next();\n\t\t\t\t\tif (goAgain.equalsIgnoreCase(\"y\")) {\n\t\t\t\t\t\t// repeat\n\t\t\t\t\t\tgoAgainValid=true;\n\t\t\t\t\t} else if (goAgain.equalsIgnoreCase(\"n\")) {\n\t\t\t\t\t\t// quit\n\t\t\t\t\t\tgoAgainValid=true;\n\t\t\t\t\t\tquit=true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// choose again\n\t\t\t\t\t\tSystem.out.println(\"That was an invlaid response, please respond with Y or N\");\n\t\t\t\t\t}\n\t\t\t\t} while (!goAgainValid);\n\t\t\t} while (!quit);\n\t\t} catch (Exception exception) {\n\t\t\tSystem.out.println(\"The quiz master has had a problem...\");\n\t\t} finally {\n\t\t\tSystem.out.println(\"Thanks for playing!\");\n\t\t\tscan.close();\n\t\t}\n\t}", "public Quiz(String name) {\n this.name = name;\n }", "public static void main(String[] args) {\n Template robert = new ConcreteAnswer(\"Robert\");\r\n robert.question();\r\n }", "private void startQuiz()\n\t{\n\t\tSystem.out.println(\"Enter the number of rounds : \");\n\t\tnoOfRounds = Utilities.scan.nextByte();\n\t\tSystem.out.println(\"Enter the time for asking question: \");\n\t\tquestionTimelimitInSeconds = Utilities.scan.nextInt();\n\t\tSystem.out.println(\"Enter the time for answering the question: \");\n\t\tAnswerTimeLimitInSeconds = Utilities.scan.nextInt();\n\t\t\n\t\t/*\n\t\t * Clean the server buffer so that all the previous packets which are accumulated in the buffer are destroyed!\n\t\t */\n\t\tSystem.out.println(\"Cleaning the server buffer\\n\");\n\t\tcleanServerBuffer();\n\t\t\n\t\tint questionSeqNo = 1234;\n\t\t\n\t\tfor(int i=0;i<noOfRounds;i++)\n\t\t{\n\t\t\t/*\n\t\t\t * Rounds\n\t\t\t */\n\t\t\tfor (int j=0;j<groups.size();j++)\n\t\t\t{\n\t\t\t\t/*\n\t\t\t\t * Turns\n\t\t\t\t */\n\t\t\t\tGroup g = groups.get(j);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Sending the quiz start packet to the group \"+j+\" ! \");\n\t\t\t\tsendInterfacePacketBCast(g);\n\t\t\t\t/*\n\t\t\t\t * \n\t\t\t\t * Now receive the questions from active group\n\t\t\t\t */\n\t\t\t\t// Start the timer for question session\n\t\t\t\tString answer = receiveAndSendQuestions(questionSeqNo,g);\n\t\t\t\tSystem.out.println(\"\\nRecvd question!!\\n\");\n\t\t\t\tif( answer == null )\n\t\t\t\t{\n\t\t\t\t\t/*\n\t\t\t\t\t * No question is formed, make next group as active\n\t\t\t\t\t */\n\t\t\t\t\tSystem.out.println(\"OMG!!!!!!!!!!!!!!!!!!!!!!!!11\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tArrayList<String> answeredStuds = getResponses(questionSeqNo, answer);\n\t\t\t\tcalculateMarks(answeredStuds, groups, j);\n\t\t\t\tquestionSeqNo++;\n\t\t\t\tcleanBuffer();\n\t\t\t}\n\t\t}\n\t}", "public void generateRandomQuestions(){\r\n numberHolder = new ArrayList<>(NUMBER_OF_QUESTIONS);\r\n for (int i = 0; i < NUMBER_OF_QUESTIONS; i++)\r\n numberHolder.add(i);\r\n\r\n Collections.shuffle(numberHolder);\r\n System.out.println(numberHolder);\r\n\r\n }", "private void nextQuestion() {\n\n // increment current question index\n currentQuestionIndex++;\n\n // if the current question index is smaller than the size of the quiz list\n if (currentQuestionIndex < quizList.size()) {\n\n // clear the possible answers\n possibleAnswers.clear();\n\n // grab the definition of current question, assign the correct answer variable\n // and add it to the list of possible answers.\n definition = quizList.get(currentQuestionIndex)[0];\n correctAnswer = quizMap.get(definition);\n possibleAnswers.add(correctAnswer);\n\n // while there's less than 4 possible answers, get a random answer\n // and if it hasn't already been added, add it to the list.\n while (possibleAnswers.size() < 4) {\n String answer = quizList.get(new Random().nextInt(quizList.size() - 1))[1];\n if (!possibleAnswers.contains(answer)) {\n possibleAnswers.add(answer);\n }\n }\n\n // shuffle possible answers so they display in a random order\n Collections.shuffle(possibleAnswers);\n } else {\n // if the question index is out of bounds, set quiz as finished\n quizFinished = true;\n }\n }", "public void setTFChoices() {\r\n Random randomGenerator = new Random();\r\n int trueFalseAnswer = randomGenerator.nextInt(2);\r\n studentAnswer.add(trueFalseAnswer);\r\n }", "private void fetchNewQuestion()\r\n\t{\r\n\t\t//Gets question and answers from model\r\n\t\tString[] question = quizModel.getNewQuestion();\r\n\t\t\r\n\t\t//Allocates answers to a new ArrayList then shuffles them randomly\r\n\t\tArrayList<String> answers = new ArrayList<String>();\r\n\t\tanswers.add(question[1]);\r\n\t\tanswers.add(question[2]);\r\n\t\tanswers.add(question[3]);\r\n\t\tanswers.add(question[4]);\r\n\t\tCollections.shuffle(answers);\r\n\t\t\r\n\t\t//Allocates north label to the question\r\n\t\tnorthLabel.setText(\"<html><div style='text-align: center;'>\" + question[0] + \"</div></html>\");\r\n\t\t\r\n\t\t//Allocates each radio button to a possible answer. Based on strings, so randomly generated questions...\r\n\t\t//...which by chance repeat a correct answer in two slots, either will award the user a point.\r\n\t\toption1.setText(answers.get(0));\r\n\t\toption2.setText(answers.get(1));\r\n\t\toption3.setText(answers.get(2));\r\n\t\toption4.setText(answers.get(3));\r\n\t\toption1.setActionCommand(answers.get(0));\r\n\t\toption2.setActionCommand(answers.get(1));\r\n\t\toption3.setActionCommand(answers.get(2));\r\n\t\toption4.setActionCommand(answers.get(3));\r\n\t\toption1.setSelected(true);\r\n\t\t\r\n\t\t//Update score\r\n\t\tscoreLabel.setText(\"<html><div style='text-align: center;'>\" + \"Score = \" + quizModel.getScore() + \"</div></html>\");\r\n\t}", "@Test\n public void testGetAnswersByQuestion(){\n Survey survey = createSurvey();\n Question question = createQuestion(survey);\n Answer answer = createAnswer(question);\n\n long testQuestionId = question.getId();\n List<Answer> testAnswers = answerDAO.getAnswersByQuestion(testQuestionId);\n // hiç cevap gelebiliyor mu kontrol, en az 1 cevap yukarda verdik çünkü.\n Assert.assertTrue(testAnswers != null && testAnswers.size() >= 1);\n }", "public void resetQuestion() \n\t{\n\t\tthis.game = masterPanel.getGame();\n\t\t\n\t\tArrayList<String> tempQuestion = new ArrayList<String>();\n\t\ttempQuestion = getRandQuestion();\n\t\t\n\t\tquestion.setText(tempQuestion.get(0));\n\t\tanswerOne.setText(tempQuestion.get(1));\n\t\tanswerTwo.setText(tempQuestion.get(2));\n\t\tanswerThree.setText(tempQuestion.get(3));\n\t\tanswerFour.setText(tempQuestion.get(4));\n\t\tcorrectAnswer = tempQuestion.get(5);\n\t\t\n\t\tlayoutConstraints.gridy = 1;\n\t\tthis.add(answerOne, layoutConstraints);\n\t\t\n\t\tlayoutConstraints.gridy = 2;\n\t\tthis.add(answerTwo, layoutConstraints);\n\t\t\n\t\tlayoutConstraints.gridy = 3;\n\t\tthis.add(answerThree, layoutConstraints);\n\t\t\n\t\tlayoutConstraints.gridy = 4;\n\t\tthis.add(answerFour, layoutConstraints);\n\t\t\n\t\tthis.repaint();\n\t}", "public Questions simulateQuestion(){\n return this._testQuestions.remove(0);\n }", "public void createTrueFalse() {\n Question q = new TrueFalse(this.in,this.o);\n this.o.setDisplay(\"Enter the prompt for your True/False question:\\n\");\n this.o.getDisplay();\n\n q.setPrompt(this.in.getUserInput());\n\n if (isTest) {\n Test t = (Test)this.survey;\n RCA ca = new RCA(this.in,this.o);\n\n this.o.setDisplay(\"Enter the correct answer (T/F):\\n\");\n this.o.getDisplay();\n\n ca.addResponse();\n\n while (!ca.getResponses().get(0).contains(\"T\") && !ca.getResponses().get(0).contains(\"F\")) {\n ca.removeResponse(0);\n this.o.setDisplay(\"Enter a valid answer (T/F):\\n\");\n this.o.getDisplay();\n ca.addResponse();\n }\n\n t.addAnswer(ca);\n }\n this.survey.addQuestion(q);\n }", "public Queue<WordExam> generateAllWordsExam(List<Word> wordsToTest) {\n LinkedList<WordExam> exams = new LinkedList<>();\n for(Word curWord : wordsToTest) {\n List<String> curWordExamOptions = getWordOptions(curWord, wordsToTest, 4);\n WordExam curWordExam = new WordExam(curWord, curWordExamOptions);\n exams.add(curWordExam);\n }\n\n Collections.shuffle(exams);\n\n return exams;\n }", "@Test\r\n\tpublic void questionTest() throws Throwable {\n\t\tString category=eUtil.getExcelData(\"smoke\", 1, 2);\r\n\t\tString subcategory=eUtil.getExcelData(\"smoke\", 1, 3);\r\n\t\tString question_title=eUtil.getExcelData(\"smoke\", 1, 4);\r\n\t\tString description=eUtil.getExcelData(\"smoke\", 1, 5);\r\n\t\tString expectedresult=eUtil.getExcelData(\"smoke\", 1, 6);\r\n\r\n\t\t//Navigate to QuestionPage\r\n\t\tQuestionsPage questionpage=new QuestionsPage(driver);\r\n\t\tquestionpage.questionPage(category, subcategory, question_title, description);\r\n\t\t\r\n\t\t//Verification\r\n\t\tString actual = questionpage.questionsLink();\r\n\t\tAssert.assertTrue(actual.contains(expectedresult));\r\n\t}", "void actual_test_taker(String name,String rollno){\n File file_of_the_current_student= new File(\"C://Manish//The_Test_Taker//All_Text_files//Student_Record//\"+rollno+\".txt\");\n String subject;\n int chapter;\n\n //This function will read all the values of the instance variable for the quiz.\n get_values(file_of_the_current_student);\n\n //This function will display all the subjects offered to the student based on the semester in which he/she is.\n //and ask the student for the choice of the subject of which he/she wants to take the quiz.\n subject=choose_among_the_subjects_offered();\n\n //This function will display all the chapters offered in a particular subject and ask the student about his/her choice of chapter/s.\n \n chapter=choose_among_the_chapters_of_the_subject(subject,\"SEM_3\");\n if(chapter == -1){\n return;\n }\n \n \n //Now we will open the file of the chapter of the specific subject.\n File quiz_file = new File(\"C://Manish//The_Test_Taker//All_Text_files//Quizes//\"+\"SEM_3\"+\"//\"+subject+\"//\"+subject+\"_CHAPTER0\"+chapter+\".txt\");\n\n //This function will display each question one by one as per the chapter opted for.\n //Also it will store the marks of the student and will keep on calculating the final total marks of that quiz.\n int quiz_marks= taking_test(quiz_file); \n if(quiz_marks==-1){\n return;\n }\n \n //Assigning the corresponding quiz variable it's value after the test.\n switch(subject){\n case \"OOP\":\n OOP[chapter-1]=quiz_marks;\n break;\n case \"DSA\":\n DSA[chapter-1]=quiz_marks;\n break;\n case \"DE\":\n DE[chapter-1]=quiz_marks;\n break;\n }\n total_marks+=quiz_marks;\n average=total_marks/10;\n\n set_values(file_of_the_current_student);\n System.out.println(\"###############################################################################################\");\n System.out.println(\" You completed the test successfully.\");\n System.out.println(\" You got a total score of \"+quiz_marks);\n System.out.println(\"###############################################################################################\");\n //System.out.println(quiz_marks);\n\n \n\n }", "public void setQuestion(){\n Random rand = new Random();\n a = rand.nextInt(maxRange)+1;\n b = rand.nextInt(maxRange)+1;\n int res = rand.nextInt(4);\n equation.setText(a +\"+\"+ b);\n for(int i=0; i<4; i++){\n if(i == res)\n arr[i] = a+b;\n else {\n int answer = rand.nextInt(2*maxRange)+1;\n while(answer == a+b)\n answer = rand.nextInt(2*maxRange)+1;\n arr[i] = answer;\n }\n }\n for(int i=0; i<4; i++)\n buttons[i].setText(String.valueOf(arr[i]));\n }", "private Answer generateAnswer(int numberOfPossibleAnswers, int numberOfCorrectAnswers) {\n\t\tAnswer answer = new Answer();\n\t\t//check to make sure that an impossible value cannot be passed\n\t\tif(numberOfPossibleAnswers > 9) {\n\t\t\tnumberOfPossibleAnswers = 9;\n\t\t}\n\t\t//check to make sure that an impossible value cannot be passed\n\t\tif(numberOfCorrectAnswers > 9) {\n\t\t\tnumberOfCorrectAnswers = 9;\n\t\t}\n\t\tRandom random = new Random();\n\t\t//if the question can only have one correct answer the student will only choose one answer at random\n\t\tif(numberOfCorrectAnswers == 1) {\n\t\t\tanswer.setAnswer(random.nextInt(numberOfPossibleAnswers));\n\t\t}\n\t\telse if(numberOfCorrectAnswers > 1) {\n\t\t\t//randomly chooses how many answers to give for the question\n\t\t\tint numberOfAnswers = random.nextInt(numberOfPossibleAnswers) + 1;\n\t\t\t//chooses at random which answers to choose\n\t\t\tfor(int i = 0; i < numberOfAnswers; i++) { \n\t\t\t\tint answerId = random.nextInt(numberOfPossibleAnswers);\n\t\t\t\t//if the answer has already been given by the student, the student will choose \n\t\t\t\t//another random answer until it has not already been chosen\n\t\t\t\twhile(answer.getAnswer(answerId)) {\n\t\t\t\t\tanswerId = random.nextInt(numberOfPossibleAnswers);\n\t\t\t\t}\n\t\t\t\tanswer.setAnswer(answerId);\n\t\t\t}\n\t\t}\n\t\treturn answer;\n\t}", "public abstract String chooseAnswer();", "public static void hitQuiz()\n\t{\n\t\tQuestion q = Home.questionList.get((int)(Math.random()*Home.questionList.size()));\n\t\tQuizQuestion q1= new QuizQuestion(q);\n\t\tq1.setAlwaysOnTop(true);\n\t\tq1.setVisible(true);\n\t\tsuspend();\n\t}", "public void createMatching() {\n int numChoices = 0;\n Question q = new Matching(this.in,this.o);\n this.o.setDisplay(\"Enter the prompt for your Matching question:\\n\");\n this.o.getDisplay();\n\n q.setPrompt(this.in.getUserInput());\n\n while (numChoices == 0) {\n this.o.setDisplay(\"Enter the number of choices for your question:\\n\");\n this.o.getDisplay();\n\n try {\n numChoices = Integer.parseInt(this.in.getUserInput());\n } catch (NumberFormatException e) {\n numChoices = 0;\n }\n }\n\n for (int i=0; i<numChoices;i++) {\n this.o.setDisplay(\"Enter choice#\" + (i+1) + \"\\n\");\n this.o.getDisplay();\n\n ((Matching) q).addChoicesToMatch(this.in.getUserInput());\n }\n\n for (int i=0; i<numChoices;i++) {\n this.o.setDisplay(\"Answer#\" + (i+1) + \" (enter any answer for one of the choices)\\n\");\n this.o.getDisplay();\n\n ((Matching) q).addChoice(this.in.getUserInput());\n }\n\n q.setMaxResponses(numChoices);\n\n if (isTest) {\n int choiceNum = 0;\n RCA ca = new RCA(this.in,this.o);\n Test t = (Test)this.survey;\n ArrayList<Integer> ans = new ArrayList<Integer>();\n\n for (int j=0; j < q.getMaxResponses(); j++){\n\n while (choiceNum == 0) {\n this.o.setDisplay(\"Enter answer# for choice#\" + (j+1) + \": \\n\");\n this.o.getDisplay();\n\n try {\n choiceNum = Integer.parseInt(this.in.getUserInput());\n\n if (choiceNum > numChoices || choiceNum < 1) {\n choiceNum = 0;\n } else {\n if (ans.contains(choiceNum)) {\n this.o.setDisplay(\"Answer already used\\n\");\n this.o.getDisplay();\n choiceNum = 0;\n } else {\n ans.add(choiceNum);\n ca.addResponse(Integer.toString(choiceNum));\n }\n }\n\n } catch (NumberFormatException e) {\n choiceNum = 0;\n }\n }\n choiceNum = 0;\n }\n t.addAnswer(ca);\n }\n this.survey.addQuestion(q);\n }", "public static void main(String[] args) {\n HashMap<Integer,String> questions = new HashMap<Integer, String>();\n try\n// reading file\n {\n int count = 0;\n File quiz = new File(\"quizzer.txt\");\n Scanner reader = new Scanner(quiz);\n while (reader.hasNextLine())\n {\n questions.put(count,reader.nextLine());\n count++;\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n//asking user for their name\n System.out.println(\"Enter Your name.\");\n String userName = scan.nextLine();\n// generating questions to ask\n int[] questionsToAsk = randomQuestionCollection(5,questions.size()-1);\n int score = 0;\n for(int i=0; i<questionsToAsk.length;i++) {\n String[] splitQuestion = questions.get(questionsToAsk[i]).split(\",\");\n if (askQuestion(splitQuestion) == 1) {\n System.out.println(\"Correct\");\n score++;\n }\n }\n// printing score\n System.out.println(userName+ \" you correctly answered \"+score + \"questions\");\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.quiz);\n\n if (animal_count[0] == 0) {\n // arrays filled with 0s and 1s\n int x = 0;\n int y = 1;\n int correctTop = 0;\n int correctBottom = 1;\n while (y < 33) {\n if (y < 17) {\n correct_answer[x] = correctTop;\n } else {\n correct_answer[x] = correctBottom;\n }\n animal_count[x] = y;\n x++;\n y++;\n }\n\n // randomized shuffling of arrays\n shuffleArray(animal_count);\n shuffleArray(correct_answer);\n\n // makes sure the same animal doesn't appear at the same time\n x = 0;\n y = 0;\n while (y < 32) {\n animal_count2[x] = animal_count[y];\n x++;\n y++;\n }\n shuffleArray(animal_count2);\n }\n\n // begin program\n rightAnswer(count);\n wrongAnswer(count);\n\n }", "void setQuestion(){\n int numberRange = currentLevel * 3;\n Random randInt = new Random();\n\n int partA = randInt.nextInt(numberRange);\n partA++;//not zero\n\n int partB = randInt.nextInt(numberRange);\n partB++;//not zero\n\n correctAnswer = partA * partB;\n int wrongAnswer1 = correctAnswer-2;\n int wrongAnswer2 = correctAnswer+2;\n\n textObjectPartA.setText(\"\"+partA);\n textObjectPartB.setText(\"\"+partB);\n\n //set the multi choice buttons\n //A number between 0 and 2\n int buttonLayout = randInt.nextInt(3);\n switch (buttonLayout){\n case 0:\n buttonObjectChoice1.setText(\"\"+correctAnswer);\n buttonObjectChoice2.setText(\"\"+wrongAnswer1);\n buttonObjectChoice3.setText(\"\"+wrongAnswer2);\n break;\n\n case 1:\n buttonObjectChoice2.setText(\"\"+correctAnswer);\n buttonObjectChoice3.setText(\"\"+wrongAnswer1);\n buttonObjectChoice1.setText(\"\"+wrongAnswer2);\n break;\n\n case 2:\n buttonObjectChoice3.setText(\"\"+correctAnswer);\n buttonObjectChoice1.setText(\"\"+wrongAnswer1);\n buttonObjectChoice2.setText(\"\"+wrongAnswer2);\n break;\n }\n }", "public void toQuiz(View view) throws Error {\n myDbHelper = new DataBaseHelper(this);\n try {\n myDbHelper.createDataBase();\n } catch (IOException ioe) {\n throw new Error(\"Unable to create database\");\n }\n myDbHelper.openDataBase();\n\n r = new Random();\n nums = new LinkedList<Integer>();\n for(int i=1;i<number_pokemon+1;i++)\n {\n nums.add(i);\n }\n options = new HashMap<Integer, Integer>();\n options.put(R.id.quiz_option1,1);\n options.put(R.id.quiz_option2,2);\n options.put(R.id.quiz_option3,3);\n options.put(R.id.quiz_option4,4);\n options.put(1,R.id.quiz_option1);\n options.put(2,R.id.quiz_option2);\n options.put(3,R.id.quiz_option3);\n options.put(4,R.id.quiz_option4);\n\n quizCreate(view);\n }", "private void takeQuiz(String filename) {\n String filepath = \"./src/multiplechoice/\" + filename + \".txt\";\n MCQuestionSet questionSet = new MCQuestionSet(filepath);\n int questionCount = questionSet.getSize();\n currentQuestion = questionSet.peekNext();\n correct = 0;\n //create question text\n BorderPane questionPane = new BorderPane();\n Button btnQuestion = createBigButton(\"TEMP TESTING\", 36, 25);\n questionPane.setCenter(btnQuestion);\n BorderPane.setMargin(btnQuestion, new Insets(20, 20, 20, 20));\n VBox choicePane = new VBox();\n //correct answer tracker\n VBox resultPane = new VBox();\n resultPane.setAlignment(Pos.CENTER);\n Label lblCorrect = new Label();\n lblCorrect.setFont(Font.font(TEXT_SIZE));\n resultPane.getChildren().add(lblCorrect);\n //next button trigger\n Button btnNext = createButton(\"Next\", TEXT_SIZE, 10);\n Button btnFinish = createButton(\"Finish\", TEXT_SIZE, 10);\n btnNext.setOnAction(e -> {\n currentQuestion = questionSet.getNext();\n if (currentQuestion == null) {\n btnFinish.fire();\n } else {\n choices = currentQuestion.getChoices();\n btnQuestion.setText(currentQuestion.getQuestion());\n choicePane.getChildren().clear();\n for (int i = 0; i < choices.length; i++) {\n Button btnChoice = createBigButton(choices[i], 24, 25);\n btnChoice.setOnAction(e2 -> {\n if (currentQuestion.isCorrect(btnChoice.getText())) {\n correct++;\n }\n lblCorrect.setText(correct + \" correct answers!\");\n btnNext.fire();\n });\n choicePane.getChildren().add(btnChoice);\n VBox.setMargin(btnChoice, new Insets(5, 50, 5, 50));\n }\n }\n });\n //submit final answer trigger and menu return button\n btnFinish.setOnAction(e -> {\n String message = \"Quiz Complete!\\n Score: \" + correct + \"/\";\n message = message + questionCount + \"\\n Click to continue.\";\n Button btnFinishMessage = createBigButton(message, 54, 100);\n btnFinishMessage.setOnAction(e2 -> {\n returnHome();\n });\n quizScores.add(filename, correct, questionCount);\n try (PrintWriter pw = new PrintWriter(new FileWriter(SCORES_OUTPUT))) {\n pw.print(quizScores);\n } catch (IOException ex) {\n System.out.println(\"FAILED TO SAVE SCORES\");\n }\n parentPane.getChildren().clear();\n parentPane.setCenter(btnFinishMessage);\n });\n //finalize\n parentPane.getChildren().clear();\n parentPane.setTop(questionPane);\n parentPane.setCenter(choicePane);\n parentPane.setBottom(resultPane);\n btnNext.fire();\n }", "public String quizGreet() {\n return (\"\\n | | _ _ _| / \\\\ _ \\n\"\n + \" |/\\\\|(_)| (_| \\\\__/|_) \\n\"\n + \" | \\n\"\n + \"Let's do some quiz to enhance your word knowledge \\n\"\n + \"Type \\\"start\\\" to begin quiz or \\\"exit_quiz\\\" to go back\");\n }", "@Test\r\n public void JokeQuestionWrong()\r\n {\r\n var answerInput = 3;\r\n var punchlineInput = \"one to hold the joke and two to turn the question\";\r\n var questionInput = \"How many Junit tests does it take to test a joke question?\";\r\n\r\n var responseAnswer = 4;\r\n var expectedText = \"How many Junit tests does it take to test a joke question?\\n\" +\r\n \"No!\\n\" +\r\n \"\\r\\n\" +\r\n \"3, one to hold the joke and two to turn the question\\n\" +\r\n \"\\r\\n\";\r\n\r\n var testOutputByteArray = new ByteArrayOutputStream();\r\n var testOutputStream = new PrintStream(testOutputByteArray );\r\n\r\n // Check joke question logic\r\n var mathQuestionAdd = new JokeQuestion(answerInput, questionInput, testOutputStream, punchlineInput);\r\n mathQuestionAdd.showQuestion();\r\n assertFalse(mathQuestionAdd.checkAnswer(responseAnswer));\r\n\r\n // Check joke question console outputs\r\n var content = testOutputByteArray.toString();\r\n assertEquals(content,expectedText);\r\n }", "@Override\r\n\tpublic void checkAnswer() {\n\t\t\r\n\t}", "public static void quizz(int nbOfQuestions)\n {\n \tgenerateQuizz(nbOfQuestions);\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Début du quizz : \");\n for(int i = 0; i < nbOfQuestions; i++)\n {\n System.out.println(\"Question \" +(i+1) + \" : \"+nb1[i]+\" + \"+nb2[i]+ \" = ?\");\n answer[i] = sc.nextInt();\n \n if(answer[i] == nb1[i] + nb2[i])\n {\n System.out.println(\"You rock !\");\n }\n else\n {\n System.out.println(\"Too bad ! Here's the answer : \" +(nb1[i]+nb2[i]));\n }\n }\n }", "private void newQuestion(int number) {\n bakeImageView.setImageResource(list.get(number - 1).getImage());\n\n //decide which button to place the correct answer\n int correct_answer = r.nextInt(4) + 1;\n\n int firstButton = number - 1;\n int secondButton;\n int thirdButton;\n int fourthButton;\n\n switch (correct_answer) {\n case 1:\n answer1Button.setText(list.get(firstButton).getName());\n\n do {\n secondButton = r.nextInt(list.size());\n } while (secondButton == firstButton);\n do {\n thirdButton = r.nextInt(list.size());\n } while (thirdButton == firstButton || thirdButton == secondButton);\n do {\n fourthButton = r.nextInt(list.size());\n } while (fourthButton == firstButton || fourthButton == secondButton || fourthButton == thirdButton);\n\n answer2Button.setText(list.get(secondButton).getName());\n answer3Button.setText(list.get(thirdButton).getName());\n answer4Button.setText(list.get(fourthButton).getName());\n\n break;\n\n case 2:\n answer2Button.setText(list.get(firstButton).getName());\n\n do {\n secondButton = r.nextInt(list.size());\n } while (secondButton == firstButton);\n do {\n thirdButton = r.nextInt(list.size());\n } while (thirdButton == firstButton || thirdButton == secondButton);\n do {\n fourthButton = r.nextInt(list.size());\n } while (fourthButton == firstButton || fourthButton == secondButton || fourthButton == thirdButton);\n\n answer1Button.setText(list.get(secondButton).getName());\n answer3Button.setText(list.get(thirdButton).getName());\n answer4Button.setText(list.get(fourthButton).getName());\n\n break;\n\n case 3:\n answer3Button.setText(list.get(firstButton).getName());\n\n do {\n secondButton = r.nextInt(list.size());\n } while (secondButton == firstButton);\n do {\n thirdButton = r.nextInt(list.size());\n } while (thirdButton == firstButton || thirdButton == secondButton);\n do {\n fourthButton = r.nextInt(list.size());\n } while (fourthButton == firstButton || fourthButton == secondButton || fourthButton == thirdButton);\n\n answer2Button.setText(list.get(secondButton).getName());\n answer1Button.setText(list.get(thirdButton).getName());\n answer4Button.setText(list.get(fourthButton).getName());\n\n\n break;\n\n case 4:\n answer4Button.setText(list.get(firstButton).getName());\n\n do {\n secondButton = r.nextInt(list.size());\n } while (secondButton == firstButton);\n do {\n thirdButton = r.nextInt(list.size());\n } while (thirdButton == firstButton || thirdButton == secondButton);\n do {\n fourthButton = r.nextInt(list.size());\n } while (fourthButton == firstButton || fourthButton == secondButton || fourthButton == thirdButton);\n\n answer2Button.setText(list.get(secondButton).getName());\n answer3Button.setText(list.get(thirdButton).getName());\n answer1Button.setText(list.get(fourthButton).getName());\n\n break;\n }\n }", "private String generateAnswer() throws IOException {\n int j = lineNumber();\n int i = 0;\n String result = \"\";\n Random rnd = new Random();\n int rndNumber = rnd.nextInt(j);\n File answers = new File(this.settings.getValue(\"botAnswerFile\"));\n try (RandomAccessFile raf = new RandomAccessFile(answers, \"r\")) {\n while (raf.getFilePointer() != raf.length()) {\n result = raf.readLine();\n i++;\n if ((i - 1) == rndNumber) {\n break;\n }\n }\n }\n return result;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_test);\n tvQuestion = findViewById(R.id.text_view_question);\n tvScore = findViewById(R.id.textView_score);\n tvQuestionCount = findViewById(R.id.textView_question_count);\n rbGroup = findViewById(R.id.radio_group);\n rbOne = findViewById(R.id.radio_option_one);\n rbTwo = findViewById(R.id.radio_option_two);\n rbThree = findViewById(R.id.radio_option_three);\n rbFour = findViewById(R.id.radio_option_four);\n buttonConfirmNext = findViewById(R.id.button_confirm_next);\n textColorDefaultRb = rbOne.getTextColors();\n DBHelper dbHelper = new DBHelper(this);\n questionList = dbHelper.getAllQuestions();\n questionCountTotal = questionList.size();\n// for changing the order of questions\n Collections.shuffle(questionList);\n// to show next question based on conditions\n showQuestion();\n// validation of answer and senting to next state\n buttonConfirmNext.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (!answered) {\n if (rbOne.isChecked() || rbTwo.isChecked() || rbThree.isChecked() || rbFour.isChecked()) {\n checkAnswer();\n } else {\n Toast.makeText(TestActivity.this, \"Please select an option\", Toast.LENGTH_SHORT).show();\n }\n } else {\n showQuestion();\n }\n }\n });\n }", "public Puzzles(String question, int answer, int level) {\n\t\tsuper();\n\t\tthis.question = question;\n\t\tthis.answer = answer;\n\t\tthis.isAsked = false;\n\t}", "private void updateQuestion()//update the question each time\n\t{\n\t\tInteger num = random.nextInt(20);\n\t\tcurrentAminoAcid = FULL_NAMES[num];\n\t\tcurrentShortAA= SHORT_NAMES[num];\n\t\tquestionField.setText(\"What is the ONE letter name for:\");\n\t\taminoacid.setText(currentAminoAcid);\n\t\tanswerField.setText(\"\");\n\t\tvalidate();\n\t}", "@Test\r\n\tpublic void invalidQuizTest() {\r\n\t\tquizBean qbean = null;\r\n\t\tboolean b = false;\r\n\t\ttry {\r\n\t\t\tInstructorUI.appendQuizNodeToXML(qbean);\r\n\r\n\t\t\tquizReader reader = new quizReader();\r\n\t\t\ttry {\r\n\t\t\t\tquizzes qlist = reader.read(quizXMLPath);\r\n\r\n\t\t\t\tfor (quizBean q : qlist) {\r\n\t\t\t\t\tif (q.compareTo(qbean) == 0 && !b) {\r\n\t\t\t\t\t\tb = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tb = false;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tb = false;\r\n\t\t}\r\n\r\n\t\tAssert.assertFalse(b);\r\n\r\n\t}", "public void setIdQuestion(int idT) {\r\n idQuestion=rand(idT);\r\n }", "public Question generateQuestion(String type, String field, int studyYear, int length)\n\t{\n\t\tQuestion q = null;\n\t\t\n\t\treturn q;\n\t}", "@Test\n public void testGetQuizPresentation()\n {\n // MAKE SURE THESE VALUES ARE UP-TO-DATE\n Quiz quizJava = new Quiz();\n quizJava.setId(2);\n quizJava.setName(\"An Agile Approach\");\n quizJava.setDescription(\"A quiz about Agile methods in programming\");\n quizJava.setUsername(\"AGILE MASTER\");\n quizJava.setModuleId(\"AC31007\");\n quizJava.setModuleName(\"Agile Software Programming\");\n quizJava.setAvailability(true);\n \n try {\n Quiz quizDb = getQuizPresentation(2, \"Student\");\n assertEquals(\"The hard-coded quiz and the one fetched from the database\" +\n \"should be identical.\", quizJava, quizDb);\n \n Quiz quizStaffDb = getQuizPresentation(2, \"Staff\");\n assertEquals(\"The hard-coded quiz and the one fetched from the database\" +\n \"should be identical.\", quizJava, quizStaffDb);\n }\n catch (SQLException | ClassNotFoundException | InstantiationException |\n IllegalAccessException | NoQuizFoundException exception) {\n fail(exception.getMessage());\n }\n }", "public void saveQuestion(){\n\n\t\tint numAnswers = testGenerator.getNumAnswers(questionNo);\n\t\tString setAnswerBox = Integer.toString(numAnswers);\n\n\t\ttestGenerator.setQuestionText(questionNo, ques.getText());\n\t\ttestGenerator.setAnswerText(questionNo, 1, ans1.getText());\n\t\ttestGenerator.setAnswerText(questionNo, 2, ans2.getText());\n\n\t\ttestGenerator.setIsAnswerCorrect(questionNo, 1, answer1.isSelected());\n\t\ttestGenerator.setIsAnswerCorrect(questionNo, 2, answer2.isSelected());\n\n\t\tif((setAnswerBox.equals(\"3\")) || setAnswerBox.equals(\"4\")) {\n\t\t\ttestGenerator.setAnswerText(questionNo, 3, ans3.getText()); \t\n\t\t\ttestGenerator.setIsAnswerCorrect(questionNo, 3, answer3.isSelected());\n\t\t}\n\n\t\tif(setAnswerBox.equals(\"4\")) {\n\t\t\ttestGenerator.setAnswerText(questionNo, 4, ans4.getText()); \t\n\t\t\ttestGenerator.setIsAnswerCorrect(questionNo, 4, answer4.isSelected());\n\t\t}\n\t}", "public String genTestAsXML(Connection con, loginProfile prof, dbModuleSpec dbmsp, String[] robs, float time_limit, String uploadDir, Vector resIdVec, boolean showAnswer, long tkh_id, boolean boolPreviewAssessment, boolean isShuffleMCQue)\n throws qdbException, qdbErrMessage, cwSysMessage, SQLException, cwException\n {\n\n String qList = \"\";\n\n if (mod_type.equalsIgnoreCase(MOD_TYPE_STX))\n res_duration = time_limit;\n\n // pass the resIdVec as reference and store all the queId in the test\n // return to qdbAction for access control\n if (mod_type.equalsIgnoreCase(MOD_TYPE_DXT) ||\n mod_type.equalsIgnoreCase(MOD_TYPE_STX)) {\n\t\t\tqList = getDynamicQueAsXML(con, prof.usr_id, dbmsp, robs, uploadDir, resIdVec, boolPreviewAssessment, isShuffleMCQue); \n }else {\n qList = getStaticQueAsXML(con, resIdVec, isShuffleMCQue);\n }\n\n Timestamp curTime = dbUtils.getTime(con);\n\t\tint scenarioQueCount = dbResource.countScenarioQueInList(con, resIdVec);\n\n String result = \"<?xml version=\\\"1.0\\\" encoding=\\\"\" + dbUtils.ENC_UTF + \"\\\" standalone=\\\"no\\\" ?>\" + dbUtils.NEWL;\n result += \"<quiz id=\\\"\"+ res_id + \"\\\" language=\\\"\" + res_lan + \"\\\" timestamp=\\\"\" + res_upd_date ;\n\t\tresult += \"\\\" start_time=\\\"\" + curTime + \"\\\" size=\\\"\" + (resIdVec.size()-scenarioQueCount) \n\t\t\t + \"\\\" total_score=\\\"\" + (int)mod_max_score + \"\\\">\" + dbUtils.NEWL;\n result += \"<key>\" + Math.round(Math.random()*99+1) + \"</key>\" + dbUtils.NEWL;\n\n // author's information\n //result += prof.asXML() + dbUtils.NEWL;\n if (this.usr_ent_id==0){\n this.usr_ent_id = prof.usr_ent_id;\n }\n\n result += getModHeader(con, prof)+ dbUtils.NEWL;\n result += dbModuleEvaluation.getModuleEvalAsXML(con, mod_res_id, this.usr_ent_id, tkh_id);\n result += dbResourcePermission.aclAsXML(con,res_id,prof);\n\n dbRegUser usr = new dbRegUser();\n usr.usr_ent_id = this.usr_ent_id;\n usr.ent_id = this.usr_ent_id;\n usr.get(con);\n\n result += usr.getUserShortXML(con, false, true, false);\n\n result += qList + dbUtils.NEWL;\n if( showAnswer ) {\n dbProgressAttempt dbAtm = new dbProgressAttempt();\n CommonLog.debug(\"getUserAttemptedResultAsXML:\" + tkh_id);\n result += dbAtm.getUserAttemptedResultAsXML(con, mod_res_id, this.usr_ent_id, tkh_id);\n }\n result += \"</quiz>\"+ dbUtils.NEWL;\n\n return result;\n\n }", "public void showQuestion()\n\t{\n\t\tSystem.out.println(ans);\n\t\tfor(int k = 0; k<numAns; k++)\n\t\t{\n\t\t\tSystem.out.println(k+\". \"+answers[k]);\n\t\t}\n\t}", "public DecideQuestion(){\n\t\tsuper(0); /** call relation -> PromptQuestion.java */\n\t}", "@Override\n public void resetQuestion() {\n super.resetQuestion();\n hadSecondChance = false;\n currentTeam = null;\n originalTeam = null;\n teamHasAnswered.clear();\n //reset teamHasAnswered map so all teams get a chance to anaswer again\n for (int i = 0; i < numTeams; i++) teamHasAnswered.put(i, false);\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Do you want to try your luck with the slot machine? Type 1 for YES or 2 for NO:\");\n int answer = sc.nextInt();\n\n\n //Create If/Else based on Yes/No response\n //Create For loop to generate numbers\n //Convert int affirmation to string value\n\n if (answer == 1)\n {\n for (int i = 0; i <= 2; i++)\n {\n double j = (Math.random() *10);\n int k = (int) j;\n System.out.print(\"[\"+k+\"]\");\n }\n }\n\n else\n {\n System.out.println(\"Maybe next time!\");\n\n }\n }", "public void create() {\n io.writeLine(\"Enter correct answer(T/F)\");\n String answer = io.readLine();\n while (!answer.equals(\"T\") && !answer.equals(\"F\")) {\n io.writeLine(\"Please put in T or F\");\n answer = io.readLine();\n }\n rightAnswers.add(answer);\n }", "public abstract void newGuiQuestions(long ms, int n);", "private void setUpQuestions(){\n if (index == questions.size()){ //if no more questions, jumps to the endGame\n endGame();\n }else {\n currentQuestion = questions.get(index);\n\n lblQuestion.setText(currentQuestion.getQuestion());\n imgPicture.setImageResource(currentQuestion.getPicture());\n btnRight.setText(currentQuestion.getOption1());\n btnLeft.setText(currentQuestion.getOption2());\n index++;\n }\n }", "public static void resultOfPlayAllCorrect() {\n\t\tString mark=\"null\";\n\t\ttry {\n\t\t\tmark=PlayTrivia.playAllRightAnswers();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tif(mark==\"Sucsses\") {\n\t\t\tSystem.out.println(\"Test end page has:\" + mark + \" Test pass\");\n\t\t}else{\n\t\t\tSystem.out.println(\"Test end page - failed\");\n\t\t}\n\t}", "public void randomize(){\r\n\t\tfor(int i = 0;i<this.myQuestions.size();i++){\r\n\t\t\tthis.myQuestions.get(i).randomize();\r\n\t\t}\r\n\t\tCollections.shuffle(this.myQuestions);\r\n\t}", "static ArrayList<Integer> generateQuestion(ArrayList<Integer> remainingSongsIds)\n {\n //shuffle the ids\n Collections.shuffle(remainingSongsIds);\n\n ArrayList<Integer> options = new ArrayList<>();\n\n //pick the random first fours sample ids\n for(int i=0;i<NUM_OPTIONS;i++)\n {\n if(i<remainingSongsIds.size())\n {\n options.add(remainingSongsIds.get(i));\n }\n }\n return options;\n }", "private void clearQuizQuestions() {\n RadioGroup questionOneRadioGroup = (RadioGroup) findViewById(R.id.question_one_radio_group);\n questionOneRadioGroup.clearCheck();\n\n RadioGroup questionTwoRadioGroup = (RadioGroup) findViewById(R.id.question_two_radio_group);\n questionTwoRadioGroup.clearCheck();\n\n RadioGroup questionThreeRadioGroup = (RadioGroup) findViewById(R.id.question_three_radio_group);\n questionThreeRadioGroup.clearCheck();\n\n RadioGroup questionFourRadioGroup = (RadioGroup) findViewById(R.id.question_four_radio_group);\n questionFourRadioGroup.clearCheck();\n\n questionFiveCheckBoxA.setChecked(false);\n questionFiveCheckBoxB.setChecked(false);\n questionFiveCheckBoxC.setChecked(false);\n questionFiveCheckBoxD.setChecked(false);\n\n RadioGroup questionSixRadioGroup = (RadioGroup) findViewById(R.id.question_six_radio_group);\n questionSixRadioGroup.clearCheck();\n\n RadioGroup questionSevenRadioGroup = (RadioGroup) findViewById(R.id.question_seven_radio_group);\n questionSevenRadioGroup.clearCheck();\n\n RadioGroup questionEightRadioGroup = (RadioGroup) findViewById(R.id.question_eight_radio_group);\n questionEightRadioGroup.clearCheck();\n\n RadioGroup questionNineRadioGroup = (RadioGroup) findViewById(R.id.question_nine_radio_group);\n questionNineRadioGroup.clearCheck();\n\n questionTenEditText.getText().clear();\n }", "@GET\n @Path(\"/randomquestion\")\n public String getRandomQuestion() {\n return \"test\";\n //return map.keySet().toArray()[ThreadLocalRandom.current().nextInt(1, map.size())].toString();\n }", "@GetMapping(\"/quiz/{qid}\")\n\tpublic ResponseEntity<?> getQuestionsOfQuiz(@PathVariable(\"qid\") Long qid){\n\t\tQuiz quiz = this.quizService.getQuiz(qid);\n\t\tSet<Question> questions = quiz.getQuestions();\n\t\tList<Question> list = new ArrayList<>(questions);\n\t\tif(list.size() > Integer.parseInt(quiz.getNumberOfQuestions())) {\n\t\t\tlist = list.subList(0, Integer.parseInt(quiz.getNumberOfQuestions()));\n\t\t}\n\t\t\n\t\tlist.forEach((q)-> {\n\t\t\tq.setAnswer(\"\");\n\t\t});\n\t\t\n\t\tCollections.shuffle(list);\n\t\treturn ResponseEntity.ok(list);\n\t}", "public void showCorrectAnswers() {\n holders.forEach(QuizViewHolder::showCorrectAnswer);\n }", "public void createShortAnswer() {\n Question q = new ShortAnswer(this.in,this.o);\n this.o.setDisplay(\"Enter the prompt for your Short Answer question:\\n\");\n this.o.getDisplay();\n\n q.setPrompt(this.in.getUserInput());\n\n int charlimit = 0;\n while (charlimit == 0) {\n this.o.setDisplay(\"Enter character limit\\n\");\n this.o.getDisplay();\n\n try {\n charlimit = Integer.parseInt(this.in.getUserInput());\n if (charlimit < 1) {\n charlimit = 0;\n } else {\n ((ShortAnswer) q).setCharLimit(charlimit);\n }\n } catch (NumberFormatException e) {\n charlimit = 0;\n }\n }\n\n int numAns = 0;\n while (numAns == 0) {\n this.o.setDisplay(\"How many answers does this question have?\\n\");\n this.o.getDisplay();\n\n try {\n numAns = Integer.parseInt(this.in.getUserInput());\n if (numAns > numChoices || numAns < 1) {\n numAns = 0;\n } else {\n q.setMaxResponses(numAns);\n }\n } catch (NumberFormatException e) {\n numAns = 0;\n }\n }\n\n if (isTest) {\n RCA ca = new RCA(this.in,this.o);\n Test t = (Test)this.survey;\n String ans;\n\n for (int j=0; j < q.getMaxResponses(); j++){\n this.o.setDisplay(\"Enter correct answer(s):\\n\");\n this.o.getDisplay();\n\n ans = this.in.getUserInput();\n\n while (ans.length() > ((ShortAnswer) q).getCharLimit()) {\n this.o.setDisplay(\"Answer must be less then \" + ((ShortAnswer) q).getCharLimit() + \" characters \\n\");\n this.o.getDisplay();\n ans = this.in.getUserInput();\n }\n\n ca.addResponse(ans);\n }\n t.addAnswer(ca);\n }\n this.survey.addQuestion(q);\n }", "public Question(){}", "public void checkAnswer() {\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Testing basic functions...\");\n\t\tQuiz q = new QuizImpl(1, \"Test quiz\");\n\t\tSystem.out.println(\"Quiz ID: \" + q.getId());\n\t\tSystem.out.println(\"Quiz name: \" + q.getTitle());\n\t\tSystem.out.println(\"Adding questions...\");\n\t\tq.addQuestions();\n\t\tSystem.out.println(\"Printing questions...\");\n\t\tq.printQuestions();\n\t}", "public Test() {\n\t\tquestions = new LinkedList<Question>();\n\t}" ]
[ "0.7268784", "0.71485037", "0.69779974", "0.6783948", "0.6732672", "0.6636406", "0.65372735", "0.64319825", "0.6298495", "0.6233538", "0.62258774", "0.619251", "0.6136599", "0.6120484", "0.6047186", "0.60188514", "0.6008071", "0.59907234", "0.59646666", "0.5954127", "0.59505224", "0.594939", "0.5949218", "0.59426934", "0.5921704", "0.59112054", "0.5842883", "0.58290356", "0.58168286", "0.58145714", "0.5803641", "0.5802184", "0.580046", "0.57988906", "0.5783453", "0.57770526", "0.5769784", "0.57594556", "0.57548237", "0.57466984", "0.5743374", "0.573733", "0.5725051", "0.5721081", "0.57143825", "0.57125634", "0.5707438", "0.5702666", "0.56983083", "0.5683696", "0.56714386", "0.5662975", "0.56413466", "0.5634438", "0.56329924", "0.5567323", "0.55671567", "0.5562862", "0.55416983", "0.55363244", "0.55349827", "0.5523559", "0.5519902", "0.55178654", "0.55124646", "0.5504369", "0.55043674", "0.55027664", "0.54842067", "0.5475247", "0.5473956", "0.54687786", "0.5467587", "0.5464757", "0.5457911", "0.5457899", "0.54547185", "0.54470086", "0.5443565", "0.54348236", "0.542932", "0.54225135", "0.5415765", "0.5414055", "0.5411097", "0.540959", "0.539714", "0.5392941", "0.5389099", "0.5382432", "0.5377882", "0.537696", "0.53725225", "0.5364732", "0.5356405", "0.53538245", "0.5347541", "0.5342216", "0.53393865", "0.53393555" ]
0.58862257
26
this getter is just for example purpose, can differ
@SuppressLint("WrongConstant") @Override public int onStartCommand(Intent myIntent, int flags, int startId) { if (myIntent != null && myIntent.getExtras() != null) { id = myIntent.getExtras().getString("id"); time = myIntent.getExtras().getString("time"); } return START_STICKY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String get();", "@Override\n String get();", "@Override\n public void get() {}", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "public String get();", "String get();", "String get();", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "public Genero getGenero()\r\n/* 143: */ {\r\n/* 144:261 */ return this.genero;\r\n/* 145: */ }", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public void get() {\n }", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "public class_1048 method_2258() {\r\n return this.field_1859;\r\n }", "@Override\n protected void getExras() {\n }", "public int getValue()\r\n/* 21: */ {\r\n/* 22: 71 */ return this.value;\r\n/* 23: */ }", "public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }", "public java.lang.String getGet() {\n return instance.getGet();\n }", "public int getValue() {\n/* 450 */ return this.value;\n/* */ }", "protected Object doGetValue() {\n\t\treturn value;\n\t}", "public String getIdentificacion()\r\n/* 123: */ {\r\n/* 124:223 */ return this.identificacion;\r\n/* 125: */ }", "public int getProT() {\n/* 78 */ return this.proT;\n/* */ }", "public String getMensaje()\r\n/* 633: */ {\r\n/* 634:710 */ return this.mensaje;\r\n/* 635: */ }", "@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}", "public String getEmployee()\r\n/* 38: */ {\r\n/* 39:43 */ return this.employee;\r\n/* 40: */ }", "public String getEtiqueta()\n/* 27: */ {\n/* 28:41 */ return this.etiqueta;\n/* 29: */ }", "@Override\n Derived get();", "public int getOperacion()\r\n/* 22: */ {\r\n/* 23:45 */ return this.operacion;\r\n/* 24: */ }", "public CuentaContable getCuentaContable()\r\n/* 78: */ {\r\n/* 79: 99 */ return this.cuentaContable;\r\n/* 80: */ }", "public Integer getLongitud()\n/* 37: */ {\n/* 38:55 */ return this.longitud;\n/* 39: */ }", "private String getString() {\n\t\treturn null;\n\t}", "private Get() {}", "private Get() {}", "public Object get()\n {\n return m_internalValue;\n }", "@Override\n\tpublic String get() {\n\t\treturn null;\n\t}", "protected class_496 method_1608() {\n return this.field_936;\n }", "public CuentaContable getCuentaContableCierre()\r\n/* 98: */ {\r\n/* 99:115 */ return this.cuentaContableCierre;\r\n/* 100: */ }", "public int getDefilade();", "@Override\n\tprotected void getExras() {\n\n\t}", "public String getPhone()\r\n/* 41: */ {\r\n/* 42:54 */ return this.phone;\r\n/* 43: */ }", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "public int getValue() { return 42; }", "public MotivoLlamadoAtencion getMotivoLlamadoAtencion()\r\n/* 114: */ {\r\n/* 115:123 */ return this.motivoLlamadoAtencion;\r\n/* 116: */ }", "public T get() {\n return value;\n }", "public int\t\tget() { return value; }", "public int getB();", "public Enqueteur getEnqueteur()\r\n/* */ {\r\n/* 57 */ return this.enqueteur;\r\n/* */ }", "default V get() {\n V item = orElseNull();\n if ( item == null )\n throw new IllegalArgumentException(\"No item at the targeted position!\");\n return item;\n }", "public ValoresCalculo getValorCalculo()\r\n/* 88: */ {\r\n/* 89:107 */ return this.valorCalculo;\r\n/* 90: */ }", "public java.lang.String getCodigo(){\n return localCodigo;\n }", "public int getEntityId()\r\n/* 25: */ {\r\n/* 26:26 */ return this.entityId;\r\n/* 27: */ }", "public Ejercicio getEjercicio()\r\n/* 145: */ {\r\n/* 146:183 */ return this.ejercicio;\r\n/* 147: */ }", "private int getMY() {\n\t\treturn 0;\r\n\t}", "protected abstract Object _get(String key);", "public String getAutorizacion()\r\n/* 134: */ {\r\n/* 135:226 */ return this.autorizacion;\r\n/* 136: */ }", "public abstract String GetProperty(Slice property);", "public class_1660 method_2257() {\r\n return this.field_1852;\r\n }", "public K get()\n {\n\treturn current.data(); \n }", "abstract Function get(Object arg);", "public String getEstablecimiento()\r\n/* 114: */ {\r\n/* 115:188 */ return this.establecimiento;\r\n/* 116: */ }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public class_34 method_627() {\n return this.field_394;\n }", "protected abstract String getZ();", "public int getDef(){\r\n return def;\r\n }", "public abstract String getValue();", "public abstract String getValue();", "public abstract String getValue();", "public abstract String getInfo();", "public abstract String getInfo();", "public Mes getMesSeleccionado()\r\n/* 172: */ {\r\n/* 173:217 */ return this.mesSeleccionado;\r\n/* 174: */ }", "public Object getValue() { return _value; }", "double get();", "public String getDescripcion()\r\n/* 163: */ {\r\n/* 164:299 */ return this.descripcion;\r\n/* 165: */ }", "T getData() {\n return this.data;\n }", "public abstract Object getCustomData();", "abstract public T getInfo();", "@Test\r\n public void testGetterMethodSucess() throws Exception {\r\n Method m = GetterMethod.getGetter(Tumor.class, \"tumorId\");\r\n assertNotNull(m);\r\n assertEquals(\"getTumorId\", m.getName());\r\n }", "protected abstract String getPropertyValue(Server instance);", "int getNumber () { return number; }", "public Object getValue(){\n \treturn this.value;\n }", "public int value() { \n return this.value; \n }", "public int getArmadura(){return armadura;}", "@Override\n public int getValue() {\n return super.getValue();\n }", "public CuentaContable getCuentaContable()\r\n/* 299: */ {\r\n/* 300:367 */ return this.cuentaContable;\r\n/* 301: */ }", "public int getG();", "public V get19();", "@Override\r\n\tpublic <T> T get() {\n\t\treturn null;\r\n\t}", "public String getAnotherDetail();", "public abstract Object getValue();", "public abstract Object getValue();", "public abstract Object getValue();", "public int getProS() {\n/* 60 */ return this.proS;\n/* */ }", "Object getValor();", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public S getValue() { return value; }", "@Override\r\n\tpublic T get() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic T somme() {\n\t\treturn val;\n\t}", "public THING get() {\n return directlyGet();\n }" ]
[ "0.6706501", "0.662263", "0.65607756", "0.64636594", "0.6435533", "0.6379608", "0.6358794", "0.6358794", "0.6356477", "0.6354478", "0.63389355", "0.6322681", "0.6313923", "0.6266699", "0.6236295", "0.6210339", "0.6197108", "0.61696285", "0.61485267", "0.6110647", "0.6108002", "0.60948825", "0.60755986", "0.60685813", "0.6049752", "0.60360724", "0.6032224", "0.6011126", "0.6010454", "0.59995425", "0.599734", "0.59932303", "0.59919876", "0.5989801", "0.5989801", "0.59813637", "0.59796256", "0.59792817", "0.5975093", "0.5962235", "0.59608054", "0.5955087", "0.5955044", "0.5955044", "0.5950188", "0.59396094", "0.5938329", "0.5914641", "0.59059775", "0.58976257", "0.58955914", "0.5893493", "0.5892698", "0.58825797", "0.58765227", "0.58642143", "0.5861617", "0.58597606", "0.58505046", "0.58501166", "0.5848628", "0.58476675", "0.5843527", "0.58424246", "0.58345556", "0.5831377", "0.5825149", "0.5819453", "0.5819453", "0.5819453", "0.58166474", "0.58166474", "0.5813517", "0.5810874", "0.57960016", "0.57927185", "0.57857996", "0.5776988", "0.57755566", "0.577294", "0.57669854", "0.5765797", "0.5764161", "0.57634664", "0.5761649", "0.5752637", "0.5752302", "0.5751527", "0.5744882", "0.57410836", "0.57404596", "0.5739243", "0.5739243", "0.5739243", "0.5738023", "0.57342154", "0.57317877", "0.5731404", "0.57276756", "0.57260174", "0.57257473" ]
0.0
-1
TODO Autogenerated method stub
@Override public int getCount() { return datalist.size(); }
{ "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 Object getItem(int position) { return datalist.get(position); }
{ "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 long getItemId(int position) { return position; }
{ "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
private final JPAQueryFactory qf;
public CartRepositoryImpl() { super(Cart.class); // this.qf = qf; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "SelectQuery createSelectQuery();", "public interface QueryTypeFactory extends QueryAllFactory<QueryTypeEnum, QueryTypeParser, QueryType>\n{\n \n}", "private DbQuery() {}", "public interface JPQLQueryCriteria{\n\t\n}", "QueryType createQueryType();", "private void setupFactory(Factory f) {\n f.createQuery(f.getModel().getRootPackage()).filterChildren(e -> {\n e.setFactory(f);\n return false;\n }).list();\n }", "@Override\n\tpublic Query createQuery(String qlString) {\n\t\treturn null;\n\t}", "public Query getQuery ()\n {\n\n\treturn this.q;\n\n }", "public void setNativeQueryFactory(NativeQueryFactory factory);", "public interface BaseQueryBuilder {\n\n /**\n * \n * 查询构建完成\n * \n * @return {@link EsdslBuilder}\n * @since JDK 1.8\n */\n EsdslBuilder queryDone();\n}", "public interface IQueryResolver {\n List<Field> equalCondition = new ArrayList();\n List<Field> greaterEqualCondition = new ArrayList();\n List<Field> lesserEqualCondition = new ArrayList();\n\n String getTableName();\n}", "protected Querydsl getQuerydsl() {\n return this.querydsl;\n }", "public JpqlQuery(EntityManagerFactoryImpl entityManagerFactory, CriteriaBuilderImpl cb, NamedQueryMetadata metadata) {\n \t\tthis(entityManagerFactory, metadata.getQuery(), cb);\n \n \t\tthis.lastUsed = Long.MAX_VALUE;\n \n \t\t// force sql compilation\n \t\tthis.q.getSql();\n \n \t\tthis.lockMode = metadata.getLockMode();\n \t\tif (metadata.getHints().size() > 0) {\n \t\t\tthis.hints = Maps.newHashMap();\n \t\t\tthis.hints.putAll(metadata.getHints());\n \t\t}\n \n \t\tentityManagerFactory.addNamedQuery(metadata.getName(), this);\n \t}", "IQuery getQuery();", "public abstract String createQuery();", "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "public String getQf() {\n return qf;\n }", "@Override\n\tpublic <T> TypedQuery<T> createQuery(String qlString, Class<T> resultClass) {\n\t\treturn null;\n\t}", "MessageQuery createMessageQuery();", "public BookJPAImpl(TxDAOFactoryImpl factory) {\n\t\t//emf = Persistence.createEntityManagerFactory(\"sistemiDistribuitiLS\");\n\t\tthis.em = factory.getEntityManager();\n\t}", "static public void register () { QueryEngineRegistry.addFactory( factory ); }", "public PseudoQuery() {\r\n\t}", "private DAOJPAFactory() {\r\n }", "public AbstractJoSQLFilter (Query q)\n\t throws IllegalStateException,\n\t QueryParseException\n {\n\n\tthis.setQuery (q);\n\n }", "private QueryService getQueryService() {\n return queryService;\n }", "public void setQf(String qf) {\n this.qf = qf == null ? null : qf.trim();\n }", "private Queries() {\n // prevent instantiation\n }", "public interface SqlFactory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n SqlFactory eINSTANCE = com.jaspersoft.studio.data.sql.impl.SqlFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Model</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Model</em>'.\n * @generated\n */\n Model createModel();\n\n /**\n * Returns a new object of class '<em>Fetch First</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Fetch First</em>'.\n * @generated\n */\n FetchFirst createFetchFirst();\n\n /**\n * Returns a new object of class '<em>Offset</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Offset</em>'.\n * @generated\n */\n Offset createOffset();\n\n /**\n * Returns a new object of class '<em>Limit</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Limit</em>'.\n * @generated\n */\n Limit createLimit();\n\n /**\n * Returns a new object of class '<em>Select Query</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Select Query</em>'.\n * @generated\n */\n SelectQuery createSelectQuery();\n\n /**\n * Returns a new object of class '<em>Select Sub Set</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Select Sub Set</em>'.\n * @generated\n */\n SelectSubSet createSelectSubSet();\n\n /**\n * Returns a new object of class '<em>Select</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Select</em>'.\n * @generated\n */\n Select createSelect();\n\n /**\n * Returns a new object of class '<em>Or Column</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Or Column</em>'.\n * @generated\n */\n OrColumn createOrColumn();\n\n /**\n * Returns a new object of class '<em>Column Or Alias</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Column Or Alias</em>'.\n * @generated\n */\n ColumnOrAlias createColumnOrAlias();\n\n /**\n * Returns a new object of class '<em>Column Full</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Column Full</em>'.\n * @generated\n */\n ColumnFull createColumnFull();\n\n /**\n * Returns a new object of class '<em>Or Table</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Or Table</em>'.\n * @generated\n */\n OrTable createOrTable();\n\n /**\n * Returns a new object of class '<em>From Table</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>From Table</em>'.\n * @generated\n */\n FromTable createFromTable();\n\n /**\n * Returns a new object of class '<em>From Table Join</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>From Table Join</em>'.\n * @generated\n */\n FromTableJoin createFromTableJoin();\n\n /**\n * Returns a new object of class '<em>Join Condition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Join Condition</em>'.\n * @generated\n */\n JoinCondition createJoinCondition();\n\n /**\n * Returns a new object of class '<em>Using Cols</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Using Cols</em>'.\n * @generated\n */\n UsingCols createUsingCols();\n\n /**\n * Returns a new object of class '<em>Table Or Alias</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Table Or Alias</em>'.\n * @generated\n */\n TableOrAlias createTableOrAlias();\n\n /**\n * Returns a new object of class '<em>From Values</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>From Values</em>'.\n * @generated\n */\n FromValues createFromValues();\n\n /**\n * Returns a new object of class '<em>From Values Columns</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>From Values Columns</em>'.\n * @generated\n */\n FromValuesColumns createFromValuesColumns();\n\n /**\n * Returns a new object of class '<em>From Values Column Names</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>From Values Column Names</em>'.\n * @generated\n */\n FromValuesColumnNames createFromValuesColumnNames();\n\n /**\n * Returns a new object of class '<em>Column Names</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Column Names</em>'.\n * @generated\n */\n ColumnNames createColumnNames();\n\n /**\n * Returns a new object of class '<em>Values</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Values</em>'.\n * @generated\n */\n Values createValues();\n\n /**\n * Returns a new object of class '<em>Rows</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Rows</em>'.\n * @generated\n */\n Rows createRows();\n\n /**\n * Returns a new object of class '<em>Row</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Row</em>'.\n * @generated\n */\n Row createRow();\n\n /**\n * Returns a new object of class '<em>Row Values</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Row Values</em>'.\n * @generated\n */\n RowValues createRowValues();\n\n /**\n * Returns a new object of class '<em>Row Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Row Value</em>'.\n * @generated\n */\n RowValue createRowValue();\n\n /**\n * Returns a new object of class '<em>Pivot Table</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Pivot Table</em>'.\n * @generated\n */\n PivotTable createPivotTable();\n\n /**\n * Returns a new object of class '<em>Pivot Functions</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Pivot Functions</em>'.\n * @generated\n */\n PivotFunctions createPivotFunctions();\n\n /**\n * Returns a new object of class '<em>Pivot Function</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Pivot Function</em>'.\n * @generated\n */\n PivotFunction createPivotFunction();\n\n /**\n * Returns a new object of class '<em>Pivot In Clause</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Pivot In Clause</em>'.\n * @generated\n */\n PivotInClause createPivotInClause();\n\n /**\n * Returns a new object of class '<em>Unpivot Table</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Unpivot Table</em>'.\n * @generated\n */\n UnpivotTable createUnpivotTable();\n\n /**\n * Returns a new object of class '<em>Unpivot In Clause</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Unpivot In Clause</em>'.\n * @generated\n */\n UnpivotInClause createUnpivotInClause();\n\n /**\n * Returns a new object of class '<em>Unpivot In Clause Args</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Unpivot In Clause Args</em>'.\n * @generated\n */\n UnpivotInClauseArgs createUnpivotInClauseArgs();\n\n /**\n * Returns a new object of class '<em>Unpivot In Clause Arg</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Unpivot In Clause Arg</em>'.\n * @generated\n */\n UnpivotInClauseArg createUnpivotInClauseArg();\n\n /**\n * Returns a new object of class '<em>Pivot For Clause</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Pivot For Clause</em>'.\n * @generated\n */\n PivotForClause createPivotForClause();\n\n /**\n * Returns a new object of class '<em>Pivot Columns</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Pivot Columns</em>'.\n * @generated\n */\n PivotColumns createPivotColumns();\n\n /**\n * Returns a new object of class '<em>Pivots</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Pivots</em>'.\n * @generated\n */\n Pivots createPivots();\n\n /**\n * Returns a new object of class '<em>Pivot Col</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Pivot Col</em>'.\n * @generated\n */\n PivotCol createPivotCol();\n\n /**\n * Returns a new object of class '<em>Table Full</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Table Full</em>'.\n * @generated\n */\n TableFull createTableFull();\n\n /**\n * Returns a new object of class '<em>Db Object Name All</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Db Object Name All</em>'.\n * @generated\n */\n DbObjectNameAll createDbObjectNameAll();\n\n /**\n * Returns a new object of class '<em>Db Object Name</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Db Object Name</em>'.\n * @generated\n */\n DbObjectName createDbObjectName();\n\n /**\n * Returns a new object of class '<em>Or Order By Column</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Or Order By Column</em>'.\n * @generated\n */\n OrOrderByColumn createOrOrderByColumn();\n\n /**\n * Returns a new object of class '<em>Order By Column Full</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Order By Column Full</em>'.\n * @generated\n */\n OrderByColumnFull createOrderByColumnFull();\n\n /**\n * Returns a new object of class '<em>Or Group By Column</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Or Group By Column</em>'.\n * @generated\n */\n OrGroupByColumn createOrGroupByColumn();\n\n /**\n * Returns a new object of class '<em>Group By Column Full</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Group By Column Full</em>'.\n * @generated\n */\n GroupByColumnFull createGroupByColumnFull();\n\n /**\n * Returns a new object of class '<em>Or Expr</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Or Expr</em>'.\n * @generated\n */\n OrExpr createOrExpr();\n\n /**\n * Returns a new object of class '<em>Full Expression</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Full Expression</em>'.\n * @generated\n */\n FullExpression createFullExpression();\n\n /**\n * Returns a new object of class '<em>Expr Group</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Expr Group</em>'.\n * @generated\n */\n ExprGroup createExprGroup();\n\n /**\n * Returns a new object of class '<em>XExpr</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>XExpr</em>'.\n * @generated\n */\n XExpr createXExpr();\n\n /**\n * Returns a new object of class '<em>Prms</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Prms</em>'.\n * @generated\n */\n Prms createPrms();\n\n /**\n * Returns a new object of class '<em>JR Parameter</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>JR Parameter</em>'.\n * @generated\n */\n JRParameter createJRParameter();\n\n /**\n * Returns a new object of class '<em>Comparison</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Comparison</em>'.\n * @generated\n */\n Comparison createComparison();\n\n /**\n * Returns a new object of class '<em>Like</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Like</em>'.\n * @generated\n */\n Like createLike();\n\n /**\n * Returns a new object of class '<em>Like Operand</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Like Operand</em>'.\n * @generated\n */\n LikeOperand createLikeOperand();\n\n /**\n * Returns a new object of class '<em>Between</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Between</em>'.\n * @generated\n */\n Between createBetween();\n\n /**\n * Returns a new object of class '<em>In Oper</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>In Oper</em>'.\n * @generated\n */\n InOper createInOper();\n\n /**\n * Returns a new object of class '<em>Exists Oper</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Exists Oper</em>'.\n * @generated\n */\n ExistsOper createExistsOper();\n\n /**\n * Returns a new object of class '<em>Operand List Group</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Operand List Group</em>'.\n * @generated\n */\n OperandListGroup createOperandListGroup();\n\n /**\n * Returns a new object of class '<em>Operand List</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Operand List</em>'.\n * @generated\n */\n OperandList createOperandList();\n\n /**\n * Returns a new object of class '<em>Operands</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Operands</em>'.\n * @generated\n */\n Operands createOperands();\n\n /**\n * Returns a new object of class '<em>Operand</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Operand</em>'.\n * @generated\n */\n Operand createOperand();\n\n /**\n * Returns a new object of class '<em>Op Function</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Op Function</em>'.\n * @generated\n */\n OpFunction createOpFunction();\n\n /**\n * Returns a new object of class '<em>Function Extract</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Function Extract</em>'.\n * @generated\n */\n FunctionExtract createFunctionExtract();\n\n /**\n * Returns a new object of class '<em>Function Analytical</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Function Analytical</em>'.\n * @generated\n */\n FunctionAnalytical createFunctionAnalytical();\n\n /**\n * Returns a new object of class '<em>Analytic Clause</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Analytic Clause</em>'.\n * @generated\n */\n AnalyticClause createAnalyticClause();\n\n /**\n * Returns a new object of class '<em>Windowing Clause</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Windowing Clause</em>'.\n * @generated\n */\n WindowingClause createWindowingClause();\n\n /**\n * Returns a new object of class '<em>Windowing Clause Between</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Windowing Clause Between</em>'.\n * @generated\n */\n WindowingClauseBetween createWindowingClauseBetween();\n\n /**\n * Returns a new object of class '<em>Windowing Clause Operand Following</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Windowing Clause Operand Following</em>'.\n * @generated\n */\n WindowingClauseOperandFollowing createWindowingClauseOperandFollowing();\n\n /**\n * Returns a new object of class '<em>Windowing Clause Operand Preceding</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Windowing Clause Operand Preceding</em>'.\n * @generated\n */\n WindowingClauseOperandPreceding createWindowingClauseOperandPreceding();\n\n /**\n * Returns a new object of class '<em>Order By Clause</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Order By Clause</em>'.\n * @generated\n */\n OrderByClause createOrderByClause();\n\n /**\n * Returns a new object of class '<em>Order By Clause Args</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Order By Clause Args</em>'.\n * @generated\n */\n OrderByClauseArgs createOrderByClauseArgs();\n\n /**\n * Returns a new object of class '<em>Order By Clause Arg</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Order By Clause Arg</em>'.\n * @generated\n */\n OrderByClauseArg createOrderByClauseArg();\n\n /**\n * Returns a new object of class '<em>Query Partition Clause</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Query Partition Clause</em>'.\n * @generated\n */\n QueryPartitionClause createQueryPartitionClause();\n\n /**\n * Returns a new object of class '<em>Analytic Expr Args</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Analytic Expr Args</em>'.\n * @generated\n */\n AnalyticExprArgs createAnalyticExprArgs();\n\n /**\n * Returns a new object of class '<em>Analytic Expr Arg</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Analytic Expr Arg</em>'.\n * @generated\n */\n AnalyticExprArg createAnalyticExprArg();\n\n /**\n * Returns a new object of class '<em>Op Function Arg</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Op Function Arg</em>'.\n * @generated\n */\n OpFunctionArg createOpFunctionArg();\n\n /**\n * Returns a new object of class '<em>Op Function Arg Operand</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Op Function Arg Operand</em>'.\n * @generated\n */\n OpFunctionArgOperand createOpFunctionArgOperand();\n\n /**\n * Returns a new object of class '<em>Op Function Cast</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Op Function Cast</em>'.\n * @generated\n */\n OpFunctionCast createOpFunctionCast();\n\n /**\n * Returns a new object of class '<em>Op Function Arg Agregate</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Op Function Arg Agregate</em>'.\n * @generated\n */\n OpFunctionArgAgregate createOpFunctionArgAgregate();\n\n /**\n * Returns a new object of class '<em>POperand</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>POperand</em>'.\n * @generated\n */\n POperand createPOperand();\n\n /**\n * Returns a new object of class '<em>Exp Operand</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Exp Operand</em>'.\n * @generated\n */\n ExpOperand createExpOperand();\n\n /**\n * Returns a new object of class '<em>Column Operand</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Column Operand</em>'.\n * @generated\n */\n ColumnOperand createColumnOperand();\n\n /**\n * Returns a new object of class '<em>Sub Query Operand</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Sub Query Operand</em>'.\n * @generated\n */\n SubQueryOperand createSubQueryOperand();\n\n /**\n * Returns a new object of class '<em>Scalar Operand</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Scalar Operand</em>'.\n * @generated\n */\n ScalarOperand createScalarOperand();\n\n /**\n * Returns a new object of class '<em>SQL Case Operand</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>SQL Case Operand</em>'.\n * @generated\n */\n SQLCaseOperand createSQLCaseOperand();\n\n /**\n * Returns a new object of class '<em>SQL Case Whens</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>SQL Case Whens</em>'.\n * @generated\n */\n SQLCaseWhens createSQLCaseWhens();\n\n /**\n * Returns a new object of class '<em>Case When</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Case When</em>'.\n * @generated\n */\n SqlCaseWhen createSqlCaseWhen();\n\n /**\n * Returns a new object of class '<em>Integer Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Integer Value</em>'.\n * @generated\n */\n IntegerValue createIntegerValue();\n\n /**\n * Returns a new object of class '<em>Unsigned Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Unsigned Value</em>'.\n * @generated\n */\n UnsignedValue createUnsignedValue();\n\n /**\n * Returns a new object of class '<em>Col</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Col</em>'.\n * @generated\n */\n Col createCol();\n\n /**\n * Returns a new object of class '<em>abc</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>abc</em>'.\n * @generated\n */\n abc createabc();\n\n /**\n * Returns a new object of class '<em>Unipivot In Clause</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Unipivot In Clause</em>'.\n * @generated\n */\n UnipivotInClause createUnipivotInClause();\n\n /**\n * Returns a new object of class '<em>uicargs</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>uicargs</em>'.\n * @generated\n */\n uicargs createuicargs();\n\n /**\n * Returns a new object of class '<em>pvcs</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>pvcs</em>'.\n * @generated\n */\n pvcs createpvcs();\n\n /**\n * Returns a new object of class '<em>pcols</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>pcols</em>'.\n * @generated\n */\n pcols createpcols();\n\n /**\n * Returns a new object of class '<em>tbls</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>tbls</em>'.\n * @generated\n */\n tbls createtbls();\n\n /**\n * Returns a new object of class '<em>Op List</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Op List</em>'.\n * @generated\n */\n OpList createOpList();\n\n /**\n * Returns a new object of class '<em>Plus</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Plus</em>'.\n * @generated\n */\n Plus createPlus();\n\n /**\n * Returns a new object of class '<em>Minus</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Minus</em>'.\n * @generated\n */\n Minus createMinus();\n\n /**\n * Returns a new object of class '<em>Concat</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Concat</em>'.\n * @generated\n */\n Concat createConcat();\n\n /**\n * Returns a new object of class '<em>Multiply</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Multiply</em>'.\n * @generated\n */\n Multiply createMultiply();\n\n /**\n * Returns a new object of class '<em>Division</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Division</em>'.\n * @generated\n */\n Division createDivision();\n\n /**\n * Returns a new object of class '<em>OBC Args</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>OBC Args</em>'.\n * @generated\n */\n OBCArgs createOBCArgs();\n\n /**\n * Returns a new object of class '<em>AExp Args</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>AExp Args</em>'.\n * @generated\n */\n AExpArgs createAExpArgs();\n\n /**\n * Returns a new object of class '<em>Op FList</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Op FList</em>'.\n * @generated\n */\n OpFList createOpFList();\n\n /**\n * Returns a new object of class '<em>When List</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>When List</em>'.\n * @generated\n */\n WhenList createWhenList();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n SqlPackage getSqlPackage();\n\n}", "Query createQuery(final String query);", "public Query getQuery()\n {\n return query;\n }", "TemperatureQuery createTemperatureQuery();", "public QueryExecution createQueryExecution(Query qry);", "public Query() {\r\n }", "public abstract DbQuery getQuery(String queryName);", "public void Query() {\n }", "SQLQuery createSQLQuery(final String query);", "public String getJql() {\n return jql;\n }", "public interface IQuery {\n String getTableName();\n void setParameter(String name, Object value);\n}", "Query query();", "public JPQLQuery(ExecutionContext ec, JPQLQuery q)\r\n {\r\n super(ec, q);\r\n }", "protected void initQueryFromNamedDefinition(Query query, NamedQueryDefinition nqd) {\n\t\tquery.setCacheable( nqd.isCacheable() );\n\t\tquery.setCacheRegion( nqd.getCacheRegion() );\n\t\tquery.setReadOnly( nqd.isReadOnly() );\n\n\t\tif ( nqd.getTimeout() != null ) {\n\t\t\tquery.setTimeout( nqd.getTimeout() );\n\t\t}\n\t\tif ( nqd.getFetchSize() != null ) {\n\t\t\tquery.setFetchSize( nqd.getFetchSize() );\n\t\t}\n\t\tif ( nqd.getCacheMode() != null ) {\n\t\t\tquery.setCacheMode( nqd.getCacheMode() );\n\t\t}\n\t\tif ( nqd.getComment() != null ) {\n\t\t\tquery.setComment( nqd.getComment() );\n\t\t}\n\t\tif ( nqd.getFirstResult() != null ) {\n\t\t\tquery.setFirstResult( nqd.getFirstResult() );\n\t\t}\n\t\tif ( nqd.getMaxResults() != null ) {\n\t\t\tquery.setMaxResults( nqd.getMaxResults() );\n\t\t}\n\t\tif ( nqd.getFlushMode() != null ) {\n\t\t\tquery.setHibernateFlushMode( nqd.getFlushMode() );\n\t\t}\n\t}", "public abstract Query<T> setQuery(String oql);", "public QueryExecutorBean getQueryService() {\n return queryService;\n }", "private static boolean qualifiesForJSqlParserUsage(DeclaredQuery query) {\n\t\treturn JSQLPARSER_IN_CLASSPATH;\n\t}", "private QueryGenerator() {\n }", "private void montaQuery(Publicacao object, Query q) {\t\t\n\t}", "ObstacleQuery createObstacleQuery();", "public QueryRegistry() {\r\n }", "public Query advancedQuery() \n {\n return null;\n }", "public interface Query {\n\n\t/**\n\t * @return ID of the given query\n\t */\n\tint queryID();\n\t\n\t/**\n\t * @return given query\n\t */\n\tString query();\n\t\n\t/**\n\t * @return list of relevant documents to the corresponding query\n\t */\n\tList<RelevanceInfo> listOfRelevantDocuments();\n\t\n\t/**\n\t * @return list of results to the corresponding query after running one of the retrieval models\n\t */\n\tList<Result> resultList();\n\t\n\t/**\n\t * @param resultList\n\t * @Effects adds results to the result list of the corresponding query\n\t */\n\tvoid putResultList(List<Result> resultList);\n}", "CampusSearchQuery generateQuery();", "public interface MenuGroupRepository extends JpaRepository<MenuGroup,String>\n , QuerydslPredicateExecutor<MenuGroup> {\n}", "@Override\n\tpublic Query createNamedQuery(String name) {\n\t\treturn null;\n\t}", "public interface IDBQuery {\n String query();\n}", "public interface GafisNormalqueryQueryqueService {\n void sendQuery(QueryQueueVO queryQueueVO);\n int getErrorMsgCount();\n Vector<String> getProcessMessage();\n Vector<String> getProcessErrorMessage();\n void setClearCollect();\n\n String getMatchResult(QueryQueueVO queryQueueVO);\n\n List<String> getValidSuccessList(List<String> keysList, QueryQueueVO queryQueueVO);\n\n GafisDakuQueryqueEntity getGafisDakuQueryqueEntity(String pkId);\n\n /**\n * 获取所有比对队列\n * @return\n */\n List<GafisDakuQueryqueEntity> getQueryqueue();\n\n /**\n * 分页获取所有比对队列\n * @return\n */\n Page<GafisDakuQueryqueEntity> getPageQueryqueue(int page, int size);\n\n /**\n * 获取未完成比对队列\n * @return\n */\n List<GafisDakuQueryqueEntity> getQueryqueueNotMatched();\n\n /**\n * 队列任务是否全部比对完成\n */\n void queryMatchFinish(GafisDakuQueryqueEntity queryqueEntity);\n\n void modifyQueryCandListDirByPkId(String queryCandListDir, String pkId);\n\n AnalyzeVO getAnalyzeResult(List<String> truePairList, String pkid);\n}", "Query getNamedQuery(final String query);", "public QueryBuilder()\n {\n\tlabel = null;\n\tqueryCondition = null;\n\tselectionLimiter = null;\n\tselectionSorter = null;\n\n\tvariablesMap = new HashMap<String, Expression>();\n\tselectionLabelsReferencedByStats = new HashSet<String>();\n }", "@Test\n\tpublic void testQuery1() {\n\t}", "static DbQuery createValueQuery() {\n DbQuery query = new DbQuery();\n query.order = OrderBy.VALUE;\n return query;\n }", "public DatabaseQuery getQuery() {\n return query;\n }", "public void customerQuery(){\n }", "PlanningFactory getFactory();", "GramaticaFactory getGramaticaFactory();", "public EntityManagerFactory newEMFactory() {\n emFactory = Persistence.createEntityManagerFactory(\"Exercici1-JPA\");\n return emFactory;\n }", "QuestionnaireFactory getQuestionnaireFactory();", "public AbstractJoSQLFilter (String q)\n\t throws QueryParseException\n {\n\n\tthis.setQuery (q);\n\n }", "public Query createQuery() {\n\n String queryString = getQueryString();\n\n if (debug == true) {\n logger.info( \"Query String: {0}\", queryString);\n logger.info( \"Parameters: Max Results: {0}, First result: {1}, Order By: {2}, Restrictions: {3}, Joins: {4}\", new Object[]{maxResults, firstResult, orderBy, normalizedRestrictions, joins});\n }\n\n Query query = entityManager.createQuery(queryString);\n\n List<QueryParameter> parameters = getQueryParameters();\n for (QueryParameter parameter : parameters) {\n //dates (Date and Calendar)\n if (parameter.getTemporalType() != null && (parameter.getValue() instanceof Date || parameter.getValue() instanceof Calendar)) {\n if (parameter.getValue() instanceof Date) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Date) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Date) parameter.getValue(), parameter.getTemporalType());\n }\n }\n } else if (parameter.getValue() instanceof Calendar) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n }\n }\n }\n } else {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), parameter.getValue());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), parameter.getValue());\n }\n }\n }\n }\n\n if (maxResults != null) {\n query.setMaxResults(maxResults);\n }\n if (firstResult != null) {\n query.setFirstResult(firstResult);\n }\n return query;\n }", "public abstract DatabaseQuery createDatabaseQuery(ParseTreeContext context);", "QuestionarioFactory getQuestionarioFactory();", "public JPQLQuery(ExecutionContext ec)\r\n {\r\n this(ec, (JPQLQuery) null);\r\n }", "public QueryUtils() {\n }", "private ORMServiceFactory() { }", "public Query() {\n initComponents();\n }", "public List<T> query(QueryObject qo) {\n\t\treturn null;\n\t}", "public interface QueryFilter {\n\t\tpublic void apply(Query<? extends PersistentObject> qbe);\n\t}", "private QueryUtils() {\n\n }", "GroupQuery createQuery();", "public SQLQueryCompiler(FilterFactory<SQLConstraint> factory,\n EntityDescriptor descriptor,\n String query,\n List<QueryField> searchFields) {\n super(factory, descriptor, query, searchFields);\n }", "@Test(dataProvider = \"repositoryFactories\")\r\n\tpublic void testQueryByConditionBean(RepositoryFactory factory)\r\n\t{\r\n\t\tIEmployeeRepository repo = factory.getRepository(IEmployeeRepository.class);\r\n\t\t\r\n\t\tList<Employee> empLst = repo.find(new EmpSearchQuery(null, \"%64%\", 5, 100));\r\n\t\tAssert.assertEquals(empLst.size(), 2);\r\n\r\n\t\tAssert.assertEquals(CommonUtils.toSet(empLst.get(0).getAge(), empLst.get(1).getAge()) , CommonUtils.toSet(40, 45));\r\n\t\tAssert.assertEquals(CommonUtils.toSet(empLst.get(0).getEmailId(), empLst.get(1).getEmailId()) , CommonUtils.toSet(\"[email protected]\", \"[email protected]\"));\r\n\t\tAssert.assertEquals(CommonUtils.toSet(empLst.get(0).getEmployeeNo(), empLst.get(1).getEmployeeNo()) , CommonUtils.toSet(\"1234\", \"1235\"));\r\n\t\tAssert.assertEquals(CommonUtils.toSet(empLst.get(0).getName(), empLst.get(1).getName()) , CommonUtils.toSet(\"user4\", \"user5\"));\r\n\t\tAssert.assertEquals(CommonUtils.toSet(empLst.get(0).getPhoneNo(), empLst.get(1).getPhoneNo()) , CommonUtils.toSet(\"1234564\", \"12345644\"));\r\n\t\t\r\n\t\tempLst = repo.find(new EmpSearchQuery(\"user2\", \"1234561\", null, null));\r\n\t\tAssert.assertEquals(empLst.size(), 1);\r\n\r\n\t\tempLst = repo.find(new EmpSearchQuery(\"user2\", null, null, null));\r\n\t\tAssert.assertEquals(empLst.size(), 2);\r\n\r\n\t\tempLst = repo.find(new EmpSearchQuery(null, null, 35, null));\r\n\t\tAssert.assertEquals(empLst.size(), 3);\r\n\r\n\t\tempLst = repo.find(new EmpSearchQuery(null, null, 35, 40));\r\n\t\tAssert.assertEquals(empLst.size(), 2);\r\n\t}", "public void init (Query q)\n\t throws QueryParseException\n {\n\ttry\n\t{\n\n\t this.get = new Getter (this.acc,\n\t\t\t\t q.getFromObjectClass ());\n\n\t} catch (Exception e) {\n\n\t throw new QueryParseException (\"Unable to create getter: \" + \n\t\t\t\t\t this.acc,\n\t\t\t\t\t e);\n\n\t}\n\n }", "public CustomerJPAImpl(EntityManagerFactory emfPassed) {\n\t\temf = emfPassed;\n\t}", "String getNamedQuery();", "private ASTQuery() {\r\n dataset = Dataset.create();\r\n }", "public QueryCore(String query)\n {\n this.query = query;\n }", "public QueryTranslatorImpl(\n \t String queryString,\n \t Map enabledFilters,\n \t SessionFactoryImplementor factory) {\n \t\tthis( queryString, queryString, enabledFilters, factory );\n \t}", "public interface IQueryEntity extends IBaseQueryObject\r\n{\r\n\r\n /**\r\n\t * \r\n\t * @return The Dynamic Extension Entity reference corresponding to the QueryEntity.\r\n\t */\r\n\tEntityInterface getDynamicExtensionsEntity();\r\n\r\n}", "public interface QueryBuilder {\n QueryBuilder from();\n QueryBuilder where();\n QueryBuilder orderBy();\n QueryBuilder groupBy();\n Object execute(Object... args);\n Object execute(Tuple args);\n}", "public QueryOperationListener getQueryOperationListener()\n {\n return new DemoQueryOperationListener();\n }", "public Query() {\n\n// oriToRwt = new HashMap();\n// oriToRwt.put(); // TODO\n }", "@Override\n\tpublic <T> TypedQuery<T> createNamedQuery(String name, Class<T> resultClass) {\n\t\treturn null;\n\t}", "public QueryModel getQueryModel()\n {\n return _queryModel;\n }", "public List<Literal> query(Literal q) {\n\r\n\t\t\r\n\t\tList<Literal> result = datalogReasoner.query(compiledClauses, q);\r\n\t\t\r\n\t\tLDLPProgramQueryResultDecompiler decompiler = new LDLPProgramQueryResultDecompiler();\r\n\t\t\r\n\t\tresult = decompiler.decompileLiterals(result);\r\n\t\t\t\t\r\n\t\treturn result;\r\n\r\n\r\n\t}", "protected\r\n JpaDaoFactory()\r\n {\r\n ISessionStrategy mySessionStrategy = new JpaSessionStrategy();\r\n ITransactionStrategy myTransactionStrategy = \r\n new JpaTransactionStrategy(mySessionStrategy);\r\n\r\n setSessionStrategy(mySessionStrategy);\r\n setTransactionStrategy(myTransactionStrategy);\r\n }", "@Override\n\tpublic Query objectQuery(String query) throws Exception {\n\t\treturn null;\n\t}", "OQLQueryImpl(final Database database) {\r\n _database = database;\r\n }", "public List<IEntity> query(IQuery query) throws SQLException;", "public QueryExecutorMDB() {\n\t}", "public String getQuery(){\n return this.query;\n }", "boolean isIsQuery();", "protected SelectQuery getQuery(final String query) {\n\t\treturn queryFactory.parseQuery(query);\n\t}" ]
[ "0.66445905", "0.64656055", "0.63039285", "0.62196267", "0.62050563", "0.6177603", "0.61725694", "0.6161776", "0.6100127", "0.6058965", "0.6024429", "0.6010019", "0.5996548", "0.5981089", "0.5948856", "0.59468144", "0.59419024", "0.5938157", "0.59240675", "0.58637345", "0.5852085", "0.5818743", "0.5815045", "0.5803018", "0.57931703", "0.57886124", "0.57862896", "0.57765156", "0.57511824", "0.5747631", "0.5734961", "0.572515", "0.57153773", "0.5707218", "0.5705308", "0.5701161", "0.5700073", "0.56869215", "0.56383437", "0.5637145", "0.5620748", "0.56139255", "0.5609348", "0.558959", "0.5587064", "0.5585996", "0.5580216", "0.55653316", "0.5562876", "0.55530715", "0.55512077", "0.55408984", "0.5509596", "0.5505394", "0.54916704", "0.54839504", "0.54809177", "0.5456111", "0.5443748", "0.5427508", "0.5415859", "0.54147696", "0.54059964", "0.5389323", "0.53824973", "0.5382419", "0.5374387", "0.5351584", "0.5347653", "0.5340483", "0.5336389", "0.5331133", "0.5329338", "0.5325717", "0.53256327", "0.5324951", "0.53224516", "0.53220266", "0.5319152", "0.5313627", "0.5307119", "0.5305439", "0.53023106", "0.53016806", "0.5299408", "0.5296962", "0.5289691", "0.52882856", "0.5274551", "0.52737683", "0.5271385", "0.5270804", "0.52638173", "0.52588415", "0.5253963", "0.5251045", "0.52490324", "0.5248768", "0.5239633", "0.5237775", "0.52228975" ]
0.0
-1
Develop a code that takes a number and prints if it is a Palindrome or Not a Palindrome
public static void main(String[] args) { int num=101; int r=0; int rev=0; int temp=num; while(num>0){ r=num%10; rev=(rev*10)+r; num=num/10; System.out.println(rev); //System.out.println(num); } if(temp==rev) System.out.println("Palindrome"); else System.out.println("Not a Palindrome"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int is_palindrome(int num)\n {\n int n, k, rev = 0;\n n = num; //store orig number\n // compute reverse of a number and store in rev\n while (num != 0)\n {\n k = num % 10;\n rev = (rev * 10) + k;\n num = num / 10;\n }\n if (n == rev) // palindrome check - if original number is same as its reverse\n return 1;\n return 0;\n }", "private static boolean isPalindrome(int num) {\n\t\t// Reversing a number\n\t\tint reverse = 0;\n\t\tfor (int i = num; i > 0; i /= 10)\n\t\t\treverse = reverse * 10 + i % 10;\n\n\t\t// If num and reverse are same, then num is palindrome\n\t\treturn num == reverse;\n\t}", "public static boolean isPalindrome(int number) {\n \n return number == reverse(number) ? true : false; \n \n }", "public static void main(String[] args) {\nint r,sum=0,t;\r\nint n=12121; \r\nt=n;\r\nwhile(n>0) {\r\n\tr=n%10;\r\n\tsum=(sum*10)+r;\r\n\tn=n/10; \t\r\n}\r\nif(t==sum) \r\n\t System.out.println(\"palindrome number \"); \r\n\t else \r\n\t System.out.println(\"not palindrome\"); \r\n\t}", "public boolean palindromeCheck(String number) {\n\t\tString reverse = \"\";\n\t\tfor (int i = number.length() - 1; i >= 0; i--) {\n\t\t\treverse = reverse + number.charAt(i);\n\t\t}\n\t\tif (number.equals(reverse)) {\n\t\t\tSystem.out.println(number);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isPalindrome(int number){\n return reverse(number) == number;\n }", "public static void main(String[] args) {\nint num=4550,temp,r,sum=0;\ntemp=num;\nwhile(num>0) {\n\tr=num%10;\n\tsum=(sum*10)+r;\n\tnum=num/10;\n\t\n}\n\tif(temp==sum) {\n\t\tSystem.out.println(\"number is palindrome\");\n\t}\n\telse {\n\t\tSystem.out.println(\"number is not palindrome\");\n\t}\n\t}", "public static PerformOperation isPalindrome() {\n return (num) -> {\n String number = Integer.toString(num);\n String reversed = new StringBuilder(number).reverse().toString();\n return number.equals(reversed);\n };\n }", "public static void main(String[] args) {\n\t\tint num=131,rem,rev=0;\n\t\tint temp=num;\n\t\t\n\t\twhile(num>0)\n\t\t{\n\t\t\trem=num%10;\n\t\t\tnum=num/10;\n\t\t\trev=rev*10+rem;\n\t\t}\n\t\tif(rev==temp)\n\t\t{\n\t\t\tSystem.out.println(\"Number is Palindrome\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Number is Not Palindrome\");\n\t\t}\n\t}", "public static void main(String[] args) {\nint n,m;\r\nint temp;\r\nint r;\r\nint sum=0;\r\nScanner s=new Scanner(System.in);\r\nSystem.out.print(\"enter the two numbers\");\r\nn=s.nextInt();\r\nm=s.nextInt();\r\ntemp=n+m;\r\nwhile(temp>0){\r\n\tr=temp%10;\r\n\tsum=(sum*10)+r;\r\n\ttemp=temp/10;\r\n}\r\n\r\nif(sum%2==0)\r\n{\r\n\tSystem.out.println(\"the number is palindrome\");\r\n\t}\r\nelse{\r\n\tSystem.out.println(\"the number is not a palindrome\");\r\n}\r\n\r\n\t}", "public static boolean isPalindrome(int number) {\r\n\t\t\r\n\t\t// Get the number, put it in another variable\r\n\t\t//Reverse it, compare both of them\r\n\t\t// if same palindrome, if not NOT a palindrom\r\n\t int numHolder = number;\r\n\t int reverse = 0;\r\n\r\n\t while (numHolder != 0) {\r\n\t int remainder = numHolder % 10;\r\n\t reverse = reverse * 10 + remainder;\r\n\t numHolder = numHolder / 10;\r\n\t }\r\n\r\n\t // Compare input integer with reversed one, if equal PALINDROME\r\n\t return number == reverse; \r\n\t}", "public static boolean isPalindrome(int number) {\n boolean isPalindrome = false;\n int reverseValue = 0;\n int originalNumber = number;\n // When x < 0, x is not a palindrome.\n // Also: if the last digit of the number is 0, in order to be a palindrome,\n // the first digit of the number also needs to be 0.\n // Only 0 satisfy this property.\n if(number < 0 || (number % 10 == 0 && number != 0)) {\n return isPalindrome;\n }\n while (number > 0) {\n // \"number % 10\" will return the last digit\n int lastInt = number % 10;\n reverseValue = reverseValue * 10 + lastInt;\n // Remove the last digit from number\n number = number / 10;\n }\n System.out.println(\"original number \" + originalNumber + \" : \" + \"reversed number \" + reverseValue);\n if (originalNumber == reverseValue)\n isPalindrome = true;\n return isPalindrome;\n\n }", "public static boolean palindromeTest(int num) {\n\t\tString x = Integer.toString(num);\n\n\t\tif (x.charAt(0) == x.charAt(x.length() - 1)) {\n\t\t\tif (x.charAt(1) == x.charAt(x.length() - 2)) {\n\t\t\t\tif (x.charAt(2) == x.charAt(x.length() - 3)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t\treturn false;\n\t}", "public static void main(String args[])\r\n {\r\n int remainder;\r\n int rev=0;\r\n Scanner scan = new Scanner(System.in);\r\n\r\n System.out.print(\"Enter a Number : \");\r\n int num = scan.nextInt();\r\n\r\n int original = num;\r\n\r\n while(num != 0)\r\n {\r\n remainder = num%10;\r\n rev = rev*10 + remainder;// rev = 50*10 + 6 --> 506*10 +2\r\n num = num/10; //divide by 10 to decrease one digit\r\n\r\n\r\n }\r\n\r\n // check if the original number is equal to its reverse\r\n\r\n if(rev==original)\r\n {\r\n System.out.print(\"This is a Palindrome Number\");\r\n }\r\n else\r\n {\r\n System.out.print(\"This is not a Palindrome Number\");\r\n }\r\n }", "public static void main(String[] args) {\n System.out.println(isPalindrome2(12321));\n System.out.println(isPalindrome2(10));\n System.out.println(isPalindrome2(-1));\n System.out.println(isPalindrome2(0));\n System.out.println(isPalindrome2(1));\n System.out.println(isPalindrome2(21120));\n// System.out.println(isPalindrome3(101));\n// System.out.println(isPalindrome3(10));\n// System.out.println(isPalindrome3(11));\n// System.out.println(isPalindrome3(12321));\n// System.out.println(isPalindrome3(10));\n// System.out.println(isPalindrome3(-1));\n// System.out.println(isPalindrome3(0));\n// System.out.println(isPalindrome3(1));\n// System.out.println(isPalindrome3(21120));\n }", "public boolean isPalindrome(long number) {\r\n\t\tif (reverse(number) == number) \r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t\t\r\n\t}", "public boolean isPalindrome(int x) {\n int y = 0;\n\t\tint temp = x;\n\t\twhile(temp > 0){\n\t\t\tint s = temp % 10;\n\t\t\ty = y * 10 + s;\n\t\t\ttemp = temp / 10;\n\t\t}\n\t\tif(x == y){\n\t\t\treturn true;\n\t\t}\n\t\treturn false; \n }", "public boolean isPalindrome(int x) {\n if(x<0 || (x!=0 && x%10==0)) {\n return false;\n }\n\n int reverse =0;\n while(x> reverse) {\n reverse = reverse * 10 + x%10;\n x /= 10;\n }\n // When the length is an odd number, we can get rid of the middle digit by revertedNumber/10\n // For example when the input is 12321, at the end of the while loop we get x = 12, revertedNumber = 123,\n // since the middle digit doesn't matter in palidrome(it will always equal to itself), we can simply get rid of it.\n return x == reverse || x == reverse/10;\n }", "public static boolean palindromeCheck(int x) {\n\t\tint original = x;\n\t\t//\tInitialize an integer to record the reverse of the input\n\t\tint reverse = 0;\n\t\t//\tInitialize an integer to track the remainder through the loop\n\t\tint remainder = 0;\n\t\t\n\t\twhile(x != 0) {\n\t\t\t//\tUse modulo to get the last digit of the integer and store it as the remainder\n\t\t\tremainder = x % 10;\n\t\t\t//\tMultiply the current reverse int by 10 and add the remainder\n\t\t\treverse = reverse * 10 + remainder;\n\t\t\t//\tDivide x by 10 to eliminate the now empty (0) place of the last digit\n\t\t\tx = x / 10;\n\t\t}\n\t\t\n\t\t//\tCheck the result\n\t\tif(reverse == original) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint a=33, sum=0;\r\n\t\tint temp=a;\r\n\t\tint r;\r\n\t while(a>0)\t{\r\n\t \tr=a%10;\r\n\t sum= (sum*10)+ r;\r\n\t\ta=a/10;\r\n\t }\r\n\t\tif(temp==sum) {\r\n\t\tSystem.out.println(sum+ \"the given number is palindrome \");\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\tSystem.out.println(sum + \"not a palindrome\");\r\n\t\t}}", "public static boolean isPalindrome(int number) {\n\n\t\treturn (number == reverse(number))?true:false;\n\n\t}", "public boolean isPalindrome(int x) {\r\n if (x==0) return true;\r\n if (x<0 || x%10==0) return false;\r\n int m = x;\r\n int n = 0;\r\n while (m>0){\r\n n = n*10 + m%10;\r\n m /= 10;\r\n }\r\n return n==x;\r\n }", "public static boolean isPalindrome(int x) {\r\n\t\treturn false;\r\n\t}", "public static boolean isPalindrome2(int x) {\n if (x < 0) {\n return false;\n }\n int div = 1;\n while (x / div >= 10) div *= 10;\n while (x > 0) {\n int left = x / div;\n int right = x % 10;\n if (left != right) return false;\n x = (x % div) / 10;\n div /= 100;\n }\n return true;\n }", "public boolean isPalindrome(int x) \n {\n if(x<0) return false;\n\n //get length\n int length,y=x;\n for(length = 0; ; length++){\n if(y==0) break;\n y/=10;\n }\n \n while(length>0)\n {\n if(length==1) return true;\n\n //get first digit\n int d1 = firstDigit(x, length);\n if(x%10 == d1)\n {\n x-=removeDigit(d1, length);\n x/=10;\n length-=2;\n }\n else return false;\n }\n return true;\n }", "public boolean isPalindrome22(String s) {\n s = s.toLowerCase().replaceAll(\"[^a-z0-9]\", \"\");\n return new StringBuilder(s).reverse().toString().equals(s);\n }", "public static void main(String[] args) {\r\n \r\n int reversedNum = 0;\r\n\r\n \t int num = 12345;\r\n \t int reversedNum1 = num;\r\n\r\n \t while (num != 0)\r\n \t {\r\n \t reversedNum = reversedNum * 10 + num % 10;\r\n \t num = num / 10;\r\n \t }\r\n \t \r\n \t if (reversedNum1 == reversedNum){\r\n \t \tSystem.out.println(\"palindrome\");\r\n \t }else \r\n \t System.out.println( \" is not palindrome\");\r\n //System.out.println(obj.reverseInt());\r\n\t\t\r\n\t\t\r\n\t}", "include<stdio.h>\nint main()\n{\n char t[1000]; \n scanf(\"%s\",t); \n \n int i,j,len; \n len=strlen(t); \n i=0; \n j=len-1; \n while(i<=j)\n {\n if(t[i]!=t[j])\n { break; } \n j--; i++;\n } \n \n if(i<j)\n printf(\"%s is not a palindrome\",t); \n else\n printf(\"%s is a palindrome\",t); \n \n return 0;\n}", "public static boolean isPalindrome(int x) {\n\t\tlong xl = x;\n\t\tif (xl < 0) {\n\t\t\treturn false;\n\t\t}\n\t\tlong high = 1;\n\t\twhile (high <= xl)\n\t\t\thigh *= 10;\n\t\thigh /= 10;\n\t\tif (high == 1)\n\t\t\treturn true;\n\t\tlong low = 1;\n\t\twhile (low < high) {\n\t\t\tint highDigit = (int) (xl % (high * 10) / high);\n\t\t\tint lowDigit = (int) ((xl % (low * 10) - xl % (low)) / low);\n\t\t\tif (highDigit != lowDigit)\n\t\t\t\treturn false;\n\t\t\tlow *= 10;\n\t\t\thigh /= 10;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isPalindrome(String s) {\n if (s == null || s.length() == 0) return true;\n s = s.replaceAll(\"[^a-zA-Z0-9]\", \"\").toLowerCase();\n int left = 0;\n int right = s.length() - 1;\n while (left < right) {\n if (s.charAt(left++) != s.charAt(right--)) {\n return false;\n }\n }\n return true;\n }", "private static boolean isPalindrome(String s) {\n\t\t\n\t\tString newS = s.replaceAll(\"[^a-zA-Z0-9]\", \"\").toLowerCase();\n\t\tSystem.out.println(newS);\n\t\t\n\t\treturn new StringBuilder(newS).reverse().toString().equals(newS);\n\t}", "public static boolean isPalindrome(String input){\n String backwards = \"\";\n int i = input.length();\n while (i > 0) { // creates a backwards string of input\n backwards = backwards + input.substring(i - 1, i);\n i--;\n }\n return (backwards.equals(input)); //returns true if backwards string is same as input\n }", "private boolean isPalindrome(String s) {\r\n int l = 0, r = s.length() - 1;\r\n while (l <= r && s.charAt(l) == s.charAt(r)) {\r\n l++;\r\n r--;\r\n }\r\n return l >= r;\r\n }", "public static boolean isPalindrome(String a)\n { \n boolean flag = true; \n //Iterate the string forward and backward and compare one character at a time \n //till middle of the string is reached \n for(int i = 0; i < a.length()/2; i++)\n { \n if(a.charAt(i) != a.charAt(a.length()-i-1))\n { \n flag = false; \n break; \n } \n } \n return flag; \n }", "public static void main(String[] args) {\n //printing line\n System.out.print(\"Enter any Number :\");\n //creating object\n Scanner number = new Scanner(System.in);\n //declaring & initialising variable data entered by user\n int input = number.nextInt();\n //declaring & initialising variable\n int sum = 0,extra;\n int temp = input ;\n //code to repeat\n while (input >0){\n //find out reminder\n extra = input%10;\n //by multiply last digit with 10 & adding up with reminder will help to check reversed\n sum = (sum * 10)+extra;\n //current temp value divided by 10 so it will shorter number every time\n input =input/10;\n }\n //code to check palindrome number\n if (temp == sum){\n //condition match print this line\n System.out.println(temp + \" is Palindrome Number\");\n }\n else{\n //condition not match print this line\n System.out.println(temp + \" is not Palindrome Number\");\n }\n }", "public static boolean isPalindrome2(String s) {\n List<Character> list = new ArrayList<>();\n for (int i = 0; i < s.length(); i++) {\n char c = Character.toLowerCase(s.charAt(i));\n if (c >= 'a' && c <= 'z' || c >= '0' && c <='9')\n list.add(c);\n }\n for (int i = 0; i < list.size() / 2; i++)\n if (list.get(i) != list.get(list.size() - i - 1))\n return false;\n return true;\n }", "public boolean isPalindrome(int x) {\n\n\t\tif (x < 0)\n\t\t\treturn false;\n\n\t\tint y = 0, z = x;\n\n\t\twhile (z != 0) {\n\t\t\ty = y * 10 + z % 10;\n\t\t\tz /= 10;\n\t\t}\n\n\t\treturn y == x;\n\t}", "public static boolean isPalindrome(int x) {\n\n //特殊情况:\n //如上所述,当x <0时,x不是回文。\n //如果数字的最后一位数字为0,为了成为回文,\n //数字的第一位数字也需要为0.\n //只有0满足此属性。\n if (x < 0 || (x % 10 == 0 && x != 0)) {\n return false;\n }\n\n int revertedNumber = 0 ;\n while (x > revertedNumber ) {\n revertedNumber = revertedNumber * 10 + x%10 ;\n x /= 10 ;\n }\n\n //当长度是一个奇数时,我们可以通过revertedNumber / 10来摆脱中间的数字\n //例如当输入为12321时,在while循环结束时,我们得到x = 12,revertedNumber = 123,\n //因为中间的数字并不重要(它总是等于自己),我们可以简单地去掉它。\n return x == revertedNumber || x == revertedNumber / 10 ;\n\n }", "public boolean isPalindrome(int x) {\n if (x < 0) {\n return false;\n }\n\n // get length of int\n // pointers at 10^0 and 10^len\n // number mod by pointers. compare if they're equal\n // move points in\n // stop when comparison is false or pointers\n\n int len = findLength(x);\n int[] digits = new int[len];\n\n //backwards\n for (int idx = digits.length - 1; idx >= 0; idx--) {\n digits[idx] = x % 10;\n x = x / 10;\n }\n\n int left = 0;\n int right = digits.length - 1;\n while (left < right) {\n if (digits[left++] != digits[right--]) {\n return false;\n }\n }\n\n return true;\n }", "public boolean validPalindrome(String s) {\n int start = 0;\n int end = s.length() - 1;\n return validPalindrom(s, start, end, true);\n }", "public boolean isPalindrome2(String s) {\n int start = 0;\n int end = s.length() - 1;\n while(start <= end) {\n while(start <= end && !Character.isLetterOrDigit(s.charAt(start))) {\n start++;\n }\n while(start <= end && !Character.isLetterOrDigit(s.charAt(end))) {\n end--;\n }\n if(start <= end && Character.toLowerCase(s.charAt(start)) != Character.toLowerCase(s.charAt(end))) {\n return false;\n }\n start++;\n end--;\n }\n return true;\n }", "public static boolean isPalindrome(String word){\r\n\t\tboolean palindrome = false;\r\n\t\tif(word.length()%2 == 1){\r\n\t\t\tfor(int a= 0; a<word.length()/2; a++){\r\n\t\t\t\tfor (int b = word.length()-1; b> word.length()/2; b--){\r\n\t\t\t\t\tif( word.charAt(a)== word.charAt(b)){\r\n\t\t\t\t\t\tpalindrome = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tpalindrome = 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\telse {\r\n\t\t\tfor(int a= 0; a<word.length()-1; a++){\r\n\t\t\t\tfor (int b = word.length()-1; b> 0; b--){\r\n\t\t\t\t\tif( word.charAt(a)== word.charAt(b)){\r\n\t\t\t\t\t\tpalindrome = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tpalindrome = 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\treturn palindrome;\r\n\r\n}", "public static void main(String[] args) {\n String s = \"MOM\";\n String reverse = \"\";\n String d = \"IMTIAZ\";\n String back = \"\";\n char[] word = s.toLowerCase().toCharArray();\n for (int i = s.length() - 1; i >= 0; i--) {\n reverse = reverse + s.charAt(i);\n for (int j = d.length() - 1; j >= 0; j--) {\n back = back + d.charAt(j);\n }\n\n }\n if (s.equals(reverse)) {\n System.out.println(s + \"--word is a palindron\");\n\n } else {\n System.out.println(s + \"--word is not a palindron\");\n }\n if (d.equals(back))\n System.out.println(d + \"--word is a palindron\");\n else\n System.out.println(d + \"--word is not a palindron\");\n\n\n\n isPalindrome(\"MADAM\");\n isPalindrome(\"IMTIAZ\");\n isPalindrome(\"AHMED\");\n isPalindrome(\"MOM\");\n }", "private static boolean isItPalindrome(String s) {\n\t\t\n\t\ts = s.toLowerCase();\n\t\t\n\t\tint i = 0, j = s.length()-1;\n\t\t\n\t\twhile(i < j) {\t\t\t\t\t\t\n\t\t\t\n\t\t\t// Both i and j skips the non-alphanumerics.\n\t\t\twhile(!Character.isLetterOrDigit(s.charAt(i)) && i < j) { ++i; }\n\t\t\t\n\t\t\twhile(!Character.isLetterOrDigit(s.charAt(j)) && j > i) { --j; }\n\t\t\t\n\t\t\tif(s.charAt(i++) != s.charAt(j--))\n\t\t\t\treturn false;\t\t\t\t\t\t\n\t\t}\n\t\treturn true;\n\t}", "public boolean isPalindrome3(int x) {\n if (x < 0 || (x != 0 && x % 10 == 0)) {\n return false;\n }\n\n int revertedNumber = 0;\n while (x > revertedNumber) {\n revertedNumber = revertedNumber * 10 + x % 10;\n x = x / 10;\n }\n\n return (x == revertedNumber || x == revertedNumber / 10);\n }", "private static boolean is_palindrome(String test) {\n\t\t\n\t\treturn false;\n\t}", "public static void isPalindromeString(String palindrome){\n String result =\"\";\n for(int i = palindrome.length()-1; i>=0; i--){\n result += palindrome.charAt(i);\n }\n System.out.println(\"The reversed string is: \" + result);\n\n if(palindrome.equalsIgnoreCase(result)){\n System.out.println(result + \" IS a palindrome\");\n }else {\n System.out.println(result + \" is NOT a palindrome!\");\n }\n }", "public boolean isPalindrome(String s) {\n int i = 0, j = s.length() - 1;\n while (i < j) {\n while (i < s.length() && !Character.isLetterOrDigit(s.charAt(i))) {\n i++;\n }\n\n while (j >= 0 && !Character.isLetterOrDigit(s.charAt(j))) {\n j--;\n }\n\n if (i < j && Character.toLowerCase(s.charAt(i++)) != Character.toLowerCase(s.charAt(j--))) {\n return false;\n }\n }\n return true;\n }", "public static boolean isPalindrom(int a) {\n String bitStr = toBinary(a);\n //System.out.println(bitStr);\n System.out.println(Integer.toBinaryString(a));\n if(bitStr.length() < 2) {\n return true;\n }\n int i = 0;\n int j = bitStr.length() - 1;\n while(i < j) {\n if(bitStr.charAt(i) != bitStr.charAt(j)) {\n return false;\n }\n i++;\n j--;\n }\n return true;\n }", "static boolean isRealPalindrome(String s) {\n return s.chars().distinct().count() > 1 // Contains more\n // than one letter\n && s.equals(new StringBuilder(s).reverse().toString()); // Is a palindrome\n }", "static boolean isPalindrome(String str){\n\t\tString a = str.replaceAll(\"\\\\s+\",\"\");\n\t\tString b = new StringBuilder(a).reverse().toString();\n\t\treturn a.equalsIgnoreCase(b);\n\t}", "public boolean isPalindrome(int x)\n {\n //corner case1\n if(x < 0)\n return false;\n //corner case2\n if(x < 10)\n return true;\n int power=1;\n //Now x >10, we need to first get the \"length\" of x in terms of power of 10\n while(x/power >= 10)\n power*=10;\n //then we go from both end by getting the highest and lowest digit, note we only go through the loop\n //when x >=10. The \"=\" part is crucial.\n while(x >= 10)\n {\n int high=x/power, low=x%10;\n if(high!=low)\n return false;\n //after each iteration, strip off both ends and divide power by 100\n x=(x-power*high)/10;\n power/=100;\n }\n return true;\n }", "public static boolean notPalindrome(int number) {\n\t\tint reverseNumber = reverse(number);\n\t\tif (reverseNumber == number)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public static boolean checkPalindrome(String s){\n\t\t\n\t\tfor(int i=0;i<(s.length()/2);i++ ){\n\t\t\t\n\t\t\tif(s.charAt(i)!=s.charAt(s.length()-1-i)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public static void checkPalindrome(String str) {\n\n\t\tString reverse = new StringBuffer(str).reverse().toString();\n\n\t\t// check whether the string is palindrome or not\n\t\tif (str.equalsIgnoreCase(reverse)) {\n\n\t\t\tSystem.out.println(\"Given string is Palindrome\");\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Given string is Not Palindrome\");\n\t\t}\n\t}", "@Test\r\n public void testIsPalindrome() {\r\n int number = 34143;\r\n\r\n assertTrue(Main.isPalindrome(number));\r\n }", "boolean checkPalindrome() {\n\t\t\n\t\tNode slow=head;\n\t\tNode fast=head;\n\t\t\n\t\tStack<Node> s= new Stack<Node>();\n\t\ts.push(slow);\n\t\t\n\t\twhile(fast.next!=null && fast.next.next!=null) {\n\t\t\t\n\t\t\tslow= slow.next;\n\t\t\tfast=fast.next.next;\n\t\t\ts.push(slow);\n\t\t}\n\t\t\n\t\tif(fast.next==null) //means ll has odd elements\n\t\t\ts.pop();\n\t\t\n\t\n\t\tNode secondhalf =slow.next;\n\t\twhile(secondhalf!=null) {\n\t\t\tif(s.pop().data!=secondhalf.data) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tsecondhalf=secondhalf.next;\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public static boolean isPalindrome(String s) {\n int head = 0, tail = s.length() - 1;\n while (head < tail) {\n char cl = 0, cr = 0;\n while (!Character.isLetterOrDigit(cl) && head < s.length())\n cl = s.charAt(head++);\n while (!Character.isLetterOrDigit(cr) && tail >= 0)\n cr = s.charAt(tail--);\n if (head < s.length() && Character.toLowerCase(cl) != Character.toLowerCase(cr))\n return false;\n }\n return true;\n }", "public boolean isPalindromeEnhanced(int x) {\n\t\tif (x < 0)\r\n\t\t\treturn false;\r\n\r\n\t\t// initialize how many zeros\r\n\t\tint div = 1;\r\n\t\twhile (x / div >= 10) {\r\n\t\t\tdiv *= 10;\r\n\t\t}\r\n\r\n\t\twhile (x != 0) {\r\n\t\t\tint left = x / div;\r\n\t\t\tint right = x % 10;\r\n\r\n\t\t\tif (left != right)\r\n\t\t\t\treturn false;\r\n\r\n\t\t\tx = (x % div) / 10;\r\n\t\t\tdiv /= 100;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "static boolean isPalindrome(String s) {\n\t\tint i = 0, j = s.length() - 1;\n\t\twhile (i < j) {\n\t\t\tif (s.charAt(i) != s.charAt(j))\n\t\t\t\treturn false;\n\t\t\t++i;\n\t\t\t--j;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isPalindrome_v2(String s)\n { \n return isPalindrome(s, 0, s.length()-1);\n }", "static boolean is_palindrome(String s) {\n /* using iteration */\n for (int i = 0; i < Math.floor(s.length() / 2); i++) {\n int lastindex = s.length() - 1 - i;\n String endchar = s.substring(lastindex, lastindex + 1);\n String startchar = s.substring(i, i + 1);\n if (!startchar.equals(endchar)) {\n return false;\n }\n }\n return true;\n }", "public static boolean palindrome(String s){\n \ts=helpPalindrome(s);\n \tif(s.length()>1){\n \t\tif(s.charAt(0)==s.charAt(s.length()-1)){\n \t\t\tpalindrome(s.substring(1,s.length()-1));\n \t\t} else\n \t\t\treturn false;\n \t}\n \t\n \tif(s.length()<2||s.length()>-1)\n \t\treturn true;\n \t\n \treturn false;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(isPalindrome(1000001));\r\n\t}", "public static boolean isPalindrome(String s) {\n\t\t// base case\n\t\tif (s.length() < 2) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// compare first and last\n\t\tif (s.charAt(0) != s.charAt(s.length()-1)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// recursive case\n\t\tisPalindrome(s.substring(1, s.length()-1));\n\t\t\n\t\treturn true;\n\t}", "public boolean isPalindrome(String s) {\n s = s.toLowerCase();\n int start = 0;\n int end = s.length() - 1;\n char sc;\n char ec;\n boolean pass;\n while (end > start) {\n sc = s.charAt(start);\n ec = s.charAt(end);\n pass = false;\n if ((sc < 'a' || sc > 'z') && (sc < '0' || sc > '9')) {\n start++;\n pass = true;\n }\n if ((ec < 'a' || ec > 'z') && (ec < '0' || ec > '9')) {\n end--;\n pass = true;\n }\n if (pass) continue;\n if (s.charAt(start++) != s.charAt(end--)) return false;\n }\n return true;\n }", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter a value to check Palindrome: \");\n\t\tint n = sc.nextInt();\n\t\tint r, s = 0, temp = n;\n\t\twhile (n > 0) {\n\t\t\tr = n % 10;\n\t\t\tn = n / 10;\n\t\t\ts = s * 10 + r;\n\t\t}\n\t\tif (temp == s) {\n\t\t\tSystem.out.println(\"Palindrome\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Not Palindrome\");\n\t\t}\n\n\t\tsc.close();\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint i = 12122;\n\t\tint y = 0;\n\t\tboolean b = false;\n\t\t\n\t\tList<Integer> mylist = new ArrayList<Integer>();\n\t\t\n\t\twhile(i >0) {\n\t\t\ty = i%10;\n\t\t\tmylist.add(y);\n\t\t\ti = i/10;\n\t\t}\n\n\t\tint len = mylist.size();\n\t\tSystem.out.println(\"List -> \"+ mylist);\n\t\tfor(int j = 0 ; j < len ; j++) {\n\t\t\tif(mylist.get(j) == mylist.get(len-1)) {\n\t\t\t\tlen --;\n\t\t\t\tb = true;\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No is not palindrom\");\n\t\t\t\tb = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(b) {\n\t\t\tSystem.out.println(\"No is Plaindrome\");\n\t\t}\n\t}", "public static boolean IsPalindrome(String string){\r\n \r\n string = string.replace(\" \", \"\");\r\n \r\n String reverseString = new StringBuilder(string).reverse().toString();\r\n\r\n return reverseString.equalsIgnoreCase(string);\r\n }", "public boolean isPalindrome(String s){ \n if(palindromes.containsKey(s))\n return (palindromes.get(s)).booleanValue();\n int m=0;\n int n=s.length()-1;\n while(m<n){\n if(s.charAt(m++)!=s.charAt(n--)){\n palindromes.put(s,new Boolean(false));\n return false;\n }\n }\n palindromes.put(s,new Boolean(true));\n return true;\n }", "public static void main(String[] args) {\n int a,b=0,c=0;\r\n Scanner scan = new Scanner (System.in);\r\n a = scan.nextInt();\r\n int d=a;\r\n\t while(a!=0){\r\n\t\t b = a%10;\r\n\t\t c=c*10+b;\r\n\t\t a=a/10;\r\n }\r\n\t if(c==d){\r\n\t\t System.out.println(\"palidrome\");\r\n\t }\r\n\t else{\r\n\t\tSystem.out.println(\"no palidrome\"); \r\n\t }\r\n\t}", "private static boolean isPalindromic(String str) {\n if (str.length() < 3)\n return false;\n\n // Check to see if the word is a palindrome\n // From the first character to the midpoint...\n for (int i = 0; i <= str.length() / 2; i++) {\n // From the last chracter to the midpoint...\n for (int j = str.length() - 1; j >= str.length() / 2; j--) {\n // If the end characters are not equal, it's not a palindrome\n // Otherwise, assume it is until proven otherwise\n if (i >= j) {\n return true;\n }\n else if (str.charAt(i) != str.charAt(j)) {\n return false;\n }\n else\n i++;\n }\n }\n // If it is never disproved, it's probably a palindrome\n return true;\n }", "public static boolean isPalindrome(String s) {\n if(s==null){\n return false;\n }\n\n s = s.toLowerCase();\n\n int i=0;\n int j=s.length()-1;\n\n while(i<j){\n while(i<j && !((s.charAt(i)>='a' && s.charAt(i)<='z')\n || (s.charAt(i)>='0'&&s.charAt(i)<='9'))){\n i++;\n }\n\n while(i<j && !((s.charAt(j)>='a' && s.charAt(j)<='z')\n || (s.charAt(j)>='0'&&s.charAt(j)<='9'))){\n j--;\n }\n\n if(s.charAt(i) != s.charAt(j)){\n return false;\n }\n\n i++;\n j--;\n }\n\n return true;\n }", "public static boolean isPalindrome(String s) {\n if(s ==null||s.length()<=0)\n return true;\n int frontIndex=0;\n int backIndex = s.length()-1;\n \n char[] strChar = s.toCharArray();\n \n while(frontIndex < backIndex){\n while(!Character.isLetterOrDigit(strChar[frontIndex])&&frontIndex<s.length()-1)\n frontIndex++;\n while(!Character.isLetterOrDigit(strChar[backIndex])&&backIndex>0)\n backIndex--;\n if(Character.isUpperCase(strChar[frontIndex]))\n strChar[frontIndex] = Character.toLowerCase(strChar[frontIndex]);\n if(Character.isUpperCase(strChar[backIndex]))\n strChar[backIndex] = Character.toLowerCase(strChar[backIndex]);\n if(strChar[frontIndex]!=strChar[backIndex]&&(Character.isLetterOrDigit(strChar[frontIndex])&&Character.isLetterOrDigit(strChar[backIndex]))){\n return false;\n }else{\n frontIndex++;\n backIndex--;\n \n }\n }\n return true;\n \n \n }", "private boolean isPalindrome(String s) {\n if (!this.Memoize.containsKey(s)) {\n if (s.length() < 2) {\n this.Memoize.put(s, true);\n } else {\n String sub = s.substring(1, s.length() - 1);\n // check the recursed results\n this.Memoize.put(s, this.isPalindrome(sub) && s.charAt(0) == s.charAt(s.length() - 1));\n }\n }\n return this.Memoize.get(s);\n }", "private static boolean checkPalindromability() {\n boolean oddEncountered = false; // assume any input is palindrome at first (zero occurrences of any chars)\n\n for(Integer count : charCount.values()) {\n if(count % 2 == 1) {\n if(oddEncountered) { // there has been one odd char count already, so second one means a non-palindrome\n return false;\n } else {\n oddEncountered = true;\n }\n }\n }\n return true;\n }", "public boolean validPalindrome(String s) {\n\t\tif (s.length() <= 1)\n\t\t\treturn true;\n\n\t\tint l = 0;\n\t\tint r = s.length() - 1;\n\t\twhile (l <= r) {\n\t\t\tif (s.charAt(l) == s.charAt(r)) {\n\t\t\t\tl++;\n\t\t\t\tr--;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\treturn pali(s, l, r - 1) || pali(s, l + 1, r);\n\t\t\t}\n\t\t}\n\t\treturn true;\n\n\t}", "public static boolean isPalindrome(String s) {\n s = s.toLowerCase();\n // Store all letters and digits in new string. We don't care about space and special characters etc.\n StringBuilder builder = new StringBuilder();\n for (char ch : s.toCharArray()) {\n if (Character.isLetterOrDigit(ch)) {\n builder.append(Character.toLowerCase(ch));\n }\n }\n String s1 = builder.toString();\n boolean palindrome = true;\n int length = s1.length();\n int frontIndex = 0;\n int backIndex = length - 1;\n // Two indexes, one that points to the first index and one to the last index\n while (frontIndex < backIndex) {\n char c1 = s1.charAt(frontIndex);\n char c2 = s1.charAt(backIndex);\n if (c1 != c2) {\n palindrome = false;\n break;\n }\n frontIndex += 1;\n backIndex -= 1;\n }\n return palindrome;\n }", "public boolean testPalindromicity(String s) {\n s = s.replaceAll(\"[^a-zA-Z]\", \"\").toLowerCase();\n char[] sArr = s.toCharArray();\n\n int i=0;\n while (i < sArr.length-1-i) {\n if (sArr[i] != sArr[sArr.length-1-i])\n return false;\n i++;\n }\n return true;\n }", "public static int isPalindrome(int A) {\n if(A<0) return 0;\n int reversed = 0;\n int copyA = A;\n while(copyA != 0) {\n reversed = reversed * 10 + copyA % 10;\n copyA /= 10;\n }\n\n if(A == reversed) return 1;\n return 0;\n }", "public boolean isPalindrome(String input){\n\t\t\n\t\t//if the input string is null, then return false\n\t\tif(input == null )\n\t\t\treturn false;\n\t\t\n\t\t//strip the input of all whitespaces\n\t\tinput = input.trim();\n\t\t\n\t\t//if what remains is of length 0 or 1, return true\n\t\tif(input.length()==0||input.length()==1)\n\t\t\treturn true;\n\t\telse\n\t\t{\n\t\t\t//set up two counters, one at the starting and one at the ending.\n\t\t\tint i = 0;\n\t\t\tint j = input.length() - 1;\n\t\t\t\n\t\t\t//while they don't cross paths, compare the characters at the counters and move them in opposite directions\n\t\t\t//return false if the characters don't match.\n\t\t\twhile(i < j)\n\t\t\t{\n\t\t\t\tif(input.charAt(i)!=input.charAt(j))\n\t\t\t\t\treturn false;\n\t\t\t\ti++;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t}\n\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint x=121;\r\n\t\tSystem.out.println(isPalindrome(x));\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a number\");\r\n\t\tint num=sc.nextInt();\r\n\t\tSystem.out.println(isPalindrome(num));\r\n\t\tsc.close();\r\n\r\n\t}", "public static boolean isPalindrome( String s ) {\n// two indexes --> front and back to move toowards each other\n if (s.length() == 0 || s.length() == 1)\n return false;\n int i = 0;\n int j = s.length() - 1;\n while (i != j && i < j ) {\n if (s.charAt(i) == s.charAt(j)) {\n i++; j--;\n }\n else\n return false;\n }\n return true;\n }", "public static boolean isPalindromic( int n )\n {\n String str = \"\" + n;\n int count[] = new int[NO_OF_CHARS];\n Arrays.fill(count, 0);\n for (int i = 0; i < str.length(); i++)\n count[(int)(str.charAt(i))]++;\n int odd = 0;\n for (int i = 0; i < NO_OF_CHARS; i++)\n {\n if ((count[i] & 1) == 1)\n odd++;\n\n if (odd > 1)\n return false;\n }\n return true;\n }", "public boolean IsPalindrome() {\n return IsPalindrome(head, head).isPalindrome;\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a string to check if it is a Palindrome:\");\r\n\t\t\r\n\t\tString s = scan.next();\r\n\t\tStringBuilder sbl = new StringBuilder(s);\r\n\t\tString revStr = sbl.reverse().toString();\r\n\t\tif(s.equals(revStr))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"This is a palindrome!!\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"This is NOT a palindrome!!\");\r\n\t\t}\t\r\n\t\tscan.close();\r\n\t}", "public boolean isPalindrom(String word) {\n boolean palindrom = false;\n int middle = word.length() / 2;\n\n for (int i = 0; i < middle; i++) {\n for (int j = word.length() - i - 1; j >= middle; j--) {\n if (word.charAt(i) == word.charAt(j)) {\n palindrom = true;\n break;\n } else {\n return false;\n }\n }\n }\n\n return palindrom;\n }", "static boolean isPalindrome(String str) {\n\n if (str.length() <= 1) return true;\n\n return str.charAt(0) != str.charAt(str.length()-1) ? false : isPalindrome(str.substring(1, str.length()-1));\n }", "public static void main(String[] args) {\n System.out.println(isPalindrome(\"MOM\"));\n System.out.println(isPalindrome(\"DAD\"));\n System.out.println(isPalindrome(\"MADAM\"));\n }", "private boolean isPalindrome(String str){\n for(int i=0, j=str.length()-1; i<j; i++,j--){\n if(str.charAt(i) != str.charAt(j)){\n return false;\n }\n }\n return true;\n }", "public static void main(String[] args) {\n\t String s = \"Ah, Satan sees Natasha \".toLowerCase().replaceAll(\"\\\\W\", \"\");\n\t int j=0;\n\t int k = s.length() - 1;\n\t while(j < s.length() / 2) { //loops until half the length of the string if \n\t //even and floor value if odd.\n\t if (s.charAt(j++) != s.charAt(k--)){//check for first and last chars \n\t //and go inwards. if char do not match print 'Not a Palindrome' and exit \n\t System.out.println(\"Not a Palindrome\");\n\t System.exit(0);}\n\t }\n\t System.out.println(\"Palindrome\"); //if every chars match print \"Palindrome\"\n\t }", "public static boolean isPalindrome(String str) {\n\r\n StringBuilder reversedString = new StringBuilder();\r\n for (int i = str.length() - 1; i >= 0; i--) {\r\n reversedString.append(str.charAt(i));\r\n }\r\n\r\n return str.equals(reversedString.toString());\r\n }", "public static boolean isPallindrome(String s) {\n\t\tif (StringUtils.isEmpty(s)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn StringUtils.reverse(s).equals(s);\n\t}", "public static boolean isPalindrome(String str)\n {\n String str2 = \"\";\n str = str.toLowerCase();\n for(int i = str.length() - 1; i > -1; i--)\n {\n str2 += str.substring(i, i + 1);\n }\n if (str.equals(str2))\n return true;\n return false;\n }", "public static boolean checkPalaindrome(String s) {\n if (s == null) return false;\n String refinedString = s.toLowerCase()\n .replaceAll(\" \",\"\")\n .replaceAll(\"[^a-z]\", \"\");\n int i =0;\n int j = refinedString.length() -1;\n while (i < j) {\n if (refinedString.charAt(i) != refinedString.charAt(j)) {\n return false;\n }\n i++ ; j--;\n }\n return true;\n }", "static boolean isPalindrome(char []str) \n{ \n\tint len = str.length; \n\n\t// single character is always palindrome \n\tif (len == 1) \n\t\treturn true; \n\n\t// pointing to first character \n\tchar ptr1 = str[0]; \n\n\t// pointing to last character \n\tchar ptr2 = str[len-1]; \n\n\twhile (ptr2 > ptr1) \n\t{ \n\t\tif (ptr1 != ptr2) \n\t\t\treturn false; \n\t\tptr1++; \n\t\tptr2--; \n\t} \n\n\treturn true; \n}", "public boolean isPalindrome3(String s) {\n char[] c = s.toCharArray();\n for (int i = 0, j = c.length - 1; i < j; ) {\n if (!Character.isLetterOrDigit(c[i])) i++; // error: isWhitespace is not applicable eg.\":,1\"\n else if (!Character.isLetterOrDigit(c[j])) j--;\n else if (Character.toLowerCase(c[i++]) != Character.toLowerCase(c[j--]))\n return false;\n }\n return true;\n }", "public static boolean isPalindrome(String word) {\n String palindrome = new StringBuilder(word).reverse().toString();\n \n if(word.compareToIgnoreCase(palindrome) == 0) return true;\n else return false;\n }", "private static boolean isReversePrime(int num) {\n\t\tint revNum=0;\n\t\tint temp=num;\n\t\tint re;\n\n\t\t\n\t\twhile(num>0){\n\t\tre=num%10;\n\t\trevNum=revNum*10+re;\n\t\tnum=num/10;\n\t\t}\n\t\t//System.out.println(revNum);\n\t\t\n\t\tif(revNum!=temp && isPrime(revNum)){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}" ]
[ "0.80371535", "0.7949763", "0.793791", "0.78787863", "0.7725139", "0.7681467", "0.7666378", "0.75971687", "0.7576114", "0.7570928", "0.7561744", "0.75354606", "0.75194454", "0.7450384", "0.7386236", "0.7379977", "0.7366401", "0.7358446", "0.735608", "0.73365486", "0.7327147", "0.73157203", "0.7222213", "0.72126794", "0.71881765", "0.7147538", "0.7127679", "0.7120208", "0.7087066", "0.7065771", "0.70590645", "0.705782", "0.70453614", "0.7033761", "0.7032961", "0.7004174", "0.6979747", "0.69618404", "0.69614077", "0.6961161", "0.6931301", "0.6927293", "0.6902211", "0.6886445", "0.68833905", "0.6851079", "0.68358654", "0.68253136", "0.6821651", "0.6810551", "0.6810094", "0.68094945", "0.6806653", "0.6795458", "0.67919564", "0.6790445", "0.6786468", "0.67782223", "0.6758845", "0.6754479", "0.67524534", "0.67424655", "0.6740228", "0.6736556", "0.673301", "0.67305803", "0.67220855", "0.67135966", "0.6706523", "0.67052466", "0.6697204", "0.66909844", "0.6690414", "0.6687176", "0.66821456", "0.66775376", "0.66694415", "0.6669337", "0.6661646", "0.66600555", "0.66408414", "0.663328", "0.6632229", "0.6631599", "0.6621501", "0.66198117", "0.65889215", "0.658257", "0.6578682", "0.6539115", "0.65372413", "0.6536252", "0.6535886", "0.65311354", "0.6523789", "0.6516266", "0.65101045", "0.65085095", "0.65032756", "0.6495401" ]
0.78545576
4
helper methods for matrix
public static long[][] multiply(long F[][], long M[][]){ long x = F[0][0]*M[0][0] + F[0][1]*M[1][0]; long y = F[0][0]*M[0][1] + F[0][1]*M[1][1]; long z = F[1][0]*M[0][0] + F[1][1]*M[1][0]; long w = F[1][0]*M[0][1] + F[1][1]*M[1][1]; return new long[][]{{x,y},{z,w}}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Matrix matrix(double s1, double s2, double s3, double c1, double c2, double c3);", "protected abstract NDArray[] onMatrix(NDArray matrix);", "public Matrix getValue();", "public Matrix calculate();", "protected abstract T createMatrix( int numRows, int numCols, MatrixType type );", "protected SimpleMatrix() {}", "@Override\n public Matrix idct(final MatrixView in) {\n check(in);\n double[][] out = new double[in.getRows()][in.getColumns()];\n double tmp1, tmp2, tmp3, tmp4;\n double tmpm0 = 0, tmpm1 = 0, tmpm2 = 0, tmpm3 = 0, tmpm4 = 0, tmpm5 = 0, tmpm6 = 0, tmpm7 = 0;\n double tmpm20, tmpm21, tmpm22, tmpm23, tmpm24, tmpm25, tmpm26, tmpm27 = 0;\n double[] outtmpmyi = null;\n\n for (int my = 0; my < in.getRows(); my += SIZE) {\n for (int mx = 0; mx < in.getColumns(); mx += SIZE) {\n for (int i = 0; i < 8; i++) {\n outtmpmyi = out[my + i];\n\n tmpm0 = in.getDouble(my + i, mx + 0);\n tmpm1 = in.getDouble(my + i, mx + 1);\n tmpm2 = in.getDouble(my + i, mx + 2);\n tmpm3 = in.getDouble(my + i, mx + 3);\n tmpm4 = in.getDouble(my + i, mx + 4);\n tmpm5 = in.getDouble(my + i, mx + 5);\n tmpm6 = in.getDouble(my + i, mx + 6);\n tmpm7 = in.getDouble(my + i, mx + 7);\n\n tmp1 = (tmpm1 * Z7) - (tmpm7 * Z1);\n tmp4 = (tmpm7 * Z7) + (tmpm1 * Z1);\n tmp2 = (tmpm5 * Z3) - (tmpm3 * Z5);\n tmp3 = (tmpm3 * Z3) + (tmpm5 * Z5);\n\n tmpm20 = (tmpm0 + tmpm4) * Z4;\n tmpm21 = (tmpm0 - tmpm4) * Z4;\n tmpm22 = (tmpm2 * Z6) - (tmpm6 * Z2);\n tmpm23 = (tmpm6 * Z6) + (tmpm2 * Z2);\n tmpm4 = tmp1 + tmp2;\n tmpm25 = tmp1 - tmp2;\n tmpm26 = tmp4 - tmp3;\n tmpm7 = tmp4 + tmp3;\n\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n\n outtmpmyi[mx + 0] = tmpm0 + tmpm7;\n outtmpmyi[mx + 7] = tmpm0 - tmpm7;\n outtmpmyi[mx + 1] = tmpm1 + tmpm6;\n outtmpmyi[mx + 6] = tmpm1 - tmpm6;\n outtmpmyi[mx + 2] = tmpm2 + tmpm5;\n outtmpmyi[mx + 5] = tmpm2 - tmpm5;\n outtmpmyi[mx + 3] = tmpm3 + tmpm4;\n outtmpmyi[mx + 4] = tmpm3 - tmpm4;\n\n }\n\n for (int i = 0; i < 8; i++) {\n\n tmpm0 = out[my + 0][mx + i];\n tmpm1 = out[my + 1][mx + i];\n tmpm2 = out[my + 2][mx + i];\n tmpm3 = out[my + 3][mx + i];\n tmpm4 = out[my + 4][mx + i];\n tmpm5 = out[my + 5][mx + i];\n tmpm6 = out[my + 6][mx + i];\n tmpm7 = out[my + 7][mx + i];\n\n tmp1 = (tmpm1 * Z7) - (tmpm7 * Z1);\n tmp4 = (tmpm7 * Z7) + (tmpm1 * Z1);\n tmp2 = (tmpm5 * Z3) - (tmpm3 * Z5);\n tmp3 = (tmpm3 * Z3) + (tmpm5 * Z5);\n\n tmpm20 = (tmpm0 + tmpm4) * Z4;\n tmpm21 = (tmpm0 - tmpm4) * Z4;\n tmpm22 = (tmpm2 * Z6) - (tmpm6 * Z2);\n tmpm23 = (tmpm6 * Z6) + (tmpm2 * Z2);\n tmpm4 = tmp1 + tmp2;\n tmpm25 = tmp1 - tmp2;\n tmpm26 = tmp4 - tmp3;\n tmpm7 = tmp4 + tmp3;\n\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n\n out[my + 0][mx + i] = tmpm0 + tmpm7;\n out[my + 7][mx + i] = tmpm0 - tmpm7;\n out[my + 1][mx + i] = tmpm1 + tmpm6;\n out[my + 6][mx + i] = tmpm1 - tmpm6;\n out[my + 2][mx + i] = tmpm2 + tmpm5;\n out[my + 5][mx + i] = tmpm2 - tmpm5;\n out[my + 3][mx + i] = tmpm3 + tmpm4;\n out[my + 4][mx + i] = tmpm3 - tmpm4;\n }\n }\n }\n\n return new DoubleMatrix(in.getRows(), in.getColumns(), out);\n }", "public interface Matrix {\n\n void initZeroValues();\n\n void fillRandomValues();\n\n int getRows();\n\n int getColumns();\n\n Entity getEntity(int i, int j);\n\n String toString();\n}", "public void mo23181a(Canvas canvas, Matrix matrix, int i) {\n }", "public Matrix extract(){\r\n\t\t\r\n\t\tDouble[][] newVal = new Double[col][row - 1];\r\n\t\t\r\n\t\tfor(Double[] row: AllVal){\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public interface IMatrix {\n\n\tpublic int getRowsCount();\n\tpublic int getColsCount();\n\tpublic double get(int numberOne, int numberTwo);\n\tpublic IMatrix set(int numberOne, int numberTwo, double numberThree);\n\tpublic IMatrix copy();\n\tpublic IMatrix newInstance(int numberOne, int numberTwo);\n\tpublic IMatrix nTranspose(boolean trans);\n\tpublic IMatrix add(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix nAdd(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix sub(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix nSub(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix nMultiply(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic double determinant() throws OperationNotSupportedException;\n\tpublic IMatrix subMatrix(int numberOne, int numberTwo, boolean subM);\n\tpublic IMatrix nInvert() throws OperationNotSupportedException;\n\tpublic double[][] toArray();\n\tpublic IVector toVector(boolean toVect) throws OperationNotSupportedException;\n\tpublic IMatrix scalarMultiply(double value);\n\tpublic IMatrix nScalarMultiply(double value);\n\t\n}", "public interface Matrix extends Entity{\n\tboolean isNull(int row, int column);\n\tvoid setNull(int row, int column);\n\tScalar getRowLabel(int row);\n\tScalar getColumnLabel(int column);\n\tScalar get(int row, int column);\n\tVector getRowLabels();\n\tVector getColumnLabels();\n\tboolean hasRowLabel();\n\tboolean hasColumnLabel();\n\tClass<?> getElementClass();\n}", "public interface IMatrix {\n\n /**\n * Set coefficient\n * @param y row (0..height-1)\n * @param x column (0..width-1)\n * @param v value\n */\n public void set(int y, int x, double v);\n /**\n * Get coefficient from matrix, by returning coeff[y*width + x].\n * @param y row (0..height-1)\n * @param x column (0..width-1)\n * @return coefficient\n */\n public double get(int y, int x);\n\n /**\n * Clear matrix to zeros\n */\n public void clear();\n\n /**\n * Get array of coefficients.\n * They are indexed by [y*height + x].\n * Not all classes support this method.\n * @return array of coefficients\n */\n public double[] coeff();\n\n /**\n * Get width of matrix\n * @return width\n */\n public int width();\n\n /**\n * Get height of matrix\n * @return height\n */\n public int height();\n}", "void iniciaMatriz() {\r\n int i, j;\r\n for (i = 0; i < 5; i++) {\r\n for (j = 0; j <= i; j++) {\r\n if (j <= i) {\r\n m[i][j] = 1;\r\n } else {\r\n m[i][j] = 0;\r\n }\r\n }\r\n }\r\n m[0][1] = m[2][3] = 1;\r\n\r\n// Para los parentesis \r\n for (j = 0; j < 7; j++) {\r\n m[5][j] = 0;\r\n m[j][5] = 0;\r\n m[j][6] = 1;\r\n }\r\n m[5][6] = 0; // Porque el m[5][6] quedo en 1.\r\n \r\n for(int x=0; x<7; x++){\r\n for(int y=0; y<7; y++){\r\n // System.out.print(\" \"+m[x][y]);\r\n }\r\n //System.out.println(\"\");\r\n }\r\n \r\n }", "Matrix add(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] + m.data[i];\n }\n return matrix_to_return;\n }", "Matrix(){\n matrixVar = new double[1][1];\n rows = 1;\n columns = 1;\n }", "protected ArrayList<double[]> newMatrix(int _rows, int _cols) {\n ArrayList<double[]> matrix = new ArrayList<double[]>();\n for (int i=0; i<_rows; i++) {\n matrix.add(new double[_cols]);\n }\n return matrix;\n }", "private Object get( int r, int c ) {\n\treturn matrix[r][c];\n }", "public Matrix( int a ) {\n\tmatrix = new Object[a][a];\n }", "public void makeIdentity() {\n if (rows == cols) {\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n if (i == j) {\n matrix.get(i)[j] = 1;\n }\n else {\n matrix.get(i)[j] = 0;\n }\n }\n }\n }\n else {\n throw new NonSquareMatrixException();\n }\n }", "Matrix mult(Matrix M){\n if(this.getSize() != M.getSize()){\n throw new RuntimeException(\"Matrix\");\n\n } \n int newMatrixSize = this.getSize();\n Matrix newM = M.transpose();\n Matrix resultMatrix = new Matrix(newMatrixSize);\n double resultMatrix_Entry = 0;\n for(int i = 1; i <= newMatrixSize; i++){\n for(int j = 1; j<= newMatrixSize; j++){\n List itRow_A = this.rows[i - 1];\n List itRow_B = newM.rows[j-1];\n itRow_A.moveFront();\n itRow_B.moveFront();\n while((itRow_A.index() != -1) && (itRow_B.index() != -1)){\n Entry c_A = (Entry)itRow_A.get();\n Entry c_B = (Entry) itRow_B.get();\n if(c_A.column == c_B.column){\n resultMatrix_Entry += (c_A.value)*(c_B.value);\n itRow_A.moveNext();\n itRow_B.moveNext();\n\n } else if(c_A.column > c_B.column){\n itRow_B.moveNext();\n\n }else{\n itRow_A.moveNext();\n }\n\n }\n resultMatrix.changeEntry(i, j, resultMatrix_Entry);\n resultMatrix_Entry = 0;\n }\n }\n return resultMatrix;\n\n }", "static void printMatrix(int[][] inp){\n\n for(int i=0;i<inp.length;i++){\n for(int j=0;j<inp[0].length;j++){\n System.out.print(inp[i][j]+\" \");\n }\n System.out.println(\"\");\n }\n }", "public interface ExprMatrix extends ExprCellIterator{\n public int getColumnsDimension();\n\n public int getRowsDimension();\n\n public Expr apply(int row, int column);\n\n public Expr get(int row, int column);\n\n public void set(Expr exp, int row, int col);\n\n\n /**\n * create a preloaded sequence (all element are pre evaluated)\n * @return\n */\n public ExprMatrix preload();\n\n /**\n * same as index, provided for scala compatibility\n *\n * @param index index\n * @return get(index)\n */\n /**\n * create a cached instance of this expression sequence\n * @return\n */\n public ExprMatrix withCache();\n\n /**\n * create a sequence of simplified elements\n * @return\n */\n public ExprMatrix simplify() ;\n}", "public int[][] getMat() {\n // Note: java has no return read-only so we won't return matrix;\n // b\\c that would expose internal representation. Instead we will\n // copy each row into a new matrix, and return that.\n return Helper.cloneMatrix(matrix);\n }", "abstract public Matrix4fc getViewMatrix();", "Matrix(int r,int c)\n {\n this.r=r;\n this.c=c;\n arr=new int[r][c];\n }", "public double[][] convert_img_mat()\n\t{\n\t\tif(orderflag)\n\t\t{\n\t\t\tputpixel_1();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//rotate the image and get the pixels as usual form\t\n \t\tputpixel_2();\n\t\t}\n\treturn matrix;\n\t}", "private int convertMatrixToVectorIndex(int row, int col){\n return ((row)*this.col)+col;\n }", "public Matriz( int lin, int col )\n {\n if(lin <= 0 || col <= 0 )\n {\n IO.println(\"ERRO: Quantidade invalida. \" );\n } //end\n else\n {\n table = new Object[lin][col];\n } //end se\n }", "Matrix add(Matrix M) {\n if(getSize() != M.getSize()) {\n throw new RuntimeException(\"Matrix Error: Matrices not same size\");\n }\n if (M.equals(this)) return M.scalarMult(2);\n int c = 0, e2 = 0;\n double v1 = 0, v2 = 0;\n List temp1, temp2;\n Matrix addM = new Matrix(getSize());\n for(int i = 1; i <= rows.length; i++) {\n temp1 = M.rows[i-1];\n temp2 = this.rows[i-1];\n if(temp1.isEmpty() && !temp2.isEmpty()) {\n temp2.moveFront();\n while(temp2.index() != -1) {\n addM.changeEntry(i, ((Entry)temp2.get()).column, ((Entry)temp2.get()).value);\n temp2.moveNext();\n }\n }else if(!temp1.isEmpty() && temp2.isEmpty()) {\n temp1.moveFront();\n while(temp1.index() != -1) {\n addM.changeEntry(i, ((Entry)temp1.get()).column, ((Entry)temp1.get()).value);\n temp1.moveNext();\n }\n }else if(!temp1.isEmpty() && !temp2.isEmpty()) {\n temp2.moveFront();\n temp1.moveFront();\n while(temp1.index() != -1 && temp2.index() != -1) {\n if(((Entry)temp1.get()).column == ((Entry)temp2.get()).column) {\n v1 = ((Entry)temp1.get()).value;\n v2 = ((Entry)temp2.get()).value;\n c = ((Entry)temp2.get()).column;\n addM.changeEntry(i, c, (v1+v2));\n temp1.moveNext();\n if(!this.equals(M))\n temp2.moveNext();\n ///if temp1 < temp2\n //this < M\n }else if(((Entry)temp1.get()).column < ((Entry)temp2.get()).column) {\n v1 = ((Entry)temp1.get()).value;\n c = ((Entry)temp1.get()).column;\n addM.changeEntry(i, c, v1);\n temp1.moveNext();\n //if temp1>temp2\n }else if(((Entry)temp1.get()).column > ((Entry)temp2.get()).column) {\n v2 = ((Entry)temp2.get()).value;\n c = ((Entry)temp2.get()).column;\n addM.changeEntry(i, c, v2);\n temp2.moveNext();\n }\n }\n while(temp1.index() != -1) {\n addM.changeEntry( i, ((Entry)temp1.get()).column, ((Entry)temp1.get()).value);\n temp1.moveNext();\n }\n while(temp2.index() != -1) {\n addM.changeEntry(i, ((Entry)temp2.get()).column, ((Entry)temp2.get()).value);\n temp2.moveNext();\n }\n }\n }\n return addM;\n }", "private int rcvToMatrixRow(int i, int j, String symb) \n {\n int v = indexOf(symb);\n return (i - 1) * dimSquared + (j - 1) * gDim + (v - 1);\n }", "private int size() {\n\treturn matrix.length; //# of rows\n }", "public int[][] getMatrix(){\n\t\treturn matrix;\n\t}", "public static void main(String[] args) {\n\t\tint[][] a = {{1,2}, {5,3}};\n\t\tint[][] b = {{3,2}, {4,5}};\n\t\tint[][] c = {{1,2}, {4,3}};\n\t\tint[][] d = {{1,2,3}, {4, 5, 6}};\n\t\tint[][] e = {{1, 4}, {2, 5}, {3,6}};\n\n\n\t\t//create new matrices using multidimensional arrays to get a size\n\t\tMatrix m = new Matrix(a);\n\t\tMatrix m2 = new Matrix(b);\n\t\tMatrix m3 = new Matrix(c);\n\t\tMatrix m4 = new Matrix(d);\n\t\tMatrix m5 = new Matrix(e);\n\n\n\n\t\t//Example of matrix addition\n\t\tSystem.out.println(\"Example of Matrix addition using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nSUM:\");\n\t\tSystem.out.println(m.add(m2));\n\t\t\n\t\t//Example of matrix subtraction\n\t\tSystem.out.println(\"Example of Matrix subtraction using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nDIFFERENCE:\");\n\t\tSystem.out.println(m.subt(m2));\n\n\t\t//Example of matrix multiplication\n\t\tSystem.out.println(\"Example of Matrix multiplication using the following matrices:\");\n\t\tSystem.out.println(m3.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nPRODUCT:\");\n\t\tSystem.out.println(m2.mult(m3));\n\t\t\n\t\t//Example of scalar multiplication\n\t\tSystem.out.println(\"Example of scalar multiplication using the following matrices with a scalar value of 2:\");\n\t\tSystem.out.println(m3.toString() + \"\\nSCALAR PRODUCT:\");\n\t\tSystem.out.println(m3.scalarMult(2));\n\t\t\n\t\t//Example of transpose \n\t\tSystem.out.println(\"Example of transpose using the following matrix:\");\n\t\tSystem.out.println(m.toString() + \"\\nTRANSPOSE:\");\n\t\tSystem.out.println(m.transpose());\n\t\t\n\t\t//Example of transpose \n\t\tSystem.out.println(\"Example of transpose using the following matrix:\");\n\t\tSystem.out.println(m4.toString() + \"\\nTRANSPOSE:\");\n\t\tSystem.out.println(m4.transpose());\n\t\t\n\t\t//Example of equality \n\t\tSystem.out.println(\"Example of equality using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m.toString() + \"\\nEQUALITY:\");\n\t\tSystem.out.println(m.equality(m));\n\t\t\n\t\t//Example of equality \n\t\tSystem.out.println(\"\\nExample of equality using the following matrices:\");\n\t\tSystem.out.println(m4.toString());\n\t\tSystem.out.println(m5.toString() + \"\\nEQUALITY:\");\n\t\tSystem.out.println(m4.equality(m5));\n\n\t}", "public Matrix P0 ();", "Matrix(Matrix first, Matrix second) {\n if (first.getColumns() == second.getRows()) {\n this.rows = first.getRows();\n this.columns = second.getColumns();\n matrix = new int[first.getRows()][second.getColumns()];\n for (int col = 0; col < this.getColumns(); col++) {\n int sum;\n int commonality = first.getColumns(); // number to handle summation loop\n for (int rw = 0; rw < this.getRows(); rw++) {\n sum = 0;\n // summation loop\n for (int x = 0; x < commonality; x++) {\n sum += first.getValue(rw, x) * second.getValue(x, col);\n }\n matrix[rw][col] = sum;\n }\n\n }\n } else {\n System.out.println(\"Matrices cannot be multiplied\");\n }\n }", "public void concat(Matrix matrix) {\n\t\t\n\t}", "@Test\n public void testGetMatrixColumn() {\n final Matrix33d m = getMatrix();\n final Vector3d expected = V2;\n final Vector3d v = new Vector3d();\n m.getMatrixColumn(v, 1);\n assertEquals(v.toString(), expected.toString());\n }", "public void nullifyMatrix(int[][] mat) {\r\n //extra space\r\n boolean rows[] = new boolean[mat[0].length];\r\n boolean columns[] = new boolean[mat.length];\r\n \r\n for (int i=0;i<mat.length ;i++ ) {\r\n for (int j=0; j<mat[0].length;j++ ) {\r\n if(mat[i][j] == 0) {\r\n rows[i] = true;\r\n columns[j] = true;\r\n }\r\n } \r\n }\r\n \r\n //Nullify rows\r\n for(int i=0; i<rows.length; i++) {\r\n if(rows[i])\r\n helperNullifyRow(mat, i);\r\n }\r\n //Nullify columns\r\n for(int i=0; i<columns.length; i++) {\r\n if(columns[i])\r\n helperNullifyColumn(mat,i);\r\n }\r\n printMat(mat);\r\n }", "public interface Matrix<T> {\n\n public void put(Integer x,Integer y,T element);\n public T get(Integer x, Integer y);\n}", "@Test\n public void testParseMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n Matrix data = reader.getMatrix();\n Matrix[] parsedMatrix = MatrixReader.parseMatrix(data, 10);\n assertEquals(parsedMatrix[0].get(4, 2), data.get(4, 2), 0.001);\n assertEquals(parsedMatrix[2].get(0, 0), data.get(32, 0), 0.001);\n assertEquals(parsedMatrix[1].get(0, 0), data.get(16, 0), 0.001);\n }", "public void matrizAdjunta (){\n float tablaA[][]= getMatriz();\n setMatrizAdjunta(new float[3][3]);\n getMatrizAdjunta()[0][0]=(tablaA[1][1]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][1]);\n getMatrizAdjunta()[0][1]=-((tablaA[0][1]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][1]));\n getMatrizAdjunta()[0][2]=(tablaA[0][1]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][1]);\n \n getMatrizAdjunta()[1][0]=-((tablaA[1][0]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][0]));\n getMatrizAdjunta()[1][2]=-((tablaA[0][0]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][0]));\n getMatrizAdjunta()[1][1]=(tablaA[0][0]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][0]);\n \n getMatrizAdjunta()[2][0]=(tablaA[1][0]*tablaA[2][1]) - (tablaA[1][1]*tablaA[2][0]);\n getMatrizAdjunta()[2][1]=-((tablaA[0][0]*tablaA[2][1]) - (tablaA[0][1]*tablaA[2][0]));\n getMatrizAdjunta()[2][2]=(tablaA[0][0]*tablaA[1][1]) - (tablaA[0][1]*tablaA[1][0]);\n mostrarMatriz(getMatrizAdjunta(),\"Matriz adjunta\");\n }", "Matrix mul(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] * m.data[i];\n }\n return matrix_to_return;\n }", "static void update(int[][] matrix){\n\t\tboolean rowFlag = false;\n\t\tboolean colFlag = false;\n\t\tint n = matrix.length;\n int m = matrix[0].length;\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n if(i==0 && matrix[i][j]==0){\n rowFlag =true;\n }\n if(j==0 && matrix[i][j]==0){\n colFlag = true;\n }\n if(matrix[i][j]==0){\n matrix[0][j] = 0;\n matrix[i][0] = 0;\n }\n }\n }\n for(int i=1;i<n;i++){\n for(int j=1;j<m;j++){\n if(matrix[i][0]==0||matrix[0][j]==0){\n matrix[i][j]=0;\n }\n }\n }\n if(rowFlag){\n for(int i=0;i<m;i++){\n matrix[0][i] =0 ;\n }\n }\n if(colFlag){\n for(int j=0;j<n;j++){\n matrix[j][0] = 0;\n }\n }\n\n\t}", "public static void main( String[] args ) {\n\tMatrix first = new Matrix();\n\tSystem.out.println(first);\n\tSystem.out.println(first.size());\n\tfirst.set(1,1,5);\n\tSystem.out.println(first.get(1,1)); //5\n\tSystem.out.println(first.isEmpty(1,1)); //false\n\tSystem.out.println(first.isEmpty(0,0)); //true\n\tSystem.out.println();\n\n\tMatrix second = new Matrix(2);\n\tSystem.out.println(second);\n\tSystem.out.println(second.size());\n\tsecond.set(1,1,5);\n\tSystem.out.println(second.get(1,1)); //5\n\tSystem.out.println(second.isEmpty(1,1)); //false\n\tSystem.out.println(second.isEmpty(0,0)); //true\n\tSystem.out.println();\n\n\tSystem.out.println(first.equals(second)); //true\n\n\tfirst.swapColumns(0,1);\n\tSystem.out.println(first);\n\tfirst.swapRows(0,1);\n\tSystem.out.println(first);\n\n\tSystem.out.println(first.isFull()); //false\n\t/*\n\t//System.out.println(first.getRow(0));\n\tSystem.out.println(first.setRow(0,first.getCol(0)));\n\tSystem.out.println(first);\n\t//System.out.println(first.getRow(0));\n\tSystem.out.println(first.setCol(0,first.getRow(0)));\n\tSystem.out.println(first);\n\t//System.out.println(first.getCol(0));\n\t*/\n\tfirst.set(1,0,6);\n\tfirst.set(1,1,7);\n\tfirst.set(0,1,8);\n\tSystem.out.println(first);\n\tfirst.transpose();\n\tSystem.out.println(first);\n\tSystem.out.println(first.contains(6)); //true\n\n }", "float[] getViewMatrix();", "public String toString() {\n\tString retStr = \"\";\n\tfor (int r = 0; r < this.size(); r++){\n\t for (int c = 0; c < this.size(); c++){\n\t\tretStr += matrix[r][c] + \"\\t\";\n\t }\n\t retStr += \"\\n\";\n\t}\n\treturn retStr;\n }", "protected abstract Matrix generateNewColorMatrix(Matrix rgb) throws IllegalArgumentException;", "private boolean isMatrix(String s) {\n\t\treturn (s.equals(\"A\") || s.equals(\"B\"));\n\t}", "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 Matrix(double[][] matrix) {\r\n this.matrix = matrix;\r\n }", "int getSize(){\n return this.matrixSize;\n }", "@Override\n\tpublic void setMatrix(int n) {\n\t\tthis.baris = DeretAngka.getLastTriAngluar(n);\n\t\tthis.kolom = n*n;\n\t\tthis.matrix = new String[this.baris][this.kolom];\n\t\t//int[] bil1 = {1,2,3,4};\n\t\t//int[] bil2 = {1,3,5,7};\n\t\t//int[] bil3 = {0,1,2,3};\n\t\tint[] bil4 = DeretAngka.getTriAngluar(n);//{0,1,3,6};\n\t\tint[] bil5 = DeretAngka.getPangkat(n);//{0,1,4,9};\n\t\tint addBangun = 1;\n\t\tint addGanjil = 1;\n\t\tfor(int bangun =0; bangun < n; bangun++) {\n\t\t\t//int pangkat = bangun * bangun; //0*0,1*1,2*2,3*3\n\t\t\tfor (int i = 0; i < addBangun; i++) {\n\t\t\t\tfor (int j = 0; j < addGanjil; j++) {\n\t\t\t\t\tif(i+j >= bangun && j - i <= bangun) {\n\t\t\t\t\t\tthis.matrix[i + bil4[bangun]][j+bil5[bangun]] = \"*\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\taddBangun = addBangun + 1;\n\t\t\taddGanjil = addGanjil + 2;\n\t\t}\n\t\t\n\t\t\n//\t\tfor (int i = 0; i < bil1[0]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[0]; j++) {\n//\t\t\t\tif(i+j >= 0 && j - i <= 0) {\n//\t\t\t\t\tthis.matrix[i+0][j+0] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n//\t\tfor (int i = 0; i < bil1[1]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[1]; j++) {\n//\t\t\t\tif(i+j >= 1 && j - i <= 1) {\n//\t\t\t\t\tthis.matrix[i+1][j+1] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n//\t\tfor (int i = 0; i < bil1[2]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[2]; j++) {\n//\t\t\t\tif(i+j >= 2 && j - i <= 2) {\n//\t\t\t\t\tthis.matrix[i+3][j+4] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n\t\t\n\t}", "Matrix transpose(){\n int newMatrixSize = this.getSize();\n Matrix newM = new Matrix(newMatrixSize);\n for(int i = 1; i <= newMatrixSize; i++){\n List itRow = rows[i - 1];\n // if(!itRow[i].isEmpty()){\n itRow.moveFront();\n // itRow[i].moveFront();\n while(itRow.index() != -1){\n Entry c = (Entry)itRow.get();\n newM.changeEntry(c.column, i, c.value);\n itRow.moveNext();\n }\n }\n return newM;\n }", "public Matrix() {\n\tmatrix = new Object[DEFAULT_SIZE][DEFAULT_SIZE];\n }", "public static void testMulRecStrassen() {\n\n try {\n\n Matrix m1 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m2 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m3 = Matrix.strassen(m1, m2);\n\n System.out.println(m3);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public interface IMatrixMultiplicator {\n\n\t/**\n\t * Multiplies two matrixes and returns the result in a new matrix \n\t * \n\t * @param matrixA first matrix\n\t * @param matrixB second matrix \n\t * @return result of the multiplication\n\t */\n\tpublic long multiplyMatrix(final Matrix matrixA, final Matrix matrixB, final Matrix res);\n\t \n\t\n}", "@Test\n public void testSetMatrixColumn() {\n final Matrix33d mBase = getMatrix();\n final Matrix33d m = getMatrix();\n final Vector3d v = new Vector3d(D10, D11, D12);\n\n m.setMatrixColumn(v, 1);\n for (int i = 0; i < m.getA().length; i++) {\n if (i > 2 && i < 6) {\n // compare the row set to the vector values\n int vectorIndex = i - 3;\n assertEquals(m.getA()[i], v.a[vectorIndex]);\n } else {\n assertEquals(m.getA()[i], mBase.getA()[i]);\n }\n }\n }", "public org.apache.spark.mllib.linalg.Matrix toLocalMatrix () { throw new RuntimeException(); }", "public void ConceptosMatrices() {\n int[][] maX={{5,6,6},\n {5,6,2},\n {5,12,2},\n {5,6,2}};\n //Obtener el tamaño de la fila de la matriz maX\n System.out.println(\"Tamaño en fila matriz maX=\"+maX.length);\n //Obtener el tamaño de la columna de la matriz maX\n System.out.println(\"Tamaño en fila matriz maX=\"+maX[0].length);\n System.out.println(\"Mostrar el valor 12 de la matriz maX=\"+maX[2][1]);\n //Cambiar el elemento 12 de la matriz maX por 16\n maX[2][1]=16;\n Scanner sc=new Scanner(System.in);\n System.out.println(\"Ingrese un valor en los indices 2,2\");\n maX[2][2]=sc.nextInt();\n \n System.out.println(\"Defina el indice para fila:\");\n int iFx=sc.nextInt(); \n int iCx=sc.nextInt(); \n System.out.println(\"Ingrese un valor en los indices \"+iFx+\", \"+iCx+\":\");\n maX[iFx][iCx]=sc.nextInt(); \n \n imprimirMatriz(maX);\n \n //defenir matrices sin dimensiones\n int[][] matrizN;\n //definiendo dimensiones a una matriz\n System.out.println(\"Ingrese la dimension en fila para la MatrizN=\");\n int inFi=sc.nextInt();\n System.out.println(\"Ingrese la dimension en columna para la MatrizN=\");\n int inCo=sc.nextInt();\n matrizN=new int[inFi][inCo]; \n int vi=0;\n //Rellenando una matriz con una serie de numeros\n for (int f = 0; f < matrizN.length; f++) {\n for (int c = 0; c < matrizN[0].length; c++) {\n System.out.println(\"Ingrese un valor en matrizN[\"+f+\"][\"+c+\"]:=\");\n matrizN[f][c]=sc.nextInt();\n vi=vi+2;\n } \n } \n System.out.println(\"la nueva matrizN es de: \"+matrizN.length+\"x\"+matrizN[0].length);\n imprimirMatriz(matrizN); \n\n }", "MatrixParameter createMatrixParameter();", "Matriz evaluar(Matriz A);", "public static String[] MatrixSolve(Matrix M){\n String[] retArray = new String[M.kol];\n for (int i=1; i<M.kol; i++) {\n retArray[i] = Character.toString((char) (i + 96));\n }\n for (int i=M.bar; i>=1; i--) {\n if (!M.IsRowCoefZero(i)) {\n if (M.OnlyLeadingOne(i)) {\n //Hanya ada leading one pada baris ke-i\n retArray[M.PosLeadingElmt(i)] = Double.toString(M.Elmt(i,M.kol));\n }else{\n //Ada elemen non-0 setelah leading one pada baris ke-i\n double resDouble = M.Elmt(i,M.kol);\n String resString = \"\";\n for (int j=M.PosLeadingElmt(i)+1; j<M.kol; j++) {\n if (M.Elmt(i,j) != 0) {\n //Kondisi elemen M ke i,j bukan 0\n try {\n //Jika hasil ke-x merupakan bilangan, maka jumlahkan dengan elemen hasil\n if (retArray[j].contains(\"d\")) {\n throw new NumberFormatException(\"contains d\");\n }\n resDouble += (-1)*M.Elmt(i,j)*Double.valueOf(retArray[j]);\n } catch(NumberFormatException e) {\n //Jika hasil ke-x bukan bilangan, sambungkan koefisien dengan parameter yang sesuai\n resString += ConCoefParam((-1)*M.Elmt(i,j),retArray[j]);\n }\n }\n }\n //Gabungkan bilangan hasil dengan parameter\n if (resDouble != 0) {\n retArray[M.PosLeadingElmt(i)] = String.format(\"%.3f\",resDouble) + resString;\n }else if (resDouble == 0 && resString == \"\"){\n retArray[M.PosLeadingElmt(i)] = String.format(\"%.3f\",resDouble);\n }else{\n retArray[M.PosLeadingElmt(i)] = resString;\n }\n\n if (retArray[M.PosLeadingElmt(i)].startsWith(\"+\")){\n retArray[M.PosLeadingElmt(i)] = retArray[M.PosLeadingElmt(i)].substring(1);\n }\n }\n }\n }\n return retArray;\n}", "public Matrix asMatrix() {\n Matrix result;\n try {\n result = new Matrix(COMPONENTS, 1);\n asMatrix(result);\n } catch (final WrongSizeException ignore) {\n // never happens\n result = null;\n }\n return result;\n }", "@Test\n public void testIdentity() {\n final double junk[] = new double[Matrix33d.LENGTH];\n for (int i = 0; i < Matrix33d.LENGTH; i++) {\n junk[i] = 1089.1451D;\n }\n final Matrix33d m = new Matrix33d();\n m.setA(junk);\n\n m.identity();\n final double a[] = m.getA();\n for (int i = 0; i < a.length; i++) {\n if (i == 0 || i == 4 || i == 8) {\n assertEquals(a[i], 1D);\n } else {\n assertEquals(a[i], 0D);\n }\n }\n }", "float[] getModelMatrix();", "Matrix<T> getTransposed();", "public Matrix33() {\r\n // empty\r\n }", "private int matrixRowToGridVal(int i) \n {\n return i % gDim + 1;\n }", "@Test\n public void testMatrixCreation() throws Exception {\n\n testUtilities_3.createAndTestMatrix(false);\n\n }", "private void imprimirMatriz(int[][] m) {\n\n\t\tSystem.out.println(\"-------------------------------------------\");\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tSystem.out.println(\"M[\" + i + \"][\" + j + \"] = \" + m[i][j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"-------------------------------------------\");\n\t}", "@Override\n public String toString() {\n StringBuilder matrixValues = new StringBuilder(\"\\nMatrix : \"\n + values.length + \"x\" + values[0].length + \"\\n\");\n for (int[] row : values) {\n for (int value : row) {\n matrixValues.append(value + \" \");\n }\n matrixValues.append(\"\\n\");\n }\n return matrixValues.toString();\n }", "public Estados[][] getMatrix() {\n return matrix;\n }", "private void buildMatrix() {\n\n int totalnumber=this.patents.size()*this.patents.size();\n\n\n\n int currentnumber=0;\n\n\n for(int i=0;i<this.patents.size();i++) {\n ArrayList<Double> temp_a=new ArrayList<>();\n for (int j=0;j<this.patents.size();j++) {\n if (i==j) temp_a.add(0.0); else if (i<j)\n {\n double temp = distance.distance(this.patents.get(i), this.patents.get(j));\n temp = (new BigDecimal(temp).setScale(2, RoundingMode.UP)).doubleValue();\n temp_a.add(temp);\n\n\n // simMatrix.get(i).set(j, temp);\n // simMatrix.get(j).set(i, temp);\n } else {\n temp_a.add(simMatrix.get(j).get(i));\n }\n currentnumber++;\n System.out.print(\"\\r\"+ProgressBar.barString((int)((currentnumber*100/totalnumber)))+\" \"+currentnumber);\n\n }\n simMatrix.add(temp_a);\n }\n System.out.println();\n\n }", "static Matrix vectorize(Matrix input) {\n int m = input.getRowDimension();\n int n = input.getColumnDimension();\n\n Matrix result = new Matrix(m * n, 1);\n for (int p = 0; p < n; p++) {\n for (int q = 0; q < m; q++) {\n result.set(p * m + q, 0, input.get(q, p));\n }\n }\n return result;\n }", "public Matrix(int[][] array){\n this.matriz = array;\n }", "public Matrix(int[][] array)\n {\n matrix = array;\n }", "Matrix sumRows(){\n Matrix matrix_to_return = new Matrix(1, this.cols);\n double[][] tmp = this.asArray();\n int k=0;\n for(int i=0; i<this.cols; i++){\n for(int j=0; j<this.rows; j++) {\n matrix_to_return.data[k] += tmp[j][i];\n }\n k++;\n }\n return matrix_to_return;\n }", "void fillMatrixFromQuaternion(DoubleBuffer matrix, double m_x, double m_y, double m_z, double m_w)\n\t{\t\t\n\t\t// First row\n\t\tmatrix.put(1.0 - 2.0 * ( m_y * m_y + m_z * m_z ));\n\t\tmatrix.put(2.0 * (m_x * m_y + m_z * m_w));\n\t\tmatrix.put(2.0 * (m_x * m_z - m_y * m_w));\n\t\tmatrix.put(0.0);\n\t\t\n\t\t// Second row\n\t\tmatrix.put(2.0 * ( m_x * m_y - m_z * m_w ));\n\t\tmatrix.put(1.0 - 2.0 * ( m_x * m_x + m_z * m_z ));\n\t\tmatrix.put(2.0 * (m_z * m_y + m_x * m_w ));\n\t\tmatrix.put(0.0);\n\n\t\t// Third row\n\t\tmatrix.put(2.0 * ( m_x * m_z + m_y * m_w ));\n\t\tmatrix.put(2.0 * ( m_y * m_z - m_x * m_w ));\n\t\tmatrix.put(1.0 - 2.0 * ( m_x * m_x + m_y * m_y ));\n\t\tmatrix.put(0.0);\n\n\t\t// Fourth row\n\t\tmatrix.put(0.0);\n\t\tmatrix.put(0.0);\n\t\tmatrix.put(0.0);\n\t\tmatrix.put(1.0);\n\t\t\n\t\tmatrix.flip();\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint [][] matrix={\r\n\t\t\t\t{10,15,2,76,-9},\r\n\t\t\t\t{85,-22,4,35,99},\r\n\t\t\t\t{64,68,31,7,-3},\r\n\t\t\t\t{1,53,94,33,8}\r\n\t\t};\r\n\t\t\r\n\t\tfor(int[] fila:matrix){\r\n\t\t\tSystem.out.println();//le da salto de linea cuando termina cada fila\r\n\t\t\tfor (int z:fila){\r\n\t\t\t\tSystem.out.print(z + \" \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*int [][] matrix= new int[4][5];//primera dimension, segunda dimension\r\n\t\t\r\n\t\tmatrix [0][0]=5;\r\n\t\tmatrix [0][1]=18;\r\n\t\tmatrix [0][2]=29;\r\n\t\tmatrix [0][3]=80;\r\n\t\tmatrix [0][4]=3;\r\n\t\t\r\n\t\tmatrix [1][0]=-9;\r\n\t\tmatrix [1][1]=71;\r\n\t\tmatrix [1][2]=32;\r\n\t\tmatrix [1][3]=-24;\r\n\t\tmatrix [1][4]=62;\r\n\t\t\r\n\t\tmatrix [2][0]=54;\r\n\t\tmatrix [2][1]=22;\r\n\t\tmatrix [2][2]=-39;\r\n\t\tmatrix [2][3]=1;\r\n\t\tmatrix [2][4]=97;\r\n\t\t\r\n\t\tmatrix [3][0]=74;\r\n\t\tmatrix [3][1]=43;\r\n\t\tmatrix [3][2]=39;\r\n\t\tmatrix [3][3]=96;\r\n\t\tmatrix [3][4]=-63;\r\n\r\n\t\tfor (int i=0; i<4; i++){\r\n\t\t\tSystem.out.println();\r\n\t\t\tfor (int j=0; j<5; j++){\r\n\t\t\t\tSystem.out.print(matrix[i][j] + \" \");\r\n\t\t\t}\r\n\t\t}*/\r\n\t}", "public String toString(){\n StringBuffer returnString = new StringBuffer();\n for(int i = 0; i < this.matrixSize; i++){\n if(rows[i].length() != 0){\n returnString.append((i+1) + \":\" + rows[i]+ \"\\n\");\n }\n }\n return returnString.toString();\n }", "public int[][] turfu() {\r\n\t\tint[][] tab = new int[matrice[0].length][matrice.length]; \r\n\t\tint n =0; \r\n\t\tfor(int i=0; i<tab.length; i++) {\r\n\t\t\tfor(int j=0; j< tab[0].length; j++) {\r\n\t\t\t\ttab[i][j] = matrice[j][n]; \r\n\t\t\t}\r\n\t\t\tn++;\r\n\t\t}\r\n\t\treturn tab; \r\n\t}", "public static void main(String[] args) {\n int cols1, cols2, rows1, rows2, num_usu1, num_usu2;\r\n \r\n try{\r\n \r\n cols1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de colunas para a primeira matriz:\"));\r\n rows1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de linhas para a primeira matriz:\"));\r\n cols2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de colunas para a segunda matriz:\"));\r\n rows2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de linhas para a segunda matriz:\"));\r\n \r\n int[][] matriz1 = MatrixInt.newRandomMatrix(cols1, rows1);\r\n int[][] matriz2 = MatrixInt.newSequentialMatrix(cols2, rows2);\r\n \r\n System.out.println(\"Primeira matriz:\");\r\n MatrixInt.imprimir(matriz1);\r\n System.out.println(\" \");\r\n System.out.println(\"Segunda matriz:\");\r\n MatrixInt.imprimir(matriz2);\r\n System.out.println(\" \");\r\n \r\n MatrixInt.revert(matriz2);\r\n \r\n System.out.println(\"Matriz sequancial invertida:\");\r\n MatrixInt.imprimir(matriz2);\r\n \r\n System.out.println(\" \");\r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria:\");\r\n MatrixInt.imprimir(matriz1);\r\n System.out.println(\" \");\r\n \r\n num_usu1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe um numero qualquer:\"));\r\n \r\n for1: for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n if(num_usu1 == matriz1[i][j]){\r\n System.out.println(\"O numero '\"+num_usu1+\"' foi encontardo na posição:\" + i);\r\n break for1;\r\n }else if(j == (matriz1[i].length - 1) && i == (matriz1.length - 1)){\r\n System.out.println(\"Não foi encontrado o numero '\"+num_usu1+\"' no vetor aleatorio.\");\r\n break for1;\r\n } \r\n }\r\n }\r\n \r\n String menores = \"\", maiores = \"\";\r\n for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n if(num_usu1 > matriz1[i][j]){\r\n menores = menores + matriz1[i][j] + \", \";\r\n }else if(num_usu1 < matriz1[i][j]){\r\n maiores = maiores + matriz1[i][j] + \", \";\r\n }\r\n }\r\n }\r\n System.out.println(\" \");\r\n System.out.print(\"Numeros menores que '\"+num_usu1+\"' :\");\r\n System.out.println(menores);\r\n System.out.print(\"Numeros maiores que '\"+num_usu1+\"' :\");\r\n System.out.println(maiores);\r\n \r\n num_usu2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe um numero que exista na matriz aleatoria:\"));\r\n \r\n int trocas = MatrixInt.replace(matriz1, num_usu2, num_usu1);\r\n \r\n if (trocas == 0) {\r\n System.out.println(\" \");\r\n System.out.println(\"Não foi realizada nenhuma troca de valores.\");\r\n }else{\r\n System.out.println(\" \");\r\n System.out.println(\"O numero de trocas realizadas foi: \"+trocas);\r\n }\r\n \r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria:\");\r\n MatrixInt.imprimir(matriz1);\r\n \r\n int soma_total = 0;\r\n for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n soma_total += matriz1[i][j];\r\n }\r\n \r\n }\r\n System.out.println(\" \");\r\n System.out.println(\"A soma dos numeros da matriz foi: \" + soma_total);\r\n \r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria\");\r\n Exercicio2.imprimir(matriz1);\r\n System.out.println(\" \");\r\n System.out.println(\"Matriz sequencial\");\r\n Exercicio2.imprimir2(matriz2);\r\n \r\n }catch(Exception e){\r\n System.out.println(e);\r\n }\r\n \r\n \r\n \r\n }", "public SimpleMatrix( Matrix orig ) {\n Matrix mat;\n if (orig instanceof DMatrixRBlock) {\n DMatrixRMaj a = new DMatrixRMaj(orig.getNumRows(), orig.getNumCols());\n DConvertMatrixStruct.convert((DMatrixRBlock)orig, a);\n mat = a;\n } else if (orig instanceof FMatrixRBlock) {\n FMatrixRMaj a = new FMatrixRMaj(orig.getNumRows(), orig.getNumCols());\n FConvertMatrixStruct.convert((FMatrixRBlock)orig, a);\n mat = a;\n } else {\n mat = orig.copy();\n }\n setMatrix(mat);\n }", "private static ArrayList<ArrayList<Integer>> transposeMatrix(ArrayList<ArrayList<Integer>> matrix){\r\n\t\tint numRows = matrix.size();\r\n\t\tint numCols = matrix.get(0).size();\r\n\t\tArrayList<ArrayList<Integer>> newMat = new ArrayList<ArrayList<Integer>>();\r\n\t\t//Put this in second for-loop to not have to loop twice?\r\n\t\tfor(int i = 0; i < numCols; i++) newMat.add(new ArrayList<Integer>());\r\n\t\tfor(int i = 0; i < numRows; i++){\r\n\t\t\tfor (int j = 0; j < numCols; j++){\r\n\t\t\t\tnewMat.get(j).add(matrix.get(i).get(j));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn newMat;\r\n\t}", "public E[][] getMatrix() {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tE[][] matrix = (E[][]) new Object[mColumnCount][mRowCount];\r\n\t\tfor(int i=0; i<mColumnCount; i++)\r\n\t\t\tfor(int j=0; j<mRowCount; j++)\r\n\t\t\t\tmatrix[i][j] = getFromArray(i, j);\r\n\t\treturn matrix;\r\n\t}", "private void getProperBaseMatrix(Matrix matrix) \r\n {\r\n \tif(mViewWidth == 0)\r\n \t\treturn;\r\n \t\r\n \tfloat w = mRoBitmap.getWidth();\r\n \tfloat h = mRoBitmap.getHeight();\r\n \t\r\n matrix.reset();\r\n // We limit up-scaling to 3x otherwise the result may look bad if it's\r\n // a small icon.\r\n float widthScale = (float)((float)mViewWidth / w);//Math.min((float)((float)mViewWidth / w), 3.0f);\r\n float heightScale = (float)((float)mViewHeight / h);//Math.min((float)((float)mViewHeight / h), 3.0f);\r\n float scale = Math.max(widthScale, heightScale);\r\n \r\n matrix.postConcat(mRoBitmap.getRotateMatrix());\r\n matrix.postScale(scale, scale);\r\n\r\n matrix.postTranslate(\r\n (mViewWidth - w * scale) / 2F,\r\n (mViewHeight - h * scale) / 2F);\r\n }", "private int matrixRowToGridRow(int i) \n {\n return i / dimSquared + 1;\n }", "public interface IMatrix extends IArray<IMatrix>{\n\n IVector getRow(int index);\n\n IVector getColumn(int index);\n\n// IMatrix addi(IMatrix mat);\n\n// IMatrix subi(IMatrix mat);\n\n double[][] asDouble();\n\n float[][] asFloat();\n\n IMatrix subiColumn(int index, IVector vec);\n\n// IMatrix dup();\n\n IMatrix putiRow(int index, IVector vec);\n\n int rows();\n\n int columns();\n}", "public boolean checkmatorder()\n\t{\n\t\torderflag=false;\n\t\tif(height<width)\n\t\t{\n\t\t\tmatrix=new double[height][width];\n\t\t\torderflag=true;\n\t\t}\n\t\telse if(height>=width)\n\t\t{\n\t\t\tmatrix=new double[width][height];\n\t\t}\t\n\t\treturn orderflag;\n\t}", "private boolean isMatrix(Object o) {\n\t\tif(o instanceof String) return isMatrix((String) o);\n\t\telse if(o instanceof Matrix) return true;\n\t\telse return false;\n\t}", "float[] getMVPMatrix();", "Matrix(double[][] input) {\n matrixVar = input;\n columns = matrixVar[0].length;\n rows = matrixVar.length;\n }", "public int[][] generateMatrix(int n) {\n\t \n\t int matrix[][] = new int[n][n];\n\t int count = n * n +1;\n int topRow = 0;\n int bottomRow = n-1;\n int leftmostColumn = 0;\n int rightmostColumn = n -1;\n int added = 0;\n\t \n\t \n\t while(leftmostColumn <= rightmostColumn && topRow<= bottomRow && added <= count){\n \n \n \tif(added != count){\n for(int i = leftmostColumn; i <= rightmostColumn;i++){\n \t matrix[topRow][i] = added +1;\n // #arrList.add(matrix[topRow][i]);\n added = added+1;\n /* if(added == count)\n \tbreak;*/\n }\n topRow = topRow +1;\n \t}\n \n \n \tif(added != count){\t\n for(int j = topRow; j <= bottomRow;j++){\n //arrList.add(matrix[j][rightmostColumn]);\n \t matrix[j][rightmostColumn] = added+1;\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n rightmostColumn = rightmostColumn -1;\n \t} \n \t\n \t\n \tif(added != count){\t\n for(int k = rightmostColumn; k >= leftmostColumn; k--){\n \t matrix[bottomRow][k] = added +1;\n //arrList.add(matrix[bottomRow][k]);\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n bottomRow = bottomRow -1;\n \t}\n \t\n \t\n \tif(added != count){\t\n for(int l = bottomRow; l >= topRow ;l--){\n // arrList.add(matrix[l][leftmostColumn]);\n \t matrix[l][leftmostColumn] = added +1;\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n leftmostColumn = leftmostColumn +1;\n \t}\n \n }\n\t \n\t return matrix;\n \n}", "public char[][] getMatrixForm( String aColor )\r\n{\r\n\tchar c = constructionCharacter; // for brevity\r\n\r\n\t// Fill in the actual big letter. line by line\t\r\n\tmatrix[0][0] = c; matrix[0][1] = c; matrix[0][2] = c; \r\n\tmatrix[1][0] = c; matrix[1][4] = c;\r\n\tmatrix[2][0] = c; matrix[2][4] = c;\r\n\tmatrix[3][0] = c; matrix[3][1] = c;\r\n\tmatrix[4][0] = c; matrix[4][4] = c;\r\n\tmatrix[5][0] = c; matrix[5][4] = c;\r\n\tmatrix[6][0] = c; matrix[6][1] = c; matrix[6][2] = c; \r\n\t\r\n\t// Superimpose the color characters across the middle\t\r\n\tmatrix[3][0] = '-'; // required to precede the color characters as in \"-red\"\r\n\tfor( int i = 1; i < BigChar.MATRIX_WIDTH; ++i ) // go all the way across \r\n\t\tif( i <= aColor.length() ) // there is a color character to pick up\t\r\n\t\t\tmatrix[ 3 ][ i ] = aColor.charAt( i -1 ); // fill in the next color character\r\n\t\telse\r\n\t\t\tmatrix[ 3 ][ i ] = ' '; // pad on right with blanks\r\n\t\r\n\treturn matrix; \r\n}", "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}", "public ArrayList<ArrayList<T>> getMatrix() {\n\t\treturn matrix;\n\t}", "public int[][] MatrizPesos(){\n return this.mat;\n }", "public static void generatetripletmatrix() {\n\t\tresultMatrix = new int[3][numNonZero];\n\n\t // Generating result matrix\n\t int k = 0;\n\t for (int ro = 0; ro < row; ro++) {\n\t for (int column = 0; column < 6; column++) {\n\t if (matrix[ro][column] != 0)\n\t {\n\t resultMatrix[0][k] = ro;\n\t resultMatrix[1][k] = column;\n\t resultMatrix[2][k] = matrix[ro][column];\n\t k++;\n\t }\n\t }\n\t }\n\t \n\t}", "void update() {\n matrix();\n }", "private int matrixRowToGridCol(int i) \n {\n return (i % dimSquared) / gDim + 1;\n }" ]
[ "0.67400867", "0.6726123", "0.6489022", "0.6464256", "0.6404917", "0.63635427", "0.63492924", "0.6233953", "0.6195012", "0.6189188", "0.61866647", "0.6185937", "0.6177345", "0.6154837", "0.6124182", "0.608492", "0.6079708", "0.60273194", "0.60072494", "0.60058284", "0.59827036", "0.5977118", "0.5952282", "0.59514445", "0.5950858", "0.5931915", "0.59129995", "0.5896905", "0.5891949", "0.58907115", "0.5886188", "0.5884331", "0.5881528", "0.5878586", "0.5877942", "0.5874401", "0.58720756", "0.5865664", "0.585828", "0.5855728", "0.5848411", "0.58482635", "0.58222246", "0.58160424", "0.5813942", "0.5808217", "0.578457", "0.57837635", "0.5781994", "0.57797146", "0.5769895", "0.5769786", "0.57667977", "0.5765559", "0.57634974", "0.5760533", "0.57569546", "0.57561845", "0.57429254", "0.5734974", "0.57297313", "0.57292634", "0.5715815", "0.5713963", "0.5713313", "0.570798", "0.5706635", "0.5696791", "0.5684003", "0.5673557", "0.56674445", "0.5665841", "0.5664608", "0.5664194", "0.56618726", "0.56605697", "0.5659769", "0.565253", "0.5646456", "0.56425464", "0.5630521", "0.5628429", "0.5627822", "0.56202686", "0.5617396", "0.5616903", "0.5616161", "0.56150854", "0.5610397", "0.5608537", "0.56018186", "0.55920714", "0.558478", "0.558303", "0.5573623", "0.5571991", "0.5568199", "0.55655974", "0.55587775", "0.55560815", "0.55520684" ]
0.0
-1
calculates F^n in O(log n) time using exponentiation by squaring
public static long[][] power(long F[][], long n){ if(n == 0){ return new long[][]{{1,1},{1,0}}; } if(n == 1){ return F; } if(n % 2 == 0){ return power(multiply(F,F), n/2); }else{ return multiply(F, power(multiply(F,F), (n-1)/2)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static float powerOfTwoF(int n) {\n return Float.intBitsToFloat(((n + FloatConsts.MAX_EXPONENT) <<\n (FloatConsts.SIGNIFICAND_WIDTH-1))\n & FloatConsts.EXP_BIT_MASK);\n }", "static void power(BigInteger F[][], int n) \n\t { \n\t if( n == 0 || n == 1) \n\t return; \n\t \t \n\t power(F, n/2); \n\t multiply(F, F); \n\t \n\t if (n%2 != 0) \n\t multiply(F, M); \n\t }", "int main(){\n int n, f = 1;\n cin>>n;\n for(int i = 1;i <= n;i++)\n f*=i;\n cout<<f;\n}", "int main(){\n int f =1,n,i;\n cin>>n;\n for(i=2;i<=n;i++)\n f *= i;\n cout<<f;\n return 0;\n \n}", "public static int f5(int N) { \n int x = 0;\n // log(n)\n for(int i = N; i > 0; i = i/2)\n // O(n) + O(n/2) + O(n/4)\n x += f1(i);\n \n return x; \n \n }", "public int pow (int x, int n) {\n\tif (n == 0)\n\t\treturn 1;\n\tif (n == 1)\n\t\treturn x;\n\tint t = pow (x, n/2);\n\tt *= t;\n\tif (n % 2 == 1)\n\t\tt *= x;\n\treturn t;\n}", "public double pow(double x, int n) {\n\n double result = 1.0;\n if (n == 0) {\n return result;\n }\n\n boolean neg = false;\n if (n < 0) {\n neg = true;\n n = -n;\n }\n\n while (n > 0) {\n if ((n % 2) == 1) {\n result *= x;\n }\n n = n / 2;\n x = x * x;\n }\n return neg ? 1.0 / result : result;\n }", "public static double power(double a, int n) {\n\t double result=1;\n\t for(int i=0;i<n;i++) {\n\t result=result*a;\n\t }\n\t return result;\n\t }", "public static BigInteger fact(int n) {\n\t\t\t if (! fact_cache.containsKey(n)) {\n\t\t\t BigInteger f = BI1;\n\t\t\t for (int i=1; i < n-1; i++) {\n\t\t\t f = f.multiply(oddprod(BI3, BI2.pow(i+1).subtract(BI1)));\n\t\t\t }\n\t\t\t f = bigpow(BI2, BI2.pow(n).subtract(BI1)).multiply(f);\n\t\t\t fact_cache.put(n, f);\n\t\t\t }\n\t\t\t return fact_cache.get(n);\n\t\t\t }", "private static double fact(int n) {\n\t\tdouble sum = 1;\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tsum *= i;\n\t\t}\n\t\treturn sum;\n\t}", "public static long fact(int n) {\n if (n <= 0) return 1;\n long f = 1;\n for (int i = 1; i <= n; i++) {\n f *= i;\n }\n return f;\n }", "public static long longFastFib(int n) {\n\t\tlong a = 1;\n\t\tlong b = 0;\n\t\t\n\t\tlong temp = 0;\n\t\tfor(int i=0; i<n-1; i++){\n\t\t\ttemp = a;\n\t\t\ta += b;\n\t\t\tb = temp;\n\t\t\tif(a<0){\n\t\t\t\tSystem.out.println(\"Int overflow\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n return a; \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n \n }", "public double pow(double x, int n) {\n if (n == Integer.MIN_VALUE) {\n return 0.0; // Cannot use -n to make it positive, so n%2 is -1 at first, then the result is 1. \n }\n \n if (n < 0) {\n return 1 / powHelper(x, -n); \n } else {\n return powHelper(x, n); \n }\n }", "public static double pow(double x, int n) {\n\t\treturn powLong(x,n);\n }", "private static int fact(int n) {\n\t\tint prod = 1;\n\t\tfor (int i = 1; i <= n; prod *= i++)\n\t\t\t;\n\t\treturn prod;\n\t}", "public static int f7(int N) { \n if (N == 1) \n return 0;\n return 1 + f7(N/2);\n }", "public static long[][] powerMod(long F[][], long n){\n if(n == 0){\n return new long[][]{{1,1},{1,0}};\n }\n if(n == 1){\n return F;\n }\n if(n % 2 == 0){\n return powerMod(multiplyMod(F,F), n/2);\n }else{\n return multiplyMod(F, powerMod(multiplyMod(F,F), (n-1)/2));\n }\n }", "public int calcularFatorial(int n) throws IllegalArgumentException {\n\t\tif(n<0) \n\t\t\tthrow new IllegalArgumentException(\"não existe fatorial para numeros negativo\");\n\t\tint resultado = 1;\n\t\tif (n!=0) {\n\t \tfor(int i = 2 ;i<=n;i++)\n\t \t resultado*=i;\n\t\t}\n\t\n\t\treturn resultado;\n\n\t}", "public double myPow(double x, int n) {\n // write your code here\n boolean neg = false;\n if (n < 0) {\n x = 1 / x;\n n = - (n + 1);\n neg = true;\n }\n\n double ans = 1, base = x;\n while (n > 0) {\n if (n % 2 == 1) {\n ans *= base;\n }\n base *= base;\n n /= 2;\n }\n\n if (neg) ans *= x;\n return ans;\n }", "static BigInteger fact(int n)\n {\n BigInteger res = BigInteger.ONE;\n for (int i = 2; i <= n; i++)\n res = res.multiply(BigInteger.valueOf(i));\n return res;\n }", "public double f(double x) {\r\n\t\treturn this._coefficient*Math.pow(x, this._power);\r\n\t}", "public static double factorial(long n){\n\tdouble fac = 1;\n\tif(n <= 0) return fac;\n\tfor (int i=1; i<=n; i++) fac *= i;\n\treturn fac;\n }", "static double powerOfTwoD(int n) {\n return Double.longBitsToDouble((((long)n + (long)DoubleConsts.MAX_EXPONENT) <<\n (DoubleConsts.SIGNIFICAND_WIDTH-1))\n & DoubleConsts.EXP_BIT_MASK);\n }", "public static double power2(double x, int n) {\n if (n == 0)\n return 1;\n else {\n double partial = power2(x, n / 2); // rely on truncated division of n\n double result = partial * partial;\n if (n % 2 == 1) // if n odd, include extra factor of x\n result *= x;\n return result;\n }\n }", "public static int FermatPT(int n) {\n\n for (int i = 2; i < (n/3); i++) {\n\n if((longPow(i,n-1,n))!=1){\n return i;\n }\n\n }\n\n\t\treturn 0;\n\t}", "static int fact(int n)\n\n {\n\n int res = 1;\n\n for (int i = 2; i <= n; i++)\n\n res = res * i;\n\n return res;\n\n }", "public static double mathConst(double x, int n){\n double result = 0;\n double item;\n double nominator = 1;\n for(int i = 0; i <= n; i++){\n if(i == 0){\n nominator = 1;\n }else {\n nominator = nominator * x;\n }\n item = nominator / factorial(i);\n result = result + item;\n }\n return result;\n }", "public double myPow(double x, int n) {\n if (n == 0) {\n \treturn 1;\n }\n if (n == 1) {\n \treturn x;\n }\n if (n == -1) {\n \treturn 1 / x;\n }\n double num = myPow(x, n / 2);\n return num * num * myPow(x, n % 2);\n }", "public static long optimisedFib(long n){\n\n if(memo.containsKey(n)){\n return memo.get(n);\n }\n\n if(n < 2){\n memo.put(n, n);\n return n;\n }\n\n long f = optimisedFib(n-1) + optimisedFib(n-2);\n memo.put(n, f);\n\n return f ;\n\n }", "static BigInteger Product(int N) { \n BigInteger f = new BigInteger(\"1\"); \n for (int i = 2; i <= N; i++) \n f = f.multiply(BigInteger.valueOf(i)); \n \treturn f; \n }", "public double myPowIter(double x, int n) {\n\t\tif (n == 0)\n\t\t\treturn 1;\n\n\t\tif (n < 0) {\n\t\t\tn = -n;\n\t\t\tx = 1 / x;\n\t\t}\n\t\tdouble ans = 1;\n\t\twhile (n > 0) {\n\t\t\tif ((n & 1) == 1)\n\t\t\t\tans *= x;\n\t\t\tx *= x;\n\t\t\tn >>= 1;\n\t\t}\n\t\treturn ans;\n\t}", "private double f(double x) {\n return (1 / (1 + Math.exp(-x)));\n }", "public int getExponent( double f ) {\r\n \r\n int exp = (int)( Math.log( f ) / Math.log( 2 ) );\r\n \r\n return exp;\r\n \r\n }", "public static long F(long n) {\n\t\tif (n <= 4) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (n==5) {\n\t\t\treturn 8;\n\t\t} if (n==6) {\n\t\t\treturn 45;\n\t\t} if (n==7) {\n\t\t\treturn 138;\n\t\t} if (n==8) {\n\t\t\treturn 362;\n\t\t}\n\t\t\n\t\tlong m = 9;\n\t\t// F(7) = 138, F(8) = 362\n\t\tlong recPrev=138;\n\t\tlong recCurrent=362;\n\n\t\twhile (n >= m) {\t\n\t\t\tif (m %6 == 0) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 38;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6== 1) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 36;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6==2 || m%6==3 || m%6==5) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 32;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6==4){\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 30;\n\t\t\t\trecPrev = current;\n\t\t\t}\n\t\t\tm +=1;\n\t\t}\n\t\treturn recCurrent;\n\t}", "public static long computeFactorial(int n) {\n if(n<0 || n > 15) throw new IllegalArgumentException(\"Invalid input. N must be >= 0 \");\n if(n==0 || n==1)\n return 1;\n //ddieu kien dung cua de quy \n //song sot den lenh cho nayf thi n chac chan roi vao 2.......15\n return n*computeFactorial(n-1); // n*(n-1)\n \n }", "private static BigInteger[][] power(BigInteger[][] base, long n)\n {\n if (n == 0 || n == 1) return atom;\n \n BigInteger fib[][] = power(base, n/2);\n fib = Fibonacci.multiply(fib, fib);\n if (n%2 == 1) fib = Fibonacci.multiply(fib, base);\n \n return fib;\n }", "public static int fastFib(int n) {\n\t\t\n\t\tint a = 1;\n\t\tint b = 0;\n\t\t\n\t\tint temp = 0;\n\t\tfor(int i=0; i<n-1; i++){\n\t\t\ttemp = a;\n\t\t\ta += b;\n\t\t\tb = temp;\n\t\t\tif(a<0){\n\t\t\t\tSystem.out.println(\"Int overflow\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n return a; \n \n\t}", "public ComplexNumber power(int n) {\n\t\tif (n < 0) {\n\t\t\tthrow new IllegalArgumentException(\"The exponent must be a positive number.\");\n\t\t}\n\t\tdouble magnitude = getMagnitude();\n\t\tmagnitude = Math.pow(magnitude, n);\n\n\t\tdouble angle = getAngle();\n\t\tangle *= n;\n\t\tangle %= (2 * Math.PI);\n\n\t\treturn fromMagnitudeAndAngle(magnitude, angle);\n\t}", "static int exp(int base, long n) {\n\n // 2^3=8 , 2^x=8 -> x = ln8/ln2 , otherwise x=Math.log(8)/Math/log(2)\n\n return (int) ( Math.log(n)/Math.log(base) );\n }", "public static int f6(int N) { \n if (N == 0)\n return 1;\n return f6(N-1) + f6(N-1);\n \n }", "double rpow(int x, int n) {\r\n\t\tif (n == 0)\r\n\t\t\treturn 1.0;\r\n\t\treturn x * rpow(x, n - 1);\r\n\t}", "static double k(int n, final double x) {\n n = Math.abs(n);\n if (n > 31) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n if (x <= 0) {\n return Double.NaN; // domain error or singularity\n }\n if (x <= 9.55) {\n double ans = 0;\n final double z0 = 0.25 * x * x;\n double fn = 1;\n double pn = 0;\n double zmn = 1;\n final double tox = 2 / x;\n double s, t, k;\n\n if (n > 0) {\n // compute factorial of n and psi(n)\n pn = -Constants.EULER;\n k = 1;\n for (int i = 1; i < n; ++i) {\n pn += 1 / k;\n fn *= ++k;\n }\n zmn = tox;\n if (n == 1) {\n ans = 1 / x;\n } else {\n double nk1f = fn / n;\n double kf = 1;\n s = nk1f;\n final double z = -z0;\n double zn = 1;\n for (int i = 1; i < n; ++i) {\n nk1f /= (double) (n - i);\n kf *= (double) i;\n zn *= z;\n t = nk1f * zn / kf;\n s += t;\n if ((Double.MAX_VALUE - Math.abs(t)) < Math.abs(s)) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n if (tox > 1 && Double.MAX_VALUE / tox < zmn) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n zmn *= tox;\n }\n s *= 0.5;\n t = Math.abs(s);\n if (zmn > 1 && Double.MAX_VALUE / zmn < t) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n if (t > 1 && Double.MAX_VALUE / t < zmn) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n ans = s * zmn;\n }\n }\n final double t1g = 2 * Math.log(0.5 * x);\n double pk = -Constants.EULER;\n if (n == 0) {\n pn = pk;\n t = 1;\n } else {\n pn += 1.0 / n;\n t = 1 / fn;\n }\n s = (pk + pn - t1g) * t;\n k = 1;\n do {\n t *= z0 / (k * (k + n));\n pk += 1 / k;\n pn += 1 / (k + n);\n s += (pk + pn - t1g) * t;\n ++k;\n } while (Math.abs(t / s) > Constants.MACHINE_PRECISION);\n s = 0.5 * s / zmn;\n if ((n & 1) != 0) {\n s = -s;\n }\n return ans + s;\n } else {\n // asymptotic expansion\n if (x > MAXLOG) {\n return 0; // underflow\n }\n final double k = (double) n;\n final double pn = 4 * k * k;\n double pk = 1;\n final double z0 = 8 * x;\n double fn = 1;\n double t = 1;\n double s = t;\n double nkf = Double.MAX_VALUE;\n int i = 0;\n do {\n final double z = pn - pk * pk;\n t = t * z / (fn * z0);\n final double nk1f = Math.abs(t);\n if (i >= n && nk1f > nkf) {\n return Math.exp(-x) * Math.sqrt(Math.PI / (2 * x)) * s;\n }\n ++i;\n nkf = nk1f;\n s += t;\n ++fn;\n pk += 2;\n } while (Math.abs(t / s) > Constants.MACHINE_PRECISION);\n return Math.exp(-x) * Math.sqrt(Math.PI / (2 * x)) * s;\n }\n }", "public static int f3(int N) {\n \n // O(1)\n if (N == 0) return 1;\n else{ \n \n int x = 0;\n // O(N)\n for(int i = 0; i < N; i++)\n x += f3(N-1);\n return x;\n }\n }", "public static long factorial(int n){\n long fact=1;\n for(int i=1;i<=n;i++){\n fact=(fact*i);\n }\n return fact;\n }", "private static BigInteger getFactorial(int n) {\n BigInteger fact = BigInteger.ONE;\n for (int i = n; i > 1; i--) {\n fact = fact.multiply(new BigInteger(Integer.toString(i)));\n }\n return fact;\n }", "private double factorial(int n) {\n if (n < 0 || n > 32) {\n return -1;\n }\n return factorials[n];\n }", "public static double power1(double x, int n) {\n if (n == 0)\n return 1;\n else\n return x * power1(x, n - 1);\n }", "public double result(double f) {\n double phi = Math.pow((Math.sin(2.0 * Math.PI * f / (2.0 * sample_rate))), 2.0);\n double r = (Math.pow(b0 + b1 + b2, 2.0) - 4.0 * (b0 * b1 + 4.0 * b0 * b2 + b1 * b2) * phi + 16.0 * b0 * b2 * phi * phi) / (Math.pow(1.0 + a1 + a2, 2.0) - 4.0 * (a1 + 4.0 * a2 + a1 * a2) * phi + 16.0 * a2 * phi * phi);\n if (r < 0) {\n r = 0;\n }\n return Math.sqrt(r);\n }", "public static void Perfectpower(int n) {\n\t\tlong valuecheck = 0;\n\t\t\n\t\tPriorityQueue<PerfectNumber> pq = new PriorityQueue<>(new Comparator<PerfectNumber>() {\n\t\t\t@Override\n\t\t\tpublic int compare(PerfectNumber o1, PerfectNumber o2) {\n\t\t\t\treturn (int) (o1.value - o2.value);\n\t\t\t}\n\t\t});\n\n\t\t//base condition\n\t\tpq.add(new PerfectNumber(2, 2));\n\t\t\n\t\twhile (!pq.isEmpty()) {\n\t\t\t\n\t\t\tPerfectNumber z = pq.remove();\n\t\t\t\n\t\t\t//return when a^b >n \n\t\t\tif(Math.pow(z.a, z.b)>n){\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t//to avoid duplicacy\n\t\t\tif(valuecheck!=z.value){\n\t\t\t\tresult.add(z.value);\n\t\t\t\tvaluecheck = z.value;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// add next elements in priorrity queue\n\t\t\tif (z.a == 2) {\n\t\t\t\tpq.add(new PerfectNumber(2, z.b + 1));\n\t\t\t\tpq.add(new PerfectNumber(3, z.b));\n\n\t\t\t} else {\n\t\t\t\tpq.add(new PerfectNumber(z.a + 1, z.b));\n\t\t\t} \n\t\t}\n\n\t}", "void pow(int n){\n\t\tif(n > 1){\n\t\t\tpow(n/2); //Calling pow recursively\n\t\t\tM = MatrixMultiply(M,M); //Climbing up by squares\n\t\t}\n\t\t\n\t\tif(n % 2 == 1){//n is odd\n\t\t\tM = MatrixMultiply(M,unitMatrix); //If n is odd than one unit matrix is missed so we are multiplying\n\t\t}\n\t}", "private double equation(long n) {\n\t\treturn (4d * montoCarlo(n) / n);\n\t}", "public int fastPower(int a, int b, int n) {\n // write your code here\n long base = a, ans = 1;\n while (n > 0) {\n if (n % 2 == 1) {\n ans = ans * base % b;\n }\n n /= 2;\n base = base * base % b;\n }\n return (int) ans % b;\n }", "private int nextPowerOf2(int n)\n {\n if (n > 0 && (n & (n - 1)) == 0)\n return n;\n \n int count = 0;\n for (;n != 0; n = n >> 1)\n count += 1;\n \n return 1 << count;\n }", "public double f(double x) {\n return Math.pow(x, 10) - 1; // Esta es la cuarta funcion f(x) vista en clase\r\n }", "public long factorial(int n)\n\t{\n\t\tint product = 1;\n\n\t\tfor (int i = n; i >= 1; i--)\n\t\t{\n\t\t\tproduct *= i;\n\t\t}\n\n\t\treturn product;\n\t}", "public static double powLong(double x, long n) {\n if(n==0) return 1;\n if(n==1) return x;\n if(n<0) return 1/(powLong(x,-n));\n \n double tmp = powLong(x, n/2);\n return tmp*tmp*(powLong(x, n%2));\n }", "protected final double fa(double x, double ac, double ae) {return ac*Math.pow(x, ae)/K;}", "@Override\r\n\tpublic double f(double x) {\n\t\treturn FastMath.tanh(x); // RMSE: 1.2677143077504636, Took: 38.617s\r\n\t}", "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 }", "public static double factorial(double n) {\r\n if (n <= 1)\r\n return 1;\r\n else\r\n return n * factorial(n - 1);\r\n }", "public static double f(double z){\n return 1 / (1 + Math.exp(-z));\n }", "public static int findNearestPowerofTwo(int n) {\n\t\tif ((n & n - 1) == 0) {\n return n;\n }\n int a = 1;\n while (a < n) {\n a = a << 1;\n }\n\n\n return a >> 1;\n\t}", "static BigInteger SigmaWithOutLoop(int N) { \n BigInteger f = BigInteger.valueOf(N); \n // N*(N+1)/2\n f = f.multiply(f.add( BigInteger.valueOf(1))).divide(new BigInteger(\"2\")); \n return f; \n }", "public int fastPower(int a, int b, int n) {\n if (n == 0){\n return 1 % b;\n }\n\n if (n == 1) {\n return a % b;\n }\n\n long ans = fastPower(a, b, n / 2);\n ans = (ans * ans) % b;\n if (n % 2 == 1){\n ans = (ans*a) % b;\n }\n return (int) ans;\n }", "public static float stirling_factorial(float f) {\n return 0;\n }", "public double pow(double base, double exponent){ return Math.pow(base, exponent); }", "public static int fac(int n) {\n if(n == 1) {\n return 1;\n }\n return n*fac(n-1);\n }", "private int iterativeFib(int n) {\r\n int backVal = 0, frontVal = 1;\r\n \r\n for (int i = 1; i < n - 1; i++) {\r\n int temp = frontVal + backVal;\r\n backVal = frontVal;\r\n frontVal = temp;\r\n }\r\n \r\n return frontVal + backVal;\r\n }", "public int solution1(int N) {\n int numFactors = 0;\n for (int i = 1; i <= (double) Math.sqrt(N); i++) {\n if (N % i == 0) {\n if (i * i != N) {\n numFactors = numFactors + 2;\n } else if (i * i == N) {\n numFactors = numFactors + 1;\n }\n }\n }\n return numFactors;\n }", "public static double factorial(double n) {\n if (n > 1) {\n return n * factorial(n - 1);\n } else {\n return 1;\n }\n }", "static int findLargestPowerOf2InRange(int N){\n N = N| (N>>1);\n N = N| (N>>2);\n N = N| (N>>4);\n N = N| (N>>8);\n\n\n //as now the number is 2 * x-1, where x is required answer, so adding 1 and dividing it by\n\n return (N+1)>>1;\n }", "private double f1(double x) {\n return Math.exp(-x) * Math.pow(Math.sin(x), 5);\n }", "public BigInteger fastPow(BigInteger k) {\n int i = 0;\n BigInteger h = BigInteger.ONE;\n\n while (i < ed.bitLength()) {\n if (ed.testBit(i)) {\n h = h.multiply(k).mod(n);\n }\n k = k.pow(2).mod(n);\n i++;\n }\n return h;\n }", "private double calcuFcost() {\n\t\treturn num * configMap.get('r') + (num-1) * configMap.get('l') + num * configMap.get('f') + configMap.get('t');\n\t}", "public static long u(int n)\r\n\t{\r\n\t\tlong result = 0;\r\n\t\tlong current = 1;\r\n\t\tfor (int i = 0; i <= 10; i++)\r\n\t\t{\r\n\t\t\tif (i % 2 == 0)\r\n\t\t\t{\r\n\t\t\t\tresult += current;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tresult -= current;\r\n\t\t\t}\r\n\t\t\tcurrent *= n;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "public static void tinhTongLuyThua(int n) {\n\t\tfloat sum = 0;\n\t\tint luyThua;\n\t\t\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tluyThua = (int) Math.pow(CONST_X, i);\n\t\t\tSystem.out.println(\"x^\" + i + \" = \" + luyThua);\n\t\t\tsum += luyThua;\n\t\t}\n\t\tSystem.out.println(\"S(n) = x + x^1 + x^2 + ... + x^\" + n + \" = \\t\" + sum);\n\t}", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "int f(int x) { return (x*x - 10*x - 20); }", "public static void main(String[] args) {\n Scanner s=new Scanner(System.in);\n int n = s.nextInt();\n for(int i=1; i<n+1; i++){\n int a = s.nextInt();\n int b = s.nextInt();\n int terms = s.nextInt();\n double c= a;\n for(int j=1; j<terms+1; j++){\n c = c + Math.pow(2,j-1)*b;\n System.out.printf(\"%.0f \", c);\n }\n System.out.printf(\"%n\");\n } \n }", "private static long f(long m) {\n\t\tlong k = 1;\r\n\t\tfor (long i=1; i<=m; i++){\r\n\t\t\tk *= i;\r\n\t\t}\r\n\t\treturn k;\r\n\t}", "private static int modExp(int a, int b, int n) {\n\n // get a char array of the bits in b\n char[] k = (Integer.toBinaryString(b)).toCharArray();\n\n // initialize variables\n int c = 0, f = 1;\n // loop over every bit in k\n for (int i = 0; i < k.length; i ++) {\n\n // for every bit, i.e. if 0 or 1, do this\n c *= 2;\n f = (f * f) % n;\n\n // If current bit is equal to 1, then do this\n if (k[i] == '1') {\n c += 1;\n f = (f * a) % n;\n }\n }\n\n // returns the remainder\n return f;\n }", "public static BigInteger calcuateFactorial(int x ){\n BigInteger res=new BigInteger(\"1\");\n for (int i=1;i<=x;i++){\n res=res.multiply(BigInteger.valueOf(i));\n }\n return res;\n\n }", "private double binomeN_I(int n, int i) {\n double ni;\n double a1 = factorial(n);\n double a2 = factorial(i);\n double a3 = factorial(n - i);\n ni = a1 / (a2 * a3);\n return ni;\n }", "public static boolean IsPowOfN(int value, int n) {\n\t\t\n\t\tif (value == 0) return false;\n\t\t\n\t\twhile (value % n == 0) {\n\t\t\tvalue /= n;\n\t\t}\n\t\t\n\t\treturn value == 1;\n\t}", "public static BigInteger calculateModifiedFib(int a, int b, int n) {\n \n BigInteger[] fib_of_all = new BigInteger[n+2];\n fib_of_all[0] = BigInteger.valueOf(a);\n fib_of_all[1] = BigInteger.valueOf(b);\n\n\n\n BigInteger fib_of_n = BigInteger.valueOf(0);\n\n //fib_of_n = (fib_of_n+2) - (fib_of_n+1)2;\n\n for(int c = 2; c < n+2; c++) {\n \tfib_of_all[c] = fib_of_all[c-2].add(fib_of_all[c-1].pow(2));\n }\n\n return fib_of_all[n-1];\n }", "public static void extraLongFactorials(int n) {\r\n BigInteger fact = BigInteger.valueOf(1);\r\n for (int i = 1; i <= n; i++) {\r\n fact = fact.multiply(BigInteger.valueOf(i));\r\n }\r\n System.out.println(fact);\r\n }", "private static int getFibonacci(int n) {\n\t\tdouble f1 = Math.pow(((1 + Math.sqrt(5)) / 2.0), n);\n\t\tdouble f2 = Math.pow(((1 - Math.sqrt(5)) / 2.0), n);\n\t\treturn (int)(Math.floor((f1 - f2) / Math.sqrt(5)));\n\t}", "public abstract double integral(double a, double b, int n);", "public double psi(int n) {\n \t\treturn psi.f(n);\n \t}", "public static double rekursiv(double x, int n) {\n if (n == 0) {\n return 1;\n }\n if (!erPartall(n)) {\n return x*rekursiv(x*x,(n-1)/2); //Grunntall x^2, eksponent ...\n }\n else {\n return rekursiv(x*x,n/2);\n }\n }", "public static double f(double x) {\n\t\treturn (double)Math.pow(x, 2) - 16;\n\t}", "public int fact(int n){\n if(n == 1){\n return 1;\n }\n return n * (fact(n-1));\n }", "public Complex power(int n) {\n if (n < 0) {\n throw new IllegalArgumentException();\n }\n return Complex.fromMagnitudeAndAngle(Math.pow(this.getMagnitude(), n), this.getAngle() * n);\n }", "public static BigInteger factoria(double value){\n BigInteger f = new BigInteger(\"1\");\n for (int i =1;i<=value;i++){\n f = f.multiply(BigInteger.valueOf(i));\n }\n return f; \n }", "@Test public void fastPowTest() {\n check(\"declare function local:pow($n, $k) {\" +\n \" if($k = 0) then xs:decimal(1)\" +\n \" else if($k mod 2 = 0) then local:pow($n * $n, $k idiv 2)\" +\n \" else $n * local:pow($n * $n, $k idiv 2)\" +\n \"};\" +\n \"local:pow(4, 5)\",\n\n 1024,\n\n exists(Util.className(StaticFuncCall.class) + \"[@tailCall eq 'true']\"),\n count(Util.className(StaticFuncCall.class) + \"[@tailCall eq 'false']\", 2)\n );\n }", "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "private static int getTotient(int n) {\n int result = n;\n for(int i=2; i*i <=n; i++) {\n if(n % i == 0) {\n while(n % i == 0) n /= i;\n result -= result/i;\n }\n }\n if(n > 1) result -= result/n;\n return result;\n }", "private int getSumOfSquares(int n) {\n\t\tint sum = 0;\n\t\tint number = n;\n\t\tint current;\n\t\t\n\t\twhile(number != 0) {\n\t\t\tcurrent = number % 10;\n\t\t\tsum += Math.pow(current, 2);\n\t\t\tnumber /= 10;\n\t\t}\n\t\treturn sum;\n\t}", "public int factorial(int n) {\n\t\tif(n<0 || n>Integer.MAX_VALUE)\n\t\t\treturn (int) Double.NaN;\n\t\t\n\t\tint fact=1; \n\t\tfor(int i=1;i<=n;i++){ \n\t\t fact=fact*i; \n\t\t} \n\t\treturn fact;\n\t}", "protected static ProductGroupElement computeF(int N, int Ne, byte[] seed,\r\n \t\t\tPseudoRandomGenerator prg,\r\n \t\t\tArrayOfElements<ProductGroupElement> wInput) {\r\n \r\n \t\t// TODO check this\r\n \t\tint length = 8 * ((int) Math.ceil((double) (Ne / 8.0)));\r\n \t\t// int length = Ne + 7;\r\n \r\n \t\tprg.setSeed(seed);\r\n \t\tbyte[] ByteArrToBigInt = prg.getNextPRGOutput(length);\r\n \t\tLargeInteger t = new LargeInteger(ByteArrToBigInt);\r\n \t\tLargeInteger e = t.mod(new LargeInteger(\"2\").power(Ne));\r\n \t\tProductGroupElement F = wInput.getAt(0).power(e);\r\n \r\n \t\tfor (int i = 1; i < N; i++) {\r\n \t\t\tByteArrToBigInt = prg.getNextPRGOutput(length);\r\n \t\t\tt = byteArrayToPosLargeInteger(ByteArrToBigInt);\r\n \t\t\te = t.mod(new LargeInteger(\"2\").power(Ne));\r\n \t\t\tF = F.mult(wInput.getAt(i).power(e));\r\n \t\t}\r\n \t\treturn F;\r\n \t}" ]
[ "0.7245413", "0.7211912", "0.72057676", "0.6828459", "0.6712498", "0.6632788", "0.65961117", "0.6535556", "0.6518649", "0.6501932", "0.64997494", "0.64883953", "0.6379977", "0.6364956", "0.6357492", "0.63502437", "0.6338747", "0.6329644", "0.6326872", "0.63239074", "0.6320308", "0.63202065", "0.6311731", "0.6294262", "0.6271828", "0.6249803", "0.6241853", "0.62303656", "0.6190691", "0.6183122", "0.61706656", "0.6162832", "0.6161177", "0.6124823", "0.6123089", "0.61120456", "0.61114436", "0.6080174", "0.60760695", "0.60673374", "0.6061622", "0.6034466", "0.6012495", "0.59701777", "0.59607303", "0.5960392", "0.5953982", "0.595162", "0.5941022", "0.59341073", "0.59080696", "0.59040976", "0.5902361", "0.5877095", "0.58488464", "0.5827091", "0.5811253", "0.5800578", "0.5789257", "0.5757905", "0.57465285", "0.5730166", "0.5718715", "0.57011056", "0.5697214", "0.5694408", "0.5685664", "0.5682938", "0.56554604", "0.5653779", "0.5649573", "0.56389034", "0.56295985", "0.560701", "0.5604988", "0.55987185", "0.55870795", "0.558503", "0.558498", "0.5577651", "0.55771464", "0.55691993", "0.5563658", "0.55511427", "0.55499136", "0.5544069", "0.55373436", "0.55359787", "0.5532213", "0.55318874", "0.55200666", "0.5500109", "0.54987943", "0.5490351", "0.5484883", "0.54843694", "0.5484242", "0.54753435", "0.5474328", "0.5469965" ]
0.6815874
4
helper methods for matrix
public static long[][] multiplyMod(long F[][], long M[][]){ long x = (F[0][0]*M[0][0])%MOD + (F[0][1]*M[1][0])%MOD; long y = (F[0][0]*M[0][1])%MOD + (F[0][1]*M[1][1])%MOD; long z = (F[1][0]*M[0][0])%MOD + (F[1][1]*M[1][0])%MOD; long w = (F[1][0]*M[0][1])%MOD + (F[1][1]*M[1][1])%MOD; return new long[][]{{x,y},{z,w}}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Matrix matrix(double s1, double s2, double s3, double c1, double c2, double c3);", "protected abstract NDArray[] onMatrix(NDArray matrix);", "public Matrix getValue();", "public Matrix calculate();", "protected abstract T createMatrix( int numRows, int numCols, MatrixType type );", "protected SimpleMatrix() {}", "@Override\n public Matrix idct(final MatrixView in) {\n check(in);\n double[][] out = new double[in.getRows()][in.getColumns()];\n double tmp1, tmp2, tmp3, tmp4;\n double tmpm0 = 0, tmpm1 = 0, tmpm2 = 0, tmpm3 = 0, tmpm4 = 0, tmpm5 = 0, tmpm6 = 0, tmpm7 = 0;\n double tmpm20, tmpm21, tmpm22, tmpm23, tmpm24, tmpm25, tmpm26, tmpm27 = 0;\n double[] outtmpmyi = null;\n\n for (int my = 0; my < in.getRows(); my += SIZE) {\n for (int mx = 0; mx < in.getColumns(); mx += SIZE) {\n for (int i = 0; i < 8; i++) {\n outtmpmyi = out[my + i];\n\n tmpm0 = in.getDouble(my + i, mx + 0);\n tmpm1 = in.getDouble(my + i, mx + 1);\n tmpm2 = in.getDouble(my + i, mx + 2);\n tmpm3 = in.getDouble(my + i, mx + 3);\n tmpm4 = in.getDouble(my + i, mx + 4);\n tmpm5 = in.getDouble(my + i, mx + 5);\n tmpm6 = in.getDouble(my + i, mx + 6);\n tmpm7 = in.getDouble(my + i, mx + 7);\n\n tmp1 = (tmpm1 * Z7) - (tmpm7 * Z1);\n tmp4 = (tmpm7 * Z7) + (tmpm1 * Z1);\n tmp2 = (tmpm5 * Z3) - (tmpm3 * Z5);\n tmp3 = (tmpm3 * Z3) + (tmpm5 * Z5);\n\n tmpm20 = (tmpm0 + tmpm4) * Z4;\n tmpm21 = (tmpm0 - tmpm4) * Z4;\n tmpm22 = (tmpm2 * Z6) - (tmpm6 * Z2);\n tmpm23 = (tmpm6 * Z6) + (tmpm2 * Z2);\n tmpm4 = tmp1 + tmp2;\n tmpm25 = tmp1 - tmp2;\n tmpm26 = tmp4 - tmp3;\n tmpm7 = tmp4 + tmp3;\n\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n\n outtmpmyi[mx + 0] = tmpm0 + tmpm7;\n outtmpmyi[mx + 7] = tmpm0 - tmpm7;\n outtmpmyi[mx + 1] = tmpm1 + tmpm6;\n outtmpmyi[mx + 6] = tmpm1 - tmpm6;\n outtmpmyi[mx + 2] = tmpm2 + tmpm5;\n outtmpmyi[mx + 5] = tmpm2 - tmpm5;\n outtmpmyi[mx + 3] = tmpm3 + tmpm4;\n outtmpmyi[mx + 4] = tmpm3 - tmpm4;\n\n }\n\n for (int i = 0; i < 8; i++) {\n\n tmpm0 = out[my + 0][mx + i];\n tmpm1 = out[my + 1][mx + i];\n tmpm2 = out[my + 2][mx + i];\n tmpm3 = out[my + 3][mx + i];\n tmpm4 = out[my + 4][mx + i];\n tmpm5 = out[my + 5][mx + i];\n tmpm6 = out[my + 6][mx + i];\n tmpm7 = out[my + 7][mx + i];\n\n tmp1 = (tmpm1 * Z7) - (tmpm7 * Z1);\n tmp4 = (tmpm7 * Z7) + (tmpm1 * Z1);\n tmp2 = (tmpm5 * Z3) - (tmpm3 * Z5);\n tmp3 = (tmpm3 * Z3) + (tmpm5 * Z5);\n\n tmpm20 = (tmpm0 + tmpm4) * Z4;\n tmpm21 = (tmpm0 - tmpm4) * Z4;\n tmpm22 = (tmpm2 * Z6) - (tmpm6 * Z2);\n tmpm23 = (tmpm6 * Z6) + (tmpm2 * Z2);\n tmpm4 = tmp1 + tmp2;\n tmpm25 = tmp1 - tmp2;\n tmpm26 = tmp4 - tmp3;\n tmpm7 = tmp4 + tmp3;\n\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n\n out[my + 0][mx + i] = tmpm0 + tmpm7;\n out[my + 7][mx + i] = tmpm0 - tmpm7;\n out[my + 1][mx + i] = tmpm1 + tmpm6;\n out[my + 6][mx + i] = tmpm1 - tmpm6;\n out[my + 2][mx + i] = tmpm2 + tmpm5;\n out[my + 5][mx + i] = tmpm2 - tmpm5;\n out[my + 3][mx + i] = tmpm3 + tmpm4;\n out[my + 4][mx + i] = tmpm3 - tmpm4;\n }\n }\n }\n\n return new DoubleMatrix(in.getRows(), in.getColumns(), out);\n }", "public interface Matrix {\n\n void initZeroValues();\n\n void fillRandomValues();\n\n int getRows();\n\n int getColumns();\n\n Entity getEntity(int i, int j);\n\n String toString();\n}", "public void mo23181a(Canvas canvas, Matrix matrix, int i) {\n }", "public Matrix extract(){\r\n\t\t\r\n\t\tDouble[][] newVal = new Double[col][row - 1];\r\n\t\t\r\n\t\tfor(Double[] row: AllVal){\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public interface IMatrix {\n\n\tpublic int getRowsCount();\n\tpublic int getColsCount();\n\tpublic double get(int numberOne, int numberTwo);\n\tpublic IMatrix set(int numberOne, int numberTwo, double numberThree);\n\tpublic IMatrix copy();\n\tpublic IMatrix newInstance(int numberOne, int numberTwo);\n\tpublic IMatrix nTranspose(boolean trans);\n\tpublic IMatrix add(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix nAdd(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix sub(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix nSub(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix nMultiply(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic double determinant() throws OperationNotSupportedException;\n\tpublic IMatrix subMatrix(int numberOne, int numberTwo, boolean subM);\n\tpublic IMatrix nInvert() throws OperationNotSupportedException;\n\tpublic double[][] toArray();\n\tpublic IVector toVector(boolean toVect) throws OperationNotSupportedException;\n\tpublic IMatrix scalarMultiply(double value);\n\tpublic IMatrix nScalarMultiply(double value);\n\t\n}", "public interface Matrix extends Entity{\n\tboolean isNull(int row, int column);\n\tvoid setNull(int row, int column);\n\tScalar getRowLabel(int row);\n\tScalar getColumnLabel(int column);\n\tScalar get(int row, int column);\n\tVector getRowLabels();\n\tVector getColumnLabels();\n\tboolean hasRowLabel();\n\tboolean hasColumnLabel();\n\tClass<?> getElementClass();\n}", "public interface IMatrix {\n\n /**\n * Set coefficient\n * @param y row (0..height-1)\n * @param x column (0..width-1)\n * @param v value\n */\n public void set(int y, int x, double v);\n /**\n * Get coefficient from matrix, by returning coeff[y*width + x].\n * @param y row (0..height-1)\n * @param x column (0..width-1)\n * @return coefficient\n */\n public double get(int y, int x);\n\n /**\n * Clear matrix to zeros\n */\n public void clear();\n\n /**\n * Get array of coefficients.\n * They are indexed by [y*height + x].\n * Not all classes support this method.\n * @return array of coefficients\n */\n public double[] coeff();\n\n /**\n * Get width of matrix\n * @return width\n */\n public int width();\n\n /**\n * Get height of matrix\n * @return height\n */\n public int height();\n}", "void iniciaMatriz() {\r\n int i, j;\r\n for (i = 0; i < 5; i++) {\r\n for (j = 0; j <= i; j++) {\r\n if (j <= i) {\r\n m[i][j] = 1;\r\n } else {\r\n m[i][j] = 0;\r\n }\r\n }\r\n }\r\n m[0][1] = m[2][3] = 1;\r\n\r\n// Para los parentesis \r\n for (j = 0; j < 7; j++) {\r\n m[5][j] = 0;\r\n m[j][5] = 0;\r\n m[j][6] = 1;\r\n }\r\n m[5][6] = 0; // Porque el m[5][6] quedo en 1.\r\n \r\n for(int x=0; x<7; x++){\r\n for(int y=0; y<7; y++){\r\n // System.out.print(\" \"+m[x][y]);\r\n }\r\n //System.out.println(\"\");\r\n }\r\n \r\n }", "Matrix add(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] + m.data[i];\n }\n return matrix_to_return;\n }", "Matrix(){\n matrixVar = new double[1][1];\n rows = 1;\n columns = 1;\n }", "protected ArrayList<double[]> newMatrix(int _rows, int _cols) {\n ArrayList<double[]> matrix = new ArrayList<double[]>();\n for (int i=0; i<_rows; i++) {\n matrix.add(new double[_cols]);\n }\n return matrix;\n }", "private Object get( int r, int c ) {\n\treturn matrix[r][c];\n }", "public Matrix( int a ) {\n\tmatrix = new Object[a][a];\n }", "public void makeIdentity() {\n if (rows == cols) {\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n if (i == j) {\n matrix.get(i)[j] = 1;\n }\n else {\n matrix.get(i)[j] = 0;\n }\n }\n }\n }\n else {\n throw new NonSquareMatrixException();\n }\n }", "Matrix mult(Matrix M){\n if(this.getSize() != M.getSize()){\n throw new RuntimeException(\"Matrix\");\n\n } \n int newMatrixSize = this.getSize();\n Matrix newM = M.transpose();\n Matrix resultMatrix = new Matrix(newMatrixSize);\n double resultMatrix_Entry = 0;\n for(int i = 1; i <= newMatrixSize; i++){\n for(int j = 1; j<= newMatrixSize; j++){\n List itRow_A = this.rows[i - 1];\n List itRow_B = newM.rows[j-1];\n itRow_A.moveFront();\n itRow_B.moveFront();\n while((itRow_A.index() != -1) && (itRow_B.index() != -1)){\n Entry c_A = (Entry)itRow_A.get();\n Entry c_B = (Entry) itRow_B.get();\n if(c_A.column == c_B.column){\n resultMatrix_Entry += (c_A.value)*(c_B.value);\n itRow_A.moveNext();\n itRow_B.moveNext();\n\n } else if(c_A.column > c_B.column){\n itRow_B.moveNext();\n\n }else{\n itRow_A.moveNext();\n }\n\n }\n resultMatrix.changeEntry(i, j, resultMatrix_Entry);\n resultMatrix_Entry = 0;\n }\n }\n return resultMatrix;\n\n }", "static void printMatrix(int[][] inp){\n\n for(int i=0;i<inp.length;i++){\n for(int j=0;j<inp[0].length;j++){\n System.out.print(inp[i][j]+\" \");\n }\n System.out.println(\"\");\n }\n }", "public interface ExprMatrix extends ExprCellIterator{\n public int getColumnsDimension();\n\n public int getRowsDimension();\n\n public Expr apply(int row, int column);\n\n public Expr get(int row, int column);\n\n public void set(Expr exp, int row, int col);\n\n\n /**\n * create a preloaded sequence (all element are pre evaluated)\n * @return\n */\n public ExprMatrix preload();\n\n /**\n * same as index, provided for scala compatibility\n *\n * @param index index\n * @return get(index)\n */\n /**\n * create a cached instance of this expression sequence\n * @return\n */\n public ExprMatrix withCache();\n\n /**\n * create a sequence of simplified elements\n * @return\n */\n public ExprMatrix simplify() ;\n}", "public int[][] getMat() {\n // Note: java has no return read-only so we won't return matrix;\n // b\\c that would expose internal representation. Instead we will\n // copy each row into a new matrix, and return that.\n return Helper.cloneMatrix(matrix);\n }", "abstract public Matrix4fc getViewMatrix();", "Matrix(int r,int c)\n {\n this.r=r;\n this.c=c;\n arr=new int[r][c];\n }", "public double[][] convert_img_mat()\n\t{\n\t\tif(orderflag)\n\t\t{\n\t\t\tputpixel_1();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//rotate the image and get the pixels as usual form\t\n \t\tputpixel_2();\n\t\t}\n\treturn matrix;\n\t}", "private int convertMatrixToVectorIndex(int row, int col){\n return ((row)*this.col)+col;\n }", "public Matriz( int lin, int col )\n {\n if(lin <= 0 || col <= 0 )\n {\n IO.println(\"ERRO: Quantidade invalida. \" );\n } //end\n else\n {\n table = new Object[lin][col];\n } //end se\n }", "Matrix add(Matrix M) {\n if(getSize() != M.getSize()) {\n throw new RuntimeException(\"Matrix Error: Matrices not same size\");\n }\n if (M.equals(this)) return M.scalarMult(2);\n int c = 0, e2 = 0;\n double v1 = 0, v2 = 0;\n List temp1, temp2;\n Matrix addM = new Matrix(getSize());\n for(int i = 1; i <= rows.length; i++) {\n temp1 = M.rows[i-1];\n temp2 = this.rows[i-1];\n if(temp1.isEmpty() && !temp2.isEmpty()) {\n temp2.moveFront();\n while(temp2.index() != -1) {\n addM.changeEntry(i, ((Entry)temp2.get()).column, ((Entry)temp2.get()).value);\n temp2.moveNext();\n }\n }else if(!temp1.isEmpty() && temp2.isEmpty()) {\n temp1.moveFront();\n while(temp1.index() != -1) {\n addM.changeEntry(i, ((Entry)temp1.get()).column, ((Entry)temp1.get()).value);\n temp1.moveNext();\n }\n }else if(!temp1.isEmpty() && !temp2.isEmpty()) {\n temp2.moveFront();\n temp1.moveFront();\n while(temp1.index() != -1 && temp2.index() != -1) {\n if(((Entry)temp1.get()).column == ((Entry)temp2.get()).column) {\n v1 = ((Entry)temp1.get()).value;\n v2 = ((Entry)temp2.get()).value;\n c = ((Entry)temp2.get()).column;\n addM.changeEntry(i, c, (v1+v2));\n temp1.moveNext();\n if(!this.equals(M))\n temp2.moveNext();\n ///if temp1 < temp2\n //this < M\n }else if(((Entry)temp1.get()).column < ((Entry)temp2.get()).column) {\n v1 = ((Entry)temp1.get()).value;\n c = ((Entry)temp1.get()).column;\n addM.changeEntry(i, c, v1);\n temp1.moveNext();\n //if temp1>temp2\n }else if(((Entry)temp1.get()).column > ((Entry)temp2.get()).column) {\n v2 = ((Entry)temp2.get()).value;\n c = ((Entry)temp2.get()).column;\n addM.changeEntry(i, c, v2);\n temp2.moveNext();\n }\n }\n while(temp1.index() != -1) {\n addM.changeEntry( i, ((Entry)temp1.get()).column, ((Entry)temp1.get()).value);\n temp1.moveNext();\n }\n while(temp2.index() != -1) {\n addM.changeEntry(i, ((Entry)temp2.get()).column, ((Entry)temp2.get()).value);\n temp2.moveNext();\n }\n }\n }\n return addM;\n }", "private int rcvToMatrixRow(int i, int j, String symb) \n {\n int v = indexOf(symb);\n return (i - 1) * dimSquared + (j - 1) * gDim + (v - 1);\n }", "private int size() {\n\treturn matrix.length; //# of rows\n }", "public int[][] getMatrix(){\n\t\treturn matrix;\n\t}", "public static void main(String[] args) {\n\t\tint[][] a = {{1,2}, {5,3}};\n\t\tint[][] b = {{3,2}, {4,5}};\n\t\tint[][] c = {{1,2}, {4,3}};\n\t\tint[][] d = {{1,2,3}, {4, 5, 6}};\n\t\tint[][] e = {{1, 4}, {2, 5}, {3,6}};\n\n\n\t\t//create new matrices using multidimensional arrays to get a size\n\t\tMatrix m = new Matrix(a);\n\t\tMatrix m2 = new Matrix(b);\n\t\tMatrix m3 = new Matrix(c);\n\t\tMatrix m4 = new Matrix(d);\n\t\tMatrix m5 = new Matrix(e);\n\n\n\n\t\t//Example of matrix addition\n\t\tSystem.out.println(\"Example of Matrix addition using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nSUM:\");\n\t\tSystem.out.println(m.add(m2));\n\t\t\n\t\t//Example of matrix subtraction\n\t\tSystem.out.println(\"Example of Matrix subtraction using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nDIFFERENCE:\");\n\t\tSystem.out.println(m.subt(m2));\n\n\t\t//Example of matrix multiplication\n\t\tSystem.out.println(\"Example of Matrix multiplication using the following matrices:\");\n\t\tSystem.out.println(m3.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nPRODUCT:\");\n\t\tSystem.out.println(m2.mult(m3));\n\t\t\n\t\t//Example of scalar multiplication\n\t\tSystem.out.println(\"Example of scalar multiplication using the following matrices with a scalar value of 2:\");\n\t\tSystem.out.println(m3.toString() + \"\\nSCALAR PRODUCT:\");\n\t\tSystem.out.println(m3.scalarMult(2));\n\t\t\n\t\t//Example of transpose \n\t\tSystem.out.println(\"Example of transpose using the following matrix:\");\n\t\tSystem.out.println(m.toString() + \"\\nTRANSPOSE:\");\n\t\tSystem.out.println(m.transpose());\n\t\t\n\t\t//Example of transpose \n\t\tSystem.out.println(\"Example of transpose using the following matrix:\");\n\t\tSystem.out.println(m4.toString() + \"\\nTRANSPOSE:\");\n\t\tSystem.out.println(m4.transpose());\n\t\t\n\t\t//Example of equality \n\t\tSystem.out.println(\"Example of equality using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m.toString() + \"\\nEQUALITY:\");\n\t\tSystem.out.println(m.equality(m));\n\t\t\n\t\t//Example of equality \n\t\tSystem.out.println(\"\\nExample of equality using the following matrices:\");\n\t\tSystem.out.println(m4.toString());\n\t\tSystem.out.println(m5.toString() + \"\\nEQUALITY:\");\n\t\tSystem.out.println(m4.equality(m5));\n\n\t}", "public Matrix P0 ();", "Matrix(Matrix first, Matrix second) {\n if (first.getColumns() == second.getRows()) {\n this.rows = first.getRows();\n this.columns = second.getColumns();\n matrix = new int[first.getRows()][second.getColumns()];\n for (int col = 0; col < this.getColumns(); col++) {\n int sum;\n int commonality = first.getColumns(); // number to handle summation loop\n for (int rw = 0; rw < this.getRows(); rw++) {\n sum = 0;\n // summation loop\n for (int x = 0; x < commonality; x++) {\n sum += first.getValue(rw, x) * second.getValue(x, col);\n }\n matrix[rw][col] = sum;\n }\n\n }\n } else {\n System.out.println(\"Matrices cannot be multiplied\");\n }\n }", "public void concat(Matrix matrix) {\n\t\t\n\t}", "@Test\n public void testGetMatrixColumn() {\n final Matrix33d m = getMatrix();\n final Vector3d expected = V2;\n final Vector3d v = new Vector3d();\n m.getMatrixColumn(v, 1);\n assertEquals(v.toString(), expected.toString());\n }", "public void nullifyMatrix(int[][] mat) {\r\n //extra space\r\n boolean rows[] = new boolean[mat[0].length];\r\n boolean columns[] = new boolean[mat.length];\r\n \r\n for (int i=0;i<mat.length ;i++ ) {\r\n for (int j=0; j<mat[0].length;j++ ) {\r\n if(mat[i][j] == 0) {\r\n rows[i] = true;\r\n columns[j] = true;\r\n }\r\n } \r\n }\r\n \r\n //Nullify rows\r\n for(int i=0; i<rows.length; i++) {\r\n if(rows[i])\r\n helperNullifyRow(mat, i);\r\n }\r\n //Nullify columns\r\n for(int i=0; i<columns.length; i++) {\r\n if(columns[i])\r\n helperNullifyColumn(mat,i);\r\n }\r\n printMat(mat);\r\n }", "public interface Matrix<T> {\n\n public void put(Integer x,Integer y,T element);\n public T get(Integer x, Integer y);\n}", "@Test\n public void testParseMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n Matrix data = reader.getMatrix();\n Matrix[] parsedMatrix = MatrixReader.parseMatrix(data, 10);\n assertEquals(parsedMatrix[0].get(4, 2), data.get(4, 2), 0.001);\n assertEquals(parsedMatrix[2].get(0, 0), data.get(32, 0), 0.001);\n assertEquals(parsedMatrix[1].get(0, 0), data.get(16, 0), 0.001);\n }", "public void matrizAdjunta (){\n float tablaA[][]= getMatriz();\n setMatrizAdjunta(new float[3][3]);\n getMatrizAdjunta()[0][0]=(tablaA[1][1]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][1]);\n getMatrizAdjunta()[0][1]=-((tablaA[0][1]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][1]));\n getMatrizAdjunta()[0][2]=(tablaA[0][1]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][1]);\n \n getMatrizAdjunta()[1][0]=-((tablaA[1][0]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][0]));\n getMatrizAdjunta()[1][2]=-((tablaA[0][0]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][0]));\n getMatrizAdjunta()[1][1]=(tablaA[0][0]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][0]);\n \n getMatrizAdjunta()[2][0]=(tablaA[1][0]*tablaA[2][1]) - (tablaA[1][1]*tablaA[2][0]);\n getMatrizAdjunta()[2][1]=-((tablaA[0][0]*tablaA[2][1]) - (tablaA[0][1]*tablaA[2][0]));\n getMatrizAdjunta()[2][2]=(tablaA[0][0]*tablaA[1][1]) - (tablaA[0][1]*tablaA[1][0]);\n mostrarMatriz(getMatrizAdjunta(),\"Matriz adjunta\");\n }", "Matrix mul(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] * m.data[i];\n }\n return matrix_to_return;\n }", "static void update(int[][] matrix){\n\t\tboolean rowFlag = false;\n\t\tboolean colFlag = false;\n\t\tint n = matrix.length;\n int m = matrix[0].length;\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n if(i==0 && matrix[i][j]==0){\n rowFlag =true;\n }\n if(j==0 && matrix[i][j]==0){\n colFlag = true;\n }\n if(matrix[i][j]==0){\n matrix[0][j] = 0;\n matrix[i][0] = 0;\n }\n }\n }\n for(int i=1;i<n;i++){\n for(int j=1;j<m;j++){\n if(matrix[i][0]==0||matrix[0][j]==0){\n matrix[i][j]=0;\n }\n }\n }\n if(rowFlag){\n for(int i=0;i<m;i++){\n matrix[0][i] =0 ;\n }\n }\n if(colFlag){\n for(int j=0;j<n;j++){\n matrix[j][0] = 0;\n }\n }\n\n\t}", "public static void main( String[] args ) {\n\tMatrix first = new Matrix();\n\tSystem.out.println(first);\n\tSystem.out.println(first.size());\n\tfirst.set(1,1,5);\n\tSystem.out.println(first.get(1,1)); //5\n\tSystem.out.println(first.isEmpty(1,1)); //false\n\tSystem.out.println(first.isEmpty(0,0)); //true\n\tSystem.out.println();\n\n\tMatrix second = new Matrix(2);\n\tSystem.out.println(second);\n\tSystem.out.println(second.size());\n\tsecond.set(1,1,5);\n\tSystem.out.println(second.get(1,1)); //5\n\tSystem.out.println(second.isEmpty(1,1)); //false\n\tSystem.out.println(second.isEmpty(0,0)); //true\n\tSystem.out.println();\n\n\tSystem.out.println(first.equals(second)); //true\n\n\tfirst.swapColumns(0,1);\n\tSystem.out.println(first);\n\tfirst.swapRows(0,1);\n\tSystem.out.println(first);\n\n\tSystem.out.println(first.isFull()); //false\n\t/*\n\t//System.out.println(first.getRow(0));\n\tSystem.out.println(first.setRow(0,first.getCol(0)));\n\tSystem.out.println(first);\n\t//System.out.println(first.getRow(0));\n\tSystem.out.println(first.setCol(0,first.getRow(0)));\n\tSystem.out.println(first);\n\t//System.out.println(first.getCol(0));\n\t*/\n\tfirst.set(1,0,6);\n\tfirst.set(1,1,7);\n\tfirst.set(0,1,8);\n\tSystem.out.println(first);\n\tfirst.transpose();\n\tSystem.out.println(first);\n\tSystem.out.println(first.contains(6)); //true\n\n }", "float[] getViewMatrix();", "public String toString() {\n\tString retStr = \"\";\n\tfor (int r = 0; r < this.size(); r++){\n\t for (int c = 0; c < this.size(); c++){\n\t\tretStr += matrix[r][c] + \"\\t\";\n\t }\n\t retStr += \"\\n\";\n\t}\n\treturn retStr;\n }", "protected abstract Matrix generateNewColorMatrix(Matrix rgb) throws IllegalArgumentException;", "private boolean isMatrix(String s) {\n\t\treturn (s.equals(\"A\") || s.equals(\"B\"));\n\t}", "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 Matrix(double[][] matrix) {\r\n this.matrix = matrix;\r\n }", "int getSize(){\n return this.matrixSize;\n }", "@Override\n\tpublic void setMatrix(int n) {\n\t\tthis.baris = DeretAngka.getLastTriAngluar(n);\n\t\tthis.kolom = n*n;\n\t\tthis.matrix = new String[this.baris][this.kolom];\n\t\t//int[] bil1 = {1,2,3,4};\n\t\t//int[] bil2 = {1,3,5,7};\n\t\t//int[] bil3 = {0,1,2,3};\n\t\tint[] bil4 = DeretAngka.getTriAngluar(n);//{0,1,3,6};\n\t\tint[] bil5 = DeretAngka.getPangkat(n);//{0,1,4,9};\n\t\tint addBangun = 1;\n\t\tint addGanjil = 1;\n\t\tfor(int bangun =0; bangun < n; bangun++) {\n\t\t\t//int pangkat = bangun * bangun; //0*0,1*1,2*2,3*3\n\t\t\tfor (int i = 0; i < addBangun; i++) {\n\t\t\t\tfor (int j = 0; j < addGanjil; j++) {\n\t\t\t\t\tif(i+j >= bangun && j - i <= bangun) {\n\t\t\t\t\t\tthis.matrix[i + bil4[bangun]][j+bil5[bangun]] = \"*\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\taddBangun = addBangun + 1;\n\t\t\taddGanjil = addGanjil + 2;\n\t\t}\n\t\t\n\t\t\n//\t\tfor (int i = 0; i < bil1[0]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[0]; j++) {\n//\t\t\t\tif(i+j >= 0 && j - i <= 0) {\n//\t\t\t\t\tthis.matrix[i+0][j+0] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n//\t\tfor (int i = 0; i < bil1[1]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[1]; j++) {\n//\t\t\t\tif(i+j >= 1 && j - i <= 1) {\n//\t\t\t\t\tthis.matrix[i+1][j+1] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n//\t\tfor (int i = 0; i < bil1[2]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[2]; j++) {\n//\t\t\t\tif(i+j >= 2 && j - i <= 2) {\n//\t\t\t\t\tthis.matrix[i+3][j+4] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n\t\t\n\t}", "Matrix transpose(){\n int newMatrixSize = this.getSize();\n Matrix newM = new Matrix(newMatrixSize);\n for(int i = 1; i <= newMatrixSize; i++){\n List itRow = rows[i - 1];\n // if(!itRow[i].isEmpty()){\n itRow.moveFront();\n // itRow[i].moveFront();\n while(itRow.index() != -1){\n Entry c = (Entry)itRow.get();\n newM.changeEntry(c.column, i, c.value);\n itRow.moveNext();\n }\n }\n return newM;\n }", "public Matrix() {\n\tmatrix = new Object[DEFAULT_SIZE][DEFAULT_SIZE];\n }", "public static void testMulRecStrassen() {\n\n try {\n\n Matrix m1 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m2 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m3 = Matrix.strassen(m1, m2);\n\n System.out.println(m3);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public interface IMatrixMultiplicator {\n\n\t/**\n\t * Multiplies two matrixes and returns the result in a new matrix \n\t * \n\t * @param matrixA first matrix\n\t * @param matrixB second matrix \n\t * @return result of the multiplication\n\t */\n\tpublic long multiplyMatrix(final Matrix matrixA, final Matrix matrixB, final Matrix res);\n\t \n\t\n}", "@Test\n public void testSetMatrixColumn() {\n final Matrix33d mBase = getMatrix();\n final Matrix33d m = getMatrix();\n final Vector3d v = new Vector3d(D10, D11, D12);\n\n m.setMatrixColumn(v, 1);\n for (int i = 0; i < m.getA().length; i++) {\n if (i > 2 && i < 6) {\n // compare the row set to the vector values\n int vectorIndex = i - 3;\n assertEquals(m.getA()[i], v.a[vectorIndex]);\n } else {\n assertEquals(m.getA()[i], mBase.getA()[i]);\n }\n }\n }", "public org.apache.spark.mllib.linalg.Matrix toLocalMatrix () { throw new RuntimeException(); }", "public void ConceptosMatrices() {\n int[][] maX={{5,6,6},\n {5,6,2},\n {5,12,2},\n {5,6,2}};\n //Obtener el tamaño de la fila de la matriz maX\n System.out.println(\"Tamaño en fila matriz maX=\"+maX.length);\n //Obtener el tamaño de la columna de la matriz maX\n System.out.println(\"Tamaño en fila matriz maX=\"+maX[0].length);\n System.out.println(\"Mostrar el valor 12 de la matriz maX=\"+maX[2][1]);\n //Cambiar el elemento 12 de la matriz maX por 16\n maX[2][1]=16;\n Scanner sc=new Scanner(System.in);\n System.out.println(\"Ingrese un valor en los indices 2,2\");\n maX[2][2]=sc.nextInt();\n \n System.out.println(\"Defina el indice para fila:\");\n int iFx=sc.nextInt(); \n int iCx=sc.nextInt(); \n System.out.println(\"Ingrese un valor en los indices \"+iFx+\", \"+iCx+\":\");\n maX[iFx][iCx]=sc.nextInt(); \n \n imprimirMatriz(maX);\n \n //defenir matrices sin dimensiones\n int[][] matrizN;\n //definiendo dimensiones a una matriz\n System.out.println(\"Ingrese la dimension en fila para la MatrizN=\");\n int inFi=sc.nextInt();\n System.out.println(\"Ingrese la dimension en columna para la MatrizN=\");\n int inCo=sc.nextInt();\n matrizN=new int[inFi][inCo]; \n int vi=0;\n //Rellenando una matriz con una serie de numeros\n for (int f = 0; f < matrizN.length; f++) {\n for (int c = 0; c < matrizN[0].length; c++) {\n System.out.println(\"Ingrese un valor en matrizN[\"+f+\"][\"+c+\"]:=\");\n matrizN[f][c]=sc.nextInt();\n vi=vi+2;\n } \n } \n System.out.println(\"la nueva matrizN es de: \"+matrizN.length+\"x\"+matrizN[0].length);\n imprimirMatriz(matrizN); \n\n }", "MatrixParameter createMatrixParameter();", "Matriz evaluar(Matriz A);", "public static String[] MatrixSolve(Matrix M){\n String[] retArray = new String[M.kol];\n for (int i=1; i<M.kol; i++) {\n retArray[i] = Character.toString((char) (i + 96));\n }\n for (int i=M.bar; i>=1; i--) {\n if (!M.IsRowCoefZero(i)) {\n if (M.OnlyLeadingOne(i)) {\n //Hanya ada leading one pada baris ke-i\n retArray[M.PosLeadingElmt(i)] = Double.toString(M.Elmt(i,M.kol));\n }else{\n //Ada elemen non-0 setelah leading one pada baris ke-i\n double resDouble = M.Elmt(i,M.kol);\n String resString = \"\";\n for (int j=M.PosLeadingElmt(i)+1; j<M.kol; j++) {\n if (M.Elmt(i,j) != 0) {\n //Kondisi elemen M ke i,j bukan 0\n try {\n //Jika hasil ke-x merupakan bilangan, maka jumlahkan dengan elemen hasil\n if (retArray[j].contains(\"d\")) {\n throw new NumberFormatException(\"contains d\");\n }\n resDouble += (-1)*M.Elmt(i,j)*Double.valueOf(retArray[j]);\n } catch(NumberFormatException e) {\n //Jika hasil ke-x bukan bilangan, sambungkan koefisien dengan parameter yang sesuai\n resString += ConCoefParam((-1)*M.Elmt(i,j),retArray[j]);\n }\n }\n }\n //Gabungkan bilangan hasil dengan parameter\n if (resDouble != 0) {\n retArray[M.PosLeadingElmt(i)] = String.format(\"%.3f\",resDouble) + resString;\n }else if (resDouble == 0 && resString == \"\"){\n retArray[M.PosLeadingElmt(i)] = String.format(\"%.3f\",resDouble);\n }else{\n retArray[M.PosLeadingElmt(i)] = resString;\n }\n\n if (retArray[M.PosLeadingElmt(i)].startsWith(\"+\")){\n retArray[M.PosLeadingElmt(i)] = retArray[M.PosLeadingElmt(i)].substring(1);\n }\n }\n }\n }\n return retArray;\n}", "public Matrix asMatrix() {\n Matrix result;\n try {\n result = new Matrix(COMPONENTS, 1);\n asMatrix(result);\n } catch (final WrongSizeException ignore) {\n // never happens\n result = null;\n }\n return result;\n }", "@Test\n public void testIdentity() {\n final double junk[] = new double[Matrix33d.LENGTH];\n for (int i = 0; i < Matrix33d.LENGTH; i++) {\n junk[i] = 1089.1451D;\n }\n final Matrix33d m = new Matrix33d();\n m.setA(junk);\n\n m.identity();\n final double a[] = m.getA();\n for (int i = 0; i < a.length; i++) {\n if (i == 0 || i == 4 || i == 8) {\n assertEquals(a[i], 1D);\n } else {\n assertEquals(a[i], 0D);\n }\n }\n }", "float[] getModelMatrix();", "Matrix<T> getTransposed();", "public Matrix33() {\r\n // empty\r\n }", "private int matrixRowToGridVal(int i) \n {\n return i % gDim + 1;\n }", "@Test\n public void testMatrixCreation() throws Exception {\n\n testUtilities_3.createAndTestMatrix(false);\n\n }", "private void imprimirMatriz(int[][] m) {\n\n\t\tSystem.out.println(\"-------------------------------------------\");\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tSystem.out.println(\"M[\" + i + \"][\" + j + \"] = \" + m[i][j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"-------------------------------------------\");\n\t}", "@Override\n public String toString() {\n StringBuilder matrixValues = new StringBuilder(\"\\nMatrix : \"\n + values.length + \"x\" + values[0].length + \"\\n\");\n for (int[] row : values) {\n for (int value : row) {\n matrixValues.append(value + \" \");\n }\n matrixValues.append(\"\\n\");\n }\n return matrixValues.toString();\n }", "public Estados[][] getMatrix() {\n return matrix;\n }", "private void buildMatrix() {\n\n int totalnumber=this.patents.size()*this.patents.size();\n\n\n\n int currentnumber=0;\n\n\n for(int i=0;i<this.patents.size();i++) {\n ArrayList<Double> temp_a=new ArrayList<>();\n for (int j=0;j<this.patents.size();j++) {\n if (i==j) temp_a.add(0.0); else if (i<j)\n {\n double temp = distance.distance(this.patents.get(i), this.patents.get(j));\n temp = (new BigDecimal(temp).setScale(2, RoundingMode.UP)).doubleValue();\n temp_a.add(temp);\n\n\n // simMatrix.get(i).set(j, temp);\n // simMatrix.get(j).set(i, temp);\n } else {\n temp_a.add(simMatrix.get(j).get(i));\n }\n currentnumber++;\n System.out.print(\"\\r\"+ProgressBar.barString((int)((currentnumber*100/totalnumber)))+\" \"+currentnumber);\n\n }\n simMatrix.add(temp_a);\n }\n System.out.println();\n\n }", "static Matrix vectorize(Matrix input) {\n int m = input.getRowDimension();\n int n = input.getColumnDimension();\n\n Matrix result = new Matrix(m * n, 1);\n for (int p = 0; p < n; p++) {\n for (int q = 0; q < m; q++) {\n result.set(p * m + q, 0, input.get(q, p));\n }\n }\n return result;\n }", "public Matrix(int[][] array){\n this.matriz = array;\n }", "public Matrix(int[][] array)\n {\n matrix = array;\n }", "Matrix sumRows(){\n Matrix matrix_to_return = new Matrix(1, this.cols);\n double[][] tmp = this.asArray();\n int k=0;\n for(int i=0; i<this.cols; i++){\n for(int j=0; j<this.rows; j++) {\n matrix_to_return.data[k] += tmp[j][i];\n }\n k++;\n }\n return matrix_to_return;\n }", "void fillMatrixFromQuaternion(DoubleBuffer matrix, double m_x, double m_y, double m_z, double m_w)\n\t{\t\t\n\t\t// First row\n\t\tmatrix.put(1.0 - 2.0 * ( m_y * m_y + m_z * m_z ));\n\t\tmatrix.put(2.0 * (m_x * m_y + m_z * m_w));\n\t\tmatrix.put(2.0 * (m_x * m_z - m_y * m_w));\n\t\tmatrix.put(0.0);\n\t\t\n\t\t// Second row\n\t\tmatrix.put(2.0 * ( m_x * m_y - m_z * m_w ));\n\t\tmatrix.put(1.0 - 2.0 * ( m_x * m_x + m_z * m_z ));\n\t\tmatrix.put(2.0 * (m_z * m_y + m_x * m_w ));\n\t\tmatrix.put(0.0);\n\n\t\t// Third row\n\t\tmatrix.put(2.0 * ( m_x * m_z + m_y * m_w ));\n\t\tmatrix.put(2.0 * ( m_y * m_z - m_x * m_w ));\n\t\tmatrix.put(1.0 - 2.0 * ( m_x * m_x + m_y * m_y ));\n\t\tmatrix.put(0.0);\n\n\t\t// Fourth row\n\t\tmatrix.put(0.0);\n\t\tmatrix.put(0.0);\n\t\tmatrix.put(0.0);\n\t\tmatrix.put(1.0);\n\t\t\n\t\tmatrix.flip();\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint [][] matrix={\r\n\t\t\t\t{10,15,2,76,-9},\r\n\t\t\t\t{85,-22,4,35,99},\r\n\t\t\t\t{64,68,31,7,-3},\r\n\t\t\t\t{1,53,94,33,8}\r\n\t\t};\r\n\t\t\r\n\t\tfor(int[] fila:matrix){\r\n\t\t\tSystem.out.println();//le da salto de linea cuando termina cada fila\r\n\t\t\tfor (int z:fila){\r\n\t\t\t\tSystem.out.print(z + \" \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*int [][] matrix= new int[4][5];//primera dimension, segunda dimension\r\n\t\t\r\n\t\tmatrix [0][0]=5;\r\n\t\tmatrix [0][1]=18;\r\n\t\tmatrix [0][2]=29;\r\n\t\tmatrix [0][3]=80;\r\n\t\tmatrix [0][4]=3;\r\n\t\t\r\n\t\tmatrix [1][0]=-9;\r\n\t\tmatrix [1][1]=71;\r\n\t\tmatrix [1][2]=32;\r\n\t\tmatrix [1][3]=-24;\r\n\t\tmatrix [1][4]=62;\r\n\t\t\r\n\t\tmatrix [2][0]=54;\r\n\t\tmatrix [2][1]=22;\r\n\t\tmatrix [2][2]=-39;\r\n\t\tmatrix [2][3]=1;\r\n\t\tmatrix [2][4]=97;\r\n\t\t\r\n\t\tmatrix [3][0]=74;\r\n\t\tmatrix [3][1]=43;\r\n\t\tmatrix [3][2]=39;\r\n\t\tmatrix [3][3]=96;\r\n\t\tmatrix [3][4]=-63;\r\n\r\n\t\tfor (int i=0; i<4; i++){\r\n\t\t\tSystem.out.println();\r\n\t\t\tfor (int j=0; j<5; j++){\r\n\t\t\t\tSystem.out.print(matrix[i][j] + \" \");\r\n\t\t\t}\r\n\t\t}*/\r\n\t}", "public String toString(){\n StringBuffer returnString = new StringBuffer();\n for(int i = 0; i < this.matrixSize; i++){\n if(rows[i].length() != 0){\n returnString.append((i+1) + \":\" + rows[i]+ \"\\n\");\n }\n }\n return returnString.toString();\n }", "public int[][] turfu() {\r\n\t\tint[][] tab = new int[matrice[0].length][matrice.length]; \r\n\t\tint n =0; \r\n\t\tfor(int i=0; i<tab.length; i++) {\r\n\t\t\tfor(int j=0; j< tab[0].length; j++) {\r\n\t\t\t\ttab[i][j] = matrice[j][n]; \r\n\t\t\t}\r\n\t\t\tn++;\r\n\t\t}\r\n\t\treturn tab; \r\n\t}", "public static void main(String[] args) {\n int cols1, cols2, rows1, rows2, num_usu1, num_usu2;\r\n \r\n try{\r\n \r\n cols1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de colunas para a primeira matriz:\"));\r\n rows1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de linhas para a primeira matriz:\"));\r\n cols2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de colunas para a segunda matriz:\"));\r\n rows2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de linhas para a segunda matriz:\"));\r\n \r\n int[][] matriz1 = MatrixInt.newRandomMatrix(cols1, rows1);\r\n int[][] matriz2 = MatrixInt.newSequentialMatrix(cols2, rows2);\r\n \r\n System.out.println(\"Primeira matriz:\");\r\n MatrixInt.imprimir(matriz1);\r\n System.out.println(\" \");\r\n System.out.println(\"Segunda matriz:\");\r\n MatrixInt.imprimir(matriz2);\r\n System.out.println(\" \");\r\n \r\n MatrixInt.revert(matriz2);\r\n \r\n System.out.println(\"Matriz sequancial invertida:\");\r\n MatrixInt.imprimir(matriz2);\r\n \r\n System.out.println(\" \");\r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria:\");\r\n MatrixInt.imprimir(matriz1);\r\n System.out.println(\" \");\r\n \r\n num_usu1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe um numero qualquer:\"));\r\n \r\n for1: for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n if(num_usu1 == matriz1[i][j]){\r\n System.out.println(\"O numero '\"+num_usu1+\"' foi encontardo na posição:\" + i);\r\n break for1;\r\n }else if(j == (matriz1[i].length - 1) && i == (matriz1.length - 1)){\r\n System.out.println(\"Não foi encontrado o numero '\"+num_usu1+\"' no vetor aleatorio.\");\r\n break for1;\r\n } \r\n }\r\n }\r\n \r\n String menores = \"\", maiores = \"\";\r\n for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n if(num_usu1 > matriz1[i][j]){\r\n menores = menores + matriz1[i][j] + \", \";\r\n }else if(num_usu1 < matriz1[i][j]){\r\n maiores = maiores + matriz1[i][j] + \", \";\r\n }\r\n }\r\n }\r\n System.out.println(\" \");\r\n System.out.print(\"Numeros menores que '\"+num_usu1+\"' :\");\r\n System.out.println(menores);\r\n System.out.print(\"Numeros maiores que '\"+num_usu1+\"' :\");\r\n System.out.println(maiores);\r\n \r\n num_usu2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe um numero que exista na matriz aleatoria:\"));\r\n \r\n int trocas = MatrixInt.replace(matriz1, num_usu2, num_usu1);\r\n \r\n if (trocas == 0) {\r\n System.out.println(\" \");\r\n System.out.println(\"Não foi realizada nenhuma troca de valores.\");\r\n }else{\r\n System.out.println(\" \");\r\n System.out.println(\"O numero de trocas realizadas foi: \"+trocas);\r\n }\r\n \r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria:\");\r\n MatrixInt.imprimir(matriz1);\r\n \r\n int soma_total = 0;\r\n for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n soma_total += matriz1[i][j];\r\n }\r\n \r\n }\r\n System.out.println(\" \");\r\n System.out.println(\"A soma dos numeros da matriz foi: \" + soma_total);\r\n \r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria\");\r\n Exercicio2.imprimir(matriz1);\r\n System.out.println(\" \");\r\n System.out.println(\"Matriz sequencial\");\r\n Exercicio2.imprimir2(matriz2);\r\n \r\n }catch(Exception e){\r\n System.out.println(e);\r\n }\r\n \r\n \r\n \r\n }", "public SimpleMatrix( Matrix orig ) {\n Matrix mat;\n if (orig instanceof DMatrixRBlock) {\n DMatrixRMaj a = new DMatrixRMaj(orig.getNumRows(), orig.getNumCols());\n DConvertMatrixStruct.convert((DMatrixRBlock)orig, a);\n mat = a;\n } else if (orig instanceof FMatrixRBlock) {\n FMatrixRMaj a = new FMatrixRMaj(orig.getNumRows(), orig.getNumCols());\n FConvertMatrixStruct.convert((FMatrixRBlock)orig, a);\n mat = a;\n } else {\n mat = orig.copy();\n }\n setMatrix(mat);\n }", "private static ArrayList<ArrayList<Integer>> transposeMatrix(ArrayList<ArrayList<Integer>> matrix){\r\n\t\tint numRows = matrix.size();\r\n\t\tint numCols = matrix.get(0).size();\r\n\t\tArrayList<ArrayList<Integer>> newMat = new ArrayList<ArrayList<Integer>>();\r\n\t\t//Put this in second for-loop to not have to loop twice?\r\n\t\tfor(int i = 0; i < numCols; i++) newMat.add(new ArrayList<Integer>());\r\n\t\tfor(int i = 0; i < numRows; i++){\r\n\t\t\tfor (int j = 0; j < numCols; j++){\r\n\t\t\t\tnewMat.get(j).add(matrix.get(i).get(j));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn newMat;\r\n\t}", "public E[][] getMatrix() {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tE[][] matrix = (E[][]) new Object[mColumnCount][mRowCount];\r\n\t\tfor(int i=0; i<mColumnCount; i++)\r\n\t\t\tfor(int j=0; j<mRowCount; j++)\r\n\t\t\t\tmatrix[i][j] = getFromArray(i, j);\r\n\t\treturn matrix;\r\n\t}", "private void getProperBaseMatrix(Matrix matrix) \r\n {\r\n \tif(mViewWidth == 0)\r\n \t\treturn;\r\n \t\r\n \tfloat w = mRoBitmap.getWidth();\r\n \tfloat h = mRoBitmap.getHeight();\r\n \t\r\n matrix.reset();\r\n // We limit up-scaling to 3x otherwise the result may look bad if it's\r\n // a small icon.\r\n float widthScale = (float)((float)mViewWidth / w);//Math.min((float)((float)mViewWidth / w), 3.0f);\r\n float heightScale = (float)((float)mViewHeight / h);//Math.min((float)((float)mViewHeight / h), 3.0f);\r\n float scale = Math.max(widthScale, heightScale);\r\n \r\n matrix.postConcat(mRoBitmap.getRotateMatrix());\r\n matrix.postScale(scale, scale);\r\n\r\n matrix.postTranslate(\r\n (mViewWidth - w * scale) / 2F,\r\n (mViewHeight - h * scale) / 2F);\r\n }", "private int matrixRowToGridRow(int i) \n {\n return i / dimSquared + 1;\n }", "public interface IMatrix extends IArray<IMatrix>{\n\n IVector getRow(int index);\n\n IVector getColumn(int index);\n\n// IMatrix addi(IMatrix mat);\n\n// IMatrix subi(IMatrix mat);\n\n double[][] asDouble();\n\n float[][] asFloat();\n\n IMatrix subiColumn(int index, IVector vec);\n\n// IMatrix dup();\n\n IMatrix putiRow(int index, IVector vec);\n\n int rows();\n\n int columns();\n}", "public boolean checkmatorder()\n\t{\n\t\torderflag=false;\n\t\tif(height<width)\n\t\t{\n\t\t\tmatrix=new double[height][width];\n\t\t\torderflag=true;\n\t\t}\n\t\telse if(height>=width)\n\t\t{\n\t\t\tmatrix=new double[width][height];\n\t\t}\t\n\t\treturn orderflag;\n\t}", "private boolean isMatrix(Object o) {\n\t\tif(o instanceof String) return isMatrix((String) o);\n\t\telse if(o instanceof Matrix) return true;\n\t\telse return false;\n\t}", "float[] getMVPMatrix();", "Matrix(double[][] input) {\n matrixVar = input;\n columns = matrixVar[0].length;\n rows = matrixVar.length;\n }", "public int[][] generateMatrix(int n) {\n\t \n\t int matrix[][] = new int[n][n];\n\t int count = n * n +1;\n int topRow = 0;\n int bottomRow = n-1;\n int leftmostColumn = 0;\n int rightmostColumn = n -1;\n int added = 0;\n\t \n\t \n\t while(leftmostColumn <= rightmostColumn && topRow<= bottomRow && added <= count){\n \n \n \tif(added != count){\n for(int i = leftmostColumn; i <= rightmostColumn;i++){\n \t matrix[topRow][i] = added +1;\n // #arrList.add(matrix[topRow][i]);\n added = added+1;\n /* if(added == count)\n \tbreak;*/\n }\n topRow = topRow +1;\n \t}\n \n \n \tif(added != count){\t\n for(int j = topRow; j <= bottomRow;j++){\n //arrList.add(matrix[j][rightmostColumn]);\n \t matrix[j][rightmostColumn] = added+1;\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n rightmostColumn = rightmostColumn -1;\n \t} \n \t\n \t\n \tif(added != count){\t\n for(int k = rightmostColumn; k >= leftmostColumn; k--){\n \t matrix[bottomRow][k] = added +1;\n //arrList.add(matrix[bottomRow][k]);\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n bottomRow = bottomRow -1;\n \t}\n \t\n \t\n \tif(added != count){\t\n for(int l = bottomRow; l >= topRow ;l--){\n // arrList.add(matrix[l][leftmostColumn]);\n \t matrix[l][leftmostColumn] = added +1;\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n leftmostColumn = leftmostColumn +1;\n \t}\n \n }\n\t \n\t return matrix;\n \n}", "public char[][] getMatrixForm( String aColor )\r\n{\r\n\tchar c = constructionCharacter; // for brevity\r\n\r\n\t// Fill in the actual big letter. line by line\t\r\n\tmatrix[0][0] = c; matrix[0][1] = c; matrix[0][2] = c; \r\n\tmatrix[1][0] = c; matrix[1][4] = c;\r\n\tmatrix[2][0] = c; matrix[2][4] = c;\r\n\tmatrix[3][0] = c; matrix[3][1] = c;\r\n\tmatrix[4][0] = c; matrix[4][4] = c;\r\n\tmatrix[5][0] = c; matrix[5][4] = c;\r\n\tmatrix[6][0] = c; matrix[6][1] = c; matrix[6][2] = c; \r\n\t\r\n\t// Superimpose the color characters across the middle\t\r\n\tmatrix[3][0] = '-'; // required to precede the color characters as in \"-red\"\r\n\tfor( int i = 1; i < BigChar.MATRIX_WIDTH; ++i ) // go all the way across \r\n\t\tif( i <= aColor.length() ) // there is a color character to pick up\t\r\n\t\t\tmatrix[ 3 ][ i ] = aColor.charAt( i -1 ); // fill in the next color character\r\n\t\telse\r\n\t\t\tmatrix[ 3 ][ i ] = ' '; // pad on right with blanks\r\n\t\r\n\treturn matrix; \r\n}", "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}", "public ArrayList<ArrayList<T>> getMatrix() {\n\t\treturn matrix;\n\t}", "public int[][] MatrizPesos(){\n return this.mat;\n }", "public static void generatetripletmatrix() {\n\t\tresultMatrix = new int[3][numNonZero];\n\n\t // Generating result matrix\n\t int k = 0;\n\t for (int ro = 0; ro < row; ro++) {\n\t for (int column = 0; column < 6; column++) {\n\t if (matrix[ro][column] != 0)\n\t {\n\t resultMatrix[0][k] = ro;\n\t resultMatrix[1][k] = column;\n\t resultMatrix[2][k] = matrix[ro][column];\n\t k++;\n\t }\n\t }\n\t }\n\t \n\t}", "void update() {\n matrix();\n }", "private int matrixRowToGridCol(int i) \n {\n return (i % dimSquared) / gDim + 1;\n }" ]
[ "0.67400867", "0.6726123", "0.6489022", "0.6464256", "0.6404917", "0.63635427", "0.63492924", "0.6233953", "0.6195012", "0.6189188", "0.61866647", "0.6185937", "0.6177345", "0.6154837", "0.6124182", "0.608492", "0.6079708", "0.60273194", "0.60072494", "0.60058284", "0.59827036", "0.5977118", "0.5952282", "0.59514445", "0.5950858", "0.5931915", "0.59129995", "0.5896905", "0.5891949", "0.58907115", "0.5886188", "0.5884331", "0.5881528", "0.5878586", "0.5877942", "0.5874401", "0.58720756", "0.5865664", "0.585828", "0.5855728", "0.5848411", "0.58482635", "0.58222246", "0.58160424", "0.5813942", "0.5808217", "0.578457", "0.57837635", "0.5781994", "0.57797146", "0.5769895", "0.5769786", "0.57667977", "0.5765559", "0.57634974", "0.5760533", "0.57569546", "0.57561845", "0.57429254", "0.5734974", "0.57297313", "0.57292634", "0.5715815", "0.5713963", "0.5713313", "0.570798", "0.5706635", "0.5696791", "0.5684003", "0.5673557", "0.56674445", "0.5665841", "0.5664608", "0.5664194", "0.56618726", "0.56605697", "0.5659769", "0.565253", "0.5646456", "0.56425464", "0.5630521", "0.5628429", "0.5627822", "0.56202686", "0.5617396", "0.5616903", "0.5616161", "0.56150854", "0.5610397", "0.5608537", "0.56018186", "0.55920714", "0.558478", "0.558303", "0.5573623", "0.5571991", "0.5568199", "0.55655974", "0.55587775", "0.55560815", "0.55520684" ]
0.0
-1
calculates F^n in O(log n) time using exponentiation by squaring
public static long[][] powerMod(long F[][], long n){ if(n == 0){ return new long[][]{{1,1},{1,0}}; } if(n == 1){ return F; } if(n % 2 == 0){ return powerMod(multiplyMod(F,F), n/2); }else{ return multiplyMod(F, powerMod(multiplyMod(F,F), (n-1)/2)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static float powerOfTwoF(int n) {\n return Float.intBitsToFloat(((n + FloatConsts.MAX_EXPONENT) <<\n (FloatConsts.SIGNIFICAND_WIDTH-1))\n & FloatConsts.EXP_BIT_MASK);\n }", "static void power(BigInteger F[][], int n) \n\t { \n\t if( n == 0 || n == 1) \n\t return; \n\t \t \n\t power(F, n/2); \n\t multiply(F, F); \n\t \n\t if (n%2 != 0) \n\t multiply(F, M); \n\t }", "int main(){\n int n, f = 1;\n cin>>n;\n for(int i = 1;i <= n;i++)\n f*=i;\n cout<<f;\n}", "int main(){\n int f =1,n,i;\n cin>>n;\n for(i=2;i<=n;i++)\n f *= i;\n cout<<f;\n return 0;\n \n}", "public static long[][] power(long F[][], long n){\n if(n == 0){\n return new long[][]{{1,1},{1,0}};\n }\n if(n == 1){\n return F;\n }\n if(n % 2 == 0){\n return power(multiply(F,F), n/2);\n }else{\n return multiply(F, power(multiply(F,F), (n-1)/2));\n }\n }", "public static int f5(int N) { \n int x = 0;\n // log(n)\n for(int i = N; i > 0; i = i/2)\n // O(n) + O(n/2) + O(n/4)\n x += f1(i);\n \n return x; \n \n }", "public int pow (int x, int n) {\n\tif (n == 0)\n\t\treturn 1;\n\tif (n == 1)\n\t\treturn x;\n\tint t = pow (x, n/2);\n\tt *= t;\n\tif (n % 2 == 1)\n\t\tt *= x;\n\treturn t;\n}", "public double pow(double x, int n) {\n\n double result = 1.0;\n if (n == 0) {\n return result;\n }\n\n boolean neg = false;\n if (n < 0) {\n neg = true;\n n = -n;\n }\n\n while (n > 0) {\n if ((n % 2) == 1) {\n result *= x;\n }\n n = n / 2;\n x = x * x;\n }\n return neg ? 1.0 / result : result;\n }", "public static double power(double a, int n) {\n\t double result=1;\n\t for(int i=0;i<n;i++) {\n\t result=result*a;\n\t }\n\t return result;\n\t }", "public static BigInteger fact(int n) {\n\t\t\t if (! fact_cache.containsKey(n)) {\n\t\t\t BigInteger f = BI1;\n\t\t\t for (int i=1; i < n-1; i++) {\n\t\t\t f = f.multiply(oddprod(BI3, BI2.pow(i+1).subtract(BI1)));\n\t\t\t }\n\t\t\t f = bigpow(BI2, BI2.pow(n).subtract(BI1)).multiply(f);\n\t\t\t fact_cache.put(n, f);\n\t\t\t }\n\t\t\t return fact_cache.get(n);\n\t\t\t }", "private static double fact(int n) {\n\t\tdouble sum = 1;\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tsum *= i;\n\t\t}\n\t\treturn sum;\n\t}", "public static long fact(int n) {\n if (n <= 0) return 1;\n long f = 1;\n for (int i = 1; i <= n; i++) {\n f *= i;\n }\n return f;\n }", "public static long longFastFib(int n) {\n\t\tlong a = 1;\n\t\tlong b = 0;\n\t\t\n\t\tlong temp = 0;\n\t\tfor(int i=0; i<n-1; i++){\n\t\t\ttemp = a;\n\t\t\ta += b;\n\t\t\tb = temp;\n\t\t\tif(a<0){\n\t\t\t\tSystem.out.println(\"Int overflow\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n return a; \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n \n }", "public double pow(double x, int n) {\n if (n == Integer.MIN_VALUE) {\n return 0.0; // Cannot use -n to make it positive, so n%2 is -1 at first, then the result is 1. \n }\n \n if (n < 0) {\n return 1 / powHelper(x, -n); \n } else {\n return powHelper(x, n); \n }\n }", "public static double pow(double x, int n) {\n\t\treturn powLong(x,n);\n }", "private static int fact(int n) {\n\t\tint prod = 1;\n\t\tfor (int i = 1; i <= n; prod *= i++)\n\t\t\t;\n\t\treturn prod;\n\t}", "public static int f7(int N) { \n if (N == 1) \n return 0;\n return 1 + f7(N/2);\n }", "public int calcularFatorial(int n) throws IllegalArgumentException {\n\t\tif(n<0) \n\t\t\tthrow new IllegalArgumentException(\"não existe fatorial para numeros negativo\");\n\t\tint resultado = 1;\n\t\tif (n!=0) {\n\t \tfor(int i = 2 ;i<=n;i++)\n\t \t resultado*=i;\n\t\t}\n\t\n\t\treturn resultado;\n\n\t}", "public double myPow(double x, int n) {\n // write your code here\n boolean neg = false;\n if (n < 0) {\n x = 1 / x;\n n = - (n + 1);\n neg = true;\n }\n\n double ans = 1, base = x;\n while (n > 0) {\n if (n % 2 == 1) {\n ans *= base;\n }\n base *= base;\n n /= 2;\n }\n\n if (neg) ans *= x;\n return ans;\n }", "static BigInteger fact(int n)\n {\n BigInteger res = BigInteger.ONE;\n for (int i = 2; i <= n; i++)\n res = res.multiply(BigInteger.valueOf(i));\n return res;\n }", "public static double factorial(long n){\n\tdouble fac = 1;\n\tif(n <= 0) return fac;\n\tfor (int i=1; i<=n; i++) fac *= i;\n\treturn fac;\n }", "public double f(double x) {\r\n\t\treturn this._coefficient*Math.pow(x, this._power);\r\n\t}", "static double powerOfTwoD(int n) {\n return Double.longBitsToDouble((((long)n + (long)DoubleConsts.MAX_EXPONENT) <<\n (DoubleConsts.SIGNIFICAND_WIDTH-1))\n & DoubleConsts.EXP_BIT_MASK);\n }", "public static double power2(double x, int n) {\n if (n == 0)\n return 1;\n else {\n double partial = power2(x, n / 2); // rely on truncated division of n\n double result = partial * partial;\n if (n % 2 == 1) // if n odd, include extra factor of x\n result *= x;\n return result;\n }\n }", "public static int FermatPT(int n) {\n\n for (int i = 2; i < (n/3); i++) {\n\n if((longPow(i,n-1,n))!=1){\n return i;\n }\n\n }\n\n\t\treturn 0;\n\t}", "static int fact(int n)\n\n {\n\n int res = 1;\n\n for (int i = 2; i <= n; i++)\n\n res = res * i;\n\n return res;\n\n }", "public static double mathConst(double x, int n){\n double result = 0;\n double item;\n double nominator = 1;\n for(int i = 0; i <= n; i++){\n if(i == 0){\n nominator = 1;\n }else {\n nominator = nominator * x;\n }\n item = nominator / factorial(i);\n result = result + item;\n }\n return result;\n }", "public double myPow(double x, int n) {\n if (n == 0) {\n \treturn 1;\n }\n if (n == 1) {\n \treturn x;\n }\n if (n == -1) {\n \treturn 1 / x;\n }\n double num = myPow(x, n / 2);\n return num * num * myPow(x, n % 2);\n }", "public static long optimisedFib(long n){\n\n if(memo.containsKey(n)){\n return memo.get(n);\n }\n\n if(n < 2){\n memo.put(n, n);\n return n;\n }\n\n long f = optimisedFib(n-1) + optimisedFib(n-2);\n memo.put(n, f);\n\n return f ;\n\n }", "static BigInteger Product(int N) { \n BigInteger f = new BigInteger(\"1\"); \n for (int i = 2; i <= N; i++) \n f = f.multiply(BigInteger.valueOf(i)); \n \treturn f; \n }", "public double myPowIter(double x, int n) {\n\t\tif (n == 0)\n\t\t\treturn 1;\n\n\t\tif (n < 0) {\n\t\t\tn = -n;\n\t\t\tx = 1 / x;\n\t\t}\n\t\tdouble ans = 1;\n\t\twhile (n > 0) {\n\t\t\tif ((n & 1) == 1)\n\t\t\t\tans *= x;\n\t\t\tx *= x;\n\t\t\tn >>= 1;\n\t\t}\n\t\treturn ans;\n\t}", "private double f(double x) {\n return (1 / (1 + Math.exp(-x)));\n }", "public int getExponent( double f ) {\r\n \r\n int exp = (int)( Math.log( f ) / Math.log( 2 ) );\r\n \r\n return exp;\r\n \r\n }", "public static long F(long n) {\n\t\tif (n <= 4) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (n==5) {\n\t\t\treturn 8;\n\t\t} if (n==6) {\n\t\t\treturn 45;\n\t\t} if (n==7) {\n\t\t\treturn 138;\n\t\t} if (n==8) {\n\t\t\treturn 362;\n\t\t}\n\t\t\n\t\tlong m = 9;\n\t\t// F(7) = 138, F(8) = 362\n\t\tlong recPrev=138;\n\t\tlong recCurrent=362;\n\n\t\twhile (n >= m) {\t\n\t\t\tif (m %6 == 0) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 38;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6== 1) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 36;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6==2 || m%6==3 || m%6==5) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 32;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6==4){\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 30;\n\t\t\t\trecPrev = current;\n\t\t\t}\n\t\t\tm +=1;\n\t\t}\n\t\treturn recCurrent;\n\t}", "public static long computeFactorial(int n) {\n if(n<0 || n > 15) throw new IllegalArgumentException(\"Invalid input. N must be >= 0 \");\n if(n==0 || n==1)\n return 1;\n //ddieu kien dung cua de quy \n //song sot den lenh cho nayf thi n chac chan roi vao 2.......15\n return n*computeFactorial(n-1); // n*(n-1)\n \n }", "private static BigInteger[][] power(BigInteger[][] base, long n)\n {\n if (n == 0 || n == 1) return atom;\n \n BigInteger fib[][] = power(base, n/2);\n fib = Fibonacci.multiply(fib, fib);\n if (n%2 == 1) fib = Fibonacci.multiply(fib, base);\n \n return fib;\n }", "public static int fastFib(int n) {\n\t\t\n\t\tint a = 1;\n\t\tint b = 0;\n\t\t\n\t\tint temp = 0;\n\t\tfor(int i=0; i<n-1; i++){\n\t\t\ttemp = a;\n\t\t\ta += b;\n\t\t\tb = temp;\n\t\t\tif(a<0){\n\t\t\t\tSystem.out.println(\"Int overflow\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n return a; \n \n\t}", "public ComplexNumber power(int n) {\n\t\tif (n < 0) {\n\t\t\tthrow new IllegalArgumentException(\"The exponent must be a positive number.\");\n\t\t}\n\t\tdouble magnitude = getMagnitude();\n\t\tmagnitude = Math.pow(magnitude, n);\n\n\t\tdouble angle = getAngle();\n\t\tangle *= n;\n\t\tangle %= (2 * Math.PI);\n\n\t\treturn fromMagnitudeAndAngle(magnitude, angle);\n\t}", "static int exp(int base, long n) {\n\n // 2^3=8 , 2^x=8 -> x = ln8/ln2 , otherwise x=Math.log(8)/Math/log(2)\n\n return (int) ( Math.log(n)/Math.log(base) );\n }", "public static int f6(int N) { \n if (N == 0)\n return 1;\n return f6(N-1) + f6(N-1);\n \n }", "double rpow(int x, int n) {\r\n\t\tif (n == 0)\r\n\t\t\treturn 1.0;\r\n\t\treturn x * rpow(x, n - 1);\r\n\t}", "static double k(int n, final double x) {\n n = Math.abs(n);\n if (n > 31) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n if (x <= 0) {\n return Double.NaN; // domain error or singularity\n }\n if (x <= 9.55) {\n double ans = 0;\n final double z0 = 0.25 * x * x;\n double fn = 1;\n double pn = 0;\n double zmn = 1;\n final double tox = 2 / x;\n double s, t, k;\n\n if (n > 0) {\n // compute factorial of n and psi(n)\n pn = -Constants.EULER;\n k = 1;\n for (int i = 1; i < n; ++i) {\n pn += 1 / k;\n fn *= ++k;\n }\n zmn = tox;\n if (n == 1) {\n ans = 1 / x;\n } else {\n double nk1f = fn / n;\n double kf = 1;\n s = nk1f;\n final double z = -z0;\n double zn = 1;\n for (int i = 1; i < n; ++i) {\n nk1f /= (double) (n - i);\n kf *= (double) i;\n zn *= z;\n t = nk1f * zn / kf;\n s += t;\n if ((Double.MAX_VALUE - Math.abs(t)) < Math.abs(s)) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n if (tox > 1 && Double.MAX_VALUE / tox < zmn) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n zmn *= tox;\n }\n s *= 0.5;\n t = Math.abs(s);\n if (zmn > 1 && Double.MAX_VALUE / zmn < t) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n if (t > 1 && Double.MAX_VALUE / t < zmn) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n ans = s * zmn;\n }\n }\n final double t1g = 2 * Math.log(0.5 * x);\n double pk = -Constants.EULER;\n if (n == 0) {\n pn = pk;\n t = 1;\n } else {\n pn += 1.0 / n;\n t = 1 / fn;\n }\n s = (pk + pn - t1g) * t;\n k = 1;\n do {\n t *= z0 / (k * (k + n));\n pk += 1 / k;\n pn += 1 / (k + n);\n s += (pk + pn - t1g) * t;\n ++k;\n } while (Math.abs(t / s) > Constants.MACHINE_PRECISION);\n s = 0.5 * s / zmn;\n if ((n & 1) != 0) {\n s = -s;\n }\n return ans + s;\n } else {\n // asymptotic expansion\n if (x > MAXLOG) {\n return 0; // underflow\n }\n final double k = (double) n;\n final double pn = 4 * k * k;\n double pk = 1;\n final double z0 = 8 * x;\n double fn = 1;\n double t = 1;\n double s = t;\n double nkf = Double.MAX_VALUE;\n int i = 0;\n do {\n final double z = pn - pk * pk;\n t = t * z / (fn * z0);\n final double nk1f = Math.abs(t);\n if (i >= n && nk1f > nkf) {\n return Math.exp(-x) * Math.sqrt(Math.PI / (2 * x)) * s;\n }\n ++i;\n nkf = nk1f;\n s += t;\n ++fn;\n pk += 2;\n } while (Math.abs(t / s) > Constants.MACHINE_PRECISION);\n return Math.exp(-x) * Math.sqrt(Math.PI / (2 * x)) * s;\n }\n }", "public static int f3(int N) {\n \n // O(1)\n if (N == 0) return 1;\n else{ \n \n int x = 0;\n // O(N)\n for(int i = 0; i < N; i++)\n x += f3(N-1);\n return x;\n }\n }", "public static long factorial(int n){\n long fact=1;\n for(int i=1;i<=n;i++){\n fact=(fact*i);\n }\n return fact;\n }", "private double factorial(int n) {\n if (n < 0 || n > 32) {\n return -1;\n }\n return factorials[n];\n }", "private static BigInteger getFactorial(int n) {\n BigInteger fact = BigInteger.ONE;\n for (int i = n; i > 1; i--) {\n fact = fact.multiply(new BigInteger(Integer.toString(i)));\n }\n return fact;\n }", "public static double power1(double x, int n) {\n if (n == 0)\n return 1;\n else\n return x * power1(x, n - 1);\n }", "public double result(double f) {\n double phi = Math.pow((Math.sin(2.0 * Math.PI * f / (2.0 * sample_rate))), 2.0);\n double r = (Math.pow(b0 + b1 + b2, 2.0) - 4.0 * (b0 * b1 + 4.0 * b0 * b2 + b1 * b2) * phi + 16.0 * b0 * b2 * phi * phi) / (Math.pow(1.0 + a1 + a2, 2.0) - 4.0 * (a1 + 4.0 * a2 + a1 * a2) * phi + 16.0 * a2 * phi * phi);\n if (r < 0) {\n r = 0;\n }\n return Math.sqrt(r);\n }", "public static void Perfectpower(int n) {\n\t\tlong valuecheck = 0;\n\t\t\n\t\tPriorityQueue<PerfectNumber> pq = new PriorityQueue<>(new Comparator<PerfectNumber>() {\n\t\t\t@Override\n\t\t\tpublic int compare(PerfectNumber o1, PerfectNumber o2) {\n\t\t\t\treturn (int) (o1.value - o2.value);\n\t\t\t}\n\t\t});\n\n\t\t//base condition\n\t\tpq.add(new PerfectNumber(2, 2));\n\t\t\n\t\twhile (!pq.isEmpty()) {\n\t\t\t\n\t\t\tPerfectNumber z = pq.remove();\n\t\t\t\n\t\t\t//return when a^b >n \n\t\t\tif(Math.pow(z.a, z.b)>n){\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t//to avoid duplicacy\n\t\t\tif(valuecheck!=z.value){\n\t\t\t\tresult.add(z.value);\n\t\t\t\tvaluecheck = z.value;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// add next elements in priorrity queue\n\t\t\tif (z.a == 2) {\n\t\t\t\tpq.add(new PerfectNumber(2, z.b + 1));\n\t\t\t\tpq.add(new PerfectNumber(3, z.b));\n\n\t\t\t} else {\n\t\t\t\tpq.add(new PerfectNumber(z.a + 1, z.b));\n\t\t\t} \n\t\t}\n\n\t}", "void pow(int n){\n\t\tif(n > 1){\n\t\t\tpow(n/2); //Calling pow recursively\n\t\t\tM = MatrixMultiply(M,M); //Climbing up by squares\n\t\t}\n\t\t\n\t\tif(n % 2 == 1){//n is odd\n\t\t\tM = MatrixMultiply(M,unitMatrix); //If n is odd than one unit matrix is missed so we are multiplying\n\t\t}\n\t}", "private double equation(long n) {\n\t\treturn (4d * montoCarlo(n) / n);\n\t}", "public int fastPower(int a, int b, int n) {\n // write your code here\n long base = a, ans = 1;\n while (n > 0) {\n if (n % 2 == 1) {\n ans = ans * base % b;\n }\n n /= 2;\n base = base * base % b;\n }\n return (int) ans % b;\n }", "private int nextPowerOf2(int n)\n {\n if (n > 0 && (n & (n - 1)) == 0)\n return n;\n \n int count = 0;\n for (;n != 0; n = n >> 1)\n count += 1;\n \n return 1 << count;\n }", "public double f(double x) {\n return Math.pow(x, 10) - 1; // Esta es la cuarta funcion f(x) vista en clase\r\n }", "public long factorial(int n)\n\t{\n\t\tint product = 1;\n\n\t\tfor (int i = n; i >= 1; i--)\n\t\t{\n\t\t\tproduct *= i;\n\t\t}\n\n\t\treturn product;\n\t}", "public static double powLong(double x, long n) {\n if(n==0) return 1;\n if(n==1) return x;\n if(n<0) return 1/(powLong(x,-n));\n \n double tmp = powLong(x, n/2);\n return tmp*tmp*(powLong(x, n%2));\n }", "protected final double fa(double x, double ac, double ae) {return ac*Math.pow(x, ae)/K;}", "@Override\r\n\tpublic double f(double x) {\n\t\treturn FastMath.tanh(x); // RMSE: 1.2677143077504636, Took: 38.617s\r\n\t}", "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 }", "public static double factorial(double n) {\r\n if (n <= 1)\r\n return 1;\r\n else\r\n return n * factorial(n - 1);\r\n }", "public static double f(double z){\n return 1 / (1 + Math.exp(-z));\n }", "public static int findNearestPowerofTwo(int n) {\n\t\tif ((n & n - 1) == 0) {\n return n;\n }\n int a = 1;\n while (a < n) {\n a = a << 1;\n }\n\n\n return a >> 1;\n\t}", "static BigInteger SigmaWithOutLoop(int N) { \n BigInteger f = BigInteger.valueOf(N); \n // N*(N+1)/2\n f = f.multiply(f.add( BigInteger.valueOf(1))).divide(new BigInteger(\"2\")); \n return f; \n }", "public int fastPower(int a, int b, int n) {\n if (n == 0){\n return 1 % b;\n }\n\n if (n == 1) {\n return a % b;\n }\n\n long ans = fastPower(a, b, n / 2);\n ans = (ans * ans) % b;\n if (n % 2 == 1){\n ans = (ans*a) % b;\n }\n return (int) ans;\n }", "public static float stirling_factorial(float f) {\n return 0;\n }", "public double pow(double base, double exponent){ return Math.pow(base, exponent); }", "public static int fac(int n) {\n if(n == 1) {\n return 1;\n }\n return n*fac(n-1);\n }", "private int iterativeFib(int n) {\r\n int backVal = 0, frontVal = 1;\r\n \r\n for (int i = 1; i < n - 1; i++) {\r\n int temp = frontVal + backVal;\r\n backVal = frontVal;\r\n frontVal = temp;\r\n }\r\n \r\n return frontVal + backVal;\r\n }", "public int solution1(int N) {\n int numFactors = 0;\n for (int i = 1; i <= (double) Math.sqrt(N); i++) {\n if (N % i == 0) {\n if (i * i != N) {\n numFactors = numFactors + 2;\n } else if (i * i == N) {\n numFactors = numFactors + 1;\n }\n }\n }\n return numFactors;\n }", "public static double factorial(double n) {\n if (n > 1) {\n return n * factorial(n - 1);\n } else {\n return 1;\n }\n }", "static int findLargestPowerOf2InRange(int N){\n N = N| (N>>1);\n N = N| (N>>2);\n N = N| (N>>4);\n N = N| (N>>8);\n\n\n //as now the number is 2 * x-1, where x is required answer, so adding 1 and dividing it by\n\n return (N+1)>>1;\n }", "private double f1(double x) {\n return Math.exp(-x) * Math.pow(Math.sin(x), 5);\n }", "public BigInteger fastPow(BigInteger k) {\n int i = 0;\n BigInteger h = BigInteger.ONE;\n\n while (i < ed.bitLength()) {\n if (ed.testBit(i)) {\n h = h.multiply(k).mod(n);\n }\n k = k.pow(2).mod(n);\n i++;\n }\n return h;\n }", "private double calcuFcost() {\n\t\treturn num * configMap.get('r') + (num-1) * configMap.get('l') + num * configMap.get('f') + configMap.get('t');\n\t}", "public static long u(int n)\r\n\t{\r\n\t\tlong result = 0;\r\n\t\tlong current = 1;\r\n\t\tfor (int i = 0; i <= 10; i++)\r\n\t\t{\r\n\t\t\tif (i % 2 == 0)\r\n\t\t\t{\r\n\t\t\t\tresult += current;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tresult -= current;\r\n\t\t\t}\r\n\t\t\tcurrent *= n;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "public static void tinhTongLuyThua(int n) {\n\t\tfloat sum = 0;\n\t\tint luyThua;\n\t\t\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tluyThua = (int) Math.pow(CONST_X, i);\n\t\t\tSystem.out.println(\"x^\" + i + \" = \" + luyThua);\n\t\t\tsum += luyThua;\n\t\t}\n\t\tSystem.out.println(\"S(n) = x + x^1 + x^2 + ... + x^\" + n + \" = \\t\" + sum);\n\t}", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "int f(int x) { return (x*x - 10*x - 20); }", "public static void main(String[] args) {\n Scanner s=new Scanner(System.in);\n int n = s.nextInt();\n for(int i=1; i<n+1; i++){\n int a = s.nextInt();\n int b = s.nextInt();\n int terms = s.nextInt();\n double c= a;\n for(int j=1; j<terms+1; j++){\n c = c + Math.pow(2,j-1)*b;\n System.out.printf(\"%.0f \", c);\n }\n System.out.printf(\"%n\");\n } \n }", "private static long f(long m) {\n\t\tlong k = 1;\r\n\t\tfor (long i=1; i<=m; i++){\r\n\t\t\tk *= i;\r\n\t\t}\r\n\t\treturn k;\r\n\t}", "private static int modExp(int a, int b, int n) {\n\n // get a char array of the bits in b\n char[] k = (Integer.toBinaryString(b)).toCharArray();\n\n // initialize variables\n int c = 0, f = 1;\n // loop over every bit in k\n for (int i = 0; i < k.length; i ++) {\n\n // for every bit, i.e. if 0 or 1, do this\n c *= 2;\n f = (f * f) % n;\n\n // If current bit is equal to 1, then do this\n if (k[i] == '1') {\n c += 1;\n f = (f * a) % n;\n }\n }\n\n // returns the remainder\n return f;\n }", "public static BigInteger calcuateFactorial(int x ){\n BigInteger res=new BigInteger(\"1\");\n for (int i=1;i<=x;i++){\n res=res.multiply(BigInteger.valueOf(i));\n }\n return res;\n\n }", "private double binomeN_I(int n, int i) {\n double ni;\n double a1 = factorial(n);\n double a2 = factorial(i);\n double a3 = factorial(n - i);\n ni = a1 / (a2 * a3);\n return ni;\n }", "public static boolean IsPowOfN(int value, int n) {\n\t\t\n\t\tif (value == 0) return false;\n\t\t\n\t\twhile (value % n == 0) {\n\t\t\tvalue /= n;\n\t\t}\n\t\t\n\t\treturn value == 1;\n\t}", "public static BigInteger calculateModifiedFib(int a, int b, int n) {\n \n BigInteger[] fib_of_all = new BigInteger[n+2];\n fib_of_all[0] = BigInteger.valueOf(a);\n fib_of_all[1] = BigInteger.valueOf(b);\n\n\n\n BigInteger fib_of_n = BigInteger.valueOf(0);\n\n //fib_of_n = (fib_of_n+2) - (fib_of_n+1)2;\n\n for(int c = 2; c < n+2; c++) {\n \tfib_of_all[c] = fib_of_all[c-2].add(fib_of_all[c-1].pow(2));\n }\n\n return fib_of_all[n-1];\n }", "public static void extraLongFactorials(int n) {\r\n BigInteger fact = BigInteger.valueOf(1);\r\n for (int i = 1; i <= n; i++) {\r\n fact = fact.multiply(BigInteger.valueOf(i));\r\n }\r\n System.out.println(fact);\r\n }", "private static int getFibonacci(int n) {\n\t\tdouble f1 = Math.pow(((1 + Math.sqrt(5)) / 2.0), n);\n\t\tdouble f2 = Math.pow(((1 - Math.sqrt(5)) / 2.0), n);\n\t\treturn (int)(Math.floor((f1 - f2) / Math.sqrt(5)));\n\t}", "public abstract double integral(double a, double b, int n);", "public double psi(int n) {\n \t\treturn psi.f(n);\n \t}", "public static double rekursiv(double x, int n) {\n if (n == 0) {\n return 1;\n }\n if (!erPartall(n)) {\n return x*rekursiv(x*x,(n-1)/2); //Grunntall x^2, eksponent ...\n }\n else {\n return rekursiv(x*x,n/2);\n }\n }", "public static double f(double x) {\n\t\treturn (double)Math.pow(x, 2) - 16;\n\t}", "public int fact(int n){\n if(n == 1){\n return 1;\n }\n return n * (fact(n-1));\n }", "public Complex power(int n) {\n if (n < 0) {\n throw new IllegalArgumentException();\n }\n return Complex.fromMagnitudeAndAngle(Math.pow(this.getMagnitude(), n), this.getAngle() * n);\n }", "public static BigInteger factoria(double value){\n BigInteger f = new BigInteger(\"1\");\n for (int i =1;i<=value;i++){\n f = f.multiply(BigInteger.valueOf(i));\n }\n return f; \n }", "private static int getTotient(int n) {\n int result = n;\n for(int i=2; i*i <=n; i++) {\n if(n % i == 0) {\n while(n % i == 0) n /= i;\n result -= result/i;\n }\n }\n if(n > 1) result -= result/n;\n return result;\n }", "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "@Test public void fastPowTest() {\n check(\"declare function local:pow($n, $k) {\" +\n \" if($k = 0) then xs:decimal(1)\" +\n \" else if($k mod 2 = 0) then local:pow($n * $n, $k idiv 2)\" +\n \" else $n * local:pow($n * $n, $k idiv 2)\" +\n \"};\" +\n \"local:pow(4, 5)\",\n\n 1024,\n\n exists(Util.className(StaticFuncCall.class) + \"[@tailCall eq 'true']\"),\n count(Util.className(StaticFuncCall.class) + \"[@tailCall eq 'false']\", 2)\n );\n }", "private int getSumOfSquares(int n) {\n\t\tint sum = 0;\n\t\tint number = n;\n\t\tint current;\n\t\t\n\t\twhile(number != 0) {\n\t\t\tcurrent = number % 10;\n\t\t\tsum += Math.pow(current, 2);\n\t\t\tnumber /= 10;\n\t\t}\n\t\treturn sum;\n\t}", "public int factorial(int n) {\n\t\tif(n<0 || n>Integer.MAX_VALUE)\n\t\t\treturn (int) Double.NaN;\n\t\t\n\t\tint fact=1; \n\t\tfor(int i=1;i<=n;i++){ \n\t\t fact=fact*i; \n\t\t} \n\t\treturn fact;\n\t}", "public static int fact(int n){\n\t if(n < 0){\n\t return 0;\n\t }\n\t if(n == 0 || n == 1){\n\t return 1;\n\t }\n\t else{\n\t return n*fact(n-1); \n\t }\n\t}" ]
[ "0.724529", "0.7212373", "0.72057074", "0.682876", "0.6816152", "0.6712689", "0.663365", "0.6597126", "0.65361947", "0.65204257", "0.6503214", "0.6500781", "0.648951", "0.63808286", "0.63657415", "0.63587254", "0.6351012", "0.6331033", "0.63280123", "0.6325331", "0.63207054", "0.63196385", "0.6312419", "0.6295257", "0.627258", "0.6251253", "0.624292", "0.623144", "0.61922413", "0.6183601", "0.6171196", "0.616295", "0.61615026", "0.6126025", "0.6124041", "0.61130536", "0.61123985", "0.6080131", "0.6077178", "0.6067567", "0.60623294", "0.60360384", "0.6012584", "0.5971394", "0.5961301", "0.5961045", "0.59540087", "0.5953009", "0.59423923", "0.593586", "0.5909815", "0.5905825", "0.59028804", "0.5876838", "0.5849544", "0.5828164", "0.58116776", "0.58001685", "0.5789738", "0.5758475", "0.57466257", "0.5731701", "0.57192093", "0.5702996", "0.56982833", "0.5694103", "0.56862193", "0.5684113", "0.5656159", "0.5654466", "0.56504244", "0.5638545", "0.56307626", "0.5608148", "0.56057805", "0.55996233", "0.5587562", "0.55859846", "0.5585976", "0.55786604", "0.5578319", "0.55689156", "0.5564288", "0.5551641", "0.5551326", "0.55450225", "0.553842", "0.5536262", "0.5532921", "0.55329174", "0.55196106", "0.5501629", "0.549882", "0.54893225", "0.54861516", "0.5485506", "0.5485402", "0.5477351", "0.54750866", "0.54712856" ]
0.63391674
17
Creates the table that will align the text in this screen.
private void createTable() { table = new Table(); table.bottom(); table.setFillParent(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PdfPTable createTable() {\n\t\tPdfPTable t = new PdfPTable(2);\n\t\tt.setWidthPercentage(100);\n\t\tt.setHorizontalAlignment(Element.ALIGN_LEFT);\n\t\tt.getDefaultCell().setBorder(Rectangle.NO_BORDER);\n\t\t// set up the table headers for albums\n\t\tif (state.equals(\"a\")) {\n\t\t\tFont bold = new Font(Font.FontFamily.HELVETICA, 13, Font.BOLD);\n\t\t\t\n\t\t\tPdfPCell nameCell = new PdfPCell();\n\t\t\tnameCell.setBorder(Rectangle.NO_BORDER);\n\t\t\tPhrase name = new Phrase(\"Name\", bold);\n\t\t\tnameCell.addElement(name);\n\t\t\t\n\t\t\tPdfPCell artistCell = new PdfPCell();\n\t\t\tartistCell.setBorder(Rectangle.NO_BORDER);\n\t\t\tPhrase artist = new Phrase(\"Artist\", bold);\n\t\t\tartistCell.addElement(artist);\n\t\t\t\n\t\t\tt.addCell(nameCell);\n\t\t\tt.addCell(artistCell);\n\t\t}\n\t\t// set up the table headers for publications\n\t\telse if (state.equals(\"p\")) {\n\t\t\tFont bold = new Font(Font.FontFamily.HELVETICA, 13, Font.BOLD);\n\t\t\t\n\t\t\tPdfPCell nameCell = new PdfPCell();\n\t\t\tnameCell.setBorder(Rectangle.NO_BORDER);\n\t\t\tPhrase name = new Phrase(\"Name\", bold);\n\t\t\tnameCell.addElement(name);\n\t\t\t\n\t\t\tPdfPCell devisorCell = new PdfPCell();\n\t\t\tdevisorCell.setBorder(Rectangle.NO_BORDER);\n\t\t\tPhrase devisor = new Phrase(\"Devisor\", bold);\n\t\t\tdevisorCell.addElement(devisor);\n\t\t\t\n\t\t\tt.addCell(nameCell);\n\t\t\tt.addCell(devisorCell);\n\t\t}\n\t\ttry {\n\t\t\tResultSet results = db.searchTableByName(table, \"\", true);\n\t\t\twhile(results.next()) {\n\t\t\t\t// add album info to table\n\t\t\t\tif (state.equals(\"a\")) {\n\t\t\t\t\tt.addCell(results.getString(\"name\"));\n\t\t\t\t\tt.addCell(results.getString(\"artist\"));\n\t\t\t\t}\n\t\t\t\t// add publication info to table\n\t\t\t\telse if (state.equals(\"p\")) {\n\t\t\t\t\tt.addCell(results.getString(\"name\"));\n\t\t\t\t\tt.addCell(results.getString(\"devisor\"));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn t;\n\t}", "private void createTableArea() {\n\t\tthis.tableModel = new MessagesTableModel();\n\t\tthis.conversation = new JTable(this.tableModel);\n\t\tthis.conversation.setRowSelectionAllowed(false);\n\t\tthis.conversation.getColumn(\"Pseudo\").setMaxWidth(150);\n\t\tthis.conversation.getColumn(\"Message\").setWidth(200);\n\t\tthis.conversation.getColumn(\"Heure\").setMaxWidth(50);\n\t\tthis.conversation.getColumn(\"Message\").setCellRenderer(new WrapTableCellRenderer());\n\t\tthis.conversation.getColumn(\"Pseudo\").setCellRenderer(new ColorTableCellRenderer());\n\t\tthis.scrollPane = new JScrollPane(conversation);\n\t}", "TableSectionBuilder align(String align);", "private MyTable generateTable()\n\t{\n\t\t//this creates the column headers for the table\n\t\tString[] titles = new String[] {\"Name\"};\n\t\t//fields will store all of the entries in the database for the GUI\n\t\tArrayList<String[]> fields = new ArrayList<String[]>();\n\t\tfor (food foodStuff: items) //for each element in items do the following\n\t\t{\n\t\t\t//creates a single row of the table\n\t\t\tString[] currentRow = new String[1]; //creates an array for this row\n\t\t\tcurrentRow[1] = foodStuff.getName(); //sets this row's name\n\t\t\tfields.add(currentRow); //adds this row to the fields ArrayList\n\t\t}\n\t\t//builds a table with titles and a downgraded fields array\n\t\tMyTable builtTable = new MyTable(fields.toArray(new String[0][1]), titles);\n\t\treturn builtTable; // return\n\t}", "private void createTable() {\n\t\tfreqTable = new TableView<>();\n\n\t\tTableColumn<WordFrequency, Integer> column1 = new TableColumn<WordFrequency, Integer>(\"No.\");\n\t\tcolumn1.setCellValueFactory(new PropertyValueFactory<WordFrequency, Integer>(\"serialNumber\"));\n\n\t\tTableColumn<WordFrequency, String> column2 = new TableColumn<WordFrequency, String>(\"Word\");\n\t\tcolumn2.setCellValueFactory(new PropertyValueFactory<WordFrequency, String>(\"word\"));\n\n\t\tTableColumn<WordFrequency, Integer> column3 = new TableColumn<WordFrequency, Integer>(\"Count\");\n\t\tcolumn3.setCellValueFactory(new PropertyValueFactory<WordFrequency, Integer>(\"count\"));\n\n\t\tList<TableColumn<WordFrequency, ?>> list = new ArrayList<TableColumn<WordFrequency, ?>>();\n\t\tlist.add(column1);\n\t\tlist.add(column2);\n\t\tlist.add(column3);\n\n\t\tfreqTable.getColumns().addAll(list);\n\t}", "private void buildTables(){\r\n\t\tarticleTable.setWidth(50, Unit.PERCENTAGE);\r\n\t\tarticleTable.setPageLength(5);\r\n\t\tlabel = new Label(\"No article found\");\r\n\t\tlabel2 = new Label(\"No image found\");\r\n\t\timageTable.setWidth(50, Unit.PERCENTAGE);\r\n\t\timageTable.setPageLength(5);\r\n\t}", "private void updateTable()\n\t{\n\t\ttable = new StringBuilder(String.format(\"%-7s %-30s %-30s %-5s\\n\", \"Song#\", \"Title\", \"Artist\", \"Time\"));\n\t\tdouble time = 0.0;\n\t\tfor(int i = 0; i < numOfSongs; i++)\n\t\t{\n\t\t\ttime = (double)song[i].getMinLength() + (song[i].getSecLength()/100.0); \n\t\t\ttable.append(String.format(\"%-7d %-30s %-30s %-5s\", (i+1), song[i].getTitle(), song[i].getArtist(), time));\n\t\t\tif(i < (numOfSongs-1))\n\t\t\t\ttable.append(\"\\n\");\n\t\t}\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"带进度条的表\");\r\n\t\tshell.setLayout(new FillLayout());\r\n\r\n\t\tTable table = new Table(shell, SWT.BORDER);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setLinesVisible(true);\r\n\r\n//\t\t两列\r\n\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\tnew TableColumn(table, SWT.NONE);\r\n\t\t}\r\n\t\ttable.getColumn(0).setText(\"Task\");\r\n\t\ttable.getColumn(1).setText(\"Progress\");\r\n\r\n//\t\t四十行\r\n\t\tfor (int i = 0; i < 40; i++) {\r\n\t\t\tTableItem item = new TableItem(table, SWT.NONE);\r\n\t\t\titem.setText(\"Task \" + i);\r\n//\t\t\t行数为5的倍数时添加进度条\r\n\t\t\tif (i % 5 == 0) {\r\n\t\t\t\tProgressBar bar = new ProgressBar(table, SWT.NONE);\r\n\t\t\t\tbar.setSelection(i); // 进度条显示的百分比\r\n\t\t\t\tTableEditor editor = new TableEditor(table);\r\n\t\t\t\teditor.grabHorizontal = editor.grabVertical = true; // 宽度高度同表格\r\n\t\t\t\teditor.setEditor(bar, item, 1); // 在表格上方显示进度条\r\n\t\t\t}\r\n\t\t}\r\n\t\ttable.getColumn(0).pack();\r\n\t\ttable.getColumn(1).setWidth(128);\r\n\r\n\t\tshell.pack();\r\n\t}", "public void generateStockListTable() {\n\t\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\t\t\tscreenWidth = dm.widthPixels;\n\t\t\tscreenHeight = dm.heightPixels;\n\n\t\t\ttableLayout = (TableLayout) this.findViewById(R.id.tablelayout);\n\t\t\ttableLayout.setStretchAllColumns(true);\n//\t\t\ttableLayout.setBackgroundResource(R.drawable.shape_nzx50);\n\t//\n//\t\t\tTextView textview = (TextView) this.findViewById(R.id.textview);\n//\t\t\ttextview.setVisibility(View.INVISIBLE);\n\t\t\tStockCodeToNameMapper mapper = new StockCodeToNameMapper();\n\t\t\tfor (int i = 0; i < stockList.size(); i++) {\n\t\t\t\tfinal Stock stock = stockList.get(i);\n\n\t\t\t\tTableRow tableRow = new TableRow(this);\n\t\t\t\ttableRow.setBackgroundColor(Color.rgb(255, 255, 255));\n\t\t\t\t\n\n\t\t\t\tTextView textView1 = new TextView(this);\n\t\t\t\ttextView1.setText(stock.getStockCode());\n\t\t\t\ttextView1.setSingleLine(true);\n\t\t\t\ttextView1.setGravity(Gravity.CENTER);\n\t\t\t\ttextView1.setBackgroundResource(R.drawable.shape_nzx50);\n\t\t\t\ttextView1.setHeight((int) (screenHeight * 0.088));\n\n\t\t\t\tTextView textView2 = new TextView(this);\n\t\t\t\ttextView2.setText(mapper.getStockName(stock.getStockCode()));\n\t\t\t\ttextView2.setWidth((int) (screenWidth * 0.5));\n\t\t\t\ttextView2.setSingleLine(true);\n\t\t\t\ttextView2.setEllipsize(TruncateAt.END);\n\t\t\t\ttextView2.setGravity(Gravity.CENTER_VERTICAL);\n\t\t\t\ttextView2.setBackgroundResource(R.drawable.shape_nzx50);\n\t\t\t\ttextView2.setHeight((int) (screenHeight * 0.088));\n\t\t\t\t\n\n\t\t\t\tTextView textView3 = new TextView(this);\n\t\t\t\tif (stock.getStockVariation().contains(\"+\")) {\n\t\t\t\t\tdrawable = getResources().getDrawable(R.drawable.up);\n\t\t\t\t} else if (stock.getStockVariation().contains(\"-\")) {\n\t\t\t\t\tdrawable = getResources().getDrawable(R.drawable.down);\n\t\t\t\t} else {\n\t\t\t\t\tdrawable = getResources().getDrawable(R.drawable.unchanged);\n\t\t\t\t}\n\t\t\t\ttextView3.setCompoundDrawables(setDrawbleBound(drawable), null,\n\t\t\t\t\t\tnull, null);\n\t\t\t\ttextView3.setSingleLine(true);\n\t\t\t\ttextView3.setGravity(Gravity.CENTER);\n\t\t\t\ttextView3.setBackgroundResource(R.drawable.shape_nzx50);\n\t\t\t\ttextView3.setHeight((int) (screenHeight * 0.088));\n\t\t\t\t\n\n\n\t\t\t\tfinal ImageButton iButton=new ImageButton(this,null,android.R.attr.buttonStyleSmall);\n\t\t\t\tiButton.setVisibility(View.VISIBLE);\n//\t\t\t\tiButton.setBackgroundColor(Color.rgb(255, 255, 255));\n\t\t\t\tiButton.setImageResource(R.drawable.bookmark_no);\n\t\t\t\t\n\t\t\t\tIterator<Stock> stockIterator=watchlistStocks.iterator();\n\t\t\t\twhile(stockIterator.hasNext()){\n\t\t\t\t\tStock s=stockIterator.next();\n\t\t\t\t\tString sCode=s.getStockCode();\n\t\t\t\t\t\n\t\t\t\t\tif(sCode.equalsIgnoreCase(stock.getStockCode())){\n\t\t\t\t\t\tstock.setBookmarked(true);\n\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_yes);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tstock.setBookmarked(false);\n\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_no);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tiButton.setImageResource(R.drawable.bookmark_no);\n//\t\t\t\tiButton.setImageResource(R.drawable.bookmark_yes);\n\t\t\t\tiButton.setBackgroundResource(R.drawable.shape_nzx50);\n\t\t\t\t\n\t\t\t\tiButton.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tif(!stock.isBookmarked()){\n\t\t\t\t\t\t\tToast.makeText(StockListActivity.this, stock.getStockCode().toString()+\" added to Watchlist \",Toast.LENGTH_SHORT).show\n\n\t();\n\t\t\t\t\t\t\tstock.setBookmarked(true);\n\t\t\t\t\t\t\taddToWatchlist(stock);\n\t\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_yes);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tToast.makeText(StockListActivity.this, stock.getStockCode().toString()+\" removed from Watchlist \",Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tstock.setBookmarked(false);\n\t\t\t\t\t\t\tremoveFromWatchlist(stock);\n\t\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_no);\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}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\ttableRow.addView(textView1);\n\t\t\t\ttableRow.addView(textView2);\n\t\t\t\ttableRow.addView(textView3);\n\t\t\t\ttableRow.addView(iButton);\n\n\t\t\t\t//tableRow.setBackgroundResource(R.drawable.shape_nzx50);\n\n\n\t\t\t\ttableLayout.addView(tableRow);// adding rows to table\n\t\t\t}\n\t\t}", "public MakeTable() {\n\t\t//for setting the title for the internal frame\n\t\tsuper(PanelName, true, true, true, true);\n\t\t//for setting the icon\n\t\tsetFrameIcon(new ImageIcon(ClassLoader.getSystemResource(\"images/Add16.gif\")));\n\t\t//for getting the graphical user interface components display area\n\t\tContainer cp = getContentPane();\n\n\t\t//for setting the layout\n\t\tnorthPanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\t//for setting the font\n\t\tnorthLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t//for adding the label to the panel\n\t\tnorthPanel.add(northLabel);\n\t\t//for adding the panel to the container\n\t\tcp.add(\"North\", northPanel);\n\n\t\t//for setting the layout\n\t\tcenterPanel.setLayout(new BorderLayout());\n\t\t//for setting the border to the panel\n\t\tcenterPanel.setBorder(BorderFactory.createTitledBorder(\"Wrong Data :\"));\n\t\t//for setting the layout\n\t\tinformationLabelPanel.setLayout(new GridLayout(1, 2, 1, 1));\n\t\t//for setting the layout\n\t\tinformationTextFieldPanel.setLayout(new GridLayout(1, 2, 1, 1));\n\t\t/***********************************************************************\n\t\t * for adding the strings to the labels, for setting the font\t\t *\n\t\t * and adding these labels to the panel.\t\t\t\t\t\t\t *\n\t\t * finally adding the panel to the container\t\t\t\t\t\t *\n\t\t ***********************************************************************/\n//\t\tfor (int i = 0; i < informationLabel.length; i++) {\n//\t\t\tinformationLabelPanel.add(informationLabel[i] = new JLabel(informaionString[i]));\n//\t\t\tinformationLabel[i].setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n//\t\t}\n \n//informationLabelPanel.add(informationLabel[0] = new JLabel(informaionString[0]));\n//for adding the panel to the centerPanel\n//\t\tcenterPanel.add(\"West\", informationLabelPanel);\n\n\t\t/***********************************************************************\n\t\t * for adding the JTextField and JPasswordField to the panel and *\n\t\t * setting the font to the JTextField and JPasswordField. Finally *\n\t\t * adding the panel to the centerPanel *\n\t\t ***********************************************************************/\n//\t\tfor (int i = 0; i < informationLabel.length; i++) {\n//\n//\t\t\t\n//\t\t\t\tinformationTextFieldPanel.add(informationTextField[i] = new JTextField(25));\n//\t\t\t\tinformationTextField[i].setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\n//\t\t\t\n//\t\t}\n\n JScrollPane scrollPane = new JScrollPane(textArea);\n informationTextFieldPanel.add(scrollPane); \n\t\tcenterPanel.add(\"Center\", informationTextFieldPanel);\n \n\t\t/***********************************************************************\n\t\t * for setting the layout for the panel,setting the font for the button*\n\t\t * and adding the button to the panel.\t\t\t\t\t\t\t\t *\n\t\t * finally adding the panel to the container\t\t\t\t\t\t *\n\t\t ***********************************************************************/\n\t\tinsertInformationButtonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tinsertInformationButton.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tinsertInformationButtonPanel.add(insertInformationButton);\n insertInformationButtonPanel.add(SearchButton);\n insertInformationButtonPanel.add(searchField);\n insertInformationButtonPanel.add(SaveButton);\n\t\tcenterPanel.add(\"South\", insertInformationButtonPanel);\n\t\tcp.add(\"Center\", centerPanel);\n\n\t\t/***********************************************************************\n\t\t * for setting the layout for the panel,setting the font for the button*\n\t\t * adding the button to the panel & setting the border.\t\t\t\t *\n\t\t * finally adding the panel to the container\t\t\t\t\t\t *\n\t\t ***********************************************************************/\n\t\tsouthPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tOKButton.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tsouthPanel.add(OKButton);\n\t\tsouthPanel.setBorder(BorderFactory.createEtchedBorder());\n\t\tcp.add(\"South\", southPanel);\n\n\t\t/***********************************************************************\n\t\t * for adding the action listener to the button,first the text will be *\n\t\t * taken from the JTextField[] and make the connection for database, *\n\t\t * after that update the table in the database with the new value *\n\t\t ***********************************************************************/\n\t\tinsertInformationButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\t//for checking if there is a missing information\n\t\t\t\t\tThread runner = new Thread() {\n //private OpenFile opf;\n private OutputToFile otf;\n\n\t\t\t\t\t\t\tpublic void run() {\n \n otf = new OutputToFile();\n if(!otf.takeFilePath().trim().contentEquals(\"\")){\n System.out.println(\" Show File Path : \"+otf.takeFilePath()+\" >>>>\");\n centerPanel.setBorder(BorderFactory.createTitledBorder(\"Wrong Data :\"+otf.takeFilePath()));\n textArea.setText(\"\");\n datainFile=new File(otf.takeFilePath());\n \n\n try {\n fis = new FileInputStream(datainFile);\n reader = new BufferedReader(new InputStreamReader(fis));\n //StringBuilder out = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n //out.append(line);\n \n //textArea.setText(line+System.getProperty( \"line.separator\"));\n textArea.append(line+System.getProperty( \"line.separator\"));\n \n }\n //System.out.println(out.toString()); //Prints the string content read from input stream\n reader.close();\n \n \n\n \n \n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(MakeTable.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(MakeTable.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }else \n {\n JOptionPane.showMessageDialog(null, \"Əvvəlcədən [XML] uzantılı fayıl emal edilməlidir\", \"Xəbərdarlıq\", JOptionPane.WARNING_MESSAGE);\n }\nSystem.out.println(\" Button clicked\");\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t\trunner.start();\n\t\t\t\t\t\n\t\t\t\t\t//JOptionPane.showMessageDialog(null, \"Please, complete the information\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t});\n\t\t//for adding the action listener for the button to dispose the frame\n \n \n SearchButton.addActionListener(new ActionListener() {\n \n public void actionPerformed(ActionEvent ae) {\n \n \t\t\t\tThread runner;\n runner = new Thread() { \n \n public void run() {\n \n \n \n hili= textArea.getHighlighter();\n Highlighter.Highlight[] hilis = hili.getHighlights();\n for(int i=0 ; i<hilis.length; i++)\n {\n if (hilis[i].getPainter() instanceof Highlighter.HighlightPainter)\n {\n hili.removeHighlight(hilis[i]);\n }\n }\n \n \n System.out.println(\" Searchable text \"+searchField.getText());\n \n \nHighlighter.HighlightPainter painter = new DefaultHighlighter.DefaultHighlightPainter( Color.cyan );\n\noffset= textArea.getText().indexOf(searchField.getText());\nlength = searchField.getText().length();\n\nwhile ( offset != -1)\n{\n try\n {\n System.out.println(\" Offest1 : \"+offset+\" Length :\"+length);\n \n textArea.getHighlighter().addHighlight(offset, offset + length, painter);\n //offset = textArea.getText().indexOf(searchField.getText(), offset+1);\n \n \n \n Rectangle viewRect = textArea.modelToView(offset);\n // Scroll to make the rectangle visible\n textArea.scrollRectToVisible(viewRect);\nSystem.out.println(\" Offest2 : \"+offset); offset=-1;\nbreak;\n\n//if(offset==-1)\n//{ break;}\n \n \n }\n catch(BadLocationException ble) { System.out.println(ble); }\n}\n\n\n\n }\n };\n\t\t\t\t\t\trunner.start();\n\t\t\t\t\t\n \n\t\t\t}\n \n });\n \n \n \n \n \n \n\t\tSaveButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tSystem.out.println(\" Save \");\n \n System.out.println(\" Out put File Again\"+textArea.getText()+\" Line Count \"+textArea.getLineCount());\n OutputToFile otf = new OutputToFile();\n \n try {\n// textArea.getLineStartOffset(r);\n// System.out.println(\n// \" Line Out : Start :\"+textArea.getLineStartOffset(r)+\n// \" .... End :\"+textArea.getLineEndOffset(r)+\n// \" data \"+textArea.getText().substring(textArea.getLineStartOffset(r), textArea.getLineEndOffset(r)));\n FileOutputStream outputStream = new FileOutputStream(otf.takeFilePath(),false);\n OutputStreamWriter writer = new OutputStreamWriter(outputStream);\nfor (int r=0;r<textArea.getLineCount();r++){\nwriter.write(textArea.getText().substring(textArea.getLineStartOffset(r), textArea.getLineEndOffset(r)));\n}\nwriter.flush();\n \nwriter.close();\n \n } catch (BadLocationException ex) {\n Logger.getLogger(MakeTable.class.getName()).log(Level.SEVERE, null, ex);\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MakeTable.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(MakeTable.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n \n\t\t\t}\n\t\t});\n \n \n OKButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t}); \n\t\t//for setting the visible to true\n\t\tsetVisible(true);\n\t\t//show the internal frame\n\t\tpack();\n\t}", "@SuppressWarnings(\"deprecation\")\n\tprivate TableLayout buildTable() {\n\t\t// Initialize table\n\t\tTableLayout table = new TableLayout(this);\n\t\tLayoutParams tableParams = new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tLayoutParams.WRAP_CONTENT);\n\t\ttable.setLayoutParams(tableParams);\n\t\ttable.setPadding(10, 10, 10, 10);\n\n\t\t// Initialize generic row params\n\t\tLayoutParams genericRowParams = new TableRow.LayoutParams(\n\t\t\t\tLayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);\n\n\t\tfillTable(table, genericRowParams);\n\t\treturn table;\n\t}", "private void createEditor() {\n TableLayout table = (TableLayout) findViewById(R.id.ll_table_config);\n\n // Clear all\n while (table.getChildCount() > 1) {\n table.removeViewAt(table.getChildCount() - 1);\n }\n\n TableRow row;\n\n // First row\n row = createRow();\n\n // Lower\n row.addView(createTextView(0, \"0\"));\n\n // Upper\n row.addView(createTextView(1000, String.valueOf(mLevels[0] - 1)));\n\n // Screen\n row.addView(createButton(3000, String.valueOf(mLcdValues[0])));\n\n // Buttons\n row.addView(createButton(4000, String.valueOf(mBtnValues[0])));\n\n // Keyboard\n if (mHasKeyboard) {\n row.addView(createButton(5000, String.valueOf(mKbValues[0])));\n }\n\n table.addView(row, table.getChildCount());\n\n for (int i = 0; i < mLevels.length - 1; i++) {\n row = createRow();\n\n // Lower\n row.addView(createButton(2000 + i, String.valueOf(mLevels[i])));\n\n // Upper\n row.addView(createTextView(1000 + i + 1,\n String.valueOf(Math.max(0, mLevels[i + 1] - 1))));\n\n // Screen\n row.addView(createButton(3000 + i + 1, String.valueOf(mLcdValues[i + 1])));\n\n // Buttons\n row.addView(createButton(4000 + i + 1, String.valueOf(mBtnValues[i + 1])));\n\n // Keyboard\n if (mHasKeyboard) {\n row.addView(createButton(5000 + i + 1, String.valueOf(mKbValues[i + 1])));\n }\n\n table.addView(row, table.getChildCount());\n }\n\n row = createRow();\n\n // Lower\n row.addView(createButton(2000 + mLevels.length - 1,\n String.valueOf(mLevels[mLevels.length - 1])));\n\n // Upper\n row.addView(createTextView((int) 1e10, String.valueOf((char) '\\u221e')));\n\n // Screen\n row.addView(createButton(3000 + mLevels.length, String.valueOf(mLcdValues[mLevels.length])));\n\n // Buttons\n row.addView(createButton(4000 + mLevels.length, String.valueOf(mBtnValues[mLevels.length])));\n\n // Keyboard\n if (mHasKeyboard) {\n row.addView(createButton(5000 + mLevels.length,\n String.valueOf(mKbValues[mLevels.length])));\n }\n\n table.addView(row, table.getChildCount());\n\n table.setColumnStretchable(0, true);\n table.setColumnStretchable(2, true);\n table.setColumnStretchable(3, true);\n if (mHasKeyboard) {\n table.setColumnStretchable(4, true);\n }\n }", "public Table(ElementStructure structure) {\n\t\tsuper(structure);\n\t\tfields = structure.data.fieldArray(vis.positionFields());\n\t\tpadding = ModelUtil.getPadding(vis, StyleTarget.makeElementTarget(null), 2);\n\t\tpadding.top += 15; // For the titles\n\t\tfraction = divideColumnSpace(fields);\n\t\tStyleTarget styleTarget = StyleTarget.makeElementTarget(\"text\");\n\t\tfontSize = ModelUtil.getFontSize(vis, styleTarget, 12);\n\t}", "private void createTable(Table table) {\n\t\t// Set up the table\n\t\ttable.setLayoutData(new GridData(GridData.FILL_BOTH));\n\n\t\t// Add the column (Task)\n\t\tTableColumn lTaskColumn = new TableColumn(table, SWT.NONE);\n\t\tlTaskColumn.setText(\"Task\");\n\n\t\t// Add the column (Operation)\n\t\tTableColumn lOperationColumn = new TableColumn(table, SWT.NONE);\n\t\tlOperationColumn.setText(\"Operation\");\n\n\t\t// Add the column (Duration)\n\t\tTableColumn lDurationColumn = new TableColumn(table, SWT.NONE);\n\t\tlDurationColumn.setText(\"Duration\");\n\n\t\t// Add the column (Timeout)\n\t\tTableColumn lTimeoutColumn = new TableColumn(table, SWT.NONE);\n\t\tlTimeoutColumn.setText(\"Timed Out\");\n\n\t\t// Add the column (TEF Result)\n\t\tTableColumn lResultColumn = new TableColumn(table, SWT.NONE);\n\t\tlResultColumn.setText(\"Build/TEF Result\");\n\n\t\t// Add the column (TEF RunWsProgram)\n\t\tTableColumn lTEFRunWsProgColumn = new TableColumn(table, SWT.NONE);\n\t\tlTEFRunWsProgColumn.setText(\"TEF RunWsProgram Result\");\n\n\t\t// Pack the columns\n\t\tfor (int i = 0, n = table.getColumnCount(); i < n; i++) {\n\t\t\tTableColumn lCol = table.getColumn(i);\n\t\t\tlCol.setResizable(true);\n\t\t\tlCol.setWidth(lCol.getText().length());\n\t\t\tlCol.pack();\n\t\t}\n\n\t\t// Turn on the header and the lines\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setLinesVisible(true);\n\n\t}", "private ConfigurationHTMLPrinter startTable() {\n return println(\"<table border='0' cellspacing='0' cellpadding='0'>\").incrementIndent();\n }", "private void makeTable(PdfPTable table) {\n table.addCell(createTitleCell(\"Part Name\"));\n table.addCell(createTitleCell(\"Description\"));\n table.addCell(createTitleCell(\"Price\"));\n table.addCell(createTitleCell(\"Initial Stock\"));\n table.addCell(createTitleCell(\"Initial Cost, £\"));\n table.addCell(createTitleCell(\"Used\"));\n table.addCell(createTitleCell(\"Delivery\"));\n table.addCell(createTitleCell(\"New Stock\"));\n table.addCell(createTitleCell(\"Stock Cost, £\"));\n table.addCell(createTitleCell(\"Threshold\"));\n table.completeRow();\n \n addRow(table, emptyRow);\n \n for (Object[] row : data) addRow(table, row);\n \n addRow(table, emptyRow);\n \n PdfPCell c = createBottomCell(\"Total\");\n c.enableBorderSide(Rectangle.LEFT);\n table.addCell(c);\n table.addCell(createBottomCell(\"\"));\n table.addCell(createBottomCell(\"\"));\n table.addCell(createBottomCell(\"\"));\n table.addCell(createBottomCell(String.format(\"%.2f\", initialTotal)));\n table.addCell(createBottomCell(\"\"));\n table.addCell(createBottomCell(\"\"));\n table.addCell(createBottomCell(\"\"));\n PdfPCell l = createBottomCell(String.format(\"%.2f\", nowTotal));\n l.enableBorderSide(Rectangle.RIGHT);\n table.addCell(l);\n table.addCell(createBlankCell(\"\"));\n table.completeRow();\n }", "private TableLayout createTableLayout(String [] rv, String [] cv,int rowCount, int columnCount) {\n TableLayout.LayoutParams tableLayoutParams = new TableLayout.LayoutParams();\n TableLayout tableLayout = new TableLayout(this);\n tableLayout.setBackgroundColor(Color.BLACK);\n\n // 2) create tableRow params\n TableRow.LayoutParams tableRowParams = new TableRow.LayoutParams();\n tableRowParams.setMargins(1, 1, 1, 1);\n tableRowParams.weight = 1;\n\n for (int i = 0; i < rowCount; i++) {\n // 3) create tableRow\n TableRow tableRow = new TableRow(this);\n tableRow.setBackgroundColor(Color.BLACK);\n\n for (int j= 0; j < columnCount; j++) {\n // 4) create textView\n TextView textView = new TextView(this);\n // textView.setText(String.valueOf(j));\n textView.setBackgroundColor(Color.WHITE);\n textView.setGravity(Gravity.CENTER);\n\n String s1 = Integer.toString(i);\n String s2 = Integer.toString(j);\n String s3 = s1 + s2;\n int id = Integer.parseInt(s3);\n Log.d(\"TAG\", \"-___>\" + id);\n if (i ==0 && j==0){\n textView.setText(\"Name\");\n } else if(i==0){\n Log.d(\"TAAG\", \"set Column Headers\");\n textView.setText(cv[j-1]);\n }else if( j==0){\n Log.d(\"TAAG\", \"Set Row Headers\");\n textView.setText(rv[i-1]);\n }else if(j==4) {\n textView.setText(\"\"+totalmarks.get(i));\n // check id=23\n } else if(j==3){\n textView.setText(\"\"+englishmarks[i]);\n }else if(j==2) {\n textView.setText(\"\"+sciencemarks[i]);\n } else if(j==1) {\n textView.setText(\"\"+mathsmarks[i]);\n } else{\n textView.setText(\"\" + id);\n }\n // 5) add textView to tableRow\n tableRow.addView(textView, tableRowParams);\n }\n // 6) add tableRow to tableLayout\n tableLayout.addView(tableRow, tableLayoutParams);\n }\n\n return tableLayout;\n }", "private void fillTable() {\n\n table.row();\n table.add();//.pad()\n table.row();\n for (int i = 1; i <= game.getNum_scores(); i++) {\n scoreRank = new Label(String.format(\"%01d: \", i), new Label.LabelStyle(fonts.getInstance().getClouds(), Color.WHITE));\n scoreValue = new Label(String.format(\"%06d\", game.getScores().get(i-1)), new Label.LabelStyle(fonts.getInstance().getRancho(), Color.WHITE));\n table.add(scoreRank).expandX().right();\n table.add(scoreValue).expandX().left();\n table.row();\n }\n\n }", "private void createTable(int columns, int rows, String[] column_name,\n\t\t\tObject[] row_data) {\n\t\ttblStationary = new Table(canvas2, SWT.MULTI | SWT.BORDER\n\t\t\t\t| SWT.FULL_SELECTION);\n\t\ttblStationary.setLinesVisible(true);\n\t\ttblStationary.setHeaderVisible(true);\n\n\t\tfor (int i = 0; i < columns; i++) {\n\t\t\tcolumn = new TableColumn(tblStationary, SWT.NONE);\n\n\t\t\tif (i == 0) {\n\t\t\t\tcolumn.setText(column_name[i]);\n\t\t\t\tcolumn.setWidth(50);\n\t\t\t} else if (i == 1) {\n\t\t\t\tcolumn.setText(column_name[i]);\n\t\t\t\tcolumn.setWidth(230);\n\t\t\t} else {\n\t\t\t\tcolumn.setText(column_name[i]);\n\t\t\t\tcolumn.setWidth(100);\n\t\t\t}\n\t\t}\n\n\t\teditor1 = new TableEditor[rows];\n\t\ttxtTopay = new Text[rows];\n\n\t\teditor2 = new TableEditor[rows];\n\t\ttxtPaid = new Text[rows];\n\n\t\teditor3 = new TableEditor[rows];\n\t\ttxtBilling = new Text[rows];\n\n\t\teditor4 = new TableEditor[rows];\n\t\ttxtCr = new Text[rows];\n\n\t\t// Drawing initial table items\n\t\tfor (int rowId = 0; rowId < rows; rowId++) {\n\n\t\t\titem = new TableItem(tblStationary, SWT.NONE);\n\n\t\t\titem.setText(0, Integer.toString((rowId + 1)));\n\n\t\t\t// First Column station\n\t\t\titem.setText(1, (((StationsDTO) (row_data[rowId])).getName()\n\t\t\t\t\t+ \" - \" + ((StationsDTO) row_data[rowId]).getId()));\n\n\t\t\t// Draw Text Field\n\t\t\teditor1[rowId] = new TableEditor(tblStationary);\n\t\t\ttxtTopay[rowId] = new Text(tblStationary, SWT.NONE);\n\t\t\ttxtTopay[rowId].addVerifyListener(new NumericValidation());\n\t\t\teditor1[rowId].grabHorizontal = true;\n\t\t\teditor1[rowId].setEditor(txtTopay[rowId], item, 2);\n\n\t\t\t// Draw Text Field\n\t\t\teditor2[rowId] = new TableEditor(tblStationary);\n\t\t\ttxtPaid[rowId] = new Text(tblStationary, SWT.NONE);\n\t\t\ttxtPaid[rowId].addVerifyListener(new NumericValidation());\n\t\t\teditor2[rowId].grabHorizontal = true;\n\t\t\teditor2[rowId].setEditor(txtPaid[rowId], item, 3);\n\n\t\t\t// Draw Text Field\n\t\t\teditor3[rowId] = new TableEditor(tblStationary);\n\t\t\ttxtBilling[rowId] = new Text(tblStationary, SWT.NONE);\n\t\t\ttxtBilling[rowId].addVerifyListener(new NumericValidation());\n\t\t\teditor3[rowId].grabHorizontal = true;\n\t\t\teditor3[rowId].setEditor(txtBilling[rowId], item, 4);\n\n\t\t\t// Draw Text Field\n\t\t\teditor4[rowId] = new TableEditor(tblStationary);\n\t\t\ttxtCr[rowId] = new Text(tblStationary, SWT.NONE);\n\t\t\ttxtCr[rowId].addVerifyListener(new NumericValidation());\n\t\t\teditor4[rowId].grabHorizontal = true;\n\t\t\teditor4[rowId].setEditor(txtCr[rowId], item, 5);\n\n\t\t}\n\t\ttblStationary.setBounds(32, 43, 750, 380);\n\n\t}", "private void makeTable() {\n String [] cols = new String[] {\"Planets\", \"Weights (in lbs)\", \"Weights (in kgs)\"};\n model = new DefaultTableModel(result,cols) {\n @Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }\n };\n table = new JTable(model);\n JScrollPane scrollPane = new JScrollPane(table);\n scrollPane.setPreferredSize(new Dimension(310,155));\n middlePanel.add(scrollPane);\n revalidate();\n repaint();\n }", "private void createContents() {\r\n shell = new Shell(getParent(), getStyle());\r\n shell.setSize(650, 300);\r\n shell.setText(getText());\r\n\r\n shell.setLayout(new FormLayout());\r\n\r\n lblSOName = new Label(shell, SWT.CENTER);\r\n lblSOName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_lblSOName = new FormData();\r\n fd_lblSOName.bottom = new FormAttachment(0, 20);\r\n fd_lblSOName.right = new FormAttachment(100, -2);\r\n fd_lblSOName.top = new FormAttachment(0, 2);\r\n fd_lblSOName.left = new FormAttachment(0, 2);\r\n lblSOName.setLayoutData(fd_lblSOName);\r\n lblSOName.setText(soName);\r\n\r\n tableParams = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);\r\n tableParams.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_tableParams = new FormData();\r\n fd_tableParams.bottom = new FormAttachment(100, -40);\r\n fd_tableParams.right = new FormAttachment(100, -2);\r\n fd_tableParams.top = new FormAttachment(0, 22);\r\n fd_tableParams.left = new FormAttachment(0, 2);\r\n tableParams.setLayoutData(fd_tableParams);\r\n tableParams.setHeaderVisible(true);\r\n tableParams.setLinesVisible(true);\r\n fillInTable(tableParams);\r\n tableParams.addControlListener(new ControlAdapter() {\r\n\r\n @Override\r\n public void controlResized(ControlEvent e) {\r\n Table table = (Table)e.getSource();\r\n table.getColumn(0).setWidth((int)(table.getClientArea().width*nameSpace));\r\n table.getColumn(1).setWidth((int)(table.getClientArea().width*valueSpace));\r\n table.getColumn(2).setWidth((int)(table.getClientArea().width*hintSpace));\r\n }\r\n });\r\n tableParams.pack();\r\n //paramName.pack();\r\n //paramValue.pack();\r\n\r\n final TableEditor editor = new TableEditor(tableParams);\r\n //The editor must have the same size as the cell and must\r\n //not be any smaller than 50 pixels.\r\n editor.horizontalAlignment = SWT.LEFT;\r\n editor.grabHorizontal = true;\r\n editor.minimumWidth = 50;\r\n // editing the second column\r\n tableParams.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n // Identify the selected row\r\n TableItem item = (TableItem) e.item;\r\n if (item == null) {\r\n return;\r\n }\r\n\r\n // The control that will be the editor must be a child of the Table\r\n IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM);\r\n if (editedParam != null) {\r\n // Clean up any previous editor control\r\n Control oldEditor = editor.getEditor();\r\n if (oldEditor != null) {\r\n oldEditor.dispose();\r\n }\r\n\r\n Control editControl = null;\r\n String cellText = item.getText(columnValueIndex);\r\n switch (editedParam.getType()) {\r\n case BOOLEAN:\r\n Combo cmb = new Combo(tableParams, SWT.READ_ONLY);\r\n String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)};\r\n cmb.setItems(booleanItems);\r\n cmb.select(1);\r\n if (Boolean.parseBoolean(cellText)) {\r\n cmb.select(0);\r\n }\r\n editControl = cmb;\r\n cmb.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n Combo text = (Combo) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n break;\r\n case DATE:\r\n IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam;\r\n LocalDateTime calToUse = calParam.getValue();\r\n Composite dateAndTime = new Composite(tableParams, SWT.NONE);\r\n RowLayout rl = new RowLayout();\r\n rl.wrap = false;\r\n dateAndTime.setLayout(rl);\r\n //Date cellDt;\r\n try {\r\n LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt);\r\n if (locDT != null) {\r\n calToUse = locDT;\r\n }\r\n /*cellDt = dateFmt.parse(cellText);\r\n if (cellDt != null) {\r\n calToUse.setTime(cellDt);\r\n }*/\r\n } catch (DateTimeParseException e1) {\r\n log.error(\"widgetSelected \", e1);\r\n }\r\n\r\n DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN);\r\n datePicker.setData(DATA_VALUE_PARAM, calParam);\r\n DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG);\r\n timePicker.setData(DATA_VALUE_PARAM, calParam);\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1,\r\n calToUse.getDayOfMonth());\r\n timePicker.setTime(calToUse.getHour(), calToUse.getMinute(),\r\n calToUse.getSecond());\r\n\r\n datePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n timePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n dateAndTime.layout();\r\n editControl = dateAndTime;\r\n break;\r\n case INTEGER:\r\n Text intEditor = new Text(tableParams, SWT.NONE);\r\n intEditor.setText(item.getText(columnValueIndex));\r\n intEditor.selectAll();\r\n intEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n Integer resultInt = null;\r\n try {\r\n resultInt = Integer.parseInt(text.getText());\r\n } catch (NumberFormatException nfe) {\r\n log.error(\"NFE \", nfe);\r\n }\r\n if (resultInt != null) {\r\n editor.getItem().setText(columnValueIndex, resultInt.toString());\r\n }\r\n }\r\n });\r\n editControl = intEditor;\r\n break;\r\n case STRING:\r\n default:\r\n Text newEditor = new Text(tableParams, SWT.NONE);\r\n newEditor.setText(item.getText(columnValueIndex));\r\n newEditor.setFont(tableParams.getFont());\r\n newEditor.selectAll();\r\n newEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n editControl = newEditor;\r\n break;\r\n }\r\n\r\n editControl.setFont(tableParams.getFont());\r\n editControl.setFocus();\r\n editor.setEditor(editControl, item, columnValueIndex);\r\n }\r\n }\r\n });\r\n\r\n\r\n btnOK = new Button(shell, SWT.NONE);\r\n btnOK.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnOK = new FormData();\r\n fd_btnOK.bottom = new FormAttachment(100, -7);\r\n fd_btnOK.right = new FormAttachment(40, 2);\r\n fd_btnOK.top = new FormAttachment(100, -35);\r\n fd_btnOK.left = new FormAttachment(15, 2);\r\n btnOK.setLayoutData(fd_btnOK);\r\n btnOK.setText(\"OK\");\r\n btnOK.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.OK, getParamMap());\r\n shell.close();\r\n }\r\n\r\n });\r\n shell.setDefaultButton(btnOK);\r\n\r\n btnCancel = new Button(shell, SWT.NONE);\r\n btnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnCancel = new FormData();\r\n fd_btnCancel.bottom = new FormAttachment(100, -7);\r\n fd_btnCancel.left = new FormAttachment(60, -2);\r\n fd_btnCancel.top = new FormAttachment(100, -35);\r\n fd_btnCancel.right = new FormAttachment(85, -2);\r\n btnCancel.setLayoutData(fd_btnCancel);\r\n btnCancel.setText(\"Cancel\");\r\n btnCancel.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.CANCEL, null);\r\n shell.close();\r\n }\r\n\r\n });\r\n tableParams.redraw();\r\n }", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.RESIZE | SWT.TITLE);\r\n\t\tshell.setSize(690, 436);\r\n\t\t\r\n\t\tDimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tint w = 690;\r\n\t\tint h = 436;\r\n\t\tshell.setBounds((int)(scrSize.width-w)/2,(int)(scrSize.height-h)/2,w, h);\r\n\t\tshell.setText(getText());\r\n\r\n\t\t\r\n\t\tloadData();\r\n\t\t\r\n\t\tviewer = new TableViewer(shell,SWT.FULL_SELECTION |SWT.MULTI |SWT.BORDER);\r\n\t\t\r\n\t\tfinal Table table = viewer.getTable();\r\n\t\ttable.setBounds(23, 53, 638, 285);\r\n\t\ttable.setLinesVisible(true);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setRedraw(true);\r\n\t\t\r\n\t\tTableColumn tbCol_Time = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Time.setWidth(69);\r\n\t\ttbCol_Time.setText(\"序号\");\t\t\r\n\t\t\r\n\t\tTableColumn tbCol_Path = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Path.setWidth(127);\r\n\t\ttbCol_Path.setText(\"进程\");\t\r\n\t\t\r\n\t\tTableColumn tbCol_Info = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Info.setWidth(123);\r\n\t\ttbCol_Info.setText(\"Hash值\");\r\n\t\t\r\n\t\tTableColumn tbCol_Type = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Type.setWidth(92);\r\n\t\ttbCol_Type.setText(\"类型\");\r\n\t\t\r\n\t\tTableColumn tbCol_Hash = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Hash.setWidth(196);\r\n\t\ttbCol_Hash.setText(\"描述信息\");\r\n\t\t\r\n\t\tviewer.setContentProvider(new TableViewerContentProvider());\r\n\t\tviewer.setLabelProvider(new TableViewerLabelProvider());\r\n\t\tviewer.setInput(white_list);\t\t\t\t//===== 设置数据源 ======\r\n\t\t\r\n\t\trefresh();\r\n\t\t\r\n\t\tlbl_ItemCount = new Label(shell, SWT.NONE);\r\n\t\tlbl_ItemCount.setBounds(43, 355, 194, 21);\r\n\t\tlbl_ItemCount.setText(\"未通过验证进程: \"+ table.getItemCount() +\"个\");\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(309, 344, 88, 25);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcount--;\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"楷体_GB2312\", 16, SWT.BOLD));\r\n\t\tlabel.setBounds(301, 10, 118, 21);\r\n\t\tlabel.setText(\"详细信息\");\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);\r\n\t\tlabel_1.setBounds(10, 45, 664, 2);\r\n\r\n\t\t\r\n\t\t//添加窗体鼠标事件\r\n\t\tshell.addMouseListener(new MouseListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\t\t\t\t\r\n\t\t\t\tx=e.x;\r\n\t\t\t\ty=e.y;\t\t\t\t\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tx=y=-1;\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//鼠标移动事件\r\n\t\tshell.addMouseMoveListener(new MouseMoveListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseMove(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif(x>0)\r\n\t\t\t\t{\r\n\t\t\t\t\tshell.setLocation(e.x-x + shell.getLocation().x,\r\n\t\t\t\t\t\te.y-y + shell.getLocation().y);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "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 }", "public abstract void buildTable(PdfPTable table);", "private void createTable() {\n\t\t// Tao dataModel & table \n\t\tdataModel = new DefaultTableModel(headers, 0);\n\t\ttable.setModel(dataModel);\n\t\t\n\t\tnapDuLieuChoBang();\n\t}", "public void generateTable() {\n if (Reference.ean != null) {\n //create a new Table\n TableLayout ll = (TableLayout) findViewById(R.id.table);\n\n //loop through each intolerance we use\n int index = 0;\n\n for (int i = 0; i < Reference.binaryFieldNames.length; i++) {\n //create a new table row\n TableRow row = new TableRow(this);\n\n TableRow.LayoutParams lp = new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT);\n row.setLayoutParams(lp);\n\n //create a new text view\n TextView tv = new TextView(this);\n tv.setText(Reference.binaryFieldNamesFormatted[i]);\n\n //setup the radio buttons\n RadioGroup group = new RadioGroup(this);\n group.setId(index + GROUP_OFFSET);\n\n RadioButton yes = new RadioButton(this);\n yes.setText(POSITIVE);\n\n RadioButton no = new RadioButton(this);\n no.setText(NEGATIVE);\n\n //add the radio buttons to the group\n group.addView(yes);\n group.addView(no);\n\n\n //turn on the previous settings\n switch (data[index]) {\n case Reference.ANY:\n no.toggle();\n break;\n case Reference.NONE:\n yes.toggle();\n break;\n }\n\n //add the views to the row and then add the row\n row.addView(tv);\n row.addView(group);\n ll.addView(row, index);\n\n //add listener for the radio button group\n group.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n //figure out the row the radio button was in\n int row = group.getId() - GROUP_OFFSET;\n //figure out the amount this represents\n String text = ((RadioButton)findViewById(checkedId)).getText().toString();\n int amount = Reference.UNKNOWN;\n //re-map the values because currently 2 is traces and 1 is any amount\n switch (text) {\n case POSITIVE:\n amount = Reference.NONE;\n break;\n case NEGATIVE:\n amount = Reference.ANY;\n break;\n }\n //set this in the profile array\n data[row] = amount;\n }\n });\n index++;\n }\n\n for (int i = 0; i < Reference.tertiaryFieldNames.length; i++) {\n //create a new table row\n TableRow row = new TableRow(this);\n\n TableRow.LayoutParams lp = new TableRow.LayoutParams(TableRow.LayoutParams.WRAP_CONTENT);\n row.setLayoutParams(lp);\n\n //create a new text view\n TextView tv = new TextView(this);\n tv.setText(Reference.tertiaryFieldNamesFormatted[i]);\n\n //setup the radio buttons\n RadioGroup group = new RadioGroup(this);\n group.setId(index + GROUP_OFFSET);\n\n\n RadioButton any = new RadioButton(this);\n any.setText(ANY);\n RadioButton traces = new RadioButton(this);\n traces.setText(TRACES);\n RadioButton none = new RadioButton(this);\n none.setText(NONE);\n\n //add the radio buttons to the group\n group.addView(any);\n group.addView(traces);\n group.addView(none);\n\n\n //turn on the previous settings\n switch (data[index]) {\n case Reference.ANY:\n any.toggle();\n break;\n case Reference.TRACE:\n traces.toggle();\n break;\n case Reference.NONE:\n none.toggle();\n break;\n }\n\n //add the views to the row and then add the row\n row.addView(tv);\n row.addView(group);\n ll.addView(row, index);\n\n //add listener for the radio button group\n group.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n //figure out the row the radio button was in\n int row = group.getId() - GROUP_OFFSET;\n String text = ((RadioButton)findViewById(checkedId)).getText().toString();\n //figure out the amount this represents\n int amount = Reference.UNKNOWN;\n //re-map the values because currently 2 is traces and 1 is any amount\n switch (text) {\n case ANY:\n amount = Reference.ANY;\n break;\n case TRACES:\n amount = Reference.TRACE;\n break;\n case NONE:\n amount = Reference.NONE;\n break;\n }\n //figure out the row the radio butto\n\n //set this in the profile array\n data[row] = amount;\n }\n });\n index++;\n }\n } else {\n ((TextView)findViewById(R.id.title)).setText(\"Scan a barcode to edit a products data\");\n findViewById(R.id.push_button).setVisibility(View.INVISIBLE);\n findViewById(R.id.name).setVisibility(View.INVISIBLE);\n }\n }", "public void addHeaders() {\n TableLayout tl = findViewById(R.id.table);\n TableRow tr = new TableRow(this);\n tr.setLayoutParams(getLayoutParams());\n if (!haverford) {\n tr.addView(getTextView(0, \"Leave Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n } else {\n tr.addView(getTextView(0, \"Leave Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n }\n tl.addView(tr, getTblLayoutParams());\n }", "TableSectionBuilder vAlign(String vAlign);", "private void createTable(BufferedWriter writer, ResultTable tableData)\r\n\t\t\tthrows IOException {\r\n\t\tint height = (37 * tableData.getDataCount()) + 56\r\n\t\t\t\t+ (tableData.getExpectionMessageData().size() * 4);\r\n\t\tString container = \"<div style='width: 766px;background-color: #FFFFFF;box-shadow: 1px 1px 1px #888888;;height: \"\r\n\t\t\t\t+ height + \"px;position: absolute;top: 165px;left: 554px'>\";\r\n\t\tString table = \"<table style='top:10px;position:absolute;width: 750px;left:8px;'><tbody>\";\r\n\t\tString headers = \"<tr><th>TestCase Id</th><th>Method Name</th><th>Servrity</th><th>Time Taken</th><th>Result</th></tr>\";\r\n\r\n\t\twriter.write(container + table + headers);\r\n\r\n\t}", "public static void buildTable() {\r\n\t\t//This method keeps the user from editing the table\r\n\t\ttableModel = new DefaultTableModel() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\t\t@Override\r\n\t\t\tpublic boolean isCellEditable(int row, int column) {\r\n\t\t\t\t//All cells false\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\ttableModel.setNumRows(dblogic.getSize());\r\n\t\ttableModel.setColumnCount(COL_COUNT);\r\n\t\ttableModel.setColumnIdentifiers(columnNames);\r\n\t\ttable.setRowSelectionAllowed(true);\r\n\t\ttable.setColumnSelectionAllowed(false);\r\n\t\ttable.setDragEnabled(false);\r\n\t\ttable.getTableHeader().setReorderingAllowed(false);\r\n\t\ttable.setModel(tableModel);\r\n\r\n\t\t//Build rows\r\n\t\tfor (int i = 0; i < dblogic.getSize(); i++) {\r\n\t\t\ttable.setValueAt(dblogic.getPatronFromDB(i).getLastName(), i, COL_LAST);\r\n\t\t\ttable.setValueAt(dblogic.getPatronFromDB(i).getFirstName(), i, COL_FIRST);\r\n\t\t\ttable.setValueAt(dblogic.getPatronFromDB(i).getPatronEmail(), i, COL_EMAIL);\r\n\t\t\ttable.setValueAt(dblogic.getPatronFromDB(i).getDOB(), i, COL_BIRTH);\r\n\t\t\ttable.setValueAt(dblogic.getPatronFromDB(i).getPatronSinceString(), i, COL_ADDED);\r\n\t\t\ttable.setValueAt(dblogic.getPatronFromDB(i).getAnniv().toString(), i, COL_ANNIV);\r\n\t\t}\r\n\t}", "public void makeTable() {\n TableLayout table = (TableLayout) findViewById(R.id.mainTable); //Create table object that is the main table\n\n TableRow row; //Create row object that will be modified and then added to the table object\n TextView view; //Create textview object that will hold information for that line\n\n DBManager manager = new DBManager(this); //Create manager object in order to be able access the database\n ArrayList<Team> teams = manager.getAllTeams(); //Gets an arraylist of all teams from the database\n Team robo = new Team(); //Creates team object that will be the team of this acitvity\n\n for (int i = 0; i < teams.size(); i++) { //Find the team of this activity\n if ((\"\" + teams.get(i).getNumber()).equals(team)) {\n robo = teams.get(i); //Set the team object of the team for this activity\n break;\n }\n }\n\n row = new TableRow(this);\n row.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set row object sizing\n\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(\"Number: \" + robo.getNumber()); //Display the number of the team\n\n row.addView(view);\n table.addView(row);\n\n row = new TableRow(this);\n row.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set row object sizing\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(\"Name: \" + robo.getName()); //Display the name of the team\n\n row.addView(view);\n table.addView(row);\n\n row = new TableRow(this);\n row.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set row object sizing\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(\"Matches: \" + robo.getMatches()); //Display the matches of the team\n\n row.addView(view);\n table.addView(row);\n\n row = new TableRow(this);\n row.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set row object sizing\n\n\n for (int i = 0; i < robo.getMatches().size(); i++) { //Go through each match the team will play\n int redScore = -1;\n int blueScore = -1;\n\n //Display the match number\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(\"\" + robo.getMatches().get(i) + \":\");\n view.setTypeface(null, Typeface.BOLD);\n\n row = new TableRow(this);\n row.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set row object sizing\n\n row.addView(view);\n\n for (int j = 0; j < teams.size(); j++) { //Go through all of the teams\n for(int k = 0; k < teams.get(j).getMatches().size(); k++) { //Go through each match for the teams\n if (robo.getMatches().get(i) == teams.get(j).getMatches().get(k) && teams.get(j).getNumber() != robo.getNumber()) { //If the match from the teams list equals a match from the matches from the team we are looking at\n\n //Display the number of the team from the team's same match\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(\" \" + teams.get(j).getNumber());\n\n //Set the color of the teams' number based on what allaince they were on\n if (teams.get(j).getAlliances().get(k).equals(\"Red1\") || teams.get(j).getAlliances().get(k).equals(\"Red2\")) {\n view.setTextColor(Color.RED);\n }\n\n else {\n view.setTextColor(Color.BLUE);\n }\n\n final String TeamNumber = \"\" + teams.get(j).getNumber();\n\n view.setOnClickListener(new TableRow.OnClickListener() {\n @Override\n public void onClick(View v) { //Make an onClick for the each row\n Intent intent = new Intent(TeamActivity.this, TeamActivity.class); //If the team number is pressed start a new TeamActivity with information about the selected team\n intent.putExtra(\"Team#\", TeamNumber); //Send the team number into the new activity in order to know which team the new activity should be about\n TeamActivity.this.startActivity(intent); //Start the new activity\n }\n });\n\n row.addView(view);\n\n\n if (redScore == -1 && (teams.get(j).getAlliances().get(k).equals(\"Red1\") || teams.get(j).getAlliances().get(k).equals(\"Red2\")))\n redScore = teams.get(j).getScores().get(k);\n if (blueScore == -1 && (teams.get(j).getAlliances().get(k).equals(\"Blue1\") || teams.get(j).getAlliances().get(k).equals(\"Blue2\")))\n blueScore = teams.get(j).getScores().get(k);\n }\n }\n }\n\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(\" Score:\");\n view.setTypeface(null, Typeface.BOLD);\n row.addView(view);\n\n\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(redScore + \"-\");\n view.setTextColor(Color.RED);\n row.addView(view);\n\n\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(\"\" + blueScore);\n view.setTextColor(Color.BLUE);\n row.addView(view);\n\n table.addView(row);\n }\n }", "private void generateTableC_AndTable_D(){\n\n // just seeing some header cell width\n for(int x=0; x<this.headerCellsWidth.size(); x++){\n Log.v(\"TableMainLayout.java\", this.headerCellsWidth.get(x)+\"\");\n }\n\n for(DataObject dataObject : this.dataObjects){\n\n TableRow tableRowForTableC = this.tableRowForTableC(dataObject);\n TableRow tableRowForTableD = this.taleRowForTableD(dataObject);\n\n this.tableC.addView(tableRowForTableC);\n this.tableD.addView(tableRowForTableD);\n\n }\n }", "public void prepareTable() {\n \tthis.table = new Tape(this.height,this.width,2,this.map);\n }", "private void initTable() {\n \t\t// init table\n \t\ttable.setCaption(TABLE_CAPTION);\n \t\ttable.setPageLength(10);\n \t\ttable.setSelectable(true);\n \t\ttable.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);\n \t\ttable.setColumnCollapsingAllowed(true);\n \t\ttable.setColumnReorderingAllowed(true);\n \t\ttable.setSelectable(true);\n \t\t// this class handles table actions (see handleActions method below)\n \t\ttable.addActionHandler(this);\n \t\ttable.setDescription(ACTION_DESCRIPTION);\n \n \t\t// populate Toolkit table component with test SQL table rows\n \t\ttry {\n \t\t\tQueryContainer qc = new QueryContainer(\"SELECT * FROM employee\",\n \t\t\t\t\tsampleDatabase.getConnection());\n \t\t\ttable.setContainerDataSource(qc);\n \t\t} catch (SQLException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\t// define which columns should be visible on Table component\n \t\ttable.setVisibleColumns(new Object[] { \"FIRSTNAME\", \"LASTNAME\",\n \t\t\t\t\"TITLE\", \"UNIT\" });\n \t\ttable.setItemCaptionPropertyId(\"ID\");\n \t}", "private void setupTable() {\n\t\tString[] columns = { \"Course Name\", \"Course Number\" };\n\n\t\ttableModel = new DefaultTableModel(null, columns) {\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\ttable = new JTable(tableModel);\n\t\ttable.setColumnSelectionAllowed(false);\n\t\ttable.setRowSelectionAllowed(true);\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n\t\ttable.getSelectionModel().addListSelectionListener((ListSelectionEvent event) -> {\n\t\t\tif (table.getSelectedRow() >= 0) {\n\t\t\t\tString name = table.getValueAt(table.getSelectedRow(), 0).toString();\n\t\t\t\tint num = Integer.parseInt(table.getValueAt(table.getSelectedRow(), 1).toString());\n\t\t\t\tupdateTextArea((Course) adCon.search(name, num));\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\tscrollPane.setPreferredSize(new Dimension(350, 175));\n\t\tdisplay.add(scrollPane);\n\t}", "private static void drawTableCompenents() {\n\t\ttopColumn = new JLabel(\"location\");\r\n\t\ttopColumn.setLocation(200, 0);\r\n\t\tExtension.instance.add(topColumn);\r\n\t}", "protected ContainerTag generateVerticalTable(HtmlData data) {\n ContainerTag table = table().withStyle(\"width: 100%\");\n List<String> template = data.getFieldHeaders();\n int totalFields = template.size();\n for (int row = 0; row < totalFields; row++) {\n ContainerTag htmlRow = tr();\n htmlRow.with(th(template.get(row)));\n htmlRow.with(td(data.getFields().get(row)).withId(template.get(row)));\n table.with(htmlRow);\n }\n return table;\n }", "private static void createAndShowGUI() {\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"TableRenderDemo\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n MatchersTablePanel alignTable = new MatchersTablePanel();\r\n \r\n \r\n frame.setContentPane(alignTable);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public void addHeaders(){\n Typeface mtypeFace = Typeface.createFromAsset(getAssets(),\n \"fonts/Lato-Regular.ttf\");\n /** Create a TableRow dynamically **/\n\n tr = new TableRow(this);\n\n tr.setLayoutParams(new LayoutParams(\n\n LayoutParams.FILL_PARENT,\n\n LayoutParams.WRAP_CONTENT));\n\n /** Creating a TextView to add to the row **/\n TextView valueTV = new TextView(this);\n\n valueTV.setText(\"BK RefID\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(25, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV);\n valueTV = new TextView(this);\n\n valueTV.setText(\"Status\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n valueTV = new TextView(this);\n\n valueTV.setText(\"Source\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV);\n TextView companyTV = new TextView(this);\n\n companyTV.setText(\"Booking Type\");\n\n companyTV.setTextColor(Color.WHITE);\n\n companyTV.setTypeface(mtypeFace);\n\n companyTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n companyTV.setPadding(50, 10, 5, 10);\n\n tr.addView(companyTV);\n companyTV = new TextView(this);\n companyTV.setText(\"Date\");\n\n companyTV.setTextColor(Color.WHITE);\n\n companyTV.setTypeface(mtypeFace);\n\n companyTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n companyTV.setPadding(50, 10, 5, 10);\n\n tr.addView(companyTV); // Adding textView to tablerow.\n\n /** Creating another textview **/\n\n // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n\n valueTV.setText(\"PNR\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n\n valueTV.setText(\"Name\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n\n valueTV = new TextView(this);\n\n\n valueTV.setText(\"Airline\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n valueTV.setText(\"From\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n valueTV.setText(\"To\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n valueTV.setText(\"Class\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n valueTV.setText(\"TripType\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n valueTV.setText(\"TotalPax\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n valueTV.setText(\"TotalFare\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n // Adding\n\n\n tr.setBackgroundResource(R.color.gradient);\n\n // Add the TableRow to the TableLayout\n\n tl.addView(tr, new TableLayout.LayoutParams(\n\n LayoutParams.FILL_PARENT,\n\n LayoutParams.WRAP_CONTENT));\n\n\n // we are adding two textviews for the divider because we have two columns\n\n tr = new TableRow(this);\n\n tr.setLayoutParams(new LayoutParams(\n\n LayoutParams.FILL_PARENT,\n\n LayoutParams.WRAP_CONTENT));\n\n /** Creating another textview **/\n/*\n TextView divider = new TextView(this);\n\n divider.setText(\"______________________________________________________________________________________________________________\");\n\n divider.setTextColor(Color.parseColor(\"#ffffff\"));\n\n divider.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n divider.setPadding(5, 0, 0, 0);\n\n divider.setTypeface(Typeface.DEFAULT, Typeface.BOLD);\n\n tr.addView(divider);*/ // Adding textView to tablerow.\n\n /* TextView divider2 = new TextView(this);\n\n divider2.setText(\"-------------------------\");\n\n divider2.setTextColor(Color.GREEN);\n\n divider2.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n divider2.setPadding(5, 0, 0, 0);\n\n divider2.setTypeface(Typeface.DEFAULT, Typeface.BOLD);\n\n tr.addView(divider2);*/ // Adding textView to tablerow.\n\n // Add the TableRow to the TableLayout\n\n tl.addView(tr, new TableLayout.LayoutParams(\n\n LayoutParams.FILL_PARENT,\n\n LayoutParams.WRAP_CONTENT));\n\n }", "private void addOwnersToTable(List<Owner> ownerList)\n {\n for (int i = 0; i < ownerList.size(); i++)\n {\n TableRow row = new TableRow(this);\n TableRow.LayoutParams lp = new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, 30);\n\n row.setLayoutParams(lp);\n\n TextView name = new TextView(this);\n name.setText(ownerList.get(i).Name);\n name.setTextAlignment(View.TEXT_ALIGNMENT_CENTER);\n name.setTextSize(20);\n\n\n TextView city = new TextView(this);\n city.setText(ownerList.get(i).City);\n city.setTextAlignment(View.TEXT_ALIGNMENT_CENTER);\n city.setTextSize(20);\n\n\n TextView state = new TextView(this);\n state.setText(ownerList.get(i).State);\n state.setTextAlignment(View.TEXT_ALIGNMENT_CENTER);\n state.setTextSize(20);\n\n\n row.addView(name);\n row.addView(city);\n row.addView(state);\n if(i%2 ==0)\n {\n row.setBackgroundColor(getResources().getColor(R.color.evenRowBackground));\n }\n table.addView(row, i);\n }\n scrollView.addView(table);\n }", "private void createTableBill(){\r\n //Se crean y definen las columnas de la Tabla\r\n TableColumn col_orden = new TableColumn(\"#\"); \r\n TableColumn col_city = new TableColumn(\"Ciudad\");\r\n TableColumn col_codigo = new TableColumn(\"Código\"); \r\n TableColumn col_cliente = new TableColumn(\"Cliente\"); \r\n TableColumn col_fac_nc = new TableColumn(\"FAC./NC.\"); \r\n TableColumn col_fecha = new TableColumn(\"Fecha\");\r\n TableColumn col_monto = new TableColumn(\"Monto\"); \r\n TableColumn col_anulada = new TableColumn(\"A\");\r\n \r\n //Se establece el ancho de cada columna\r\n this.objectWidth(col_orden , 25, 25); \r\n this.objectWidth(col_city , 90, 150); \r\n this.objectWidth(col_codigo , 86, 86); \r\n this.objectWidth(col_cliente , 165, 300); \r\n this.objectWidth(col_fac_nc , 70, 78); \r\n this.objectWidth(col_fecha , 68, 68); \r\n this.objectWidth(col_monto , 73, 73); \r\n this.objectWidth(col_anulada , 18, 18);\r\n\r\n col_fac_nc.setCellFactory(new Callback<TableColumn, TableCell>() {\r\n @Override\r\n public TableCell call(TableColumn param) {\r\n return new TableCell<Fxp_Archguip_det, String>() {\r\n @Override\r\n public void updateItem(String item, boolean empty) {\r\n super.updateItem(item, empty);\r\n setText(empty ? null : getString());\r\n setAlignment(Pos.CENTER);\r\n }\r\n\r\n private String getString() {\r\n String ret = \"\";\r\n if (getItem() != null) {\r\n ret = getItem().toString();\r\n if (ret.equals(\"0\"))\r\n ret = \"\";\r\n } else {\r\n ret = \"\";\r\n }\r\n return ret;\r\n } \r\n };\r\n }\r\n }); \r\n\r\n col_fecha.setCellFactory(new Callback<TableColumn, TableCell>() {\r\n @Override\r\n public TableCell call(TableColumn param) {\r\n return new TableCell<Fxp_Archguip_det, Date>() {\r\n @Override\r\n public void updateItem(Date item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if(!empty){\r\n setText(item.toLocalDate().toString());\r\n setAlignment(Pos.CENTER);\r\n }\r\n else\r\n setText(null);\r\n }\r\n };\r\n }\r\n }); \r\n\r\n col_monto.setCellFactory(new Callback<TableColumn, TableCell>() {\r\n @Override\r\n public TableCell call(TableColumn param) {\r\n return new TableCell<Fxp_Archguid, Double>() {\r\n @Override\r\n public void updateItem(Double item, boolean empty) {\r\n super.updateItem(item, empty);\r\n setText(empty ? null : getString());\r\n setAlignment(Pos.CENTER_RIGHT);\r\n }\r\n\r\n private String getString() {\r\n String ret = \"\";\r\n if (getItem() != null) {\r\n String gi = getItem().toString();\r\n NumberFormat df = DecimalFormat.getInstance();\r\n df.setMinimumFractionDigits(2);\r\n df.setRoundingMode(RoundingMode.DOWN);\r\n\r\n ret = df.format(Double.parseDouble(gi));\r\n } else {\r\n ret = \"0,00\";\r\n }\r\n return ret;\r\n } \r\n };\r\n }\r\n }); \r\n\r\n col_anulada.setCellFactory(new Callback<TableColumn, TableCell>() {\r\n @Override\r\n public TableCell call(TableColumn param) {\r\n return new TableCell<Fxp_Archguid, Integer>() {\r\n @Override\r\n public void updateItem(Integer item, boolean empty) {\r\n super.updateItem(item, empty);\r\n setText(empty ? null : getString());\r\n setAlignment(Pos.CENTER);\r\n }\r\n\r\n private String getString() {\r\n String ret = \"\";\r\n if (getItem() != null) {\r\n ret = getItem().toString();\r\n if (ret.equals(\"0\"))\r\n ret = \"\";\r\n\r\n setTextFill(isSelected() ? Color.WHITE :\r\n ret.equals(\"0\") ? Color.BLACK :\r\n ret.equals(\"1\") ? Color.RED : Color.GREEN);\r\n } else {\r\n ret = \"\";\r\n }\r\n return ret;\r\n } \r\n };\r\n }\r\n }); \r\n\r\n //Se define la columna de la tabla con el nombre del atributo del objeto USUARIO correspondiente\r\n col_orden.setCellValueFactory( \r\n new PropertyValueFactory<>(\"orden\") );\r\n col_city.setCellValueFactory( \r\n new PropertyValueFactory<>(\"ciudad\") );\r\n col_codigo.setCellValueFactory( \r\n new PropertyValueFactory<>(\"codigo\") );\r\n col_cliente.setCellValueFactory( \r\n new PropertyValueFactory<>(\"cliente\") );\r\n col_fac_nc.setCellValueFactory( \r\n new PropertyValueFactory<>(\"numdocs\") );\r\n col_fecha.setCellValueFactory( \r\n new PropertyValueFactory<>(\"fecdoc\") );\r\n col_monto.setCellValueFactory( \r\n new PropertyValueFactory<>(\"monto\") );\r\n col_anulada.setCellValueFactory( \r\n new PropertyValueFactory<>(\"anulada\") );\r\n \r\n //Se Asigna ordenadamente las columnas de la tabla\r\n tb_factura.getColumns().addAll(\r\n col_orden, col_city, col_codigo, col_cliente, col_fac_nc, col_fecha, \r\n col_monto, col_anulada \r\n ); \r\n \r\n //Se Asigna menu contextual \r\n tb_factura.setRowFactory((TableView<Fxp_Archguid> tableView) -> {\r\n final TableRow<Fxp_Archguid> row = new TableRow<>();\r\n final ContextMenu contextMenu = new ContextMenu();\r\n final MenuItem removeMenuItem = new MenuItem(\"Anular Factura\");\r\n removeMenuItem.setOnAction((ActionEvent event) -> {\r\n switch (tipoOperacion){\r\n case 1:\r\n tb_factura.getItems().remove(tb_factura.getSelectionModel().getSelectedIndex());\r\n break;\r\n case 2:\r\n tb_factura.getItems().get(tb_factura.getSelectionModel().getSelectedIndex()).setAnulada(1);\r\n col_anulada.setVisible(false);\r\n col_anulada.setVisible(true);\r\n break;\r\n }\r\n });\r\n contextMenu.getItems().add(removeMenuItem);\r\n // Set context menu on row, but use a binding to make it only show for non-empty rows:\r\n row.contextMenuProperty().bind(\r\n Bindings.when(row.emptyProperty())\r\n .then((ContextMenu)null)\r\n .otherwise(contextMenu)\r\n );\r\n return row ; \r\n });\r\n \r\n //Se define el comportamiento de las teclas ARRIBA y ABAJO en la tabla\r\n EventHandler eh = new EventHandler<KeyEvent>(){\r\n @Override\r\n public void handle(KeyEvent ke){\r\n //Si fue presionado la tecla ARRIBA o ABAJO\r\n if (ke.getCode().equals(KeyCode.UP) || ke.getCode().equals(KeyCode.DOWN)){ \r\n //Selecciona la FILA enfocada\r\n selectedRowInvoice();\r\n }\r\n }\r\n };\r\n //Se Asigna el comportamiento para que se ejecute cuando se suelta una tecla\r\n tb_factura.setOnKeyReleased(eh); \r\n }", "public JTable create() {\n\n Object[] colName = null;\n int columnsNumber = 0;\n\n columnsNumber = 2;\n colName = new Object[columnsNumber];\n\n colName[0] = MessagesManager.get(\"name\");\n colName[1] = MessagesManager.get(\"value\");\n\n Properties p = System.getProperties();\n\n Enumeration keys = p.keys();\n\n List<String> listKeys = new Vector<String>();\n\n while (keys.hasMoreElements()) {\n String key = (String) keys.nextElement();\n listKeys.add(key);\n }\n\n Collections.sort(listKeys);\n\n Object[][] data = new Object[listKeys.size()][columnsNumber];\n\n for (int i = 0; i < listKeys.size(); i++) {\n String key = listKeys.get(i);\n String value = p.getProperty(key);\n\n data[i][0] = key;\n data[i][1] = value;\n\n }\n\n // TableSorter is a tool class to sort columns by clicking on headers\n TableSorter sorter = new TableSorter(new TableModelNonEditable(data, colName));\n\n // We will create out own getCellRenderer() in the JTable, so that it can call\n // PgeepTableCellRenderer\n// JTable jTable1 = new JTable(sorter) \n// {\n// public TableCellRenderer getCellRenderer(int row, int column) \n// {\n// return new PgeepTableCellRenderer(owner);\n// } \n// };\n\n JTable jTable1 = new JTable(sorter);\n\n // Set the Table Header Display\n Font fontHeader = new Font(m_font.getName(), Font.PLAIN, m_font.getSize());\n JTableHeader jTableHeader = jTable1.getTableHeader();\n jTableHeader.setFont(fontHeader);\n sorter.setTableHeader(jTableHeader);\n\n jTable1.setFont(m_font);\n jTable1.setColumnSelectionAllowed(false);\n jTable1.setRowSelectionAllowed(true);\n jTable1.setAutoscrolls(true);\n\n //jTable1.setColumnModel(new MyTableColumnModel());\n //jTable1.setAutoCreateColumnsFromModel(true);\n\n jTable1.setShowHorizontalLines(false);\n jTable1.setShowVerticalLines(true);\n\n jTable1.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n\n // Resize last column (if necessary)\n jTable1.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\n // use an Expansion factor of 1.3x for change between 12 and Arial,17 \n JTableUtil.calcColumnWidths(jTable1, 1.00);\n\n return jTable1;\n }", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "private void createPdf()\n {\n Document document = new Document();\n try {\n String path = Environment.getExternalStorageDirectory().getAbsolutePath()+\"/Meal Counter\";\n File directory = new File(path);\n if(!directory.exists())\n directory.mkdir();\n\n File file = new File(directory,sharedPreferenceData.getmyCurrentSession()+\".pdf\");\n reportPath = file.getAbsolutePath();\n FileOutputStream fileOutputStream = new FileOutputStream(file);\n PdfWriter.getInstance(document,fileOutputStream);\n document.setPageSize(PageSize.A4);\n document.open();\n Paragraph paragraph;\n Font smallFont = new Font(Font.FontFamily.TIMES_ROMAN,22.0f,Font.NORMAL, BaseColor.BLACK);\n Font largeFont = new Font(Font.FontFamily.TIMES_ROMAN,30.0f,Font.BOLD, BaseColor.BLACK);\n paragraph = new Paragraph(\"Session : #\"+sharedPreferenceData.getmyCurrentSession()+\"\\n\\n\"+\n \"Total Taka ------ \"+monthlyTaka+\"\\n\"+\n \"Total Meal ------ \"+monthlyMeal+\"\\n\"+\n \"Total Cost ------ \"+monthlyCost+\"\\n\"+\n \"Remain ------ \"+remain+\"\\n\"+\n \"Meal rate ------ \"+mealRate+\"\\n\\n\\n\",largeFont);\n paragraph.setAlignment(Paragraph.ALIGN_CENTER);\n //document.add(paragraph);\n\n float[] columnWidth = {6f,9f,9f,9f,9f,9f};\n PdfPTable table = new PdfPTable(columnWidth);\n table.setWidthPercentage(90f);\n\n insertDataIntoTable(table,\"Serial\", Element.ALIGN_CENTER,1,smallFont);\n insertDataIntoTable(table,\"Name\", Element.ALIGN_CENTER,1,smallFont);\n insertDataIntoTable(table,\"Taka\", Element.ALIGN_CENTER,1,smallFont);\n insertDataIntoTable(table,\"Meal\", Element.ALIGN_CENTER,1,smallFont);\n insertDataIntoTable(table,\"Cost\", Element.ALIGN_CENTER,1,smallFont);\n insertDataIntoTable(table,\"Status\", Element.ALIGN_CENTER,1,smallFont);\n table.setHeaderRows(1);\n\n for(int i=0;i<modelList.size();i++)\n {\n insertDataIntoTable(table,String.valueOf(i+1),Element.ALIGN_CENTER,1,smallFont);\n insertDataIntoTable(table,modelList.get(i).getId(),Element.ALIGN_CENTER,1,smallFont);\n insertDataIntoTable(table,modelList.get(i).getTaka(),Element.ALIGN_CENTER,1,smallFont);\n insertDataIntoTable(table,modelList.get(i).getName(),Element.ALIGN_CENTER,1,smallFont);\n insertDataIntoTable(table,modelList.get(i).getDate(),Element.ALIGN_CENTER,1,smallFont);\n insertDataIntoTable(table,modelList.get(i).getStatus(),Element.ALIGN_CENTER,1,smallFont);\n }\n\n paragraph.add(table);\n document.add(paragraph);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (DocumentException e) {\n e.printStackTrace();\n }finally {\n document.close();\n\n }\n }", "private void addHeaders(){\n\n /** Create a TableRow dynamically **/\n tr = new TableRow(this);\n tr.setLayoutParams(new TableRow.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n /** Creating a TextView to add to the row **/\n TextView item = new TextView(this);\n item.setText(\"Recipe\");\n item.setWidth(320);\n item.setBackgroundColor(getResources().getColor(R.color.colorPrimary));\n item.setTextColor(Color.WHITE);\n item.setTypeface(Typeface.DEFAULT, Typeface.BOLD);\n item.setPadding(5, 5, 5, 0);\n tr.addView(item); // Adding textView to tablerow.\n\n\n // Add the TableRow to the TableLayout\n tl.addView(tr, new TableLayout.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n\n }", "TABLE createTABLE();", "private JPanel makeTablePanel(int iSpecies) throws sortie.data.simpletypes.ModelException {\n JTable jTable;\n int i;\n\n Object[][] oTableData = createTable(iSpecies);\n \n jTable = new JTable(oTableData, mp_sHeaders);\n jTable.setGridColor(Color.WHITE);\n jTable.setBackground(Color.WHITE);\n jTable.setFont(new sortie.gui.components.SortieFont());\n\n //Set the cell renderer to right-justify\n javax.swing.table.DefaultTableCellRenderer jRenderer = new javax.swing.table.DefaultTableCellRenderer();\n jRenderer.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n for (i = 0; i < jTable.getColumnCount(); i++) {\n jTable.setDefaultRenderer(jTable.getColumnClass(i), jRenderer);\n }\n\n //Size the table\n int iColumnWidth = 0, iTableHeight = 0, iTableWidth = 0;\n JLabel jTempLabel = new JLabel();\n jTempLabel.setFont(new sortie.gui.components.SortieFont());\n //Find the longest table header (roughly) for sizing the table\n for (i = 0; i < mp_sHeaders.length; i++) {\n jTempLabel.setText(mp_sHeaders[i]);\n iColumnWidth = (int) java.lang.Math.max(iColumnWidth,\n jTempLabel.getPreferredSize().\n getWidth());\n }\n //Set all columns to this longest width so headers display fully\n int iNumColumns = jTable.getColumnCount();\n for (i = 0; i < iNumColumns; i++) {\n jTable.getColumnModel().getColumn(i).setPreferredWidth(iColumnWidth);\n }\n //Size the viewable area - we'll allow a max of 10 columns and 20 rows to\n //display (roughly) - as long as column width doesn't exceed 65 pix\n //Do a max of 20 rows\n iTableHeight = java.lang.Math.min(oTableData.length, 20);\n iTableHeight = (int) (jTempLabel.getPreferredSize().getHeight() *\n iTableHeight);\n //Table width\n iTableWidth = java.lang.Math.min(oTableData[0].length, 10);\n iColumnWidth = java.lang.Math.min(iColumnWidth, 65);\n iTableWidth *= iColumnWidth;\n //Set the auto resize flag to off - this prevents the table from trying to\n //cram all the columns into the space provided, making them unreadable.\n //This way they display at a proper size with a horizontal scroll bar if\n //necessary.\n jTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n jTable.setPreferredScrollableViewportSize(new java.awt.Dimension(\n iTableWidth, iTableHeight));\n\n //Create a scroll pane and add the table to it.\n JScrollPane jScrollPane = new JScrollPane(jTable);\n jScrollPane.setBackground(java.awt.Color.WHITE);\n jScrollPane.getViewport().setBackground(java.awt.Color.WHITE);\n jScrollPane.getViewport().setPreferredSize(new java.awt.Dimension(\n iTableWidth, iTableHeight));\n jTable.getTableHeader().setFont(new sortie.gui.components.SortieFont());\n\n //Put the table into a larger panel with a header label\n jTempLabel = new JLabel();\n if (iSpecies == m_iNumSpecies) {\n jTempLabel.setText(\"All Species: Volume by DBH size class (m3 / ha). MAI is mean annual increment of total volume.\");\n } else {\n jTempLabel.setText(m_oLegend.getSpeciesDisplayName(iSpecies) + \": Volume by DBH size class (m3 / ha). MAI is mean annual increment of total volume.\");\n }\n jTempLabel.setFont(new sortie.gui.components.SortieFont());\n JPanel jTablePanel = new JPanel(new java.awt.BorderLayout());\n jTablePanel.add(jTempLabel, java.awt.BorderLayout.NORTH);\n jTablePanel.add(jScrollPane, java.awt.BorderLayout.CENTER);\n return jTablePanel;\n }", "@Override\n\tpublic void print(String text) {\n\t\tString[] headLine = SQLPull.getHeadline().split(\"\\t\");\n\t\t\n\t\t//split the data\n\t\tString[] rows = text.split(\"\\n\");\n\t\tString[][] data = new String[rows.length][headLine.length];\n\t\tfor (int i=0; i<rows.length; i++)\n\t\t\tdata[i] = rows[i].split(\"\\t\");\n\t\t\n\t\t//insert to table\t\t\n\t\ttable = new JTable(data, headLine);\n\t\tjsp = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tadd(jsp, BorderLayout.CENTER);\n\t\t\n\t\t//setSize\n\t\tsetSize(800, 83+17*data.length);\n\t\t\n\t\tsetVisible(true);\n\t}", "Table createTable();", "public void addTableGui() {\n\t\tDefaultTableModel mTableModel = new DefaultTableModel();\r\n\t\tmTable = new JTable(mTableModel);\r\n\r\n\t\tmTableModel.addColumn(\"MSSV\");\r\n\t\tmTableModel.addColumn(\"HoTen\");\r\n\t\tmTableModel.addColumn(\"GioiTinh\");\r\n\t\tmTableModel.addColumn(\"NTNS\");\r\n\t\tJScrollPane mJScrollPane = new JScrollPane(mTable);\r\n\t\tmJScrollPane.setPreferredSize(new Dimension(760, 310));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.ipady = 40; //make this component tall\r\n\t\tc.weightx = 0.0;\r\n\t\tc.gridwidth = 3;\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 1;\r\n\t\tpanel.add(mJScrollPane,c);\r\n\t}", "public String createTable() {\n\n String statement = \"CREATE TABLE \" + tableName + \"( \";\n\n //go through INTEGER, FLOAT, TEXT columns\n Iterator iterator = Iterables.filter(columns.entrySet(), entry -> entry.getValue().getType() instanceof String).iterator();\n\n while (iterator.hasNext()) {\n Map.Entry<Element, FieldData> fieldDataEntry = (Map.Entry<Element, FieldData>) iterator.next();\n statement += fieldDataEntry.getValue().createColumn() + \",\";\n }\n\n return (new StringBuilder(statement).replace(statement.length() - 1, statement.length(), \"\").toString() + \")\").toUpperCase();\n }", "private void drawDialogFields(MSDialog dialog, boolean isPanel, String orientation)\n {\n TableLayout tl = new TableLayout(getContext());\n LayoutParams lp = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);\n \n // Used on label in table row with field beside label, add a margin right\n // so the label and field are separated\n LayoutParams lpSpan = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);\n lpSpan.setMargins(0, 0, 8, 0);\n \n // Used on label in table row with no field beside\n // Those are usually used as separator so add top and bottom margins\n LayoutParams lpSpanWithMargins = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);\n lpSpanWithMargins.setMargins(0, 10, 0, 15);\n lpSpanWithMargins.span = 2;\n \n tl.setId(nbPanels);\n \n // This is not the first panel we add on this dialog\n if (nbPanels > 0)\n {\n RelativeLayout.LayoutParams tlp = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);\n \n /*\n if (orientation.equals(\"North\"))\n {\n tlp.addRule(RelativeLayout.ABOVE, nbPanels - 1);\n tl.setPadding(0, 0, 0, 10);\n }\n else if (orientation.equals(\"South\"))\n {\n tlp.addRule(RelativeLayout.BELOW, nbPanels - 1);\n tl.setPadding(0, 10, 0, 0);\n }\n else if (orientation.equals(\"West\"))\n {\n tlp.addRule(RelativeLayout.LEFT_OF, nbPanels - 1);\n tl.setPadding(0, 0, 10, 0);\n }\n else\n {\n tlp.addRule(RelativeLayout.RIGHT_OF, nbPanels - 1);\n tl.setPadding(10, 0, 0, 0);\n }*/\n \n tlp.addRule(RelativeLayout.RIGHT_OF, nbPanels - 1);\n tl.setPadding(10, 0, 0, 0);\n \n tl.setLayoutParams(tlp);\n }\n \n content.addView(tl);\n nbPanels++;\n \n TableRow tableRow;\n \n // If it's a panel or at least a dialog with one field or more, we can display its label\n if (isPanel || dialog.getFieldsList().size() > 0)\n {\n showPanelLabel(dialog.getLabel(), tl);\n }\n \n // For each dialog field, add a row in the table layout\n for (DialogField df : dialog.getFieldsList())\n {\n Constant constant = ecu.getConstantByName(df.getName());\n \n if (constant == null && !df.getName().equals(\"null\"))\n {\n showConstantDoesntExists(df.getName());\n }\n else \n {\n tableRow = new TableRow(getContext());\n \n String labelText = df.getLabel();\n \n // Add units to label\n if (constant != null && !constant.getUnits().equals(\"\"))\n {\n labelText += \" (\" + constant.getUnits() + \")\";\n }\n \n TextView label = new TextView(getContext());\n label.setText(labelText);\n \n // If the first character of the label is a #, we need to highlight that label\n // It means it is used as a section separator\n if (labelText.length() > 0 && labelText.substring(0,1).equals(\"#\"))\n {\n label.setText(\" \" + label.getText().toString().substring(1)); // Replace the # by a space\n label.setBackgroundColor(Color.rgb(110, 110, 110));\n }\n \n label.setLayoutParams(lpSpan);\n \n tableRow.addView(label);\n \n // For empty label or empty field name, we just insert an empty text view as second column of the row\n if (df.getLabel().equals(\"\") || df.getName().equals(\"null\"))\n {\n // No second column so label is used to separate so make it bold and merge columns\n label.setTypeface(null, Typeface.BOLD);\n \n // If it's not an empty label and not , add some top and bottom margins\n if (!df.getLabel().equals(\"\"))\n {\n label.setLayoutParams(lpSpanWithMargins);\n }\n }\n else \n {\n tableRow.setLayoutParams(lp);\n \n // Multi-choice constant\n if (constant.getClassType().equals(\"bits\"))\n {\n Spinner spin = new Spinner(getContext());\n \n // Field is ready only or disabled\n if (df.isDisplayOnly() || !ecu.getVisibilityFlagsByName(df.getExpression()))\n {\n spin.setEnabled(false);\n }\n \n /*\n // Remove INVALID from values\n List<String> valuesWithoutInvalid = new ArrayList<String>();\n for (int i = 0; i < constant.getValues().length; i++)\n {\n String value = constant.getValues()[i];\n if (!value.equals(\"INVALID\"))\n {\n valuesWithoutInvalid.add(value);\n }\n }\n \n valuesWithoutInvalid.toArray(new String[valuesWithoutInvalid.size()])\n */\n \n ArrayAdapter<String> spinAdapter = new ArrayAdapter<String>(getContext(), android.R.layout.simple_spinner_item, constant.getValues());\n \n // Specify the layout to use when the list of choices appears\n spinAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n \n spin.setAdapter(spinAdapter);\n \n int selectedValue = (int) ecu.getField(df.getName()); \n spin.setSelection(selectedValue);\n spin.setTag(df.getName());\n \n spin.setOnItemSelectedListener(new OnItemSelectedListener()\n {\n @Override\n public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id)\n {\n refreshFieldsVisibility();\n }\n \n @Override\n public void onNothingSelected(AdapterView<?> parentView){}\n });\n \n tableRow.addView(spin);\n }\n // Single value constant\n else\n {\n double constantValue = ecu.roundDouble(ecu.getField(df.getName()),constant.getDigits());\n String displayedValue = \"\";\n \n if (constant.getDigits() == 0)\n {\n displayedValue = String.valueOf((int) constantValue);\n }\n else\n {\n displayedValue = String.valueOf(constantValue);\n }\n \n EditText edit = new EditText(getContext());\n edit.setText(displayedValue);\n edit.setInputType(InputType.TYPE_NUMBER_FLAG_DECIMAL);\n edit.setSingleLine(true);\n edit.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 18);\n edit.setPadding(8, 5, 8, 5);\n edit.setTag(df.getName());\n \n // Field is ready only or disabled\n if (df.isDisplayOnly() || !ecu.getVisibilityFlagsByName(df.getExpression()))\n {\n edit.setEnabled(false);\n }\n \n tableRow.addView(edit);\n }\n }\n \n tl.addView(tableRow);\n } \n } \n \n // For each dialog panel, add a layout to the dialog\n for (DialogPanel dp : dialog.getPanelsList())\n {\n MSDialog dialogPanel = ecu.getDialogByName(dp.getName());\n \n if (dialogPanel != null)\n {\n drawDialogFields(dialogPanel, true, dp.getOrientation());\n }\n else\n {\n // Maybe it's a curve panel\n //\n // CurveEditor curvePanel = ecu.getCurveEditorByName(dp.getName());\n // if (curvePanel)\n // {\n // \n // }\n //\n }\n }\n }", "private void createTableGuide(){\r\n //Se crean y definen las columnas de la Tabla\r\n TableColumn col_orden = new TableColumn(\"#\"); \r\n TableColumn col_guide = new TableColumn(\"Guia\");\r\n TableColumn stat_guia = new TableColumn(\"S\");\r\n \r\n //Se establece el ancho de cada columna\r\n this.objectWidth(col_orden , 26, 26); \r\n this.objectWidth(col_guide , 50, 50); \r\n this.objectWidth(stat_guia , 18, 18);\r\n\r\n col_guide.setCellFactory(TextFieldTableCell.forTableColumn()); \r\n\r\n stat_guia.setCellFactory(new Callback<TableColumn, TableCell>() {\r\n @Override\r\n public TableCell call(TableColumn param) {\r\n return new TableCell<log_Guide_rel_inv, Object>() {\r\n @Override\r\n public void updateItem(Object item, boolean empty) {\r\n super.updateItem(item, empty);\r\n setText(empty ? null : getString());\r\n setAlignment(Pos.CENTER);\r\n }\r\n\r\n private String getString() {\r\n String ret = \"\";\r\n if (getItem() != null) {\r\n ret = getItem().toString();\r\n\r\n setTextFill(isSelected() ? Color.WHITE :\r\n ret.equals(\"A\") ? Color.RED : \r\n ret.equals(\"P\") ? Color.GREEN : Color.BLUE);\r\n } else {\r\n ret = \"\";\r\n }\r\n return ret;\r\n } \r\n };\r\n }\r\n }); \r\n\r\n //Se define la columna de la tabla con el nombre del atributo del objeto USUARIO correspondiente\r\n col_orden.setCellValueFactory( \r\n new PropertyValueFactory<>(\"numorden\") );\r\n col_guide.setCellValueFactory( \r\n new PropertyValueFactory<>(\"guias\") );\r\n stat_guia.setCellValueFactory( \r\n new PropertyValueFactory<>(\"stat_guia\") );\r\n \r\n //Se Asigna ordenadamente las columnas de la tabla\r\n tb_guias.getColumns().addAll(\r\n col_orden, col_guide, stat_guia\r\n ); \r\n \r\n //Se Asigna menu contextual \r\n tb_guias.setRowFactory((TableView<xy> tableView) -> {\r\n final TableRow<xy> row = new TableRow<>();\r\n final ContextMenu contextMenu = new ContextMenu();\r\n final MenuItem removeMenuItem = new MenuItem(\"Quitar de la Relación\");\r\n\r\n contextMenu.getItems().add(removeMenuItem);\r\n removeMenuItem.setOnAction((ActionEvent event) -> {\r\n switch (tipoOperacion){\r\n case 1:\r\n numFactCarga = numFactCarga - tb_guias.getItems().get(row.getIndex()).getNumfact();\r\n numClieCarga = numClieCarga - tb_guias.getItems().get(row.getIndex()).getNumclie();\r\n\r\n //tb_guias.getItems().remove(row.getItem());\r\n tb_guias.getItems().remove(tb_guias.getSelectionModel().getSelectedIndex());\r\n break;\r\n case 2:\r\n if ((tb_guias.getItems().get(tb_guias.getSelectionModel().getSelectedIndex()).getStat_guia() == null)){\r\n tb_guias.getItems().get(tb_guias.getSelectionModel().getSelectedIndex()).setStat_guia(\"A\");\r\n stat_guia.setVisible(false);\r\n stat_guia.setVisible(true);\r\n }\r\n break;\r\n }\r\n });\r\n\r\n // Set context menu on row, but use a binding to make it only show for non-empty rows:\r\n row.contextMenuProperty().bind(\r\n Bindings.when(row.emptyProperty())\r\n .then((ContextMenu)null)\r\n .otherwise(contextMenu)\r\n );\r\n return row ; \r\n });\r\n \r\n //Se define el comportamiento de las teclas ARRIBA y ABAJO en la tabla\r\n EventHandler eh = new EventHandler<KeyEvent>(){\r\n @Override\r\n public void handle(KeyEvent ke){\r\n //Si fue presionado la tecla ARRIBA o ABAJO\r\n if (ke.getCode().equals(KeyCode.UP) || ke.getCode().equals(KeyCode.DOWN)){ \r\n //Selecciona la FILA enfocada\r\n selectedRowGuide();\r\n }\r\n }\r\n };\r\n //Se Asigna el comportamiento para que se ejecute cuando se suelta una tecla\r\n tb_guias.setOnKeyReleased(eh); \r\n\r\n }", "@Override\r\n\tpublic String getGridText()\r\n\t{\r\n\t\t// TODO Auto-generated method stub\\\r\n\t\tString sheet = \"\";\r\n\t\tfor(int i = 0; i <= 20; i++) { //20 rows\r\n\t\t\tfor(char j = 'A'; j <= 'L';j++) { //A through L\r\n\t\t\t\tif(i == 0) { //Creates row headers\r\n\t\t\t\t\tif(j == 'A') { // Creates letter headers\r\n\t\t\t\t\t\tsheet += \" |\"; //pads for headers\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tsheet += String.format(\"%-10c|\",j);\r\n\t\t\t\t} else{\r\n\t\t\t\t\tif(j == 'A') {\r\n\t\t\t\t\t\tsheet += String.format(\"%-3d|\", i);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsheet += cells[i-1][j-'A'].abbreviatedCellText() + \"|\"; \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//enters new row\r\n\t\t\tsheet += \"\\n\";\r\n\t\t}\r\n\t\t//prints sheet\r\n\t\treturn sheet;\r\n\t}", "@Override\n\tpublic void configTable() {\n\t\tString[][] colNames = { { \"Name\", \"name\" }, { \"Ward No\", \"wardNo\" }, { \"Max. patients\", \"maxPatients\" }, { \"No of Patients\", \"patientCount\" },\n\t\t\t\t{ \"No of Employees\", \"employeeCount\" }};\n\n\t\tfor (String[] colName : colNames) {\n\t\t\tTableColumn<Ward, String> col = new TableColumn<>(colName[0]);\n\t\t\tcol.setCellValueFactory(new PropertyValueFactory<>(colName[1]));\n\t\t\ttable.getColumns().add(col);\n\t\t}\n\n\t\ttable.setItems(tableData);\n\t\t\n\t}", "public String getCreateTableString() {\n \t\treturn \"create table\";\n \t}", "private void createContents() {\n // シェル\n super.createContents(this.parent, SWT.CLOSE | SWT.TITLE, false);\n this.getShell().setText(\"つぶやく\");\n this.shell = this.getShell();\n\n // レイアウト\n GridLayout glShell = new GridLayout(3, false);\n // glShell.horizontalSpacing = 1;\n glShell.marginHeight = 10;\n glShell.marginWidth = 10;\n // glShell.verticalSpacing = 1;\n this.shell.setLayout(glShell);\n\n Label thumnail = new Label(this.shell, SWT.NONE);\n GridData gdThumnail = new GridData(SWT.CENTER, SWT.CENTER, false, false, 3, 1);\n thumnail.setLayoutData(gdThumnail);\n try {\n Image orig = SwtUtils.makeImage(this.imageFile);\n thumnail.setImage(SwtUtils.scaleToFit(orig, 400, 300));\n orig.dispose();\n } catch (IOException e2) {\n SwtUtils.errorDialog(e2, TweetDialog.this.shell);\n }\n\n final Text text = new Text(this.shell, SWT.MULTI | SWT.BORDER | SWT.WRAP);\n GridData gdText = new GridData(SWT.FILL, SWT.FILL, true, true, 3, 1);\n gdText.widthHint = SwtUtils.DPIAwareWidth(300);\n gdText.heightHint = SwtUtils.DPIAwareHeight(80);\n text.setLayoutData(gdText);\n\n Label userName = new Label(this.shell, SWT.NONE);\n userName.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n try {\n userName.setText(TwitterClient.getInstance().getUser().getScreenName());\n } catch (TwitterException e1) {\n SwtUtils.errorDialog(e1, TweetDialog.this.shell);\n }\n\n final Label remainChars = new Label(this.shell, SWT.NONE);\n remainChars.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n text.addModifyListener(new ModifyListener() {\n\n @Override\n public void modifyText(ModifyEvent e) {\n int remain = 117 - text.getText().length();\n remainChars.setText(String.valueOf(remain));\n }\n });\n text.setText(\"\");\n\n Button tweet = new Button(this.shell, SWT.NONE);\n GridData gdTweet = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n gdTweet.widthHint = SwtUtils.DPIAwareWidth(100);\n tweet.setLayoutData(gdTweet);\n tweet.setText(\"つぶやく\");\n tweet.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n try {\n TwitterClient.getInstance().tweet(\n TweetDialog.this, text.getText(), TweetDialog.this.imageFile);\n TweetDialog.this.shell.close();\n ApplicationMain.logPrint(\"つぶやきました\");\n } catch (TwitterException e1) {\n SwtUtils.errorDialog(e1, TweetDialog.this.shell);\n }\n }\n });\n\n this.shell.pack();\n }", "public void tableViewSetup() {\n nameColumn.setCellValueFactory(new PropertyValueFactory<>(\"Name\"));\n productTable.getColumns().add(nameColumn);\n\n manuColumn.setCellValueFactory(new PropertyValueFactory<>(\"Manufacturer\"));\n productTable.getColumns().add(manuColumn);\n\n typeColumn.setCellValueFactory(new PropertyValueFactory<>(\"Type\"));\n productTable.getColumns().add(typeColumn);\n }", "public StringTable(int maxSize) \n\t{\n\t\tfor (int j = 0; j < length; j++){ //fills table with empty slots\n\t\t\tTable[j] = new Record(\" \");\n\t\t}\n\t}", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "private TableCell getTextWrappingCell(){\r\n\t\tTableCell cell = new TableCell<>();\r\n Text text = new Text();\r\n text.setStyle(\"-fx-fill: -fx-text-background-color;\");\r\n cell.setGraphic(text);\r\n cell.setPrefHeight(Control.USE_COMPUTED_SIZE);\r\n text.wrappingWidthProperty().bind(cell.widthProperty());\r\n text.textProperty().bind(cell.itemProperty());\r\n return cell;\r\n\t}", "private void printAsTable(String command, String description){\r\n\t\tSystem.out.printf(\"%-30.30s %-60.60s%n\", command, description);\r\n\t}", "private void addTable()\r\n {\r\n // Create the table\r\n table = new JTable();\r\n table.setAutoCreateRowSorter(true);\r\n table.setColumnSelectionAllowed(false);\r\n table.getTableHeader().setReorderingAllowed(false);\r\n table.setModel(new JarModel());\r\n \r\n // Center the column headings\r\n ((DefaultTableCellRenderer) table.getTableHeader().\r\n getDefaultRenderer()).setHorizontalAlignment(SwingConstants.CENTER);\r\n \r\n // Set the column widths\r\n table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);\r\n table.getColumnModel().getColumn(0).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(0).setMaxWidth(250);\r\n table.getColumnModel().getColumn(2).setPreferredWidth(140);\r\n table.getColumnModel().getColumn(2).setMaxWidth(250);\r\n table.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(3).setMaxWidth(250);\r\n table.getColumnModel().getColumn(4).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(4).setMaxWidth(250);\r\n \r\n // Sort on the first column\r\n table.getRowSorter().toggleSortOrder(0);\r\n \r\n table.getColumnModel().getColumn(0).setCellRenderer(new BooleanColorCellRenderer());\r\n table.getColumnModel().getColumn(2).setCellRenderer(new DateCellRenderer());\r\n \r\n // Add the table to the panel\r\n add(new JScrollPane(table), BorderLayout.CENTER);\r\n }", "public void createBody() {\n\t\tTableView<Debiteur> table = new TableView<>();\n\t\tTableColumn<Debiteur, String> naam = new TableColumn<>(\"Gast\");\n\t\tTableColumn<Debiteur, CheckBox> checkbox = new TableColumn<>(\" \");\n\t\ttable.getColumns().addAll(naam, checkbox);\n\t\tnaam.setCellValueFactory(new PropertyValueFactory<Debiteur, String>(\"naam\"));\n\t\tcheckbox.setCellValueFactory(e -> {\n\t\t\tCheckBox checkBox = new CheckBox();\n\t\t\tBindings.bindBidirectional(checkBox.selectedProperty(), e.getValue().activeProperty());\n\t\t\treturn new SimpleObjectProperty<>(checkBox);\n\t\t});\n\t\ttable.setItems(debiteuren);\n\t\tsetCenter(table);\n\t}", "private void insertDataIntoTable(PdfPTable table,String text,int align,int colspan,Font font)\n {\n PdfPCell cell = new PdfPCell(new Phrase(text.trim(),font));\n cell.setHorizontalAlignment(align);\n cell.setColspan(colspan);\n if(text.trim().equals(\"\"))\n cell.setMinimumHeight(10f);\n table.addCell(cell);\n }", "public static TableLayout getTable(){return table;}", "protected void createContents() {\n\t\tsetText(\"Termination\");\n\t\tsetSize(340, 101);\n\n\t}", "protected String createText() {\r\n\t\t// Default text is 1 based.\r\n\t\tNumberFormat formatter = NumberFormat.getFormat(\"#,###\");\r\n\t\tHasRows display = getDisplay();\r\n\t\tRange range = display.getVisibleRange();\r\n\t\tint pageStart = range.getStart() /*+ 1*/;\r\n\t\tint pageSize = range.getLength();\r\n\t\tint dataSize = display.getRowCount();\r\n\t\tint endIndex = Math.min(dataSize, pageStart + pageSize /*- 1*/);\r\n\t\tendIndex = Math.max(pageStart, endIndex);\r\n\t\tif(endIndex==0)\r\n\t\t\tpageStart = 0;\r\n\t\telse\r\n\t\t\tpageStart = pageStart + 1;\r\n\t\tString text = formatter.format(pageStart) + \"-\"\r\n\t\t\t\t+ formatter.format(endIndex);\r\n\t\treturn text;\r\n\t}", "private void makeCenter() {\r\n // JTabbedPane border.center\r\n // JScrollPane\r\n // JTable\r\n final JTabbedPane tabPane = new JTabbedPane();\r\n\r\n List<String[]> columnNamesList = connectToDB();\r\n\r\n // = {{\"Title\", \"Artist\", \"Genre\"}, \r\n // {\"Title\", \"Year\"}, \r\n // {\"Title\", \"Author\"}, \r\n // {\"Title\"}};\r\n\r\n final Object[][][] data = {\r\n {\r\n {\"Blue\", \"Third Eye Blind\", \"Pop-Punk\"}, {\"Ten\", \"Pearl Jam\", \"Grunge\"}\r\n }, {\r\n {\"Pacific Rim\", \"2013\"}\r\n }, {\r\n {\"Core Java\", \"Horstmann\"}\r\n }, {\r\n {\"DDR Revolution\"}\r\n }\r\n };\r\n\r\n final List<JTable> tables = new ArrayList<JTable>();\r\n for (int i = 0; i < columnNamesList.size(); i++) {\r\n String[] columnNamesArray = columnNamesList.get(i);\r\n @SuppressWarnings(\"serial\")\r\n final DefaultTableModel tableModel = \r\n new DefaultTableModel(data[i], columnNamesArray) {\r\n @Override\r\n public boolean isCellEditable(final int theRow, final int theColumn) {\r\n //all cells false\r\n return false;\r\n }\r\n };\r\n final JTable table = new JTable(tableModel);\r\n table.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\r\n @Override\r\n public void valueChanged(final ListSelectionEvent theEvent) {\r\n // do some actions here, for example\r\n // print first column value from selected row\r\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 }\r\n });\r\n tables.add(table);\r\n }\r\n\r\n for (int i = 0; i < TAB_NAMES.length; i++) {\r\n final JScrollPane scrollPane = new JScrollPane(tables.get(i));\r\n tabPane.addTab(TAB_NAMES[i], null, scrollPane,\r\n \"Does nothing\");\r\n final int ascii = (int) TAB_NAMES[i].charAt(0);\r\n tabPane.setMnemonicAt(0, ascii);\r\n }\r\n myFrame.add(tabPane, BorderLayout.NORTH);\r\n }", "private void createTable(){\n Object[][] data = new Object[0][8];\n int i = 0;\n for (Grupo grupo : etapa.getGrupos()) {\n Object[][] dataAux = new Object[data.length+1][8];\n System.arraycopy(data, 0, dataAux, 0, data.length);\n dataAux[i++] = new Object[]{grupo.getNum(),grupo.getAtletas().size(),\"Registar Valores\",\"Selecionar Vencedores\", \"Selecionar Atletas\"};\n data = dataAux.clone();\n }\n\n //COLUMN HEADERS\n String columnHeaders[]={\"Numero do Grupo\",\"Número de Atletas\",\"\",\"\",\"\"};\n\n tableEventos.setModel(new DefaultTableModel(\n data,columnHeaders\n ));\n //SET CUSTOM RENDERER TO TEAMS COLUMN\n tableEventos.getColumnModel().getColumn(2).setCellRenderer(new ButtonRenderer());\n tableEventos.getColumnModel().getColumn(3).setCellRenderer(new ButtonRenderer());\n tableEventos.getColumnModel().getColumn(4).setCellRenderer(new ButtonRenderer());\n\n //SET CUSTOM EDITOR TO TEAMS COLUMN\n tableEventos.getColumnModel().getColumn(2).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n tableEventos.getColumnModel().getColumn(3).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n tableEventos.getColumnModel().getColumn(4).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n\n }", "private void initialize() {\n\t\t\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\t\n\t\tframe = new JFrame(\"Size Table\");\n\t\tframe.setSize(screenSize.width, screenSize.height);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tsetText();\n\t\t\n\t\tmenuBar.setBounds(0, 0, screenSize.width, 30);\n\t\tmenuBar.add(mnLanguage);\n\t\tmnLanguage.add(mntmEnglish);\n\t\tmntmEnglish.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tlanguage.getEng();\n\t\t\t\tsetText();\n\t\t\t}\n\t\t});\n\t\tmnLanguage.add(mntmThai);\n\t\tmntmThai.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tlanguage.getThai();\n\t\t\t\tsetText();\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(menuBar);\n\t\t\n\t\tJLabel lbSizeTable = new JLabel(\"On Spot Sale\");\n\t\tlbSizeTable.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n\t\tlbSizeTable.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlbSizeTable.setBounds((screenSize.width/2)-150, screenSize.height*4/100, 300, 50);\n\t\tframe.getContentPane().add(lbSizeTable);\n\t\t\n\t\ttable = new JTable();\n\t\ttable.setBorder(new LineBorder(new Color(0, 0, 0)));\n\t\ttable.setPreferredScrollableViewportSize(new Dimension(screenSize.width, screenSize.height*3/4));\n\t\ttable.setBounds(0, screenSize.height*1/10, screenSize.width, screenSize.height*3/4);\n\t\ttable.setModel(table_model );\n\t\tString[] column_name = new String[] {\"name\",\"A\",\"11\",\"22\",\"33\",\"44\",\"55\",\"6\",\"7\",\"O\",\"1\",\"111\",\"2\",\"3\",\"4\",\"5\",\"8\",\"sumW\",\"sumS\"};\n\t\tfor (String i : column_name)\n\t\t\ttable_model.addColumn(i);\n\t\tJScrollPane table_sp = new JScrollPane(\ttable,\n\t\t\t\t\t\t\t\t\t\t\t\tJScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n\t\t\t\t\t\t\t\t\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\ttable_sp.setBounds(0, screenSize.height*1/10, screenSize.width, screenSize.height*3/4);\n\t\ttable_sp.setVisible(true);\n\t\tframe.getContentPane().add(table_sp);\n\t\tfetchData();\n\t}", "@Override\r\n\tpublic void initializeTableContents() {\n\t\t\r\n\t}", "@Override\n\tprotected Control createContents(Composite parent) {\n\t\tComposite container = new Composite(parent, SWT.NONE);\n\t\tcontainer.setLayout(new BorderLayout(0, 0));\n\t\t{\n\t\t\tComposite composite = new Composite(container, SWT.NONE);\n\t\t\tcomposite.setLayoutData(BorderLayout.NORTH);\n\t\t\tcomposite.setLayout(new RowLayout(SWT.HORIZONTAL));\n\t\t\t\n\t\t\tLabel lblEnterPmsNo = new Label(composite, SWT.NONE);\n\t\t\tlblEnterPmsNo.setText(\"Enter PMS No.\");\n\t\t\t\n\t\t\ttext = new Text(composite, SWT.BORDER);\n\t\t\ttext.setLayoutData(new RowData(131, SWT.DEFAULT));\n\t\t\t\n\t\t\tButton btnSearch = new Button(composite, SWT.NONE);\n\t\t\tbtnSearch.setToolTipText(\"Search\");\n\t\t\tbtnSearch.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t}\n\t\t\t});\n\t\t\tbtnSearch.setLayoutData(new RowData(74, SWT.DEFAULT));\n\t\t\tbtnSearch.setText(\"Search\");\n\t\t}\n\t\t\n\t\ttable = new Table(container, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable.setLayoutData(BorderLayout.CENTER);\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setLinesVisible(true);\n\t\tGridData data = new GridData(SWT.FILL, SWT.FILL, true, true);\n data.heightHint = 200;\n table.setLayoutData(data);\n\n String[] titles = { \"Id\", \"Message\", \"Author\", \"Committer\", \"Created Date&Time\", \"Repository Name\" };\n for (int i = 0; i < titles.length; i++) {\n TableColumn column = new TableColumn(table, SWT.NONE);\n column.setText(titles[i]);\n table.getColumn(i).pack();\n }\n \n /* for (int i = 0 ; i<= 50 ; i++){\n TableItem item = new TableItem(table, SWT.NONE);\n item.setText (0, \"Person \" +i);\n item.setText (1, \"LastName \" +i);\n item.setText (2, String.valueOf(i));\n }\n */\n for (int i=0; i<titles.length; i++) {\n table.getColumn (i).pack ();\n } \n\t\t\n\t\tComposite composite = new Composite(container, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.SOUTH);\n\t\tcomposite.setLayout(new RowLayout(SWT.HORIZONTAL));\n\t\t\n\t\tButton btnOK = new Button(composite, SWT.NONE);\n\t\tbtnOK.setToolTipText(\"OK\");\n\t\tbtnOK.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnOK.setText(\"OK\");\n\t\t\n\t\tButton btnCancel = new Button(composite, SWT.NONE);\n\t\tbtnCancel.setToolTipText(\"Cancel\");\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setText(\"Cancel\");\n\n\t\treturn container;\n\t}", "private void createCoverTable(Document document, Image img) throws IOException, DocumentException {\n\n //PEI NAME IN BLUE\n Table table = new Table(1);\n table.setBorder(Table.NO_BORDER);\n table.setWidth(100);\n Font font = getFontBig();\n font.setColor(Color.BLUE);\n font.setStyle(Font.BOLD);\n font.setSize(34);\n Cell cell = new Cell(new Paragraph(peiName, font));\n cell.setHorizontalAlignment(Cell.ALIGN_CENTER);\n cell.setVerticalAlignment(Cell.ALIGN_TOP);\n cell.setBorder(Cell.NO_BORDER);\n table.addCell(cell);\n document.add(table);\n\n //PEI ATTRS\n table = new Table(2);\n table.setCellsFitPage(true);\n table.setBorder(Table.NO_BORDER);\n table.setAlignment(Table.ALIGN_LEFT);\n table.setWidth(100);\n table.setWidths(new float[]{150, 300});\n\n font = getFontSmall();\n font.setStyle(Font.BOLD);\n Paragraph p1 = new Paragraph(getMessage(\"pei.version\") + \":\", font);\n p1.setAlignment(Paragraph.ALIGN_LEFT);\n cell = new Cell(p1);\n Paragraph p2 = new Paragraph(version != null ? version : \"\", getFontSmall());\n p2.setAlignment(Paragraph.ALIGN_LEFT);\n cell.addElement(p2);\n Paragraph p3 = new Paragraph(getMessage(\"pei.versionDate\") + \":\", font);\n p3.setAlignment(Paragraph.ALIGN_LEFT);\n cell.addElement(p3);\n Paragraph p4 = new Paragraph(versionDate != null ? dateFormat.format(versionDate) : \"\", getFontSmall());\n p4.setAlignment(Paragraph.ALIGN_LEFT);\n cell.addElement(p4);\n Paragraph p5 = new Paragraph(simulationDate != null ? getMessage(\"pei.simulationDate\") + \":\" : \"\", font);\n p5.setAlignment(Paragraph.ALIGN_LEFT);\n cell.addElement(p5);\n Paragraph p6 = new Paragraph(simulationDate != null ? dateFormat.format(simulationDate) : \"\", getFontSmall());\n p6.setAlignment(Paragraph.ALIGN_LEFT);\n cell.addElement(p6);\n Paragraph p7 = new Paragraph(getMessage(\"pei.authorName\") + \":\", font);\n p7.setAlignment(Paragraph.ALIGN_LEFT);\n cell.addElement(p7);\n Paragraph p8 = new Paragraph(authorName != null ? authorName : \"\", getFontSmall());\n p8.setAlignment(Paragraph.ALIGN_LEFT);\n cell.addElement(p8);\n\n cell.setBackgroundColor(Color.LIGHT_GRAY);\n cell.setHorizontalAlignment(PdfPCell.ALIGN_RIGHT);\n cell.setVerticalAlignment(Element.ALIGN_BOTTOM);\n table.addCell(cell);\n\n if (img != null) {\n if (img.getWidth() > 295) {\n img.scaleAbsoluteWidth(295);\n img.scaleAbsoluteHeight(img.getHeight() / img.getWidth() * 295);\n }\n img.setAlignment(Image.ALIGN_RIGHT);\n Paragraph p = new Paragraph(\" \");\n p.setAlignment(Paragraph.ALIGN_RIGHT);\n cell = new Cell(p);\n cell.setHorizontalAlignment(Cell.ALIGN_RIGHT);\n cell.addElement(img);\n } else {\n cell = new Cell(\" \");\n }\n cell.setBorder(Cell.NO_BORDER);\n\n table.addCell(cell);\n\n document.add(table);\n }", "public PdfPTable getTable(DatabaseConnection connection)\n throws SQLException, DocumentException, IOException {\n PdfPTable table = new PdfPTable(new float[] { 1, 2, 2, 5, 1 });\n table.setTableEvent(new PressPreviews());\n table.setWidthPercentage(100f);\n table.getDefaultCell().setPadding(5);\n table.getDefaultCell().setBorder(PdfPCell.NO_BORDER);\n table.getDefaultCell().setCellEvent(new PressPreviews());\n for (int i = 0; i < 2; i++) {\n table.addCell(\"Location\");\n table.addCell(\"Date/Time\");\n table.addCell(\"Run Length\");\n table.addCell(\"Title\");\n table.addCell(\"Year\");\n }\n table.getDefaultCell().setBackgroundColor(null);\n table.setHeaderRows(2);\n table.setFooterRows(1);\n List<Screening> screenings = PojoFactory.getPressPreviews(connection);\n Movie movie;\n for (Screening screening : screenings) {\n movie = screening.getMovie();\n table.addCell(screening.getLocation());\n table.addCell(String.format(\"%s %2$tH:%2$tM\",\n screening.getDate().toString(), screening.getTime()));\n table.addCell(String.format(\"%d '\", movie.getDuration()));\n table.addCell(movie.getMovieTitle());\n table.addCell(String.valueOf(movie.getYear()));\n }\n return table;\n }", "private void initView() {\n\t\ttable = new JTable(ttm);\n\t\tfor (int i = 0; i < colWidths.length; i++) {\n\t\t\tTableColumn col = table.getColumnModel().getColumn(i);\n\t\t\tcol.setPreferredWidth(colWidths[i]);\n\t\t}\n\t\ttable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n\t\ttable.setFillsViewportHeight(false);\n\t\tsetViewportView(table);\n\t\tsetBorder(BorderFactory.createLineBorder(Color.black));\n\t}", "public JScrollPane createTable() {\n dataModel = new AbstractTableModel() {\n public int getColumnCount() { return names.length; }\n public int getRowCount() { return data.length;}\n public Object getValueAt(int row, int col) {return data[row][col];}\n public String getColumnName(int column) {return names[column];}\n public Class getColumnClass(int c) {return String.class;}\n //public boolean isCellEditable(int row, int col) {return true;}\n public void setValueAt(Object aValue, int row, int column) { data[row][column] = aValue; }\n };\n\n // Create the table\n tableView = new JTable(dataModel);\n\n // Show colors by rendering them in their own color.\n DefaultTableCellRenderer colorRenderer = new DefaultTableCellRenderer() {\n public void setValue(Object value) {\n\tif (value instanceof Color) {\n\t Color c = (Color)value;\n\t setForeground(c);\n\t setText(c.getRed() + \", \" + c.getGreen() + \", \" + c.getBlue());\n\t}\n }\n\n };\n tableView.setRowHeight(20);\n\n scrollpane = new JScrollPane(tableView);\n tableView.setPreferredScrollableViewportSize(new Dimension(200, 70));\n return scrollpane;\n }", "private void initializeGUITableHeaders(){\n TableColumn<HeapData, Integer> addressColumn = new TableColumn<>(\"Address\");\n addressColumn.setCellValueFactory(new PropertyValueFactory<>(\"address\"));\n TableColumn<HeapData, String> valueColumn = new TableColumn<>(\"Value\");\n valueColumn.setCellValueFactory(new PropertyValueFactory<>(\"value\"));\n valueColumn.setMinWidth(100);\n this.heapTableList.getColumns().addAll(addressColumn, valueColumn);\n\n TableColumn<SymbolData, String> variableNameColumn = new TableColumn<>(\"Variable Name\");\n variableNameColumn.setCellValueFactory(new PropertyValueFactory<>(\"variableName\"));\n variableNameColumn.setMinWidth(100);\n TableColumn<SymbolData, String> valColumn = new TableColumn<>(\"Value\");\n valColumn.setCellValueFactory(new PropertyValueFactory<>(\"value\"));\n symbolTableList.getColumns().addAll(variableNameColumn, valColumn);\n\n TableColumn<SemaphoreData,String> indexColumn = new TableColumn<>(\"Index\");\n indexColumn.setCellValueFactory(new PropertyValueFactory<>(\"index\"));\n TableColumn<SemaphoreData,Integer> valueColumnSem = new TableColumn<>(\"Value\");\n valueColumnSem.setCellValueFactory(new PropertyValueFactory<>(\"value\"));\n TableColumn<SemaphoreData,ArrayList<Integer>>valuesColumn = new TableColumn<>(\"Values\");\n valuesColumn.setCellValueFactory(new PropertyValueFactory<>(\"values\"));\n this.semaphoreTable.getColumns().addAll(indexColumn,valueColumnSem,valuesColumn);\n\n }", "private void createTextPanel()\n\t{\t\t\n\t\ttextPanel.setLayout (new BorderLayout());\n\t\ttextPanel.add(entry, BorderLayout.CENTER);\n\t\t\n\t}", "private void printTable() {\n System.out.println(\"COMPLETED SLR PARSE TABLE\");\n System.out.println(\"_________________________\");\n System.out.print(\"\\t|\");\n // print header\n for(int i = 0; i < pHeader.size(); i++) {\n pHeader.get(i);\n System.out.print(\"\\t\" + i + \"\\t|\");\n }\n System.out.println();\n // print body\n for(int i = 0; i < parseTable.size(); i++) {\n System.out.print(i + \"\\t|\");\n for(int j = 0; j < parseTable.get(i).size(); j++) {\n System.out.print(\"\\t\" + parseTable.get(i).get(j) + \"\\t|\");\n }\n System.out.println();\n }\n System.out.println();\n System.out.println(\"END OF SLR PARSE TABLE\");\n System.out.println();\n }", "public void printTest(){\n\r\n p.resetAll();\r\n p.initialize();\r\n p.feedBack((byte)2);\r\n// p.color(1);\r\n p.alignCenter();\r\n p.setText(\"The Dum Dum Name\");\r\n p.newLine();\r\n p.setText(\"Restaurant Dining\");\r\n p.newLine();\r\n p.addLineSeperator();\r\n p.newLine();\r\n p.setText(\"Bling Bling\");\r\n p.newLine();\r\n p.addLineSeperator();\r\n p.newLine();\r\n\r\n p.alignLeft();\r\n p.setText(\"POD No \\t\\t: 2001 \\t\\t Table \\t: E511\");\r\n p.newLine(); \r\n\r\n p.setText(\"Res Date \\t: \" + \"01/01/1801 22:59\");\r\n\r\n p.newLine();\r\n p.setText(\"Session \\t: Evening Session\");\r\n p.newLine();\r\n p.setText(\"Staff \\t\\t: Bum Dale\");\r\n p.newLine();\r\n p.addLineSeperator();\r\n p.newLine();\r\n p.alignCenter();\r\n p.setText(\" - Some Items - \");\r\n p.newLine();\r\n p.alignLeft();\r\n p.addLineSeperator();\r\n\r\n p.newLine();\r\n\r\n p.setText(\"No \\tItem\\t\\tUnit\\tQty\");\r\n p.newLine();\r\n p.addLineSeperator();\r\n \r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n \r\n p.addLineSeperator();\r\n p.feed((byte)3);\r\n p.finit();\r\n\r\n p.feedPrinter(p.finalCommandSet().getBytes());\r\n \r\n }", "@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 }", "public void createTable() {\n try {\n tableLayout = findViewById(R.id.tabla);\n tb = new TableDinamic(tableLayout, getApplicationContext(), \"cargarDetalle\", clc, cap_1, cap_2, cap_ct, txtidReg, txtId, txtBloque, txtVariedad);\n tableLayout.removeAllViews();\n tb.addHeader(header);\n tb.addData(cargarTabla());\n tb.backgroundHeader(\n Color.parseColor(\"#20C0FF\")\n );\n tb.backgroundData(\n Color.parseColor(\"#FFFFFF\"),\n Color.parseColor(\"#81F0EDED\")\n );\n } catch (Exception e) {\n Toast.makeText(this, \"Error de la table: \" + e.toString(), Toast.LENGTH_LONG).show();\n }\n }", "void table(){\n fill(0);\n rect(width/2, height/2, 600, 350); // boarder\n fill(100, 0 ,0);\n rect(width/2, height/2, 550, 300); //Felt\n \n \n}", "private TimeTable createTimeTableStary(){\n\n final String dateString = \"03.07.2017\";\n SimpleDateFormat formater = new SimpleDateFormat(\"dd.MM.yyyy\");\n\n Date timetableDate = null;\n try {\n timetableDate = formater.parse(dateString);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n ArrayList<Subject> testSubs = new ArrayList<>();\n testSubs.add(new Subject(\"Př\",\"Teoretická informatika\",732,\"UAI\",\"08:00\",\"09:30\", Calendar.MONDAY, \"BB\", \"1\",\"3.10.2016\",\"2.1.2017\",true));\n testSubs.add(new Subject(\"Př\",\"Bakalářská angličtina NS 3\",230,\"OJZ\",\"10:00\",\"11:30\", Calendar.TUESDAY, \"BB\", \"4\",\"3.10.2016\",\"2.1.2017\",true));\n testSubs.add(new Subject(\"Cv\",\"Teoretická informatika\",732,\"UAI\",\"14:30\",\"16:00\", Calendar.TUESDAY, \"AV\", \"Pč4\",\"3.10.2016\",\"2.1.2017\",true));\n\n\n return new TimeTable (timetableDate, testSubs);\n\n }", "public void setTextAlign(TEXT_ALIGN align);", "private void IsiTabel(String text) {\n IsiTabel = new TextView(getActivity());\n IsiTabel.setText(text);\n IsiTabel.setTextColor(getResources().getColor(R.color.fontTabel));\n IsiTabel.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT));\n IsiTabel.setBackground(getResources().getDrawable(R.drawable.background_tabel));\n TR.addView(IsiTabel);\n }", "public customer_table() {\n initComponents();\n getContentPane().setBackground(Color.pink);\n Toolkit tk=Toolkit.getDefaultToolkit();\n int w=(int)tk.getScreenSize().getWidth();\n int h=(int)tk.getScreenSize().getHeight();\n this.setSize(w, h);\n String ss=\"SELECT *FROM `customer`\";\n Showtable(ss);\n a.setText(\"\"+Autoid());\n d.setText(\"@gmail.com\");\n e.setText(\"+880 \");\n \n }", "public void createTapTable(TableConfig tableConfig) throws ConfigurationException;", "@Override\n public String getTextAlign() {\n return graphicsEnvironmentImpl.getTextAlign(canvas);\n }", "private static void assembleRosterTable(){\n for (int i = 0; i < 10; i++) {\n rosterTable.insertRow(i);\n }\n }", "private void initTable() {\n\t\tDefaultTableModel dtm = (DefaultTableModel)table.getModel();\n\t\tdtm.setRowCount(0);\t\t\n\t\tfor(int i=0;i<MainUi.controller.sale.items.size();i++){\n\t\t\tVector v1 = new Vector();\n\t\t\tv1.add(MainUi.controller.sale.items.get(i).getProdSpec().getTitle());\n\t\t\tv1.add(MainUi.controller.sale.items.get(i).getCopies());\n\t\t\tdtm.addRow(v1);\n\t\t}\n\t\tlblNewLabel.setText(\"\"+MainUi.controller.sale.getTotal());\n\t}", "private JTable getJTable() {\r\n\t\tif (jTable == null) {\r\n\t\t\tjTable = new JTable(model){\r\n\t\t\t\t/**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\tpublic TableCellRenderer getCellRenderer( int row, int col ) {\r\n\t\t\t\t\tTableCellRenderer renderer = super.getCellRenderer(row,col);\r\n\t\t\t\t\tif ( (col == 1 )|| (col == 2) )\r\n\t\t\t\t\t\t((JLabel)renderer).setHorizontalAlignment( SwingConstants.LEFT);\r\n\t\t\t\t\t\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t((JLabel)renderer).setHorizontalAlignment( SwingConstants.CENTER );\r\n\t\t\t\t\treturn renderer;\r\n\t\t\t\t}\r\n\t\t\t};\r\n\r\n\t\t\tjTable.setShowGrid(true);\r\n\t\t\tjTable.getColumnModel().getColumn(0).setPreferredWidth(45);\r\n\t\t\tjTable.getColumnModel().getColumn(1).setPreferredWidth(120);\r\n\t\t\tjTable.getColumnModel().getColumn(2).setPreferredWidth(55);\r\n\t\t\tjTable.getColumnModel().getColumn(3).setPreferredWidth(180);\r\n\t\t\tjTable.getColumnModel().getColumn(4).setPreferredWidth(130);\r\n\t\t\tjTable.getColumnModel().getColumn(5).setPreferredWidth(50);\r\n\t\t\tjTable.getColumnModel().getColumn(6).setPreferredWidth(55);\r\n\r\n\t\t}\r\n\r\n\t\treturn jTable;\r\n\t}", "private void setUpTable()\n {\n //Setting the outlook of the table\n bookTable.setColumnReorderingAllowed(true);\n bookTable.setColumnCollapsingAllowed(true);\n \n \n bookTable.setContainerDataSource(allBooksBean);\n \n \n //Setting up the table data row and column\n /*bookTable.addContainerProperty(\"id\", Integer.class, null);\n bookTable.addContainerProperty(\"book name\",String.class, null);\n bookTable.addContainerProperty(\"author name\", String.class, null);\n bookTable.addContainerProperty(\"description\", String.class, null);\n bookTable.addContainerProperty(\"book genres\", String.class, null);\n */\n //The initial values in the table \n db.connectDB();\n try{\n allBooks = db.getAllBooks();\n }catch(SQLException ex)\n {\n ex.printStackTrace();\n }\n db.closeDB();\n allBooksBean.addAll(allBooks);\n \n //Set Visible columns (show certain columnes)\n bookTable.setVisibleColumns(new Object[]{\"id\",\"bookName\", \"authorName\", \"description\" ,\"bookGenreString\"});\n \n //Set height and width\n bookTable.setHeight(\"370px\");\n bookTable.setWidth(\"1000px\");\n \n //Allow the data in the table to be selected\n bookTable.setSelectable(true);\n \n //Save the selected row by saving the change Immediately\n bookTable.setImmediate(true);\n //Set the table on listener for value change\n bookTable.addValueChangeListener(new Property.ValueChangeListener()\n {\n public void valueChange(ValueChangeEvent event) {\n \n }\n\n });\n }", "private void IsiTabelHeader(String text) {\n IsiTabelHeader = new TextView(getActivity());\n IsiTabelHeader.setText(text);\n IsiTabelHeader.setTextColor(getResources().getColor(R.color.white));\n IsiTabelHeader.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT));\n IsiTabelHeader.setBackground(getResources().getDrawable(R.drawable.header_tabel));\n TR.addView(IsiTabelHeader);\n }", "protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }", "protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }", "public static void printTimesTable(int tableSize) {\n System.out.format(\" \");\n for(int i = 1; i<=tableSize;i++ ) {\n System.out.format(\"%4d\",i);\n }\n System.out.println();\n System.out.println(\"--------------------------------------------------------\");\n\n for (int row = 1; row<=tableSize; row++){\n \n System.out.format(\"%4d\",row);\n System.out.print(\" |\");\n \n for (int column = 1; column<=tableSize; column++){\n System.out.format(\"%4d\",column*row);\n }\n System.out.print(\"\\n\");\n }\n\n }", "public void createTable(double pixelSize, String unit) {\r\n\r\n ResultsTable table = new ResultsTable();\r\n for (Cell cell : cells) {\r\n table.incrementCounter();\r\n table.addValue(\"Cell #\", cell.cellNum);\r\n table.addValue(\"Area (square \" + unit + \")\", cell.getArea() * pixelSize * pixelSize);\r\n }\r\n String title = \"Results\";\r\n table.show(title);\r\n }", "public void initTable() {\n this.table.setSelectable(true);\n this.table.setImmediate(true);\n this.table.setWidth(\"100%\");\n this.table.addListener(this);\n this.table.setDropHandler(this);\n this.table.addActionHandler(this);\n this.table.setDragMode(TableDragMode.ROW);\n this.table.setSizeFull();\n\n this.table.setColumnCollapsingAllowed(true);\n // table.setColumnReorderingAllowed(true);\n\n // BReiten definieren\n this.table.setColumnExpandRatio(LABEL_ICON, 1);\n this.table.setColumnExpandRatio(LABEL_DATEINAME, 3);\n this.table.setColumnExpandRatio(LABEL_DATUM, 2);\n this.table.setColumnExpandRatio(LABEL_GROESSE, 1);\n this.table.setColumnExpandRatio(LABEL_ACCESS_MODES, 1);\n this.table.setColumnHeader(LABEL_ICON, \"\");\n }" ]
[ "0.6629666", "0.66162175", "0.65657294", "0.644981", "0.636545", "0.63622653", "0.6292302", "0.6277899", "0.623199", "0.618407", "0.6168582", "0.6160653", "0.60892063", "0.6075962", "0.6053863", "0.60533875", "0.6021078", "0.5961498", "0.5953186", "0.58949214", "0.58854693", "0.58441913", "0.5843812", "0.5811583", "0.57983947", "0.57773805", "0.5772191", "0.5724186", "0.56923276", "0.568606", "0.5675325", "0.5647496", "0.5641013", "0.56131464", "0.560744", "0.56026214", "0.5595087", "0.55933815", "0.55907875", "0.5590085", "0.5580784", "0.55794525", "0.55737877", "0.5569311", "0.55518174", "0.5543695", "0.5543588", "0.5541571", "0.55372405", "0.5535615", "0.5534008", "0.55121344", "0.55116236", "0.551132", "0.55060583", "0.54997104", "0.54978603", "0.5490691", "0.5470752", "0.5468471", "0.54599", "0.5455723", "0.5455268", "0.5449694", "0.5434918", "0.54309493", "0.54238915", "0.5415127", "0.54120487", "0.54113716", "0.5410177", "0.54075426", "0.53944254", "0.53852576", "0.53830403", "0.53735757", "0.53656787", "0.5364052", "0.53639776", "0.5358936", "0.5350974", "0.5348155", "0.53471607", "0.53382474", "0.533781", "0.53376323", "0.5335616", "0.533535", "0.53340834", "0.5333789", "0.53304064", "0.531237", "0.5311082", "0.52986425", "0.52966464", "0.5292962", "0.52855974", "0.52855176", "0.5283979", "0.52792555" ]
0.6654653
0
Fills the table with the top five high scores.
private void fillTable() { table.row(); table.add();//.pad() table.row(); for (int i = 1; i <= game.getNum_scores(); i++) { scoreRank = new Label(String.format("%01d: ", i), new Label.LabelStyle(fonts.getInstance().getClouds(), Color.WHITE)); scoreValue = new Label(String.format("%06d", game.getScores().get(i-1)), new Label.LabelStyle(fonts.getInstance().getRancho(), Color.WHITE)); table.add(scoreRank).expandX().right(); table.add(scoreValue).expandX().left(); table.row(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HighScoresTable(int size) {\n this.highScores = new LinkedList<ScoreInfo>();\n this.capacity = size;\n }", "private void setUpHighscoreList() {\n highscores = fileManager.getHighscoresFromFile();\n\n tableData = new String[highscores.size()][2];\n int index = 0;\n for(String i: highscores.keySet()) {\n tableData[index][0] = i;\n tableData[index][1] = highscores.get(i).toString();\n index++;\n }\n\n highscoreTable = new JTable(tableData, columns) {\n private static final long serialVersionUID = 1L;\n\n public boolean isCellEditable(int row, int column) {\n return false;\n }\n\n };\n highscoreTable.setFocusable(false);\n highscoreTable.setCellSelectionEnabled(false);\n highscoreTable.getTableHeader().setReorderingAllowed(false);\n highscoreTable.setFillsViewportHeight(true);\n highscoreTable.setDragEnabled(false);\n highscorePane = new JScrollPane(highscoreTable);\n\n rootPanel.add(highscorePane, BorderLayout.CENTER);\n }", "public HighScoresTable(int size) {\n this.size = size;\n this.scoreInfoList = scoreInfoList;\n }", "public void resetHighscoreTable()\r\n\t{\r\n\t\tcreateArray();\r\n\t\twriteFile();\r\n\t}", "private void populateTable() {\n Collections.sort(this.player.arr, new SortByLevel());\n achievementLabel.setText(player.toString() + \" at \" + new SimpleDateFormat(\"dd/MM/yy HH:mm:ss\").format(new Date()));\n for(int i = 0; i < this.player.arr.size(); i++) {\n Achievement temp = this.player.arr.get(i);\n resultsTable.addRow(new Object[] {temp.getDescription(), temp.getLevel(), temp.getOutOfPossible()});\n }\n }", "@Test\n public void missingHighScoresTest() {\n database.createHighScoreTable(testTable);\n database.addHighScore(110, testTable);\n database.addHighScore(140, testTable);\n int[] scores = database.loadHighScores(testTable);\n assertEquals(0, scores[4]);\n assertEquals(0, scores[3]);\n assertEquals(0, scores[2]);\n assertEquals(110, scores[1]);\n assertEquals(140, scores[0]);\n database.clearTable(testTable);\n\n }", "public void addToTable() {\n\n\n if (this.highScoresTable.getRank(this.scoreBoard.getScoreCounter().getValue()) <= this.highScoresTable.size()) {\n DialogManager dialog = this.animationRunner.getGui().getDialogManager();\n String name = dialog.showQuestionDialog(\"Name\", \"What is your name?\", \"\");\n\n this.highScoresTable.add(new ScoreInfo(name, this.scoreBoard.getScoreCounter().getValue()));\n File highScoresFile = new File(\"highscores.txt\");\n try {\n this.highScoresTable.save(highScoresFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n\n }", "public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }", "public String getHighscores(){\r\n\t\tString returnString = \"\";\r\n\t\tList<Score> allScores = database.getAllScores(\"hard\");\r\n\t\t\r\n\t\t//loop through top 4 entries of table as obtained in the allScores list\r\n\t\tfor(int i = allScores.size()-1, j = 3; i>=0 && j>=0; j--, i--){\r\n\t\t\treturnString += String.valueOf(allScores.get(i).score + \" | \" + allScores.get(i).time + \"\\n\");\r\n\t\t}\r\n\t\treturn returnString;\r\n\t}", "public ArrayList<Double> getFiveHighestScore() {\n int size = scoreList.size();\n ArrayList<Double> fiveHighestList = new ArrayList<>();\n if (size <= 5) {\n for (Double score: scoreList) {\n fiveHighestList.add(score);\n }\n } else {\n for (int i = 0; i < 5; i++)\n fiveHighestList.add(scoreList.get(i));\n }\n return fiveHighestList;\n }", "public void setTopScore(double topScore) {\n this.topScore = topScore;\n }", "private void refreashTableView() {\n this.scoreboard.refresh();\n sortScoreboard();\n }", "private void fillLeaderboard() {\n highscore_flwPane.getChildren().clear();\n List<HighScore> hList = mainController.getJSONHighScores();\n\n for(int i = 0; i < hList.size(); i++){\n HighscoreController hc = new HighscoreController(this, String.valueOf(i+1), hList.get(i).getName(),hList.get(i).getMode(),hList.get(i).getScore());\n highscore_flwPane.getChildren().add(hc);\n }\n\n }", "private void sortScoreboard() {\n score.setSortType(TableColumn.SortType.DESCENDING);\n this.scoreboard.getSortOrder().add(score);\n score.setSortable(true);\n scoreboard.sort();\n }", "private void setBoardData(Map<Player, Integer> scores) {\n Map<Player, Integer> sortedMap = MapUtil.sortByValueReverse(scores);\n\n for (Player player : Bukkit.getOnlinePlayers()) {\n int line = 1;\n for (Map.Entry<Player, Integer> entry : sortedMap.entrySet()) {\n if (line > scores.size() || line > 15) return;\n\n Player scoreboardEntry = entry.getKey();\n String score = Integer.toString(entry.getValue());\n\n titleManagerAPI.setScoreboardValue(player, line, score + \" \" + ChatColor.GREEN + scoreboardEntry.getDisplayName());\n\n line++;\n }\n }\n }", "public void updateHighscores(ArrayList<Player> tableContent) {\n // Add scores to table\n for (Player p : tableContent) {\n view.getHomePanel().getTableModel().addRow(playerToObjArray(p));\n }\n }", "public HighScoreTable(){\r\n\r\n\t}", "public HighScore(){\n readFile();\n sortHighscores();\n }", "public List<Highscore> getTopTen(Context context){\n highscore = db.getTopTen();\n return highscore;\n }", "private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }", "public void sortScores(){\r\n // TODO: Use a single round of bubble sort to bubble the last entry\r\n // TODO: in the high scores up to the correct location.\r\n \tcount=0;\r\n \tfor(int i=Settings.numScores-1; i>0;i--){\r\n \t\tif(scores[i]>scores[i-1]){\r\n \t\t\tint tempS;\r\n \t\t\ttempS=scores[i];\r\n \t\t\tscores[i]=scores[i-1];\r\n \t\t\tscores[i-1]=tempS;\r\n \t\t\t\r\n \t\t\tString tempN;\r\n \t\t\ttempN=names[i];\r\n \t\t\tnames[i]=names[i-1];\r\n \t\t\tnames[i-1]=tempN;\r\n \t\t\tcount++;\r\n \t\t}\r\n \t}\r\n }", "private void button3ScoreActionPerformed(ActionEvent e) {\n defaultTableModel.setRowCount(0);\n setData(userService.getSort3());\n }", "public LinkedList<HighScore> getHighScores(){\r\n\t\tLinkedList<HighScore> list = new LinkedList<HighScore>();\r\n\t\ttry{\r\n\t\t\t//Sorting by Score column\r\n\t\t ResultSet rs = statement.executeQuery(\"select * from Highscores ORDER BY Score DESC\");\r\n\t\t while(rs.next()){\r\n\t\t String username = rs.getString(\"Nickname\"); \r\n\t\t int userScore = rs.getInt(\"Score\"); \r\n\t\t HighScore userHighScore = new HighScore(username,userScore);\r\n\t\t list.add(userHighScore);\r\n\t\t \r\n\t\t }\r\n\t\t }\r\n\t\t\tcatch (Exception e){\r\n\t\t\t e.printStackTrace();\r\n\t\t\t}\r\n\t\treturn list;\r\n\t}", "public void makeTop()\n {\n top250 = new Movie[TOP_LENGTH];\n for (final Movie m : this)\n {\n final int rank = m.getRank();\n if (rank > 0 && rank <= TOP_LENGTH)\n {\n top250[rank - 1] = m;\n }\n }\n }", "public void init() {\n for (int i = 0; i < MAX_SCORES; i++) {\n highScores[i] = 0;\n names[i] = \"---\";\n }\n }", "@Test\n public void addHighScoreTest() {\n database.createHighScoreTable(testTable);\n assertTrue(database.addHighScore(100, testTable));\n database.clearTable(testTable);\n\n }", "public void sortHighScores(){\n for(int i=0; i<MAX_SCORES;i++){\n long score = highScores[i];\n String name= names[i];\n int j;\n for(j = i-1; j>= 0 && highScores[j] < score; j--){\n highScores[j+1] = highScores[j];\n names[j+1] = names[j];\n }\n highScores[j+1] = score;\n names[j+1] = name;\n }\n }", "public HighScoreTable(int tableID, String initials, int questionNumberAmount, int questionType,\r\n\t\t\t\t\t\t\tint totalQuestions, int totalCorrectAnswers, int score){\r\n\t\tthis.tableID = tableID;\r\n\t\tthis.initials = initials;\r\n\t\tthis.questionNumberAmount = questionNumberAmount;\r\n\t\tthis.questionType = questionType;\r\n\t\tthis.totalQuestions = totalQuestions;\r\n\t\tthis.totalCorrectAnswers = totalCorrectAnswers;\r\n\t\tthis.score = score;\r\n\t}", "public void loadScore() {\n for (int i = 0; i < 4; i++) {\n int[] enemyTankNum = CollisionUtility.getEnemyTankNum();\n tankNumList[i] = enemyTankNum[i];\n }\n for (int i = 0; i < 4; i++) {\n tankScoreList[i] = tankNumList[i] * 100 * (i + 1);\n }\n for (Integer score : tankScoreList) {\n totalScore += score;\n }\n for (Integer num : tankNumList) {\n totalTankNum += num;\n }\n }", "public void createHighScore(String initials, int score) {\n ContentValues values = new ContentValues();\n values.put(COL_SCORE, score);\n values.put(COL_INITIALS, initials);\n\n mDb.insert(TABLE_NAME, null, values);\n }", "public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}", "private void histogramScore() {\r\n View.histogram(score, 0, this.getSize().width + 15, 0);\r\n }", "public void topScore() {\n\t\tif (playern.getExp() >= 100) {\n\t\t\tSystem.out.println(\"You become a Warrior and win the game\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public String getHighscore() {\n String str = \"\";\n\t int max = 10;\n \n ArrayList<Score> scores;\n scores = getScores();\n \n int i = 0;\n int x = scores.size();\n if (x > max) {\n x = max;\n } \n while (i < x) {\n \t str += (i + 1) + \".\\t \" + scores.get(i).getNaam() + \"\\t\\t \" + scores.get(i).getScore() + \"\\n\";\n i++;\n }\n if(x == 0) str = \"No scores for \"+SlidePuzzleGUI.getRows()+\"x\"+SlidePuzzleGUI.getCols()+ \" puzzle!\";\n return str;\n }", "public void setHighscore(int score)\n {\n this.highscore = score;\n }", "@Test\n public void createHighScoreTableTest() {\n assertTrue(database.createHighScoreTable(testTable));\n database.clearTable(testTable);\n }", "private void setHighScore(int hs) {\n setStat(hs, highScore);\n }", "private static void assembleRosterTable(){\n for (int i = 0; i < 10; i++) {\n rosterTable.insertRow(i);\n }\n }", "private void sortPlayerScores(){\n text=\"<html>\";\n for (int i = 1; i <= Options.getNumberOfPlayers(); i++){\n if(Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey() != null){\n Integer pl = Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey();\n if(pl != null && playerScores.containsKey(pl)){\n text += \"<p>Player \" + pl + \" Scored : \" + playerScores.get(pl) + \" points </p></br>\";\n playerScores.remove(pl);\n }\n }\n }\n text += \"</html>\";\n }", "private void fillInList(int roundCount){\r\n\r\n\t\t//Displays all of the stats to the screen by using a list of hash maps\r\n\t\tList<HashMap<String, String>> fillMaps = null;\r\n\t\t\r\n\t\tString[] from = new String[] {\"col_1\", \"col_2\", \"col_3\"};\r\n\t\tint[] to = new int[] {R.id.statisticsitem1, R.id.statisticsitem2, R.id.statisticsitem3};\r\n\t\t\r\n\t\tfillMaps = new ArrayList<HashMap<String, String>>();\r\n\t\t\r\n\t\tHashMap<String, String> map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Overall\");\r\n map.put(\"col_2\", \"Average\");\r\n map.put(\"col_3\", \"+/-\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Total Score\");\r\n map.put(\"col_2\", \"\"+df.format(averageScore));\r\n map.put(\"col_3\", averageScore == 0 ? \"-\" : \"\" + df.format(averagePlusMinus));\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Front 9\");\r\n map.put(\"col_2\", \"\"+df.format(averageFront9Score));\r\n map.put(\"col_3\", averageFront9Score == 0 ? \"-\" : \"\" + df.format(averageFront9PlusMinus));\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Back 9\");\r\n map.put(\"col_2\", \"\"+df.format(averageBack9Score));\r\n map.put(\"col_3\", averageBack9Score == 0 ? \"-\" : \"\" + df.format(averageBack9PlusMinus));\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Score Per Hole\");\r\n map.put(\"col_2\", \"\"+df.format(averageHoleScore));\r\n map.put(\"col_3\", averageHoleScore == 0 ? \"-\" : \"\" + df.format(averageHolePlusMinus));\r\n fillMaps.add(map);\r\n\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Hole Stats\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", \"\");\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Fairways\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfHoles == 0 ? \"-\" : \"\" + df.format(fairways) + \"%\");\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"GIR\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfHoles == 0 ? \"-\" : \"\" + df.format(girs) + \"%\");\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Putts / Hole\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfHoles == 0 ? \"-\" : \"\" + df.format(putts));\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Chips / Hole\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfHoles == 0 ? \"-\" : \"\" + df.format(chips));\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Penalties / Round\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfHoles == 0 ? \"-\" : \"\" + df.format(penalties));\r\n fillMaps.add(map);\r\n\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Scoring Breakdown\");\r\n map.put(\"col_2\", \"Total\");\r\n map.put(\"col_3\", \"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Albatross\");\r\n map.put(\"col_2\", \"\"+df.format(albatrossCount));\r\n map.put(\"col_3\", albatrossCount == 0 ? \"-\" : \"\" + df.format(albatrossCount / numberOfHoles * 100) + \"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Eagle\");\r\n map.put(\"col_2\", \"\"+df.format(eagleCount));\r\n map.put(\"col_3\", eagleCount == 0 ? \"-\" : \"\" + df.format(eagleCount / numberOfHoles * 100) + \"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Birdie\");\r\n map.put(\"col_2\", \"\"+df.format(birdieCount));\r\n map.put(\"col_3\", birdieCount == 0 ? \"-\" : \"\" + df.format(birdieCount / numberOfHoles * 100) + \"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Par\");\r\n map.put(\"col_2\", \"\"+df.format(parCount));\r\n map.put(\"col_3\", parCount == 0 ? \"-\" : \"\" + df.format(parCount / numberOfHoles * 100) + \"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Bogey\");\r\n map.put(\"col_2\", \"\"+df.format(bogeyCount));\r\n map.put(\"col_3\", bogeyCount == 0 ? \"-\" : \"\" + df.format(bogeyCount / numberOfHoles * 100) + \"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Double\");\r\n map.put(\"col_2\", \"\"+df.format(doubleBogeyCount));\r\n map.put(\"col_3\", doubleBogeyCount == 0 ? \"-\" : \"\" + df.format(doubleBogeyCount / numberOfHoles * 100) + \"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Triple\");\r\n map.put(\"col_2\", \"\"+df.format(tripleBogeyCount));\r\n map.put(\"col_3\", tripleBogeyCount == 0 ? \"-\" : \"\" + df.format(tripleBogeyCount / numberOfHoles * 100) + \"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Quadruple or Worse\");\r\n map.put(\"col_2\", \"\"+df.format(quadBogeyPlusCount));\r\n map.put(\"col_3\", quadBogeyPlusCount == 0 ? \"-\" : \"\" + df.format(quadBogeyPlusCount / numberOfHoles * 100) + \"%\");\r\n fillMaps.add(map);\r\n \r\n\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Par 3\");\r\n map.put(\"col_2\", \"Total\");\r\n map.put(\"col_3\", \"%\");\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"GIR\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfPar3Holes == 0 ? \"-\" : \"\" + df.format(par3Girs) + \"%\");\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Putts / Hole\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfPar3Holes == 0 ? \"-\" : \"\" + df.format(par3Putts) );\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Chips / Hole\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfPar3Holes == 0 ? \"-\" : \"\" + df.format(par3Chips) );\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Penalties / Hole\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfPar3Holes == 0 ? \"-\" : \"\" + df.format(par3Penalties) );\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Hole In One\");\r\n map.put(\"col_2\", \"\"+df.format(par3EagleCount));\r\n if (par3EagleCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par3EagleCount/numberOfPar3Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Birdie\");\r\n map.put(\"col_2\", \"\"+df.format(par3BirdieCount));\r\n if (par3BirdieCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par3BirdieCount/numberOfPar3Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Par\");\r\n map.put(\"col_2\", \"\"+df.format(par3ParCount));\r\n if (par3ParCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par3ParCount/numberOfPar3Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Bogey\");\r\n map.put(\"col_2\", \"\"+df.format(par3BogeyCount));\r\n if (par3BogeyCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par3BogeyCount/numberOfPar3Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Double\");\r\n map.put(\"col_2\", \"\"+df.format(par3DoubleBogeyCount));\r\n if (par3DoubleBogeyCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par3DoubleBogeyCount/numberOfPar3Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Triple\");\r\n map.put(\"col_2\", \"\"+df.format(par3TripleBogeyCount));\r\n if (par3TripleBogeyCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par3TripleBogeyCount/numberOfPar3Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Quadruple or Worse\");\r\n map.put(\"col_2\", \"\"+df.format(par3QuadBogeyPlusCount));\r\n if (par3QuadBogeyPlusCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par3QuadBogeyPlusCount/numberOfPar3Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n\r\n\r\n\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Par 4\");\r\n map.put(\"col_2\", \"Total\");\r\n map.put(\"col_3\", \"%\");\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Fairways\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfPar4Holes == 0 ? \"-\" : \"\" + df.format(par4Fairways) + \"%\");\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"GIR\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfPar4Holes == 0 ? \"-\" : \"\" + df.format(par4Girs) + \"%\");\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Putts / Hole\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfPar4Holes == 0 ? \"-\" : \"\" + df.format(par4Putts) );\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Chips / Hole\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfPar4Holes == 0 ? \"-\" : \"\" + df.format(par4Chips) );\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Penalties / Hole\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfPar4Holes == 0 ? \"-\" : \"\" + df.format(par4Penalties) );\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Hole In One\");\r\n map.put(\"col_2\", \"\"+df.format(par4AlbatrossCount));\r\n if (par4AlbatrossCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par4AlbatrossCount/numberOfPar4Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Eagle\");\r\n map.put(\"col_2\", \"\"+df.format(par4EagleCount));\r\n if (par4EagleCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par4EagleCount/numberOfPar4Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Birdie\");\r\n map.put(\"col_2\", \"\"+df.format(par4BirdieCount));\r\n if (par4BirdieCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par4BirdieCount/numberOfPar4Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Par\");\r\n map.put(\"col_2\", \"\"+df.format(par4ParCount));\r\n if (par4ParCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par4ParCount/numberOfPar4Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Bogey\");\r\n map.put(\"col_2\", \"\"+df.format(par4BogeyCount));\r\n if (par4BogeyCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par4BogeyCount/numberOfPar4Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Double\");\r\n map.put(\"col_2\", \"\"+df.format(par4DoubleBogeyCount));\r\n if (par4DoubleBogeyCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par4DoubleBogeyCount/numberOfPar4Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Triple\");\r\n map.put(\"col_2\", \"\"+df.format(par4TripleBogeyCount));\r\n if (par4TripleBogeyCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par4TripleBogeyCount/numberOfPar4Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Quadruple or Worse\");\r\n map.put(\"col_2\", \"\"+df.format(par4QuadBogeyPlusCount));\r\n if (par4QuadBogeyPlusCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par4QuadBogeyPlusCount/numberOfPar4Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Par 5\");\r\n map.put(\"col_2\", \"Total\");\r\n map.put(\"col_3\", \"%\");\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Fairways\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfPar5Holes == 0 ? \"-\" : \"\" + df.format(par5Fairways) + \"%\");\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"GIR\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfPar5Holes == 0 ? \"-\" : \"\" + df.format(par5Girs) + \"%\");\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Putts / Hole\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfPar5Holes == 0 ? \"-\" : \"\" + df.format(par5Putts) );\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Chips / Hole\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfPar5Holes == 0 ? \"-\" : \"\" + df.format(par5Chips) );\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Penalties / Hole\");\r\n map.put(\"col_2\", \"\");\r\n map.put(\"col_3\", numberOfPar5Holes == 0 ? \"-\" : \"\" + df.format(par5Penalties) );\r\n fillMaps.add(map);\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Albatross\");\r\n map.put(\"col_2\", \"\"+df.format(par5AlbatrossCount));\r\n if (par5AlbatrossCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par5AlbatrossCount/numberOfPar5Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Eagle\");\r\n map.put(\"col_2\", \"\"+df.format(par5EagleCount));\r\n if (par5EagleCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par5EagleCount/numberOfPar5Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Birdie\");\r\n map.put(\"col_2\", \"\"+df.format(par5BirdieCount));\r\n if (par5BirdieCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par5BirdieCount/numberOfPar5Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Par\");\r\n map.put(\"col_2\", \"\"+df.format(par5ParCount));\r\n if (par5ParCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par5ParCount/numberOfPar5Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Bogey\");\r\n map.put(\"col_2\", \"\"+df.format(par5BogeyCount));\r\n if (par5BogeyCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par5BogeyCount/numberOfPar5Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Double\");\r\n map.put(\"col_2\", \"\"+df.format(par5DoubleBogeyCount));\r\n if (par5DoubleBogeyCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par5DoubleBogeyCount/numberOfPar5Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Triple\");\r\n map.put(\"col_2\", \"\"+df.format(par5TripleBogeyCount));\r\n if (par5TripleBogeyCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par5TripleBogeyCount/numberOfPar5Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n \r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Quadruple or Worse\");\r\n map.put(\"col_2\", \"\"+df.format(par5QuadBogeyPlusCount));\r\n if (par5QuadBogeyPlusCount == 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\"+df.format(par5QuadBogeyPlusCount/numberOfPar5Holes*100)+\"%\");\r\n fillMaps.add(map);\r\n\r\n\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"Club\");\r\n map.put(\"col_2\", \"Avg. Dist.\");\r\n map.put(\"col_3\", \"Accuracy\");\r\n fillMaps.add(map);\r\n\r\n for(Club club : clubs) {\r\n map = new HashMap<String, String>();\r\n map.put(\"col_1\", \"\" + club.getClub());\r\n map.put(\"col_2\", club.getAvgDist() <= 0 ? \"-\" : \"\" + df.format(club.getAvgDist()));\r\n if (club.getAccuracy() <= 0 && club.getAvgDist() <= 0)\r\n map.put(\"col_3\", \"-\");\r\n else\r\n map.put(\"col_3\", \"\" + df.format(club.getAccuracy()) + \"%\");\r\n fillMaps.add(map);\r\n }\r\n\r\n\r\n\r\n\r\n ListView lv = getListView();\t\r\n \r\n //Sets a fading design as the divider line\r\n int[] colors = {0, 0xff347c12, 0};\r\n lv.setDivider(new GradientDrawable(Orientation.RIGHT_LEFT, colors));\r\n lv.setDividerHeight(1);\r\n \r\n //Displays the list using a special adapter\r\n\t\tSpecialAdapter adapter = new SpecialAdapter(Statistics.this, fillMaps, R.layout.statisticsgrid, from, to);\r\n\t\tlv.setAdapter(adapter);\r\n\t}", "@Override\r\n\tpublic void allScore() {\r\n\t\tallScore = new ArrayList<Integer>();\r\n\t\tallPlayer = new ArrayList<String>();\r\n\t\tConnection connection = ConnectionFactory.getConnection();\r\n try {\r\n Statement stmt = connection.createStatement();\r\n \r\n String query = \"SELECT NAME_PLAYER, SUM(SCORE) AS 'SCORE'\" +\r\n \t\t\" FROM SINGLEPLAYERDB\" +\r\n \t\t\" GROUP BY NAME_PLAYER\" +\r\n \t\t\" ORDER BY SCORE DESC\" ;\r\n ResultSet rs = stmt.executeQuery(query);\r\n \r\n \r\n while (rs.next()) {\r\n \tallPlayer.add(rs.getString(1));\r\n \tallScore.add(Integer.parseInt(rs.getString(2)));\r\n }\r\n \r\n }catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t}", "@Test\n public void testTopFiveToString() {\n // Complexity 5 -> no record\n this.scoreBoard.setComplexity(5);\n List result = this.scoreBoard.TopFiveToString();\n int count = 0;\n for (Object message : result) {\n assertEquals(\"Not enough users to get a full rank\", message);\n count++;\n }\n assertEquals(5, count);\n\n\n // Complexity 3 -> should have 3 records\n this.scoreBoard.setComplexity(3);\n List result3 = this.scoreBoard.TopFiveToString();\n List<String> expected = new ArrayList<>();\n expected.add(\"User: @u1, got 1 steps in game: ST, in level: 1\");\n expected.add(\"User: @u2, got 10 steps in game: ST, in level: 1\");\n expected.add(\"User: @u3, got 15 steps in game: ST, in level: 1\");\n expected.add(\"Not enough users to get a full rank\");\n expected.add(\"Not enough users to get a full rank\");\n for (int i = 0; i < expected.size(); i++) {\n assertEquals(expected.get(i), result3.get(i));\n }\n }", "public static void displayScoreCard(){\r\n\t\t\r\n\t\t try {\r\n\t\t\t \r\n\t\t\t //getting the connection\r\n\t\t\tstatement = connection.createStatement();\r\n\t\t\t\r\n\t\t\t//retriving the data from the database\r\n\t\t\t ResultSet results = statement.executeQuery(\"select * from \" + tableName);\r\n\t\t\t \r\n\t\t\t //Retrieves the Players_Name, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE and OUT_FRONT of this ResultSet object's columns. \r\n\t\t\t ResultSetMetaData rsmd = results.getMetaData();\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t System.out.println(\"\\t\\t\\t\\t Fort Cherry Golf Course\");\r\n\t\t\t // print the names of the above the table\r\n\t\t\t int numberCols = rsmd.getColumnCount();\r\n\t\t\t for (int i=1; i<=numberCols; i++) \r\n\t\t\t {\r\n\t\t\t // extract each column name from the meta data and print them\r\n\t\t\t System.out.print(rsmd.getColumnLabel(i)+\"\\t\"); \r\n\t\t\t }\r\n\r\n\t\t\t //simply printing the line\r\n\t\t\t System.out.println(\"\\n--------------------------------------------------------------------------------------------------\");\r\n\t\t\t \r\n\t\t\t // Reteriving all data one by one from the data base\r\n\t\t\t while(results.next())\r\n\t\t\t {\r\n\t\t\t String players_Name = results.getString(1);\r\n\t\t\t int ONE = results.getInt(2);\r\n\t\t\t int TWO = results.getInt(3);\r\n\t\t\t int THREE = results.getInt(4);\r\n\t\t\t int FOUR = results.getInt(5);\r\n\t\t\t int FIVE = results.getInt(6);\r\n\t\t\t int SIX = results.getInt(7);\r\n\t\t\t int SEVEN = results.getInt(8);\r\n\t\t\t int EIGHT = results.getInt(9);\r\n\t\t\t int NINE = results.getInt(10);\r\n\t\t\t int OUT_FRONT = results.getInt(11);\r\n\t\t\t \r\n\t\t\t //printing the retrive data to the console\r\n\t\t\t System.out.println(players_Name + \"\\t\" + ONE + \"\\t\" + TWO + \"\\t\" + THREE + \"\\t\" + FOUR + \"\\t\" + FIVE + \"\\t\" + SIX + \"\\t\" + SEVEN + \"\\t\" + EIGHT + \"\\t\" + NINE + \"\\t\" + OUT_FRONT);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t //closing the resultset and the statement\r\n\t\t\t results.close();\r\n\t\t\t statement.close();\r\n\t\t\t \r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void LoadingDatabaseScores() {\n\n\t\tCursor cursor = helper.getDataAll(ScoretableName);\n\n\t\t// id_counter = cursor.getCount();\n\t\tSCORE_LIST = new ArrayList<gameModel>();\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tString Score = cursor.getString(SCORE_MAXSCORE_COLUMN);\n\n\t\t\tSCORE_LIST.add(new gameModel(ID, Integer.parseInt(Score),\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}", "public void printTopRatingMovies() {\n\t\tCollections.sort(this.dataList, new SortByRating());\n\t\tint top = Math.min(5, getDataLength());\n\t\tfor (int i=0; i<top; ++i) {\n\t\t\tSystem.out.println(this.dataList.get(i).toString());\n\t\t}\n\t\tCollections.sort(this.dataList);\n\t}", "public ArrayList<HighScore> retrieveHighScoreRows(){\n db = helper.getReadableDatabase();\n ArrayList<HighScore> scoresRows = new ArrayList<>(); // To hold all scores for return\n\n // Get all scores rows, sorted by score value\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n\n while ( ! scoreCursor.isAfterLast() ) { // There are more scores\n // Create scores with result\n HighScore hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1), scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoresRows.add(hs); // Add high score to list\n scoreCursor.moveToNext();\n }\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n db.close();\n return scoresRows; // Return ArrayList of all scores\n }", "public String getTop(){\n StringBuilder htmlTop = new StringBuilder(\"<h2>\");\n for (int i = 0; i<10; i++){\n if (i >= this.highscores.size()){\n htmlTop.append(\" ----<br>\");\n } else {\n htmlTop.append(String.valueOf(this.highscores.get(i))).append(\"<br>\");\n }\n }\n htmlTop.append(\"</h2>\");\n return htmlTop.toString();\n }", "public void populateAllTests() throws FileNotFoundException, IOException {\n File file = new File(\"src/datafiles/AllScores.txt\");\n if (file.exists()) {\n BufferedReader reader = new BufferedReader(new FileReader(file));\n String score = reader.readLine();\n while (score != null) {\n score = score + \"%\";\n lvPastScores.getItems().add(score);\n score = reader.readLine();\n }\n } else {\n lvPastScores.getItems().add(\"No past scores\");\n }\n }", "public void sortHighscores(){\n Collections.sort(highscores);\n Collections.reverse(highscores);\n }", "protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }", "void setBestScore(double bestScore);", "public JTable createTable(Score[] scores){\n\t\tString[] columnNames = {\"Rank\",\n\t\t\"Score\"}; //column names array\n\n\t\tObject[][] data = new Object[scores.length][2]; //create a generic 2D object array with height of score array and two columns\n\t\tfor(int i=0; i<scores.length; i++){\n\t\t\t//populate column 1 with score index ie rank\n\t\t\tdata[i][0]=i+1;\n\t\t\tif(scores[i]!=null){\n\t\t\t\t//if there is a score for that rank, add it to column 2\n\t\t\t\tdata[i][1]=scores[i].getScore();\n\t\t\t}else{\n\t\t\t\t//if there is no score for that rank yet because there are fewer than ten scores in the category\n\t\t\t\t//add a dash\n\t\t\t\tdata[i][1]= \"-\";\n\t\t\t}\n\t\t}\n\t\t//create a table using the titles and data arrays\n\t\tJTable table = new JTable(data, columnNames);\n\t\t//return the table\n\t\treturn table;\n\n\t}", "public void displayDBScores(){\n\t\tCursor c = db.getScores();\n\t\tif(c!=null) {\n\t\t\tc.moveToFirst();\n\t\t\twhile(!c.isAfterLast()){\n\t\t\t\tdisplayScore(c.getString(0),c.getInt(1));\n\t\t\t\tc.moveToNext();\n\t\t\t}\n\t\t\tc.close();\n\t\t}\n\t}", "public Scores() {\n list = new int[50];\n }", "@SqlQuery(\"select * from PLAYERSTATS order by SCORE DESC FETCH FIRST 10 ROWS ONLY\")\n List<PlayerStats> findScoreHighScores();", "@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }", "public void addHighscore(int i){\n highscores.add(i);\n sortHighscores();\n writeFile();\n }", "public boolean checkHighScore(){\n if(highScoreList.isEmpty() || highScoreList.size() < 5){\n return true;\n }\n //Any other case, we have to start comparing\n for(User user : highScoreList) {\n //We found a place to put their score!\n if(getScore() > user.score) {\n return true;\n }\n }\n return false;\n }", "public void makeHigh() {\n Collections.sort(this.cards, Card.COMPARE_BY_VALUE);\n ArrayList<String> validHand = new ArrayList<>();\n for(int i = this.cards.size() - 5; i < this.cards.size(); i++)\n validHand.add(this.cards.get(i).toString());\n this.cardHand = new CardHand(validHand.toArray(new String[0]));\n }", "public void createTotalTable() {\r\n totalTable = new HashMap<>();\r\n //create pair table\r\n\r\n //fill with values\r\n Play[] twenty = {Play.NONE, S, S, S, S, S, S, S, S, S, S, S};\r\n Play[] nineteen = {Play.NONE, S, S, S, S, S, S, S, S, S, S, S};\r\n Play[] eightteen = {Play.NONE, S, S, S, S, S, S, S, S, S, S, S};\r\n Play[] seventeen = {Play.NONE, S, S, S, S, S, S, S, S, S, S, S};\r\n Play[] sixteen = {Play.NONE, H, S, S, S, S, S, H, H, H, H, H};\r\n Play[] fifteen = {Play.NONE, H, S, S, S, S, S, H, H, H, H, H};\r\n Play[] fourteen = {Play.NONE, H, S, S, S, S, H, H, H, H, H, H};\r\n Play[] thirteen = {Play.NONE, H, S, S, S, S, H, H, H, H, H, H};\r\n Play[] twelve = {Play.NONE, H, H, H, S, S, S, H, H, H, H, H};\r\n Play[] eleven = {Play.NONE, H, D, D, D, D, D, D, D, D, D, H};\r\n Play[] ten = {Play.NONE, H, D, D, D, D, D, D, D, D, H, H};\r\n Play[] nine = {Play.NONE, H, H, D, D, D, D, H, H, H, H, H};\r\n Play[] eight = {Play.NONE, H, H, H, H, H, H, H, H, H, H, H};\r\n Play[] seven = {Play.NONE, H, H, H, H, H, H, H, H, H, H, H};\r\n Play[] six = {Play.NONE, H, H, H, H, H, H, H, H, H, H, H};\r\n Play[] five = {Play.NONE, H, H, H, H, H, H, H, H, H, H, H};\r\n\r\n totalTable.put(5, five);\r\n totalTable.put(6, six);\r\n totalTable.put(7, seven);\r\n totalTable.put(8, eight);\r\n totalTable.put(9, nine);\r\n totalTable.put(10, ten);\r\n totalTable.put(11, eleven);\r\n totalTable.put(12, twelve);\r\n totalTable.put(13, thirteen);\r\n totalTable.put(14, fourteen);\r\n totalTable.put(15, fifteen);\r\n totalTable.put(16, sixteen);\r\n totalTable.put(17, seventeen);\r\n totalTable.put(18, eightteen);\r\n totalTable.put(19, nineteen);\r\n totalTable.put(20, twenty);\r\n }", "private void queryMaxMenu()\n\t{\n\t\tclearPanel(getPanel1());\n\t\t\n\t\tJLabel label1=new JLabel(\"Top 10 worst from \"+this.getValue1()+\":\");\n\t\tJLabel label2=new JLabel(\"Top 10 worst from \"+this.getValue2()+\":\");\n\t\t\n\t\t//two separate tables for the queries\n\t\tJTable table1=getQuery1().MaxQuery(value1); \n\t\tJTable table2=getQuery1().MaxQuery(value2); \n\t\t\n\t\t//add them each to a scrolltable so they can be displayed properly\n\t\tJScrollPane scrolltable1 = new JScrollPane(table1);\n\t\tJScrollPane scrolltable2= new JScrollPane(table2);\n\t\t\n\t\tscrolltable1.setBounds(500,60,500,190);\n\t\tscrolltable2.setBounds(500,310,500,190);\n\t\tgetButton3().setBounds(260,10,180,60);\n\t\tgetButton4().setBounds(80,10,180,60);\n\t\tlabel1.setBounds(30,10,500,190);\n\t\tlabel2.setBounds(30,280,500,190);\n\t\t\n\t\tlabel1.setFont(new Font(\"Serif\", Font.CENTER_BASELINE, 19));\n\t\tlabel2.setFont(new Font(\"Serif\", Font.CENTER_BASELINE, 19));\n\t\t\n\t\t//add buttons with select new data and go back\n\t\tgetPanel1().add(scrolltable1);\n\t\tgetPanel1().add(scrolltable2);\n\t\tgetPanel1().add(getButton3());\n\t\tgetPanel1().add(getButton4());\n\t\tgetPanel1().add(label1);\n\t\tgetPanel1().add(label2);\n\t}", "public static void main(String[] args){\n ArrayList<Record> test = new ArrayList<>();\n test.add(new Record(1,91));\n test.add(new Record(1,92));\n test.add(new Record(2,93));\n test.add(new Record(2,99));\n test.add(new Record(2,98));\n test.add(new Record(2,97));\n test.add(new Record(1,60));\n test.add(new Record(1,58));\n test.add(new Record(2,100));\n test.add(new Record(1,61));\n\n System.out.print(firstFiveAverage.highFive(10,test));\n }", "public void scoreSorting(SortingQuiz scoringMethod, SortingSample s) {\r\n for(int i=1; i<=s.answers.size(); i++) {\r\n HourGlass scores = new HourGlass();\r\n scores.weightAnswer(scoringMethod.answers.get(s.getAnswerNum(i)));\r\n System.out.println(scores);\r\n// this.scores.weightAnswer(scoringMethod.answers.get(s.getAnswerNum(i)));\r\n }\r\n }", "public void fillResultsBox(){\n\n //reset the text box and add the header\n resultList.setText(\"\");\n resultList.append(\"Item \\t Win \\t Loss \\t Tie \\n\");\n\n //generate a list of ranked results for the current user\n generateResultsList();\n\n //for each item in the unranked item list, print the highest ranked item and remove it from the ranked item list\n for (TestItem testItem: testItems){\n printAndDeleteHighestItem();\n }\n }", "public void loadScores() {\n try {\n File f = new File(filePath, highScores);\n if(!f.isFile()){\n createSaveData();\n }\n BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(f)));\n\n topScores.clear();\n topName.clear();\n\n String[] scores = reader.readLine().split(\"-\");\n String[] names = reader.readLine().split(\"-\");\n\n for (int i =0; i < scores.length; i++){\n topScores.add(Integer.parseInt(scores[i]));\n topName.add(names[i]);\n }\n reader.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void showScore(Skin skin) {\r\n \tif(PlayerProfileManager.getInstance().getCurrentPlayerProfile().getCurrentLevelProfile().isTutorial()) {\r\n \t\treturn;\r\n \t}\r\n \r\n newScore = gameController.getScoreController().generateEndScore(gameController);\r\n \r\n // define some space between the labels and the values\r\n messageTable.columnDefaults(1).width(50f);\r\n \r\n int gainMoney = 0;\r\n \r\n Score recentBestScore = ScoreManager.getInstance().getCurrentLevelBestScore();\r\n if ((recentBestScore == null && newScore.getTotalScore() > 0) || newScore.getTotalScore() > recentBestScore.getTotalScore()) {\r\n \r\n \tgainMoney = (int)(newScore.getTotalScore() * PlayerProfileManager.getInstance().getCurrentPlayerProfile().getCurrentLevelGroup().getMoneyFactor());\r\n \r\n newScore.setServerScoreId(recentBestScore == null ? -1 : recentBestScore.getServerScoreId());\r\n ScoreManager.getInstance().saveBestScore(newScore);\r\n \r\n messageTable.row();\r\n messageTable.add(new Label(I18n.t(\"newRecord\") + \":\", skin)).right();\r\n messageTable.add();\r\n messageTable.add(new Label(String.valueOf(newScore.getTotalScore()), skin)).left();\r\n }\r\n else {\r\n \tgainMoney = (int)(newScore.getTotalScore() * PlayerProfileManager.getInstance().getCurrentPlayerProfile().getCurrentLevelGroup().getMoneyFactor()*0.25);\r\n \r\n \r\n Label scoreName = new Label(I18n.t(\"newScore\"), skin);\r\n \r\n messageTable.add(scoreName).right();\r\n messageTable.add();\r\n StringBuilder builder = new StringBuilder();\r\n builder.append(newScore.getTotalScore());\r\n builder.append(\", \");\r\n builder.append(I18n.t(\"record\"));\r\n builder.append(\": \");\r\n builder.append(recentBestScore.getTotalScore());\r\n messageTable.add(new Label(builder.toString(), skin)).left();\r\n }\r\n messageTable.row().expand();\r\n \r\n // adds an amount of money to the players profile that equals the score\r\n // he got in this level\r\n PlayerProfileManager.getInstance().getCurrentPlayerProfile().addMoney(gainMoney);\r\n \r\n // gates\r\n ScoreDetail detail = newScore.getScoreDetails().get(0);\r\n messageTable.add(new Label(I18n.t(detail.getDetailName()), skin, \"medium-font\")).right();\r\n messageTable.add();\r\n StringBuilder gatesBuilder = new StringBuilder();\r\n gatesBuilder.append(GameController.getInstance().getScoreController().getGatesPassed());\r\n gatesBuilder.append(\" (\");\r\n gatesBuilder.append(detail.getValue());\r\n gatesBuilder.append(\")\");\r\n \r\n messageTable.add(new Label(gatesBuilder, skin, \"medium-font\")).left();\r\n \r\n // time\r\n messageTable.row().expand();\r\n detail = newScore.getScoreDetails().get(1);\r\n messageTable.add(new Label(I18n.t(detail.getDetailName()), skin, \"medium-font\")).right();\r\n messageTable.add();\r\n StringBuilder timeBuilder = new StringBuilder();\r\n timeBuilder.append(gameController.getTimeController().getIntegerTime());\r\n timeBuilder.append(\" s (\");\r\n timeBuilder.append(detail.getValue());\r\n timeBuilder.append(\")\");\r\n messageTable.add(new Label(timeBuilder, skin, \"medium-font\")).left();\r\n \r\n // bonus points\r\n messageTable.row().expand();\r\n detail = newScore.getScoreDetails().get(2);\r\n messageTable.add(new Label(I18n.t(detail.getDetailName()), skin, \"medium-font\")).right();\r\n messageTable.add();\r\n messageTable.add(new Label(detail.getValue(), skin, \"medium-font\")).left();\r\n messageTable.row();\r\n \r\n //gain money\r\n messageTable.row().expand(); \r\n messageTable.add(new Label(I18n.t(\"gainMoney\") + \":\", skin)).right();\r\n messageTable.add();\r\n messageTable.add(new Label(gainMoney+\"\", skin)).left();\r\n messageTable.row();\r\n \r\n }", "public void populatePastTests() throws FileNotFoundException, IOException {\n String userID = Project.getUserID();\n File scoreFile = new File(\"src/datafiles/\" + userID + \".txt\");\n if (scoreFile.exists()) {\n BufferedReader reader = new BufferedReader(new FileReader(scoreFile));\n String score = reader.readLine();\n while (score != null) {\n score = score + \"%\";\n lvUserScores.getItems().add(score);\n score = reader.readLine();\n }\n } else {\n lvUserScores.getItems().add(\"No past scores\");\n }\n }", "public void changeHighest()\n {\n hourCounts[18] = 100;\n }", "public void setHomeScore(int h);", "public void updateHighestScoreDisplay(int score){\n this.score.setText(\"Highest Score: \"+score);\n }", "private void setScore(Stack a) {\n\n //clears the current high score\n items.clear();\n\n //adds the high score from stack\n for (Node i = a.top; i != null; i = i.next) {\n\n items.add(i.name + \" \" + i.score);\n\n }\n\n //displays the new high scores again\n List = new JList(items.toArray());\n ScrollView.setViewportView(List);\n\n }", "private void setTable() {\n try {\n DefaultTableModel dtm = (DefaultTableModel) table.getModel();\n dtm.setRowCount(0);\n ArrayList<Item> itemList = ItemController.getAllItem();\n if (itemList != null) {\n for (Item item : itemList) {\n String qoh = BatchController.getQOH(item.getCode());\n if (qoh != null) {\n if (item.getRol() >= Integer.valueOf(qoh)) {\n Object row[] = {item.getCode(), item.getDesciption(), item.getRol(), qoh};\n dtm.addRow(row);\n }\n }\n\n }\n }\n if (dtm.getRowCount() == 0) {\n JOptionPane.showMessageDialog(this, \"Stock level is above ROL\");\n }\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ROL.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(ROL.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void loadHighScore() {\n this.myHighScoreInt = 0;\n \n final String userHomeFolder = System.getProperty(USER_HOME); \n final Path higheScoreFilePath = Paths.get(userHomeFolder, HIGH_SCORE_FILE);\n \n final File f = new File(higheScoreFilePath.toString());\n if (f.exists() && !f.isDirectory()) { \n FileReader in = null;\n BufferedReader br = null;\n try {\n in = new FileReader(higheScoreFilePath.toString());\n br = new BufferedReader(in);\n String scoreAsString = br.readLine();\n if (scoreAsString != null) {\n scoreAsString = scoreAsString.trim();\n this.myHighScoreInt = Integer.parseInt(scoreAsString);\n }\n } catch (final FileNotFoundException e) {\n emptyFunc();\n } catch (final IOException e) {\n emptyFunc();\n } \n \n try {\n if (in != null) {\n in.close();\n }\n if (br != null) {\n br.close();\n }\n } catch (final IOException e) { \n emptyFunc();\n } \n } else {\n try {\n f.createNewFile();\n } catch (final IOException e) {\n return;\n }\n }\n }", "public void resetScore(){\n Set<String> keys = CalcScore.keySet();\n for(String key: keys){\n CalcScore.replace(key,0.0);\n }\n\n\n\n }", "public int getHighScore(int i) {\n return topScores.get(i);\n }", "public Highscore() {\n scores = new ArrayList<Score>();\n }", "@GetMapping(\"/scores/alltime\")\n\tpublic ResponseEntity<ArrayNode> getAllTimeTopScores() {\n\t\tArrayNode result = mapper.createArrayNode();\n\t\tList<Object[]> allScores = this.scoreRepo.findAllScores();\n\n\n\t\tfor (int i = 0; i < 10 && i < allScores.size(); i++) {\n\t\t\t// current userId and month score\n\t\t\tObject[] currScore = allScores.get(i);\n\t\t\t// One JSON object\n\t\t\tObjectNode score = mapper.createObjectNode();\n\t\t\t// Convert BigInteger to long and int\n\t\t\tlong userId = ((Number) currScore[0]).longValue();\n\t\t\tint monthScore = ((Number) currScore[1]).intValue();\n\t\t\tCustomUser user = this.userRepo.findById(userId);\n\t\t\tString username = user.getUsername();\n\n\t\t\tscore.put(\"rank\", i + 1);\n\t\t\tscore.put(\"username\", username);\n\t\t\tscore.put(\"user\", userId);\n\t\t\tscore.put(\"score\", monthScore);\n\t\t\tscore.put(\"picId\", user.getPicId());\n\t\t\t// add to result array of JSON objects\n\t\t\tresult.add(score);\n\t\t}\n\t\treturn ResponseEntity.ok().body(result);\n\t}", "public void setScore(int s) {\n if (s > getHighScore()) {\n setHighScore(s);\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy/MM/dd HH:mm:ss\");\n LocalDateTime now = LocalDateTime.now();\n String timeNow = dtf.format(now);\n setHighScoreTime(timeNow);\n }\n setStat(s, score);\n }", "public void resetAllScores(View view) {\n teamA_score = 0;\n teamB_score = 0;\n ADVANTAGE = 0;\n enableScoreView();\n unSetWinnerImage();\n displayTeamA_score(teamA_score);\n displayTeamB_score(teamB_score);\n\n }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "private void fillQuestionsTable() {\n Question q1 = new Question(\"Who is NOT a Master on the Jedi council?\", \"Anakin Skywalker\", \"Obi Wan Kenobi\", \"Mace Windu\", \"Yoda\", 1);\n Question q2 = new Question(\"Who was Anakin Skywalker's padawan?\", \"Kit Fisto\", \"Ashoka Tano\", \"Barris Ofee\", \"Jacen Solo\",2);\n Question q3 = new Question(\"What Separatist leader liked to make find additions to his collection?\", \"Pong Krell\", \"Count Dooku\", \"General Grevious\", \"Darth Bane\", 3);\n Question q4 = new Question(\"Choose the correct Response:\\n Hello There!\", \"General Kenobi!\", \"You are a bold one!\", \"You never should have come here!\", \"You turned her against me!\", 1);\n Question q5 = new Question(\"What ancient combat technique did Master Obi Wan Kenobi use to his advantage throughout the Clone Wars?\", \"Kendo arts\", \"The High ground\", \"Lightsaber Form VIII\", \"Force healing\", 2);\n Question q6 = new Question(\"What was the only surviving member of Domino squad?\", \"Fives\", \"Heavy\", \"Echo\", \"Jesse\", 3);\n Question q7 = new Question(\"What Jedi brutally murdered children as a part of his descent to become a Sith?\", \"Quinlan Vos\", \"Plo Koon\", \"Kit Fisto\", \"Anakin Skywalker\", 4);\n Question q8 = new Question(\"What Sith was the first to reveal himself to the Jedi after a millenia and was subsquently cut in half shortly after?\", \"Darth Plagieus\", \"Darth Maul\", \"Darth Bane\", \"Darth Cadeus\", 2);\n Question q9 = new Question(\"What 4 armed creature operates a diner on the upper levels of Coruscant?\", \"Dexter Jettster\", \"Cad Bane\", \"Aurua Sing\", \"Dorme Amidala\", 1);\n Question q10 = new Question(\"What ruler fell in love with an underage boy and subsequently married him once he became a Jedi?\", \"Aurua Sing\", \"Duttchess Satine\", \"Mara Jade\", \"Padme Amidala\", 4);\n\n // adds them to the list\n addQuestion(q1);\n addQuestion(q2);\n addQuestion(q3);\n addQuestion(q4);\n addQuestion(q5);\n addQuestion(q6);\n addQuestion(q7);\n addQuestion(q8);\n addQuestion(q9);\n addQuestion(q10);\n }", "private void scoreBoard(){\n \n //sort brackets by score \n //playerBrackets.sort((Bracket p1, Bracket p2) -> p1.scoreBracket(simResultBracket) -p2.scoreBracket(simResultBracket)); \n \n //scoreBoardButton.setDisable(true);\n displayPane(scoreBoard._start());\n //viewBracket.setDisable(false);\n }", "private void updateHighScore() {\n\t\tif (pacman.getCurrentCell().getContainsFood() == true) {\n\t\t\tpacman.getCurrentCell().setContainsFood(false);\n\t\t\thighScore.update(10);\n\t\t}\n\t\tif (highScore.getScore() / 2440 == actualLevel) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tinitNewLevel();\n\t\t\t++actualLevel;\n\t\t}\n\t}", "public double getTopScore() {\n return topScore;\n }", "public void findH()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n if(scores[i][j] > high)\n high = scores[i][j];\n }\n }\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n if(scores[i][j] == high)\n System.out.println(names[i] + \" had the highest score of \" + high);\n break;\n \n }\n \n }\n }", "private void createGlobalStatsTable(int threshold) \r\n\t{\r\n\t\tTableData statsTable = new TableData(9);\r\n\r\n\t\tMap<Integer,IGlobalStats> globalStatsMap = model.getGlobalStats();\r\n\r\n\t\tfor (int key:globalStatsMap.keySet()) \r\n\t\t{\r\n\t\t\t// La global de todos los nodos tiene que heredar de SimpleGlobalStats para que se muestre\r\n\t\t\tIGlobalStats aux = globalStatsMap.get(key);\r\n\r\n\t\t\tif (!(aux instanceof SimpleGlobalStats)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tSimpleGlobalStats stats = (SimpleGlobalStats)aux;\r\n\r\n\t\t\tString obj = stats.getName(model.getMethodNames());\r\n\t\t\tif (obj==null) {\r\n\t\t\t\tint h=1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString nodeName = Names.getDigestedName(stats.getName(model.getMethodNames()), true);\r\n\t\t\tString nodeType = stats.getTypeName();\r\n\r\n\t\t\tfloat referenceTime = stats.getAvgTotTime();\r\n\r\n\t\t\tif (referenceTime>=threshold) {\r\n\t\t\t\t// \"Name\", \"Type\", \"Count\", \"Avg. Total Time\", \"Min. Total Time\", \"Max. Total Time\", \"Avg. Ex. Time\", \"Min. Ex. Time\", \"Max. Ex. Time\" \r\n\t\t\t\tDecimalFormat dec = new DecimalFormat();\r\n\t\t\t\tdec.setMinimumFractionDigits(2);\r\n\t\t\t\tdec.setMaximumFractionDigits(2);\r\n\r\n\t\t\t\tstatsTable.addRow(stats.getId(), nodeName, nodeType, stats.getInvCount(),stats.getAvgTotTime(), stats.getMinTotTime(), stats.getMaxTotTime(), stats.getAvgExTime(),stats.getMinExTime(), stats.getMaxExTime());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tresultsTabbedPanel.setStatisticsData(statsTable);\r\n\t}", "void buildTable(){\n HashMap<String, Integer> map = new HashMap<String, Integer>();\n while (first.hasNext()){\n String s = first.next();\n for(String key: s.split(SPLIT)) {\n int val = map.getOrDefault(key, 0);\n map.put(key, val + 1);\n }\n }\n ArrayList<Tuple> arr = new ArrayList<>();\n for (String key: map.keySet()){\n int num = map.get(key);\n //filter the unusual items\n if (num >= this.support){\n arr.add(new Tuple(key, num));\n }\n }\n //descending sort\n arr.sort((Tuple t1, Tuple t2)->{\n if (t1.num <= t2.num)\n return 1;\n else\n return -1;\n });\n\n int idx = 0;\n for(Tuple t: arr){\n this.table.add(new TableEntry(t.item, t.num));\n this.keyToNum.put(t.item, t.num);\n this.keyToIdx.put(t.item, idx);\n idx += 1;\n }\n /*\n for(TableEntry e: table){\n System.out.println(e.getItem()+ \" \"+ e.getNum());\n }*/\n }", "public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> highScoreList = new ArrayList<>();\n if (scoreInfoList.size() <= size) {\n highScoreList = scoreInfoList;\n } else {\n for (int i = 0; i < size; i++) {\n highScoreList.add(scoreInfoList.get(i));\n }\n }\n return highScoreList;\n }", "public Leaderboard() {\n filePath = new File(\"Files\").getAbsolutePath();\n highScores = \"scores\";\n\n topScores = new ArrayList<>();\n topName = new ArrayList<>();\n }", "private void setPreviousHighScores() {\n highScoreSharedPref = this.getSharedPreferences(\"MyPref\", Context.MODE_PRIVATE);\n highScore = highScoreSharedPref.getInt(\"Score\", 0);\n tvHighScore.setText(String.format(\"%d\", highScore));\n }", "public void deal(){\n\t\tInteger topRank;\n\t\tInteger btmRank;\n\t\tDouble[] currPercent = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};\n\t\tlastRaise = -1;\n\t\tcurrBet = 3.0;\n\t\tfor (int i = 0; i<tablePlayers.length*2+5; i++) {\n\t\t\tif (i<tablePlayers.length) {\n\t\t\t\ttablePlayers[i].setCard1(deck[i]); \n\t\t\t}\n\t\t\telse if (i<tablePlayers.length*2) {\n\t\t\t\ttablePlayers[i%tablePlayers.length].setCard2(deck[i]); \n\t\t\t}\n\t\t\telse {\n\t\t\t\ttableCards[i-tablePlayers.length*2].setRank(deck[i].getRank());\n\t\t\t\ttableCards[i-tablePlayers.length*2].setSuit(deck[i].getSuit());\n\t\t\t}\n\t\t}\n\t\t//determine each hand's winning percentage and go through first round of betting\n\t\tfor (int j = 0; j < tablePlayers.length; j++) {\n\t\t\tint i = (button + 3 + j) % 10;\n\t\t\t//if (j==0) System.out.println(\"button = \" + button + \"; first = \" + i);\n\t\t\tif (tablePlayers[i].getCard1().getRank() == 1 || tablePlayers[i].getCard2().getRank() == 1) {\n\t\t\t\ttopRank = 14;\n\t\t\t\tbtmRank = Math.max(tablePlayers[i].getCard1().getRank(), tablePlayers[i].getCard2().getRank());\n\t\t\t\tif (btmRank == 1) {\n\t\t\t\t\tbtmRank = 14;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (tablePlayers[i].getCard1().getRank() <= tablePlayers[i].getCard2().getRank()) {\n\t\t\t\t\ttopRank = tablePlayers[i].getCard2().getRank();\n\t\t\t\t\tbtmRank = tablePlayers[i].getCard1().getRank();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttopRank = tablePlayers[i].getCard1().getRank();\n\t\t\t\t\tbtmRank = tablePlayers[i].getCard2().getRank();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (topRank == btmRank) { //pocket pair\n\t\t\t\tif (topRank == 14) {\n\t\t\t\t\tcurrPercent[i] = winPercent[168];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrPercent[i] = winPercent[154 + topRank];\n\t\t\t\t}\n\t\t\t} \n\t\t\telse {\n\t\t\t\tint index = -1;\n\t\t\t\tfor (int k = 1; k < topRank-2; k++) {\n\t\t\t\t\tindex += k;\n\t\t\t\t}\n\t\t\t\tindex += btmRank-1;\n\t\t\t\tindex *= 2;\n\t\t\t\tif (tablePlayers[i].getCard1().getSuit() == tablePlayers[i].getCard2().getSuit()) {\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tcurrPercent[i] = winPercent[index];\n\t\t\t}\n\t\t\t\n\t\t\t//place first round of pre-flop bets\n\t\t\tif (currPercent[i] > 0.20) { \n\t\t\t\tbetOrRaise(i,12.,3.);\n\t\t\t}\t\t\t\n\t\t\telse if ((currPercent[i] > 0.166 && currBet <= 3.0) ) { \n\t\t\t\tbetOrRaise(i,6.,3.);\n\t\t\t}\n\t\t\telse if (currPercent[i] > preFlopCallBBOdds[i] && currBet <= 3.0) {\n\t\t\t\tcallBetOrCheck(i,3.);\n\t\t\t}\n\t\t\telse if (currPercent[i] > preFlopCallARaiseOdds[i] && currBet <= 6.0) {\n\t\t\t\tcallBetOrCheck(i,6.);\n\t\t\t}\n\t\t\telse if (currPercent[i] > preFlopCallMultiRaiseOdds[i] && currBet > 6.0) {\n\t\t\t\tcallBetOrCheck(i,12.);\n\t\t\t}\n\t\t\telse if (i == ((button + 1) % 10)) {\n\t\t\t\ttablePlayers[i].placeBet(1.0);\n\t\t\t\tpot += 1.0;\n\t\t\t\ttablePlayers[i].foldHand();\n\t\t\t}\n\t\t\telse if (i == ((button + 2) % 10)) {\n\t\t\t\ttablePlayers[i].placeBet(3.0);\n\t\t\t\tpot += 3.0;\n\t\t\t\tif (currBet > 3.0) {\n\t\t\t\t\tif (currPercent[i] > preFlopCallBBOdds[i] && currBet <= 6.0) {\n\t\t\t\t\t\tcallBetOrCheck(i,6.);\n\t\t\t\t\t}\n\t\t\t\t\telse tablePlayers[i].foldHand();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tablePlayers[i].getBet() < currBet) {\n\t\t\t\ttablePlayers[i].foldHand();\n\t\t\t}\n\t\t}\n\t\tif (lastRaise > -1) {\n\t\t\traiseCount++;\n\t\t}\n\t\t// call raises and allow for re-raises to cap\n\t\twhile (lastRaise > -1) {\n\t\t\tlastRaise = -1;\n\t\t\tfor (int j = 0; j < tablePlayers.length; j++) {\n\t\t\t\tint i = (button + 3 + j) % 10;\n\t\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\t\tif (currPercent[i] > 0.20) {\n\t\t\t\t\t\tbetOrRaise(i,12.,3.);\n\t\t\t\t\t}\n\t\t\t\t\tif (tablePlayers[i].getBet() >= currBet) {\n\t\t\t\t\t\tcontinue; //check\n\t\t\t\t\t}\n\t\t\t\t\telse if (tablePlayers[i].getBet() == currBet - 3.0 && currPercent[i] > preFlopCallBBOdds[i]) {\n\t\t\t\t\t\t//call one raise if player would have called BB\n\t\t\t\t\t\tcallBetOrCheck(i, currBet);\n\t\t\t\t\t}\n\t\t\t\t\telse if (tablePlayers[i].getBet() < currBet - 3.0 && currPercent[i] > preFlopCallMultiRaiseOdds[i]) {\n\t\t\t\t\t\t//call the multiRaise if would have called multiple raises on first action\n\t\t\t\t\t\tcallBetOrCheck(i,12.);\n\t\t\t\t\t}\n\t\t\t\t\telse tablePlayers[i].foldHand();\n\t\t\t\t}\n\t\t\t}\n//\t\t\tprintTableStatus();\n\t\t}\n//\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n//\t\t\tif (!tablePlayers[9].hasFolded()) flopsPlayed++;\n//\t\t}\n\t\t//Bet the flop\n\t\tresetPlayerBets();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\tplayersLeft++;\n\t\t\t\tflopPlayers++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) flopsSeen++;\n\t\tplayersLeft = 0;\n\t\tbetFlop();\n\t\t//Bet the turn\n\t\tresetPlayerBets();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\tplayersLeft++;\n\t\t\t\tturnPlayers++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) turnsSeen++;\n\t\tplayersLeft = 0;\n\t\tbetTurn();\n\t\t\n\t\t//Bet the river\n\t\tresetPlayerBets();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\triverPlayers++;\n\t\t\t\tplayersLeft++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) riversSeen++;\n\t\tplayersLeft = 0;\n\t\tbetRiver();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\tplayersLeft++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) showdowns++;\n\t\tplayersLeft = 0;\n\t\t\n\t}", "public void newScore()\n {\n score.clear();\n }", "void displayScores(int pts)\n\t{\n\t\tString[][] scs = new String[10][2];\n\t\ttry\n\t\t{\n\t\t\tScanner str = new Scanner(new File(\"./scores.log\"));\n\t\t\tfor (int i = 0; i < 10; i++)\n\t\t\t{\n\t\t\t\tscs[i] = str.nextLine().split(\"\\t\");\n\t\t\t}\n\t\t\tstr.close();\n\t\t}\n\t\tcatch (FileNotFoundException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tString scores = \"\";\n\t\tfor (int i = 0; i < 10; i++)\n\t\t\tscores += scs[i][0] + \"\\t\" + scs[i][1] + \"\\n\";\n\t\t\n\t\tint place = 10; // > 9; remains if the new score below the scoreboard\n\t\t\n\t\t// if new highscore\n\t\tif (pts > Integer.parseInt(scs[9][1]))\n\t\t{\n\t\t\t// determine the place\n\t\t\tplace = 9;\n\t\t\twhile (pts > Integer.parseInt(scs[place-1][1])) // place is too low\n\t\t\t{\n\t\t\t\tplace--; // move the \"pointer\" to higher place\n\t\t\t\tif (place == 0) break; // 1st place!\n\t\t\t}\n\t\t\t\n\t\t\t// insert where it should be\n\t\t\tfor (int i = 8; i >= place; i--)\n\t\t\t{\n\t\t\t\tscs[i+1][0] = new String(scs[i][0]); // drop place to lower\n\t\t\t\tscs[i+1][1] = new String(scs[i][1]);\n\t\t\t}\n\t\t\tscs[place][0] = parent.getUsername();\n\t\t\tscs[place][1] = \"\" + pts;\n\t\t}\n\t\t\n\t\t// prepare text for writing to file\n\t\tString textToWrite = \"\";\n\t\tfor (int i = 0; i < 10; i++) // for every place\n\t\t\ttextToWrite += scs[i][0] + \"\\t\" + scs[i][1] + \"\\n\";\n\t\t\n\t\t// write to scores.log\n\t\ttry\n\t\t{\n\t\t\tFileWriter str = new FileWriter(new File(\"./scores.log\"), false);\n\t\t\tstr.write(textToWrite);\n\t\t\tstr.close();\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// prepare text for displaying in the scoreboard\n\t\tString textDisplayed = \"<html><style>p{font-size:40px; font-family:\\\"Lucida Console\\\"}</style>\";\n\t\tfor (int i = 0; i < 10; i++) // for every place\n\t\t{\n\t\t\tif (i == place) textDisplayed += \"<font color=\\\"red\\\">\";\n\t\t\ttextDisplayed += \"<p>\" + scs[i][0] + \" \";\n\t\t\t// add dots to fill places up to 30\n\t\t\tfor (int j = 30; j > scs[i][0].length(); j--)\n\t\t\t\ttextDisplayed += \".\";\n\t\t\ttextDisplayed += \" \" + scs[i][1] + \"</p>\";\n\t\t\tif (i == place) textDisplayed += \"</font>\";\n\t\t}\n\t\t\n\t\tscoreboard.setText(textDisplayed);\n\t}", "public void setScore(int score) { this.score = score; }", "public void drawHighscores(){\n JFrame highScoreFrame = new JFrame();\n highScoreFrame.setLayout(new BorderLayout());\n highScoreFrame.setSize(new Dimension(280,400));\n String top = \"<h1><u>Highscores</u></h1>\";\n String numbers = getNumbers();\n String scoreString = getTop();\n JLabel enumeration = new JLabel(\"<html>\" + numbers + \"<html>\");\n JLabel scores = new JLabel(\"<html>\" + scoreString + \"<html>\");\n JLabel title = new JLabel(\"<html>\" + top + \"<html>\");\n title.setHorizontalAlignment(SwingConstants.CENTER);\n enumeration.setBorder(BorderFactory.createEmptyBorder(0,85,0,30));\n highScoreFrame.add(title, BorderLayout.PAGE_START);\n highScoreFrame.add(enumeration, BorderLayout.LINE_START);\n highScoreFrame.add(scores, BorderLayout.CENTER);\n highScoreFrame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n highScoreFrame.setLocationRelativeTo(null);\n highScoreFrame.setVisible(true);\n\n for (int i = 1 ; i <= 10 ; i++){\n System.out.println(i);\n }\n }", "private void initAndSortAllHands() {\n\t\tArrayList<Card> sevenCards;\n\t\tPlayer player;\n\n\t\t// initalize the seven cards hand\n\t\tfor (int i = 0; i < table.getTablePlayers().size(); i++) {\n\t\t\tsevenCards = new ArrayList<Card>(7);\n\t\t\tplayer = table.getTablePlayers().get(i);\n\n\t\t\tsevenCards.add(player.getHoleCard1());\n\t\t\tsevenCards.add(player.getHoleCard2());\n\t\t\tsevenCards.add(dealer.getFlop()[0]);\n\t\t\tsevenCards.add(dealer.getFlop()[1]);\n\t\t\tsevenCards.add(dealer.getFlop()[2]);\n\t\t\tsevenCards.add(dealer.getTurn());\n\t\t\tsevenCards.add(dealer.getRiver());\n\n\t\t\ttable.getTablePlayers().get(i).setSevenCardsTempHand(sevenCards);\n\t\t}\n\n\t\t// sort the hand\n\t\tfor (int i = 0; i < table.getTablePlayers().size(); i++)\n\t\t\ttable.getTablePlayers().get(i).sortHandByRank(table.getTablePlayers().get(i).getSevenCardsTempHand());\n\t}", "public HighScore (String name,String level, int score)\n {\n this.name = name;\n this.score = score;\n this.level = level;\n }", "@SqlQuery(\"select * from PLAYERSTATS where USERID = :id order by SCORE DESC FETCH FIRST 5 ROWS ONLY\")\n List<PlayerStats> findUserHighScore(@Bind(\"id\") String id);", "public void printScores(String currentPlayerName) {\n System.out.println(\"SCORE BOARD:\");\n System.out.print(\"--------------------\");\n\n System.out.println(\"\\nTOP 5 SCORES OF CURRENT QUIZ TAKER\");\n\n // prints out the current quiz taker's name and top 5 highest scores in\n // descending order\n for (int i = 0; i < allQuizTakers.size() && allQuizTakers.size() > 0; i++) {\n if (allQuizTakers.get(i).getName().equals(currentPlayerName)) {\n System.out.println(allQuizTakers.get(i).toString());\n break;\n }\n }\n\n System.out.println(\"\\nHIGHEST SCORE EVER (\" + findHighestScore() + \") WAS ACHIEVED BY\");\n System.out.println(findHighestScorers());\n\n }", "private void updateTableData() {\n if (articles.size() == 0) {\n return; // no agent data yet !!!!\n }\n for (int i = 0; i < articles.size(); i++) {\n NewsArticle article = (NewsArticle) articles.elementAt(i);\n String score = \"0.0\";\n\n switch (filterType) {\n case FilterAgent.USE_KEYWORDS:\n score = String.valueOf(article.getKeywordScore());\n break ;\n case FilterAgent.USE_CLUSTERS:\n score = String.valueOf(article.getClusterScore());\n break ;\n case FilterAgent.USE_PREDICTED_RATING:\n score = String.valueOf(article.getPredictedRating()) ;\n break ;\n }\n data[i][COL_SCOREID] = score;\n }\n return;\n }" ]
[ "0.68322104", "0.66975784", "0.6586904", "0.6563629", "0.6337003", "0.6290156", "0.62702304", "0.6019094", "0.5955203", "0.5943232", "0.58417314", "0.58227235", "0.5801693", "0.57948995", "0.57587516", "0.57481784", "0.57224727", "0.5673976", "0.5664902", "0.5648857", "0.564805", "0.56380934", "0.5601806", "0.5600546", "0.5595426", "0.5591326", "0.5588735", "0.5578277", "0.55691165", "0.5551628", "0.55429405", "0.5539541", "0.5534824", "0.55132294", "0.5477834", "0.5454077", "0.5450337", "0.5446763", "0.5443385", "0.54409933", "0.5388105", "0.53860986", "0.53834397", "0.5351975", "0.53467387", "0.53422517", "0.53282994", "0.53177655", "0.53154474", "0.5312488", "0.530849", "0.5306711", "0.53055954", "0.5278746", "0.52718276", "0.52684444", "0.5265098", "0.5248382", "0.5240304", "0.52384895", "0.52372676", "0.523652", "0.5234761", "0.52307373", "0.52223325", "0.52213883", "0.5209379", "0.519679", "0.5189549", "0.5189294", "0.51844376", "0.5182767", "0.51769024", "0.5162425", "0.51570433", "0.5135559", "0.5129242", "0.51217943", "0.5113271", "0.51094866", "0.51081336", "0.510272", "0.5100994", "0.509319", "0.50929487", "0.5086342", "0.50833005", "0.50764126", "0.50673884", "0.50600344", "0.5055438", "0.50462747", "0.5030723", "0.50289685", "0.50148726", "0.5010687", "0.5007018", "0.49952105", "0.49934396", "0.4992806" ]
0.70472115
0
Displays the back button.
private void showBack() { Drawable buttonDrawableBack = new TextureRegionDrawable(new TextureRegion((Texture)game.getAssetManager().get("buttonBack.png"))); BackButton = new ImageButton(buttonDrawableBack); BackButton.setSize(MENU_WIDTH/7,MENU_HEIGHT/7); BackButton.setPosition(7*MENU_WIDTH/8 - BackButton.getWidth()/2, MENU_HEIGHT/7 -DELTA_Y_MENU); stage.addActor(BackButton); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}", "@Override\n\tpublic void backButton() {\n\n\t}", "public void back() {\n Views.goBack();\n }", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}", "public void clickBackButton() {\n\t\tbackButton.click();\n\n\t}", "public void goBack() {\n goBackBtn();\n }", "@Override\n public void backButton() {\n\n\n }", "void onGoBackButtonClick();", "default public void clickBack() {\n\t\tclickMenu();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}", "@Override\n\tpublic void goToBack() {\n\t\tif(uiHomePrestamo!=null){\n\t\tuiHomePrestamo.getHeader().getLblTitulo().setText(constants.prestamos());\n\t\tuiHomePrestamo.getHeader().setVisibleBtnMenu(true);\n\t\tuiHomePrestamo.getContainer().showWidget(1);\n\t\t}else if(uiHomeCobrador!=null){\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tuiHomeCobrador.getContainer().showWidget(2);\n\t\t\tuiHomeCobrador.getUiClienteImpl().cargarClientesAsignados();\n\t\t\tuiHomeCobrador.getUiClienteImpl().reloadTitleCobrador();\n\t\t}\n\t}", "private void displayBackButton() {\n RegularButton backButton = new RegularButton(\"BACK\", 200, 600);\n\n backButton.setOnAction(e -> backButtonAction());\n\n sceneNodes.getChildren().add(backButton);\n }", "private void configureBackButton() {\n LinearLayout layoutTop = (LinearLayout) findViewById(R.id.title);\n layoutTop.bringToFront();\n\n Button button = (Button) findViewById(R.id.backButton);\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n finish();\n }\n });\n }", "@Override\n\tprotected void titleBtnBack() {\n\t\tsuper.titleBtnBack();\n\t}", "@Override\r\n\tpublic void onBackPressed()\r\n\t{\r\n\t\tif (flipper.getDisplayedChild() != 0)\r\n\t\t{\r\n\t\t\tflipper.showPrevious();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsuper.onBackPressed();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}", "private void setupBack() {\n\t\tmakeButton(\"Back\", (ActionEvent e) -> {\n\t\t\tchangeView(\"login\");\n\t\t});\n\t}", "private void addBackButton() {\n\t\tbackButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlayer.show(userViewPort, \"WebBrowser\");\n\t\t\t\tmenuBar.remove(backButton);\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 3;\n\t\t\t}\n\t\t});\n\t\tmenuBar.add(backButton);\n\t\tmenuBar.revalidate();\n\t}", "@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}", "void actionBack();", "public void onBackPressed() {\n backbutton();\n }", "private void backButtonAction() {\n CurrentUI.changeScene(SceneNames.LOGIN);\n }", "private void navBack() {\n Intent intent = new Intent(this, standard_home.class);\n startActivity(intent);\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "public void clickbtnBack() {\n\t\tdriver.findElement(btnBack).click();\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void onBackPressed(){\n System.out.println(\"---------------- No debe hacer nada -------------------------------\");\n }", "protected void goBack() {\r\n\t\tfinish();\r\n\t}", "public void actionPerformedBack(ActionListener back) {\n btnBack.addActionListener(back);\n }", "public void back() {\n\t\tstate.back();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\t\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\n\t\t\n\t}", "@FXML\r\n private void handleBackButton() {\r\n\r\n CommonFunctions.showAdminMenu(backButton);\r\n\r\n }", "@Override\r\n\tpublic void onBackPressed(){\r\n\t\tLog.d(TAG, \"Back Button Pushed\");\r\n\t\tIntent goHomeIntent = new Intent(Intent.ACTION_MAIN);\r\n\t\tgoHomeIntent.addCategory(Intent.CATEGORY_HOME);\r\n\t\tgoHomeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\tstartActivity(goHomeIntent);\r\n\t}", "@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n\n // Let the system handle the back button\n\n super.onBackPressed();\n\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n \tpublic void onBackPressed() {\n \t}", "@Override\n\tpublic void onBackPressed()\n\t{\n\t}", "public void onBackButton() {\n WindowLoader wl = new WindowLoader(backButton);\n wl.load(\"MenuScreen\", getInitData());\n RETURN_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "public void onBackPressed() {\r\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t\tdoBack();\r\n\t}", "public static void clickBackBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"backquest\\\"]\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Back button doesnt work\");\n\t\t}\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tthis.finish();\n\t}", "private void backActionPerformed(ActionEvent e) {\r\n ctr_pres.principal();\r\n setVisible(false);\r\n }", "protected void drawBackButton() {\n backButton = new TextButton(\"Back\", skin);\n stage.addActor(backButton);\n\n setPrevious();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void onBackPressed() {\n exitReveal();\n\n super.onBackPressed();\n }", "@Override\n public void backPressed(){\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}", "public void BackBtn(MouseEvent event) {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\n\t}", "@Override\n public void onBackPressed() {\n if(currentVisibleFragment!=0)\n displayView(0);\n else\n super.onBackPressed();\n }", "@Override\n public void onBackPressed() {\n backToHome();\n }", "public void click_defineSetupPage_backBtn() throws InterruptedException {\r\n\t\tclickOn(DefineSetup_backBtn);\r\n\t\tThread.sleep(1000);\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\r\n\t}", "public void goBack() throws IOException { DashboardController.dbc.loadHomeScene(); }", "@Override\n\tpublic void onBackPressed() {\n\treturn;\n\t}", "public void GoBack(){\n if (prev_hostgui != null){\n this.setVisible(false);\n prev_hostgui.setVisible(true);\n } else{\n this.setVisible(false);\n prev_guestgui.setVisible(true);\n }\n }", "@Override\n public void onBackPressed() {\n \tshowDialog(DLG_BUTTONS);\n }", "@Override\r\n public void onBackPressed() {\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\treturn;\n\t}", "public void onBackPressed()\n {\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tthis.finish();\n\t\tsuper.onBackPressed();\n\t}", "@FXML\r\n\t\tpublic void back(ActionEvent event) {\r\n\t\t\tGuiBasedApp.launchHomeScreenScene();\r\n\t\t}", "private void backPage()\n {\n page--;\n open();\n }", "public void backbutton(ActionEvent event) throws Exception{\n\t\t\n\t\tcustomermainpage main = new customermainpage();\n\t\tmain.setgui();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\treturn;\n\t}", "protected void ACTION_B_BACK(ActionEvent arg0) {\n\t\tthis.setVisible(false);\r\n\t\tnew SnifferWindow().setVisible(true);\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tstartActivity(new Intent(getApplicationContext(),\tLauncher.class));\n\t}", "@FXML\n public void backButtonClicked(MouseEvent event) {\n toggleBackBtnVisibility(false);\n setMainScene(previousView, null);\n }", "@Override\n public void onBackPressed() {\n confirmExit();\n }", "public static void pressBack() {\n onView(isRoot()).perform(ViewActions.pressBack());\n }", "private void backActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backActionPerformed\n // TODO add your handling code here:\n MainMenu m = new MainMenu();\n this.setVisible(false);\n m.setVisible(true);\n m.setLocationRelativeTo(null);\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }", "public void Back(View view) {\n\n onBackPressed();\n }", "public Finland_HomePage clickbsrBackBtn() throws Throwable {\r\n\t\ttry {\r\n\t\t\tclickBrowserBackButton();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn new Finland_HomePage();\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tIntent homeIntent = new Intent(Intent.ACTION_MAIN);\n\t\thomeIntent.addCategory(Intent.CATEGORY_HOME);\n\t\thomeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tstartActivity(homeIntent);\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\t finish();\n\t}", "public void backButtonClicked(ActionEvent actionEvent) {\n Stage current = (Stage) locationName.getScene().getWindow();\n\n current.setScene(getPreviousScreen());\n }", "public void back()\r\n\t{\r\n\t\tparentPanel.setState(GameState.Menu);\r\n parentPanel.initScene(GameState.Menu);\r\n\t\t\t\r\n\t}" ]
[ "0.8061302", "0.7909042", "0.78778106", "0.78538966", "0.77751005", "0.7633364", "0.7579949", "0.75347835", "0.74949926", "0.7468509", "0.74538606", "0.74516726", "0.74298203", "0.7346922", "0.73191655", "0.7282242", "0.72800106", "0.7258757", "0.7251368", "0.7225571", "0.7192429", "0.71523035", "0.71506757", "0.71412754", "0.7079868", "0.7079868", "0.70795995", "0.7074528", "0.7074528", "0.7056884", "0.7056884", "0.7056884", "0.7056884", "0.7056884", "0.7056884", "0.7056884", "0.7056884", "0.7054196", "0.7052584", "0.70383596", "0.70312923", "0.7028373", "0.70203394", "0.70174086", "0.7016065", "0.7015935", "0.7014908", "0.7014908", "0.7014908", "0.700888", "0.7007912", "0.7005258", "0.6988071", "0.6988071", "0.6988071", "0.6988071", "0.6976715", "0.696669", "0.69597465", "0.6956588", "0.69550264", "0.69531345", "0.6949409", "0.6949409", "0.6948833", "0.6945673", "0.6942898", "0.6935606", "0.69326246", "0.6924905", "0.69245386", "0.6924047", "0.69094217", "0.69094217", "0.68978107", "0.68959", "0.6895784", "0.68869674", "0.6875438", "0.6873755", "0.6872655", "0.6870932", "0.686506", "0.6859405", "0.6856889", "0.6852344", "0.6847228", "0.68310875", "0.6824233", "0.68199235", "0.6819736", "0.6818699", "0.6805372", "0.6805372", "0.68017787", "0.67978454", "0.67815197", "0.67786425", "0.67780906", "0.6777306" ]
0.6966228
58
Shows the screen and the menu title.
@Override public void show() { Label title = new Label("Hall of Fame", new Label.LabelStyle(fonts.getInstance().getClouds(), Color.WHITE)); title.setPosition(MENU_WIDTH / 2 - title.getWidth() / 2, MENU_HEIGHT / 1.9f + 3*title.getHeight()); stage.addActor(title); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showTitleScreen() {\n frame.showMenu();\n }", "private static void showMenu() {\n System.out.println(\"1. Dodaj zadanie\");\n System.out.println(\"2. Wykonaj zadanie.\");\n System.out.println(\"3. Zamknij program\");\n }", "private void showTitleScreen() {\n\t\tresetParameters();\n\t\t\n\t\t// if the play button is not clicked\n\t\twhile (!Mouse.isButtonDown(0)\n\t\t\t\t|| !(Mouse.getX() >= 249 && Mouse.getX() <= 539 && Mouse.getY() <= (displayHeight - 215) && Mouse.getY() >= (displayHeight - 284))) {\n\t\t\t// draw title screen\n\t\t\tdrawScreen(sprite.get(\"titleScreen\"));\n\t\t\t\n\t\t\tif (Mouse.isButtonDown(0) && Mouse.getX() >= 249 && Mouse.getX() <= 539\n\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 304) && Mouse.getY() >= (displayHeight - 373)) {\n\t\t\t\tshowInstructScreen();\n\t\t\t}\n\t\t\t\n\t\t\tif (Mouse.isButtonDown(0) && Mouse.getX() >= 249 && Mouse.getX() <= 539\n\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 393) && Mouse.getY() >= (displayHeight - 462)) {\n\t\t\t\tshowCreditsScreen();\n\t\t\t}\n\t\t\tif (Mouse.isButtonDown(0) && Mouse.getX() >= 249 && Mouse.getX() <= 539\n\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 482) && Mouse.getY() >= (displayHeight - 551)) {\n\t\t\t\tDisplay.destroy();\n\t\t\t\tAL.destroy();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t\n\t\t\t// update display\n\t\t\tupdateDisplay();\n\t\t}\n\t\t\n\t\t// reset beginning time\n\t\tDelta.setBeginningTime(Delta.getTime());\n\t}", "private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n\t\t\t\"Book a ticket\",\n\t\t\t\"View movie details\",\n\t\t\t\"List top 5 movies\",\n\t\t\t\"View booking history\",\n\t\t\t\"Exit\"\n\t\t);\n\t\t\n\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tNavigationController.load(new ShowTimeController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tNavigationController.load(new BookingController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tNavigationController.load(new MovieController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tNavigationController.load(new TopMoviesController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tNavigationController.load(new BookingHistoryController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tNavigationController.goBack();\n\t\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tpublic void showContents() {\n\t\tt1.start();\n\t\tif (menuAnimation.title_showing())\n\t\t{\n\t\t\tprogram.add(Play);\n\t\t\tprogram.add(Settings);\n\t\t\tprogram.add(Credits);\n\t\t\tprogram.add(Exit);\n\t\t\tprogram.add(barrel);\n\t\t\tprogram.add(tank);\n\t\t\ttitle.setLocation(30,80);\n\t\t\ttitle.changeTransparent(1);\n\t\t\tprogram.add(title);\n\t\t\tbackground.setImage(\"otherImages/background.png\");\n\t\t\tbackground.setSize(900,620);\n\t\t\tbackground.setLocation(-50,0);\n\t\t\tbg.start();\n\t\t\tbackground.sendToBack();\n\t\t\tprogram.add(background);\n\t\t}\n\t}", "public void displayMenu()\n {\n System.out.println(\"-----------------Welcome to 256 Game------------------\");\n System.out.println(\"press 1 to register a player\");\n System.out.println(\"press 2 to start a new game\");\n System.out.println(\"press 3 to view a help menu\");\n System.out.println(\"press 4 to exist\");\n System.out.println(\"------------------------------------------------------\");\n }", "public void showMenu() {\n menuController.showMenuPanel();\n }", "private void displayMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Main Menu -------------\");\r\n System.out.println(\"(1) Search Cars\");\r\n System.out.println(\"(2) Add Car\");\r\n System.out.println(\"(3) Delete Car\");\r\n System.out.println(\"(4) Exit System\");\r\n System.out.println(\"(5) Edit Cars\");\r\n }", "public void showStartMenu() {\n\t\tframe = new JFrame(\"Starting menu\");\n\t\tframe.setPreferredSize(new Dimension(700, 500));\n\t\tframe.pack();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.add(this);\n\t\tframe.setVisible(true);\n\t\tframe.setLocationRelativeTo(null);\n\t}", "private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. Exit\");\r\n mainMenuDetails();\r\n }", "private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }", "void showAbout() {\n\t\tif (aboutScreen == null) {\n\t\t aboutScreen = new Form(\"About AMMS Mansion demo\");\n\t\t aboutScreen.append(\"This MIDlet demonstrates the 3D audio capabilities of AMMS API.\\n\");\n\t\t aboutScreen.append(\"\\n\");\n\t\t aboutScreen.append(\"Copyright (c) 2006 Nokia. All rights reserved.\\n\");\n\t\t aboutScreen.append(\"\\n\");\n\t\t aboutScreen.append(\"\\n\");\n\t\t}\n\t\taboutScreen.addCommand(toggleCommand);\n\t\taboutScreen.setCommandListener(this);\n\t\tdisplay.setCurrent(aboutScreen);\n }", "private void showMenuScreen()\n {\n logoutButton.setVisibility(textViewLabel.VISIBLE);\n battleButton.setVisibility(View.VISIBLE);\n char1.setVisibility(View.VISIBLE);\n char2.setVisibility(View.VISIBLE);\n char3.setVisibility(View.VISIBLE);\n }", "protected void showSystemMenu() {\n windowMenu.doClick(0);\n }", "public void display_title_screen() {\n parent.textAlign(CENTER);\n parent.textFont(myFont);\n parent.textSize(displayH/10);\n parent.fill(255, 255, 0);\n parent.text(\"PACMAN\", 0.5f*displayW, 0.3f*displayH);\n\n parent.image(maxusLogoImage, 0.5f*displayW, 0.4f*displayH);\n\n parent.textFont(myFont);\n parent.textSize(tileSize);\n parent.fill(180);\n parent.text(\"2013\", 0.5f*displayW, 0.45f*displayH);\n\n display_chase_animation();\n\n display_insert_coin_text();\n }", "public void displayTitle() {\n\t\tthis.theScreen.setFont(Preferences.TITLE_FONT);\n\t\tthis.theScreen.setColor(Preferences.TITLE_COLOR);\n\t\tthis.theScreen.drawString(Preferences.TITLE,\n\t\t\t\tPreferences.TITLE_X, Preferences.TITLE_Y);\n\t}", "private static void displayMainMenu() {\n\t\tSystem.out.println(\"\\t Main Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"au <username> : Registers as a new user \\n\"\n\t\t\t\t+ \"du <username> : De-registers a existing user \\n\"\n\t\t\t\t+ \"li <username> : To login \\n\"\n\t\t\t\t+ \"qu : To exit \\n\"\n\t\t\t\t+\"====================================\\n\");\n\t}", "public void showMainMenu() {\r\n\t\tmenu.setThreadSuspended(false);\r\n\t\tmenu.setVisible(true);\r\n\t\tsetVisible(false);\r\n\t\tsetVisible(true);\r\n\t}", "private void displayMainMenu () {\n System.out.println();\n System.out.println(\n \"Enter the number of the action to perform: \");\n System.out.println(\n \"Run game...............\" + PLAY_GAME);\n System.out.println(\n \"Exit...................\" + EXIT);\n }", "private void goToMenu() {\n\t\tgame.setScreen(new MainMenuScreen(game));\n\n\t}", "public void menuDisplay() {\n\t\t\n\t\tjava.lang.System.out.println(\"\");\n\t\tjava.lang.System.out.println(\"~~~~~~~~~~~~Display System Menu~~~~~~~~~~~~\");\n\t\tjava.lang.System.out.println(\"**** Enter a Number from the Options Below ****\");\n\t\tjava.lang.System.out.println(\"Choice 1 – Print System Details\\n\" + \n\t\t\t\t\t\t \"Choice 2 - Display System Properties\\n\" +\n\t\t\t\t\t\t \"Choice 3 – Diagnose System\\n\" + \n\t\t\t\t\t\t \"Choice 4 – Set Details\\n\" + \n\t\t\t\t\t\t \"Choice 5 – Quit the program\");\n\t\t\n\t}", "private void goToMenu() {\n game.setScreen(new MainMenuScreen(game));\n\n }", "public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }", "private static void showMenu(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"What would you like to do?\");\r\n\t\tSystem.out.println(\"0) Show Shape information\");\r\n\t\tSystem.out.println(\"1) Create Shape\");\r\n\t\tSystem.out.println(\"2) Calculate perimeter\");\r\n\t\tSystem.out.println(\"3) Calculate area\");\r\n\t\tSystem.out.println(\"4) Scale shape\");\r\n\t}", "public void switchToMenuScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"menu\");\n }", "private void displayMenu()\r\n {\r\n System.out.println(\"\\nWelcome to Car Park System\");\r\n System.out.println(\"=============================\");\r\n System.out.println(\"(1)Add a Slot \");\r\n System.out.println(\"(2)Delete a Slot\");\r\n System.out.println(\"(3)List all Slots\");\r\n System.out.println(\"(4)Park a Car\");\r\n System.out.println(\"(5)Find a Car \");\r\n System.out.println(\"(6)Remove a Car\");\r\n System.out.println(\"(7)Exit \");\r\n System.out.println(\"\\nSelect an Option: \");\r\n }", "@Override\n public void show() {\n texturaFondo = new Texture(\"fondoMenu.jpg\");\n\n crearMenu();\n }", "public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}", "static void displayMenu(){\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Select operation:\");\n\t\tSystem.out.println(\"1-List movies\");\n\t\tSystem.out.println(\"2-Show movie details\");\n\t\tSystem.out.println(\"3-Add a movie\");\n\t\tSystem.out.println(\"4-Add an example set of 5 movies\");\n\t\tSystem.out.println(\"5-Exit\");\n\t}", "private static void displayMenu() {\n\t\tSystem.out.println(\"\\n\\nWelcome to Seneca@York Bank!\\n\" +\n\t\t\t\t\"1. Open an account.\\n\" +\n\t\t\t\t\"2. Close an account.\\n\" +\n\t\t\t\t\"3. Deposit money.\\n\" +\n\t\t\t\t\"4. Withdraw money.\\n\" +\n\t\t\t\t\"5. Display accounts. \\n\" +\n\t\t\t\t\"6. Display a tax statement.\\n\" +\n\t\t\t\t\"7. Exit\\n\");\n\t}", "public static void displayMenu() {\r\n System.out.print(\"\\nName Saver Server Menu\\n\\n\"\r\n +\"1. Add a name\\n2. Remove a name\\n3. List all names\\n\"\r\n +\"4. Check if name recorded\\n5. Exit\\n\\n\"\r\n +\"Enter selection [1-5]:\");\r\n }", "public void displaymenu()\r\n\t{\r\n\t\tSystem.out.println(\"Welcome to the COMP2396 Authentication system!\");\r\n\t\tSystem.out.println(\"1. Authenticate user\");\r\n\t\tSystem.out.println(\"2. Add user record\");\r\n\t\tSystem.out.println(\"3. Edit user record\");\r\n\t\tSystem.out.println(\"4. Reset user password\");\r\n\t\tSystem.out.println(\"What would you like to perform?\");\r\n\t}", "static void DisplayMainMenu()\n {\n \tSystem.out.println(\"******\");\n \tSystem.out.println(\"Menu\");\n \tSystem.out.println(\"******\");\n \tSystem.out.println(\"Enter Selection\");\n \tSystem.out.println(\"1) Send Message\");\n \tSystem.out.println(\"2) Receive Message\");\n \tSystem.out.println(\"3) Run regression test\");\n }", "public void showMenu() {\n\t\tSystem.out.println(\"Please, choose one option!\");\n\t\tSystem.out.println(\"[ 1 ] - Highest Company Capital\");\n\t\tSystem.out.println(\"[ 2 ] - Lowest Company Capital\");\n\t\tSystem.out.println(\"[ 3 ] - Best Investor of the Day\");\n\t\tSystem.out.println(\"[ 4 ] - Worst Investor of the Day\");\n\t\tSystem.out.println(\"[ 0 ] - Exit\");\n\t}", "private void printWelcomeMenu() {\n System.out.println(\"Welcome to Michael's Retail Shop Inventory Management App!\");\n }", "private void displayMenu() {\r\n System.out.println(\"\\nSelect an option from below:\");\r\n System.out.println(\"\\t1. View current listings\");\r\n System.out.println(\"\\t2. List your vehicle\");\r\n System.out.println(\"\\t3. Remove your listing\");\r\n System.out.println(\"\\t4. Check if you won bid\");\r\n System.out.println(\"\\t5. Save listings file\");\r\n System.out.println(\"\\t6. Exit application\");\r\n\r\n }", "public void displayMenu() {\n \n menuFrame = new JFrame(\"SnakeTrain\");\n menuFrame.setSize(1024, 768);\n menuFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n JPanel menuPanel = new JPanel();\n \n Play.setPreferredSize(new Dimension(250, 100));\n Instructions.setPreferredSize(new Dimension(250, 100));\n Exit.setPreferredSize(new Dimension(250, 100));\n \n Play.addActionListener(this);\n Instructions.addActionListener(this);\n Exit.addActionListener(this);\n \n //c = new JLabel(/*background image*/);\n menuFrame.setLayout(new FlowLayout());\n menuFrame.add(Play);\n menuFrame.add(Instructions);\n menuFrame.add(Exit);\n menuFrame.setVisible(true);\n \n }", "public static void WriteMainMenu(){\r\n System.out.println(\"\\n=================Welcome to McDonalds=================\");\r\n System.out.println(\"1. Take Order \\n2. Edit McDonalds Menu \\n3. Exit application \");\r\n }", "public static void inventoryMenuHeader() {\n System.out.print(\"Welcome to Inventory Menu!\\nType \\\"help\\\" for Inventory menu commands\\n\");\n }", "public void mainMenu() {\n Game.stage.setScene(mainMenuScene);\n Game.stage.show();\n }", "protected Controller showScreen(String path, String title) {\n Controller controller = showScreen(path);\n Main.stage().setTitle(title);\n return controller;\n }", "public void showOptions()\n {\n //make the options window visible\n optionsScreen.setVisible(true);\n }", "private static void printMainMenu() {\n\t\tprintln(\"Main Menu:\");\n\t\tprintln(\"\\tI: Import Movie <Title>\");\n\t\tprintln(\"\\tD: Delete Movie <Title>\");\n\t\tprintln(\"\\tS: Sort Movies\");\n\t\tprintln(\"\\tA: Sort Actors\");\n\t\tprintln(\"\\tQ: Quit\");\n\t}", "private void printMenu() {\n\t\tSystem.out.printf(\"\\n********** MiRide System Menu **********\\n\\n\");\n\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Create Car\", \"CC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Book Car\", \"BC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Complete Booking\", \"CB\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Display ALL Cars\", \"DA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Specific Car\", \"SS\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Available Cars\", \"SA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Seed Data\", \"SD\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Load Cars\", \"LC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Exit Program\", \"EX\");\n\t\tSystem.out.println(\"\\nEnter your selection: \");\n\t\tSystem.out.println(\"(Hit enter to cancel any operation)\");\n\t}", "private void displayWelcome()\n {\n // display user options menu\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\" Welcome to Sunrise/Sunset Power Controller \");\n System.out.println(\" http://www.savagehomeautomation.com \");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n }", "public void menu(){\n super.goToMenuScreen();\n }", "public static void displayMenu(){\n //*Displays the Menu\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Food Item\", \"Size\", \"Options\", \"Price\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"---------\", \"----\", \"-------\", \"-----\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Drink\", \"S,M,L\", \"Sprite, Rootbeer, and Orange Fanta\", \"$5.50 for small, +$.50 for each size increase\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Burger\", \"N/A\", \"Extra Patty, bacon, cheese, lettuce\", \"$3.00 for a burger, +$.50 for additional toppings\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"tomato, pickles, onions\", \"\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Pizza\", \"S,M,L\", \"Pepperoni, sausage, peppers, chicken\", \"$5.00 for small, +$2.50 for each size increase,\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"salami, tomatoes, olives, anchovies\", \"+$1.00 for each extra topping\" );\n }", "public void showMenu(View view){\r\n CustomTitleBar.showMenu(this, view);\r\n }", "public void mainMenu() {\n\n System.out.println(\"\\n HOTEL RESERVATION SYSTEM\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.println(\" COMMANDS:\");\n System.out.println(\" - View Tables\\t\\t(1)\");\n System.out.println(\" - Add Records\\t\\t(2)\");\n System.out.println(\" - Update Records\\t(3)\");\n System.out.println(\" - Delete Records\\t(4)\");\n System.out.println(\" - Search Records\\t(5)\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.print(\" > \");\n }", "public static void printMenu()\r\n\t{\r\n\t\tSystem.out.println(\"A) Add Scene\");\r\n\t\tSystem.out.println(\"R) Remove Scene\");\r\n\t\tSystem.out.println(\"S) Show Current Scene\");\r\n\t\tSystem.out.println(\"P) Print Adventure Tree\");\r\n\t\tSystem.out.println(\"B) Go Back A Scene\");\r\n\t\tSystem.out.println(\"F) Go Forward A Scene \");\r\n\t\tSystem.out.println(\"G) Play Game\");\r\n\t\tSystem.out.println(\"N) Print Path To Cursor\");\r\n\t\tSystem.out.println(\"M) Move Scene\");\r\n\t\tSystem.out.println(\"Q) Quit\");\r\n\t\tSystem.out.println();\r\n\t}", "@Override\r\n public final void display() {\r\n System.out.println(\"\\n\\t===============================================================\");\r\n System.out.println(\"\\tEnter the letter associated with one of the following commands:\");\r\n \r\n for (String[] menuItem : HelpMenuView.menuItems) {\r\n System.out.println(\"\\t \" + menuItem[0] + \"\\t\" + menuItem[1]);\r\n }\r\n System.out.println(\"\\t===============================================================\\n\");\r\n }", "public void menu() {\n\t\tstate.menu();\n\t}", "private void displayWelcomeScreen(){\n\t\t\n\t\tIntent intent = new Intent();\n\t\tintent.setClassName(getApplicationContext(), Welcome.class.getName());\n\t\t\n\t\t//Start the welcome screen\n\t\tstartActivity(intent);\n\t\t\n\t\tthis.finish();\n\t}", "public void displayHelpMenuView()\n {\n System.out.println(\"\\nHelp menu selected.\");\n }", "private void printMainMenu() {\n\t\tSystem.out.println(\"1. Go adventuring\");\n\t\tSystem.out.println(\"2. Enter tavern\");\n\t\tSystem.out.println(\"3. Show details about your character\");\n\t\tSystem.out.println(\"4. Exit game\");\n\t}", "@Override\n\tpublic void showmenu() {\n\t\t\n\t\tint choice;\n \n System.out.println(\"请选择1.查询 2.退出\");\n choice=console.nextInt();\n \n switch (choice){\n \n case 1:\n Menu.searchMenu();\n break;\n default:\n \tSystem.out.println(\"感谢您使用本系统 欢迎下次使用!\");\n System.exit(0);\n }\n \n \n\t}", "void printMainMenu(){\n\t\tSystem.out.println(\"\\n\\nMarketo Music\");\n\t\tSystem.out.println(\"Main Menu\");\n\t\tSystem.out.println(\"1. Create Playlist: create <playlist name>\");\n\t\tSystem.out.println(\"2. Edit Playlist: edit <playlist id>\");\n\t\tSystem.out.println(\"3. Print Song: song <song id>\");\n\t\tSystem.out.println(\"4. Print Playlist: playlist <playlist id>\");\n\t\tSystem.out.println(\"5. Print All Songs or Playlists: print song/playlist\");\n\t\tSystem.out.println(\"6. Search Song: search artist/title <string of words to be searched>\");\n\t\tSystem.out.println(\"7. Sort songs: sort artist/title\");\n\t\tSystem.out.println(\"8. Quit: quit\");\n\t\tSystem.out.print(\"Enter a Command : \");\n\t}", "private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }", "public static void ShowHelpScreen() {\n ToggleVisibility(HelpPage.window);\n }", "public abstract void displayMenu();", "public void menu()\n {\n System.out.println(\"\\n\\t\\t============================================\");\n System.out.println(\"\\t\\t|| Welcome to the Movie Database ||\");\n System.out.println(\"\\t\\t============================================\");\n System.out.println(\"\\t\\t|| (1) Search Movie ||\");\n System.out.println(\"\\t\\t|| (2) Add Movie ||\");\n System.out.println(\"\\t\\t|| (3) Delete Movie ||\");\n System.out.println(\"\\t\\t|| (4) Display Favourite Movies ||\");\n System.out.println(\"\\t\\t|| (5) Display All Movies ||\");\n System.out.println(\"\\t\\t|| (6) Edit movies' detail ||\");\n System.out.println(\"\\t\\t|| (7) Exit System ||\");\n System.out.println(\"\\t\\t=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n System.out.print( \"\\t\\tPlease insert your option: \");\n }", "public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }", "public void startScreen()\n {\n onSales = false;\n \n numItemsAdded = 0; \n Menu guiMenu = new Menu(\"File\", \"NewSale\\nClose\\nExit\", 24, Color.BLACK, Color.WHITE, Color.BLACK,Color.WHITE, new FileCommands());\n clearScreen();\n addObject(guiMenu, 200, 50);\n }", "public void printMenu()\n\t{\n\t\tSystem.out.println(SearchMenu.MENU_HEAD);\n\t\tSystem.out.println(SearchMenu.TYPE_MESSAGE );\n\t\tSystem.out.println(SearchMenu.QUIT);\n\t\tSystem.out.println(SearchMenu.MENU_TAIL);\n\t\tSystem.out.println(SearchMenu.INPUT_PROMPT);\n\t}", "void showHelp() {\n\t\tif (helpScreen == null) {\n\t\t helpScreen = new Form(\"Walking Help\");\n\t\t helpScreen.append(\"^ = walk forward\\n\");\n\t\t helpScreen.append(\"v = walk backwards\\n\");\n\t\t helpScreen.append(\"< = turn left\\n\");\n\t\t helpScreen.append(\"> = turn right\\n\");\n\t\t helpScreen.append(\"fire = change reverb manually\\n\");\n\t\t}\n\t\thelpScreen.addCommand(toggleCommand);\n\t\thelpScreen.setCommandListener(this);\n\t\tdisplay.setCurrent(helpScreen);\n }", "@Override\n public void show() {\n MenuMusic.play();\n MenuMusic.setLooping(true);\n MenuMusic.setVolume(0.4f);\n }", "void showTitle(String title);", "private static void displayUserMenu() {\n\t\tSystem.out.println(\"\\t User Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"ar <reponame> : To add a new repo \\n\"\n\t\t\t\t+ \"dr <reponame> : To delete a repo \\n\"\n\t\t\t\t+ \"or <reponame> : To open repo \\n\"\n\t\t\t\t+ \"lr : To list repo \\n\"\n\t\t\t\t+ \"lo : To logout \\n\"\n\t\t\t\t+ \"====================================\\n\");\n\t}", "public void showMenu()\r\n {\r\n System.out.println(\"Enter Truck order: \");\r\n \r\n super.showCommon();\r\n \r\n \r\n super.showMenu(\"What size truck is this? \", SIZE);\r\n \r\n \r\n \r\n \r\n \r\n \r\n super.showMenu(\"What is the engine size of the truck?\", ENGINE_SIZE);\r\n \r\n \r\n \r\n }", "private void showDisplay() {\n this.display.displayScreen();\n }", "@Override\n\tpublic void show() {\n\t\tsetUpGame();\n\t}", "public static void displayMainMenu() {\n\t\tSystem.out.println(\"1.) Scan network\");//looks for IP address\n\t\tSystem.out.println(\"2.) Wait for connections\");//server\n\t\tSystem.out.println(\"3.) Connect to client\");//client\n\t\tSystem.out.println(\"4.) Exit\");\n\t}", "public void ifWin() {\n WinMenu.setVisible(true);\n }", "private void displayMenu() {\n\t\tSystem.out.println(\"********Loan Approval System***********\");\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choose the following options:\\n(l)Load Applicaitons\\n(s)Set the Budget\\n(m)Make a decision\\n(p)Print\\n(u)Update the application\");\n\n\t}", "@Override\r\n protected void onScreenActivate() {\n if (Forge.isLandscapeMode() && displaySidebarForLandscapeMode()) {\r\n menu.hide();\r\n menu.show(getLeft(), 0, getWidth(), getHeight());\r\n }\r\n }", "public static void activateMenu() {\n instance.getMenu().show();\n }", "public void mostrar() {\n\t\tHerramientas.println(menu);\n\t}", "private void displayMenu() {\r\n\t\tif (this.user instanceof Administrator) {\r\n\t\t\tnew AdminMenu(this.database, (Administrator) this.user);\r\n\t\t} else {\r\n\t\t\tnew BorrowerMenu(this.database);\r\n\t\t}\r\n\t}", "public static void splashScreen() {\n System.out.println(printLine(\"-\",100));\n System.out.println(\"Welcome to KaviBase\"); // Display the string.\n System.out.println(\"Version \" + getVersion());\n System.out.println(getCopyright());\n System.out.println(\"\\nType \\\"help;\\\" to display supported commands.\");\n System.out.println(\"\\nEvery command should end with semicolon ;\");\n System.out.println(printLine(\"-\",100));\n }", "public void displayMenu() {\r\n\t\tSystem.out.println(\"Enter a number between 0 and 8 as explained below: \\n\");\r\n\t\tSystem.out.println(\"[\" + ADD_CUSTOMER + \"] Add a customer.\");\r\n\t\tSystem.out.println(\"[\" + ADD_MODEL + \"] Add a model.\");\r\n\t\tSystem.out.println(\"[\" + ADD_TO_INVENTORY + \"] Add a washer to inventory.\");\r\n\t\tSystem.out.println(\"[\" + PURCHASE + \"] Purchase a washer.\");\r\n\t\tSystem.out.println(\"[\" + LIST_CUSTOMERS + \"] Display all customers.\");\r\n\t\tSystem.out.println(\"[\" + LIST_WASHERS + \"] Display all washers.\");\r\n\t\tSystem.out.println(\"[\" + DISPLAY_TOTAL + \"] Display total sales.\");\r\n\t\tSystem.out.println(\"[\" + SAVE + \"] Save data.\");\r\n\t\tSystem.out.println(\"[\" + EXIT + \"] to Exit\");\r\n\t}", "private void displayWelcome(){\n clrscr();\n System.out.println(\"\\nWelcome to the Tickets Viewer!\\n\");\n System.out.println(\"We Recommend you Maximize this window for the best User Experience!\\n\");\n System.out.println(\"Please press \\\"Enter\\\" to continue\");\n }", "public void Title ()\n {\n\tTitle = new Panel ();\n\tTitle.setBackground (Color.white);\n\tchessboard (Title);\n\tp_screen.add (\"1\", Title);\n }", "public void display() {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new ProviderMenu().setVisible(true);\n\n }\n });\n }", "private void menu() { \r\n\t\tSystem.out.println(\" ---------WHAT WOULD YOU LIKE TO DO?---------\");\r\n\t\tSystem.out.println(\"1) Move\");\r\n\t\tSystem.out.println(\"2) Save\");\r\n\t\tSystem.out.println(\"3) Quit\");\r\n\t\t\r\n\t}", "@Override\n public void show() {\n create();\n\n backButton.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent event, float x, float y) {\n listener.displayStartMenu();\n }\n });\n\n table.add(controlsLabel).colspan(2).padBottom(50);\n table.row();\n table.add(createLabelTable()).left().padRight(20);\n table.add(createKeyTable());\n table.row();\n table.add(backButton).padTop(50).colspan(2);\n\n table.setBounds(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n\n stage.addActor(table);\n\n Gdx.input.setInputProcessor(stage);\n }", "public void launchStartupScreen() {\n\t\tnew StartUpScreen(this);\n\t}", "public static void f_menu(){\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n System.out.println(\"_/_/_/_/_/_/softvectorwhith/_/_/_/_/_/_/\");\n System.out.println(\"/_/_/_/version 1.0 2020-oct-29_/_/_/_/_/\");\n System.out.println(\"/_/maked by Andres Felipe Torres Lopez_/\");\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n }", "@Override\n public void show() {\n\n skin = new Skin(Gdx.files.internal(\"menu/menu.json\"),new TextureAtlas(\"menu/menu.pack\"));\n\n Image background = new Image(skin, \"menuscreen\");\n background.setPosition(0,0);\n stage.addActor(background);\n\n Image gameOver = new Image(skin,\"gameOver\");\n gameOver.setPosition( ( 800 - 484)/2 , (480 - 345)/2 ) ;\n stage.addActor(gameOver);\n\n Button gameOverSim = new Button(skin,\"gameOverSim\");\n gameOverSim.setPosition(265,100);\n stage.addActor(gameOverSim);\n\n Button gameOverNao = new Button(skin,\"gameOverNao\");\n gameOverNao.setPosition(425,100);\n stage.addActor(gameOverNao);\n\n gameOverSim.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent event, float x, float y) {\n // TO DO passar o level como parametro no construtor\n selecionado.play();\n ((Game) Gdx.app.getApplicationListener()).setScreen(new PlayScreen(game, level));\n dispose();\n }\n });\n\n gameOverNao.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent event, float x, float y) {\n selecionado.play();\n ((Game) Gdx.app.getApplicationListener()).setScreen(new MenuScreen(game));\n dispose();\n }\n });\n\n }", "public static void structEngineerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Structural Engineer's Information\");\n System.out.println(\"2 - Would you like to search for a Structural Engineer's Information\");\n System.out.println(\"3 - Adding a new Structural Engineer's Information\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "public void showMenu() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\t1. Show vertices\");\n\t\tSystem.out.println(\"\\t2. Show adjacent vertices\");\n\t\tSystem.out.println(\"\\t3. Get vertex count\");\n\t\tSystem.out.println(\"\\t4. Get edge count\");\n\t\tSystem.out.println(\"\\t5. Add vertex\");\n\t\tSystem.out.println(\"\\t6. Add edge\");\n\t\tSystem.out.println(\"\\t7. Remove vertex\");\n\t\tSystem.out.println(\"\\t8. Remove edge\");\n\t\tSystem.out.println(\"\\t9. Check connectivity\");\n\t\tSystem.out.println(\"\\t0. Check adjacency\");\n\t\tSystem.out.println(\"\\tTRAVERSAL ALGORITHMS\");\n\t\tSystem.out.println(\"\\t11. Depth-first traversal\");\n\t\tSystem.out.println(\"\\t12. Breadth-first traversal\");\n\t\t\n\t\tSystem.out.println(\"\\tINPUT -1 TO EXIT\");\n\t\tSystem.out.println();\n\t}", "public static void displayMenu() {\n while (true) {\n m.display();\n int i = m.choice();\n m.execute1(i);\n }\n }", "public static void f_menu(){\n System.out.println(\"╔══════════════════════╗\");\r\n System.out.println(\"║ SoftAverageHeight ║\");\r\n System.out.println(\"║Version 1.0 20200428 ║\");\r\n System.out.println(\"║Created by:Andres Diaz║\");\r\n System.out.println(\"╚══════════════════════╝\");\r\n\r\n }", "@FXML\n void openMenuWindow() {\n window.setTitle(\"Timelines: Menu\");\n window.setScene(menuScene);\n window.show();\n window.requestFocus();\n\n messageLabel.setVisible(true);\n }", "private void showAbout() {\r\n\t\tshowMessage(\"About\", \" Curtis Baldwin's Intelligent Building\"); // About message created when about button\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// pressed\r\n\t}", "private static void displayGuest() {\n // Clear the screen\n clearScreen();\n\n // Display UI\n System.out.println(\"Welcome, Guest.\\n\\n\"\n + \"Choose an option:\\n\"\n + \"- (R)ooms - View rooms and rates\\n\"\n + \"- (S)tays - View availability for your stay\\n\"\n + \"- (B)ack - Goes back to main menu\\n\");\n }", "public void printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE);\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\n\t}", "public void menu() {\n System.out.println(\n \" Warehouse System\\n\"\n + \" Stage 3\\n\\n\"\n + \" +--------------------------------------+\\n\"\n + \" | \" + ADD_CLIENT + \")\\tAdd Client |\\n\"\n + \" | \" + ADD_PRODUCT + \")\\tAdd Product |\\n\"\n + \" | \" + ADD_SUPPLIER + \")\\tAdd Supplier |\\n\"\n + \" | \" + ACCEPT_SHIPMENT + \")\\tAccept Shipment from Supplier |\\n\"\n + \" | \" + ACCEPT_ORDER + \")\\tAccept Order from Client |\\n\"\n + \" | \" + PROCESS_ORDER + \")\\tProcess Order |\\n\"\n + \" | \" + CREATE_INVOICE + \")\\tInvoice from processed Order |\\n\"\n + \" | \" + PAYMENT + \")\\tMake a payment |\\n\"\n + \" | \" + ASSIGN_PRODUCT + \")\\tAssign Product to Supplier |\\n\"\n + \" | \" + UNASSIGN_PRODUCT + \")\\tUnssign Product to Supplier |\\n\"\n + \" | \" + SHOW_CLIENTS + \")\\tShow Clients |\\n\"\n + \" | \" + SHOW_PRODUCTS + \")\\tShow Products |\\n\"\n + \" | \" + SHOW_SUPPLIERS + \")\\tShow Suppliers |\\n\"\n + \" | \" + SHOW_ORDERS + \")\\tShow Orders |\\n\"\n + \" | \" + GET_TRANS + \")\\tGet Transaction of a Client |\\n\"\n + \" | \" + GET_INVOICE + \")\\tGet Invoices of a Client |\\n\"\n + \" | \" + SAVE + \")\\tSave State |\\n\"\n + \" | \" + MENU + \")\\tDisplay Menu |\\n\"\n + \" | \" + EXIT + \")\\tExit |\\n\"\n + \" +--------------------------------------+\\n\");\n }", "public void printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE + ChatMaintainer.CS().getPartner());\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\n\t}", "@Override\r\n\tpublic void menu() {\n\t\tSystem.out.println(\"go to menu\");\r\n\t\t\r\n\t}", "public void setWelcomeScreen() {\n clearAllContent();\n add(WelcomeScreen.create(controller));\n pack();\n }" ]
[ "0.8494697", "0.7570499", "0.74707776", "0.7407182", "0.73799324", "0.72842395", "0.7277543", "0.71990997", "0.7088325", "0.7057813", "0.7017066", "0.7006119", "0.69938934", "0.6920673", "0.6917286", "0.69110894", "0.6899154", "0.68977696", "0.6871441", "0.68220353", "0.6818361", "0.6816489", "0.68006843", "0.6793969", "0.67868537", "0.6771064", "0.6768912", "0.67629826", "0.66652066", "0.6661326", "0.6645198", "0.6640468", "0.6620781", "0.66169", "0.6614428", "0.66134286", "0.65988934", "0.6553826", "0.6551224", "0.6540797", "0.65192413", "0.65104246", "0.65066487", "0.65062755", "0.6503386", "0.649111", "0.64841986", "0.6474496", "0.64708054", "0.6467587", "0.646479", "0.64635706", "0.6456395", "0.64561003", "0.6439083", "0.6437637", "0.6428467", "0.6425913", "0.642222", "0.64150035", "0.6409867", "0.6398376", "0.6394531", "0.63813", "0.63761824", "0.63732696", "0.6368581", "0.6365482", "0.63627774", "0.6362598", "0.63584864", "0.6351703", "0.63509905", "0.634831", "0.6340594", "0.6328312", "0.6320486", "0.6311667", "0.63074464", "0.63026553", "0.6300394", "0.62978876", "0.6297622", "0.6296397", "0.62899184", "0.62881166", "0.6286381", "0.6286167", "0.6285193", "0.62832457", "0.6272994", "0.62581545", "0.6257737", "0.6255064", "0.62548214", "0.6248807", "0.6246955", "0.62410426", "0.62405324", "0.623949" ]
0.7262001
7
Renders the screen and waits for any input to return to the previous screen.
@Override public void render(float delta) { Gdx.gl.glClearColor(0.4f, 0.737f, 0.929f, 1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); checkForBack(); stage.act(); stage.draw(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void process() {\n\n\t\tInputCommand cmd = InputManager.nextCommandPreserveKeyData();\n\t\tif (cmd != null) {\n\t\t\tswitch (cmd) {\n\n\t\t\tcase NEW:\n\t\t\t\tsetNextScreen(new NewGameScreen(terminal));\n\t\t\t\tbreak;\n\n\t\t\tcase LOAD:\n\t\t\t\tsetNextScreen(new MainScreen(this.terminal, loadGame()), false);\n\t\t\t\tbreak;\n\n\t\t\tcase CANCEL:\n\t\t\t\tSystem.exit(0);\n\n\t\t\tdefault:\n\t\t\t}\n\t\t}\n\t}", "private void render() {\r\n while(!Display.isCloseRequested() && !Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)){\r\n try{\r\n glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); \r\n glLoadIdentity();\r\n \r\n \r\n\r\n Display.update();\r\n Display.sync(60);\r\n }\r\n catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n Display.destroy();\r\n }", "private void loop() {\n GLCapabilities capabilities = GL.createCapabilities();\n\n // Set the clear color\n screen.setWindow(this);\n screen.init();\n\n // Run the rendering loop until the user has attempted to close\n // the window or has pressed the ESCAPE key.\n long before = System.currentTimeMillis() - 1;\n while (glfwWindowShouldClose(windowID) != GL11.GL_TRUE) {\n float secs = (System.currentTimeMillis() - before) / 1000f;\n before = System.currentTimeMillis() - 1;\n screen.update(secs);\n screen.draw();\n\n keyboard.update();\n mouse.update();\n\n glfwSwapBuffers(windowID);\n glfwPollEvents();\n }\n\n screen.close();\n }", "private void startingScreen() {\n screenWithGivenValues(-1,-2,1,2,3,-1,0);\n }", "public void render() {\n\t\tscreen.background(255);\n\t\thandler.render();\n\t}", "private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }", "public void DrawScreen() {\r\n DrawScreen(0, false, null);\r\n }", "private void render() {\n\t\tBufferStrategy buffStrat = display.getCanvas().getBufferStrategy();\n\t\tif(buffStrat == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3); //We will have 3 buffered screens for the game\n\t\t\treturn;\n\t\t}\n\n\t\t//A bufferstrategy prevents flickering since it preloads elements onto the display.\n\t\t//A graphics object is a paintbrush style object\n\t\tGraphics g = buffStrat.getDrawGraphics();\n\t\t//Clear the screen\n\t\tg.clearRect(0, 0, width, height); //Clear for further rendering\n\t\t\n\t\tif(State.getState() !=null) {\n\t\t\tState.getState().render(g);\n\t\t}\n\t\t//Drawings to be done in this space\n\t\t\n\t\t\n\t\t\n\t\tbuffStrat.show();\n\t\tg.dispose();\n\t}", "public void run (){\n\t\t\t\t\t\t\t\t\tgame.setScreen(game.ui);\t\t\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\t\t\t}", "public static void clearScreen() {\r\n\t\tcreateDelay(700);\r\n\t\tcls();\r\n\t\tSystem.out.println(\"\\nProcessing...\");\r\n\t\tcreateDelay(500);\r\n\t\tcls();\r\n\t}", "private void pollInput() {\n\t\t// check to see if the w key is down\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_W)) {\n\t\t\twKeyDown = true;\n\t\t} else\n\t\t\twKeyDown = false;\n\t\t// check to see if the a key is down\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_A)) {\n\t\t\taKeyDown = true;\n\t\t} else\n\t\t\taKeyDown = false;\n\t\t// check to see if the s key is down\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_S)) {\n\t\t\tsKeyDown = true;\n\t\t} else\n\t\t\tsKeyDown = false;\n\t\t// check to see if the d key is down\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_D)) {\n\t\t\tdKeyDown = true;\n\t\t} else\n\t\t\tdKeyDown = false;\n\t\t// check to see if the left mouse button is down\n\t\tif (Mouse.isButtonDown(0)) {\n\t\t\tmouseDown = true;\n\t\t} else\n\t\t\tmouseDown = false;\n\t\t// check to see if the F button is pressed and shows the shop screen if so\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_F)) {\n\t\t\tshowShopScreen();\n\t\t}\n\t\t// check to see if the esc button is pressed; if so, go to title screen\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) {\n\t\t\tshowTitleScreen();\n\t\t}\n\t}", "public void initialGameScreen() {\n timer.stop();\n gameModel.setState(\"Game Screen\");\n currentScene = levelSetup.getGameScreen().getScene(gameScreenInitialEntrance);\n currentBoard = levelSetup.getGameScreen().getBoard();\n currentLevelScreen = levelSetup.getGameScreen();\n gameScreenInitialEntrance = (gameScreenInitialEntrance ? false : false);\n moveCharacter(mainWindow, currentScene, hero, currentBoard);\n }", "public void updateScreen(){}", "public void interactWithKeyboard() {\n StdDraw.setCanvasSize(WIDTH * 16, HEIGHT * 16);\n StdDraw.setXscale(0, WIDTH);\n StdDraw.setYscale(0, HEIGHT);\n createMenu();\n StdDraw.enableDoubleBuffering();\n while (true) {\n if (StdDraw.hasNextKeyTyped()) {\n char input = Character.toUpperCase(StdDraw.nextKeyTyped());\n if (input == 'v' || input == 'V') {\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a name: \" + name);\n StdDraw.text(WIDTH / 2, HEIGHT * 5 / 6, \"Press # to finish.\");\n StdDraw.show();\n while (true) {\n if (StdDraw.hasNextKeyTyped()) {\n char next = StdDraw.nextKeyTyped();\n if (next == '#') {\n createMenu();\n break;\n } else {\n name += next;\n StdDraw.enableDoubleBuffering(); StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a name: \" + name);\n StdDraw.text(WIDTH / 2, HEIGHT * 5 / 6, \"Press # to finish.\");\n StdDraw.show();\n }\n }\n }\n }\n if (input == 'l' || input == 'L') {\n toInsert = loadWorld();\n if (toInsert.substring(0, 1).equals(\"k\")) {\n floorTile = Tileset.GRASS;\n }\n toInsert = toInsert.substring(1);\n interactWithInputString(toInsert);\n ter.renderFrame(world);\n startCommands();\n }\n if (input == 'n' || input == 'N') {\n toInsert += 'n';\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show();\n while (true) {\n if (!StdDraw.hasNextKeyTyped()) {\n continue;\n }\n char c = StdDraw.nextKeyTyped();\n if (c == 's' || c == 'S') {\n toInsert += 's';\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show(); interactWithInputString(toInsert);\n ter.renderFrame(world); mouseLocation(); startCommands();\n break;\n }\n if (c != 'n' || c != 'N') {\n toInsert += c;\n StdDraw.enableDoubleBuffering(); StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show();\n }\n }\n }\n if (input == 'l' || input == 'L') {\n toInsert = loadWorld();\n if (toInsert.substring(0, 1).equals(\"k\")) {\n floorTile = Tileset.GRASS;\n }\n toInsert = toInsert.substring(1); interactWithInputString(toInsert);\n ter.renderFrame(world); startCommands();\n }\n }\n }\n }", "private void initialScreen() {\r\n\t\t// Clear the screen\r\n\t\tclear();\r\n\r\n\t\t// Place four asteroids\r\n\t\tplaceAsteroids();\r\n\r\n\t\t// Place the ship\r\n\t\tplaceShip();\r\n\r\n\t\t// Reset statistics\r\n\t\tlives = 3;\r\n\t\tdisplay.setLives(lives);\r\n\t\tnumLevel = 1;\r\n\t\tdisplay.setLevel(numLevel);\r\n\t\tdisplay.setScore(0);\r\n\t\tspeed = 3;\r\n\r\n\t\t// Start listening to events\r\n\t\tdisplay.removeKeyListener(this);\r\n\t\tdisplay.addKeyListener(this);\r\n\r\n\t\t// Give focus to the game screen\r\n\t\tdisplay.requestFocusInWindow();\r\n\t}", "@Override\n public void run()\n {\n int input;\n while(handler.isRunning())\n {\n UIUtils.drawBox(' ', 1, 42, 20, 3);\n UIUtils.drawWindowAt(20, 2, 1, 42);\n \n //TODO: Possibly change to a strategy pattern to allow\n // for different kinds of input\n input = reader.readInt(\"ENTER\", -Integer.MAX_VALUE, Integer.MAX_VALUE, INPUT_POS);\n input--;\n this.handler.input(input);\n }\n }", "private void showDisplay() {\n this.display.displayScreen();\n }", "public void updateScreen()\n {\n super.updateScreen();\n }", "private void updateDisplay() {\n\t\tif (!Display.isActive()) {\n\t\t\twKeyDown = false;\n\t\t\taKeyDown = false;\n\t\t\tsKeyDown = false;\n\t\t\tdKeyDown = false;\n\t\t\tmouseDown = false;\n\t\t}\n\t\t\n\t\tDisplay.update();\n\t\tDisplay.sync(fps);\n\t\t\n\t\tif (Display.isCloseRequested()) {\n\t\t\tDisplay.destroy();\n\t\t\tAL.destroy();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "static void clearScreen() {\n System.out.println(\"Press \\\"ENTER\\\" to continue...\");\n Scanner scan= new Scanner(System.in);\n scan.nextLine();\n for (int i = 0; i < 50; ++i) System.out.println();\n }", "static void pause()\n {\n // No non-blocking IO (raw input and non echoing inputs, please google these don't disturb me) support without diving into third party land, or hideously long code; be content with regular old interactive input\n System.out.println(\"\\nType \\\"cls\\\" or \\\"clear\\\" (or anything really) to clear the screen ...\");\n input.next();\n }", "public void paintFinalScreen() {\n\t\tapp.image(end, 0, 0);\n\t}", "protected void enter() {\n \tresult.setForeground(red);\n \tif (entered == true) {\n \t\tshow(current);\n \t}\n \tentered = true;\n \tstack.add(current);\n \tcurrent = 0;\n }", "@Override\n\tpublic void render() {\n\t\tScreen.render();\n\t}", "public void render(){\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Sets graphics in screen and clears them\n\t\tGraphics g = bs.getDrawGraphics();\n\t\tscreen.graphics(g);\n\t\tscreen.clear();\n\t\t\n\t\tGraphics2D graphics2d = (Graphics2D) g;\n\t\t\n\t\t//Adds antialiasing to text\n\t\tgraphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\n\t\tmanager.render(screen);\n\t\t\n\t\tfor(int i = 0; i < WIDTH*HEIGHT; i++){\n\t\t\tpixels[i] = screen.getPixels()[i];\n\t\t}\n\t\tg.drawImage(image, 0, 0, getWidth(), getHeight(), null);\n\t\t\n\t\t//Draw text from string buffer\n\t\tfor(StringObject so : screen.stringBuffer){\n\t\t\tString s = so.string;\n\t\t\tg.setColor(so.color);\n\t\t\tg.setFont(so.font);\n\t\t\tg.drawString(s, so.xp, so.yp);\n\t\t}\n\t\tscreen.stringBuffer.clear();\n\t\t\n\t\t//Draws pause graphics\n\t\tif(screen.pause && manager.getState() == 2){\n\t\t\tg.setColor(new Color((0xcc00aa & 0xff0000) >> 16, (0xcc00aa & 0xff00) >> 8, (0xcc00aa & 0xff), 255));\n\t\t\tg.fillRect(0, 290, screen.getWidth(), 170);\n\t\t\tg.setColor(new Color((0x222222 & 0xff0000) >> 16, (0x222222 & 0xff00) >> 8, (0x222222 & 0xff), 255));\n\t\t\tg.fillRect(0, 300, screen.getWidth(), 150);\n\t\t\t\n\t\t\tg.setColor(Color.WHITE);\n\t\t\tg.setFont(new Font(\"Audiowide\", Font.PLAIN, 90));\n\t\t\tg.drawString(\"PAUSED\", 330, 380);\n\t\t\tg.setFont(new Font(\"Audiowide\", Font.PLAIN, 30));\n\t\t\tg.drawString(\"Press Escape to Resume\", 340, 420);\n\t\t}\n\t\t\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "public void updateScreen()\n {\n field_50064_a.updateCursorCounter();\n }", "public void displayToScreen(){\n System.out.println(convertBoardToString());\n delay();\n }", "public static void end(){\n try{\n System.out.println(\"\\nPress Enter key to continue: \");\n\t\t System.in.read();\n System.out.print(\"\\033[H\\033[2J\"); \n System.out.flush();\n }catch(Exception e){\n System.err.println(e.getMessage());\n }\n }", "public void updateOnScreen() {\n\t\tscreen.updateBox();\n\n\t}", "private void WaitTalk() {\n // to restart as touched screen.\n if (this.mRestartF) this.RestartTalk();\n }", "private void finalScreen() {\r\n\t\tdisplay.setLegend(GAME_OVER);\r\n\t\tdisplay.removeKeyListener(this);\r\n\t}", "private static void clearScreen() {\n\t\tSystem.out.println(\"\\033[H\\033[2J\"); \n\t\tSystem.out.flush();\n\t}", "private void render() {\n\n\tbs=display.getCanvas().getBufferStrategy();\t\n\t\n\tif(bs==null) \n\t {\t\n\t\tdisplay.getCanvas().createBufferStrategy(3);\n\t\treturn ;\n\t }\n\t\n\tg=bs.getDrawGraphics();\n\n\t//Clear Screen\n\tg.clearRect(0, 0, width, height);\n\t\n\tif(State.getState()!=null )\n\t\tState.getState().render(g);\n\t\n\t//End Drawing!\n\tbs.show();\n\tg.dispose();\n\t\n\t}", "private void returnScreen(){\r\n dispose();\r\n playScreen.combatExit();\r\n }", "public void drawStartScreen() {\n\t\tint highScore = getHighScore();\n\t\tdisplayText(\"High Score \" + String.valueOf(highScore), 0, 0, false);\n\t\tdisplayText(\"Press to Start Game\", 0, -100, false);\n\t}", "public void startGame(){\n\t\tsc = new Scanner(System.in);\n\t\tgui.setScreenID(screenNumber);\n\t\tgui.start();\n\t}", "public void returnToMenu(){\n client.moveToState(ClientState.WELCOME_SCREEN);\n }", "public static void clearScreen()\r\n\t{\r\n\t\tSystem.out.println(\"\\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\");\r\n\t}", "@Override\n\tpublic void updateScreen() {\n\t\tfield_154330_a.tick();\n\t\tsuper.updateScreen();\n\t}", "@Override\n\tpublic void showUserPasswordNextScreen() {\n\t\tLog.d(TAG,\"showUserPasswordNextScreen\");\n\t\tif(ParentActivity.AnimationRunningFlag == true)\n\t\t\treturn;\n\t\telse\n\t\t\tParentActivity.StartAnimationRunningTimer();\n\t\t\n\t\tParentActivity._MenuBaseFragment.showBodyESL();\n\t\t\n\t\tParentActivity.OldScreenIndex = Home.SCREEN_STATE_MENU_MODE_ETC_AUTOSHUTDOWN_PW;\n\t}", "public static void pause(){\n System.out.print(\"Enter anything to continue: \"); // prompts the user to enter anything\n input.nextLine(); // receiving the user's input, but not storing it\n clear(); // clears the screen\n }", "public void endInput() {\n this.currentIndex = 1;\n this.currentUnit = null;\n this.currentChName = null;\n this.currentState = states.EMPTY;\n JTVProg.mainWindow.tvFillBut.setEnabled(false);\n JTVProg.mainWindow.tvProcBut.setEnabled(true);\n }", "private void tick() throws IOException {\n handleUserInput();\n\n game.tick();\n\n screen.setCursorPosition(new TerminalPosition(0, 0));\n screen.clear();\n render();\n screen.refresh();\n\n screen.setCursorPosition(new TerminalPosition(screen.getTerminalSize().getColumns() - 1, 0));\n }", "private void render() {\n\t\tBufferStrategy bufferStrategy = getBufferStrategy(); //Create BufferStrategy object\n\n\t\t//If the Buffer Strategy doesn't exist, create one\n\t\tif(bufferStrategy == null) {\n\t\t\tcreateBufferStrategy(3); //Triple buffer\n\t\t\treturn; //Return\n\t\t}\n\n\t\tGraphics g = bufferStrategy.getDrawGraphics(); //Create Graphics object\n\t\tg.setColor(Color.black); //Set the colour of the object to black\n\t\tg.fillRect(0, 0, Game.WIDTH, Game.HEIGHT); //Fill the window\n\n\t\t//Start screen\n\t\tif(!startScreen.start && !player.dead && !player.win) {\n\t\t\tstartScreen.render(g); //Render the start screen\n\t\t\t//If the user presses enter\n\t\t\tif(enter) {\n\t\t\t\tstartScreen.start = true; //Game has started\n\t\t\t}\n\t\t}\n\n\t\t//Playing screen\n\t\tif(!player.dead && !player.win && startScreen.start) {\n\t\t\tlevel.render(g); //Render the level\n\t\t\tplayer.render(g); //Render the player to the graphics object\n\t\t\thp(g); //Render the hit points\n\t\t\tif(paused) {\n\t\t\t\tpauseScreen.render(g);\n\t\t\t}\n\t\t}\n\n\t\t//Dead screen\n\t\tif(player.dead){\n\t\t\tdeadScreen.render(g); //Render the dead screen\n\t\t}\n\n\t\t//Win screen\n\t\tif(player.win) {\n\t\t\twinScreen.render(g); //Render the win screen\n\t\t}\n\t\tg.dispose(); //Dispose of the object\n\t\tbufferStrategy.show(); //Show it\n\t}", "private void switchToEndScreen() {\n\t\tprogram.removeAll();\n\t\tprogram.add(endScreen);\n\t\tAudioPlayer.getInstance().playSound(\"sounds\", \"HyperSpaceSound.mp3\");\n\t}", "private void showInstructScreen() {\n\t\twhile (!Mouse.isButtonDown(0)\n\t\t\t\t|| !(Mouse.getX() >= 643 && Mouse.getX() <= 758 && Mouse.getY() <= (displayHeight - 494) && Mouse.getY() >= (displayHeight - 562))) {\n\t\t\t// draw instructions screen\n\t\t\tdrawScreen(sprite.get(\"instructScreen\"));\n\t\t\t\n\t\t\t// update display\n\t\t\tupdateDisplay();\n\t\t}\n\t}", "public void run()\r\n\t{\r\n\t\ttry {\r\n\t\t\twhile(true) {\r\n\t\t\t\tgl.use();\r\n\t\t\t\tspinDisplay();\r\n\t\t\t\tThread.sleep(10);\r\n\t\t\t}\r\n\t\t}\r\n catch (InterruptedException e){\r\n // the user sent an interupt,\r\n // So lets exit...\r\n\t\t}\r\n\t}", "void suspendInput();", "private void render() {\n final int numBuffers = 3;\n BufferStrategy bs = this.getBufferStrategy(); // starts value at null\n if (bs == null) {\n this.createBufferStrategy(numBuffers); // 3: buffer creations\n return;\n }\n Graphics g = bs.getDrawGraphics();\n\n g.setColor(Color.black); // stops flashing background\n g.fillRect(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);\n\n handler.render(g);\n\n if (gameStart == GAME_STATE.Game) {\n hud.render(g);\n } else if (gameStart == GAME_STATE.Menu || gameStart == GAME_STATE.Help || gameStart == GAME_STATE.GameOver || gameStart == GAME_STATE.GameVictory) {\n menu.render(g);\n }\n\n g.dispose();\n bs.show();\n }", "@Override\n\tpublic void show() {\n\t worldRenderer = new WorldRenderer(game);\n\t\tGdx.input.setCatchBackKey(true);\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "private void render() {\n\n StateManager.getState().render();\n }", "public void render() {\r\n\t\t\r\n\t\taccum += Gdx.graphics.getDeltaTime();\r\n\t\twhile(accum >= STEP) {\r\n\t\t\taccum -= STEP;\r\n\t\t\tgsm.update(STEP);\r\n\t\t\tgsm.render();\r\n\t\t\tMyInput.update();\r\n\t\t}\r\n\t\t\r\n\t}", "public void sleep()\r\n\t{\r\n\t\tif (regulate)\r\n\t\t{\r\n\t\t\tDisplay.sync(fps);\r\n\t\t}\r\n\t}", "public static void displayMenu() {\n while (true) {\n m.display();\n int i = m.choice();\n m.execute1(i);\n }\n }", "@Override\n public void render(float delta) {\n if (game.wrongBSCall || game.rightBSCall) {\n game.setScreen(new CalledBSScreen(game));\n }\n\n //update elapsed time\n elapsed += delta;\n\n if (elapsed > 7.0) {\n game.setScreen(new OtherWaitScreen(game));\n }\n\n //set color and clear\n Gdx.gl.glClearColor(0.05f, 0.3f, 0, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n //draw for user\n batch.begin();\n if (game.prev_player == game.ID) {\n count.draw(batch, \"You played \" + numberPlayed + \" \" + suitPlayed + \"\\nWaiting for \" + game.player_names.get(game.curr_player) + \"...\" +\n \"\\nThey have \" + (int) (7 - elapsed) + \" seconds to call BS!\", 250, 1100);\n }\n else {\n count.draw(batch, game.player_names.get(game.prev_player) + \" played \" + numberPlayed + \" \" + suitPlayed +\n \"\\nWaiting for \" + game.player_names.get(game.curr_player) + \"...\" +\n \"\\nThey have \" + (int) (7 - elapsed) + \" seconds to call BS!\", 250, 1100);\n }\n batch.end();\n\n //track touch input\n if(Gdx.input.justTouched()) {\n Vector3 touchPos = new Vector3();\n touchPos.set(Gdx.input.getX(), Gdx.input.getY(), 0);\n System.out.println(Gdx.input.getX() + \" \" + Gdx.input.getY());\n\n clickInBack(touchPos);\n\n }\n }", "public void changeScreen() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\thomeScreen.draw();\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1:\n\t\t\tinstructionScreen.draw();\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Esperar jugadores\n\t\tcase 2:\n\t\t\tplayerWaitScreen.draw();\n\t\t\tscreen = 3;\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Juego\n\t\tcase 3:\n\t\t\tgameScreen.draw();\n\t\t\tc.draw();\n\t\t\tc.move();\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tpublic void showServicePasswordNextScreen() {\n\t\tif(ParentActivity.AnimationRunningFlag == true)\n\t\t\treturn;\n\t\telse\n\t\t\tParentActivity.StartAnimationRunningTimer();\n\t\t\n\t\tParentActivity._MenuBaseFragment.showBodyESL();\n\t\t\n\t\tParentActivity.OldScreenIndex = Home.SCREEN_STATE_MENU_MODE_ETC_AUTOSHUTDOWN_PW;\n\t}", "private static void clearScreen() \n {\n Console c = System.console();\n if (c != null) \n {\n // Clear screen for the first time\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush();\n //c.writer().print(ESC + \"[2J\");\n //c.flush();\n\n // Clear the screen again and place the cursor in the top left\n System.out.print(\"\\033[H\\033[1;1H\");\n System.out.flush();\n //c.writer().print(ESC + \"[1;1H\");\n //c.flush();\n }\n }", "@Override\n public void render() {\n GUI.clearScreen();\n if (assetManager.update()) {\n switch (gameState) {\n case MENU:\n GUI.menuLoop();\n break;\n case PAUSE:\n case GAME:\n gameLoop();\n break;\n case LOAD:\n World.load();\n gameState = GameState.GAME;\n break;\n }\n } else {\n GUI.splashScreen(assetManager.getProgress());\n }\n DrawManager.end();\n }", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it will also have a backup\t\n\t\t}\n\t\t\n\t\t//apply data to the buffer \"bs\"\n\t\t//this is creating a link to graphics to drawing graphics to the screen.\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t/**\n\t\t * You input all of your graphics inbetween the g object and g.dispose();\n\t\t */\n\t\t//###################\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t//###################\n\t\tg.dispose(); //this dispose of all the graphics\n\t\tbs.show(); //this will make the next available buffer visible\n\t}", "@Override\n public void show() {\n VisAQ.getInstance().userInput();\n }", "public synchronized void display() {\r\n\r\n\t\t// clear the screen and draw a yellow square\r\n\t\tgl.clear(GL.COLOR_BUFFER_BIT);\r\n\t\t// First rectangle\r\n\t\tgl.pushMatrix();\r\n\t\tgl.translate(-0.5, 0.0, 0.0);\r\n\t\tgl.rotate(spin, 0.0, 0.0, 1.0);\r\n\t\tgl.rect(-0.5, -0.5, 0.5, 0.5);\r\n\t\tgl.popMatrix();\r\n\t\t// Second rectangle\r\n\t\tgl.pushMatrix();\r\n\t\tgl.translate(0.5, 0.0, 0.0);\r\n\t\tgl.rotate(-spin, 0.0, 0.0, 1.0);\r\n\t\tgl.rect(-0.5, -0.5, 0.5, 0.5);\r\n\t\tgl.popMatrix();\r\n\t\tgl.flush(); // Make sure all commands have completed.\r\n\t\tgl.swap();\t // Swap the render buffer with the screen buffer\r\n\t}", "public static void clearScreen() { \n \tSystem.out.print(\"\\033[H\\033[2J\"); \n \tSystem.out.flush();\n\t}", "public static void clearScreen() {\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush();\n }", "private void winScreen() {\n timer.stop();\n gameModel.setState(\"Win Screen\");\n WinScreen screen = new WinScreen(width, height);\n Button replayButton = screen.getReplayButton();\n replayButton.setOnAction(e -> {\n try {\n Controller newGame = new Controller();\n newGame.start(mainWindow);\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n });\n Button exitButton = screen.getExitButton();\n exitButton.setOnAction(e -> {\n System.exit(0);\n });\n Scene scene = screen.getScene();\n mainWindow.setScene(scene);\n }", "private void backToMenu() {\n game.setScreen(new StartScreen(game));\n }", "public void waitForInputSignal(){\r\n\t\ttry {\r\n\t\t\tSystem.in.read();\r\n\t\t\tSystem.in.read();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void waitForKeyPress() {\n panel.bWaitingForKey = true;\n while (panel.bWaitingForKey) {\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n }\n }\n }", "public void mainPart(){\n this.speakerMessageScreen.prompt();\n String choice = this.scanner.nextLine();\n switch (choice) {\n case \"0\":\n this.programController.goToPreviousScreenController();\n break;\n case \"1\":\n this.reply();\n this.mainPart();\n return;\n case \"2\":\n this.broadCast();\n this.mainPart();\n return;\n case \"3\":\n this.programController.setNewScreenController(new InboxScreenController(programController));\n break;\n default:\n this.speakerMessageScreen.invalidInput(choice);\n this.mainPart();\n return;\n }\n this.end();\n }", "public void clearScreen() { \n\t System.out.print(\"\\033[H\\033[2J\"); \n\t System.out.flush(); \n\t }", "private void updatescreen2(){\n screen2.setText(displayscreen2);}", "static void clrscr()\n {\n // ... wrong.\n \n // clearing the screen for a console is system specific.\n String osName = System.getProperty(\"os.name\");\n \n // if it's Windows, simply doing Runtime.getRuntime().exec(\"cls\") doesn't work since \"cls\" is not an executible\n // (getRuntime() runs an executible on the given runtime)\n if (osName.startsWith(\"Windows\"))\n {\n // instead, make a process that refers to the current cmd window and make that do a \"cls\", like so:\n try\n {\n new ProcessBuilder(\"cmd\", \"/c\", \"cls\").inheritIO().start().waitFor();\n }\n // catch any exceptions if thrown (should be an IOException)\n catch (Exception e)\n {\n // print detailed info that helps debug said exception\n e.printStackTrace();\n }\n }\n // if its a Unix-like shell, pass an ANSI escape-code that's composed of\n // \\033 (octal) => ESC as an ASCII character (== \\0x1b (hexadecimal) == \\27 (decimal))\n // [2J => clear the screen, bring position to top of console window\n // [H => display the prompt (sort of) \n else if (osName.contains(\"nix\") || osName.contains(\"nux\") || osName.contains(\"aix\"))\n {\n System.out.print(\"\\033[2J\\033[H\");\n }\n else // do something weird ... which works, somewhat\n {\n System.out.println(\"No screen clearing on this console. Hold enter for some time and then type something.\");\n // inundates whitespace, and any other input isn't stored\n input.next();\n }\n }", "protected abstract Controller initialScreen();", "private void prompt() {\n System.out.print(\"> \");\n System.out.flush();\n }", "public void display() {\r\n\t\tsetVisible(true);\r\n\t}", "public static void clearScreen() { // funcao que limpa o ecrã \n System.out.println(\"\\033[H\\033[2J\");\n System.out.flush();\n }", "@Override\n public void render() {\n float deltaTime = Math.min(Gdx.graphics.getDeltaTime(), 1.0f / 60.0f);\n\n // no ongoing transition\n if (currScreen != null) {\n currScreen.render(deltaTime);\n }\n }", "public void input_entered() {\n\t\t_last_column = 0;\n\t\t_last_line = 0;\n\t\t_last_printed = '\\n';\n\t}", "public void drawScreen(int par1, int par2, float par3)\n {\n drawRect(2, height - 14, width - 2, height - 2, 0x80000000);\n field_50064_a.drawTextBox();\n super.drawScreen(par1, par2, par3);\n }", "public void drawGameCompleteScreen() {\r\n PennDraw.clear();\r\n\r\n if (didPlayerWin()) {\r\n PennDraw.text(width / 2, height / 2, \"You Win!\");\r\n } else if (didPlayerLose()) {\r\n PennDraw.text(width / 2, height / 2, \"You have lost...\");\r\n }\r\n\r\n PennDraw.advance();\r\n }", "private void showTitleScreen() {\n\t\tresetParameters();\n\t\t\n\t\t// if the play button is not clicked\n\t\twhile (!Mouse.isButtonDown(0)\n\t\t\t\t|| !(Mouse.getX() >= 249 && Mouse.getX() <= 539 && Mouse.getY() <= (displayHeight - 215) && Mouse.getY() >= (displayHeight - 284))) {\n\t\t\t// draw title screen\n\t\t\tdrawScreen(sprite.get(\"titleScreen\"));\n\t\t\t\n\t\t\tif (Mouse.isButtonDown(0) && Mouse.getX() >= 249 && Mouse.getX() <= 539\n\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 304) && Mouse.getY() >= (displayHeight - 373)) {\n\t\t\t\tshowInstructScreen();\n\t\t\t}\n\t\t\t\n\t\t\tif (Mouse.isButtonDown(0) && Mouse.getX() >= 249 && Mouse.getX() <= 539\n\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 393) && Mouse.getY() >= (displayHeight - 462)) {\n\t\t\t\tshowCreditsScreen();\n\t\t\t}\n\t\t\tif (Mouse.isButtonDown(0) && Mouse.getX() >= 249 && Mouse.getX() <= 539\n\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 482) && Mouse.getY() >= (displayHeight - 551)) {\n\t\t\t\tDisplay.destroy();\n\t\t\t\tAL.destroy();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t\n\t\t\t// update display\n\t\t\tupdateDisplay();\n\t\t}\n\t\t\n\t\t// reset beginning time\n\t\tDelta.setBeginningTime(Delta.getTime());\n\t}", "public void go() {\n update();\n borders();\n render();\n }", "@Override\n\tpublic void show()\n\t{\n\t\tGdx.input.setInputProcessor(this);\n\t}", "public void endRender () {\n\t\tglFlush();\n\t\tglfwSwapBuffers(window.window);\n\t\t//System.out.println(\"Swapped buffers\");\n\t\tglfwPollEvents();\n\t\t//shaderProgram.bind();\n\t}", "public void display_game_screen() {\n\n myScreen.screenMode = myScreen.DISPLAY_GAME_SCREEN;\n\n pushMatrix();\n\n calc_screen_translation();\n\n imageMode(CORNER);\n image(backgroundImage, 0, 0);\n\n // draw_grid();\n\n draw_game_assets();\n\n pacman.update(isPacmanUp, isPacmanDown, isPacmanLeft, isPacmanRight);\n ghost.update(isGhostUp, isGhostDown, isGhostLeft, isGhostRight);\n\n pacman.display();\n ghost.display();\n\n score.run(pacman.xTile, pacman.yTile, ghost.xTile, ghost.yTile);\n\n popMatrix();\n }", "private static void clearScreen()\n {\n System.out.print('\\u000C');\n }", "public void drawEndScreen() {\n\t\tint highScore = getHighScore();\n\t\tif (highScore <= score) {\n\t\t\thighScore = score;\n\t\t\tsetHighScore(highScore);\n\t\t}\n\t\tdisplayText(\"High Score \" + String.valueOf(highScore), 0, 0, false);\n\t\tdisplayText(\"Score\" + String.valueOf(score), 0, -100, false);\n\t}", "public static void waitForInput() {\n BufferedReader buffyTheVampireSlayer = new BufferedReader(new InputStreamReader(System.in));\n System.out.print(\"Press Enter To Continue...\");\n try {\n buffyTheVampireSlayer.readLine();\n } catch (IOException e) {\n System.out.println(e);\n System.out.println(\"an unexpected error occurred\");\n }\n }", "private final static void pulsaEnter() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\nPulsa Enter para continuar...\");\n\t\tkb.nextLine();\n\t}", "private void screenWithGivenValues(int promptString1, int promptString2, int optionString1, int optionString2, int optionString3, int inputString1, int inputString2) {\n //clears the screen of previous, unnecessary text\n display.drawBlankDialog();\n\n display.setDialogWindowPrompt(getPromptStrings(promptString1), getPromptStrings(promptString2), getShipsStatus());\n display.setDialogWindowOption1(getOptionStrings(optionString1));\n display.setDialogWindowOption2(getOptionStrings(optionString2));\n display.setDialogWindowOption3(getOptionStrings(optionString3));\n display.setDialogWindowUserInput(getInputStrings(inputString1), getInputStrings(inputString2));\n\n showDisplay();\n }", "private void displayWelcome(){\n clrscr();\n System.out.println(\"\\nWelcome to the Tickets Viewer!\\n\");\n System.out.println(\"We Recommend you Maximize this window for the best User Experience!\\n\");\n System.out.println(\"Please press \\\"Enter\\\" to continue\");\n }", "public void updateScreen() {\r\n\t\tsuper.updateScreen();\r\n\r\n\t\tif (!this.mc.thePlayer.isEntityAlive() || this.mc.thePlayer.isDead) {\r\n\t\t\tthis.mc.thePlayer.closeScreen();\r\n\t\t}\r\n\t}", "static public void display(){\n\n elapsedTime = TimerManager.getTime() - startTime;\n\n if (!isDone){\n\n //Animate\n if (TimerManager.getTime()-animTimer > animSpeed){\n animTimer = TimerManager.getTime();\n frame++;\n }\n if (frame > 27){\n frame = 27;\n }\n \n switch (state){\n case 1:\n //Fade in\n alpha = 300 - (int)(elapsedTime/3);\n if (alpha <= 0){\n alpha = 0;\n state = 2;\n startTime = TimerManager.getTime();\n }\n break;\n case 2:\n //Wait a bit\n if (elapsedTime > 2000){\n state = 3;\n startTime = TimerManager.getTime();\n }\n break;\n case 3:\n //Fade out\n alpha = (int)(elapsedTime/4);\n if (alpha >= 255){\n alpha = 255;\n state = 4;\n startTime = TimerManager.getTime();\n isDone = true;\n }\n break;\n }\n \n //Display our sprites\n\n Shapes.begin(Renderer.cameraUI);\n Shapes.setColor(255,255,255,255);\n Shapes.drawBox(0,0,(float)Display.getWidth(),(float)Display.getHeight());\n Shapes.end();\n\n Renderer.startUI();\n\n Renderer.setColor(Color.BLACK);\n Text.draw(0,0,\"State: \"+state);\n Renderer.setColor(Color.WHITE);\n\n Renderer.draw(splashTextures[frame % 28].getRegion(),(float) Display.getWidth()/2 - 128, (float)Display.getHeight()/2-128,256,256);\n\n Renderer.endUI();\n\n Shapes.begin(Renderer.cameraUI);\n Shapes.setColor(0,0,0,Math.min(255,alpha));\n Shapes.drawBox(0,0,(float)Display.getWidth(),(float)Display.getHeight());\n Shapes.end();\n\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tlevel.screen.game.switchScreen(ShooterGame.VICTORY);\n\t\t\t}", "public void run() {\n initialize();\n float currentTime = System.nanoTime();\n float previousTime = currentTime;\n float dt = 0.0f;\n while (!exit) {\n currentTime = System.nanoTime();\n dt = Math.max((currentTime - previousTime) / 1000000.0f, 20.0f);\n input(win.getInputHandler(), dt);\n update(dt);\n render(dt);\n waitFPS();\n previousTime = currentTime;\n postOperation();\n }\n dispose();\n }", "public void clearScreen();", "public void displayPrompt()\n\t{\n\t\tif (ch.usingJog.length() > 0)\n\t\t\treturn;\n\t\t\t\n\t\tif (showPrompt)\n\t\t{\n\t\t\t// Show the pageMode prompt if necessary.\n\t\t\tif (pageMode)\n\t\t\t{\n\t\t\t\tpageMode = false;\n\t\t\t\tsendln(\"\");\n\t\t\t\tsendln(\"{Y[== {CPAGE MODE: {wPush enter to continue. See {W'{chelp pagemode{W' {wfor details. {Y==]{x\");\n\t\t\t\tshowPrompt = false;\n\t\t\t\tpageMode = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// Show the editor prompt if necessary.\n\t\t\tif (cs == ConnState.EDITING)\n\t\t\t{\n\t\t\t\tsend(\"{G > {x\");\n\t\t\t\tshowPrompt = false;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsend(\"{x\");\n\t\t\tif (!prefs.get(\"compact\"))\n\t\t\t\tsendln(\"\");\n\t\t\tif (tempPrompt.length() > 0)\n\t\t\t\tsendln(tempPrompt);\n\t\t\telse\n\t\t\t{\n\t\t\t\tString pr = prompt;\n\t\t\t\tif (ch.fighting != null)\n\t\t\t\t\tpr = bprompt;\n\t\t\t\tif (!prefs.get(\"prompt\"))\n\t\t\t\t\tpr = \"\";\n\t\t\t\t\n\t\t\t\tString exitLine = \"\";\n\t\t\t\tfor (Exit e : ch.currentRoom.exits)\n\t\t\t\t\tif (e.flags.get(\"hidden\") && !(e.flags.get(\"door\") && !e.flags.get(\"closed\")))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (e.flags.get(\"door\") && e.flags.get(\"closed\"))\n\t\t\t\t\t\texitLine = exitLine+e.direction.substring(0, 1).toLowerCase();\n\t\t\t\t\telse\n\t\t\t\t\t\texitLine = exitLine+e.direction.substring(0, 1).toUpperCase();\n\t\t\t\t\n\t\t\t\tString lightString = \"\";\n\t\t\t\tint hour = Fmt.getHour();\n\t\t\t\tint season = Fmt.getSeason();\n\t\t\t\tint sunrise = Fmt.getSunrise(season);\n\t\t\t\tint sunset = Fmt.getSunset(season);\n\t\t\t\tif (hour < sunrise || hour > sunset)\n\t\t\t\t\tlightString = \"{D(){x\";\n\t\t\t\telse if (hour >= sunrise && hour < sunrise+2)\n\t\t\t\t\tlightString = \"{D({Y){x\";\n\t\t\t\telse if (hour <= sunset && hour > sunset-2)\n\t\t\t\t\tlightString = \"{Y({D){x\";\n\t\t\t\telse\n\t\t\t\t\tlightString = \"{Y(){x\";\n\n\t\t\t\tpr = pr.replace(\"%%\", \"SPEC_PERCENT\");\n\n\t\t\t\tpr = pr.replace(\"%h\", \"\"+ch.hp);\n\t\t\t\tpr = pr.replace(\"%H\", \"\"+ch.maxHp());\n\t\t\t\tpr = pr.replace(\"%p\", \"\"+((ch.hp*100)/ch.maxHp()));\n\t\t\t\tpr = pr.replace(\"%m\", \"\"+ch.mana);\n\t\t\t\tpr = pr.replace(\"%M\", \"\"+ch.maxMana());\n\t\t\t\tpr = pr.replace(\"%n\", \"\"+((ch.mana*100)/ch.maxMana()));\n\t\t\t\tpr = pr.replace(\"%s\", \"\"+ch.energy);\n\t\t\t\tpr = pr.replace(\"%S\", \"\"+ch.maxEnergy());\n\t\t\t\tpr = pr.replace(\"%i\", \"\"+((ch.energy*100)/ch.maxEnergy()));\n\t\t\t\t\n\t\t\t\tpr = pr.replace(\"%x\", \"\"+ch.tnl);\n\t\t\t\tpr = pr.replace(\"%g\", \"\"+ch.gold);\n\t\t\t\tpr = pr.replace(\"%G\", \"\"+ch.bank);\n\t\t\t\tpr = pr.replace(\"%c\", \"\"+ch.combatQueue.size()/2);\n\n\t\t\t\tpr = pr.replace(\"%a\", ch.currentArea().name);\n\t\t\t\tpr = pr.replace(\"%r\", ch.currentRoom.name);\n\t\t\t\tpr = pr.replace(\"%e\", \"\"+exitLine);\n\t\t\t\tpr = pr.replace(\"%t\", \"\"+savedTells.size());\n\t\t\t\tpr = pr.replace(\"%T\", \"\"+timeFrmt.format(System.currentTimeMillis()));\n\t\t\t\tpr = pr.replace(\"%d\", \"\"+dateFrmt.format(System.currentTimeMillis()));\n\t\t\t\tpr = pr.replace(\"%D\", \"\"+longDateFrmt.format(System.currentTimeMillis()));\n\t\t\t\tpr = pr.replace(\"%l\", lightString);\n\t\t\t\t\n\t\t\t\tpr = pr.replace(\"%A\", \"\"+ch.currentArea().id);\n\t\t\t\tpr = pr.replace(\"%R\", \"\"+ch.currentRoom.id);\n\t\t\t\tpr = pr.replace(\"%o\", olcMode);\n\n\t\t\t\tif (ch.fighting != null)\n\t\t\t\t{\n\t\t\t\t\tpr = pr.replace(\"%O\", Fmt.seeName(ch, ch.fighting));\n\t\t\t\t\tpr = pr.replace(\"%P\", \"\"+((ch.fighting.hp*100)/ch.fighting.maxHp()));\n\t\t\t\t\tpr = pr.replace(\"%N\", \"\"+((ch.fighting.mana*100)/ch.fighting.maxMana()));\n\t\t\t\t\tpr = pr.replace(\"%I\", \"\"+((ch.fighting.energy*100)/ch.fighting.maxEnergy()));\n\t\t\t\t}\n\n\t\t\t\tpr = pr.replace(\"SPEC_PERCENT\", \"%\");\n\t\t\t\t\n\t\t\t\tsend(pr+\"{x\");\n\t\t\t}\n\t\t\tshowPrompt = false;\n\t\t}\n\t}", "protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}", "public void update()\n {\n int screenHeight;\n int screenWidth;\n \n // Only update if the video memory has been updated\n// if (!videocard.vgaMemReqUpdate)\n// return;\n\n // Determine if in graphic/text mode; this is set in graphics register 0x06\n if (videocard.graphicsController.alphaNumDisable != 0)\n {}\n\n // alphaNumDisable == 0; Text mode\n else\n {\n // Cursor attributes\n int cursorXPos; // Cursor column position\n int cursorYPos; // Cursor row position\n int cursorWidth = 8; // 8 or 9 pixel cursor width\n int fullCursorAddress = 162; // Cursor location (byte number in vga memory) \n\n // Screen attributes \n int maxScanLine = 15; // Character height - 1\n int numColumns = 80; // (Char. clocks - 1) + 1 , i.e. number of columns\n int numRows = 25; // Number of text rows in screen \n screenWidth = cursorWidth * numColumns; // Screen width in pixels\n videocard.verticalDisplayEnd = 399;\n screenHeight = videocard.verticalDisplayEnd + 1; // Screen height in pixels\n \n int fullStartAddress = 0; // Upper left character of screen\n\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" update() in progress; text mode\");\n \n // Collect text features to be passed to screen update\n textModeAttribs.fullStartAddress = (short) 0; \n textModeAttribs.cursorStartLine = (byte) 14;\n textModeAttribs.cursorEndLine = (byte) 15;\n textModeAttribs.lineOffset = (short) 160;\n textModeAttribs.lineCompare = (short) 1023;\n textModeAttribs.horizPanning = (byte) 0;\n textModeAttribs.vertPanning = (byte) 0;\n textModeAttribs.lineGraphics = 1;\n textModeAttribs.splitHorizPanning = 0;\n \n // Check if the GUI window needs to be resized\n if ((screenWidth != oldScreenWidth) || (screenHeight != oldScreenHeight) || (maxScanLine != oldMaxScanLine))\n {\n screen.updateScreenSize(screenWidth, screenHeight, cursorWidth, maxScanLine + 1);\n oldScreenWidth = screenWidth;\n oldScreenHeight = screenHeight;\n oldMaxScanLine = maxScanLine;\n }\n\n // Determine cursor position in terms of rows and columns\n if (fullCursorAddress < fullStartAddress) // Cursor is not on screen, so set unreachable values\n {\n cursorXPos = 0xFFFF;\n cursorYPos = 0xFFFF;\n }\n else // Cursor is on screen, calculate position\n {\n cursorXPos = ((fullCursorAddress - fullStartAddress) / 2) % (screenWidth / cursorWidth);\n cursorYPos = ((fullCursorAddress - fullStartAddress) / 2) / (screenWidth / cursorWidth);\n }\n \n // Call screen update for text mode\n screen.updateText(0, fullStartAddress, cursorXPos, cursorYPos, textModeAttribs.getAttributes(), numRows);\n \n // Screen has been updated, copy new contents into 'snapshot'\n System.arraycopy(videocard.vgaMemory, fullStartAddress, videocard.textSnapshot, 0, 2 * numColumns * numRows);\n \n videocard.vgaMemReqUpdate = false;\n }\n }", "public void run() {\n \tdisposeColor(errorColor);\n \tdisposeColor(inputColor);\n \tdisposeColor(messageColor); \t\n \tdisposeColor(bkgColor); \t\n \tRGB errorRGB = PreferenceConverter.getColor(CUIPlugin.getDefault().getPreferenceStore(), BuildConsolePreferencePage.PREF_BUILDCONSOLE_ERROR_COLOR);\n \tRGB inputRGB = PreferenceConverter.getColor(CUIPlugin.getDefault().getPreferenceStore(), BuildConsolePreferencePage.PREF_BUILDCONSOLE_OUTPUT_COLOR);\n \tRGB messageRGB = PreferenceConverter.getColor(CUIPlugin.getDefault().getPreferenceStore(), BuildConsolePreferencePage.PREF_BUILDCONSOLE_INFO_COLOR);\n \tRGB bkgRGB = PreferenceConverter.getColor(CUIPlugin.getDefault().getPreferenceStore(), BuildConsolePreferencePage.PREF_BUILDCONSOLE_BACKGROUND_COLOR); \t\n \terrorColor = new Color(d, errorRGB);\n \tinputColor = new Color(d, inputRGB);\n \tmessageColor = new Color(d, messageRGB);\n \tbkgColor = new Color(d, bkgRGB);\n error.setColor(errorColor);\n input.setColor(inputColor);\n message.setColor(messageColor);\n console.setBackground(bkgColor);\n }", "private void loop() {\n\t\tFrameBuffer fb = new FrameBuffer();//TODO:\n\t\t\n\t\tif(active_console){\n\t\t\tconsole = new Console();\n\t\t\tThread c = new Thread(console);\n\t\t\tc.start();\n\t\t}\n\n\t\twhile ( !glfwWindowShouldClose(window) ) {\n\t\t\tglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // clear the framebuffer\n\t\t\t\n\t\t\tcam.update();\n\t\t\t\n\t\t\tfb.bind();//TODO:\n\t\t\tdraw();\n\t\t\tfb.rebind();//TODO:\n\t\t\t\n\t\t\tfb.render();//TODO:\n\t\t\t\n\t\t\tglfwSwapBuffers(window); // swap the color buffers\n\t\t\t\n\t\t\t// Poll for window events. The key callback above will only be\n\t\t\t// invoked during this call.\n\t\t\tglfwPollEvents();\n\t\t}\n\n\t\t//phisics.phisicsStop();\n\t\tif(active_console){\n\t\tconsole.consoleStop();\n\t\t}\n\t}" ]
[ "0.65978533", "0.65572727", "0.63311076", "0.6318858", "0.6299472", "0.62991935", "0.6287741", "0.617393", "0.61347115", "0.61059064", "0.6104465", "0.610359", "0.61000866", "0.6095644", "0.6089539", "0.60812956", "0.60754573", "0.60323524", "0.6032159", "0.6019452", "0.60150695", "0.5993684", "0.5976825", "0.5957117", "0.5939086", "0.5929944", "0.59163415", "0.58531433", "0.58394885", "0.5823362", "0.58159965", "0.58106416", "0.5809923", "0.5787519", "0.57678396", "0.57664305", "0.5760385", "0.57471734", "0.5747074", "0.5747049", "0.5746746", "0.5746344", "0.57378834", "0.5734629", "0.57267165", "0.5723168", "0.5715145", "0.57020915", "0.5698347", "0.5695513", "0.5691929", "0.56767327", "0.5675376", "0.5665819", "0.5663082", "0.56521595", "0.5651412", "0.56470907", "0.56380415", "0.56324065", "0.56280273", "0.5617486", "0.5611302", "0.5599013", "0.558847", "0.55871826", "0.55809456", "0.5569767", "0.55677044", "0.5557567", "0.5553738", "0.55397934", "0.55249614", "0.5521775", "0.55200034", "0.5512858", "0.55120885", "0.551179", "0.5511008", "0.55100524", "0.55088896", "0.5508567", "0.55047715", "0.55023456", "0.5493427", "0.54796076", "0.5475478", "0.5470853", "0.5468287", "0.5464984", "0.54640317", "0.5463047", "0.54616374", "0.54588705", "0.54548097", "0.54541266", "0.5447778", "0.5446725", "0.54464555", "0.54454374", "0.54453284" ]
0.0
-1
Waits for any input that is used to return back (ESC [PC]/Back [Android] and Back label)
private void checkForBack() { if (Gdx.input.isKeyJustPressed(Input.Keys.BACK) || Gdx.input.isKeyJustPressed(Input.Keys.ESCAPE) || BackButton.isPressed()) { Gdx.input.vibrate(50); dispose(); game.setScreen(new MainMenuView(game)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void myWait()\n {\n try \n {\n System.in.read();\n \n System.in.read();\n //pause\n }\n catch(Exception e)\n {\n }\n }", "public void waitForInputSignal(){\r\n\t\ttry {\r\n\t\t\tSystem.in.read();\r\n\t\t\tSystem.in.read();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void suspendInput();", "public static void WaitForKey(){\n // returns only if a correct value is given.\n do {\n System.out.println(\"Press any key to continue\");\n try { // read the integer, parse it and break.\n Integer.parseInt(in.readLine());\n break;\n }catch (Exception e) {\n //System.out.println(\"Your input is invalid!\");\n break;\n }//end try\n }while (true);\n }", "public static void waitForInput() {\n BufferedReader buffyTheVampireSlayer = new BufferedReader(new InputStreamReader(System.in));\n System.out.print(\"Press Enter To Continue...\");\n try {\n buffyTheVampireSlayer.readLine();\n } catch (IOException e) {\n System.out.println(e);\n System.out.println(\"an unexpected error occurred\");\n }\n }", "public static int WaitForAnyPress() {\r\n\t\treturn WaitForAnyPress2(0);\r\n\t}", "public void waitForKeyPress() {\n panel.bWaitingForKey = true;\n while (panel.bWaitingForKey) {\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n }\n }\n }", "public static void end(){\n try{\n System.out.println(\"\\nPress Enter key to continue: \");\n\t\t System.in.read();\n System.out.print(\"\\033[H\\033[2J\"); \n System.out.flush();\n }catch(Exception e){\n System.err.println(e.getMessage());\n }\n }", "private static void pause() {\n System.out.println(\"Press Any Key To Continue...\");\n new java.util.Scanner(System.in).nextLine();\n }", "private static char askIfGoBack() {\n Scanner input = new Scanner(System.in);\n\n\t System.out.print(\"Enter (b)ack to go back: \");\n\t char go = input.next().toLowerCase().charAt(0);\n\n\t return go;\n }", "public static char waitForAnyKey() {\n return (char) cvWaitKey();\n }", "static void pause()\n {\n // No non-blocking IO (raw input and non echoing inputs, please google these don't disturb me) support without diving into third party land, or hideously long code; be content with regular old interactive input\n System.out.println(\"\\nType \\\"cls\\\" or \\\"clear\\\" (or anything really) to clear the screen ...\");\n input.next();\n }", "private static void WaitForEnter(Scanner scn ){\n scn.nextLine();\n System.out.println(\"\\n\\nPress Enter key to continue . . .\");\n scn.nextLine();\n }", "public static void inputFlush() {\n int dummy;\n int bAvail;\n\n try {\n while ((System.in.available()) != 0)\n dummy = System.in.read();\n } catch (java.io.IOException e) {\n System.out.println(\"Input error\");\n }\n }", "public void endInput() {\n this.currentIndex = 1;\n this.currentUnit = null;\n this.currentChName = null;\n this.currentState = states.EMPTY;\n JTVProg.mainWindow.tvFillBut.setEnabled(false);\n JTVProg.mainWindow.tvProcBut.setEnabled(true);\n }", "public static void pause() {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"press a key\");\r\n\t\t\tSystem.in.read();\r\n\t\t\tSystem.out.println(\"key pressed!\");\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t}", "public static void pause(){\n System.out.print(\"Enter anything to continue: \"); // prompts the user to enter anything\n input.nextLine(); // receiving the user's input, but not storing it\n clear(); // clears the screen\n }", "public static void main(String[] args) throws InterruptedException {\n while (Button.waitForAnyPress() == Button.ID_ESCAPE)\n System.exit(0);\n }", "public static void waitForKey(char key) {\n while (cvWaitKey() != key) ;\n }", "private final static void pulsaEnter() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\nPulsa Enter para continuar...\");\n\t\tkb.nextLine();\n\t}", "synchronized String keyboardReadLine()\n\t{\n\t\t// enable a request then block on the queue\n\t\tm_keyboardReadRequest = true;\n\t\ttry { wait(); } catch(InterruptedException ie) {}\n\n\t\t// pull from the front of the queue\n\t\treturn m_keyboardInput.remove(0);\n\t}", "private char readAction() throws IOException {\n InputStreamReader isr = new InputStreamReader(System.in);\n char result = 'q';\n result = (char)isr.read();\n return result;\n }", "public boolean takeControl() {\r\n\t\tif(Button.ESCAPE.isDown())\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "private void handleTextInputCallback(TextInputCallback tic)\n throws IOException {\n System.out.print(tic.getPrompt());\n System.out.flush();\n tic.setText((new BufferedReader\n (new InputStreamReader(System.in))).readLine());\n }", "public static void toContinue() {\n System.out.println(EOF + \"Presiona ENTER para continuar...\");\n new Scanner(System.in).nextLine();\n }", "private void WaitTalk() {\n // to restart as touched screen.\n if (this.mRestartF) this.RestartTalk();\n }", "public static void pressEnterToContinue() {\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Press Enter to continue...\");\n\t\tinput.nextLine();\n\t}", "public static int WaitForAnyPress2(int timeout) {\r\n\t\treturn Button.keys.waitForAnyPress(timeout);\r\n\t}", "private static void askForContinue() {\n\t\t\t\n\t\t}", "public static int WaitForAnyEvent() {\r\n\t\treturn Button.keys.waitForAnyEvent();\r\n\t}", "private static char availabilityOrGoBack() {\n Scanner input = new Scanner(System.in);\n\n System.out.print(\"Enter (a)vailability, or \"\n\t + \"(b)ack to go back: \");\n char option = input.next().toLowerCase().charAt(0);\n\n return option;\n }", "@Override\n protected void handleImput() {\n buttonBack.getButton().addListener(new ChangeListener() {\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n if(!buttonLocker) {\n gsm.pop();\n gsm.push(new MenuState(gsm));\n buttonLocker = true;\n }\n }\n });\n if (Gdx.input.isKeyJustPressed(Input.Keys.BACK)){\n gsm.pop();\n gsm.push(new MenuState(gsm));\n }\n }", "public boolean awaitInput (long minDuration) {\n\t\tif (minDuration < 1) {\n\t\t\tminDuration = 1;\n\t\t}\n\t\t// waiting for an input while paused or dead would force a deadlock -> return false\n\t\tif (this.threadIsPaused || this.threadIsDead) {\n\t\t\treturn false;\n\t\t}\n\t\t/* wait until the following happened: \n\t\t * 1) if the button was pressed already ignore that and wait it to be released\n\t\t * 2) wait for the button to be pressed (again)\n\t\t * 3) wait for the button to be released (again)\n\t\t * \n\t\t * after those 3 steps happened return to the caller\n\t\t */\n\t\twhile (buttonIsPressed) {\n\t\t\ttry {\n\t\t\t\tThread.currentThread().sleep (20);\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t}\n\t\t\n\t\tlong startMS = 0, endMS = 0, diffMS = 0;\n\t\t\n\t\twhile (diffMS < minDuration) {\n\t\t\n\t\t\tstartMS = System.currentTimeMillis();\n\t\t\t\n\t\t\twhile (!buttonIsPressed) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.currentThread().sleep (20);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\twhile (buttonIsPressed) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.currentThread().sleep (20);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tendMS = System.currentTimeMillis();\n\t\t\t\n\t\t\tdiffMS = endMS - startMS;\n\t\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public void endPress();", "private static void pause(String message) {\n System.out.println(message);\n new java.util.Scanner(System.in).nextLine();\n }", "private void pollInput() {\n\t\t// check to see if the w key is down\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_W)) {\n\t\t\twKeyDown = true;\n\t\t} else\n\t\t\twKeyDown = false;\n\t\t// check to see if the a key is down\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_A)) {\n\t\t\taKeyDown = true;\n\t\t} else\n\t\t\taKeyDown = false;\n\t\t// check to see if the s key is down\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_S)) {\n\t\t\tsKeyDown = true;\n\t\t} else\n\t\t\tsKeyDown = false;\n\t\t// check to see if the d key is down\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_D)) {\n\t\t\tdKeyDown = true;\n\t\t} else\n\t\t\tdKeyDown = false;\n\t\t// check to see if the left mouse button is down\n\t\tif (Mouse.isButtonDown(0)) {\n\t\t\tmouseDown = true;\n\t\t} else\n\t\t\tmouseDown = false;\n\t\t// check to see if the F button is pressed and shows the shop screen if so\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_F)) {\n\t\t\tshowShopScreen();\n\t\t}\n\t\t// check to see if the esc button is pressed; if so, go to title screen\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) {\n\t\t\tshowTitleScreen();\n\t\t}\n\t}", "public static void reverseInput() {\n\t\tString isExit = \"\";\n\t\twhile (!isExit.equals(\"N\")) {\n\t\t\tStringBuffer bf = readInput();\n\t\t\tbf.reverse();\n\t\t\tSystem.out.println(\"Chuỗi ngược: \" + bf);\n\t\t\tSystem.out.println(\"Bạn có muốn nhập tiếp không(Y/N):\");\n\t\t\tisExit = scan.next().toString();\n\t\t}\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tif (machine.atStart())\n\t\t\t\t\tmachine.setInput(inputText.getText());\n\t\t\t\t\n\t\t\t\ttry { \n\t\t\t\t\tmachine.step(); // take a step\n\t\t\t\t\t\n\t\t\t\t\t// if there is input\n\t\t\t\t\tif (inputText.getText().length() > 0) {\n\t\t\t\t\t\tinputText.setEditable(false); // disable input edit\n\t\t\t\t\t\tbtnRun.setEnabled(false); // disable run\n\t\t\t\t\t\tbtnStepBack.setEnabled(true); // enable step back\n\n\t\t\t\t\t\t// report character just read\n\t\t\t\t\t\tlblCurrentInput.setText(\"Just read: \" + \n\t\t\t\t\t\t machine.getCurrentInput());\n\t\t\t\t\t}\n\n\t\t\t\t\t// if end of input, disable step forward\n\t\t\t\t\tif (! (machine.getStatus().equals(Automaton.READY) ||\n\t\t\t\t\t\t\tmachine.getStatus().equals(Automaton.RUN)))\n\t\t\t\t\t\tbtnStepForward.setEnabled(false);\n\t\t\t\t\t\n\t\t\t\t} catch (NoStartStateDefined e) {\n\t\t\t\t\treportException(e);\n\t\t\t\t} catch (NoTransitionDefined e) {\n\t\t\t\t\treportException(e);\n\t\t\t\t}\n\t\t\t\tupdate(); // update states, labels, text\n\t\t\t}", "public synchronized void waitIfPauseRequested() throws AbortException {\n\t\tif( Messenger.pauseRequested() ) {\t\t\n\t\t\ttry {\n\t\t\t\tMessenger.printMsg(Messenger.TRACE, \"Pended on user request\");\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\tthis.wait();\t\n\t\t\t\t\tSystem.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@\");\n\t\t\t\t\tSaadaProcess.this.abortOnRequested()\t;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tAbortException.throwNewException(SaadaException.USER_ABORT, e);\n\t\t\t}\n\t\t}\n\t}", "private void await(byte expected, int maxAttempts) throws IOException {\n\t\tlogger.debug(\"Waiting for byte 0x{}\", LogUtil.toHex(expected & 0xff));\n\t\tint attempt = 0;\n\t\twhile (attempt++ < maxAttempts) {\n\t\t\tbyte actual = in.readByte();\n\t\t\tif (actual == expected) {\n\t\t\t\tlogger.debug(\"Byte received 0x{}\", LogUtil.toHex(expected & 0xff));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprocessInput(actual);\n\t\t}\n\t\tthrow new IOException(\"Failed to receive byte 0x\" + Integer.toHexString(expected & 0xff) +\n\t\t\t\" in \" + maxAttempts + \" tries\");\n\t}", "public void back(){\n\t\tswitch(state){\n\t\tcase LOGINID:\n\t\t\tbreak; //do nothing, already at top menu\n\t\tcase LOGINPIN:\n\t\t\tloginMenu();\n\t\t\tbreak;\n\t\tcase TRANSACTION:\n\t\t\tbreak; //do nothing, user must enter the choice to log out\n\t\tcase DEPOSIT:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase DEPOSITNOTIFICATION:\n\t\t\tbreak; //do nothing, user must press ok\n\t\tcase WITHDRAW:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase BALANCE:\n\t\t\tbreak; //do nothing, user must press ok\n\t\tcase WITHDRAWALNOTIFICATION:\n\t\t\tbreak; //do onthing, user must press ok\n\t\t}\n\t\t\n\t\tcurrentInput = \"\";\n\t}", "public void getGamerInput() {\n\t\ttry {\n\t\t\tsCurrentCharInput = String.format(\"%s\", (consoleInput.readLine())).toUpperCase(Locale.getDefault());\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\tconsoleLog.println(\" \");\n\t\t// System.out.println(\" Quit readline \");\n\t\t/* ************************************* */\n\t\t// if (sCurrentCharInput.length() == 0)\n\t\t// continue;\n\n\t\t// if (sCurrentCharInput.contains(sAskedWord))\n\t\t// continue;\n\n\t}", "private void pressAnyKey() {\n Scanner myScanner = new Scanner(System.in);\n System.out.println(\"Press Enter key to continue...\");\n myScanner.nextLine();\n }", "public static void checkAndClickBackButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"backquest\", \"\\\"Back\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"backquest\", \"\\\"Back\\\" button\");\r\n\t}", "private void pressBack() {\n mActivityTestRule.waitForActivityNativeInitializationComplete();\n TestThreadUtils.runOnUiThreadBlocking(\n () -> mActivityTestRule.getActivity().onBackPressed());\n }", "private void pressUpFromCLI() {\n\t\tupLastPressed = true;\n\t\tif (commandIterator.hasNext()) {\n\t\t\ttextInput.setText(commandIterator.next());\n\t\t}\n\t\tif (downLastPressed) {\n\t\t\ttextInput.setText(commandIterator.next());\n\t\t\tdownLastPressed = false;\n\t\t}\n\t}", "public void read() {\n try {\n pw = new PrintWriter(System.out, true);\n br = new BufferedReader(new InputStreamReader(System.in));\n input = br.readLine();\n while (input != null) {\n CM.processCommand(input, pw, true);\n input = br.readLine();\n }\n } catch (IOException ioe) {\n pw.println(\"ERROR: Problem with reading user input.\");\n } finally {\n try {\n br.close();\n } catch (IOException ioe) {\n pw.println(\"ERROR: Buffer DNE\");\n }\n }\n }", "@Override\n\tpublic void onBackKeyPressed() {\n\t\treturn;\n\t}", "@Override\n\tpublic void inputEnded() {\n\t\t\n\t}", "public static void enterToContinue()\r\n\t{\r\n\t\tScanner keyboard = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Press enter to continue the game : \");\r\n\t\tkeyboard.nextLine();\r\n\t}", "public static void keybordClose(ActorSystem s) throws InterruptedException {\n\t\tCompletableFuture<Terminated> cf = s.getWhenTerminated().toCompletableFuture();\n\t\tSystem.out.println(\">>> Press ENTER to exit \"+s.name()+\" <<<\");\n\t\t\n\t\ttry {\n\t\t\twhile(!cf.isDone()) {\n\t\t\t\tif(System.in.available()>=1) {s.terminate();return;}\n\t\t\t\tThread.sleep(200);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ioe) {s.terminate();}\n\t}", "private static char askIfQuit() \n {\n Scanner input = new Scanner(System.in);\n\n\t System.out.print(\"Enter (q)uit to quit: \");\n\t char go = input.next().toLowerCase().charAt(0);\n\n\t return go;\n }", "@Override\n\tpublic void inputEnded() {\n\n\t}", "public void input(){\n\t\tboolean[] inputKeyArray = inputHandler.processKeys();\n\t\tint[] inputMouseArray = inputHandler.processMouse();\n\t\tcurrentLevel.userInput(inputKeyArray, inputMouseArray);\n\t}", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = mug.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getMugDialog(response, mugImage)\n );\n userInput.clear();\n if (input.toUpperCase().equals(\"BYE\")) {\n PauseTransition delay = new PauseTransition(Duration.seconds(1));\n delay.setOnFinished(event -> {\n Platform.exit();\n System.exit(0);\n });\n delay.play();\n }\n }", "@DISPID(-2147412107)\n @PropGet\n java.lang.Object onkeydown();", "@Override\n\tpublic void onBackKeyPressed() {\n\treturn;\t\n\t}", "@Override\r\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\t\tswitch (keyCode) {\r\n\t\tcase KeyEvent.KEYCODE_BACK:\r\n\t\t\tif (flag == true) {\r\n\t\t\t\t//Log.i(\"msg\", \"assssssssssd\");\r\n\t\t\t\tTabHo.this.finish();\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(TabHo.this, \"再按一下返回键退出程序\", Toast.LENGTH_SHORT)\r\n\t\t\t\t\t\t.show();\r\n\t\t\t\tflag = true;\r\n\t\t\t\tnew Thread() {\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tThread.sleep(1500);\r\n\t\t\t\t\t\t\tflag = false;\r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t};\r\n\t\t\t\t}.start();\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\treturn super.onKeyDown(keyCode, event);\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "private void doBack() {\n\t\tif (!haveTaskRunning) {\r\n\t\t\tfinish();\r\n\t\t} else if (mStep == READ_BAGLOACK) { // 读袋锁阶段,初始化信息,启用码\r\n\t\t\tmVReadBagLock.setDoing(false);\r\n\t\t\tmBagInItTask.stop();\r\n\t\t\tmBtnConfirm.setEnabled(true);\r\n\t\t\thaveTaskRunning = false;\r\n\t\t} else if (mStep == READ_UHF) { // 读TID\r\n\t\t\tmVReadUhfLock.setDoing(false);\r\n\t\t\tmReadInitEPCTask.stop();\r\n\t\t\tmBtnConfirm.setEnabled(true);\r\n\t\t\tmStep = READ_BAGLOACK;\r\n\t\t\thaveTaskRunning = false;\r\n\t\t} else if (mStep == NET_CHECK ) { \r\n\t\t\tmBtnConfirm.setEnabled(true);\r\n\t\t\tmVNetCheck.setDoing(false);\r\n\t\t\tmBtnConfirm.setEnabled(true);\r\n\t\t\thaveTaskRunning = false;\r\n\t\t\t//更新袋锁,索引,条码,封签信息,标志位\r\n\t\t} else if (mStep == UPDATE_BAGLOCK) { // \r\n\t\t\tmVUpdateBagLock.setDoing(false);\r\n\t\t\tmWriteRfidTask.stop();\r\n\t\t\thaveTaskRunning = false;\r\n\t\t// 将条码等数据发送到服务器验证,是否已经封签过\r\n\t\t} \r\n\t}", "@Override\n public void onBackPressed() {\n if (exit) {\n System.exit(0);\n } else {\n Toast.makeText(this, \"Press Back again to Exit.\",\n Toast.LENGTH_SHORT).show();\n exit = true;\n new Handler().postDelayed(new Runnable() { //3 sn içinde iki defa basıldı mı kontrolu için\n @Override\n public void run() {\n exit = false;\n }\n }, 3 * 1000);\n }\n }", "public static void checkAndClickBackButtonTriviaMode() {\r\n\t\tcheckNoSuchElementExceptionByID(\"btnback\", \"\\\"Back\\\" button in trivia mode\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"btnback\", \"\\\"Back\\\" button in trivia mode\");\r\n\t}", "public static String readString() {\n\t\twhile (true) {\n\t\t\tdraw();\n\t\t\tchar pressed = waitForKey();\n\t\t\tif (pressed == '\\n') {\n\t\t\t\tString result = textBeingEntered;\n\t\t\t\ttextBeingEntered = \"\";\n\t\t\t\treturn result;\n\t\t\t} else if ((pressed == '\\b') && (textBeingEntered.length() != 0) ) {\n\t\t\t\ttextBeingEntered = textBeingEntered.substring(0,\n\t\t\t\t\t\ttextBeingEntered.length() - 1);\n\t\t\t} else {\n\t\t\t\ttextBeingEntered += pressed;\n\t\t\t}\n\t\t}\n\t}", "void waitToRead();", "private static void driver() {\n Scanner scnr = new Scanner(System.in);\n String promptCommandLine = \"\\nENTER COMMAND: \";\n\n System.out.print(MENU);\n System.out.print(promptCommandLine);\n String line = scnr.nextLine().trim();\n char c = line.charAt(0);\n\n while (Character.toUpperCase(c) != 'Q') {\n processUserCommandLine(line);\n System.out.println(promptCommandLine);\n line = scnr.nextLine().trim();\n c = line.charAt(0);\n }\n scnr.close();\n }", "@Override\r\n\tpublic boolean onKeyDown(int i, KeyEvent event) {\n\t\tif (i == KeyEvent.KEYCODE_BACK) {\r\n\t\t\tBundle bundle = new Bundle();\r\n\r\n\t\t\tbundle.putString(\"returnStatus\", \"CANCEL\");\r\n\t\t\tIntent mIntent = new Intent();\r\n\t\t\tmIntent.putExtras(bundle);\r\n\t\t\tsetResult(RESULT_OK, mIntent);\r\n\t\t\tfinish();\r\n\t\t}\r\n\r\n\t\treturn false; // propagate this keyevent\r\n\t}", "public void readInput()\n\t{\n\t\t//wrap input stream read input from user\n\t\tBufferedReader in = new BufferedReader( new InputStreamReader( System.in ));\n\t\t\n\t\t//prompt user for input\n\t\tSystem.out.println( \"Please enter a letter or type Quit to end.\");\n\t\t\n\t\ttry{\n\t\t\tString userGuess = in.readLine();\n\t\t\t\n\t\t\t//loop until the user types \"Quit\"\n\t\t\tdo{\n\t\t\t\t//invoke guessletter function with String input\n\t\t\t\thangmanGame.guessLetter(userGuess);\n\t\t\t\t//update currentGuessText\n\t\t\t\tcurrentGuessText = hangmanGame.getCurrentGuess();\n\t\t\t\t//trace out current guess\n\t\t\t\tSystem.out.println(\"Your current guess is: \" + currentGuessText);\n\t\t\t\t//update remainingStrikes\n\t\t\t\thangmanGame.numberOfRemainingStrikes();\n\t\t\t\t//trace out remaining number of strikes\n\t\t\t\tSystem.out.println(\"You currently have \" + hangmanGame);\n\t\t\t\t//invoke revealAnswer function to check over gameOver, gameWon, and getAnswer\n\t\t\t\trevealAnswer();\n\t\t\t}while ( userGuess != \"Quit\" );\n\t\t}\n\t\t//catch IOException ioe\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\t//tell exception to print its error log\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}", "private void readIt() throws IOException, InterruptedException\n {\n //resets the buffer and reads from it\n outVideo.println(\"==>\");\n outVideo.flush();\n if(!initializationMode)\n while (!inKeyboard.ready())\n {\n Thread.sleep(50);\n }\n msgIN = inKeyboard.readLine();\n }", "protected void waitUntilCommandFinished() {\n }", "public void runUntilExit() {\n boolean isExit = false;\n while (!isExit) {\n try {\n ui.showLine();\n String fullCommand = ui.readCommand();\n Command c = Parser.parseCommand(fullCommand);\n agent.handleCommand(c, ui, storage);\n isExit = c.isExit();\n } catch (DukeException e) {\n ui.showError(e.getMessage());\n } finally {\n ui.showLine();\n }\n }\n }", "protected boolean handleInput(\n @NonNull QuestionAnswerType<?> answerType,\n @NonNull QuestionListEntry<?> entry,\n @NonNull String input\n ) throws InterruptedException {\n if (input.equalsIgnoreCase(\"cancel\") && ConsoleSetupAnimation.this.cancellable) {\n this.cancelled = true;\n this.entries.clear();\n return true;\n }\n\n // try to parse the input from the type\n try {\n var result = answerType.tryParse(input.trim());\n // store the result and post it to the handlers\n answerType.postResult(result);\n this.results.put(entry.key(), result);\n // call the event\n this.eventManager.callEvent(new SetupResponseEvent(this, entry, result));\n // re-draw the question line, add the given response to it\n this.console.writeRaw(() -> this.eraseLines(Ansi.ansi().reset(), this.currentCursor + 1)\n .a(\"&r\") // reset of the colors\n .a(entry.question().get()) // the question\n .a(\" &r=> &a\") // separator between the question and the answer\n .a(input) // the given result\n .a(System.lineSeparator()) // jump to next line\n .toString());\n // successful handle\n return true;\n } catch (Exception exception) {\n // invalid input\n this.eraseLastLine(); // remove prompt\n // print the invalid input message to the console\n var messageLines = answerType.invalidInputMessage(input).split(System.lineSeparator());\n for (var line : messageLines) {\n this.console.forceWriteLine(line);\n }\n // wait a short period of time for the user to read\n Thread.sleep(1500);\n // erase the invalid lines again\n this.console().writeRaw(() -> this.eraseLines(Ansi.ansi().reset(), messageLines.length).toString());\n // reset the console history\n this.console().commandHistory(answerType.possibleAnswers());\n // continue with the current question\n return false;\n }\n }", "private static boolean getReplayResponse() {\n Scanner scan = new Scanner(System.in);\n // Keep looping until a non-zero-length string is entered\n while (true) {\n System.out.print(\"Play again (Yes or No)? \");\n String response = scan.nextLine().trim();\n if (response.length() > 0) {\n return response.toUpperCase().charAt(0) == 'Y';\n }\n }\n }", "@And(\"^I press \\\"([^\\\"]*)\\\"$\")\n public void iPress(String arg0) throws Throwable {\n home.clickGetAQuote();\n //throw new PendingException();\n }", "@Override\n public int read() throws IOException {\n int c;\n\n do {\n c = System.in.read();\n } while(c != -1 && (c == '\\n' || c == '\\r'));\n\n return c;\n }", "static void goback() \r\n\t {\n\t\t\t System.out.println(\"Do you want to conytinue Press - yes and for exit press - No\" );\r\n\t\t\t Scanner sc = new Scanner(System.in);\r\n\t\t\t n = sc.next();\r\n \t\t if(n.equalsIgnoreCase(\"yes\"))\r\n\t\t\t {\r\n\t\t\t\t MainMenu();\r\n\t\t\t }\r\n\t\t\t if(n.equalsIgnoreCase(\"No\"))\r\n\t\t\t {\r\n\t\t\t\t exit();\r\n\t\t\t }\r\n\t\t\t else \r\n\t\t\t {\r\n\t\t\t\t System.out.println(\"please enter a valid input 0 or 1 ! \");\r\n\t\t\t\t goback();\r\n\t\t\t }\r\n\t\t\r\n\t }", "private void mainLoop()\n {\n try\n {\n while (true)\n {\n System.out.print( \"\\r\\nJicos> \" );\n System.out.flush();\n\n byte[] input = new byte[1024];\n int read = -1;\n if (-1 == (read = System.in.read( input )))\n {\n break;\n }\n\n try\n {\n performCommand( new String( input, 0, read ) );\n }\n catch (Exception exception)\n {\n System.err.println( exception.getMessage() );\n }\n }\n }\n catch (Exception exception)\n {\n }\n }", "@Override\n\tpublic void run() {\n\t\twhile(!exit) {\n\t\t\t//Do something\n\t\t\tgetInput();\n\t\t}\n\t}", "@Override\n public void onBackPressed() {\n if (doubleBackToExitPressedOnce) {\n super.onBackPressed();\n updatePICstatus2();\n return;\n }\n this.doubleBackToExitPressedOnce = true;\n Toast.makeText(this, \"Please click Back again to exit\", Toast.LENGTH_SHORT).show();\n\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n doubleBackToExitPressedOnce = false;\n }\n }, 3000);\n }", "public void input_entered() {\n\t\t_last_column = 0;\n\t\t_last_line = 0;\n\t\t_last_printed = '\\n';\n\t}", "public String onInputMessage(String userInput) throws QuitException{\n if (!userInput.equals(\"\"))\n System.out.println(userInput);\n\n //Enter data using BufferReader \n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); \n \n // Reading data using readLine\n String input; \n try {\n input = reader.readLine();\n } catch (IOException e) {\n return null;\n }\n if (input.equals(\"sortir\"))\n throw new QuitException();\n\n // Printing the read line \n return input;\n }", "private void handleInput() {\n String result = \"\";\n while (!clientSocket.isClosed() && result != null) {\n try {\n result = inFromServer.readLine();\n if (result == null || result.equals(\"null\")) {\n RoboRally.scheduleSync(() -> game.setScreen(new ErrorScreen(game, \"You where disconnected from the host\")), 0);\n\n return;\n }\n ClientAction command = ClientAction.fromCommandString(result.substring(0, result.indexOf(\":\")));\n String data = result.substring(result.indexOf(\":\") + 1);\n switch (command) {\n case START_GAME:\n setupGame(data);\n break;\n case GIVE_CARDS:\n giveCards(data);\n break;\n case NAME:\n //clientName = data;\n // Only used to check connectivity\n break;\n case CONNECTED_PLAYERS:\n receiveConnectedPlayers(data);\n break;\n case THREAD_NAME:\n //Do nothing\n break;\n case START_ROUND:\n GameScreen.getUiHandler().updateCountDown(0);\n playerHandler.runRound(GameGraphics.gson.fromJson(data, StartRoundDto.class));\n break;\n case COUNT_DOWN:\n // This seconds int has the information about the current number for the countdown\n int seconds = 30 - GameGraphics.gson.fromJson(data, Integer.class); // Count down, not count up\n GameScreen.getUiHandler().updateCountDown(seconds);\n break;\n case PARTY_MODE:\n InputHandler.enableMode();\n break;\n default:\n System.out.println(\"Unknown operation :\" + result);\n break;\n }\n } catch (IOException e) {\n System.out.println(\"IOExeption \" + e);\n }\n }\n }", "public void shutdownInput()\n throws IOException\n {\n synchronized (f_aBuffSingleInbound) // required for markKeysReadable\n {\n m_fInputShutdown = true;\n markKeysReadable(/*fReadable*/ true);\n }\n }", "private static Object BackgroundInputCallback(Object This)\r\n { \r\n TextEditorThreadLocalStore threadLocalStore = TextEditor._ThreadLocalStore;\r\n\r\n Invariant.Assert(This is TextEditor); \r\n Invariant.Assert(threadLocalStore.PendingInputItems != null);\r\n\r\n try\r\n {\r\n TextEditorTyping._FlushPendingInputItems((TextEditor)This);\r\n } \r\n finally\r\n { \r\n threadLocalStore.PendingInputItems = null; \r\n }\r\n\r\n return null;\r\n }", "public void interactWithKeyboard() {\n initialize_frame();\n InputSource inputSource = new KeyboardInputSource();\n char c = inputSource.getNextKey();\n while(inputSource.possibleNextInput() && c != 'Q') {\n if (c == 'N') {\n // instructions_page();\n draw_frame_seed();\n start_game(\"New\");\n break;\n } else if (c == 'L') {\n File seed = new File(\"seed.txt\");\n File directions = new File(\"movements.txt\");\n String old_seed = loadEditor(seed);\n String old_directions = loadEditor(directions);\n load_and_move(old_seed, old_directions);\n start_game(\"Load\");\n } else if (c == 'I') {\n instructions_page();\n if (inputSource.getNextKey() == 'B') {\n interactWithKeyboard();\n }\n }\n }\n\n }", "@Override\r\n public void onClick(View arg0) {\n new Thread() {\r\n public void run() {\r\n try {\r\n Instrumentation inst = new Instrumentation();\r\n inst.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }.start();\r\n\r\n }", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n dialogContainer.getChildren().add(DialogBox.getUserDialog(input, userImage));\n if (duke.getResponse(input)) {\n CompletableFuture<Void> completableFuture = CompletableFuture.runAsync(() -> {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n });\n completableFuture.thenRun(() -> Platform.exit());\n }\n userInput.clear();\n }", "private static boolean backToMenu() {\n boolean exit = false;\n System.out.println(\"Return to Main Menu? Type Yes / No\");\n Scanner sc2 = new Scanner(System.in);\n if (sc2.next().equalsIgnoreCase(\"no\"))\n exit = true;\n return exit;\n }", "private void consumeNextKeyTyped(KeyEvent paramKeyEvent)\n/* */ {\n/* 1082 */ this.consumeNextKeyTyped = true;\n/* */ }", "public static void keepGoing() {\n System.out.println(\"Would you like to continue? \");\n char contin= sc.next().charAt(0); \n }", "public void keyBackIsPressed(){}", "@Override\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\t\tif(keyCode==KeyEvent.KEYCODE_BACK)\n\t\t{\n\t\t\tsetResult(1);\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onKeyDown(keyCode, event);\n\t}", "public void takeUserInput() {\n\t\t\r\n\t}", "public void GoBack(ActionEvent actionEvent) throws IOException\n {\n Main.backToMain();\n }", "@Override\n\tpublic void process() {\n\n\t\tInputCommand cmd = InputManager.nextCommandPreserveKeyData();\n\t\tif (cmd != null) {\n\t\t\tswitch (cmd) {\n\n\t\t\tcase NEW:\n\t\t\t\tsetNextScreen(new NewGameScreen(terminal));\n\t\t\t\tbreak;\n\n\t\t\tcase LOAD:\n\t\t\t\tsetNextScreen(new MainScreen(this.terminal, loadGame()), false);\n\t\t\t\tbreak;\n\n\t\t\tcase CANCEL:\n\t\t\t\tSystem.exit(0);\n\n\t\t\tdefault:\n\t\t\t}\n\t\t}\n\t}", "static void take_the_input() throws IOException{\n\t\tSystem.out.print(\"ENTER THE ADDRESS : \");\n\n\t\taddress = hexa_to_deci(scan.readLine());\n\t\tSystem.out.println();\n\n\t\twhile(true){\n\t\t\tprint_the_address(address);\n\t\t\tString instruction = scan.readLine();\n\t\t\tint label_size = check_for_label(instruction);\n\t\t\tinstruction = instruction.substring(label_size);\n\t\t\tmemory.put(address, instruction);\n\t\t\tif(stop_instruction(instruction))\n\t\t\t\tbreak;\n\t\t\taddress+=size_of_code(instruction);\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"DO YOU WANT TO ENTER ANY FURTHUR CODE (Y/N) : \");\n\t\tString choice = scan.readLine();\n\t\tSystem.out.println();\n\t\tif(choice.equals(\"Y\"))\n\t\t\ttake_the_input();\n\t}", "@Override\r\n\tpublic void userInputOccurred(InputEvent e) {\n\t\tif (e.getType() == (InputEvent.TEXT)) {\r\n\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tString input = new String(e.getInput());\r\n\t\t\t// If it's a clear command\r\n\t\t\tif (e.getInput().equals(\"/clear\")) {\r\n\t\t\t\tclearTerminal();\r\n\t\t\t} else {\r\n\t\t\t\tif (e.getSource() == myTerminal) {\r\n\t\t\t\t\t// System.out.println(\"Terminal says: \"+input);\r\n\t\t\t\t\tthis.cmd_string(input);\r\n\t\t\t\t} else if (e.getSource() == this) {\r\n\t\t\t\t\tmyTerminal.write(input);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"Unknown src detected: \" + e.getSource());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (current_state == EXIT) {\r\n\t\t\t\tquit();\r\n\t\t\t}\r\n\r\n\t\t\t// Otherwise it's a up/down/left/right/esc command\r\n\t\t} else if (e.getType() == (InputEvent.KEY_PRESS)) {\r\n\r\n\t\t\tthis.cmd_key(e.getInput());\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void keyBack() {\n\t\t\n\t}", "@Override\n public void backToMainMenu() {\n try {\n Thread.sleep((long)480000);\n }\n catch (InterruptedException var1_1) {\n var1_1.printStackTrace();\n }\n if (this.activityActive && !this.getClass().equals((Object)SampleActivity.class)) {\n AudioDemo.Sound().playSound(\"a9\");\n try {\n Thread.sleep((long)10000);\n }\n catch (InterruptedException var2_2) {\n var2_2.printStackTrace();\n }\n this.finishInputMoney(false);\n }\n }", "void suspendOutput();", "@Override\n public void printActionsAndReceiveInput(Terminal terminal) { this.terminal=terminal;\n inputBasicMode();\n responseIsReady = true;\n }", "private static void guestLoop() {\n boolean exit = false;\n Scanner input = new Scanner(System.in);\n\n while (!exit) {\n displayGuest();\n\n char option = input.next().toLowerCase().charAt(0);\n\n switch(option) {\n case 'r': clearScreen();\n roomsAndRates();\n break;\n case 's': clearScreen();\n viewStays();\n break;\n case 'b': exit = true;\n break;\n }\n }\n }" ]
[ "0.72712433", "0.72144526", "0.6712391", "0.6599014", "0.6537242", "0.63483286", "0.6272378", "0.61705565", "0.61114395", "0.6024741", "0.59975123", "0.5997288", "0.59614384", "0.5916242", "0.58948606", "0.5827381", "0.5785021", "0.57457954", "0.5715706", "0.56929654", "0.56776726", "0.5669104", "0.56475306", "0.5606413", "0.5598498", "0.55959386", "0.5559384", "0.5535437", "0.55027425", "0.5479594", "0.54406404", "0.5433374", "0.53853756", "0.5368034", "0.5317596", "0.53002995", "0.52891403", "0.52714956", "0.52597845", "0.52546453", "0.52502567", "0.5248839", "0.5247548", "0.524249", "0.523865", "0.5234004", "0.5230505", "0.52285105", "0.5218575", "0.51991534", "0.5194674", "0.5193545", "0.5184189", "0.51751864", "0.5166637", "0.5159985", "0.5159166", "0.51414835", "0.51357806", "0.5131435", "0.5128888", "0.5128512", "0.51273894", "0.5125966", "0.51249576", "0.5118685", "0.511551", "0.51084006", "0.5105178", "0.5101682", "0.50995463", "0.50974417", "0.5096295", "0.5095796", "0.5086407", "0.5085687", "0.507292", "0.50682276", "0.506811", "0.50669265", "0.5059887", "0.50596976", "0.5057597", "0.5056061", "0.5052545", "0.50485164", "0.5041606", "0.5024068", "0.50204456", "0.5015384", "0.5013924", "0.50099975", "0.5004706", "0.50024045", "0.5001881", "0.50003606", "0.49875852", "0.49822074", "0.4979632", "0.49784306" ]
0.51093554
67
method to calculate the cij
public double calc_c() { double cij = 0; int sum_i = 0; int sum_j = 0; int diff = 0; int state = 0; double li, lri, lj, lrj; List<Integer> samestate_i = new ArrayList<>(); List<Integer> samestate_j = new ArrayList<>(); List<Double> gradient_i = new ArrayList<>(); List<Double> gradient_j = new ArrayList<>(); // if the time step is less than the window cij is initialized to zero. if(this.n <= this.w || this.w <2) { cij = 0; } else { // else we determine the state of the region i and region j of which // we are calculating the cij for Determinestate di = new Determinestate(this.i, this.n); Determinestate dj = new Determinestate(this.j, this.n); Probability pi = new Probability(this.i, this.n, this.w, this.neighborsize); Probability pj = new Probability(this.i, this.n, this.w, this.neighborsize); if(di.regionCurrentstate() == dj.regionCurrentstate()) { li = pi.getLsave().get(0); lj = pj.getLsave().get(0); state = 0; } else { li = pi.getLsave().get(1); lj = pj.getLsave().get(1); state =1; } // for the time window for(int k=1; k<this.w; k++) { // determine the state of i and j in the in n-k time step Determinestate dri = new Determinestate(this.i, this.n-k); Determinestate drj = new Determinestate(this.j, this.n-k); Probability pri = new Probability(this.i, this.n, this.w, this.neighborsize); Probability prj = new Probability(this.i, this.n, this.w, this.neighborsize); lri = pri.getLsave().get(state); lrj = prj.getLsave().get(state); //if state matches for i make a list of time step in which they match and another list of gradient of Likelihood if(di.regionCurrentstate() == dri.regionCurrentstate()){ samestate_i.add(k); gradient_i.add(li - lri); } //if state matches for j make a list of time step in which they match and another list of gradient of Likelihood if(di.regionCurrentstate() == drj.regionCurrentstate()){ samestate_j.add(k); gradient_j.add(lj - lrj); } } } // if no match found return zero if(samestate_i.size() == 0 || samestate_j.size() == 0) { cij = 0; } // else calculate cij else { // if both have same length if(samestate_i.size() == samestate_j.size()) { for(int i=0; i<samestate_i.size(); i++) { sum_i = sum_i + samestate_i.get(i); sum_j = sum_j + samestate_j.get(i); } diff = (sum_i%this.w - sum_j%this.w); if (diff == 0) { cij = cosine_sim(gradient_i, gradient_j); } else { cij = cosine_sim(gradient_i, gradient_j) * Math.abs(diff/(double)this.w); } } //if i is smaller else if(samestate_i.size() < samestate_j.size()) { for(int i=0; i<samestate_i.size(); i++) { sum_i = sum_i + samestate_i.get(i); sum_j = sum_j + samestate_j.get(i); } diff = (sum_i%this.w - sum_j%this.w); if (diff == 0) { cij = cosine_sim(gradient_i.subList(0, samestate_i.size()), gradient_j); } else { cij = cosine_sim(gradient_i.subList(0, samestate_i.size()), gradient_j) * diff/(double)this.w; } } // if j is smaller else { for(int i=0; i<samestate_j.size(); i++) { sum_i = sum_i + samestate_i.get(i); sum_j = sum_j + samestate_j.get(i); } diff = (sum_i%this.w - sum_j%this.w); if (diff == 0) { cij = cosine_sim(gradient_i.subList(0, samestate_j.size()), gradient_j); } else { cij = cosine_sim(gradient_i.subList(0, samestate_j.size()), gradient_j) * diff/(double)this.w; } } } if (Double.isNaN(cij)) { return 0; } else { return cij; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private IMatrix cofactor() {\n\t\tint n = this.getColsCount();\n\t\tIMatrix algCompl = newInstance(n, n);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble value = Math.pow(-1, i + j);\n\t\t\t\tIMatrix sub = this.subMatrix(i, j, true);\n\t\t\t\tDouble det = sub.determinant();\n\t\t\t\tvalue *= det;\n\t\t\t\talgCompl.set(i, j, value);\n\t\t\t}\n\t\t}\n\t\treturn algCompl;\n\t}", "@Override\n\tpublic double[][] calc() {\n\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\n\t\t\t\n\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t\t\t\n\t\t\t\tthis.inverse = new double[this.singleMatrix.length][this.singleMatrix[i].length];\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tif (this.det != 0) {\t//if determinant is not 0.\n\t\t\t\n\t\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\t\n\t\t\t\t\n\t\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t\t\t\t\n\t\t\t\t\tthis.cT = new double[this.singleMatrix.length][this.singleMatrix[i].length];\t//declare the size of co-factor matrix transposed\n\n\t\t\t\t\tthis.cT[i][j] = this.coFactor[j][i];\t//the rows of cT = the cols of coFactor matrix. the cols of cT = the rows of coFactor matrix\n\t\t\t\t\t\n\t\t\t\t\t/* # you might want to initialize this.inverse and calculate right after the above cT calculation done as follow,\n\t\t\t\t\t \n\t\t\t\t\t \t--------------------------------------------------------------------------------------\n\t\t\t\t\t \t- this.inverse = new double[this.singleMatrix.length][this.singleMatrix[i].length]; -\n\t\t\t\t\t \t- this.inverse[i][j] = 1 / this.det * this.cT[i][j]; -\n\t\t\t\t\t \t--------------------------------------------------------------------------------------\n\t\t\t\t\t \n\t\t\t\t\t technically, it's not really a problem when it comes to initializing one more variable in the same loop.\n\t\t\t\t\t however, this specific situation, that three variables (coFacotr, cT and inverse) and their values are involved in, occurs an unexpected result which is still not an error.\n\t\t\t\t\t \n\t\t\t\t\t this.coFactor is done in a loop in initializing and calculating \n\t\t\t\t\t this.cT and this.inverse are done in a loop in initializing and calculating\n\t\t\t\t\t \n\t\t\t\t\t # thus, calculation goes as it goes and this.inverse will be kept initializing until the loop ends.\n\t\t\t\t\t this.inverse will then always & only store its running value at a current location depending on increment of i and j.\n\t\t\t\t\t you will see only one result at the last index and won't see all the values stored correctly.\n\t\t\t\t\t (all of the values will be zero except the last value at the last index)\n\t\t\t\t\t \n\t\t\t\t\t # one simple solution is to initialize and calculate a variable -inverse in this case- in a separate for-loop\n\t\t\t\t\t \n\t\t\t\t\t */\n\n\t\t\t\t\t//calculate inverse here but initialize it in another for-loop\n\t\t\t\t\tthis.inverse[i][j] = 1 / this.det * this.cT[i][j]; //formula: A-1 = 1 / det * cT\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t\n\t\t}else {\t//det is 0\n\t\t\t\n\t\t\tSystem.out.println(\"\\nThe matrix is a singular. singular matrices can not have inverses.\");\n\t\t}\n\t\t\n\t\t//print\n\t\tSystem.out.println(\"\\nInverse of the current matrix is: \");\n\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\n\t\t\t\t\t\n\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t \t\t\n\t\t\t\tSystem.out.print(String.format(\"%.2f\", this.inverse[i][j]) + \" \");\t//display the result with a space between value representing as two decimal point\n//\t\t\t\tSystem.out.print(this.inverse[i][j] + \" \");\t//display the result with a space between value representing as two decimal point\n\t\t\t}\n\t\tSystem.out.println();\t//a new line for the next row and cols\n\t\t}\n\t\t\n\t\treturn inverse;\t//return the value of inverse\n\t}", "public double getConc(int i, int j, int k) {\r\n\t\treturn quantity[i][j][k]/boxVolume;\r\n\t}", "private double calcuCMetric() {\n\t\treturn (p-1)/fcost;\n\t}", "public double getC() {\n return c;\n }", "int getC();", "public static void CalcChiSquare()\n\t{\n\t\t//System.err.println(\"OBSCHI\");\n\t\n\t\tclade = clad[k];\n\t\t\n\t\tclade.obsChi = 0;\n\t\t\n\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t{\n\t\t\t//System.err.println(\"\");\n\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t{\n\t\t\t\tclade.expObsMatrix[i][j] = (double) (clade.rowTotal[i] * clade.columnTotal[j]) / (double) clade.totaNumObs;\n\t\t\t\tclade.obsChi= clade.obsChi + Math.pow((double) clade.obsMatrix[i][j] - clade.expObsMatrix[i][j], 2) / (double) clade.expObsMatrix[i][j];\n\t\t\t\t//System.err.print(clade.obsChi + \" \");\n\t\t\t}\n\t\t}\n\t\t//System.err.println(\"\\nCHI: \" + clade.obsChi);\n\n\t\n\t}", "public double[][] coFactorFinder() {\n\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\n\t\t\t\n\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t\t\t/* co-factor: change signs.\n\t\t\t\t\t|+ - +|\n\t\t\t\t\t|- + -|\n\t\t\t\t\t|+ - +|\t */\n\t\t\t\tthis.coFactor = new double[this.singleMatrix.length][this.singleMatrix[i].length];\n\t\t\t\t\n\t\t\t\tthis.coFactor[0][0] = this.minor[0][0];\n\t\t\t\tthis.coFactor[0][1] = - this.minor[0][1];\n\t\t\t\tthis.coFactor[0][2] = this.minor[0][2];\n\t\t\t\tthis.coFactor[1][0] = - this.minor[1][0];\n\t\t\t\tthis.coFactor[1][1] = this.minor[1][1];\n\t\t\t\tthis.coFactor[1][2] = - this.minor[1][2];\n\t\t\t\tthis.coFactor[2][0] = this.minor[2][0];\n\t\t\t\tthis.coFactor[2][1] = - this.minor[2][1];\n\t\t\t\tthis.coFactor[2][2] = this.minor[2][2];\n\t\t\t\t\t\n\t\t\t}\n\t\t}\t\t\t\t\n\t\t//\tprint\n\t\t\tSystem.out.println(\"\\nCo-factor of the current matrix is: \");\n\t\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\n\t\t\t\t\t\t\n\t\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t\t \t\t\n\t\t\t\t\tSystem.out.print(String.format(\"%.2f\", coFactor[i][j]) + \" \");\t//display the result with a space between value representing as two decimal point\n\t\t\t\t}\n\t\t\tSystem.out.println();\t//a new line for the next row and cols\n\t\t\t}\n\t\treturn coFactor;\t//return co-factors\n\t\t}", "public int cima(){\n return VectorPila[cima];\n }", "public double[] getCot() { return Cot; }", "int getCoorX();", "public Matrix PQW2ECI()\n\t{\n\t\tdouble cw = Math.cos(w);\n\t\tdouble sw = Math.sin(w);\n\t\tdouble craan = Math.cos(raan);\n\t\tdouble sraan = Math.sin(raan);\n\t\tdouble ci = Math.cos(i);\n\t\tdouble si = Math.sin(i);\n\n\t\tMatrix out = new Matrix(3, 3);\n\t\tout.A[0][0] = craan * cw - sraan * sw * ci;\n\t\tout.A[0][1] = -craan * sw - sraan * cw * ci;\n\t\tout.A[0][2] = sraan * si;\n\t\tout.A[1][0] = sraan * cw + craan * sw * ci;\n\t\tout.A[1][1] = -sraan * sw + craan * cw * ci;\n\t\tout.A[1][2] = -craan * si;\n\t\tout.A[2][0] = sw * si;\n\t\tout.A[2][1] = cw * si;\n\t\tout.A[2][2] = ci;\n\t\treturn out;\n\t}", "public double getCelsius(){\n return ((fahrenheit-32)*(5.0/9));\n }", "public static void matrixDis()\n\t{\n\t\t\n\t\tclade = clad[k];\n\t\t//System.err.println(\"\\n\\n\" + clade.cladeName);\n\n\t\tfor(c=0; c<clade.numSubClades; c++)\n\t\t{\n\t\t\tclade.Dc[c]=0;\n\t\t\tclade.Dn[c]=0;\n\t\t\t//clade.varDc[c]=0;\n\t\t\t//clade.varDn[c]=0;\n\t\t\tsum1 = sum2 = sum3 = 0;\n\t\t\tsumc1 = sumc2 = sumc3 = 0;\n\n\t\t\tfor(i=0; i<clade.numCladeLocations; i++) \t\n\t\t\t{\t\n\t\t\t\t\n\t\t\t\tsum2 += clade.obsMatrix[c][i] * (clade.obsMatrix[c][i]-1) / 2 ;\n\t\t\t\tsumc2 += (clade.obsMatrix[c][i] * (clade.obsMatrix[c][i]-1) / 2) + \n\t\t\t (clade.obsMatrix[c][i] * (clade.columnTotal[i] - clade.obsMatrix[c][i]));\t\n\t\t\t\n\t\t\t\tfor (j=0; j<clade.numCladeLocations; j++)\n\t\t\t\t{\t\n\t\t\t\t\tpopA = clade.cladeLocIndex[i];\n\t\t\t\t\tpopB = clade.cladeLocIndex[j];\n\t\t\t\t\t\n\t\t\t\t\tif (j != i)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum1 += (double) clade.obsMatrix[c][i] * clade.obsMatrix[c][j] * distance[popA-1][popB-1];\n\t\t\t\t\t\tsum3 += clade.obsMatrix[c][i] * clade.obsMatrix[c][j];\t\t\t\n\t\t\t\t\t\tsumc1 += (double) clade.obsMatrix[c][i] * clade.columnTotal[j] * distance[popA-1][popB-1];\t\n\t\t\t\t\t\tsumc3 += clade.obsMatrix[c][i] * clade.columnTotal[j];\n\t\t\t\t\t\t//System.err.println(\"\\npopA = \" + popA + \" popB = \" + popB + \" dist= \" + distance[popA-1][popB-1]);\n\t\t\t\t\t\t//System.err.println(\"sumc1: \" + clade.obsMatrix[c][i] + \" * \" + clade.columnTotal[j] +\" * \" + distance[popA-1][popB-1] + \" = \" + sumc1); \n\t\t\t\t\t\t//System.err.println(\"\\nOBS[\" + c +\"][\" + i+ \"]= \" + clade.obsMatrix[c][i]); \n\t\t\t\t\t\t//System.err.println(\"\\nCT[\" + j +\"]= \" + clade.columnTotal[j]); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\n\t\t\t//System.err.println(\"\\nOBS[\" + c +\"][\" + i+ \"]= \" + clade.obsMatrix[c][i]); \n\t\t\n\t\t\t\n\t\t\tif (sum3 == 0.0)\n\t\t\t\tclade.Dc[c] = 0.0;\n\t\t\telse\n\t\t\t\tclade.Dc[c] = sum1 / (sum2 + sum3);\t\t\t\t\n\t\n\t\n\t\t\tif (sumc3 == 0.0)\n\t\t\t\tclade.Dn[c] = 0.0;\n\t\t\telse\n\t\t\t\tclade.Dn[c] = sumc1 / (sumc2 + sumc3);\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t//System.err.println(\"\\nClade \" + clade.cladeName + \" subclade \" + c + \n\t\t\t// \" Dc= \" + clade.Dc[c] + \" Dn= \" + clade.Dn[c]); \t\t\n\t\t\t//System.err.println(\"sum1= \" + sum1 + \" sum2= \" + sum2 + \" sum3= \" + sum3); \n\t\t\t//System.err.println(\"sumc1= \" + sumc1 + \" sumc2= \" + sumc2 + \" sumc3= \" + sumc3); \t\n\t\t}\t\t\n\n\t}", "private int mcHelper(int[][] arr, int[][] g, int i, int j) {\n int mcsum = 0;\n for (int k = 0; k < 4; k++) {\n int a = g[i][k] ^ 0x42;\n int b = arr[k][j];\n mcsum ^= mcCalc(a, b);\n }\n return mcsum;\n }", "double cekStop(double x[][], double v0[],double v[][],double w0[],double w[][], double t[]){\n double akumY=0;\n //~ itung z_in dan z\n for(int h=0; h<jumlah_data; h++){\n for(int j=0; j<unit_hidden; j++){\n //itung sigma xi vij\n double jum_xv=0;\n for(int i=0; i<unit_input; i++){\n double cc=x[h][i]*v[i][j];\n jum_xv=jum_xv+cc;\n //System.out.println(x[h][j]);\n }\n z_in[j]=v0[j]+jum_xv;\n //itung z\n z[j]=1/(1+(double)Math.exp(-z_in[j]));\n //System.out.println(\" dan z= \"+z[j]);\n }\n \n //~ itung y_in dan y (output)\n double cxc=0;\n for(int k=0; k<unit_output; k++){\n double jum_zw=0;\n for(int j=0; j<unit_hidden; j++){\n double cc=z[j]*w[j][k];\n jum_zw=jum_zw+cc;\n }\n y_in[k]=w0[k]+jum_zw;\n y[k]=1/(1+(double)Math.exp(-y_in[k]));\n akumY = akumY + Math.pow((t[h]-y[k]),2);\n //System.out.println(t[h]+\"-\"+y[k]+\"=\"+(t[k]-y[k]));\n }\n }\n double E = 0.5 * akumY;\n //System.out.println(E);\n return E;\n }", "public double[][] cofactors(double[][] X, int n) {\n\t\tdouble[][] Y = new double[n][n];\n\t\tif (n == 1)\n\t\t\tY[0][0] = X[0][0];\n\t\telse {\n\t\t\tdouble cof;\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tdouble[][] S = new double[n - 1][n - 1];\n\t\t\t\t\tint row_no = 0, col_no = 0;\n\t\t\t\t\tfor (int k = 0; k < n; k++)\n\t\t\t\t\t\tif (k != i) {\n\t\t\t\t\t\t\tfor (int l = 0; l < n; l++)\n\t\t\t\t\t\t\t\tif (l != j) {\n\t\t\t\t\t\t\t\t\tS[row_no][col_no] = X[k][l];\n\t\t\t\t\t\t\t\t\tcol_no++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trow_no++;\n\t\t\t\t\t\t\tcol_no = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\tcof = Math.pow(-1, i + j) * determinant(S, n - 1);\n\t\t\t\t\tY[i][j] = cof;\n\t\t\t\t}\n\t\t}\n\t\treturn Y;\n\t}", "int getCedula();", "private double jaccardIndexCross(Object m1, Object m2) \n\t{\n\t\treturn 0;\n\t}", "static void binomialCoeff(int C[][], int n, int k)\n {\n for (int i = 0; i <= n; i++) {\n for (int j = 0; j <= Math.min(i, k); j++)\n {\n\n // Base Cases\n if (j == 0 || j == i)\n C[i][j] = 1;\n\n // Calculate value using previously\n // stored values\n else\n C[i][j] = C[i - 1][j - 1] +\n C[i - 1][j];\n }\n }\n }", "double[] compute_t_Cl (double[][] t_lift, double thickness, double camber) {\n double[] result = new double[15];\n if (camber >= 0)\n for (int aoa = -28, i = 0; aoa <= 28; aoa += 4, i++) \n result[i] = ci15_from_javafoil_data(t_lift, aoa, thickness, camber);\n else \n for (int aoa = -28, i = 0; aoa <= 28; aoa += 4, i++) \n result[i] = -ci15_from_javafoil_data(t_lift, -aoa, thickness, camber);\n return result;\n }", "private double k(double[] i, double[] j) {\n int sum = 0;\n for (int m = 0; m < i.length; m++)\n sum += i[m] * j[m];\n return sum;\n\n }", "protected static IGroupElement computeC(ArrayOfElements<IGroupElement> u,\r\n \t\t\tArrayOfElements<IGroupElement> h, int N) {\r\n \r\n \t\tIGroupElement CNumerator = u.getAt(0);\r\n \t\tIGroupElement CDenominator = h.getAt(0);\r\n \t\tfor (int i = 1; i < N; i++) {\r\n \t\t\tCNumerator = CNumerator.mult(u.getAt(i));\r\n \t\t\tCDenominator = CDenominator.mult(h.getAt(i));\r\n \t\t}\r\n \t\tIGroupElement C = CNumerator.divide(CDenominator);\r\n \t\treturn C;\r\n \t}", "public static BigInteger computeCoefficient(BigInteger i, Set<BigInteger> S, BigInteger x,\n Zp field) {\n return computeCoefficient(field.createZnElement(i), S, field.createZnElement(x)).getInteger();\n }", "public double getC1() {\n return c1;\n }", "private Matriks MatriksCofactor(Matriks M){\r\n\t\tMatriks Mcofactor = new Matriks(BrsEff, KolEff);\r\n\t\tfor(int i=0; i<BrsEff; i++){\r\n\t\t\tfor(int j=0;j<KolEff; j++){\r\n\t\t\t\tMatriks temp = M.Cofactor(M,i,j);\r\n\t\t\t\tMcofactor.Elmt[i][j] = temp.DetCofactor(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn Mcofactor;\r\n\t}", "public double Ix() {\r\n\t\tdouble ix = 0;\r\n\t\tfor(int i = 0;i < liczbaPunktow;i++) {\r\n\t\t\tix = ix + A[i].getMasa() * (Math.pow((XYZC[1] - A[i].getPozY()),2) + Math.pow((XYZC[2] - A[i].getPozZ()),2));\r\n\t\t}\r\n\t\treturn ix;\r\n\t}", "public void calcInc(int np)\n\t{\n \n findSpecEq();\n int nofc=numberOfComponents;\n fvec.timesEquals(0.0);\n fvec.set(nofc+1,0,1.0);\n Matrix dxds=Jac.solve(fvec);\n if (np<5)\n {\n double dp=0.01;\n ds=dp/dxds.get(nofc+1,0);\n Xgij.setMatrix(0,nofc+1,np-1,np-1,u);\n dxds.timesEquals(ds);\n // dxds.print(0,10);\n u.plusEquals(dxds);\n // Xgij.print(0,10);\n// u.print(0,10);\n }\n else\n {\n //System.out.println(\"iter \" +iter + \" np \" + np);\n if (iter>6)\n { \n ds *= 0.5;\n System.out.println(\"ds > 6\");\n }\n \n else\n {\n if (iter<3) {\n ds *= 1.5;\n }\n if (iter==3) {\n ds *= 1.1;\n }\n if (iter==4) {\n ds *= 1.0;\n }\n if (iter>4) {\n ds *= 0.5;\n }\n \n// Now we check wheater this ds is greater than dTmax and dPmax.\n if(Math.abs(system.getTemperature()*dxds.get(nofc,0)*ds)>dTmax){\n // System.out.println(\"true T\");\n ds=sign(dTmax/system.getTemperature()/Math.abs(dxds.get(nofc,0)),ds);\n }\n \n if(Math.abs(system.getPressure()*dxds.get(nofc+1,0)*ds)>dPmax)\n {\n ds=sign(dPmax/system.getPressure()/Math.abs(dxds.get(nofc+1,0)),ds);\n // System.out.println(\"true P\");\n }\n if (etterCP2) {\n etterCP2=false;\n ds = 0.5*ds;\n }\n \n Xgij.setMatrix(0,nofc+1,0,2,Xgij.getMatrix(0,nofc+1,1,3)); \n Xgij.setMatrix(0,nofc+1,3,3,u);\n s.setMatrix(0,0,0,3,Xgij.getMatrix(speceq,speceq,0,3));\n // s.print(0,10);\n // System.out.println(\"ds1 : \" + ds);\n calcInc2(np);\n // System.out.println(\"ds2 : \" + ds);\n \n// Here we find the next point from the polynomial.\n \n }\n }\n }", "public double getClusterCoefficientJUNG()\r\n\t{\n\t\tMap<Entity, Double> coefficients = Metrics\r\n\t\t\t\t.clusteringCoefficients(undirectedGraph);\r\n\t\tdouble coefficientSum = 0.0;\r\n\t\t// logger.info(\"Clustering coefficients: \" + coefficients);\r\n\t\tfor (Entity vertex : coefficients.keySet()) {\r\n\t\t\t// logger.info(vertex + ((JUNGEntityVertex)\r\n\t\t\t// vertex).getVertexEntity());\r\n\t\t\tcoefficientSum += coefficients.get(vertex);\r\n\t\t}\r\n\t\treturn coefficientSum / getNumberOfNodes();\r\n\t}", "public Integer getCcn()\r\n {\r\n return (Integer) ( (IntegerMetricBO) getMetrics().get( CCN ) ).getValue();\r\n }", "public static double \t\tcosh(double _x) {\n\t\treturn 0.5D * (Math.exp(_x) + Math.exp(- _x));\n\t}", "private double determinanteCuadrada(){\n\t\tdouble deter = 1;\n\t\tdouble [][] matriz = this.clone().getComponentes();\n\t\t\t\t\n\t\tfor(int i=0;i<this.dimensionCol;i++){\n\t\t\tif(matriz[i][i]==0){\n\t\t\t\tif(this.intercambiarConRenglonNoNuloPorDebajo(matriz, i)==true){\n\t\t\t\t\tdeter *= (-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.llevarACeroPosicionesPorDebajo(matriz, i);\n\t\t\tdeter*=matriz[i][i];\n\t\t}\n\t\t\t\t\n\t\treturn deter;\n\t}", "public VDouble getC() {\r\n return c;\r\n }", "public Double getCtr() {\r\n return ctr;\r\n }", "public BigDecimal getACC_CIF() {\r\n return ACC_CIF;\r\n }", "private static int get_number(int i, int j) { n n!\n// C = _____________\n// r (n-r)! * r!\n//\n return factorial(i)/(factorial(i-j)* factorial(j));\n }", "public int c(long j2, int i2) {\n return ((int) ((j2 - d(i2)) / 86400000)) + 1;\n }", "int getCp();", "int getCp();", "public BigDecimal getCOVERING_ACC_CIF() {\r\n return COVERING_ACC_CIF;\r\n }", "public int getCiclo() { return this.ciclo; }", "private static int calc(int c) {\n\t\treturn 1;\n\t}", "private void computeMultiClassMCC(ConfusionMatrixElement[] elements) {\n\t\tdouble Sq = matrixTotal * matrixTotal;\n\t\tdouble CS = Arrays.stream(elements).map(n -> n.tp).reduce(0.0d, (n, m) -> n + m) * matrixTotal;\n\t\tdouble t = 0.0d, p = 0.0d, tt = 0.0d, pp = 0.0d, tp = 0.0d;\n\t\t\n\t\tfor (ConfusionMatrixElement e : elements) {\n\t\t\tt = (e.tp + e.fp); \n\t\t\tp = (e.tp + e.fn);\n\t\t\t\n\t\t\ttt += (t * t);\n\t\t\tpp += (p * p);\n\t\t\ttp += (t * p);\n\t\t}\n\t\tmatrixMCC = (CS - tp) / (Math.sqrt(Sq - pp) * Math.sqrt(Sq - tt));\n\t}", "public void calculaMatrizCostes() {\n int i, j;\n double xd, yd;\n costes = new int[n][n];\n for (i = 0; i < n; i++) {\n for (j = 0; j < n; j++) {\n xd = vx[i] - vx[j];\n yd = vy[i] - vy[j];\n costes[i][j] = (int) Math.round(Math.sqrt((xd * xd) + (yd * yd)));\n }\n }\n }", "public void evaluate_CD() {\n int[] CD_init = new int[56]; // CD_init = conc(C_init, D_init)\n int[] C_init = new int[28];\n int[] D_init = new int[28];\n\n // definiert das Tupel (C0,D0)\n // \"-1\" dient der Fehler-Ekennung\n for (int i = 0; i < 56; i++) {\n CD_init[i] = -1;\n }\n CD_init = select(DES_key, PC1);\n\n for (int j = 0; j < 28; j++) // definiert C0 and D0 using (C0,D0)\n {\n C_init[j] = CD_init[j];\n D_init[j] = CD_init[j + 28];\n }\n\n for (int u = 0; u < 28; u++) {\n C[0][u] = C_init[u];\n D[0][u] = D_init[u];\n }\n\n for (int i = 1; i < 17; i++) {\n C[i] = cyclic_rot(v[i - 1], C[i - 1]);\n D[i] = cyclic_rot(v[i - 1], D[i - 1]);\n }\n\n // definiert die Matrix (C[i],D[i]), notwendig um die Roundkeys K_i zu berechnen\n for (int k = 0; k < 17; k++) {\n for (int t = 0; t < 28; t++) {\n CD[k][t] = C[k][t];\n CD[k][t + 28] = D[k][t];\n }\n }\n\n // definiert die 34x28 Matrix C0D0,....,C16D16 (displayed in \"CD_Matrix\")\n for (int z = 0; z < 17; z++)\n for (int s = 0; s < 28; s++) {\n CD_mix[2 * z][s] = CD[z][s];\n CD_mix[2 * z + 1][s] = CD[z][28 + s];\n }\n }", "public int coeff(int n, int k) {\n // Insert your code here\n return fact(n) / (fact(k) * fact(n - k));\n }", "float getCpMultiplier();", "public int getC() {\n return c_;\n }", "@Test\n public void testEstimateC_IIntArray_int()\n {\n IIntArray traj = null;\n int lag = 0;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.estimateC(traj, lag);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public int getC() {\n return c_;\n }", "public static Integer calculateCNC(String inputNote)\r\n {\r\n Integer octave = Integer.parseInt(inputNote.substring(inputNote.length()-1, inputNote.length()));\r\n Integer nameClass = getNameClass(inputNote.substring(0, 1));\r\n //System.out.println(\"Inside calculateCNC parameter: octave - value: \" + octave);\r\n //System.out.println(\"Inside calculateCNC parameter: nameClass - value: \" + nameClass);\r\n return (octave * 7) + nameClass; \r\n }", "private int computeZi(int i) {\r\n\t\tdouble counter = 1;\r\n\t\tfor (int j = 1; j <= Party.n; j++) {\r\n\t\t\tif (j != i) {\r\n\t\t\t\tcounter = counter * Polynomial.fieldDiv(-j, i - j);\r\n\t\t\t\t// ((double)-j/ (double)(i-j));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn Gate.modField((int) counter);\r\n\t}", "public int contenuto(int r, int c) { return contenutoCaselle[r][c]; }", "public float getCenx() {\n return cen.x;\n }", "private native double SumaC(double operador_1, double operador_2);", "public int C(int n, int k) {\n\tif (choose[n][k] != -1)\n\t\treturn choose[n][k];\n\tint t = C(n-1,k-1) + C(n-1,k);\n\tchoose[n][k] = t;\n\treturn t;\n}", "public double getCijena() {\r\n return cijena;\r\n }", "private int m27465c(int i) {\n double d = (double) this.f25261H;\n double cos = Math.cos(Math.toRadians((double) i));\n double d2 = (double) this.f25261H;\n Double.isNaN(d2);\n double d3 = cos * d2;\n Double.isNaN(d);\n return (int) (d - d3);\n }", "public double[] coeff();", "public Double getConcentration();", "public int compose( int[ ] ancientEgyptianMultipliers ) throws JWaveException {\r\n \r\n if( ancientEgyptianMultipliers == null )\r\n throw new JWaveError( \"given array is null\" );\r\n \r\n int number = 0;\r\n \r\n int noOfAncientEgyptianMultipliers = ancientEgyptianMultipliers.length;\r\n for( int m = 0; m < noOfAncientEgyptianMultipliers; m++ ) {\r\n \r\n int ancientEgyptianMultiplier = ancientEgyptianMultipliers[ m ];\r\n \r\n number += (int)scalb( 1., ancientEgyptianMultiplier ); // 1. * 2^p\r\n \r\n } // m\r\n \r\n return number;\r\n \r\n }", "public BigDecimal getCOVERING_ACC_CY() {\r\n return COVERING_ACC_CY;\r\n }", "public CmsCISimple getToCi() {\n return toCi;\n }", "public int getPointsC() {\r\n pointsC = getPointsCroupier() + getPointsCroupier2();\r\n\r\n if (pointsC >= 10) {\r\n pointsC -= 10;\r\n }\r\n\r\n return pointsC;\r\n }", "public abstract double calculate(Complex c,Complex current);", "public double computeCGPAByID()\r\n {\r\n double total=0.0;\r\n for(int i=0; i<this.term; i++){\r\n total+=Gpa[i];\r\n \r\n }\r\n return this.cgpa=total/this.term;\r\n }", "public final void cZJ() {\n AppMethodBeat.i(7665);\n if (this.utI) {\n this.utH = false;\n cZv().uxb = false;\n this.utI = false;\n if (this.utJ) {\n cZM();\n }\n AppMethodBeat.o(7665);\n return;\n }\n AppMethodBeat.o(7665);\n }", "public double getCena() {\r\n\t\treturn cena;\r\n\t}", "public double getCoefficient();", "public JTensor cinv() {\n JTensor r = new JTensor();\n TH.THTensor_(cinv)(r, this);\n return r;\n }", "private static long getCnr(int n, int r)\r\n {\r\n if (n < r || n < 0 || r < 0) {\r\n // Illegal situation.\r\n return -1;\r\n }\r\n\r\n if (r == 0) {\r\n // No need to calculate.\r\n return 1;\r\n }\r\n\r\n /*\r\n * cnr = (r + 1)(r + 2) ... n / (n - r)! (if r > n/2)\r\n * cnr = (n - r + 1)(n - r + 2) ... n / r! (if r <= n/2)\r\n * Take rr = r (if r <= n/2) or (n - r) (if r > n/2)\r\n * Then,\r\n * cnr = (n - rr + 1)(rr + 2) ... n / rr!\r\n */\r\n int rr = (r <= n/2) ? r : (n - r);\r\n long result = 1;\r\n\r\n // Calculate (rr + 1)(rr + 2) ... n\r\n for (int i = (n - rr + 1); i <= n; ++i) {\r\n result *= i;\r\n }\r\n\r\n // Calculate cnr = result / rr!\r\n for (int i = 1; i <= rr; ++i) {\r\n result /= i;\r\n }\r\n\r\n return result;\r\n }", "public double calculerCout(int coefficient) {\n return coefficient * cout;\n }", "public long c(int i2) {\n long d2 = d(i2);\n int g2 = g(d2);\n return g2 > 8 - this.t ? d2 + (((long) (8 - g2)) * 86400000) : d2 - (((long) (g2 - 1)) * 86400000);\n }", "public double getConc(Vector3d v) {\r\n\t\tint[] b = boxCoords(v);\r\n\t\treturn getConc(b[0],b[1],b[2]);\r\n\t}", "double[] compute_t_Cm (double[][] t_mmnt, double thickness, double camber) {\n double[] result = new double[15];\n if (camber >= 0)\n for (int aoa = -28, i = 0; aoa <= 28; aoa += 4, i++) \n result[i] = ci15_from_javafoil_data(t_mmnt, aoa, thickness, camber);\n else \n for (int aoa = -28, i = 0; aoa <= 28; aoa += 4, i++) \n result[i] = -ci15_from_javafoil_data(t_mmnt, -aoa, thickness, camber);\n return result;\n }", "private final boolean cvc(int i)\n\t { if (i < 2 || !cons(i) || cons(i-1) || !cons(i-2)) return false;\n\t { int ch = b[i];\n\t if (ch == 'w' || ch == 'x' || ch == 'y') return false;\n\t }\n\t return true;\n\t }", "private static double ct(double W, double Vr, double V){\n\t\t/*\n\t\t//declaring constants\n\t\tdouble A0 = 0.5766; \n\t\tdouble A1 = 1.9169;\n\t\tdouble A2 = -1.0712;\n\t\tdouble A3 = 1.6898;\n\t\t\n\t\tdouble aW = a/W;\n\t\tdouble Eqn1 = A0 + (A1*aW) + (A2*(aW*aW)) + (A3*(aW*aW*aW));\n\t\t//I don't know if they need to be able to see what the reference voltage is\n\t\tdouble Vr = initialV/Eqn1;\n\t\t*/\n\t\t//declaring constants\n\t\tdouble B0 = -0.5051;\n\t\tdouble B1 = 0.8857; \n\t\tdouble B2 = -0.1398;\n\t\tdouble B3 = 0.0002398;\n\t\t\n\t\tdouble VVr = V/Vr;\n\t\tdouble Eqn2 = B0 + (B1*VVr) + (B2*(VVr*VVr)) + (B3*(VVr*VVr*VVr));\n\t\t//crack size, A calculated for any voltage\n\t\tdouble A = Eqn2 * W;\n\t\treturn A;\n\t\t\n\t}", "private Matriks Cofactor(Matriks M, int p, int q){\r\n\t\tMatriks cofactor = new Matriks(M.BrsEff-1, M.KolEff-1);\r\n\t\tint k = 0;\r\n\t\tint l = 0;\r\n\t\tfor(int i=0; i<M.BrsEff; i++){\r\n\t\t\tfor(int j=0; j<M.KolEff; j++){\r\n\t\t\t\tif (i!=p && j!=q){\r\n\t\t\t\t\tcofactor.Elmt[k][l] = M.Elmt[i][j];\r\n\t\t\t\t\tl += 1;\r\n\t\t\t\t\tif(l==cofactor.BrsEff){\r\n\t\t\t\t\t\tl = 0;\r\n\t\t\t\t\t\tk += 1;\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 cofactor;\r\n\t}", "public double Iz() {\r\n\t\tdouble iz = 0;\r\n\t\tfor(int i = 0;i < liczbaPunktow;i++) {\r\n\t\t\tiz = iz + A[i].getMasa() * (Math.pow((XYZC[0] - A[i].getPozX()),2) + Math.pow((XYZC[1] - A[i].getPozY()),2));\r\n\t\t}\r\n\t\treturn iz;\r\n\t}", "public float getCohesion() {\n\treturn 0;\n }", "public Complex conjugate() {\r\n return new Complex(this.getReal(), this.getImag() * -1);\r\n }", "public double getCDF(double x){\n\t\tdouble z = (Math.log(x) - location) / scale;\n\t\tif (z >= 0) return 0.5 + 0.5 * Functions.gammaCDF(z * z / 2, 0.5);\n\t\telse return 0.5 - 0.5 * Functions.gammaCDF(z * z / 2, 0.5);\n\t}", "public float getCeny() {\n return cen.y;\n }", "public SpiceCapacitor(SpiceNetwork net,int n1,int n2,double c) {\n\tsuper(net,c,true);\n\ti = n1;\n\tj = n2;\n\n\tsourceI = network.FindSourceElement(n1);\n\tsourceJ = network.FindSourceElement(n2);\n\tii = network.FindMatrixElement(n1,n1);\n\tij = network.FindMatrixElement(n1,n2);\n\tji = network.FindMatrixElement(n2,n1);\n\tjj = network.FindMatrixElement(n2,n2);\n }", "public double getCl_plot (double camb_val, double thic_val, double angl) {\n // return new Solver(angl, thic_val*25, camb_val*25).get_Cl(angl);\n Solver s = plot_solver;\n s.getFreeStream ();\n s.getCirculation(angl, thic_val*25, camb_val*25);\n double cl = s.get_Cl(angl);\n // System.out.println(\"-- s: \" + s + \" cl: \" + cl);\n return cl;\n }", "public static double computeIC(String userInput) {\n int i;\n // Convert string to uppercase\n userInput = userInput.toUpperCase();\n double sum = 0.0;\n\n // Length of the array, WITHOUT counting the blankspace\n int n = 0;\n\n //initialize array of values to count frequency of each letter\n \tint[] count = new int[26];\n \tfor (i = 0; i < 26; i++){\n \t\tcount[i] = 0;\n \t}\n\n int letter;\n\n for (i = 0; i < userInput.length(); i++) {\n letter = userInput.charAt(i) - 65;\n\n // If charAt(i) is between A and Z then increase count of that letter\n if (letter >= 0 && letter < 26) {\n count[letter]++;\n n++;\n }\n }\n\n /* By defeinition, Index of Coincidence is calculated by the summation of \n each of the letter count(s) */\n for (i = 0; i < 26; i++) {\n letter = count[i];\n sum = sum + (letter * (letter-1));\n }\n\n double total = sum/(n*(n-1));\n\n return total;\n }", "@Override\n\tdouble chuVi() {\n\t\treturn canhA + canhB + canhC;\n\t}", "static private double[][] dct3(double[][] input) {\n final int N = input.length;\n final double mathPI = Math.PI;\n final int halfN = N / 2;\n final double doubN = 2.0 * N;\n\n double[][] c = new double[N][N];\n c = initMatrix(c);\n\n double[][] output = new double[N][N];\n\n\n for (int x = 0; x < N; x++) {\n int temp_x = 2 * x + 1;\n for (int y = 0; y < N; y++) {\n int temp_y = 2 * y + 1;\n double sum = 0.0;\n for (int u = 0; u < N; u++) {\n double temp_u = u * mathPI;\n for (int v = 0; v < N; v++) {\n sum += c[u][v] * input[u][v] * Math.cos((temp_x / doubN) * temp_u) * Math.cos((temp_y / doubN) * v * mathPI);\n }\n }\n sum /= halfN;\n output[x][y] = sum;\n }\n }\n return output;\n }", "int cubeCol() {\n return c; \n }", "public static double cube(int n ,int m){\r\n System.out.println(\"n :\"+n+ \" m : \" +m);\r\n double c=Math.pow(n,m);\r\n System.out.println(\"c :\" +c);\r\n return c;\r\n }", "public Point3D getC() {\r\n return c;\r\n }", "@Override\n\tpublic double calculaImc() {\n\t\t imc = peso / (altura * altura);\n\t\treturn imc;\n\t}", "public BigDecimal getACC_CY() {\r\n return ACC_CY;\r\n }", "@Test\n public void testChisqTest() {\n System.out.println(\"chisq\");\n int[][] x = {{12, 7}, {5, 7}};\n CorTest result = CorTest.chisq(x);\n assertEquals(0.1438, result.cor, 1E-4);\n assertEquals(1, result.df, 1E-7);\n assertEquals(0.6411, result.t, 1E-4);\n assertEquals(0.4233, result.pvalue, 1E-4);\n\n int[][] y = {\n {8, 13, 16, 10, 3},\n {4, 9, 14, 16, 7}\n };\n result = CorTest.chisq(y);\n assertEquals(0.2275644, result.cor, 1E-7);\n assertEquals(4, result.df, 1E-7);\n assertEquals(5.179, result.t, 1E-3);\n assertEquals(0.2695, result.pvalue, 1E-4);\n }", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", "static void adjoint(int A[][],int [][]adj) \n { \n \n \n // temp is used to store cofactors of A[][] \n int sign = 1; \n int [][]temp = new int[N][N]; \n \n for (int i = 0; i < N; i++) \n { \n for (int j = 0; j < N; j++) \n { \n // Get cofactor of A[i][j] \n getCofactor(A, temp, i, j, N); \n \n // sign of adj[j][i] positive if sum of row \n // and column indexes is even. \n sign = ((i + j) % 2 == 0)? 1: -1; \n \n // Interchanging rows and columns to get the \n // transpose of the cofactor matrix \n adj[j][i] = (sign)*(determinant(temp, N-1)); \n adj[j][i] = adj[j][i]%26;\n } \n } \n }", "public double[][] findJaccardIndex(int[] idx, int[] class_idx) {\n\t\t// find domain for membership vector\n\t\tUniqueResult<Integer> idxUR = utils.findUnique(idx);\n\t\tint numClusters = idxUR.domain.length;\n\t\t\n\t\t// find domain for class distribution\n\t\tUniqueResult<Integer> class_idxUR = utils.findUnique(class_idx);\n\t\tint numClasses = class_idxUR.domain.length;\n\t\t\n\t\tdouble[][] res = new double[numClusters][numClasses];\n\t\tint row = -1;\n\t\tint col = -1;\n\t\t\n\t\t// run\n\t\tfor (Integer i : idxUR.domain) {\n\t\t\tcol = -1;\n\t\t\trow++;\n\t\t\tboolean[] a = utils.getIndexByValue(idx, i);\n\t\t\tfor (Integer j : class_idxUR.domain) {\n\t\t\t\tcol++;\n\t\t\t\tboolean[] b = utils.getIndexByValue(class_idx, j);\n\t\t\t\tboolean[] ab = utils.findAandB(a, b);\n\t\t\t\tint sum_ab = utils.findSum(ab);\n\t\t\t\tdouble div = (utils.findSum(a) + utils.findSum(b) - sum_ab);\n\t\t\t\tif (div != 0) {\n\t\t\t\t\tres[row][col] = sum_ab/div;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"ClusterUtils: findJaccardIndex: Divizion by Zero!\");\n\t\t\t\t\tres[row][col] = Double.POSITIVE_INFINITY;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// output\n\t\tif (verbose) {\n\t\t\tSystem.out.println(\"Jaccard coefficient:\");\n\t\t\t// print header\n\t\t\tSystem.out.printf(\"\\t\");\n\t\t\tfor (int j = 0; j < numClasses; j++) System.out.printf(\"%d\\t\", class_idxUR.domain[j]);\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t// print Jaccard matrix\n\t\t\tfor (int i = 0; i < numClusters; i++) {\n\t\t\t\tSystem.out.printf(\"%d.\\t\", idxUR.domain[i]);\n\t\t\t\tfor (int j = 0; j < numClasses; j++) {\n\t\t\t\t\tSystem.out.printf(\"%5.4f\\t\", res[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\treturn res;\n\t}", "public int optimizedCom() {\n\tint b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0;\n\tint a = 1;\n\n\tb = 65;\n\tc = b;\n\n\tif (a != 0) {\n\t b = (b * 100) + 100000;\n\t c = b + 17000;\n\t}\n\n\t// at this point:\n\t// a == 1\n\t// b == 106500\n\t// c == 123500\n\n\t// outer loop terminates when b == c\n\t// c never changes, serves as termination condition\n\t// b only gets +17 added for every execution of the outer loop\n\n\tdo {\n\t f = 1;\n\t d = 2;\n\t do { // jnz g -13\n\t\te = 2;\n\n\t\tdo { // jnz g - 8\n\t\t g = (d * e) - b;\n\n\t\t if (g == 0)\n\t\t\tf = 0;\n\n\t\t e++;\n\n\t\t g = e - b;\n\t\t} while (g != 0);\n\n\t\td++;\n\n\t\tg = d - b;\n\t } while (g != 0);\n\n\t // increments h if register b contains a non-prime number (checked by printing all values)\n\t if (f == 0) {\n\t\th++;\n\t\tSystem.out.println(\"b: \" + b + \" c: \" + c + \" d: \" + d + \" e: \" + e + \" f: \" + f + \" g: \" + g);\n\t }\n\n\t // c does not change, b only gets increased by 17\n\t // if b == c, the method returns h which is the number of non-prime numbers encountered in the loop\n\t g = b - c;\n\n\t if (g == 0)\n\t\treturn h;\n\n\t b += 17;\n\n\t} while (true);\n }", "public BigDecimal getCouid() {\n return couid;\n }", "public double getCampbellFactorIcraf() {\r\n\t\treturn (2 * Math.log (treeAlpha / (1 - treeAlpha))\r\n\t\t\t\t/ Math.log (treeMaxTranspirationPotential / treeMinTranspirationPotential));\r\n\t}" ]
[ "0.7017406", "0.63508755", "0.62609565", "0.62390494", "0.6235984", "0.6095728", "0.60901093", "0.6088115", "0.6078993", "0.6043662", "0.5944594", "0.58550245", "0.5852361", "0.5842729", "0.58201474", "0.58000207", "0.5782608", "0.5773626", "0.57602966", "0.5736446", "0.57344717", "0.5705707", "0.5677687", "0.5665601", "0.5659189", "0.56340253", "0.5627832", "0.5626391", "0.56179243", "0.5609424", "0.5604", "0.5598055", "0.5596169", "0.55925536", "0.55880594", "0.55880094", "0.55838954", "0.55799925", "0.55799925", "0.55739576", "0.55716664", "0.55632013", "0.5554724", "0.5546753", "0.5524897", "0.5522223", "0.5519481", "0.55071867", "0.5496816", "0.54860324", "0.54808336", "0.5475924", "0.5468383", "0.5468175", "0.5459473", "0.54589164", "0.5446956", "0.5441662", "0.54380125", "0.542519", "0.5407355", "0.54069597", "0.5402947", "0.5401279", "0.5371794", "0.5361669", "0.5356632", "0.5347231", "0.53428453", "0.53412044", "0.53378546", "0.53353643", "0.53297496", "0.53199214", "0.5317634", "0.53152406", "0.53151155", "0.53138536", "0.5302682", "0.5299435", "0.5294353", "0.52930725", "0.52866656", "0.5286236", "0.52805674", "0.5274308", "0.5272511", "0.5266912", "0.52606696", "0.52597165", "0.5257361", "0.52530074", "0.52512044", "0.5247083", "0.52401483", "0.5238674", "0.52359235", "0.5231995", "0.52309704", "0.5225669" ]
0.73773164
0
appVersion=101&source=android &uid=11850& followId=983& token=F3768ABA31902C1D56B60F25708B9BCD
@Override public void onClick(View v) { Map<String,String> map=new HashMap<>(); map.put("uid",uid+""); map.put("followId",bean.getData().get(position).getUid()+""); map.put("token",token); APIFactory.getInstance().get("quarter/follow", map, new AbstractObserver<FollowSuccessBean>() { @Override public void onSuccess(FollowSuccessBean followSuccessBean) { Toast.makeText(context,followSuccessBean.getMsg(),Toast.LENGTH_SHORT).show(); } @Override public void onFailure(int code) { } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static final String m2193f() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"fb\");\n stringBuilder.append(C0560t.m1253e());\n stringBuilder.append(\"://authorize\");\n return stringBuilder.toString();\n }", "private String m25428h() {\n if (this.a == null) {\n return null;\n }\n Uri parse;\n Builder builder;\n String a = AdSettings.m6374a();\n if (a != null) {\n if (!a.isEmpty()) {\n a = String.format(\"https://www.%s.facebook.com/audience_network/server_side_reward\", new Object[]{a});\n parse = Uri.parse(a);\n builder = new Builder();\n builder.scheme(parse.getScheme());\n builder.authority(parse.getAuthority());\n builder.path(parse.getPath());\n builder.query(parse.getQuery());\n builder.fragment(parse.getFragment());\n builder.appendQueryParameter(\"puid\", this.a.m7645a());\n builder.appendQueryParameter(\"pc\", this.a.m7646b());\n builder.appendQueryParameter(\"ptid\", this.f19103e);\n builder.appendQueryParameter(\"appid\", this.f19107i);\n return builder.build().toString();\n }\n }\n a = \"https://www.facebook.com/audience_network/server_side_reward\";\n parse = Uri.parse(a);\n builder = new Builder();\n builder.scheme(parse.getScheme());\n builder.authority(parse.getAuthority());\n builder.path(parse.getPath());\n builder.query(parse.getQuery());\n builder.fragment(parse.getFragment());\n builder.appendQueryParameter(\"puid\", this.a.m7645a());\n builder.appendQueryParameter(\"pc\", this.a.m7646b());\n builder.appendQueryParameter(\"ptid\", this.f19103e);\n builder.appendQueryParameter(\"appid\", this.f19107i);\n return builder.build().toString();\n }", "private static byte[] m24635a(Context context, String str) {\n String f = C6014b.m23956f();\n String string = Secure.getString(context.getContentResolver(), \"android_id\");\n String substring = str.substring(0, Math.min(8, str.length() - 1));\n StringBuilder sb = new StringBuilder();\n sb.append(substring);\n sb.append(f.substring(0, Math.min(8, f.length() - 1)));\n String sb2 = sb.toString();\n StringBuilder sb3 = new StringBuilder();\n sb3.append(sb2);\n sb3.append(string.substring(0, Math.min(8, string.length() - 1)));\n String sb4 = sb3.toString();\n if (sb4.length() != 24) {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(sb4);\n sb5.append(str.substring(8, 24 - sb4.length()));\n sb4 = sb5.toString();\n }\n return sb4.getBytes();\n }", "void displayUrl(java.lang.String r8) {\n /*\n r7 = this;\n r4 = \"AirpushSDK\";\n r5 = \"Pushing Web and App Ads.....\";\n android.util.Log.i(r4, r5);\n r3 = \"com.android.browser\";\n r0 = \"com.android.browser.BrowserActivity\";\n r2 = new android.content.Intent;\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = \"android.intent.action.VIEW\";\n r5 = android.net.Uri.parse(r8);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r2.<init>(r4, r5);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r2.setFlags(r4);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = 8388608; // 0x800000 float:1.17549435E-38 double:4.144523E-317;\n r2.addFlags(r4);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = \"android.intent.category.LAUNCHER\";\n r2.addCategory(r4);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r2.setClassName(r3, r0);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = r7.context;\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4.startActivity(r2);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n L_0x002d:\n return;\n L_0x002e:\n r1 = move-exception;\n r4 = \"AirpushSDK\";\n r5 = \"Browser not found.\";\n android.util.Log.i(r4, r5);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4 = new android.content.Intent;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r5 = \"android.intent.action.VIEW\";\n r6 = android.net.Uri.parse(r8);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4.<init>(r5, r6);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r7.intent = r4;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4 = r7.intent;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r5 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r4.setFlags(r5);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4 = r7.intent;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r5 = 8388608; // 0x800000 float:1.17549435E-38 double:4.144523E-317;\n r4.addFlags(r5);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4 = r7.context;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r5 = r7.intent;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4.startActivity(r5);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n goto L_0x002d;\n L_0x0059:\n r1 = move-exception;\n r4 = \"AirpushSDK\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r6 = \"Error whlie displaying push ad......: \";\n r5 = r5.append(r6);\n r6 = r1.getMessage();\n r5 = r5.append(r6);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n goto L_0x002d;\n L_0x0077:\n r1 = move-exception;\n r1.printStackTrace();\n goto L_0x002d;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.srortn.bsiubt135868.HandleClicks.displayUrl(java.lang.String):void\");\n }", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "private String m2194g() {\n return this.f980b.m1158c().getSharedPreferences(\"com.facebook.login.AuthorizationClient.WebViewAuthHandler.TOKEN_STORE_KEY\", 0).getString(\"TOKEN\", \"\");\n }", "public java.lang.String getOauth_token(){\r\n return localOauth_token;\r\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 }", "private String m81849m() {\n String str;\n if (this.f58083o) {\n str = UrlUtil.m84496b(UrlUtil.m84494a(this.f58071c, C6969H.m41409d(\"G738BEA0FAD3C\")));\n } else {\n str = this.f58070b;\n }\n if (!TextUtils.isEmpty(str)) {\n this.f58072d = Uri.parse(str);\n }\n return str;\n }", "private void m2192d(String str) {\n this.f980b.m1158c().getSharedPreferences(\"com.facebook.login.AuthorizationClient.WebViewAuthHandler.TOKEN_STORE_KEY\", 0).edit().putString(\"TOKEN\", str).apply();\n }", "public final void m60810a(String str) {\n PilgrimUserInfo pilgrimUserInfo = new PilgrimUserInfo();\n Map map = pilgrimUserInfo;\n map.put(\"environment\", this.f49816a.f49820c.getUrlBase());\n map.put(\"install-id\", this.f49816a.f49822e.a());\n map.put(\"platform\", \"android\");\n map.put(\"app-version\", String.valueOf(2776));\n map.put(\"os-version\", String.valueOf(VERSION.SDK_INT));\n map.put(\"User-Agent\", ManagerWebServices.USER_AGENT_STRING);\n pilgrimUserInfo.setUserId(str);\n PilgrimSdk.get().setUserInfo(pilgrimUserInfo).setNotificationHandler(this.f49816a).setLogLevel(LogLevel.ERROR);\n }", "@Override\r\n protected Map<String, String> getParams() {\n\r\n Map<String, String> params = new HashMap<String, String>();\r\n params.put(\"userID\", LoginActivity.USER_ID);\r\n\r\n return params;\r\n }", "private String getTokenizedUrl() {\n SharedPreferences sharedPreferences = getSharedPreferences();\n String tokenKey = MainActivity.sharedPrefKeys.TOKENIZED_URL.toString();\n\n if (sharedPreferences.contains(tokenKey)) {\n return sharedPreferences.getString(tokenKey, \"\");\n }\n return \"\";\n }", "private String setReferralzz(){\n String uid = mAuth.getCurrentUser().getUid();\n String link = INVITE_LINK+uid;\n FIRDynamicLinkComponents referalLink = new FIRDynamicLinkComponents(new NSURL(link) ,\"https://fingertipsandcompany.page.link\");\n\n FIRDynamicLinkIOSParameters iOSParameters = new FIRDynamicLinkIOSParameters(BUNDLE_ID);\n iOSParameters.setMinimumAppVersion(\"1.0.1\");\n iOSParameters.setAppStoreID(\"1496752335\");\n referalLink.setIOSParameters(iOSParameters);\n\n FIRDynamicLinkAndroidParameters androidParameters = new FIRDynamicLinkAndroidParameters(BUNDLE_ID);\n androidParameters.setMinimumVersion(125);\n referalLink.setAndroidParameters(androidParameters);\n\n\n referalLink.shorten(new VoidBlock3<NSURL, NSArray<NSString>, NSError>() {\n @Override\n public void invoke(NSURL shortURL, NSArray<NSString> nsStrings, NSError nsError) {\n if (nsError != null){\n System.out.println(\"Referal Link Shorter Error-------------------->\"+nsError);\n return;\n }\n mInvitationURL = shortURL.getAbsoluteString();\n System.out.println(\"Generated Referral Link \");\n\n }\n });\n\n return mInvitationURL;\n\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"action\", \"feed\");\n // Log.e(\"ttt for id>>\", UserId);\n params.put(\"id\", UserId);\n // Log.e(\"ttt for gid >>\", gid);\n params.put(\"gid\", gid);\n params.put(\"after\",lastId);\n return params;\n }", "@Override\n public void onSuccess(PendingDynamicLinkData pendingDynamicLinkData) {\n Uri deepLink = null;\n if (pendingDynamicLinkData != null) {\n deepLink = pendingDynamicLinkData.getLink();\n\n //String url = deepLink.toString(); https://www.m8s.world/1CV9P8\n String url = method(deepLink.toString());\n Log.d(\"+++++\", \"++ url deep ++\" + url.charAt(12));\n Log.d(\"+++++\", \"++ url deep ++\" + url);\n //Toast.makeText(HomeActivity.this, \"\"+url.charAt(13), Toast.LENGTH_SHORT).show();\n if (url.charAt(12) == 'm') {\n if (url != null) {\n if (dialog!=null)\n dialog.dismiss();\n DescrptedFragment descrptedFragment = new DescrptedFragment();\n Bundle bundle = new Bundle();\n descrptedFragment.setArguments(bundle);\n bundle.putString(\"deeplink\", url.toString());\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, descrptedFragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n } else {\n\n if (url.charAt(11) == 'm') {\n if (url.contains(\"=\"))\n {\n if (dialog!=null)\n dialog.dismiss();\n String[] separated = url.split(\"=\");\n String[] separateditem = separated[1].split(\"&\");\n DetailsFragment descrptedFragment = new DetailsFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"deeplink\", url.toString());\n bundle.putString(\"ItemId\", separateditem[0]);\n descrptedFragment.setArguments(bundle);\n Log.d(\"+++++\", \"++ url deep ++\" + separateditem[0]);\n Log.d(\"+++++\", \"++ url deep ++\" + separated[2]);\n SharedToken sharedToken = new SharedToken(HomeActivity.this);\n sharedToken.setCatid(separated[2]);\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, descrptedFragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n else\n {\n if (dialog!=null)\n dialog.dismiss();\n SplashScreen.code = deepLink.toString().substring(deepLink.toString().lastIndexOf('/') + 1);\n Intent intent = new Intent(HomeActivity.this, SplashScreen.class);\n startActivity(intent);\n\n finish();\n }\n\n }\n else {\n if (dialog!=null)\n dialog.dismiss();\n SplashScreen.code = deepLink.toString().substring(deepLink.toString().lastIndexOf('/') + 1);\n Intent intent = new Intent(HomeActivity.this, SplashScreen.class);\n startActivity(intent);\n\n finish();\n }\n }\n\n //Log.d(\"deeplink\", \"\" + code);\n }\n // ...\n }", "public final HttpURLConnection mo15945c(URL url, String str) {\n C4228f.C4229a a;\n try {\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.setConnectTimeout(10000);\n httpURLConnection.setUseCaches(false);\n httpURLConnection.setReadTimeout(10000);\n httpURLConnection.addRequestProperty(\"Content-Type\", \"application/json\");\n httpURLConnection.addRequestProperty(\"Accept\", \"application/json\");\n httpURLConnection.addRequestProperty(\"Content-Encoding\", \"gzip\");\n httpURLConnection.addRequestProperty(\"Cache-Control\", \"no-cache\");\n httpURLConnection.addRequestProperty(\"X-Android-Package\", this.f8010a.getPackageName());\n if (!(this.f8012c.get() == null || this.f8011b.get() == null || (a = this.f8012c.get().mo15810a(\"fire-installations-id\")) == C4228f.C4229a.NONE)) {\n httpURLConnection.addRequestProperty(\"x-firebase-client\", this.f8011b.get().mo15341a());\n httpURLConnection.addRequestProperty(\"x-firebase-client-log-type\", Integer.toString(a.f7823g));\n }\n String str2 = null;\n try {\n Context context = this.f8010a;\n byte[] a2 = C1957a.m2688a(context, context.getPackageName());\n if (a2 == null) {\n Log.e(\"ContentValues\", \"Could not get fingerprint hash for package: \" + this.f8010a.getPackageName());\n } else {\n str2 = C1961e.m2877a(a2, false);\n }\n } catch (PackageManager.NameNotFoundException e) {\n StringBuilder u = C0843a.m460u(\"No such package: \");\n u.append(this.f8010a.getPackageName());\n Log.e(\"ContentValues\", u.toString(), e);\n }\n httpURLConnection.addRequestProperty(\"X-Android-Cert\", str2);\n httpURLConnection.addRequestProperty(\"x-goog-api-key\", str);\n return httpURLConnection;\n } catch (IOException unused) {\n throw new C4291f(\"Firebase Installations Service is unavailable. Please try again later.\", C4291f.C4292a.UNAVAILABLE);\n }\n }", "public static final String appendId(String url){\n\t\treturn url+\"&APPID=\"+appId;\n\t}", "@FormUrlEncoded\n// @Headers(\"Oakey:ipv4api22344\")\n @Headers(\"Appkey:N8e1WhJ42OmkYJStLX4TEvzk0EblN38W\")\n @POST(Urls.REGISTRATION)\n Single<ResponseBody> register(@FieldMap HashMap<String, String> params);", "protected Bundle m2197b(Request request) {\n String join;\n Object obj;\n Bundle bundle = new Bundle();\n if (!C0475Q.m992a(request.m1128h())) {\n join = TextUtils.join(\",\", request.m1128h());\n String str = \"scope\";\n bundle.putString(str, join);\n m1175a(str, join);\n }\n bundle.putString(\"default_audience\", request.m1124d().m1182a());\n bundle.putString(\"state\", m1172a(request.m1122b()));\n AccessToken c = AccessToken.m446c();\n String j = c != null ? c.m456j() : null;\n join = \"access_token\";\n if (j == null || !j.equals(m2194g())) {\n C0475Q.m976a(this.f980b.m1158c());\n obj = \"0\";\n } else {\n bundle.putString(join, j);\n obj = \"1\";\n }\n m1175a(join, obj);\n return bundle;\n }", "public static void main(String[] args) throws Exception {\n String data=\"=1&sta=dc4f223eb429&shop=1&token=123232jd&r=8134ad506c4e&id=12a2c334&type=check&data=t572007166r0e0c0h31624hb18fe34010150aps1800api5si10em2pl1024pll3072tag20 sp1\";\r\n// String data=\"=1&sta=dc4f223eb429&shop=1&token=123232jd&r=8134ad506c4e&id=12a2c334&type=configa&data=ch1cas5cat5sc5t30603970r0e0c0h47368cst36000iga1st1\";\r\n// System.out.println((int)'&');\r\n// System.out.println(data);\r\n// data = \"c3RhPTY4YzYzYWUwZGZlZiZzaG9wPTEmdG9rZW49MTIzMjMyamQmcj05NGQ5YjNhOWMyNmYmaWQ9MmRlY2ZkY2UmdHlwZT1wcm9iZWEmZGF0YT0lMDE5NGQ5YjNhOWMyNmYmJTAxJTAxMDAxN2M0Y2QwMWNmeCUwMTc4NjI1NmM2NzI1YkwlMDE1Yzk2OWQ3MWVmNjNRJTAxOTRkOWIzYTljMjZmJTIxJTAxN2NjNzA5N2Y0MWFmeCUwMSUwMWRjODVkZWQxNjE3ZjklMDE1NGRjMWQ3MmE0NDB4JTAxNzg2MjU2YzY3MjViRSUwMTVjOTY5ZDcxZWY2M0olMDE5NGQ5YjNhOWMyNmYlMUUlMDFlNGE3YTA5M2UzOTJ4JTAxNGMzNDg4OTQ5YjY2eCUwMTNjNDZkODMwZTAyMDYlMDElMDE2MGYxODk2ZjJmY2JDJTAxOTRkOWIzYTljMjZmKyUwMTkwYzM1ZjE3NWQ2MXglMDE0YzM0ODg5NDliNjZ4JTAxZTRhN2M1YzhjYzA4JTNBJTAxJTAxZjBiNDI5ZDI1MTFjWCUwMTVjOTY5ZDcxZWY2MyU1QyUwMWQ0NmE2YTE1NWJmMXglMDE5NGQ5YjNhOWMyNmYqJTAxPQ==\";\r\n// data = \"c3RhPTY4YzYzYWUwZGZlZiZzaG9wPTEmdG9rZW49MTIzMjMyamQmcj05NGQ5YjNhOWMyNmYmaWQ9NWY0NTQzZWMmdHlwZT1wcm9iZWEmZGF0YT0lMDE2OGM2M2FlMGRmZWYmJTAxMDhmNjljMDYzNDdmRSUwMTIwM2NhZThlMjZlY0clMDE9\";\r\n System.out.println(WIFIReportVO.buildWIFIReportVO(data));\r\n System.out.println(WIFIReportVO.buildWIFIReportVO(new String(Base64Utils.decodeFromString(data))));\r\n\r\n// HttpUtils.postJSON(\"http://127.0.0.1:8080/soundtooth/callout\" , \"{\\\"user_name\\\":\\\"用户名\\\",\\\"iSeatNo\\\":\\\"1001001\\\",\\\"callId\\\":\\\"210ab0fdfca1439ba268a6bf8266305c\\\",\\\"telA\\\":\\\"18133331269\\\",\\\"telB\\\":\\\"181****1200\\\",\\\"telX\\\":\\\"17100445588\\\",\\\"telG\\\":\\\"07556882659\\\",\\\"duration\\\":\\\"19\\\",\\\"userData\\\":\\\"ef7ede6f36c84f1d45333863c38ff14c\\\"}\");\r\n//// HttpUtils.postJSON(\"http://127.0.0.1:8080/soundtooth/callout\" , \"{\\\"user_name\\\":\\\"用户名\\\",\\\"iSeatNo\\\":\\\"1001001\\\",\\\"callId\\\":\\\"210ab0fdfca1439ba268a6bf8266305c\\\",\\\"telA\\\":\\\"18133331269\\\",\\\"telB\\\":\\\"181****1200\\\",\\\"telX\\\":\\\"17100445588\\\",\\\"telG\\\":\\\"07556882659\\\",\\\"duration\\\":\\\"19\\\",\\\"userData\\\":\\\"ef7ede6f36c84f1d45333863c38ff14c\\\"}\");\r\n// System.out.println(HttpUtils.postJSON(\"http://s.slstdt.com/collector/collect\" , \"\"));\r\n// System.out.println(HttpUtils.postJSON(\"http://s.slstdt.com/soundtooth/callout\" , \"\"));\r\n\r\n\r\n }", "private void m14068b(Context context) {\n Intent intent = new Intent(context, this.b.mo3681e());\n Bundle a = m13948a(this.f13248l);\n a.putParcelable(\"receiver\", this.d);\n a.putString(\"request_id\", this.f13252p);\n a.putLong(\"user_id\", this.f13247k);\n a.putBoolean(\"email_enabled\", this.f13249m.booleanValue());\n intent.putExtras(a);\n m13951a((Activity) context, intent);\n }", "private void getUserInfo(boolean checkAccessTokenResult, final AccessToken accessToken) {\n if (!checkAccessTokenResult) {\n //access token is not valid refresh\n RequestParams params = new RequestParams(WeChatManager.getRefreshAccessTokenUrl(sURLRefreshAccessToken, accessToken));\n x.http().request(HttpMethod.GET, params, new Callback.CommonCallback<String>() {\n @Override\n public void onSuccess(String result) {\n parseRefreshAccessTokenResult(result);\n }\n\n @Override\n public void onError(Throwable ex, boolean isOnCallback) {\n }\n\n @Override\n public void onCancelled(CancelledException cex) {\n }\n\n @Override\n public void onFinished() {\n }\n });\n }\n\n showLoading();\n //get userinfo\n RequestParams requestParams = new RequestParams(WeChatManager.getUserInfoUrl(sURLUserInfo, accessToken));\n x.http().request(HttpMethod.GET, requestParams, new Callback.CommonCallback<String>() {\n @Override\n public void onSuccess(String result) {\n userinfo = new Gson().fromJson(result, UserInfoWX.class);\n\n String device_id= JPushInterface.getRegistrationID(LoginActivity.this);\n RequestParams entity = new RequestParams(Configurations.URL_THIRD_PARTY_LOGIN);\n entity.addParameter(Configurations.OPEN_ID, userinfo.getUnionid());\n entity.addParameter(Configurations.NICKNAME, userinfo.getNickname());\n entity.addParameter(Configurations.AVATOR, userinfo.getHeadimgurl());\n entity.addParameter(\"from\", \"wx\");\n entity.addParameter(Configurations.REG_ID,device_id);\n\n\n long timeStamp= TimeUtil.getCurrentTime();\n entity.addParameter(Configurations.TIMESTAMP, String.valueOf(timeStamp));\n entity.addParameter(Configurations.DEVICE_ID,device_id );\n\n Map<String,String> map=new TreeMap<>();\n map.put(Configurations.OPEN_ID, userinfo.getUnionid());\n map.put(Configurations.NICKNAME, userinfo.getNickname());\n map.put(Configurations.AVATOR, userinfo.getHeadimgurl());\n map.put(\"from\", \"wx\");\n map.put(Configurations.REG_ID,device_id);\n entity.addParameter(Configurations.SIGN, SignUtils.createSignString(device_id,timeStamp,map));\n\n\n x.http().request(HttpMethod.POST, entity, new CommonCallback<String>() {\n @Override\n public void onSuccess(String result) {\n LogUtil.d(TAG, result);\n hideLoading();\n\n try {\n JSONObject object = new JSONObject(result);\n if (object.getInt(Configurations.STATUSCODE) == 200) {\n User user = JSON.parseObject(object.getJSONObject(\"results\").getString(\"user\"), User.class);\n SharedPrefUtil.loginSuccess(SharedPrefUtil.LOGIN_VIA_WECHAT);\n UserUtils.saveUserInfo(user);\n\n MobclickAgent.onProfileSignIn(\"WeChat\", user.getNickname());\n finish();\n } else {\n ToastUtil.showShort(LoginActivity.this, object.getString(Configurations.STATUSMSG));\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n\n @Override\n public void onError(Throwable ex, boolean isOnCallback) {\n hideLoading();\n }\n\n @Override\n public void onCancelled(CancelledException cex) {\n }\n\n @Override\n public void onFinished() {\n }\n });\n\n\n }\n\n @Override\n public void onError(Throwable ex, boolean isOnCallback) {\n }\n\n @Override\n public void onCancelled(CancelledException cex) {\n }\n\n @Override\n public void onFinished() {\n }\n });\n }", "private void onWhatTokenButtonClick() {\r\n\r\n //Open related web post\r\n Intent i = new Intent(Intent.ACTION_VIEW);\r\n i.setData(Uri.parse(getString(R.string.url_github_about_tokens)));\r\n startActivity(i);\r\n }", "public void allinfo()\n\t\t{\n\t\t\tsendBroadcast(new Intent(\"android.provider.Telephony.SECRET_CODE\", Uri.parse(\"android_secret_code://4636\")));\n\n\n\t\t}", "private String m6598O() {\n try {\n Field declaredField = Class.forName(\"android.app.Activity\").getDeclaredField(\"mReferrer\");\n declaredField.setAccessible(true);\n return (String) declaredField.get(this);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"<reflectGetReferrer>,Exception: \" + e.toString());\n return null;\n }\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\t if (requestCode==1)\t{\r\n\t\t\t\tif (resultCode==OAuthV1AuthorizeWebView.RESULT_CODE)\t{\r\n\t\t\t\t\t//从返回的Intent中获取验证码\r\n\t\t\t\t\ttenoAuth=(OAuthV1) data.getExtras().getSerializable(\"oauth\");\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttenoAuth=OAuthV1Client.accessToken(tenoAuth);\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * 注意:此时oauth中的Oauth_token和Oauth_token_secret将发生变化,用新获取到的\r\n\t\t\t\t\t\t * 已授权的access_token和access_token_secret替换之前存储的未授权的request_token\r\n\t\t\t\t\t\t * 和request_token_secret.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\ttencent_token=tenoAuth.getOauthToken();\r\n\t\t\t\t\t\ttencent_access_token_secret=tenoAuth.getOauthTokenSecret();\r\n\t\t\t\t\t\tshellRW.putStringValue(\"tencent_token\", tencent_token);\r\n\t\t\t\t\t\tshellRW.putStringValue(\"tencent_access_token_secret\", tencent_access_token_secret);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\tIntent intent=new Intent(NewNoticeInfoActivity.this, TencentShareActivity.class);\r\n\t\t\t\t\tintent.putExtra(\"tencent\", LotnoDetailView.shareString);\r\n\t\t intent.putExtra(\"oauth\", tenoAuth);\r\n\t\t startActivity(intent);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\r\n\t}", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "public final void mo84806a(Context context, String str) {\n try {\n List b = m106812b(this.f86088h.mo103177a(str).f109095a.isRead());\n C25673a c = m106813c();\n c.setItems(b);\n C28503s.m93679a(c);\n String a = m106807a(b, str);\n int b2 = m106811b(b, str);\n C7195s a2 = C7195s.m22438a();\n StringBuilder sb = new StringBuilder(\"aweme://aweme/detail/\");\n sb.append(a);\n a2.mo18682a(C7203u.m22460a(sb.toString()).mo18694a(\"refer\", \"toplist_friend\").mo18694a(\"video_from\", \"from_window_following\").mo18693a(\"profile_enterprise_type\", b2).mo18695a());\n } catch (Exception e) {\n C6921a.m21554a(e);\n }\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n\n params.put(\"name\", user_name);\n params.put(\"emailid\", user_email);\n params.put(\"device_type\", \"android\");\n params.put(\"device_id\", deviceId);\n params.put(\"phone_Number\", user_phone);\n params.put(\"complex_Number\", complex_id);\n params.put(\"flat_id\", flat_id);\n params.put(\"fcm_token\", globalClass.getFcm_reg_token());\n params.put(\"city_id\", city_id);\n params.put(\"complex_name\", complex_name);\n params.put(\"user_type\", user_type);\n\n Log.d(TAG, \"params \"+params);\n\n return params;\n }", "private static void m751a(Activity activity, String str, String str2, String str3) {\n if (!TextUtils.isEmpty(str2) && !TextUtils.isEmpty(str3)) {\n Intent intent = new Intent();\n try {\n intent.setPackage(\"hk.alipay.wallet\");\n intent.setData(Uri.parse(\"alipayhk://platformapi/startApp?appId=20000125&schemePaySession=\" + URLEncoder.encode(str, Utf8Charset.NAME) + \"&orderSuffix=\" + URLEncoder.encode(str2, Utf8Charset.NAME) + \"&packageName=\" + URLEncoder.encode(str3, Utf8Charset.NAME) + \"&externalPkgName=\" + URLEncoder.encode(str3, Utf8Charset.NAME)));\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n C0646c.m1017b(\"msp\", \"PayTask:payReuslt: UnsupportedEncodingException:\" + e);\n }\n if (activity != null) {\n activity.startActivity(intent);\n }\n }\n }", "private void collectToken()\n {\n String token = FirebaseInstanceId.getInstance().getId();\n Log.d(\"MYTAG\", \"Firebase_token \" + token);\n }", "@Override\n public void onSuccess(String message) {\n Toast.makeText(getApplicationContext(), \"Successfully shared with \" + message , Toast.LENGTH_LONG).show();\n //TODO SET THE DATA FOR SHARED FRAGMENT - READ FROM FB HERE AND ONSUCCESS SET THE DATA.\n\n\n\n }", "public static String m21387a(Context context) {\n String str = \"wns_ab\";\n try {\n if (TextUtils.isEmpty(f16890a)) {\n f16890a = Secure.getString(context.getContentResolver(), \"android_id\");\n }\n if (TextUtils.isEmpty(f16890a)) {\n f16890a = C5206p.m21472b(context, str);\n if (TextUtils.isEmpty(f16890a)) {\n f16890a = UUID.randomUUID().toString().replace(\"-\", \"\");\n C5206p.m21471a(context, str, f16890a);\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return f16890a;\n }", "@Override\n public void onSuccess(PendingDynamicLinkData pendingDynamicLinkData) {\n Uri deepLink = null;\n if (pendingDynamicLinkData != null) {\n deepLink = pendingDynamicLinkData.getLink();\n\n //String url = deepLink.toString();\n String url = method(deepLink.toString());\n Log.d(\"+++++\", \"++ url deep ++\" + url.charAt(12));\n Log.d(\"+++++\", \"++ url deep ++\" + url);\n //Toast.makeText(HomeActivity.this, \"\"+url.charAt(13), Toast.LENGTH_SHORT).show();\n if (url.charAt(12) == 'm') {\n if (url != null) {\n DescrptedFragment descrptedFragment = new DescrptedFragment();\n Bundle bundle = new Bundle();\n descrptedFragment.setArguments(bundle);\n bundle.putString(\"deeplink\", url.toString());\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, descrptedFragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n } else {\n\n if (url.charAt(11) == 'm') {\n if (url.contains(\"=\")) {\n String[] separated = url.split(\"=\");\n String[] separateditem = separated[1].split(\"&\");\n DetailsFragment descrptedFragment = new DetailsFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"deeplink\", url.toString());\n bundle.putString(\"ItemId\", separateditem[0]);\n descrptedFragment.setArguments(bundle);\n Log.d(\"+++++\", \"++ url deep ++\" + separateditem[0]);\n Log.d(\"+++++\", \"++ url deep ++\" + separated[2]);\n SharedToken sharedToken = new SharedToken(HomeActivity.this);\n sharedToken.setCatid(separated[2]);\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, descrptedFragment);\n transaction.addToBackStack(null);\n transaction.commit();\n } else {\n SplashScreen.code = deepLink.toString().substring(deepLink.toString().lastIndexOf('/') + 1);\n Intent intent = new Intent(HomeActivity.this, SplashScreen.class);\n startActivity(intent);\n finish();\n }\n\n } else {\n\n SplashScreen.code = deepLink.toString().substring(deepLink.toString().lastIndexOf('/') + 1);\n Intent intent = new Intent(HomeActivity.this, SplashScreen.class);\n startActivity(intent);\n finish();\n }\n }\n\n //Log.d(\"deeplink\", \"\" + code);\n }\n // ...\n }", "private void m26dj(com.google.android.apps.nexuslauncher.search.SearchResult r8) {\n /*\n r7 = this;\n android.net.Uri$Builder r0 = new android.net.Uri$Builder\n r0.<init>()\n java.lang.String r1 = \"content\"\n android.net.Uri$Builder r0 = r0.scheme(r1)\n java.lang.String r1 = com.google.android.apps.nexuslauncher.search.AppSearchProvider.AUTHORITY\n android.net.Uri$Builder r0 = r0.authority(r1)\n java.lang.String r1 = r8.mQuery\n android.net.Uri$Builder r0 = r0.appendPath(r1)\n android.net.Uri r2 = r0.build()\n r0 = 0\n android.content.Context r1 = r7.mContext // Catch:{ all -> 0x005f }\n android.content.ContentResolver r1 = r1.getContentResolver() // Catch:{ all -> 0x005f }\n r3 = 0\n r4 = 0\n r5 = 0\n r6 = 0\n android.database.Cursor r1 = r1.query(r2, r3, r4, r5, r6) // Catch:{ all -> 0x005f }\n if (r1 == 0) goto L_0x004e\n java.lang.String r0 = \"suggest_intent_data\"\n int r0 = r1.getColumnIndex(r0) // Catch:{ all -> 0x004c }\n L_0x0032:\n boolean r2 = r1.moveToNext() // Catch:{ all -> 0x004c }\n if (r2 == 0) goto L_0x004e\n java.util.ArrayList<com.android.launcher3.util.ComponentKey> r2 = r8.mApps // Catch:{ all -> 0x004c }\n java.lang.String r3 = r1.getString(r0) // Catch:{ all -> 0x004c }\n android.net.Uri r3 = android.net.Uri.parse(r3) // Catch:{ all -> 0x004c }\n android.content.Context r4 = r7.mContext // Catch:{ all -> 0x004c }\n com.android.launcher3.util.ComponentKey r3 = com.google.android.apps.nexuslauncher.search.AppSearchProvider.uriToComponent(r3, r4) // Catch:{ all -> 0x004c }\n r2.add(r3) // Catch:{ all -> 0x004c }\n goto L_0x0032\n L_0x004c:\n r8 = move-exception\n goto L_0x0061\n L_0x004e:\n if (r1 == 0) goto L_0x0053\n r1.close()\n L_0x0053:\n android.os.Handler r0 = r7.mUiHandler\n r1 = 200(0xc8, float:2.8E-43)\n android.os.Message r8 = android.os.Message.obtain(r0, r1, r8)\n r8.sendToTarget()\n return\n L_0x005f:\n r8 = move-exception\n r1 = r0\n L_0x0061:\n if (r1 == 0) goto L_0x0066\n r1.close()\n L_0x0066:\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.apps.nexuslauncher.search.SearchThread.m26dj(com.google.android.apps.nexuslauncher.search.SearchResult):void\");\n }", "static String m13919a(Context context, C6924p paymentStateHandler) {\n JSONObject deviceInfo = new JSONObject();\n try {\n String androidId = Secure.getString(context.getContentResolver(), \"android_id\");\n deviceInfo.put(\"deviceFingerprintVersion\", \"1.0\");\n deviceInfo.put(\"platform\", \"android\");\n deviceInfo.put(\"apiVersion\", \"4\");\n deviceInfo.put(\"osVersion\", VERSION.SDK_INT);\n deviceInfo.put(\"sdkVersion\", \"1.10.0\");\n deviceInfo.put(\"deviceIdentifier\", androidId);\n deviceInfo.put(\"locale\", C6912j.m14059a(context));\n return Base64.encodeToString(deviceInfo.toString().getBytes(Charset.forName(\"UTF-8\")), 2);\n } catch (JSONException jsonException) {\n Log.e(f12559a, \"Token could not be created\", jsonException);\n paymentStateHandler.mo22387b((Throwable) jsonException);\n return \"\";\n }\n }", "public static java.lang.String a(android.content.Context r16, android.net.Uri r17) {\n /*\n r1 = 2\n java.lang.Object[] r8 = new java.lang.Object[r1]\n r15 = 0\n r8[r15] = r16\n r6 = 1\n r8[r6] = r17\n com.meituan.robust.ChangeQuickRedirect r10 = f17527a\n java.lang.Class[] r13 = new java.lang.Class[r1]\n java.lang.Class<android.content.Context> r2 = android.content.Context.class\n r13[r15] = r2\n java.lang.Class<android.net.Uri> r2 = android.net.Uri.class\n r13[r6] = r2\n java.lang.Class<java.lang.String> r14 = java.lang.String.class\n r9 = 0\n r11 = 1\n r12 = 13601(0x3521, float:1.9059E-41)\n boolean r2 = com.meituan.robust.PatchProxy.isSupport(r8, r9, r10, r11, r12, r13, r14)\n if (r2 == 0) goto L_0x0041\n java.lang.Object[] r2 = new java.lang.Object[r1]\n r2[r15] = r16\n r2[r6] = r17\n r8 = 0\n com.meituan.robust.ChangeQuickRedirect r9 = f17527a\n r10 = 1\n r11 = 13601(0x3521, float:1.9059E-41)\n java.lang.Class[] r12 = new java.lang.Class[r1]\n java.lang.Class<android.content.Context> r0 = android.content.Context.class\n r12[r15] = r0\n java.lang.Class<android.net.Uri> r0 = android.net.Uri.class\n r12[r6] = r0\n java.lang.Class<java.lang.String> r13 = java.lang.String.class\n r7 = r2\n java.lang.Object r0 = com.meituan.robust.PatchProxy.accessDispatch(r7, r8, r9, r10, r11, r12, r13)\n java.lang.String r0 = (java.lang.String) r0\n return r0\n L_0x0041:\n r8 = 0\n if (r17 != 0) goto L_0x0045\n return r8\n L_0x0045:\n java.lang.String r1 = r17.getScheme()\n boolean r2 = com.bytedance.common.utility.StringUtils.isEmpty(r1)\n if (r2 != 0) goto L_0x010a\n java.lang.String r2 = \"file\"\n boolean r2 = r2.equals(r1)\n if (r2 == 0) goto L_0x0059\n goto L_0x010a\n L_0x0059:\n java.lang.String r2 = \"http\"\n boolean r2 = r2.equals(r1)\n if (r2 == 0) goto L_0x0066\n java.lang.String r0 = r17.toString()\n return r0\n L_0x0066:\n java.lang.String r2 = \"content\"\n boolean r1 = r2.equals(r1)\n if (r1 == 0) goto L_0x0109\n java.lang.String[] r11 = new java.lang.String[r6]\n java.lang.String r1 = \"_data\"\n r11[r15] = r1\n java.lang.String r9 = \"\"\n android.content.ContentResolver r1 = r16.getContentResolver() // Catch:{ Exception -> 0x00a3, all -> 0x009b }\n r4 = 0\n r5 = 0\n r10 = 0\n r2 = r17\n r3 = r11\n r12 = 1\n r6 = r10\n android.database.Cursor r1 = r1.query(r2, r3, r4, r5, r6) // Catch:{ Exception -> 0x00a4, all -> 0x009b }\n boolean r2 = r1.moveToFirst() // Catch:{ Exception -> 0x00a5, all -> 0x0099 }\n if (r2 == 0) goto L_0x0091\n java.lang.String r2 = r1.getString(r15) // Catch:{ Exception -> 0x00a5, all -> 0x0099 }\n r9 = r2\n L_0x0091:\n if (r1 == 0) goto L_0x0096\n r1.close() // Catch:{ Exception -> 0x00a5, all -> 0x0099 }\n L_0x0096:\n if (r1 == 0) goto L_0x00aa\n goto L_0x00a7\n L_0x0099:\n r0 = move-exception\n goto L_0x009d\n L_0x009b:\n r0 = move-exception\n r1 = r8\n L_0x009d:\n if (r1 == 0) goto L_0x00a2\n r1.close() // Catch:{ Exception -> 0x00a2 }\n L_0x00a2:\n throw r0\n L_0x00a3:\n r12 = 1\n L_0x00a4:\n r1 = r8\n L_0x00a5:\n if (r1 == 0) goto L_0x00aa\n L_0x00a7:\n r1.close() // Catch:{ Exception -> 0x00aa }\n L_0x00aa:\n r2 = r1\n r1 = r9\n boolean r3 = com.bytedance.common.utility.StringUtils.isEmpty(r1)\n if (r3 == 0) goto L_0x0108\n android.content.ContentResolver r9 = r16.getContentResolver() // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n java.lang.String r0 = \"_id= ?\"\n java.lang.String r3 = r17.getLastPathSegment() // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n int r4 = android.os.Build.VERSION.SDK_INT // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n r5 = 19\n if (r4 < r5) goto L_0x00d8\n boolean r4 = com.bytedance.common.utility.StringUtils.isEmpty(r3) // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n if (r4 != 0) goto L_0x00d8\n java.lang.String r4 = \":\"\n boolean r4 = r3.contains(r4) // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n if (r4 == 0) goto L_0x00d8\n java.lang.String r4 = \":\"\n java.lang.String[] r3 = r3.split(r4) // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n r3 = r3[r12] // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n L_0x00d8:\n java.lang.String[] r13 = new java.lang.String[r12] // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n r13[r15] = r3 // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n android.net.Uri r10 = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n r14 = 0\n r12 = r0\n android.database.Cursor r3 = r9.query(r10, r11, r12, r13, r14) // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n boolean r0 = r3.moveToFirst() // Catch:{ Exception -> 0x0105, all -> 0x00fa }\n if (r0 == 0) goto L_0x00ef\n java.lang.String r0 = r3.getString(r15) // Catch:{ Exception -> 0x0105, all -> 0x00fa }\n r1 = r0\n L_0x00ef:\n if (r3 == 0) goto L_0x00f4\n r3.close() // Catch:{ Exception -> 0x0105, all -> 0x00fa }\n L_0x00f4:\n if (r3 == 0) goto L_0x0108\n L_0x00f6:\n r3.close() // Catch:{ Exception -> 0x0108 }\n goto L_0x0108\n L_0x00fa:\n r0 = move-exception\n r2 = r3\n goto L_0x00fe\n L_0x00fd:\n r0 = move-exception\n L_0x00fe:\n if (r2 == 0) goto L_0x0103\n r2.close() // Catch:{ Exception -> 0x0103 }\n L_0x0103:\n throw r0\n L_0x0104:\n r3 = r2\n L_0x0105:\n if (r3 == 0) goto L_0x0108\n goto L_0x00f6\n L_0x0108:\n return r1\n L_0x0109:\n return r8\n L_0x010a:\n java.lang.String r0 = r17.getPath()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.android.livesdk.utils.a.a(android.content.Context, android.net.Uri):java.lang.String\");\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(requestCode==request_Code){\n AuthenticationResponse response = AuthenticationClient.getResponse(resultCode,data);\n if(response.getType()==AuthenticationResponse.Type.TOKEN){\n accessToken = response.getAccessToken();\n }else{\n }\n }\n new SpotifyNewRelease(accessToken).execute();\n }", "public static String[] parseRedirectUrl(String url) throws Exception\n {\n String access_token = extractPattern(url, \"access_token=(.*?)&\");\n Log.i(TAG, \"access_token=\" + access_token);\n String user_id = extractPattern(url, \"user_id=(\\\\d*)\");\n Log.i(TAG, \"user_id=\" + user_id);\n \n if(user_id==null || user_id.length()==0 || access_token==null || access_token.length()==0)\n throw new Exception(\"Failed to parse redirect url \"+url);\n return new String[]{access_token, user_id};\n }", "private static byte[] m5293aA(String str) {\n try {\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(C1248f.getKey());\n return Arrays.copyOf(sb.toString().getBytes(AudienceNetworkActivity.WEBVIEW_ENCODING), 16);\n } catch (Throwable unused) {\n return null;\n }\n }", "public static android.net.Uri a(android.content.Context r19, java.lang.String r20) {\n /*\n r2 = 2\n java.lang.Object[] r3 = new java.lang.Object[r2]\n r10 = 0\n r3[r10] = r19\n r11 = 1\n r3[r11] = r20\n com.meituan.robust.ChangeQuickRedirect r5 = f17527a\n java.lang.Class[] r8 = new java.lang.Class[r2]\n java.lang.Class<android.content.Context> r4 = android.content.Context.class\n r8[r10] = r4\n java.lang.Class<java.lang.String> r4 = java.lang.String.class\n r8[r11] = r4\n java.lang.Class<android.net.Uri> r9 = android.net.Uri.class\n r4 = 0\n r6 = 1\n r7 = 13600(0x3520, float:1.9058E-41)\n boolean r3 = com.meituan.robust.PatchProxy.isSupport(r3, r4, r5, r6, r7, r8, r9)\n if (r3 == 0) goto L_0x0042\n java.lang.Object[] r12 = new java.lang.Object[r2]\n r12[r10] = r19\n r12[r11] = r20\n r13 = 0\n com.meituan.robust.ChangeQuickRedirect r14 = f17527a\n r15 = 1\n r16 = 13600(0x3520, float:1.9058E-41)\n java.lang.Class[] r0 = new java.lang.Class[r2]\n java.lang.Class<android.content.Context> r1 = android.content.Context.class\n r0[r10] = r1\n java.lang.Class<java.lang.String> r1 = java.lang.String.class\n r0[r11] = r1\n java.lang.Class<android.net.Uri> r18 = android.net.Uri.class\n r17 = r0\n java.lang.Object r0 = com.meituan.robust.PatchProxy.accessDispatch(r12, r13, r14, r15, r16, r17, r18)\n android.net.Uri r0 = (android.net.Uri) r0\n return r0\n L_0x0042:\n boolean r2 = com.bytedance.common.utility.StringUtils.isEmpty(r20)\n r3 = 0\n if (r2 == 0) goto L_0x004a\n return r3\n L_0x004a:\n android.content.ContentResolver r4 = r19.getContentResolver() // Catch:{ Exception -> 0x0088, all -> 0x0081 }\n java.lang.String r7 = \"_data= ?\"\n java.lang.String[] r8 = new java.lang.String[r11] // Catch:{ Exception -> 0x0088, all -> 0x0081 }\n r8[r10] = r20 // Catch:{ Exception -> 0x0088, all -> 0x0081 }\n java.lang.String[] r6 = new java.lang.String[r11] // Catch:{ Exception -> 0x0088, all -> 0x0081 }\n java.lang.String r0 = \"_id\"\n r6[r10] = r0 // Catch:{ Exception -> 0x0088, all -> 0x0081 }\n android.net.Uri r5 = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI // Catch:{ Exception -> 0x0088, all -> 0x0081 }\n r9 = 0\n android.database.Cursor r1 = r4.query(r5, r6, r7, r8, r9) // Catch:{ Exception -> 0x0088, all -> 0x0081 }\n boolean r0 = r1.moveToFirst() // Catch:{ Exception -> 0x0089, all -> 0x007e }\n if (r0 == 0) goto L_0x007b\n java.lang.String r0 = r1.getString(r10) // Catch:{ Exception -> 0x0089, all -> 0x007e }\n android.net.Uri r2 = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI // Catch:{ Exception -> 0x0089, all -> 0x007e }\n long r4 = java.lang.Long.parseLong(r0) // Catch:{ Exception -> 0x0089, all -> 0x007e }\n android.net.Uri r0 = android.content.ContentUris.withAppendedId(r2, r4) // Catch:{ Exception -> 0x0089, all -> 0x007e }\n if (r1 == 0) goto L_0x007a\n r1.close()\n L_0x007a:\n return r0\n L_0x007b:\n if (r1 == 0) goto L_0x008e\n goto L_0x008b\n L_0x007e:\n r0 = move-exception\n r3 = r1\n goto L_0x0082\n L_0x0081:\n r0 = move-exception\n L_0x0082:\n if (r3 == 0) goto L_0x0087\n r3.close()\n L_0x0087:\n throw r0\n L_0x0088:\n r1 = r3\n L_0x0089:\n if (r1 == 0) goto L_0x008e\n L_0x008b:\n r1.close()\n L_0x008e:\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.android.livesdk.utils.a.a(android.content.Context, java.lang.String):android.net.Uri\");\n }", "public static String m585j(Context context) {\r\n try {\r\n return Secure.getString(context.getContentResolver(), \"android_id\");\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "public void printHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\"com.lostfind\", PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", \"KEYHASH::::\"+Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }", "@DISPID(1097) //= 0x449. The runtime will prefer the VTID if present\n @VTID(20)\n java.lang.String urlUnencoded();", "public final void cZO() {\n AppMethodBeat.i(7673);\n Bundle bundle = new Bundle();\n bundle.putLong(\"msg_id\", cZv().getIntent().getLongExtra(\"msg_id\", Long.MIN_VALUE));\n bundle.putString(\"sns_local_id\", cZv().getIntent().getStringExtra(\"sns_local_id\"));\n bundle.putInt(\"news_svr_id\", cZv().getIntent().getIntExtra(\"news_svr_id\", 0));\n bundle.putString(\"news_svr_tweetid\", cZv().getIntent().getStringExtra(\"news_svr_tweetid\"));\n bundle.putInt(\"message_index\", cZv().getIntent().getIntExtra(\"message_index\", 0));\n bundle.putString(\"rawUrl\", cZv().cOG);\n if (!bo.isNullOrNil(cZv().cOG) && cZv().cOG.endsWith(\"#rd\")) {\n String substring = cZv().cOG.substring(0, cZv().cOG.length() - 3);\n if (!(bo.isNullOrNil(cZv().uxh) || cZv().uxh.startsWith(substring))) {\n bundle.putString(\"rawUrl\", cZv().uxh);\n bundle.putLong(\"msg_id\", Long.MIN_VALUE);\n }\n } else if (!(bo.isNullOrNil(cZv().uxh) || cZv().uxh.startsWith(cZv().cOG))) {\n bundle.putString(\"rawUrl\", cZv().uxh);\n bundle.putLong(\"msg_id\", Long.MIN_VALUE);\n }\n Intent intent = cZv().getIntent();\n if (intent != null) {\n bundle.putString(\"preChatName\", intent.getStringExtra(\"preChatName\"));\n bundle.putInt(\"preMsgIndex\", intent.getIntExtra(\"preMsgIndex\", 0));\n bundle.putString(\"prePublishId\", intent.getStringExtra(\"prePublishId\"));\n bundle.putString(\"preUsername\", intent.getStringExtra(\"preUsername\"));\n }\n try {\n com.tencent.mm.plugin.webview.stub.b Z = cZv().icy.Z(bundle);\n if (Z.cYV()) {\n cZv().uhz.bJ(\"sendAppMessage\", false);\n com.tencent.mm.plugin.webview.ui.tools.jsapi.d dVar = cZv().uhz;\n HashMap cZP = cZP();\n if (dVar.ready) {\n Bundle JL = dVar.JL(1);\n if (JL == null || !JL.getBoolean(\"WebViewShare_reslut\", false)) {\n cZP = new HashMap();\n cZP.put(\"scene\", \"favorite\");\n dVar.uFo.evaluateJavascript(\"javascript:WeixinJSBridge._handleMessageFromWeixin(\" + i.a.b(\"menu:share:appmessage\", cZP, dVar.uFv, dVar.uFw) + \")\", null);\n try {\n dVar.icy.L(\"scene\", \"favorite\", dVar.uqj);\n } catch (Exception e) {\n ab.w(\"MicroMsg.JsApiHandler\", \"jsapiBundlePutString, ex = \" + e.getMessage());\n }\n } else {\n try {\n dVar.icy.L(\"scene\", \"favorite\", dVar.uqj);\n } catch (Exception e2) {\n ab.w(\"MicroMsg.JsApiHandler\", \"jsapiBundlePutString, ex = \" + e2.getMessage());\n }\n dVar.h(JL, \"sendAppMessage\");\n }\n } else {\n try {\n dVar.icy.L(\"scene\", \"favorite\", dVar.uqj);\n dVar.h(dVar.aL(cZP), \"sendAppMessage\");\n } catch (Exception e22) {\n ab.w(\"MicroMsg.JsApiHandler\", \"jsapiBundlePutString, ex = \" + e22.getMessage());\n }\n }\n ab.i(\"MicroMsg.WebViewMenuHelper\", \"on favorite simple url\");\n AppMethodBeat.o(7673);\n return;\n }\n com.tencent.mm.plugin.fav.ui.c.a(Z.getRet(), cZv(), cZv().mUw);\n if (Z.getRet() == 0) {\n Jo(1);\n AppMethodBeat.o(7673);\n return;\n }\n Jo(2);\n AppMethodBeat.o(7673);\n } catch (Exception e222) {\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"edw, favoriteUrl fail, ex = \" + e222.getMessage());\n AppMethodBeat.o(7673);\n }\n }", "public String getParameters() {\n String parameters = \"\";\n try {\n String username = GetSetSharedPreferences.getDefaults(\"username\", getApplicationContext());\n String password = GetSetSharedPreferences.getDefaults(\"password\", getApplicationContext());\n String firstParameter = \"username=\" + URLEncoder.encode(username, \"UTF-8\");\n String secondParameter = \"password=\" + URLEncoder.encode(password, \"UTF-8\");\n String thirdParameter = \"grant_type=\" + URLEncoder.encode(\"password\", \"UTF-8\");\n parameters = firstParameter + \"&&\" + secondParameter + \"&&\" + thirdParameter;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return parameters;\n }", "public final void mo15948g(HttpURLConnection httpURLConnection, @Nullable String str, @NonNull String str2) {\n try {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(\"fid\", str);\n jSONObject.put(\"appId\", str2);\n jSONObject.put(\"authVersion\", \"FIS_v2\");\n jSONObject.put(\"sdkVersion\", \"a:16.3.5\");\n m7911i(httpURLConnection, jSONObject.toString().getBytes(\"UTF-8\"));\n } catch (JSONException e) {\n throw new IllegalStateException(e);\n }\n }", "public void startToNormalFlow() {\n new AppController().setConnectivityListener(this);\r\n\r\n try {\r\n objLocationDetails = new LocationDetails(LoginActivity.this);\r\n objLocationDetails.startTracking();\r\n } catch (NullPointerException ne) {\r\n ne.printStackTrace();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n arrPermission = Arrays.asList(\"public_profile\", \"email\", \"user_friends\");\r\n\r\n objSharedPreferences = getSharedPreferences(Constants.PROFILE_PREFERENCES, MODE_PRIVATE);\r\n\r\n try {\r\n PackageInfo info = getPackageManager().getPackageInfo(\"com.shout.shout_test\", PackageManager.GET_SIGNATURES);\r\n for (Signature signature : info.signatures) {\r\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\r\n md.update(signature.toByteArray());\r\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\r\n }\r\n } catch (PackageManager.NameNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (NoSuchAlgorithmException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n// LoginManager.getInstance().logOut();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n\r\n\r\n /*mRegistrationBroadcastReceiver = new BroadcastReceiver() {\r\n @Override\r\n public void onReceive(Context context, Intent intent) {\r\n boolean sentToken = objSharedPreferences.getBoolean(Constants.SENT_TOKEN_TO_SERVER, false);\r\n if (sentToken) {\r\n // Get sentToken\r\n //setResultCode(Activity.RESULT_OK);\r\n } else {\r\n // Token Error\r\n }\r\n }\r\n };*/\r\n\r\n Intent intent = new Intent(this, MyInstanceIDListenerService.class);\r\n startService(intent);\r\n\r\n /*if (Utils.checkPlayServices(LoginActivity.this)) {\r\n // Start IntentService to register this application with GCM.\r\n Intent intent = new Intent(this, MyInstanceIDListenerService.class);\r\n startService(intent);\r\n }*/\r\n init();\r\n\r\n\r\n arrIntroPagerModel = new ArrayList<IntroPagerModel>();\r\n\r\n for (int index = 0; index < 5; index++) {\r\n IntroPagerModel objIntroPagerModel = null;\r\n switch (index) {\r\n case 0:\r\n objIntroPagerModel = new IntroPagerModel(R.drawable.slide1, \"example\");\r\n arrIntroPagerModel.add(objIntroPagerModel);\r\n break;\r\n case 1:\r\n objIntroPagerModel = new IntroPagerModel(R.drawable.slide3, \"example\");\r\n arrIntroPagerModel.add(objIntroPagerModel);\r\n break;\r\n case 2:\r\n objIntroPagerModel = new IntroPagerModel(R.drawable.slide4, \"example\");\r\n arrIntroPagerModel.add(objIntroPagerModel);\r\n break;\r\n case 3:\r\n objIntroPagerModel = new IntroPagerModel(R.drawable.slide5, \"example\");\r\n arrIntroPagerModel.add(objIntroPagerModel);\r\n break;\r\n case 4:\r\n objIntroPagerModel = new IntroPagerModel(R.drawable.slide6, \"example\");\r\n arrIntroPagerModel.add(objIntroPagerModel);\r\n break;\r\n }\r\n }\r\n objIntroPagerAdapter = new IntroPagerAdapter(LoginActivity.this, arrIntroPagerModel);\r\n viewPagerIntroSlider.setAdapter(objIntroPagerAdapter);\r\n if (arrIntroPagerModel.size() > 0) {\r\n relativeIntroBackground.setBackgroundResource(R.drawable.slide2);\r\n objViewPagerIndicator.setUnSelectedColor(getResources().getColor(R.color.color_unselected_indicator));\r\n objViewPagerIndicator.setSelectedColor(getResources().getColor(R.color.color_selected_indicator));\r\n objViewPagerIndicator.build(arrIntroPagerModel.size());\r\n objViewPagerIndicator.showIndicator(0);\r\n }\r\n viewPagerIntroSlider.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {\r\n @Override\r\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\r\n\r\n }\r\n\r\n @Override\r\n public void onPageSelected(int position) {\r\n objViewPagerIndicator.showIndicator(position);\r\n }\r\n\r\n @Override\r\n public void onPageScrollStateChanged(int state) {\r\n\r\n }\r\n });\r\n\r\n viewPagerIntroSlider.setPageTransformer(true, new ViewPager.PageTransformer() {\r\n @Override\r\n public void transformPage(View view, float position) {\r\n System.out.print(\"SCROLLED POSITION : \" + position);\r\n\r\n if (position <= -1.0F || position >= 1.0F) {\r\n view.setTranslationX(view.getWidth() * position);\r\n view.setAlpha(0.0F);\r\n } else if (position == 0.0F) {\r\n view.setTranslationX(view.getWidth() * position);\r\n view.setAlpha(1.0F);\r\n } else {\r\n // position is between -1.0F & 0.0F OR 0.0F & 1.0F\r\n view.setTranslationX(view.getWidth() * -position);\r\n view.setAlpha(1.0F - Math.abs(position));\r\n }\r\n /* view.setAlpha(1 - Math.abs(position));\r\n if (position < 0) {\r\n view.setScrollX((int) ((float) (view.getWidth()) * position));\r\n } else if (position > 0) {\r\n view.setScrollX(-(int) ((float) (view.getWidth()) * -position));\r\n } else {\r\n view.setScrollX(0);\r\n }*/\r\n }\r\n });\r\n }", "private void getRegisterDetails() {\n String android_id = Settings.Secure.getString(this.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Log.d(\"androidId\", android_id);\n\n int loginDeviceType = 1;\n\n APIHelper.init_connection(getApplicationContext(), android_id, loginDeviceType, new Callback() {\n @Override\n public void onSuccess(JSONObject response) {\n try {\n AppController.user_id = response.getString(\"user_id\");\n AppController.user_device_id = response.getString(\"user_device_id\");\n mProgressBar.setProgress(60);\n startApp();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n\n @Override\n public void onFail(String error) {\n }\n });\n }", "static void m13805a(Context context, String applicationId) {\n if (context == null || applicationId == null) {\n throw new IllegalArgumentException(\"Both context and applicationId must be non-null\");\n }\n try {\n C6709b identifiers = C6709b.m13508a(context);\n SharedPreferences preferences = context.getSharedPreferences(\"com.facebook.sdk.attributionTracking\", 0);\n StringBuilder sb = new StringBuilder();\n sb.append(applicationId);\n sb.append(\"ping\");\n String pingKey = sb.toString();\n long lastPing = preferences.getLong(pingKey, 0);\n GraphRequest publishRequest = GraphRequest.m12875a((AccessToken) null, String.format(\"%s/activities\", new Object[]{applicationId}), C6605k.m13113a(C6606a.MOBILE_INSTALL_EVENT, identifiers, C6638q.m13213a(context), m13807a(context), context), (C6545b) null);\n if (lastPing == 0) {\n C6817z b = publishRequest.mo19680b();\n Editor editor = preferences.edit();\n editor.putLong(pingKey, System.currentTimeMillis());\n editor.apply();\n }\n } catch (JSONException e) {\n throw new FacebookException(\"An error occurred while publishing install.\", e);\n } catch (Exception e2) {\n C6694S.m13422a(\"Facebook-publish\", e2);\n }\n }", "private String decodeUserId(String encodedUri) {\n\t\tString decoded = new String(DatatypeConverter.parseBase64Binary(encodedUri));\r\n\t\tSystem.out.println(\"user id is \" + decoded);\r\n\t\treturn decoded;\r\n\t}", "String getFbUrl (ReadOnlyPerson target);", "static void m13810b(Context context) {\n if (context != null) {\n try {\n ApplicationInfo ai = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128);\n if (ai != null && ai.metaData != null) {\n if (f12472d == null) {\n Object appId = ai.metaData.get(\"com.facebook.sdk.ApplicationId\");\n if (appId instanceof String) {\n String appIdString = (String) appId;\n if (appIdString.toLowerCase(Locale.ROOT).startsWith(\"fb\")) {\n f12472d = appIdString.substring(2);\n } else {\n f12472d = appIdString;\n }\n } else if (appId instanceof Integer) {\n throw new FacebookException(\"App Ids cannot be directly placed in the manifest.They must be prefixed by 'fb' or be placed in the string resource file.\");\n }\n }\n if (f12473e == null) {\n f12473e = ai.metaData.getString(\"com.facebook.sdk.ApplicationName\");\n }\n if (f12474f == null) {\n f12474f = ai.metaData.getString(\"com.facebook.sdk.ClientToken\");\n }\n if (f12482n == 64206) {\n f12482n = ai.metaData.getInt(\"com.facebook.sdk.CallbackOffset\", 64206);\n }\n if (f12475g == null) {\n f12475g = Boolean.valueOf(ai.metaData.getBoolean(\"com.facebook.sdk.CodelessDebugLogEnabled\", false));\n }\n }\n } catch (NameNotFoundException e) {\n }\n }\n }", "static String m1374d(Context context, String str) {\n if (Yk == null) {\n synchronized (ay.class) {\n if (Yk == null) {\n SharedPreferences sharedPreferences = context.getSharedPreferences(\"gtm_install_referrer\", 0);\n if (sharedPreferences != null) {\n Yk = sharedPreferences.getString(\"referrer\", \"\");\n } else {\n Yk = \"\";\n }\n }\n }\n }\n return m1377m(Yk, str);\n }", "public void printHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\n \"com.credolabs.justcredo\",\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"Credo:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n\n } catch (NoSuchAlgorithmException e) {\n\n }\n }", "private void m50363B() {\n try {\n TokenPaymentParams tokenPaymentParams = new TokenPaymentParams(this.f30711G0, this.f30708D0, this.f30709E0.getBrand(), this.f30737h0.getText().toString());\n StringBuilder sb = new StringBuilder();\n sb.append(this.f30720S.getString(C10232R.string.checkout_ui_callback_scheme));\n sb.append(\"://callback\");\n tokenPaymentParams.mo40895e(sb.toString());\n this.f30754y0.mo41066a(new Transaction((PaymentParams) tokenPaymentParams));\n this.f30728a.mo23628i(C11645a.f33474f, \"credit_card\");\n } catch (PaymentException e) {\n e.printStackTrace();\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 }", "public static void m72639a(com.p280ss.android.ugc.aweme.feed.model.Aweme r3, java.lang.String r4, int r5) {\n /*\n if (r3 == 0) goto L_0x006d\n boolean r0 = r3.isFamiliar()\n r1 = 1\n if (r0 != r1) goto L_0x006c\n boolean r0 = com.p280ss.android.ugc.aweme.utils.C43122ff.m136762a(r3)\n if (r0 == 0) goto L_0x0010\n goto L_0x006c\n L_0x0010:\n com.ss.android.ugc.aweme.app.g.d r0 = com.p280ss.android.ugc.aweme.app.p305g.C22984d.m75611a()\n java.lang.String r1 = \"enter_from\"\n java.lang.String r2 = \"homepage_hot\"\n com.ss.android.ugc.aweme.app.g.d r0 = r0.mo59973a(r1, r2)\n java.lang.String r1 = \"event_type\"\n com.ss.android.ugc.aweme.app.g.d r4 = r0.mo59973a(r1, r4)\n java.lang.String r0 = \"rec_uid\"\n java.lang.String r1 = com.p280ss.android.ugc.aweme.metrics.C33230ac.m107205a(r3)\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"req_id\"\n java.lang.String r1 = r3.getRequestId()\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"rec_reason\"\n com.ss.android.ugc.aweme.feed.model.RelationDynamicLabel r1 = r3.getRelationLabel()\n if (r1 == 0) goto L_0x0044\n java.lang.String r1 = r1.getLabelInfo()\n if (r1 != 0) goto L_0x0046\n L_0x0044:\n java.lang.String r1 = \"\"\n L_0x0046:\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"card_type\"\n java.lang.String r1 = \"item\"\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"group_id\"\n java.lang.String r3 = r3.getAid()\n com.ss.android.ugc.aweme.app.g.d r3 = r4.mo59973a(r0, r3)\n r4 = -1\n if (r5 == r4) goto L_0x0064\n java.lang.String r4 = \"feed_order\"\n r3.mo59970a(r4, r5)\n L_0x0064:\n java.lang.String r4 = \"follow_card\"\n java.util.Map<java.lang.String, java.lang.String> r3 = r3.f60753a\n com.p280ss.android.ugc.aweme.common.C6907h.m21524a(r4, r3)\n return\n L_0x006c:\n return\n L_0x006d:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.familiar.p966b.C21718a.m72639a(com.ss.android.ugc.aweme.feed.model.Aweme, java.lang.String, int):void\");\n }", "private void requestToken(){\n APIAuth auth = new APIAuth(this.prefs.getString(\"email\", \"\"), this.prefs.getString(\"password\", \"\"), this.prefs.getString(\"fname\", \"\") + \" \" +this.prefs.getString(\"lname\", \"\"), this.prefs, null);\n auth.authenticate();\n }", "String buildAuthorizeUrl(LastFmAuthParameters parameters);", "@Override\n public String getBotToken() {\n return \"412386556:AAHawYQpPaNLFdnpckQsYr7c3YdBQZEXy0I\";\n }", "private static String buildUserAgent(Context context) {\r\n\t\ttry {\r\n\t\t\tfinal PackageManager manager = context.getPackageManager();\r\n\t\t\tfinal PackageInfo info = manager.getPackageInfo(\r\n\t\t\t\t\tcontext.getPackageName(), 0);\r\n\r\n\t\t\t// Some APIs require \"(gzip)\" in the user-agent string.\r\n\t\t\treturn info.packageName + \"/\" + info.versionName + \" (\"\r\n\t\t\t\t\t+ info.versionCode + \") (gzip)\";\r\n\t\t} catch (NameNotFoundException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t//httpclient.setRedirectHandler(new DefaultRedirectHandler() { });\n\t\tString[] urls = new String[10];\n\n\t\tString base_url = \"http://ec2-23-20-255-144.compute-1.amazonaws.com/fridge/\";\n\n\t\tString login \t\t\t\t=\tbase_url + \"login/\";\n\t\tString search_fridge_name \t=\tbase_url + \"search/?q=\";\n\t\tString search_fridge_id\t\t=\tbase_url + \"search-id/?q=\";\t//TODO add to django\n\t\tString search_upc \t\t\t=\tbase_url + \"search-upc/?q=\";\n\t\tString post_item \t\t\t=\tbase_url + \"update-item/\";\n\n\t\tIntent intent = this.getIntent();\n\t\tint flags = intent.getFlags();\n\t\tintent.getAction();\n\n\t\tBundle extras = null;\n\t\ttry{\n\t\t\textras = intent.getExtras();\n\t\t} catch (NullPointerException e) {\n\n\t\t}\n\t\tif(extras != null){\n\t\t\tif(extras.containsKey(\"upc\")){\n\t\t\t\tupc_from_intent = (String)extras.get(\"upc\");\n\t\t\t\tsearch_upc += upc_from_intent;\n\t\t\t\turls[nSEARCH_FOR_UPC] = search_upc;\n\t\t\t}else if(extras.containsKey(\"item_to_add\")){\n\t\t\t\tString item_to_add = (String)extras.get(\"item_to_add\");\n\t\t\t\turls[nADD_ITEM_URL] \t\t\t=\tpost_item;\n\t\t\t\turls[nADD_ITEM_HACK] \t\t\t= \titem_to_add;\n\t\t\t}else if(extras.containsKey(\"fridge_name\")){\n\t\t\t\tsearch_fridge_name \t+=\textras.getString(\"fridge_name\");\n\t\t\t\turls[nITEMS_FROM_FRIDGE_NAME] \t= \tsearch_fridge_name;\n\t\t\t}else if(extras.containsKey(\"fridge_id\")){\n\t\t\t\tsearch_fridge_id\t+=\textras.getInt(\"fridge_id\");\n\t\t\t\turls[nITEMS_FROM_FRIDGE_ID]\t\t=\tsearch_fridge_id;\n\t\t\t}else{\n\t\t\t\t//TODO return unknown extra detected\n\t\t\t}\n\t\t}else{\n\t\t\t//TODO return extra required\n\t\t}\n\n\n\t\tnew DownloadJsonItems().execute(urls);\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n getList();\n // String result = requestDataByGetAsyncTask(Config._LOCAL_HOST+Config._ACTION_LAST_PUBLICATION_INFO);\n // Log.d(\"result1\",result);\n\n }", "public void setOauth_token(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localOauth_tokenTracker = true;\r\n } else {\r\n localOauth_tokenTracker = false;\r\n \r\n }\r\n \r\n this.localOauth_token=param;\r\n \r\n\r\n }", "public void mo9209b(String str) {\n String d = this.f8112b.mo9161c().mo9184d();\n C2436g b = C2436g.m9325b(this.f8112b.mo9158b(), d);\n Bundle bundle = new Bundle();\n bundle.putString(\"fb_web_login_e2e\", str);\n bundle.putLong(\"fb_web_login_switchback_time\", System.currentTimeMillis());\n bundle.putString(\"app_id\", d);\n b.mo8855a(\"fb_dialogs_web_login_dialog_complete\", (Double) null, bundle);\n }", "public void printHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\n \"net.simplifiedcoding.androidlogin\",\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n\n }\n } catch (PackageManager.NameNotFoundException e) {\n\n } catch (NoSuchAlgorithmException e) {\n\n }\n }", "@FormUrlEncoded\n @POST(\"/oauth/access_token\")\n Flowable<ResponseBody> getAccessToken(@Field(\"oauth_verifier\") String oauthVerifier);", "public final /* synthetic */ void G() {\n Uri uri;\n com.ss.android.ugc.aweme.festival.common.a e2 = com.ss.android.ugc.aweme.festival.christmas.a.e();\n if (e2 != null && !TextUtils.isEmpty(e2.f47289c)) {\n String str = \"\";\n boolean z = this instanceof MusUserProfileFragment;\n if (z) {\n str = \"others_homepage\";\n } else if (this instanceof MusMyProfileFragment) {\n str = \"personal_homepage\";\n }\n r.a(\"enter_activity_page\", (Map) new d().a(\"enter_from\", str).f34114b);\n String str2 = null;\n if (z && this.J != null && !this.J.isMe()) {\n str2 = this.J.getUid();\n }\n if (!TextUtils.isEmpty(str2)) {\n uri = Uri.parse(e2.f47289c).buildUpon().appendQueryParameter(\"uid\", str2).build();\n } else {\n uri = Uri.parse(e2.f47289c);\n }\n com.ss.android.ugc.aweme.festival.christmas.a.a(getContext(), uri.toString());\n }\n }", "public interface Url {\n String BASE_URL = \"http://v3.wufazhuce.com:8000/api/\";\n\n //获取最新 idlist(返回的字段用于下个接口获取某一天的onelist,一共10个返回值,也就是10天的数据)\n String ID_LIST = \"onelist/idlist/\";\n //获取某天的 onelist\n String ONE_LIST = \"onelist/\";\n\n //阅读列表\n String READ_LIST = \"channel/reading/more/0\";\n //音乐列表\n String MUSIC_LIST = \"channel/music/more/0\";\n //影视列表\n String MOVIE_LIST = \"channel/movie/more/0\";\n\n //阅读相关详情\n String READ_DETAIL = \"essay/\";\n //阅读详情(问答)\n String READ_QUESTION = \"question/itemId\";\n //音乐详情\n String MUSIC_DETAIL = \"music/detail/\";\n //影视详情\n String MOVIE_DETAIL = \"movie/itemId/story/1/0\";\n //影视详情(图片和视频)\n String MOVIE_DETAIL_PIC = \"movie/detail/itemId\";\n\n //阅读评论\n String READ_COMMENT = \"comment/praiseandtime/essay/\";\n //音乐评论\n String MUSIC_COMMENT = \"comment/praiseandtime/music/\";\n //影视评论\n String MOVIE_COMMENT = \"comment/praiseandtime/movie/itemId/0\";\n\n //http://v3.wufazhuce.com:8000/api/praise/add?channel=update&source_id=9598&source=summary&version=4.0.7&\n //uuid=ffffffff-a90e-706a-63f7-ccf973aae5ee&platform=android\n\n // 点赞\n String MUSIC_PRAISE = \"praise/add\";\n}", "@Override\n public void OnActivityResultReceived(int requestCode, int resultCode, Intent data) {\n\n }", "public String getAppId();", "void mo21580A(Intent intent);", "public static String m9681a(Uri uri, Context context) {\n if (!zzbv.zzfj().m9668a(context)) {\n return uri.toString();\n }\n String e = zzbv.zzfj().m9675e(context);\n if (e == null) {\n return uri.toString();\n }\n if (((Boolean) zzkd.m10713e().m10897a(zznw.ae)).booleanValue()) {\n String str = (String) zzkd.m10713e().m10897a(zznw.af);\n String uri2 = uri.toString();\n if (uri2.contains(str)) {\n zzbv.zzfj().m9674d(context, e);\n return uri2.replace(str, e);\n }\n } else if (TextUtils.isEmpty(uri.getQueryParameter(\"fbs_aeid\"))) {\n uri = m9680a(uri.toString(), \"fbs_aeid\", e);\n zzbv.zzfj().m9674d(context, e);\n }\n return uri.toString();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.e(\"debug\", \"url\");\n\t\t\t\tIntent i;\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\ti = new Intent(activity, InfoDetailActivity.class);\n\t\t\t\ti.putExtra(InfoDetailActivity.TITLE, \"品牌概况\");\n\t\t\t\ti.putExtra(\n\t\t\t\t\t\tInfoDetailActivity.URL,\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=13\");\n\t\t\t\ti.setAction(\"push\");\n\t\t\t\tbundle.putString(\"title\", \"品牌概况\");\n\t\t\t\tbundle.putString(\n\t\t\t\t\t\t\"key\",\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=13\");\n\t\t\t\tbundle.putString(\n\t\t\t\t\t\t\"url\",\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=13\");\n\t\t\t\ti.putExtras(bundle);\n\n\t\t\t\tactivity.startActivity(i);\n\t\t\t}", "public static void main(String[] args) {\n\t\tString url = \"http://hell.com/?pw=8936,id='fsfds'\";\n\t\t\n\t\tint location = url.indexOf(\"pw=\");\n\t\tString str2 = url.substring(location+7);\n\t\tString str1 = url.substring(0,location+3);\n\t\tSystem.out.println(str1+\"****\"+str2);\n\t\t\n\t}", "private 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 onCompleted(\n JSONObject object,\n GraphResponse response) {\n System.out.println(\"In graph:\");\n try {\n\n\n System.out.println(\"Graph response: \" + response);\n\n String token = FirebaseInstanceId.getInstance().getToken();\n newUserObj.put(\"userid\", userId);\n newUserObj.put(\"firebaseToken\", token);\n System.out.println(\"firebase Token = \" + token);\n newUserObj.put(\"tokenStr\",tokenStr);\n System.out.println(\"parsed userid and token (as email)\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n try {\n String first_name = object.getString(\"first_name\");\n String last_name = object.getString(\"last_name\");\n String userID_Test = object.getString(\"id\");\n String user_name_test = object.getString(\"name\");\n\n\n JSONObject tempArray = response.getJSONObject();\n System.out.println(\"tempArray: \" + tempArray);\n //index 5 is position in field parameter request from above\n //JSONObject data_obj = tempArray.getJSONObject(0);\n JSONObject picture_obj = tempArray.getJSONObject(\"picture\");\n System.out.println(\"picture_obj: \" + picture_obj);\n\n JSONObject data_obj = picture_obj.getJSONObject(\"data\");\n System.out.println(\"data_obj: \" + data_obj);\n\n String prof_pic = data_obj.getString(\"url\");\n\n //String prof_pic = object.getString(\"picture\");\n //String prof_pic_url = object.getString(\"url\");\n System.out.println(\"MY URL IS: \" + prof_pic);\n\n\n\n System.out.println(\"parsed first and last name\");\n System.out.println(\"test field: \"+userID_Test+\" ;\"+user_name_test);\n full_name = first_name + \" \" + last_name;\n //backend needs full name\n newUserObj.put(\"username\", full_name);\n newUserObj.put(\"id_Test\",userID_Test);\n newUserObj.put(\"name_Test\",user_name_test);\n newUserObj.put(\"pic_url\",prof_pic);\n connectJsonStream postUser = new postUserInfo(current,newUserObj,serverAddress,phpAddress);\n postUser.execute();\n System.out.println(\"Reuse token and skip Login: \"+userId+\" \"+newUserObj.get(\"username\")+\"\\n\"+newUserObj.get(\"name_Test\")+\"\\n\"+newUserObj.get(\"id_Test\"));\n System.out.println(\"parsed userid and token (as email)\");\n\n } catch (Exception e) {\n e.printStackTrace();\n getPopup(global.ERROR_FACEBOOK_LOGIN);\n }\n }", "static String m9939c(String str) throws C2579j {\n if (str == null || str.isEmpty()) {\n throw new C2579j(\"Authorization response does not contain the signed_request\");\n }\n try {\n String[] split = str.split(\"\\\\.\");\n if (split.length == 2) {\n return new JSONObject(new String(Base64.decode(split[1], 0), C2793C.UTF8_NAME)).getString(\"user_id\");\n }\n } catch (UnsupportedEncodingException | JSONException unused) {\n }\n throw new C2579j(\"Failed to retrieve user_id from signed_request\");\n }", "public static void m5816b(Context context) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"userId\", C1570t.m6027l(context));\n f4669a.m12578a(\"unomer_permission_accepted\", bundle);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"Unomer permission accepted\"));\n }", "@Override\n public void onResponse(JSONObject response) {\n Toast.makeText(Verification_Activity.this, response.toString(), Toast.LENGTH_SHORT).show();\n System.out.println(\"------------------------------------------\");\n\n System.out.println(response.toString());\n if(response.toString().contains(\"200\")){\n if(response.toString().contains(\"password\")){\n String password=\"\";\n int i=46;\n while (true){\n password+=response.toString().charAt(i);\n i++;\n if(response.toString().charAt(i)=='\"')\n break;\n\n\n }\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"password\", password);\n editor.apply();\n }\n startActivity(new Intent(Verification_Activity.this, Public_register_Activity.class));\n }\n\n else {\n startActivity(new Intent(Verification_Activity.this, Singup_Activity.class));\n finish();\n\n }\n\n\n }", "@Override\n public void onResponse(JSONObject response) {\n Toast.makeText(Verification_Activity.this, response.toString(), Toast.LENGTH_SHORT).show();\n System.out.println(\"------------------------------------------\");\n\n System.out.println(response.toString());\n if(response.toString().contains(\"200\")){\n if(response.toString().contains(\"password\")){\n String password=\"\";\n int i=46;\n while (true){\n password+=response.toString().charAt(i);\n i++;\n if(response.toString().charAt(i)=='\"')\n break;\n\n\n }\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"password\", password);\n editor.apply();\n }\n startActivity(new Intent(Verification_Activity.this, Public_register_Activity.class));\n }\n\n else {\n startActivity(new Intent(Verification_Activity.this, Singup_Activity.class));\n finish();\n\n }\n\n\n }", "public boolean mo3974a() {\n if (!this.f19106h) {\n return false;\n }\n int i;\n String h = m25428h();\n this.f19110l.m6576a(h);\n Intent intent = new Intent(this.f19104f, AudienceNetworkActivity.class);\n intent.putExtra(\"viewType\", C1962a.REWARDED_VIDEO);\n intent.putExtra(\"rewardedVideoAdDataBundle\", this.f19110l);\n intent.putExtra(\"uniqueId\", this.f19103e);\n intent.putExtra(\"rewardServerURL\", h);\n intent.putExtra(\"placementId\", this.f19108j);\n intent.putExtra(\"requestTime\", this.f19109k);\n if (this.b == -1 || System.getInt(this.f19104f.getContentResolver(), \"accelerometer_rotation\", 0) == 1) {\n if (!C1820a.m6861p(this.f19104f)) {\n h = \"predefinedOrientationKey\";\n i = 6;\n }\n if (!(this.f19104f instanceof Activity)) {\n intent.setFlags(intent.getFlags() | 268435456);\n }\n this.f19104f.startActivity(intent);\n return true;\n }\n h = \"predefinedOrientationKey\";\n i = this.b;\n intent.putExtra(h, i);\n if (this.f19104f instanceof Activity) {\n intent.setFlags(intent.getFlags() | 268435456);\n }\n this.f19104f.startActivity(intent);\n return true;\n }", "private String m81844c(String str) {\n Uri uri;\n String a = UrlUtil.m84494a(this.f58071c, str);\n return (!TextUtils.isEmpty(a) || (uri = this.f58072d) == null) ? a : UrlUtil.m84494a(uri, str);\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t switch (requestCode) { \n\t case 1: \n\t if (data == null) { \n\t return; \n\t } \n\t Uri result = data.getData(); \n\t String contactId = result.getLastPathSegment(); \n\t String phone = \"\"; \n\t String[] projection = new String[] { Phone.CONTACT_ID,Phone.NUMBER}; \n\t Cursor cursor = getContentResolver().query(Phone.CONTENT_URI, \n\t projection, // select sentence \n\t Phone.CONTACT_ID + \" = ?\", // where sentence \n\t new String[] { contactId }, // where values \n\t Phone.CONTACT_ID); // order by \n\t \n\t if (null!=cursor&&cursor.moveToFirst()) { \n\t phone = cursor.getString(cursor.getColumnIndex(Phone.NUMBER)); \n\t CommonUtils.sendMSG(MemberCenter.this, phone, String.format(\"亲,发现好星之家酒店的客户端很好用,可以用手机预定酒店,\" +\n\t\t \t\t\"安卓下载地址:%s 苹果下载地址%s\", MainActivity.proPhone.andUrl,MainActivity.proPhone.ioUrl));\n\t }else\n\t {\n\t \t CommonUtils.showToast(getApplicationContext(), \"获取联系人失败\");\n\t }\n\t break; \n\t } \n\t}", "protected void printFaceBookKeyHash() {\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\"com.sakewiz.android\", PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash: \", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }", "static final /* synthetic */ void m50993b(ane ane, Map map) {\n PackageManager packageManager = ane.getContext().getPackageManager();\n try {\n try {\n JSONArray jSONArray = new JSONObject((String) map.get(\"data\")).getJSONArray(\"intents\");\n JSONObject jSONObject = new JSONObject();\n for (int i = 0; i < jSONArray.length(); i++) {\n try {\n JSONObject jSONObject2 = jSONArray.getJSONObject(i);\n String optString = jSONObject2.optString(\"id\");\n String optString2 = jSONObject2.optString(\"u\");\n String optString3 = jSONObject2.optString(C42323i.f110089f);\n String optString4 = jSONObject2.optString(C13192m.f34940a);\n String optString5 = jSONObject2.optString(\"p\");\n String optString6 = jSONObject2.optString(\"c\");\n jSONObject2.optString(\"f\");\n jSONObject2.optString(\"e\");\n String optString7 = jSONObject2.optString(\"intent_url\");\n Intent intent = null;\n if (!TextUtils.isEmpty(optString7)) {\n try {\n intent = Intent.parseUri(optString7, 0);\n } catch (URISyntaxException e) {\n URISyntaxException uRISyntaxException = e;\n String str = \"Error parsing the url: \";\n String valueOf = String.valueOf(optString7);\n acd.m45778b(valueOf.length() != 0 ? str.concat(valueOf) : new String(str), uRISyntaxException);\n }\n }\n boolean z = true;\n if (intent == null) {\n intent = new Intent();\n if (!TextUtils.isEmpty(optString2)) {\n intent.setData(Uri.parse(optString2));\n }\n if (!TextUtils.isEmpty(optString3)) {\n intent.setAction(optString3);\n }\n if (!TextUtils.isEmpty(optString4)) {\n intent.setType(optString4);\n }\n if (!TextUtils.isEmpty(optString5)) {\n intent.setPackage(optString5);\n }\n if (!TextUtils.isEmpty(optString6)) {\n String[] split = optString6.split(\"/\", 2);\n if (split.length == 2) {\n intent.setComponent(new ComponentName(split[0], split[1]));\n }\n }\n }\n if (packageManager.resolveActivity(intent, 65536) == null) {\n z = false;\n }\n try {\n jSONObject.put(optString, z);\n } catch (JSONException e2) {\n acd.m45778b(\"Error constructing openable urls response.\", e2);\n }\n } catch (JSONException e3) {\n acd.m45778b(\"Error parsing the intent data.\", e3);\n }\n }\n ((C15836lc) ane).mo39810a(\"openableIntents\", jSONObject);\n } catch (JSONException unused) {\n ((C15836lc) ane).mo39810a(\"openableIntents\", new JSONObject());\n }\n } catch (JSONException unused2) {\n ((C15836lc) ane).mo39810a(\"openableIntents\", new JSONObject());\n }\n }", "static /* synthetic */ Map m890b(Request request) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"device_verifier\", request.verifier);\n HashMap hashMap2 = new HashMap();\n C1543ak a = C1948n.m1229a().f1421g.mo16243a();\n String str = (String) a.mo16260a().get(C1544al.AndroidAdvertisingId);\n if (str != null) {\n hashMap2.put(\"gpaid\", str);\n }\n String str2 = (String) a.mo16260a().get(C1544al.DeviceId);\n if (str2 != null) {\n hashMap2.put(\"andid\", str2);\n }\n hashMap.putAll(hashMap2);\n HashMap hashMap3 = new HashMap();\n byte[] bytes = ((String) C1948n.m1229a().f1421g.mo16243a().mo16260a().get(C1544al.AndroidInstallationId)).getBytes();\n if (bytes != null) {\n hashMap3.put(\"flurry_guid\", C1734dz.m868a(bytes));\n }\n hashMap3.put(\"flurry_project_api_key\", C1948n.m1229a().f1422h.f444a);\n hashMap.putAll(hashMap3);\n Context context = request.context;\n HashMap hashMap4 = new HashMap();\n hashMap4.put(\"src\", \"flurryandroidsdk\");\n hashMap4.put(\"srcv\", \"12.3.0\");\n hashMap4.put(\"appsrc\", context.getPackageName());\n C1601bl.m537a();\n hashMap4.put(\"appsrcv\", C1601bl.m538a(context));\n hashMap.putAll(hashMap4);\n return hashMap;\n }", "@Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n System.out.println(\"JsonFB : \"+response.getJSONObject().toString());\n\n try {\n\n\n name = object.optString(\"name\");\n first_name = object.optString(\"first_name\");\n last_name = object.optString(\"last_name\");\n JSONObject picture = object.getJSONObject(\"picture\");\n JSONObject data = picture.getJSONObject(\"data\");\n String url = data.optString(\"url\");\n\n System.out.println(\"Url : \" + url);\n System.out.println(\"Email : \" + email);\n\n\n if (object.has(\"email\")) {\n\n email = object.optString(\"email\");\n\n } else {\n email = \"\";\n }\n\n if (url == null) {\n url = \"\";\n }\n\n\n\n sharedPreferenceClass.saveData(object.optString(\"id\"),name,email,url, null);\n sharedPreferenceClass.isLooggedIn(true);\n\n Intent goIntent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(goIntent);\n\n\n\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n//Login bhayera aba uninstall garnu parchha\n }", "public static void a(android.content.Context r5, java.lang.String r6, boolean r7, int r8, android.net.Uri r9) {\n /*\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = z;\n r2 = 11;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r6);\n r1 = z;\n r2 = 7;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r8);\n r1 = z;\n r2 = 8;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r9);\n r1 = \"]\";\n r0 = r0.append(r1);\n r0 = r0.toString();\n com.whatsapp.util.Log.i(r0);\n if (r7 == 0) goto L_0x0058;\n L_0x003d:\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = z;\n r2 = 9;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r8);\n r0 = r0.toString();\n r1 = com.whatsapp.wallpaper.ImageViewTouchBase.e;\n if (r1 == 0) goto L_0x006f;\n L_0x0058:\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = z;\n r2 = 10;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r9);\n r0 = r0.toString();\n L_0x006f:\n r1 = z;\n r2 = 13;\n r1 = r1[r2];\n r2 = 0;\n r1 = r5.getSharedPreferences(r1, r2);\n r1 = r1.edit();\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = z;\n r4 = 12;\n r3 = r3[r4];\n r2 = r2.append(r3);\n r2 = r2.append(r6);\n r2 = r2.toString();\n r1.putString(r2, r0);\n r1.commit();\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.wallpaper.p.a(android.content.Context, java.lang.String, boolean, int, android.net.Uri):void\");\n }", "public final List mo6342a() {\n sre.m36087g(this);\n sre.m36088h(this);\n bngs j = bngx.m109377j();\n Intent putExtra = new Intent().setClassName(\"com.google.android.gms\", \"com.google.android.gms.accountsettings.mg.ui.main.MainActivity\").addCategory(\"android.intent.category.DEFAULT\").putExtra(\"extra.screenId\", 1).putExtra(\"extra.launchApi\", 2);\n if (cbro.m128206j()) {\n putExtra.putExtra(\"extra.callingPackageName\", \"com.google.android.gms\").putExtra(\"extra.utmSource\", \"google-settings-classic\");\n } else {\n putExtra.putExtra(\"extra.callingPackageName\", \"com.google.android.gms.app.settings\");\n }\n GoogleSettingsItem googleSettingsItem = new GoogleSettingsItem(putExtra, 1, getResources().getString(C0126R.string.common_asm_google_account_title), 2);\n googleSettingsItem.f29960f = true;\n googleSettingsItem.f29971q = C0126R.string.accountsettings_google_account_subtitle;\n googleSettingsItem.f29959e = 1;\n j.mo67668c(googleSettingsItem);\n if (cbri.f178135a.mo6606a().mo75276z()) {\n bngs j2 = bngx.m109377j();\n j2.mo67668c(new GoogleSettingsItem(new Intent(\"com.android.settings.action.VIEW_ACCOUNT\").setPackage(\"com.google.android.gms\").putExtra(\"extra.callingPackageName\", \"com.google.android.gms\"), 2, (int) C0126R.string.as_debug_android_me_card, 48));\n j2.mo67668c(new GoogleSettingsItem(new Intent().setClassName(\"com.google.android.gms\", \"com.google.android.gms.accountsettings.ui.PrivacyHubActivityControlsActivity\").addCategory(\"android.intent.category.DEFAULT\").putExtra(\"extra.callingPackageName\", \"com.google.android.gms\"), 2, (int) C0126R.string.as_debug_android_privacy_hub_activty_controls, 51));\n j.mo67666b((Iterable) j2.mo67664a());\n }\n return j.mo67664a();\n }", "public interface AppConstant {\n\n String BASE_URL = \"https://www.wanandroid.com\";\n\n\n String WEB_SITE_LOGIN = \"user/login\";\n String WEB_SITE_REGISTER = \"user/register\";\n String WEB_SITE_COLLECTIONS = \"lg/collect\";\n String WEB_SITE_UNCOLLECTIONS = \"lg/uncollect\";\n String WEB_SITE_ARTICLE = \"article\";\n\n\n public interface LoginParamsKey {\n String SET_COOKIE_KEY = \"set-cookie\";\n String SET_COOKIE_NAME = \"Cookie\";\n String USER_NAME = \"username\";\n String PASSWORD = \"password\";\n String REPASSWORD = \"repassword\";\n }\n}", "public java.lang.String CC_GetMobileUserInfo(java.lang.String accessToken, java.lang.String accessCode) throws java.rmi.RemoteException;", "@Override\r\n public void onStart() {\n System.out.println(\"Get Bill Details \");\r\n System.out.println(\"Get Bill Details URL \"+jobDecrypt(context.getString(R.string.url_inquire)));\r\n }", "private void printKeyHash(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\n \"andbas.ui3_0628\",\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n\n } catch (NoSuchAlgorithmException e) {\n\n }\n\n }", "public String mo1081b() {\n return \"com.crashlytics.sdk.android:beta\";\n }", "public void GuardarToken(String token){\n SharedPreferences.Editor edits = prefs.edit();\n edits.putString(MYConstantsPreferences.MAQUIPURAY_TOKEN, token);\n edits.apply();\n }", "public String getTravelTrackerSignatureString(){\n return getTravelTrackerSignaturePrefixString() + \"\\\">\" + mContext.getResources().getString(R.string.app_name) + \"</a>\";\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"name\", name);\n params.put(\"mobile\",phone);\n params.put(\"email\", email);\n params.put(\"password\", password);\n params.put(\"device_id\", device_id);\n params.put(\"fcm_reg_token\", fcm_token);\n params.put(\"device_type\", device_type);\n\n Log.d(TAG, \"getParams: \"+params);\n\n return params;\n }" ]
[ "0.5846044", "0.56972164", "0.5457417", "0.5304538", "0.52534753", "0.52512854", "0.5245921", "0.5191559", "0.519052", "0.51896644", "0.51238304", "0.5123324", "0.5093801", "0.5088968", "0.5073479", "0.5066603", "0.5035921", "0.5016786", "0.50072104", "0.49750513", "0.49731743", "0.49721906", "0.49642116", "0.4953722", "0.49536756", "0.495308", "0.4952939", "0.49500424", "0.49500424", "0.49464592", "0.4939246", "0.4936338", "0.49316886", "0.4913941", "0.49109185", "0.49073577", "0.49019647", "0.48978367", "0.48951727", "0.489088", "0.489017", "0.48816055", "0.4880703", "0.4879943", "0.4868352", "0.48666197", "0.4865723", "0.4865533", "0.48621666", "0.48615438", "0.4857895", "0.48570397", "0.48233336", "0.4815596", "0.48128954", "0.4798036", "0.4797153", "0.4783579", "0.47746724", "0.47718284", "0.47717306", "0.47652867", "0.47604206", "0.47597018", "0.4753159", "0.47473148", "0.47440162", "0.47383973", "0.4737528", "0.47283104", "0.4726198", "0.47143966", "0.47136316", "0.47114593", "0.47104537", "0.4710356", "0.47096696", "0.47063723", "0.47062877", "0.47045866", "0.4701576", "0.4698832", "0.46961772", "0.46961772", "0.46960825", "0.46937817", "0.46807644", "0.4677654", "0.46775976", "0.467608", "0.46711814", "0.46646068", "0.46602243", "0.46580416", "0.46579766", "0.46561792", "0.46514302", "0.4647681", "0.46459648", "0.46452737", "0.4641925" ]
0.0
-1
Gets array of all "scans" elements
com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints[] getScansArray();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int[] getScanIndexList(MSRun run, int scan)\r\n {\r\n int scanIndex = run.getIndexForScanNum(scan, true);\r\n int leftIndex = scanIndex - 10;\r\n int rightIndex = scanIndex + 20;\r\n if (leftIndex < 0)\r\n leftIndex = 0;\r\n if (rightIndex >= run.getScanCount())\r\n rightIndex = run.getScanCount() - 1;\r\n int[] list = new int[rightIndex - leftIndex + 1];\r\n for (int i = leftIndex; i <= rightIndex; i++)\r\n list[i-leftIndex] = i;\r\n Arrays.sort(list);\r\n return list;\r\n }", "com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints getScansArray(int i);", "int[] getInts();", "private ArrayList<String> getArrayList() throws IOException {\n long jumpTo = 0;\n ArrayList<String> arrayList = new ArrayList<String>();\n arrayList.add(readStringUntil0x());\n boolean notFound = true;\n while (notFound == true) {\n ins.skip(jumpTo);\n String actIndex = readStringUntil0x();\n long lowerIndex = readJumpOffset();\n long upperIndex = readJumpOffset();\n if ((searchIndex.compareTo(actIndex) < 0) && (lowerIndex > 0)) {\n jumpTo = lowerIndex - 1;\n } else if ((searchIndex.compareTo(actIndex) > 0) && upperIndex > 0) {\n jumpTo = upperIndex - 1;\n } else if (searchIndex.compareTo(actIndex) == 0) {\n notFound = false;\n // reading all the found lines\n actIndex = readStringUntil0x();\n while (!actIndex.equalsIgnoreCase(\"\")) {\n arrayList.add(actIndex);\n actIndex = readStringUntil0x();\n }\n } else {\n notFound = false;\n arrayList = null;\n }\n }\n return arrayList;\n }", "public static int[] readInts() {\n return readAllInts();\n }", "Object[] getElements() {\n\tif (this.results == null) {\n\t\tinitResults();\n\t\tif (this.filterAdvancedScenarios != null) {\n\t\t\tthis.results.setFingerprints(this.filterAdvancedScenarios.isChecked());\n\t\t}\n\t}\n\treturn this.results.getElements();\n}", "java.util.List<com.google.cloud.dataplex.v1.DataScan> getDataScansList();", "private String[] termsArray(Scanner scan){\r\n\t\tArrayList<String> list = new ArrayList<String>();\r\n\t\twhile (scan.hasNext()) {\r\n\t\t\tlist.add(scan.next());\r\n\t\t}\r\n\t\treturn (String[]) list.toArray(new String[0]);\r\n\t}", "private Object[] elements() {\n return elements.toArray();\n }", "public int[] toArray() {\n return Arrays.copyOf(buffer, elementsCount);\n }", "public int [] getResultArr() {\n return maskResultArray;\n }", "RegSet[] used() {\r\n RegSet[] used = new RegSet[code.length];\r\n for (int i = 0; i < code.length; i++) \r\n\tused[i] = code[i].used();\r\n return used;\r\n }", "public int[] getIntList();", "public List<T> getAll() {\n return Arrays.asList(buffer);\n }", "E[] getAll();", "private Vector<ResourceLocation> getElements() {\n return getRef().elements;\n }", "public int[] getNodeIndicesArray() {\n \t\tginy_nodes.trimToSize();\n \t\treturn giny_nodes.elements();\n \t}", "public int[] findAnyPairIndexesCoprime() {\n return findAnyPairIndexesCoprime(seq);\n }", "public Collection<V> getAllElements() {\n\t\treturn cacheMap.values();\n\t}", "public int[] start() {\n\t\treturn null;\n\t}", "static double[][] getSpectrum(MSRun run, int scan)\r\n {\r\n MSScan s = run.getScan(scan);\r\n float[][] t1 = s.getSpectrum();\r\n double[][] peaks = new double[2][t1[0].length];\r\n for (int j = 0; j < t1[0].length; j++)\r\n {\r\n peaks[0][j] = t1[0][j];\r\n peaks[1][j] = t1[1][j];\r\n }\r\n return peaks;\r\n }", "protected abstract int[] getPathElements();", "com.google.cloud.dataplex.v1.DataScan getDataScans(int index);", "public int[] numbers();", "@Override\n public int[] toArray() {\n int[] result = new int[size];\n Entry tmp = first;\n for (int i = 0; i < size; i++) {\n result[i] = tmp.value;\n tmp = tmp.next;\n }\n return result;\n }", "public ArrayList<Integer> visitAll(int startVertex) {\n ArrayList<Integer> result = new ArrayList<Integer>();\n Iterator<Integer> iter = new DFSIterator(startVertex);\n while (iter.hasNext()) {\n result.add(iter.next());\n }\n return result;\n }", "int sizeOfScansArray();", "private int[] getArray(Set<Integer> set) {\n int n = set.size();\n int[] array = new int[n];\n\n Iterator<Integer> iterator = set.iterator();\n int i = 0;\n while (iterator.hasNext()) {\n array[i] = iterator.next();\n i++;\n }\n return array;\n }", "int[] allDocs();", "List<Integer> fromScannerInput() throws IOException {\n\t\tfinal List<Integer> array = new ArrayList<>();\n\t\twhile (scanner.hasNext()) {\n\t\t\tarray.add(\n\t\t\t\t\tInteger.parseInt(\n\t\t\t\t\t\t\tscanner.next()));\n\t\t}\n\t\treturn array;\n\t}", "public ArrayList<Integer> visitAll(int startVertex) {\r\n ArrayList<Integer> result = new ArrayList<Integer>();\r\n Iterator<Integer> iter = new DFSIterator(startVertex);\r\n\r\n while (iter.hasNext()) {\r\n result.add(iter.next());\r\n }\r\n return result;\r\n }", "public ArrayList<Integer> visitAll(int startVertex) {\n ArrayList<Integer> result = new ArrayList<Integer>();\n Iterator<Integer> iter = new DFSIterator(startVertex);\n\n while (iter.hasNext()) {\n result.add(iter.next());\n }\n return result;\n }", "public int[] getAllBuses()\n\t{\n\t\tint buses[] = new int[_maxBusNdx+1];\n\t\tint bofs = 0;\n\t\tfor(int i=0; i<buses.length; i++)\n\t\t{\n\t\t\tif (_list[i] > -1) buses[bofs++] = i;\n\t\t}\n\t\treturn Arrays.copyOf(buses, bofs);\n\t}", "ConstArray<E> snapshot();", "public int[] toArray() \n {\n \treturn arrayCopy(state);\n }", "int[] minAndMax() {\n\n // **** declare and populate array of Integers with the values of the parents O(n) ****\n Integer[] arr = new Integer[this.parents.length];\n int i = 0;\n for (int val : this.parents)\n arr[i++] = val;\n\n // **** create a list with the values in the parents ****\n List<Integer> al = Arrays.asList(arr);\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse the array arr: O(n^2) ****\n for (int item : arr) {\n if (item != 0) {\n\n // **** get the frequency of item in the list: O(n) ****\n int freq = Collections.frequency(al, item);\n\n // ???? ????\n System.out.println(\"minAndMax <<< item: \" + item + \" freq: \" + freq);\n\n // **** update the min and max values ****\n min = Math.min(min, freq);\n max = Math.max(max, freq);\n }\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "void setScansArray(int i, com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints scans);", "public ArrayList<Integer> getElements()\n {\n return this.elements;\n }", "public org.dhis2.ns.schema.dxf2.IndicatorRefDocument.IndicatorRef[] getIndicatorRefArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(INDICATORREF$0, targetList);\n org.dhis2.ns.schema.dxf2.IndicatorRefDocument.IndicatorRef[] result = new org.dhis2.ns.schema.dxf2.IndicatorRefDocument.IndicatorRef[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public int[] scanGrades(String filepath) {\n Scanner scanner = null;\n try {\n scanner = new Scanner(new File(filepath));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n ArrayList<Integer> grades = new ArrayList<Integer>();\n while (scanner.hasNextInt()) {\n grades.add(scanner.nextInt());\n }\n int[] gradeArray = new int[grades.size()];\n for (int i = 0; i < grades.size(); i++) {\n gradeArray[i] = grades.get(i);\n }\n return gradeArray;\n }", "private int[] blankFinder(){\n for(int x = 0; x < n; x++){\n for(int y = 0; y < n; y++){\n if(tiles[x][y] == 0){\n return new int[]{x, y};\n }\n }\n }\n return null;\n }", "ArrayList<int[]> findValidMoves();", "public com.guidewire.datamodel.IndexDocument.Index[] getIndexArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(INDEX$12, targetList);\r\n com.guidewire.datamodel.IndexDocument.Index[] result = new com.guidewire.datamodel.IndexDocument.Index[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public abstract List<String> scanAllClassNames();", "public abstract Book[] getConsecutiveBooks();", "@Override\r\n\tpublic float[] getRanges() {\r\n\t\tsp.fetchSample(sample, 0);\r\n\r\n\t\treturn sample;\r\n\t}", "public int[] keysToArray()\r\n\t {\r\n\t\t if(this.size() == 0)\r\n\t\t {\r\n\t\t\t return new int[0];\r\n\t\t }\r\n\t\t int[] arr = new int[this.size()]; \r\n\t\t return this.root.keysToArray(arr, 0);\r\n\t }", "public com.walgreens.rxit.ch.cda.POCDMT000040Guardian[] getGuardianArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(GUARDIAN$22, targetList);\n com.walgreens.rxit.ch.cda.POCDMT000040Guardian[] result = new com.walgreens.rxit.ch.cda.POCDMT000040Guardian[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public int[] getIntArray() {\r\n\t\t\r\n\t\treturn (value.getIntArray());\r\n\t}", "public org.landxml.schema.landXML11.TimingDocument.Timing[] getTimingArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(TIMING$2, targetList);\r\n org.landxml.schema.landXML11.TimingDocument.Timing[] result = new org.landxml.schema.landXML11.TimingDocument.Timing[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public int[] getArticulationVertices() {\n int[] xs = new int[set.cardinality()];\n for (int x = set.nextSetBit(0), i = 0;\n x >= 0;\n x = set.nextSetBit(x + 1), i++) {\n xs[i] = x;\n }\n return xs;\n }", "public ArrayList<String> getScanPath() {\n return scanPath;\n }", "static List<WifiSSIDData> getScanResults(Context context)\n {\n synchronized (PPApplication.wifiScanResultsMutex) {\n SharedPreferences preferences = context.getSharedPreferences(PPApplication.WIFI_SCAN_RESULTS_PREFS_NAME, Context.MODE_PRIVATE);\n int count = preferences.getInt(SCAN_RESULT_COUNT_PREF, -1);\n\n if (count > -1) {\n List<WifiSSIDData> scanResults = new ArrayList<>();\n\n Gson gson = new Gson();\n\n for (int i = 0; i < count; i++) {\n String json = preferences.getString(SCAN_RESULT_DEVICE_PREF + i, \"\");\n if (!json.isEmpty()) {\n WifiSSIDData device = gson.fromJson(json, WifiSSIDData.class);\n device.scanned = true;\n scanResults.add(device);\n }\n }\n return scanResults;\n } else\n return null;\n }\n }", "public int[] getArray() {\r\n\t\treturn array;\r\n\t}", "public int[] getResources() {\n \t\tint[] list = new int[resources.length];\n \t\tfor (int i = 0; i < resources.length; i++)\n \t\t\tlist[i] = resources[i];\n \n \t\treturn list;\n \t}", "public long[] toArray() {\n/* 406 */ long[] array = new long[(int)(this.max - this.min + 1L)];\n/* 407 */ for (int i = 0; i < array.length; i++) {\n/* 408 */ array[i] = this.min + i;\n/* */ }\n/* 410 */ return array;\n/* */ }", "public Object[] getStartNodes ();", "public ElementList[] getAnnotations() {\r\n return union.value();\r\n }", "long getIds(int index);", "private List<String> getSpectrumIdsFound()\r\n\t{\r\n\t\treturn this.spectrumIdsFound;\r\n\t}", "public abstract ArrayList<Cell> getSelfArray();", "public int[] getArray() {\n\t\treturn array;\n\t}", "int[] retrieveAllData();", "public Element[] getAnnotations() {\r\n return union.value();\r\n }", "private int[] getIntArray(int[][] histogram)\n {\n int[] histValues = new int[grid_size * BINS];\n int index = 0;\n for(int i = 0; i < histogram.length; i++)\n {\n for(int k = 0; k < histogram[i].length; k++)\n {\n histValues[index++] = histogram[i][k];\n }\n }\n\n return histValues;\n }", "public org.apache.xmlbeans.XmlString[] xgetMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MAPPINGFIELDS$28, targetList);\n org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public int[] is() {\n int rval[] = new int[size()];\n for (int i = 0; i < rval.length; i++) {\n rval[i] = get(i) == null ? 0 : get(i).intValue();\n }\n return rval;\n }", "stars.StarType[] getStarArray();", "public int[] getArray() {\r\n return array;\r\n }", "public static int[] buildArray() throws IOException {\r\n\r\n //Variable initializations\r\n int[] intArray = {};\r\n int sumOfElements = 0;\r\n int index = 0;\r\n \r\n //Initialization of File and Scanner objects\r\n \r\n File sumOfIntegers = new File(fileInput);\r\n Scanner elementScanner = new Scanner(sumOfIntegers);\r\n\r\n //Loop that increases the num of array elements by 1 every time\r\n //it acknowledges an integer value within the file and subtracts\r\n //1 from the array elements when the sentinel value is reached.\r\n while (elementScanner.hasNextInt()) {\r\n sumOfElements++;\r\n \r\n \r\n //Assign next int scanner method to x variable\r\n //Used to process if boolean condition\r\n int x = elementScanner.nextInt();\r\n\r\n //When -999 sentinel value is reached reduce num of array elements\r\n //by 1 since we do not want it included\r\n if (x == -999) {\r\n sumOfElements = sumOfElements - 1;\r\n intArray = new int[sumOfElements];\r\n }\r\n //Assign sumOfElements as num of array elements\r\n intArray = new int[sumOfElements]; \r\n\r\n }\r\n\r\n //new scanner to reset abstract cursor of file\r\n elementScanner = new Scanner(sumOfIntegers);\r\n for (index = 0; index < sumOfElements; index++) {\r\n int x = elementScanner.nextInt();\r\n\r\n if (x != -999) {\r\n intArray[index] = x;\r\n }\r\n\r\n }\r\n\r\n //Closes the file/scanner\r\n elementScanner.close();\r\n\r\n return intArray;\r\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 abstract ParallelLongArray allUniqueElements();", "public int[] getGenes() {\r\n\t\tint[] genes = new int[9];\r\n\t\tgenes[0] = this.command.ordinal();\r\n\t\tif(this.senseDir == null){\r\n\t\t\tgenes[1] = -1;\r\n\t\t}else{\r\n\t\t\tgenes[1] = this.senseDir.ordinal();\r\n\t\t}\r\n\t\tif(this.turnDir == null){\r\n\t\t\tgenes[2] = -1;\r\n\t\t}else{\r\n\t\t\tgenes[2] = this.turnDir.ordinal();\r\n\t\t}\r\n\t\tgenes[3] = this.marker;\r\n\t\tgenes[4] = this.p;\r\n\t\tgenes[5] = this.st1;\r\n\t\tgenes[6] = this.st2;\r\n\t\tif(this.condition == null){\r\n\t\t\tgenes[7] = -1;\r\n\t\t}else{\r\n\t\t\tgenes[7] = this.condition.ordinal();\r\n\t\t}\r\n\t\tgenes[8] = this.senseMarker;\r\n\t\treturn genes;\r\n\t}", "public com.eviware.soapui.coverage.SegmentType[] getSegmentArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List<com.eviware.soapui.coverage.SegmentType> targetList = new java.util.ArrayList<com.eviware.soapui.coverage.SegmentType>();\n get_store().find_all_element_users(SEGMENT$2, targetList);\n com.eviware.soapui.coverage.SegmentType[] result = new com.eviware.soapui.coverage.SegmentType[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public Vector<Integer> getAllCells() { \t \n \t Cursor c = db.query(DATABASE_TABLE_CELL, new String[] {KEY_CELL_CELLID}, null, null, null, null, null);\n \t Cells = new Vector<Integer>();\n \t if (c.moveToFirst())\n {\n do {\n Cells.add(c.getInt(0));\n } while (c.moveToNext());\n }\n \t return Cells;\n }", "Iterable<? extends XomNode> elements();", "public int[] get() {\n return res;\n }", "private String[] getInstrumentIds(){\n logger.info(\"Getting Instruments from cache\");\n return instruments.keySet().toArray(new String[instruments.size()]);\n }", "public IScapSyncSearchResult[] getResults();", "public Object[] getElements() {\r\n\t\treturn elements.clone();\r\n\t}", "public Gr[] fetchObservations (int start, int stop){\n\t\tArrayList<Gr> subAL = new ArrayList<Gr>();\n\t\tint[] pos = grGraph.getBasePositions();\n\t\tfloat[] val = grGraph.getValues();\n\t\tfor (int i=0; i< pos.length; i++){\n\t\t\tif (pos[i]>= start && pos[i]<= stop) subAL.add(new Gr(pos[i], val[i]));\n\t\t}\n\t\tGr[] slice = new Gr[subAL.size()];\n\t\tsubAL.toArray(slice);\n\t\treturn slice;\n\t}", "public List<Index> getIndexes() {\n\t\tList<Index> indexes = new ArrayList<>();\n\t\tfor (Registration reg : registrations) {\n\t\t\tindexes.add(reg.getIndex());\n\t\t}\n\t\treturn indexes;\n\t}", "public static KDNode[] RootBuff() {\n\n\t\t int offset = 0;\n\t\t KDNode[] buff = new KDNode[root_map.size()];\n\t\t for(KDNode k : root_map) {\n\t\t\t buff[offset++] = k;\n\t\t }\n\t\t \n\t\t return buff;\n\t}", "public default boolean isArrayScanpath() {\n\t\treturn false;\n\t}", "List<IMEInventoryHandler> getCellArray();", "public abstract void startSingleScan();", "public int[] getIntArray(final String key) {\n return getIntArray(key, ArrayUtils.EMPTY_INT_ARRAY);\n }", "public void scan(Integer[] collectionIds, boolean forceRescan) \nthrows MediaAlbumException;", "public List<Index> getIndexes();", "com.google.cloud.dataplex.v1.DataScanOrBuilder getDataScansOrBuilder(int index);", "public int[] getInts(int areaX, int areaY, int areaWidth, int areaHeight) {\n/* 17 */ int[] var5 = this.parent.getInts(areaX, areaY, areaWidth, areaHeight);\n/* 18 */ int[] var6 = IntCache.getIntCache(areaWidth * areaHeight);\n/* */ \n/* 20 */ for (int var7 = 0; var7 < areaHeight; var7++) {\n/* */ \n/* 22 */ for (int var8 = 0; var8 < areaWidth; var8++) {\n/* */ \n/* 24 */ initChunkSeed((var8 + areaX), (var7 + areaY));\n/* 25 */ var6[var8 + var7 * areaWidth] = (var5[var8 + var7 * areaWidth] > 0) ? (nextInt(299999) + 2) : 0;\n/* */ } \n/* */ } \n/* */ \n/* 29 */ return var6;\n/* */ }", "public org.landxml.schema.landXML11.TurnRestrictionDocument.TurnRestriction[] getTurnRestrictionArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(TURNRESTRICTION$8, targetList);\r\n org.landxml.schema.landXML11.TurnRestrictionDocument.TurnRestriction[] result = new org.landxml.schema.landXML11.TurnRestrictionDocument.TurnRestriction[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public java.util.List[] getPointArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(POINT$0, targetList);\n java.util.List[] result = new java.util.List[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getListValue();\n return result;\n }\n }", "public static DataScan createFullScan() {\n DataScan scan = SIDriver.driver().getOperationFactory().newDataScan(null);\n scan.startKey(SIConstants.EMPTY_BYTE_ARRAY).stopKey(SIConstants.EMPTY_BYTE_ARRAY).returnAllVersions();\n return scan;\n }", "public org.apache.xmlbeans.XmlString[] xgetImportArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(IMPORT$0, targetList);\n org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public Set<String> enumerateRegisters() {\r\n\t\treturn this.registers.keySet();\r\n\t}", "public static Recycler[] getRecyclers() \n\t{\n\tRecycler[] result = new Recycler[gAllTop];\n\tSystem.arraycopy(gAllRecyclers, 0, result, 0, gAllTop);\n\treturn result;\n\t}", "org.landxml.schema.landXML11.SpeedsDocument.Speeds[] getSpeedsArray();", "public int[] keySet() {\n objectCounter++;\n int[] keys = new int[contents];\n int cnt = 0;\n MapElement me = null;\n\n for (int i = 0; i < capacity; i++) {\n if (map[i] != null) {\n me = map[i];\n while (null != me) {\n keys[cnt++] = me.getKey();\n me = me.getNext();\n }\n }\n }\n return keys;\n }", "public WFJFilterMap[] asArray() {\n synchronized (lock) {\n return array;\n }\n }" ]
[ "0.6318306", "0.5781955", "0.5633107", "0.56312406", "0.5587346", "0.55844176", "0.5536837", "0.5516327", "0.5460488", "0.5428218", "0.54238105", "0.53427064", "0.5334416", "0.53152883", "0.52969044", "0.5260302", "0.5260141", "0.5259795", "0.5247034", "0.5239923", "0.5227366", "0.522473", "0.52236676", "0.5218023", "0.52143687", "0.5214345", "0.5208637", "0.5207586", "0.52070063", "0.5201255", "0.5198515", "0.51898056", "0.5185883", "0.51857305", "0.51790863", "0.5177939", "0.51471543", "0.51296014", "0.51191086", "0.51031363", "0.5102495", "0.50989157", "0.5089787", "0.50878054", "0.5083522", "0.50751865", "0.50747126", "0.5072454", "0.5059194", "0.5058298", "0.50564903", "0.5056151", "0.5054288", "0.5052541", "0.5052201", "0.50505126", "0.50483495", "0.50467116", "0.50466937", "0.50414705", "0.5034668", "0.50276357", "0.50243264", "0.5023621", "0.5013944", "0.5010113", "0.49953583", "0.49895936", "0.498609", "0.49761307", "0.49712133", "0.49698734", "0.4968726", "0.49681497", "0.49660596", "0.4960559", "0.49579358", "0.495696", "0.49560863", "0.49508005", "0.49490005", "0.49414426", "0.4939873", "0.49396306", "0.49365485", "0.49331748", "0.49261814", "0.4926062", "0.49259457", "0.49252975", "0.49246344", "0.4919985", "0.49191245", "0.49179542", "0.49138442", "0.49063605", "0.4905049", "0.4904806", "0.49011692", "0.4898121" ]
0.6159638
1
Gets ith "scans" element
com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints getScansArray(int i);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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}", "@Override\n public int element() {\n isEmptyList();\n return first.value;\n }", "public int getIteration();", "public int get(int index);", "public int iterativeGet(int i) {\n int val = 0;\n val = this.first;\n IntList p = this.rest;\n while (i > 0) {\n val = p.first;\n p = p.rest;\n i--;\n }\n return val;\n }", "private int elementNC(int i) {\n return first + i * stride;\n }", "int get(int idx);", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "public int getFirst();", "public int getIterator(T element) {\n for (int j = 1; j < numberOfBlocks; ++j) {\n if (dataInBegin[j] != null && comparator.compare((T)dataInBegin[j], element) > 0) {\n for (int k = (len * (j - 1) << 1); k < endOfBlock[j - 1]; ++k) {\n if (comparator.compare((T) data[k], element) == 0) {\n return k;\n }\n }\n }\n }\n\n for (int k = (len * (numberOfBlocks - 1) << 1); k < endOfBlock[numberOfBlocks - 1]; k++)\n if (comparator.compare((T)data[k], element) == 0) {\n return k;\n }\n return NO_ELEMENT;\n }", "abstract int get(int index);", "public int getIndex();", "public int getIndex();", "public int getIndex();", "public Integer peek() {\n if (isPeeked)\n return peekedElement;\n else {\n if (!hasNext())\n return -1;\n peekedElement = iterator.next();\n isPeeked = true;\n return peekedElement;\n }\n }", "@TimeComplexity(\"O(1)\")\n\tpublic int index()\n\t{\n\t\t//TCJ: the cost does not vary with input size so it is constant\n\t\treturn index;\n\t}", "public int peek() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n return elementData[1];\n }", "public long getElem(int index) {\r\n return a[index];\r\n }", "public int getElement(Pair<Integer, Integer> cell){\n\t\treturn numbers[cell.getFirst()][cell.getSecond()];\n\t}", "E get(int i) throws IndexOutOfBoundsException;", "int getItems(int index);", "public int next() {\n moveToNextIndex();\n return _hash._set[_index];\n }", "public Item get(int i);", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "public Object nextElement() {\n/* 75 */ return this.iterator.next();\n/* */ }", "public int get(int i) {\n if (i==0) {\n return first;\n }\n return rest.get(i - 1);\n }", "protected abstract Object getNthObject(int n);", "int index();", "public Integer peek() {\n return nums.get(index);\n }", "public T get(int i);", "private Iterator<Integer> getIterator(Iterator<Iterator<Integer>> iter) {\n Iterator<Integer> iterator = null;\n while (iter.hasNext()) {\n iterator = iter.next();\n break;\n }\n return iterator;\n }", "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}", "int readerIndex();", "public int getElem(int n){\n return this._elems.get(n);\n }", "Object getElementAt(int index);", "@Override\n public Integer next() {\n return nums.get(index++);\n }", "public int nextInt() {\n int temp = results.get(index);\n index = index + 1;\n System.out.println(index);\n return temp;\n }", "private Optional<Integer> nextReaderIndex() {\n Optional<Integer> index = Optional.absent();\n for (int i = 0; i < callReaders.size(); i++) {\n if (callReaders.get(i).hasNext()) {\n index = Optional.of(i);\n break;\n }\n }\n\n return index;\n }", "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 E first() \n throws NoSuchElementException {\n if (entries != null && \n size > 0 ) {\n position = 0;\n E element = entries[position]; \n position++;\n return element;\n } else {\n throw new NoSuchElementException();\n }\n }", "int getIndexOfElement(T value);", "public int getIteratorByIndex(int index) {\n int current = 0;\n for (int j = 0; j < numberOfBlocks; ++j) {\n if (current + endOfBlock[j] - (len * j << 1) > index) {\n int indexInData = (len * j << 1) + (index - current);\n return indexInData;\n } else current += endOfBlock[j] - (len * j << 1);\n }\n return NO_ELEMENT;\n }", "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}", "private Integer serialSearch() {\n int currentIndex = startIndex;\n for (int i = start; i < end; i++) {\n if (this.searchIndex == currentIndex) {\n return currentIndex;\n }\n currentIndex++;\n }\n return 0;\n }", "public int index();", "public T nextElement() {\r\n\t\treturn items[currentObject++];\r\n \t}", "@Override\n\tpublic Integer next() {\n\t return iterator.next();\n\t}", "public RTWElementRef getAsElement(int i);", "public int getIter() {\n\t\treturn this.iter;\n\t}", "public Object elementAt(int n) {\r\n\t\treturn elements.get(n);\r\n\t}", "public abstract int getStartIndex();", "T get(int i);", "int getKey(int i);", "public Object next()\n/* */ {\n/* 84 */ if (this.m_offset < this.m_limit) {\n/* 85 */ return this.m_array[(this.m_offset++)];\n/* */ }\n/* 87 */ throw new NoSuchElementException();\n/* */ }", "public int getIndex() { return this.index; }", "public int getIndex()\n {\n return index;\n }", "@Override\n public Integer get() {\n return ++counter;\n }", "public int peek() {\n\t return first;\n\t}", "public int get(int i) {\n // YOUR CODE HERE\n return 1;\n }", "public int getIndex(){\r\n \treturn index;\r\n }", "public Index next() {\n return Index.valueOf(value + 1);\n }", "int getMatchedElements();", "Integer getPage();", "Object get(int i);", "public T next(){\r\n return itrArr[position++];\r\n }", "public int getIntLE(int index)\r\n/* 383: */ {\r\n/* 384:397 */ ensureAccessible();\r\n/* 385:398 */ return _getIntLE(index);\r\n/* 386: */ }", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "private int getIndex(int val){\n return val%bucket;\n }", "E get( int index );", "@Override\n public Integer next() {\n if (!isPeeked && hasNext())\n return iterator.next();\n int toReturn = peekedElement;\n peekedElement = -1;\n isPeeked = false;\n return toReturn;\n }", "public int getIntLE(int index)\r\n/* 775: */ {\r\n/* 776:784 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 777:785 */ return super.getIntLE(index);\r\n/* 778: */ }", "int getBlockNumbers(int index);", "public int getFirst() {\n if (size > 0)\n return 0;\n else\n return NO_ELEMENT;\n }", "int getIndex(){\r\n\t\treturn index;\r\n\t}", "public int getIndex(){\n return index;\n }", "public int getIndex(){\n return index;\n }", "public int currentindex() {\n\t\treturn currentElement;\n\t}", "protected int _getIntLE(int index)\r\n/* 389: */ {\r\n/* 390:403 */ return HeapByteBufUtil.getIntLE(this.array, index);\r\n/* 391: */ }", "int getIndex() {\n\t\treturn index;\n\t}", "protected int getIteration() {\n\t\treturn iteration;\n\t}", "public Integer get(int index){\n return list.get(index);\n }", "public I next(){\n return (I) listI.get(index++);\n }", "public int getElem()\r\n\t{\r\n\t\treturn elem;\r\n\t}", "int getFirstItemOnPage();", "public Integer peek() {\n List<Integer> temp = new ArrayList<>();\n \n while(iterator.hasNext()){\n \ttemp.add(iterator.next());\n }\n \n Integer result = null;\n if(temp.size() > 0){\n result = temp.get(0);\n }\n \n iterator = temp.iterator();\n return result;\n\t}", "public int topElement() {\n\t\tif(isEmpty()){\n\t\t\tthrow new AssertionError();\n\t\t}\n\t\telse {\n\t\t\treturn heap.get(0).element;\n\t\t\n\t\t}\n\t}", "@Test\n public void elementLocationTestIterative() {\n int elementNumber = 3;\n System.out.println(nthToLastReturnIterative(list.getHead(), elementNumber).getElement());\n }", "public Integer peek() {\n if(peekedVal == null){\n if(!iter.hasNext()){\n throw new NoSuchElementException();\n }\n peekedVal = iter.next();\n }\n return peekedVal;\n }", "public int getIndex()\n {\n return m_index;\n }" ]
[ "0.6639307", "0.62495244", "0.62003624", "0.6177981", "0.6150743", "0.5990139", "0.5967557", "0.5966979", "0.5966979", "0.5966979", "0.5966979", "0.5966979", "0.5966979", "0.5966979", "0.5966979", "0.5966979", "0.5966979", "0.5966979", "0.5966979", "0.5966979", "0.5944393", "0.5939319", "0.5930739", "0.5924265", "0.5924265", "0.5924265", "0.58900666", "0.58855975", "0.5880153", "0.5852396", "0.5851177", "0.58478516", "0.58422494", "0.5836017", "0.58157116", "0.58086306", "0.5791713", "0.57695276", "0.5766637", "0.57645804", "0.5745295", "0.57406014", "0.5740552", "0.5734176", "0.5727637", "0.5725166", "0.5722508", "0.5719277", "0.5717205", "0.5715351", "0.5714817", "0.57134557", "0.570517", "0.5703999", "0.56963825", "0.5686463", "0.5682356", "0.566972", "0.566933", "0.566858", "0.56569326", "0.56566066", "0.56557155", "0.5646796", "0.5643979", "0.5635701", "0.56347007", "0.5629442", "0.5601881", "0.55912566", "0.5591185", "0.55852395", "0.5582017", "0.55793864", "0.557661", "0.55757666", "0.5571364", "0.5570745", "0.5568426", "0.55672985", "0.5563228", "0.55589205", "0.5557904", "0.5549818", "0.55486417", "0.5547034", "0.55422777", "0.55422777", "0.5542148", "0.5539115", "0.5538309", "0.55369204", "0.5529748", "0.5528297", "0.55257183", "0.55255234", "0.55097014", "0.5505011", "0.55033183", "0.55032724", "0.5493223" ]
0.0
-1
Tests for nil ith "scans" element
boolean isNilScansArray(int i);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkCurrentIterator(Iterator<Integer> iter) {\n return iter != null;\n }", "private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}", "@Override\r\n\t\tpublic boolean hasNext() {\r\n\t\t\treturn arr[index] != null && index < arr.length;\r\n\t\t}", "public int checkforNull() {\r\n\t\t int notNull=0;\r\n\t\t for(int a=0; a<populationSize();a++) {\r\n\t\t\t if(getTour(a)!=null) {\r\n\t\t\t\t notNull++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t return notNull;\r\n\t }", "@Override\n public boolean hasNext()\n {\n Node testNode = getNth(idx);\n if(testNode.getElement() == null)\n {\n return false;\n }\n else\n {\n return true;\n }\n }", "@Override\r\n\tpublic boolean isempty() {\n\t\treturn count<=0;\r\n\t\t\r\n\t}", "private boolean isEmpty() {return first == null;}", "private boolean checkHaveThisNode(int index) {\n\t\treturn this.array[index] == null;\n\t}", "protected boolean advance()\n/* */ {\n/* 66 */ while (++this.m_offset < this.m_array.length) {\n/* 67 */ if (this.m_array[this.m_offset] != null) {\n/* 68 */ return true;\n/* */ }\n/* */ }\n/* 71 */ return false;\n/* */ }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn topIndex < 0;\r\n\t}", "@Override\n public boolean hasNext() {\n return (arreglo[i] != null) & arreglo.length > i ;\n }", "public int j()\r\n/* 60: */ {\r\n/* 61: 79 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 62: 80 */ if (this.a[i] == null) {\r\n/* 63: 81 */ return i;\r\n/* 64: */ }\r\n/* 65: */ }\r\n/* 66: 84 */ return -1;\r\n/* 67: */ }", "@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}", "public boolean checkEmpty() \n { \n return header.rightChild == nullNode; \n }", "public boolean isEmpty(){ return Objects.isNull(this.begin ); }", "public int antalNuller(ArrayList<Integer> list) {\r\n int nuller = 0;\r\n for (int i : list) {\r\n if (i == 0) {\r\n nuller++;\r\n }\r\n }\r\n return nuller;\r\n }", "@Override\n public boolean hasNext() {\n return (this.index != values.length) && (values[index] != null);\n }", "private void checkEmpty() throws NoSuchElementException\n\t{\n\t\tif (isEmpty())\n\t\t{\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn top < 0;\n\t}", "public boolean isEmpty(){\n \treturn top==-1;\n\t}", "@Test\n public void whenTreeIsBlankThanHasNextIsFalse() {\n assertThat(this.tree.iterator().hasNext(), is(false));\n }", "@Override\n public boolean isEmpty(){\n return this.first == null;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn first == null;\n\t}", "@Override\r\n\tpublic boolean isEmtpy() {\r\n\t\tif (this.front == -1) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean hasNext(){\n return current !=null;\n\n }", "public int findEmpty()\n\t{\n\t\temptyIndices.clear();\n\t\tfor (int i = 0; i < 20; i++)\n\t\t{\n\t\t\tif (river[i] == null)\n\t\t\t\temptyIndices.add(i);\n\t\t}\n\t\t\n\t\tif (emptyIndices.size() != 0){\n\t\t\treturn (int) emptyIndices.get(rng.nextInt(emptyIndices.size()));\n\t\t}\n\t\telse\n\t\t\treturn -1;\n\t}", "boolean isEmpty()\n\t{\n\t\treturn front==-1;\n\t}", "public boolean isEmpty(){\n\t\treturn first==null;\r\n\t}", "public boolean isEmpty()\r\n\t{\r\n\t\treturn top<=0;\r\n\t}", "boolean getPageNoNull();", "public boolean isNilLimit()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlNonNegativeInteger target = null;\r\n target = (org.apache.xmlbeans.XmlNonNegativeInteger)get_store().find_element_user(LIMIT$6, 0);\r\n if (target == null) return false;\r\n return target.isNil();\r\n }\r\n }", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\t\t\n\t}", "public boolean isEmpty(){\n return first == null;\n }", "public boolean isEmpty()\n\t{ \n\t\treturn (front==-1);\n\t}", "private void check() {\n if (s[s.length-1] != null) {\n for (int i = 0; i < N; i++) {\n s[i] = s[first+i];\n s[first+i] = null;\n }\n first = 0;\n }\n }", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\n\t}", "private void scanFields(TupleAccessor tuple) {\n for ( int i = 0; i < fieldCount; i++ ) {\n FieldAccessor field = tuple.getField( i );\n isNull[i] = field.isNull();\n }\n }", "public boolean isEmpty( ){\r\n\t\treturn beginMarker.next==endMarker;\r\n\t}", "boolean isEmpty() {\r\n\t\treturn top==0;\r\n\t}", "protected int findNonEmptyPosition() {\n\t\t\twhile (!set.bv[++indice]) {\n\t\t\t}\n\t\t\treturn indice;\n\t\t}", "@Override\n public boolean hasNext() {\n return this.position != values.length && values[this.position] != null;\n }", "public boolean hasNext()\n/* */ {\n/* 82 */ return this.m_offset < this.m_array.length;\n/* */ }", "public boolean isEmpty() {\n return topIndex < 0;\n }", "public boolean isEmpty() {\n return first == null;\n }", "public boolean isEmpty()\n {\n return first == null;\n }", "public boolean hasNext()\r\n {\r\n if(e.get(index+1) == null)\r\n return false;\r\n else\r\n return true;\r\n }", "public boolean isEmpty(int i) { /* ... code ... */ }", "public boolean isEmpty() {\r\n\t\treturn cur_index==0;\r\n\t}", "private SimpleHashtable.TableEntry<K, V> findNextNonNullTableRowEntry() {\r\n\t\t\tcurrentRow++;\r\n\r\n\t\t\twhile (currentRow < table.length) {\r\n\t\t\t\tif (table[currentRow] != null) {\r\n\t\t\t\t\treturn table[currentRow];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcurrentRow++;\r\n\t\t\t}\r\n\r\n\t\t\treturn null;\r\n\t\t}", "public boolean isEmpty(){\n\t\treturn start == null;\n\t}", "@Override\n\tpublic boolean notEmpty() {\n\t\treturn count==0&&front==rear?true:false;\n\t}", "public boolean isEmpty() {\n\t return first == null;\n }", "public boolean hasNext() {\r\n if (current + 1 >= elem.length) {\r\n current = 0;\r\n }\r\n return elem[current + 1] != null;\r\n }", "@Test\n public void testNullElements() {\n ArrayList<Flight> nullFlights = new ArrayList<>();\n nullFlights.add(null);\n nullFlights.add(null);\n sortFlights.sortFlightsBy(nullFlights, SortFlights.SortParameter.TIME);\n for (Flight f : nullFlights) {\n // All elements should still just be null\n assertNull(f);\n }\n }", "public boolean isEmpty() {\n return first == null;\n\n }", "public boolean isEmpty() {\r\n return first == null;\r\n }", "public boolean isEmpty() {\n return top==-1;\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn top==null;\r\n\t}", "public boolean isEmpty() {\n\t\treturn first == null;\n\t}", "public boolean isEmpty() {\n\t\treturn first == null;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn firstNode.equals(null);\n\t}", "private int lastNotNull() {\n\t\treturn (!this.checkEmpty()) ? findLast() : 0;\n\t}", "public int checkEmpty() {\n\t\treturn (slist.checkEmpty());\n\n\t}", "@Test(enabled = true, dependsOnMethods = {\"remove\"}, expectedExceptions = NullPointerException.class)\n\tpublic void getNullOnNull() {\n\t\tassert stack.getLast().getNext() == node5;\n\t}", "@Test\n public void test20() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1341,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test20\");\n IIOMetadataNode iIOMetadataNode0 = new IIOMetadataNode(\"\");\n iIOMetadataNode0.getParentNode();\n // Undeclared exception!\n try {\n IteratorUtils.nodeListIterator((Node) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Node must not be null\n //\n }\n }", "private boolean isElementIndex(final long index) {\r\n\t\treturn index >= 0 && index < size;\r\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn (t==1);\r\n\t}", "private boolean isEmpty( int r, int c ) {\n\treturn matrix[r][c] == null;\n }", "protected Sampler nextIsNull() throws NextIsNullException {\n reInitialize();\n return null;\n }", "public boolean isEmpty() {\n return first==null;\n }", "@Override\n public boolean hasNext() {\n return itListCell != first;\n }", "private Cell searchEmptySurrounding(){\n List <Cell> blocks = getSurroundingCells(currentWorm.position.x, currentWorm.position.y);\n for (Cell block : blocks){\n if(!isCellOccupied(block)) return block;\n }\n return null;\n }", "boolean isNilTag();", "public boolean isEmpty(){return n==0;}", "private int[] blankFinder(){\n for(int x = 0; x < n; x++){\n for(int y = 0; y < n; y++){\n if(tiles[x][y] == 0){\n return new int[]{x, y};\n }\n }\n }\n return null;\n }", "public boolean hasNext() {\n return nodeIndex != iterN;\n }", "@Test(timeout = TIMEOUT, expected = IllegalArgumentException.class)\n public void testQuickNull() {\n Random random = new Random(1332);\n Integer[] arr = {4, 2, 1, 3};\n Sorting.quickSort(null, comparator, random);\n Sorting.quickSort(arr, null, random);\n Sorting.quickSort(arr, comparator, null);\n }", "public boolean isEmpty() {\n return first == null;\n }", "public boolean isEmpty() {\n return first == null;\n }", "public boolean isEmpty() {\n return first == null;\n }", "public boolean isEmpty() {\n return first == null;\n }", "public boolean empty() \n { \n\treturn(top==-1);\n \n }", "private boolean isEmptyMidwest()\r\n\t{\r\n\t\treturn (midwestElem == 0);\r\n\t}", "boolean isNilArrayOfFaultTypeArray(int i);", "public boolean isEmpty(){\n return this.start == null;\n }", "public boolean isEmpty()\r\n { return N == 0; }", "@Override\n public Event firstScan() {\n return null;\n }", "@Test (expected=java.lang.NullPointerException.class)\n public void case1SortNoElem() {\n data.runAlgo(algoUnderTest);\n\n }", "boolean isEmpty ()\n {\n return (front == -1);\n }", "public boolean isEmpty( )\n {\n return header.next == null;\n }", "public boolean isEmpty() {\n return this.first == null;\n }", "public boolean isEmpty() {\r\n\t\t\treturn (First==null); }", "public boolean isEmpty() {\n // TODO: implement this method\n return nil.next().value() == null;\n }", "public boolean isEmpty()\n\t{\n\t\treturn top == null;\n\t}", "public static boolean MarklogicNullNodeTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"MarklogicNullNodeTest\")) return false;\n if (!nextTokenIs(b, K_NULL_NODE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, MARKLOGIC_NULL_NODE_TEST, null);\n r = consumeTokens(b, 2, K_NULL_NODE, L_PAR);\n p = r; // pin = 2\n r = r && report_error_(b, MarklogicNullNodeTest_2(b, l + 1));\n r = p && consumeToken(b, R_PAR) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public boolean hasNeighbours() {\n\t\tif (this.eltZero != null || this.eltOne != null || this.eltTwo != null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}", "public boolean isEmpty() { \r\n \treturn n == 0;\r\n }", "public boolean isEmpty()\r\n\t{\r\n\t\treturn start == null; // returns to null if true.\r\n\t}", "public boolean isEmpty ()\n {\n return lastIndex == -1;\n }" ]
[ "0.6525195", "0.6244991", "0.6203599", "0.61822325", "0.614717", "0.614542", "0.61275524", "0.6077806", "0.6004578", "0.58913964", "0.58609754", "0.58224875", "0.5801606", "0.5801254", "0.579709", "0.57785714", "0.57741064", "0.5773999", "0.5733351", "0.57251525", "0.5715566", "0.5691202", "0.56805277", "0.5675959", "0.56624174", "0.5599468", "0.5585046", "0.55772835", "0.55660695", "0.55649513", "0.5558648", "0.5557462", "0.55562574", "0.55369824", "0.5525209", "0.55184835", "0.5515657", "0.54943144", "0.5492779", "0.54899555", "0.54857695", "0.54674596", "0.54612035", "0.5448365", "0.5442202", "0.54392433", "0.54330796", "0.5432681", "0.5430724", "0.5428007", "0.5422061", "0.5415287", "0.54056984", "0.53883433", "0.5388105", "0.5380932", "0.5380882", "0.53806156", "0.53765786", "0.53765786", "0.53744847", "0.5373247", "0.53714556", "0.53464735", "0.5339418", "0.53355205", "0.5334883", "0.53321916", "0.5330452", "0.5330109", "0.53268015", "0.53262305", "0.5325482", "0.5324507", "0.53176296", "0.53169274", "0.5313166", "0.5312124", "0.5312124", "0.5312124", "0.5312124", "0.5297", "0.5291182", "0.52897507", "0.5285098", "0.5278611", "0.52751523", "0.5274497", "0.5273621", "0.5273342", "0.5273313", "0.52719474", "0.52690476", "0.5267147", "0.5259414", "0.52553403", "0.5252469", "0.52449536", "0.52365166", "0.52325207" ]
0.6706026
0
Returns number of "scans" element
int sizeOfScansArray();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getDataScansCount();", "Long getNumberOfElement();", "public int numberOfOccorrence();", "public Integer getNscan() {\r\n return nscan;\r\n }", "int findCount();", "public Long getElementCount();", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "public Integer getScannedCount() {\n return this.scannedCount;\n }", "int getTotalElements();", "int getBlockNumbersCount();", "public int getNumberOfElements();", "org.apache.xmlbeans.XmlInt xgetNumberOfResults();", "int getInCount();", "int getIndexesCount();", "public int countToMark() {\n\t\tint count = 0;\n\t\tint i = elementCount - 1;\n\t\twhile (i > 0 && !(elementData[i] instanceof PSMark)) {\n\t\t\ti--;\n\t\t\tcount++;\n\t\t}\n\t\treturn (elementData[i] instanceof PSMark) ? count : -1;\n\t}", "public abstract Integer getNumberOfElements();", "int getSeenInfoCount();", "Integer count();", "Integer count();", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}", "public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }", "public int count () throws IOException {\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tinit();\n\t\twhile(hasNext()) {\n\t\t\tElement el = nextElement();\n\t\t\tint hash = el.GetHash();\n\t\t\tint pos = locate (list, hash);\n\t\t\tif ((pos == list.size()) || (list.get(pos) != hash)) {\n\t\t\t\tlist.add(pos, hash);\n\t\t\t}\n\t\t\t/*for (i=0; i<list.size() && list.get(i)<hash; i++) {}\n\t\t\t\tif ((i==list.size()) || (list.get(i) != el.GetHash())) {\n\t\t\t\t\tlist.add(i, hash);\n\t\t\t\t}*/\n\t\t}\n\t\treturn list.size();\n\t}", "int getBlockNumsCount();", "int getBlockNumsCount();", "public int count(){\n\tboolean val = false;\n\tint cont = 0;\n\tfor(int i =0;i<arch.length && !val;i++){\n\t\tif(arch[i]!=null){\n\t\t\tcont++;\n\t\t}\n\t\telse{\n\t\t\tval=true;\n\t\t}\n\t}\n\treturn cont;\n}", "Integer countAll();", "public int countResults() \n {\n return itsResults_size;\n }", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "int count() {\n return index.capacity() / 24;\n }", "public int getCount()\r\n {\r\n return counts.peekFirst();\r\n }", "public int getElementCount(final String elementLocator);", "Object getNumberMatched();", "public int getNumberFound() {\n return numberFound;\n }", "Integer size();", "Integer size();", "int count() {\n\t\tArrayList<Integer> checked = new ArrayList<Integer>();\r\n\t\tint count = 0;\r\n\t\tfor (int x = 0; x < idNode.length; x++) {// Order of N2\r\n\t\t\tint rootX = getRoot(x);\r\n\t\t\tif (!checked.contains(rootX)) {// Order of N Access of Array\r\n\r\n\t\t\t\tSystem.out.println(\"root x is \" + rootX);\r\n\t\t\t\tcount++;\r\n\t\t\t\tchecked.add(rootX);// N Access of Array\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public int sizeOf();", "public int numItemInList() {\n return nextindex - startIndex;\n }", "int getMinimalIterationCount();", "int getNumberOfResults();", "private int indexUntilCheckpointCount() {\n int total = 0;\n for (int i = 0; i < MAX_CHECKPOINTS_BEHIND; i++) {\n final int numDocs = randomIntBetween(1, 5);\n for (int j = 0; j < numDocs; ++j) {\n indexDoc();\n }\n total += numDocs;\n refresh(INDEX_NAME);\n }\n return total;\n }", "int getMatchedElements();", "int getIndicesCount();", "int getNodeCount();", "int getNodeCount();", "public int numberOfEntries();", "int findAllCount() ;", "int getResultsCount();", "int getResultsCount();", "public int count();", "public int count();", "public int count();", "public int count();", "public int count() throws TrippiException {\n try {\n int n = 0;\n while (hasNext()) {\n next();\n n++;\n }\n return n;\n } finally {\n close();\n }\n }", "int getInstrumentCount();", "int getAoisCount();", "public int get_count();", "public int count() {\n\t\tint q = 0;\n\t\tfor(int i = 0; i < list.length; i++) if (list[i] != null) q++;\n\t\treturn q;\n\t\t\n\t}", "int getNumberOfInfantry();", "public XPath getCount()\n {\n return m_countMatchPattern;\n }", "public int size() {\r\n int temp = 0;\r\n for (int i = 0; i < elem.length; i++) {\r\n if (elem[i] != null) {\r\n temp++;\r\n }\r\n }\r\n return temp;\r\n }", "public long count() {\n\t\treturn 0;\n\t}", "public long count() {\n\t\treturn 0;\n\t}", "public int getNumberOfEntries();", "int getNumberOfDetectedDuplicates();", "int getMissingCount();", "long size();", "long size();", "long size();", "long size();", "int docValueCount() throws IOException;", "public long count() ;", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }", "@Test\n public void getCount() throws Exception {\n int[] a = new int[]{250, 501, 5000, 5, 4};\n\n Solution solution = new Solution();\n\n int c = solution.getCount(a, 0, 4, 0, 5);\n\n assertEquals(3, c);\n\n c = solution.getCount(a, 0, 4, 0, 10);\n\n assertEquals(2, c);\n\n c = solution.getCount(a, 0, 4, 2, 3);\n\n assertEquals(2, c);\n }", "int count();", "int count();", "int count();", "int count();", "int count();", "int count();", "int getReaultCount();", "private int countRootScan(SearchContext ctx) {\n\t\tfinal int dimension = numDim;\n\t\tfinal int[] mins = ctx.qmins;\n\t\tfinal int[] maxs = ctx.qmaxs;\n\t\tfinal SearchNode curNode = ctx.current();\n\t\tfinal int contained = curNode.contained;\n\t\tfinal int rootStart = curNode.rootStart;\n\t\tfinal int rootEnd = rootStart + curNode.width;\n\t\tfinal int notContained = dimension - Integer.bitCount(contained);\n\t\tint freqResult = 0;\n\t\tif (notContained == 1) {\n\t\t\t// sequential-scan on final dimension\n\t\t\tfinal int last1d = Integer.numberOfLeadingZeros(~contained);\n\t\t\tfinal int[] basearray = zoPoints[last1d];\n\t\t\tfinal int min = mins[last1d];\n\t\t\tfinal int max = maxs[last1d];\n\t\t\tfor (int j = rootStart; j < rootEnd; j++) {\n\t\t\t\tfinal int val = basearray[j];\n\t\t\t\tif (val >= min && val <= max) {\n\t\t\t\t\tfreqResult++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// sequential-scan on not contained dimensions\n\t\t\tint[] dims = ctx.work1;\n\t\t\tfor (int ptr = 0, d = 0; d < dimension; d++) {\n\t\t\t\tif (contained << d < 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdims[ptr++] = d;\n\t\t\t}\n\t\t\tJLOOP: for (int j = rootStart; j < rootEnd; j++) {\n\t\t\t\tfor (int ptr = 0; ptr < notContained; ptr++) {\n\t\t\t\t\tfinal int d = dims[ptr];\n\t\t\t\t\tfinal int val = zoPoints[d][j];\n\t\t\t\t\tif (val < mins[d] || val > maxs[d]) {\n\t\t\t\t\t\tcontinue JLOOP;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfreqResult++;\n\t\t\t}\n\t\t}\n\t\treturn freqResult;\n\t}", "@Override\n\tpublic int countIndex() {\n\t\treturn logoMapper.selectCountLogo()+headbannerMapper.selecCountHB()+succefulMapper.selecCountSucc()+solutionMapper.selecCountSolu();\n\t}", "int cardinality();", "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }", "int getInfoCount();", "int getInfoCount();", "int getInfoCount();", "public int size(){\n\t\tListMapEntry temp = first;\n\t\tint c=0;\n\t\twhile(temp!=null){\n\t\t\tc++;\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t\treturn c;\n\t}", "public static int numberOfElement()\n\t{\n\t\treturn REF_INT_STRING.size();\n\t}", "public int size() \r\n\t{\r\n\t\treturn getCounter();\r\n\t}", "String getCountInt();", "int getAcksCount();" ]
[ "0.7286388", "0.7141086", "0.7009994", "0.6919195", "0.6788664", "0.6737164", "0.67365503", "0.6699988", "0.65924203", "0.651896", "0.6491768", "0.64602673", "0.644338", "0.6416741", "0.64134187", "0.6387543", "0.63728565", "0.6370513", "0.6370513", "0.635855", "0.634852", "0.63347065", "0.63101447", "0.63101447", "0.630232", "0.6276783", "0.62735623", "0.62630206", "0.62630206", "0.62630206", "0.62582546", "0.62545973", "0.62544227", "0.62509", "0.6247681", "0.6247105", "0.6247105", "0.6237772", "0.6227443", "0.62228537", "0.62210494", "0.6199841", "0.61993366", "0.61984295", "0.6189103", "0.61840814", "0.61840814", "0.6173622", "0.6173044", "0.61706537", "0.61706537", "0.6151122", "0.6151122", "0.6151122", "0.6151122", "0.6144161", "0.61346674", "0.61310136", "0.6121073", "0.6107191", "0.60993", "0.6099277", "0.60930735", "0.60802704", "0.60802704", "0.6048298", "0.60476446", "0.6044978", "0.60310996", "0.60310996", "0.60310996", "0.60310996", "0.60305303", "0.6020017", "0.6019504", "0.6019504", "0.6019504", "0.6019504", "0.6019504", "0.60098034", "0.6009493", "0.6002664", "0.6002664", "0.6002664", "0.6002664", "0.6002664", "0.6002664", "0.6001608", "0.599183", "0.599167", "0.5986611", "0.5982455", "0.5977894", "0.5977894", "0.5977894", "0.59708464", "0.5966955", "0.5965057", "0.5962784", "0.5959559" ]
0.6990295
3
Sets array of all "scans" element
void setScansArray(com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints[] scansArray);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setScansArray(int i, com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints scans);", "void setNilScansArray(int i);", "public void setArray(int i, Array x);", "public void set(int[] ai);", "public void resetChangeableArrays(int[] reg)\n {\n valList = new LinkedList<Integer>();\n possibilityList = new LinkedList<Point>();\n for(int j = 0; j<accumulator.length; j ++)Arrays.fill(accumulator[j],0);\n //accumulator = zeroAccumulator;\n region = reg;\n \n }", "public void set( RpLidarScan scan ) {\n\t\tSystem.arraycopy(scan.quality,0,quality,0,N);\n\t\tSystem.arraycopy(scan.distance,0,distance,0,N);\n\t\tSystem.arraycopy(scan.time,0,time,0,N);\n\t\tSystem.arraycopy(scan.pos_asserv,0,pos_asserv,0,N);\n\t\tused.clear();\n\t\tused.addAll(scan.used);\n\t}", "private void setSet(int[] set){\n this.set = set;\n }", "void setStarArray(int i, stars.StarType star);", "public void setArr(int[] arr){ this.arr = arr; }", "static void set() {\n\t\tArrayList<Integer> arr1=new ArrayList<>();\n\t\tfor(int i=0;i<10;i++) arr1.add(i);\n\t\tfor(int x:arr1) System.out.print(x+\" \");\n\t\tSystem.out.println();\n\t\tarr1.set(3, 100);\n\t\tfor(int x:arr1) System.out.print(x+\" \");\n\t}", "protected void setAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.setBitAt(i);\n } \t\n }", "public void setAllNodesArray(ArrayList<Student> x) {\n students = x;\n }", "public void setArray(int[] array) {\r\n this.array = array;\r\n }", "public void setMarks(int[] newMarks){\n marks = newMarks;\n }", "void setStarArray(stars.StarType[] starArray);", "private void resetIdsToFind()\r\n\t{\r\n\t\t/*\r\n\t\t * Reset all lists of given search items to empty lists, indicating full\r\n\t\t * search without filtering, if no search items are added.\r\n\t\t */\r\n\t\tsetSpectrumIdsTarget(new ArrayList<String>());\r\n\t}", "public void scan(Integer[] collectionIds, boolean forceRescan) \nthrows MediaAlbumException;", "private void collectValues\n (int[] i, int i0, int i1, long[] V) {\n for (int o=i0; o<i1; o++) // 1\n V[o] = read(i[o]); // 1\n }", "public void setScan(Scan scan) {\n this.scan = scan;\n }", "public void setArray(int[] array) {\r\n\t\tthis.array = array;\r\n\t}", "public void setScanPath(ArrayList<String> scanPath) {\n this.scanPath = scanPath;\n }", "void setSpeedsArray(int i, org.landxml.schema.landXML11.SpeedsDocument.Speeds speeds);", "private void setIntArr(int[] intArr) {\r\n this.intArr = intArr;\r\n\r\n }", "private void setInArray(int i, int j, E element) {\r\n\t\tmElements.set(j*mRowCount+i, element);\r\n\t}", "void setRoadsideArray(int i, org.landxml.schema.landXML11.RoadsideDocument.Roadside roadside);", "private static void fillArray(int[][] array) {\n for (int i = 0; i < array.length; i++)\n for (int j = 0; j < array[i].length; j++)\n array[i][j] = i + j;\n\n // The following lines do nothing\n array = new int[1][1];\n array[0][0] = 239;\n }", "public void set_AllSpreadIndexToZero(){\r\n\tGRASS=0; \r\n\tTIMBER=0;\r\n}", "public Set(){\n setSet(new int[0]);\n }", "void setPosiblesValores(int[] valores);", "void setBridgeElementArray(int i, org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement bridgeElement);", "void setLanesArray(int i, org.landxml.schema.landXML11.LanesDocument.Lanes lanes);", "public ZYArraySet(){\n elements = (ElementType[])new Object[DEFAULT_INIT_LENGTH];\n }", "void setArrayElement(int index, Object value);", "void setArrayElement(int index, Object value);", "public int set(int index, int element);", "private void fillInArray(int[] myArray, int searchedValue) {\n\t\t\n\t\tmyArray[0] = searchedValue;\n\t\t\n\t\tfor(int i=1; i<myArray.length; i++) {\n\t\t\tint valueTemp = (int) (Math.random() * myArray.length);\n\t\t\t\n\t\t\tmyArray[i] = valueTemp;\t\t\t\n\t\t}\n\t}", "void set(int idx, int val);", "private void setSeen(boolean value)\n\t{\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].setSeen(value);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}", "void set(int index, int value) {\n array[index] = value;\n }", "private void setEverything(){\r\n int listLength = propertyList.length -1;\r\n arrayIterator = new ArrayIterator<>(propertyList, listLength+1);\r\n\r\n this.priceTree = new SearchTree<>(new PriceComparator());\r\n this.stockTree = new SearchTree<>(new StockComparator());\r\n this.ratingTree = new SearchTree<>(new RatingComparator());\r\n this.deliveryTree= new SearchTree<>(new DeliveryTimeComparator());\r\n\r\n this.foodArray = new ArrayQueue<>();\r\n this.restaurantArray = new ArrayQueue<>();\r\n\r\n // Fill arrays from property list.\r\n createFoodArray();\r\n arrayIterator.setCurrent(0); //Since the restaurantArray will use the same iterator\r\n createRestaurantArray();\r\n\r\n // Fill Binary Search Trees\r\n createFoodTrees();\r\n createRestaurantTrees();\r\n }", "void setArray(int index, Array value) throws SQLException;", "void setNullArray()\n/* */ {\n/* 1051 */ this.length = -1;\n/* 1052 */ this.elements = null;\n/* 1053 */ this.datums = null;\n/* 1054 */ this.pickled = null;\n/* 1055 */ this.pickledCorrect = false;\n/* */ }", "public void set(boolean[] abol);", "static void arrayToSet()\n\t{\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\tString arr[] = {\"A\",\"B\",\"C\",\"D\",\"E\",\"A\"};\n\t\t\t\n\t\t\toList = Arrays.asList(arr);\n\t\t\tSystem.out.println(\"List: \"+oList);\n\t\t\t\n\t\t\toSet = new TreeSet<>(oList);\n\t\t\t\n\t\t\tSystem.out.println(\"Set: \"+oSet);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toSet = null;\n\t\t}\n\t}", "private void restartArray() {\n for (int i = 0; i < 8; i++) {\n for (int j = 0; j < 8; j++) {\n Start.shemaArray[i][j].baseModel.state = 0;\n }\n }\n }", "public void setArray(int[] paramArrayOfInt)\n/* */ {\n/* 758 */ if (paramArrayOfInt == null) {\n/* 759 */ setNullArray();\n/* */ }\n/* */ else {\n/* 762 */ setArrayGeneric(paramArrayOfInt.length);\n/* */ \n/* 764 */ this.elements = new Object[this.length];\n/* */ \n/* 766 */ for (int i = 0; i < this.length; i++) {\n/* 767 */ this.elements[i] = Integer.valueOf(paramArrayOfInt[i]);\n/* */ }\n/* */ }\n/* */ }", "BinaryArrayReadWrite set(int index, byte x);", "com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints getScansArray(int i);", "com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints[] getScansArray();", "static void initializeArray(boolean firstTime) {\n\t\tint count = 0;\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tRandom r = new Random();\n\t\t\tint val = r.nextInt(m);\n\t\t\tint mod = val % m;\n\t\t\tif (array[mod] == -1) {\n\t\t\t\tarray[mod] = val;\n\t\t\t\tresult[1]++;\n\t\t\t\tcount++;\n\t\t\t} else if (firstTime) {\n\t\t\t\tresult[0] = count;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "private void setArrays() {\n // Set the tile arrays\n tileLogic = new boolean[size][size];\n tilesTex = new TextureRegion[size][size];\n\n // Set all tilesTex to clear\n for(int y = 0; y < size; y++)\n for(int x = 0; x < size; x++)\n tilesTex[x][y] = new TextureRegion(assets.clearTile);\n }", "void setStart(Object[] newStart);", "public void init(int[] a){\n this.array = a;\n moves = 0; \n }", "static int[] getScanIndexList(MSRun run, int scan)\r\n {\r\n int scanIndex = run.getIndexForScanNum(scan, true);\r\n int leftIndex = scanIndex - 10;\r\n int rightIndex = scanIndex + 20;\r\n if (leftIndex < 0)\r\n leftIndex = 0;\r\n if (rightIndex >= run.getScanCount())\r\n rightIndex = run.getScanCount() - 1;\r\n int[] list = new int[rightIndex - leftIndex + 1];\r\n for (int i = leftIndex; i <= rightIndex; i++)\r\n list[i-leftIndex] = i;\r\n Arrays.sort(list);\r\n return list;\r\n }", "void setIdx(int i);", "private void resetMarked() {\n if(!data.isEmpty()) {\n data.getFirst().reset();\n }\n for(IoBuffer buf : resetCache) {\n buf.reset();\n data.addFirst(buf);\n }\n resetCache.clear();\n }", "private static void initializeAllGenresList(){\n\t\tfor(int i = 0; i < 13; i ++){\n\t\t\tALL_GENRES.add(new HashSet<String>());\n\t\t}\n\t}", "private void setIndices() {\r\n\r\n\t\t// Index where dry sample is written\r\n\t writeIndex = 0;\r\n\t\treadIndexBLow = 0;\r\n\t\treadIndexBHigh = 0;\r\n\r\n\t\tif (sweepUp) {\r\n\t\t\t// Sweeping upward, start at max delay\r\n\t\t readIndexALow = AudioConstants.SAMPLEBUFFERSIZE;\r\n\t\t\r\n\t\t}\telse\t{\r\n\t\t\r\n\t\t\t// Sweeping downward, start at min delay\r\n\t\t\tif (numberOfChannels == 1)\r\n\t\t\t\treadIndexALow = delayBufferSize - 2;\r\n\t\t\telse\r\n\t\t\t\treadIndexALow = delayBufferSize - 4;\r\n\t\t}\r\n\t\t// Initialize other read ptr\r\n\t\tif (numberOfChannels == 1)\r\n\t\t\treadIndexAHigh = readIndexALow + 1;\r\n\t\telse\r\n\t\t\treadIndexAHigh = readIndexALow + 2;\r\n\t}", "public void setSetor(Integer scannerInteger) {\n\t}", "void Union(int parent[], int x, int y){ \n int xset = find(parent, x); \n int yset = find(parent, y); \n parent[xset] = yset; \n }", "public static void fillArray(int[] array)\r\n {\r\n //Create a local scanner object\r\n Scanner sc = new Scanner(System.in);\r\n \r\n //Prompt user to enter the number of values within the array\r\n System.out.println(\"Enter \" + array.length + \" values\");\r\n \r\n //Loop through array and assign a value to each individual element\r\n for (int n=0; n < array.length; ++n) \r\n {\r\n \r\n System.out.println(\"Enter a value for element \" + n + \":\");\r\n \r\n array[n] = sc.nextInt();\r\n \r\n \r\n \r\n }\r\n \r\n \r\n }", "protected void setArray(Object[] array){\r\n\t \tthis.array = array;\r\n\t }", "private void reset(){\n int j=0;\n for(int i=0; i<array.length; i++){\n if(j == itemCount) {return;}\n if(array[i]!=null){\n temp[j] = array[i];\n j++;\n }\n }\n }", "@Override\n public boolean set(int index, T element) {\n array[index] = element;\n return true;\n }", "public void updateFrontKnown() {\n\t\tfrontKnown = new ArrayList<int[]>();\n\t\tfor (int i = 0; i < maxX; i++) {\n\t\t\tfor (int j = 0; j < maxY; j++) {\n\t\t\t\tif (coveredMap[i][j] != SIGN_UNKNOWN && coveredMap[i][j] != SIGN_MARK && findAdjacentUnknown(new int[]{i, j}).size() > 0) {\n\t\t\t\t\tfrontKnown.add(new int[]{i,j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void set(int loc, boolean val)\n\t{\n\t\tif (loc < this.size)\n\t\t{\n\t\t\tif (val)\n\t\t\t{\n\t\t\t\tbits[loc / BITS_IN_LONG] |= (1L << (loc % BITS_IN_LONG));\n\t\t\t} else\n\t\t\t{\n\t\t\t\tbits[loc / BITS_IN_LONG] &= ~(1L << (loc % BITS_IN_LONG)); // DO NOT FORGET THAT SECOND L\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // TOOK ME FOREVER TO FIX WHEN I FORGOT\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Exception: tried to set value of BitArray that was out of bounds: \" + loc + \". Size was \" + this.size);\n\t\t}\n\t}", "private static void modifyArray(int[] array) {\n\t\t\n\t\tarray[0] = 99;\n\t\t\n\t\tarray = new int[5] ;\n\t\treturn;\n\t}", "Array(int x) {\n\t\tarray = new int[x];\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tarray[i] = 0; // make each index 0\n\t\t}\n\t}", "static void getIndexSetBits(int[] setBits, long board) {\n\t\tint onBits = 0;\n\t\twhile (board != 0) {\n\t\t\tsetBits[onBits] = Long.numberOfTrailingZeros(board);\n\t\t\tboard ^= (1L << setBits[onBits++]);\n\t\t}\n\t\tsetBits[onBits] = -1;\n\t}", "public ChainedArraysIterator(){\r\n\t\t\tcurrentNode = beginMarker.next;\r\n\t\t\tcurrent = currentNode.getFirst();\r\n\t\t\tidx = 0;\r\n\t\t\texpectedModCount=modCount;\r\n\t\t}", "@Test\n public void testSetAccountNumberArray() {\n System.out.println(\"setAccountNumberArray\");\n int[] accountNumberArray = {1, 2, 3, 4, 5, 6};\n AbstractMethod instance = new AbstractMethodImpl();\n instance.setAccountNumberArray(accountNumberArray);\n int[] result = instance.getAccountNumberArray();\n for (int r : result) {\n System.out.print(r);\n }\n assertArrayEquals(accountNumberArray, result);\n\n }", "private int[] reset() {\n return data;\n }", "public static void warmUp(int[] arr) {\n arr[0] = 5;\n \n // arr = 3af -> [0,2,3]\n }", "public void setData(int[] data) {\n this.data = data;\n }", "@SuppressWarnings({\"unused\", \"RedundantSuppression\"})\n public void resetArray() {\n Utils.postToMainLoop(new Runnable() {\n @Override\n public void run() {\n mBaseCacheAdapter.resetArray();\n mBaseRecyclerViewAdapter.notifyDataSetChanged();\n }\n\n @NonNull\n @Override\n public String toString() {\n return \"BaseCacheAdapterWrapper.resetArray()\";\n }\n });\n }", "@Override\r\n\tpublic void visit(Array array) {\n\r\n\t}", "void setContents(T[] contents);", "@Override\n\tpublic void setArray(int parameterIndex, Array x) throws SQLException {\n\t\t\n\t}", "private void collectTags\n (int[] i, int i0, int i1, long[] T) {\n for (int o=i0; o<i1; o++) // 1\n T[o] = data[i[o]]; // 1\n }", "private void setUsedValuesbyRow() {\n \n //Loop through each row.\n IntStream.rangeClosed(1,9).forEach(i -> {\n //Loop through each position in the row.\n IntStream.rangeClosed(1,9).forEach(j -> {\n //If this value is not set find all the other values in the row and set \n //the possible values of this item to those that are not currently set.\n int row = i;\n Number currentNumber = numbers.stream()\n .filter(n -> n.getRow() == row)\n .filter(n -> n.getColumn() == j)\n .findAny().get();\n //If the value is 0 it is not set\n if (currentNumber.getValue() < 1) {\n //Used numbers in this row\n List<Integer> usedNumbers = numbers.stream()\n .filter(n -> n.getValue() > 0)\n .filter(n -> n.getRow() == row)\n .filter(n -> n.getColumn() != j)\n .map(Number::getValue)\n .collect(Collectors.toList());\n\n //If position currently doesn't have used values then set them to \n //the ones that were found.\n if (currentNumber.getUsedValues() == null){\n currentNumber.setUsedValues(usedNumbers);\n }\n else {\n //Set the position's used values to the union of what it currently has and the\n //identifed used values.\n currentNumber.setUsedValues(\n CollectionUtils.union(currentNumber.getUsedValues(), usedNumbers)\n .stream().collect(Collectors.toList()));\n }\n }\n });\n });\n }", "void set(int i, int val) {\n int numPosition = i / MAX_BITS;\n int intPosition = i % MAX_BITS;\n\n if (val == 1)\n values[numPosition] |= (1 << intPosition);\n else\n values[numPosition] = values[numPosition]&~(1 << intPosition);\n }", "void setStockArray(int i, stockFilePT102.StockDocument.Stock stock);", "public abstract void startSingleScan();", "void resetRegisters(ArrayList<Integer> arraylist) {\r\n\r\n int[] x = new int[19];\r\n for (int i = 0; i < 19; i++) {\r\n x[i] = arraylist.get(i);\r\n }\r\n int[] y = new int[22];\r\n for (int i = 0; i < 22; i++) {\r\n y[i] = arraylist.get(i + 19);\r\n }\r\n int[] z = new int[23];\r\n for (int i = 0; i < 23; i++) {\r\n z[i] = arraylist.get(i + 41);\r\n }\r\n regX.set(x);\r\n regY.set(y);\r\n regZ.set(z);\r\n\r\n }", "static void fill(int[] array)\n\t{\n\t\tRandom r = new Random();\n\t\tfor(int i = 0; i < array.length; i++)\n\t\t{\n\t\t\tarray[i] = r.nextInt(100);\n\t\t}\n\t}", "public int[] reset() {\r\n return nums;\r\n }", "@Override\n public final Integer set(final int index, final Integer element) {\n if (!checkRange(index)) {\n throw new IndexOutOfBoundsException();\n } else {\n final int temp = arrayList[index];\n arrayList[index] = element;\n return temp;\n }\n }", "public int[] reset() \n {\n return reset;\n }", "public void makeArray() {\r\n for (int i = 0; i < A.length; i++) {\r\n A[i] = i;\r\n }\r\n }", "public int[] reset() {\r\n return reset;\r\n }", "protected void setArray(Expression expr)\n {\n setExpression(expr);\n }", "public void setAt(int iterator, T element) {\n data[iterator] = element;\n }", "private static void fillArrayWithValues() {\n int[] myArray = new int[40];\n\n // fills my array with value 5\n Arrays.fill(myArray, 5);\n\n // iterate and then print\n for (int i = 0; i < myArray.length; i++) {\n System.out.println(myArray[i]);\n }\n }", "public void setPixels(int[] pix) {\n\t\t\tMemoryImageSource source = new MemoryImageSource(_width, _height, pix, 0, _width);\n\t\t\t_image = createImage(source);\n\t\t}", "public void init()\n {\n list = new int[k];\n\n // Initialise my list of integers\n for (int i = 0; i < k; i++) {\n int b = 1;\n while (CommonState.r.nextBoolean())\n b++;\n list[i] = b;\n }\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }" ]
[ "0.683412", "0.6520412", "0.6302795", "0.60931003", "0.59066826", "0.584717", "0.58335596", "0.582356", "0.57734275", "0.57396156", "0.5650799", "0.5496267", "0.54836124", "0.5459097", "0.5457701", "0.54452276", "0.54037887", "0.53829646", "0.53789544", "0.5372189", "0.53675604", "0.53541785", "0.5327732", "0.5299559", "0.5284744", "0.527938", "0.5240908", "0.52220976", "0.5216004", "0.5201304", "0.5189166", "0.5184961", "0.5183399", "0.5183399", "0.5181967", "0.5181918", "0.5180584", "0.5173476", "0.5169997", "0.5143893", "0.51362705", "0.51197374", "0.51089334", "0.5108263", "0.5097182", "0.5092341", "0.5080064", "0.50692356", "0.50676996", "0.50636005", "0.5063356", "0.50597805", "0.50406253", "0.50244266", "0.50242966", "0.50217974", "0.5015006", "0.4994355", "0.49713728", "0.49678546", "0.4966959", "0.49655607", "0.49654788", "0.4956981", "0.49534938", "0.49397245", "0.4938432", "0.49350715", "0.491081", "0.4910273", "0.4900991", "0.4888154", "0.48809412", "0.4878565", "0.48770884", "0.48745853", "0.48736697", "0.4873512", "0.48710254", "0.4870606", "0.48691207", "0.48680985", "0.48642865", "0.4851118", "0.4846604", "0.48352227", "0.48322356", "0.48320287", "0.48318604", "0.4826608", "0.48255017", "0.48197982", "0.48125488", "0.48110494", "0.4807999", "0.48055482", "0.48055482", "0.48055482", "0.48055482", "0.48055482" ]
0.65667874
1
Sets ith "scans" element
void setScansArray(int i, com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints scans);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int set(int index, int element);", "void set(int index, Object element);", "void set(int idx, int val);", "public void setAt(int iterator, T element) {\n data[iterator] = element;\n }", "void setIdx(int i);", "T set(int index, T element);", "public E set(int index, E element);", "public void set(long index);", "public void set (Object element)\n {\n if(!isAfterNext){\n throw new IllegalStateException(); \n }\n position.data = element;\n \n \n }", "@Override\n public final Integer set(final int index, final Integer element) {\n if (!checkRange(index)) {\n throw new IndexOutOfBoundsException();\n } else {\n final int temp = arrayList[index];\n arrayList[index] = element;\n return temp;\n }\n }", "private void setElement(int index, E element) {\n// if (getElement(index) != null) {\n// setContents.remove(getElement(index));\n// }\n while (index >= contents.size()) {\n contents.add(null);\n }\n contents.set(index, element);\n// contents.put(index, element);\n backwards.put(element, index);\n\n// if (element != null) {\n// setContents.add(getElement(index));\n// }\n }", "@Override\n public int set(int index, int element) {\n checkIndex(index);\n int result = getEntry(index).value;\n getEntry(index).value = element;\n return result;\n }", "public void setElementAt(Object obj, int index);", "@Override\n\tpublic E set(int idx, E element) {\n\t\tif (element == null) throw new NullPointerException();\n\t\tif (idx < 0 || idx >= size()) throw new IndexOutOfBoundsException();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (element.equals(list[i]))\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tE output = null;\n\t\toutput = list[idx];\n\t\tlist[idx] = element;\n\t\treturn output;\n\t}", "public void setElementAt(int n, Object ob) {\r\n\t\telements.set(n, ob);\r\n\t}", "@Test\n public void testSet_After_Next() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.set(9);\n int expResult = 1;\n\n assertEquals(expResult, baseList.indexOf(9));\n }", "void setNilScansArray(int i);", "public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }", "void setArrayElement(int index, Object value);", "void setArrayElement(int index, Object value);", "public void set(int i);", "private void setInArray(int i, int j, E element) {\r\n\t\tmElements.set(j*mRowCount+i, element);\r\n\t}", "public void set(int i, A o);", "E set(int i , E e) throws IndexOutOfBoundsException;", "void set(int index, T data);", "public void set( RpLidarScan scan ) {\n\t\tSystem.arraycopy(scan.quality,0,quality,0,N);\n\t\tSystem.arraycopy(scan.distance,0,distance,0,N);\n\t\tSystem.arraycopy(scan.time,0,time,0,N);\n\t\tSystem.arraycopy(scan.pos_asserv,0,pos_asserv,0,N);\n\t\tused.clear();\n\t\tused.addAll(scan.used);\n\t}", "E set(int i, E e) throws IndexOutOfBoundsException;", "public void setSetor(Integer scannerInteger) {\n\t}", "public void set(int index, int val) {\n boolean exists = arr.get(index).get(arr.get(index).size() - 1).id == id;\n if (exists) {\n arr.get(index).get(arr.get(index).size() - 1).val = val;\n } else {\n List<Pair> list = arr.get(index);\n list.add(new Pair(id, val));\n arr.set(index, list);\n } \n }", "public Object set(int index, Object element) {\r\n Entry e = entry(index);\r\n Object oldVal = e.element;\r\n e.element = element;\r\n return oldVal;\r\n }", "public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }", "private void setNextElement(Object entry)\n {\n __m_NextElement = entry;\n }", "public void setElem(int index, long value) {\r\n a[index] = value;\r\n }", "@Override\n public T set(int index, T element) {\n if (indexCheck(index)) {\n T previousValue = (T) data[index];\n data[index] = element;\n return previousValue;\n }\n return null;\n }", "public void setIterator(Iterator iterator) {\n/* 96 */ this.iterator = iterator;\n/* */ }", "@Override\n public void update(int i, E value) {\n if(!hasWork()) {\n throw new NoSuchElementException();\n }\n if(i < 0 || i >= size()) {\n throw new IndexOutOfBoundsException();\n }\n array[(front + i) % capacity()] = value;\n }", "public void setOneNewWanted () {\r\n numWanted ++;\r\n }", "@Override\n public E set(int index, E elem) {\n\t E first = _store[index];\n\t _store[index] =elem;\n\t return first;\n }", "public abstract E set(int index, E e);", "@Override\n\tpublic E set(int index, E element) {\n\t\tNode<E> node = node(index);\n\t\tE old = node.elementE;\n\t\tnode.elementE = element;\n\t\treturn old;\n\t}", "private int setFirstFree(final T element) {\r\n\t\tfinal int idx = firstFree;\r\n\t\tserializer.setRandomAccess(idx, element);\r\n\t\tfirstFree = getNextPointer(idx);\r\n\t\t// the pointer will be 0 if it was not unlinked before\r\n\t\tif (firstFree == 0) {\r\n\t\t\tfirstFree = idx + 1;\r\n\t\t}\r\n\t\treturn idx;\r\n\t}", "public void set(int index, T element) {\n\t\tif (index < 0 || index >= size)\n\t\t\tthrow new ArrayIndexOutOfBoundsException();\n\t\tNode<T> curNode = head;\n\t\twhile (index != -1) {\n\t\t\tif (index == 0) {\n\t\t\t\tcurNode.value = element;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcurNode = curNode.next;\n\t\t\tindex--;\n\t\t}\n\t\tthrow new ArrayIndexOutOfBoundsException();\n\t}", "@Override\n public boolean set(int index, T element) {\n array[index] = element;\n return true;\n }", "public T set(int i, T obj);", "public E set(int index, E element) {\n\t\tif(index < 0 || index > size) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t} else if(index == size) {\r\n\t\t\tadd(element);\r\n\t\t\treturn element;\r\n\t\t}\r\n\t\tE e = getNode(index).getData();\r\n\t\tgetNode(index).setData(element);\r\n\t\treturn e;\r\n\t}", "void set(int i, int val) {\n int numPosition = i / MAX_BITS;\n int intPosition = i % MAX_BITS;\n\n if (val == 1)\n values[numPosition] |= (1 << intPosition);\n else\n values[numPosition] = values[numPosition]&~(1 << intPosition);\n }", "@Override\r\n public E set(int index, E element) {\r\n if (index < 0 || index >= size()) {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n\r\n for (int i = 0; i < size; i++) {\r\n if (get(i).equals(element)) {\r\n throw new IllegalArgumentException();\r\n }\r\n }\r\n\r\n LinkedListIterator it = new LinkedListIterator(index);\r\n \r\n E replaced = it.next(); \r\n it.set(element);\r\n return replaced;\r\n }", "public void setElem(int elem)\r\n\t{\r\n\t\tthis.elem = elem;\r\n\t}", "public void visit(int i) {\r\n visited[i] = visitedToken;\r\n }", "public Object set (int i, Object t)\r\n {\r\n }", "private void elementHit(K key) {\n\t\tint i = hitMap.get(key);\n\t\ti++;\n\t\thitMap.put(key, i);\n\t}", "public T set(int i, T t) {\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 T previousValue = (T) elements[i]; // store previous value of element with index i\n elements[i] = t; // set element with index i to t\n return previousValue; // return previous value of element with index i\n }", "Itr(int batch) {\n this.batch = batch;\n }", "public abstract <T> void set(int index, T value);", "public void setElement(Pair<Integer, Integer> cell, int n){\n\t\tnumbers[cell.getFirst()][cell.getSecond()] = n;\n\t}", "@Override\n public T set(final int index, final T element) {\n this.checkIndex(index);\n final T prevElment = get(index);\n this.data[index] = element;\n return prevElment;\n }", "public MyListIter(int index) {\n super();\n //iter.current = index;\n current = index;\n }", "iterator(){current = start;}", "public void set(int index, int o) {\n\t\tif(index == 0) return;\n\t\tr[index] = o;\n\t}", "public void setArray(int i, Array x);", "void setStarArray(int i, stars.StarType star);", "private void setSeenInfo(\n int index, SeenInfo value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSeenInfoIsMutable();\n seenInfo_.set(index, value);\n }", "static void set() {\n\t\tArrayList<Integer> arr1=new ArrayList<>();\n\t\tfor(int i=0;i<10;i++) arr1.add(i);\n\t\tfor(int x:arr1) System.out.print(x+\" \");\n\t\tSystem.out.println();\n\t\tarr1.set(3, 100);\n\t\tfor(int x:arr1) System.out.print(x+\" \");\n\t}", "public void nextSet(){\n this.fillVector();\n }", "protected void _setIntLE(int index, int value)\r\n/* 495: */ {\r\n/* 496:509 */ HeapByteBufUtil.setIntLE(this.array, index, value);\r\n/* 497: */ }", "public void set(int i) {\n }", "public void setIndex(int i) {\n\t\t\n\t}", "@Test(expected = IllegalStateException.class)\n public void testSet_After_Set() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n instance.set(3);\n\n instance.set(2);\n\n }", "@Override\n public E set(int i, E e) throws IndexOutOfBoundsException {\n checkRange(i);\n E previousValue = get(i);\n\n if (size == 1) {\n storage = e;\n } else if (size <= 5) {\n ((E[]) storage)[i] = e;\n } else {\n ((ArrayList<E>) storage).set(i, e);\n }\n\n return previousValue;\n }", "void set(int index, int value) {\n array[index] = value;\n }", "public static native void SetAt(long lpjFbxArrayVector2, int pIndex, long pElement);", "public void set(int[] ai);", "public E set(int index, E data) \n throws IndexOutOfBoundsException,NullPointerException\n {\n if(index > size() || index < 0)\n {\n throw new IndexOutOfBoundsException();\n }\n Node currNode = getNth(index);\n if(data == null)\n {\n throw new NullPointerException();\n }\n currNode.data = data;\n return currNode.data; \n }", "BinaryArrayReadWrite set(int index, byte x);", "public E set(int index, E element) {\n if(index < 0 || index >= size())\n throw new IndexOutOfBoundsException();\n E currentElement = get(index);\n list[index] = element;\n return currentElement;\n }", "void setFirstResult(int offset);", "protected void soConsumerIndex(long newValue)\r\n/* 27: */ {\r\n/* 28:139 */ C_INDEX_UPDATER.lazySet(this, newValue);\r\n/* 29: */ }", "void setBit(int index, int value);", "@Override\n public void update(int i, E value) {\n if(!hasWork()) {\n throw new NoSuchElementException(\"The worklist is empty\");\n }\n // if i is less than 0 or greater than size of worklist, throw exception\n if(i < 0 || i >= array.length) {\n throw new IndexOutOfBoundsException(\"This index does not exist\");\n }\n // update value\n array[i] = value;\n }", "public void set(int index, E newValue)\n {\n if (index >= 0 && index < size)\n data[index] = newValue;\n else\n throw new NoSuchElementException();\n }", "public Object set(int index, Object element) {\r\n return deref(refs.set(index, new WeakReference(element)));\r\n }", "public void set(int pos);", "private void reIndex()\n {\n for(int i = 0; i < NodeList.size(); i++)\n NodeList.get(i).setID(i);\n ID = NodeList.size();\n }", "public void firstElement() {\r\n \t\tcurrentObject = 0;\r\n \t}", "private void setRequests(\n int index, RequestFromSelf value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRequestsIsMutable();\n requests_.set(index, value);\n }", "@Override public boolean set_impl(int idx, long l) { return false; }", "public void setNext()\n {\n\t int currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex +1);\n\t \n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = firstObject;\n }", "public E set(int index, E x) {\n\t\tE retVal;\n\t\tNode p;\n\n\t\tif (index < 0 || index >= mSize)\n\t\t\tthrow new IndexOutOfBoundsException();\n\n\t\tp = getNode(index);\n\t\tretVal = p.data;\n\t\tp.data = x;\n\t\treturn retVal;\n\t}", "public void set(int index, T element) {\n genericArrayList[index] = element;\n }", "public void setFirstResult(int val) throws HibException;", "public E set ( int index, E anEntry)\n {\n if (index < 0 || index >= size)\n throw new IndexOutOfBoundsException(Integer.toString(index));\n\n Node<E> node = getNode(index); // calling private method\n E result = node.data;\n node.data = anEntry;\n return result;\n }", "public void setElement(T newvalue);", "public void set(int idx, E value) {\n assert idx >= 0;\n \n checkgrow(idx);\n \n\tarray[idx] = value;\n\t\n }", "public static native void SetFirst(long lpjFbxArrayVector2, long pElement);", "@Override\n public E set(int i, E e) throws IndexOutOfBoundsException {\n checkIndex(i, size);\n E temp = data[i];\n data[i] = e;\n return temp;\n }", "public void setItem(Item item) throws Exception {\n\t\tfor(int i = 0; i < last; ++i)\n\t\t\tif(list[i].getCode() == item.getCode()) {\n\t\t\t\tlist[i].increment(item.getCount());\n\t\t\t\treturn;\n\t\t\t}\n\t\tif(last < size)\n\t\t\tlist[last++] = item;\n\t\telse\n\t\t\tthrow new Exception(\"list full\");\n\t}", "void setData(int node_index, int element) {\n\t\tm_list_nodes.setField(node_index, 0, element);\n\t}", "private void setComponentsOfIndex() {\n\t\tint t = this.numbersIdex + 1;\n\t\tif (t == NUMBEROFEACHCARD) {\n\t\t\tthis.numbersIdex = 0;\n\t\t\tsetColorIndex();\n\t\t} else {\n\t\t\tthis.numbersIdex = t;\n\t\t}\n\t}", "public void assign(int indice, T element) {\r\n\t\tif (theHeap.size() == 0 || indice > theHeap.size()) {\r\n\t\t\ttheHeap.add(element);\r\n\t\t} else {\r\n\t\t\ttheHeap.add(indice, element);\r\n\t\t}\r\n\t}", "private static void setCounter() {++counter;}" ]
[ "0.6683334", "0.64707905", "0.6375239", "0.63101", "0.62662673", "0.6255885", "0.62296313", "0.62006694", "0.5873949", "0.5854428", "0.584881", "0.5846771", "0.58227074", "0.5781837", "0.5777532", "0.5775824", "0.57692075", "0.5761582", "0.566416", "0.566416", "0.56545115", "0.5647977", "0.56309956", "0.56295377", "0.5614749", "0.5568971", "0.5564978", "0.5562346", "0.5539833", "0.5534805", "0.55302405", "0.5523871", "0.5520919", "0.5467359", "0.5458329", "0.5453379", "0.5440008", "0.5435941", "0.54135215", "0.5412283", "0.54119843", "0.5403266", "0.5378402", "0.5371751", "0.53666264", "0.5364908", "0.5356072", "0.5340066", "0.53399754", "0.53394353", "0.53195405", "0.5317078", "0.5313071", "0.53056455", "0.52990484", "0.5288742", "0.52886087", "0.5280123", "0.52800417", "0.52741414", "0.52706873", "0.5258691", "0.52558315", "0.5253709", "0.5246607", "0.5242952", "0.5241973", "0.5241286", "0.5230453", "0.52295226", "0.52030796", "0.5201193", "0.5198766", "0.5194799", "0.5188961", "0.5178931", "0.5175623", "0.51653856", "0.51636183", "0.51479274", "0.5139341", "0.5135256", "0.5129554", "0.5122482", "0.5103569", "0.51025975", "0.50961536", "0.50900424", "0.50893766", "0.50729716", "0.5069868", "0.50691676", "0.5060459", "0.5059947", "0.50599384", "0.5057799", "0.50568", "0.5041", "0.5032558", "0.5028711" ]
0.56197315
24
Nils the ith "scans" element
void setNilScansArray(int i);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeScans(int i);", "boolean isNilScansArray(int i);", "public LinkedListItr zeroth( )\n {\n return new LinkedListItr( header );\n }", "public void clear() {\n first = null;\n n = 0;\n }", "public void clearInitialize(){\n index=0;\n for(int i =0; i < list.length;i++){\n list[i]=0;\n }\n hasFilled = false;\n\n }", "@Override\n\tpublic Iterator<Integer> iterator() {\n\t\treturn null;\n\t}", "public void Reset() \r\n {\r\n _index = -1;\r\n }", "public void clear() {\n this.first = null;\n this.last = null;\n this.nrOfElements = 0;\n }", "private void reset(){\n int j=0;\n for(int i=0; i<array.length; i++){\n if(j == itemCount) {return;}\n if(array[i]!=null){\n temp[j] = array[i];\n j++;\n }\n }\n }", "public void firstElement() {\r\n \t\tcurrentObject = 0;\r\n \t}", "public void makeEmpty(){\n front = null;\n numItems =0;\n }", "@Override\n public Event firstScan() {\n return null;\n }", "private int[] blankFinder(){\n for(int x = 0; x < n; x++){\n for(int y = 0; y < n; y++){\n if(tiles[x][y] == 0){\n return new int[]{x, y};\n }\n }\n }\n return null;\n }", "private int elementNC(int i) {\n return first + i * stride;\n }", "public static Spliterator.OfInt emptyIntSpliterator() {\n/* 76 */ return EMPTY_INT_SPLITERATOR;\n/* */ }", "public void clear()\r\n {\r\n first = null;\r\n last = null;\r\n count = 0;\r\n }", "public final void Reset()\n\t{\n\t\t_curindex = -1;\n\t}", "public void removefirst()\r\n {\r\n Item item = pre.item;\r\n pre = pre.next;\r\n n--;\r\n }", "public void reset() {\n this.index = this.startIndex;\n }", "public void reset() {\n index = 0;\n }", "public void clear(){\r\n\t\tbeginMarker.next = endMarker;\r\n\t\tendMarker.prev = beginMarker;\r\n\t\tnumAdded=0;\r\n\t\tsize=0;\r\n \tmodCount++;\r\n\t}", "public int antalNuller(ArrayList<Integer> list) {\r\n int nuller = 0;\r\n for (int i : list) {\r\n if (i == 0) {\r\n nuller++;\r\n }\r\n }\r\n return nuller;\r\n }", "public void setEmpty(int index);", "public int emptyPit() {\r\n\t\t\r\n\t\tint temp = stones;\r\n\t\tstones = 0;\r\n\t\treturn temp;\r\n\t\t\r\n\t}", "public void clear()\n {\n\tsize = 0;\n\thead = new SkipListNode<K>();\n }", "@Override\r\n\tpublic boolean isempty() {\n\t\treturn count<=0;\r\n\t\t\r\n\t}", "public void resetIteration(){\n\t\titeration = 0;\n\t}", "public void clear() {\n\t\tthis.count = (emptyItem ? 1 : 0);\n\t\tpages.clear();\n\t}", "public void skip()\n {\n skip(1);\n }", "public void skip(){\n if (!this.hasNext()) return;\n \n this.checkNext();\n \n if (!this.allStatesIterator.hasNext()){\n this.allStatesIterator = new IntegerIterator(1);\n this.allStatesIterator.skip();\n \n if(!this.allSubsetsIterator.hasNext()){\n this.allSubsetsIterator = new SubsetIterator(this.numberOfStates);\n this.currentFinalStatesIds = this.allSubsetsIterator.next();\n this.currentTransitions = this.allTransitionsIterator.next();\n }\n else{\n this.currentFinalStatesIds = this.allSubsetsIterator.next();\n }\n }\n else{\n this.currentInitialStateId = this.allStatesIterator.next();\n }\n }", "public void clear() {\n head = null;\n numElement = 0;\n }", "public void nextHard() {\n\t\titerator.next();\n\t}", "public int j()\r\n/* 60: */ {\r\n/* 61: 79 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 62: 80 */ if (this.a[i] == null) {\r\n/* 63: 81 */ return i;\r\n/* 64: */ }\r\n/* 65: */ }\r\n/* 66: 84 */ return -1;\r\n/* 67: */ }", "public void visiualizeSkipList(){\r\n\t\tint number=0;\r\n\t\tNode dummy = sl.getFrom(0,0);\r\n\t\t\r\n\t\tNode next;\r\n\t\tfor(int i=sl.height(); i>=0; i--){\r\n\t\t\t\r\n\t\t\tnext = sl.getFrom(i,0);\r\n\t\t\t\r\n\t\t\tfor(int j=0; j<(sl.size()+2); j++){\r\n\r\n\t\t\t\tnumber = next.getKey();\r\n\t\t\t\t//F.p(number);\r\n\t\t\t\tif(number==dummy.getKey()){\r\n\r\n\t\t\t\t\tif(number==minf)\r\n\t\t\t\t\t\tSystem.out.print(\"-inf\");\r\n\t\t\t\t\telse if(number==inf)\r\n\t\t\t\t\t\tSystem.out.print(\"---inf\");\r\n\t\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(repeatStr(\"-\",2)+number);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(repeatStr(\"-\",4));\r\n\t\t\t\t\r\n\t\t\t\tif(dummy.getKey()==number)\r\n\t\t\t\t\tnext = next.getRight();\r\n\t\t\t\t\r\n\t\t\t\tdummy = dummy.getRight();\r\n\t\t\t}\r\n\t\t\tdummy = sl.getFrom(0,0);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "protected int findNonEmptyPosition() {\n\t\t\twhile (!set.bv[++indice]) {\n\t\t\t}\n\t\t\treturn indice;\n\t\t}", "@Override\n\tpublic void clear() {\n\t\tthis.first=null;\n\t\tthis.last=null;\n\t\tthis.size=0;\n\t\tthis.modificationCount++;\n\t}", "final void deleteFirst(int elt) {\n if (contents != null && n >= 0 && n <= contents.length){\n int[] new_contents;\n //@ loop_invariant (i <= n);\n for (int i = 0; i < n; i++) {\n if (contents[i] == elt) {\n n--;\n new_contents = new int[contents.length];\n arraycopy(contents, 0, new_contents, 0, i);\n arraycopy(contents, i+1, new_contents, i, n-i);\n contents = new_contents;\n return;\n }\n }\n }\n }", "public void reset(){\n\t\tthis.currentIndex = 0;\n\t}", "protected EmptyIterator() {\n\t\t\tsuper();\n\t\t}", "public LinkedListIterator<AnyType> zeroth() {\n return new LinkedListIterator<AnyType>(header);\n }", "@Override\n public E removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n E value = dequeue[head];\n dequeue[head] = null;\n head = ++head % dequeue.length;\n size--;\n if (size < dequeue.length / 2) {\n reduce();\n }\n return value;\n }", "private ValueIterator()\n {\n currentIndex = 0;\n numberLeft = numberOfEntries;\n }", "public void l()\r\n/* 190: */ {\r\n/* 191:221 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 192:222 */ this.a[i] = null;\r\n/* 193: */ }\r\n/* 194: */ }", "public void l()\r\n/* 606: */ {\r\n/* 607:650 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 608:651 */ this.a[i] = null;\r\n/* 609: */ }\r\n/* 610:653 */ for (i = 0; i < this.b.length; i++) {\r\n/* 611:654 */ this.b[i] = null;\r\n/* 612: */ }\r\n/* 613: */ }", "public void clear(){\n\t\tfor(int i = 0; i < keys.length; i++){\n\t\t\tkeys[i] = null;\n\t\t\telem[i] = null;\n\t\t}\n\t\thowMany = 0;\n\t\tnewestIndex = -1;\n\t}", "@Override\n public void clear() {\n elements.clear();\n indexByElement.clear();\n }", "public void clearListNotIndex(){\n for(int z=0; z<list.length; z++){\n list [z] = 0;\n }\n }", "public void k()\r\n/* 238: */ {\r\n/* 239:258 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 240:259 */ if (this.a[i] != null) {\r\n/* 241:260 */ this.a[i].a(this.d.o, this.d, i, this.c == i);\r\n/* 242: */ }\r\n/* 243: */ }\r\n/* 244: */ }", "@Override\n\tpublic ListIterator<T> listIterator(int index) {\n\t\treturn null;\n\t}", "public int findEmpty()\n\t{\n\t\temptyIndices.clear();\n\t\tfor (int i = 0; i < 20; i++)\n\t\t{\n\t\t\tif (river[i] == null)\n\t\t\t\temptyIndices.add(i);\n\t\t}\n\t\t\n\t\tif (emptyIndices.size() != 0){\n\t\t\treturn (int) emptyIndices.get(rng.nextInt(emptyIndices.size()));\n\t\t}\n\t\telse\n\t\t\treturn -1;\n\t}", "void clear()\n\t{\n\t\tfront = null;\n\t\tback = null;\n\t\tcursor = null;\n\t\tlength = 0;\n\t\tindex = -1;\n\t}", "public void n()\r\n/* 515: */ {\r\n/* 516:523 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 517:524 */ if (this.a[i] != null)\r\n/* 518: */ {\r\n/* 519:525 */ this.d.a(this.a[i], true, false);\r\n/* 520:526 */ this.a[i] = null;\r\n/* 521: */ }\r\n/* 522: */ }\r\n/* 523:529 */ for (i = 0; i < this.b.length; i++) {\r\n/* 524:530 */ if (this.b[i] != null)\r\n/* 525: */ {\r\n/* 526:531 */ this.d.a(this.b[i], true, false);\r\n/* 527:532 */ this.b[i] = null;\r\n/* 528: */ }\r\n/* 529: */ }\r\n/* 530: */ }", "public void moveFirst() {\n\t\tcurrentElement = 0;\n\t}", "public void reset()\n {\n setLastItem(NOTHING_HANDLED);\n for (int i = 0; i < counters.length; i++)\n {\n counters[i] = 0;\n }\n for (int j = 0; j < expected.length; j++)\n {\n expected[j] = ITEM_DONT_CARE;\n }\n }", "public void clear(long index);", "@Override\n\tpublic void clear() {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\telements[i] = null;\n\t\t}\n\n\t\tsize = 0;\n\t}", "@Override\n\t\tpublic void reset(int iteration) {\n\t\t\t\n\t\t}", "public void clear()\n {\n current = null;\n size = 0;\n }", "public void clear() {\r\n iFormatter = null;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[15]++;\r\n iElementPairs.clear();\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[16]++;\r\n }", "@Override\n\tpublic Iterator iterator() {\n\t\treturn null;\n\t}", "public void skip(int val) {\n\t\t\t// pointer wala skip\n\t\t\tif (nextElement == val)\n\t\t\t\tadvance();\n\t\t\telse {\n\t\t\t\tif (!skipMap.containsKey(val)) {\n\t\t\t\t\tskipMap.put(val, 0);\n\t\t\t\t}\n\t\t\t\tskipMap.put(val, skipMap.get(val) + 1);\n\t\t\t}\n\t\t}", "public synchronized void emptyField(){\n List<Player> pList = Arrays.asList(players);\r\n \r\n Iterator<Player> pIter = pList.iterator();\r\n while(pIter.hasNext()){\r\n //for(Player player: players){\r\n Player player = pIter.next();\r\n \r\n if(player == null){\r\n continue;\r\n }\r\n System.out.println(\"NUMBER OF CARDS: \" + player.getCardsInHand().size());\r\n \r\n Iterator<Card> cardIter = player.getCardsInHand().iterator();\r\n \r\n while(cardIter.hasNext()){\r\n try{\r\n collectCard(cardIter.next());\r\n }catch(Exception ex){\r\n }\r\n \r\n }\r\n }\r\n }", "public void remove() {\n elements[index] = null;\n size--;\n next();\n }", "void deleteFront()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call deleteFront() on empty List\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tcursor = null;\n\t\t\tindex = -1; //added because i was failing the test scripts because i wasn't managing the indicies\n\t\t}\n \n\t\tfront = front.next; //front element becomes the next element in the list\n\t\tlength--;\n index --; //added because i was failing the test scripts because i wasn't managing the indicies\n\t\t\n\t}", "public synchronized void clearScanMap() {\n scanMap = null;\n }", "public void clear() {\n\n\t\thead = null;\n\t\ttail = null;\n\t\telements = 0;\n\t}", "public void clear() {\n\t\tn1 = n0 = 0L;\n\t}", "private void init() {\n\t\thead = -1;\n\t\tnumElements = 0;\n\t}", "void fill()\n\t{\n\t\tif(!mySeq.isEmpty())\n\t\t{\t\n\t\t\tPair temp = mySeq.removeFirst();\t\t\n\t\t\tthis.nextPos = temp.getSecond();\n\t\t\tthis.myTurn = temp.getFirst();\n\t\t}\n\t}", "public void clear() {\n used = 0;\n head = -1;\n }", "private int setFirstFree(final T element) {\r\n\t\tfinal int idx = firstFree;\r\n\t\tserializer.setRandomAccess(idx, element);\r\n\t\tfirstFree = getNextPointer(idx);\r\n\t\t// the pointer will be 0 if it was not unlinked before\r\n\t\tif (firstFree == 0) {\r\n\t\t\tfirstFree = idx + 1;\r\n\t\t}\r\n\t\treturn idx;\r\n\t}", "@Override\n public void clear() {\n size = 0;\n first = null;\n last = null;\n }", "protected void scanNoSkip() throws TableFunctionMalformedException {\r\n\t\t\t\r\n\t\tint kw;\r\n\t\t\r\n\t\tgetName();\r\n\t\t\r\n\t\tkw = lookup(value);\r\n\t\tif (kw == -1)\r\n\t\t\ttoken = 'x';\r\n\t\telse\r\n\t\t\ttoken = kwcode[kw];\r\n\t\t// Debug.println(\"\\n!!!Value = \" + value);\r\n\t}", "@Override\n\tpublic void reset(int iteration) {\n\n\t}", "protected final void moveToNextIndex() {\n\t\t\t// doing the assignment && < 0 in one line shaves\n\t\t\t// 3 opcodes...\n\t\t\tif ( (_index = nextIndex()) < 0 ) { throw new NoSuchElementException(); }\n\t\t}", "public void makeEmpty() {\n // remove Squares until empty\n while (!exploreList.isEmpty()) {\n exploreList.getNext();\n }\n }", "@Override\n public void nullstill() {\n Node<T> curr= hode;\n while (curr!=null){\n Node<T> p= curr.neste;\n curr.forrige=curr.neste= null;\n curr.verdi= null;\n curr= p;\n }\n hode= hale= null;\n endringer++;\n antall=0;\n }", "protected void scanNodesForRecursion(Cell cell, HashSet<Cell> markCellForNodes, NodeProto [] nil, int start, int end)\n \t{\n \t\tfor(int j=start; j<end; j++)\n \t\t{\n \t\t\tNodeProto np = nil[j];\n \t\t\tif (np instanceof PrimitiveNode) continue;\n \t\t\tCell otherCell = (Cell)np;\n \t\t\tif (otherCell == null) continue;\n \n \t\t\t// subcell: make sure that cell is setup\n \t\t\tif (markCellForNodes.contains(otherCell)) continue;\n \n \t\t\tLibraryFiles reader = this;\n \t\t\tif (otherCell.getLibrary() != cell.getLibrary())\n \t\t\t\treader = getReaderForLib(otherCell.getLibrary());\n \n \t\t\t// subcell: make sure that cell is setup\n \t\t\tif (reader != null)\n \t\t\t\treader.realizeCellsRecursively(otherCell, markCellForNodes, null, 0);\n \t\t}\n \t\tmarkCellForNodes.add(cell);\n \t}", "void clear() {\n\t\tfor (int list = getFirstList(); list != -1;) {\n\t\t\tlist = deleteList(list);\n\t\t}\n\t}", "public Item removeFirst() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException();\r\n }\r\n Item result = items[++firstCursor];\r\n items[firstCursor] = null;\r\n return result;\r\n }", "private void doClear( )\n {\n occupied = 0;\n for( int i = 0; i < array.length; i++ )\n array[ i ] = null;\n }", "private boolean checkCurrentIterator(Iterator<Integer> iter) {\n return iter != null;\n }", "@Override\n public Item removeFirst() {\n nextFirst = moveForward(nextFirst, 1);\n Item output = items[nextFirst];\n items[nextFirst] = null;\n size -= 1;\n return output;\n }", "public void clear() {\n\t\telements = 0;\n\t\tfor (int ix = 0; ix < keys.length; ix++) {\n\t\t\tkeys[ix] = null;\n\t\t\tvalues[ix] = null;\n\t\t}\n\t\tfreecells = values.length;\n\t\tmodCount++;\n\t}", "public void makeEmpty() {\r\n\t\tArrays.fill(list, -1);\r\n\t}", "private void check() {\n if (s[s.length-1] != null) {\n for (int i = 0; i < N; i++) {\n s[i] = s[first+i];\n s[first+i] = null;\n }\n first = 0;\n }\n }", "void skip();", "public void resetCurrentElement() {\r\n\t\tcurrentNode = firstNode;\r\n\t}", "public void makeEmpty( )\n {\n header.next = null;\n }", "public void removeAll() {\n start = null;\n _size = 0;\n }", "public void clear()\r\n\t{\r\n\t\tdata = new IterativeBinarySearchTree<Entry>();\r\n\t}", "public void imprimirLista() {\n NodoListaDoble<T> tmp = raiz;\n\n if (this.raiz == null) {\n System.out.println(\"Lista vacia\");\n } else {\n System.out.println(\"--------------------------\");\n while (tmp != null) {\n System.out.println(tmp.toString());\n tmp = tmp.getSiguiente();\n }\n System.out.println(\"--------------------------\");\n }\n }", "public void reset() {\n this.setIndex(0);\n }", "void removeStar(int i);", "private int trimShiftGraph (ArrayList shiftGraph)\n {\n int lastNullIndex = 0;\n boolean foundEndingNonNull =false; // this will be index of first non-null to trim to\n\n for (int i = 0; i < maxPeriodLength; i++)\n {\n if (i >= shiftGraph.size())\n lastNullIndex = i;\n\n // mark the index of the last null we've encounterd as long as we haven't reached trim\n // end point.\n else if ( shiftGraph.get (i) == null && foundEndingNonNull == false)\n lastNullIndex = i;\n\n // if we've found a null already, then the next non null ends our search for trim point\n else if (shiftGraph.get (i) != null && lastNullIndex > 0)\n foundEndingNonNull = true;\n }\n\n // if no nulls, cannot trim return.\n if (lastNullIndex == 0)\n return 0;\n else if (lastNullIndex >= shiftGraph.size() - 1)\n shiftGraph.clear();\n else\n {\n for (int j = 0; j <= lastNullIndex; j++)\n shiftGraph.remove (0);\n }\n\n return lastNullIndex;\n }", "@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}", "public void reset() {\n\t\tthis.count = 0;\n\t}", "private void resetIterator() {\n\t\titerator = head;\n\t}", "public void empty() {\n int StartSize = stockList.size();\r\n // While array is not empty.\r\n while (stockList.size() > 0) {\r\n // For every item in the \"stockList\" array.\r\n for (int i = 0; i < StartSize; i++) {\r\n // Remove the beanBag object at the current position in the \"stockList\".\r\n stockList.remove(i);\r\n // Set the global int \"nextReservationNumber\" to 0.\r\n nextReservationNum = 0;\r\n }\r\n }\r\n }", "protected void currentReturnedNull(Controller c) {\n if (c.isDone()) {\n removeCurrentElement();\n } else {\n incrementCurrent();\n }\n }" ]
[ "0.6203869", "0.5799681", "0.56201315", "0.5613178", "0.55257684", "0.5487614", "0.5479564", "0.5464554", "0.5451123", "0.54473746", "0.5434454", "0.5392378", "0.5374883", "0.53700167", "0.5367544", "0.5364281", "0.5340941", "0.5340091", "0.53389484", "0.53213555", "0.53197825", "0.5314324", "0.53112674", "0.53110117", "0.53023183", "0.52843785", "0.52833617", "0.5237697", "0.52259624", "0.52255887", "0.5219469", "0.52025765", "0.51924306", "0.51903", "0.5170336", "0.5168104", "0.5148722", "0.5131456", "0.51238054", "0.5118216", "0.5118118", "0.5106522", "0.5102958", "0.51022863", "0.5102236", "0.5096353", "0.50953573", "0.50940007", "0.5090824", "0.5088982", "0.50826013", "0.5078141", "0.5069546", "0.5066928", "0.50666136", "0.50610566", "0.50520796", "0.50388926", "0.5036377", "0.5035693", "0.5031725", "0.5030339", "0.4998338", "0.49962655", "0.499053", "0.49886557", "0.49857265", "0.4978395", "0.49776995", "0.4976091", "0.49735045", "0.49717483", "0.4969278", "0.4966589", "0.4965343", "0.49598667", "0.49589175", "0.4954197", "0.4948923", "0.4946951", "0.49468002", "0.49438363", "0.49401656", "0.49380246", "0.49374047", "0.49362805", "0.49332684", "0.49298665", "0.4923233", "0.4915456", "0.49136904", "0.49089277", "0.49065885", "0.4900345", "0.48961803", "0.48916537", "0.48915496", "0.48855504", "0.48842958", "0.4878199" ]
0.6368787
0
Inserts and returns a new empty value (as xml) as the ith "scans" element
com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints insertNewScans(int i);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "org.landxml.schema.landXML11.CrashDataDocument.CrashData insertNewCrashData(int i);", "public void insertAtStart(int val)\n\n {\n\n Node nptr = new Node(val, null, null); \n\n if(start == null)\n\n {\n\n start = nptr;\n\n end = start;\n\n }\n\n else\n\n {\n\n start.setLinkPrev(nptr);\n\n nptr.setLinkNext(start);\n\n start = nptr;\n\n }\n\n size++;\n\n }", "void insert(int val){\n\t\tthis.root = insertHelper(root, val);\n\t}", "org.landxml.schema.landXML11.NoPassingZoneDocument.NoPassingZone insertNewNoPassingZone(int i);", "public int insertNewElement() {\r\n\t\treturn insertElements(Arrays.asList(getNewObject()));\r\n\t}", "private static void value(ArrayList<tok> pHolder, ArrayList<tok> xmlList) {\n\t\t\r\n\t\tif(pHolder.get(index).getType() == Token_Type.TOK_APOSTROPHE){\r\n\t\t\tindex++;\r\n\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_ID){\r\n\t\t\t\tindex++;\r\n\t\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_APOSTROPHE){\r\n\t\t\t\t\tindex++;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse{noError = false;}\r\n\t\t\t}\r\n\t\t\telse{noError = false;}\r\n\t\t}\r\n\t\telse if(pHolder.get(index).getType() == Token_Type.TOK_NUM){\r\n\t\t\tindex++;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse{noError = false;}\r\n\t}", "public void insertAtStart(int val)\n {\n List nptr = new List(val, null, null); \n if(start == null)\n {\n start = nptr;\n end = start;\n }\n else\n {\n start.setListPrev(nptr);\n nptr.setListNext(start);\n start = nptr;\n }\n size++;\n }", "XomNode appendElement(Element element) throws XmlBuilderException;", "org.landxml.schema.landXML11.RoadsideDocument.Roadside insertNewRoadside(int i);", "org.apache.xmlbeans.XmlObject insertNewContactMeans(int i);", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}", "public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}", "public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}", "public void insert(int val) {\n root = insertRec(root, val);\n }", "public void insertElement(int element) {\n // if within min and max and doesnt haveElement then add the int\n if (element < MAXSETVALUE && element > MINSETVALUE && hasElement(element) != true && get != null) {\n // replacement array\n int[] arr = new int[get.length + 1];\n // copying values up to last\n for (int j = 0; j < get.length; j++)\n arr[j] = get[j];\n // inserts element\n arr[get.length] = element;\n get = arr;\n // avoiding errors\n } else if (get == null) {\n get = new int[1];\n get[0] = element;\n }\n\n }", "private Element createXmlElementForConcat(Concat concat, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_CONCAT);\n\t\t//element.setAttribute(XML_INFO1, concat.getValue1().toString());\n\t\t//element.setAttribute(XML_INFO2, concat.getValue2().toString());\n\n\t\tfor (Value childValue : concat) {\n\t\t\tElement child = createXmlElementForValue(childValue, xmlDocument, constraint);\n\t\t\tif (child != null)\n\t\t\t\telement.appendChild(child);\n\t\t}\n\t\t\n\t\treturn (element.hasChildNodes() ? element : null);\n\t}", "private BTreeSearchResult insertNonFull(BTreeSearchResult input, String key, int info) throws IOException {\r\n\t\tkey = String.format(\"%1$-12s\", key).substring(0,12); //Append whitespaces to keep String size fixed to 12\r\n\t\t\r\n\t\tif (input.node.numKeys <= 0){\r\n\t\t\tinput.node.key[0] = key;\r\n\t\t\tinput.node.info[0] = info;\r\n\t\t\tinput.node.numKeys++;\r\n\t\t\tbyte[] byteBuffer = input.node.serialize(this.pageSize);\r\n\t\t\tthis.writePage(byteBuffer, input.pageFound*this.pageSize); // + 1 disk access\r\n\t\t\tinput.diskAccessNum++;\r\n\t\t}else{\r\n\t\t\tint i = -1-Arrays.binarySearch(Arrays.copyOfRange(input.node.key, 0, input.node.numKeys), key); // Search key first\r\n\t\t\t\tif (input.node.isLeaf()){\r\n\t\t\t\t\tfor (int j = input.node.numKeys; j>i; j--){\r\n\t\t\t\t\t\tinput.node.key[j] = input.node.key[j-1];\r\n\t\t\t\t\t\tinput.node.info[j] = input.node.info[j-1];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinput.node.key[i] = key;\r\n\t\t\t\t\tinput.node.info[i] = info;\r\n\t\t\t\t\tinput.node.numKeys++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tbyte[] byteBuffer = input.node.serialize(this.pageSize);\r\n\t\t\t\t\tthis.writePage(byteBuffer, input.pageFound*this.pageSize); // + 1 disk access\r\n\t\t\t\t\tinput.diskAccessNum++;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tBTreeNode childNode = new BTreeNode(this.readPage(input.node.child[i]*this.pageSize), this.order); // + 1 disk access\r\n\t\t\t\t\tBTreeSearchResult child = new BTreeSearchResult(childNode, input.node.child[i]);\r\n\t\t\t\t\tchild.diskAccessNum = input.diskAccessNum + 1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (child.node.numKeys == child.node.key.length){\r\n\t\t\t\t\t\tchildNode = split(input.node, i, child); // + 3 disk access and return new child\r\n\t\t\t\t\t\tint diskAccessNum = this.updatePointerOfChildren(child); // Access all children of old root to update their parent pointer\r\n\t\t\t\t\t\tdiskAccessNum = diskAccessNum + this.updatePointerOfChildren(new BTreeSearchResult(childNode, input.node.child[i+1])); // Access all children of new node to update their parent pointer\r\n\t\t\t\t\t\tif (key.compareTo(input.node.key[i])>0)\r\n\t\t\t\t\t\t\tchild = new BTreeSearchResult(childNode, input.node.child[i+1]);\r\n\t\t\t\t\t\tchild.diskAccessNum = input.diskAccessNum + 4 + diskAccessNum;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn insertNonFull(child, key, info);\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn input;\r\n\t}", "public void writeToXML(){\n\t\t\n\t\t String s1 = \"\";\n\t\t String s2 = \"\";\n\t\t String s3 = \"\";\n\t\t Element lastElement= null;\n\t\t\n\t\tDocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dbElement;\n\t\tBufferedReader brRead=null;\n\n\t\ttry{\n\t\t\tdbElement = dbfactory.newDocumentBuilder();\n\t\t\t\n\t\t\t//Create the root\n\t\t\tDocument docRoot = dbElement.newDocument();\n\t\t\tElement rootElement = docRoot.createElement(\"ROYAL\");\n\t\t\tdocRoot.appendChild(rootElement);\n\t\t\t\n\t\t\t//Create elements\n\t\t\t\n\t\t\t//Element fam = docRoot.createElement(\"FAM\");\n\t\t\tElement e= null;\n\t\t\tbrRead = new BufferedReader(new FileReader(\"complet.ged\"));\n\t\t\tString line=\"\";\n\t\t\twhile((line = brRead.readLine()) != null){\n\t\t\t\tString lineTrim = line.trim();\n\t\t\t\tString str[] = lineTrim.split(\" \");\n\t\t\t\t//System.out.println(\"length = \"+str.length);\n\n\t\t\t\tif(str.length == 2){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3 = \"\";\n\t\t\t\t}else if(str.length ==3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2=\"\";\n\n\t\t\t\t\ts2 = str[1];\n//\t\t\t\t\tSystem.out.println(\"s2=\"+s2);\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\ts3 = str[2];\n//\t\t\t\t\ts3 = s[0];\n\t\t\t\t\t\n\t\t\t\t}else if(str.length >3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\tfor(int i =2; i<str.length; i++){\n\t\t\t\t\t\ts3 = s3 + str[i]+ \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//System.out.println(s1+\"!\"+s2+\"!\"+s3+\"!\");\n\t\t\t\t//Write to file xml\n\t\t\t\t//writeToXML(s1, s2, s3);\n\t\t\t//Element indi = docRoot.createElement(\"INDI\");\t\n\t\t\t//System.out.println(\"Check0 :\" + s1);\n\t\t\tif( Integer.parseInt(s1)==0){\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Check1\");\n\t\t\t\tif(s3.equalsIgnoreCase(\"INDI\")){\n\t\t\t\t\t//System.out.println(\"Check2\");\n\t\t\t\t\tSystem.out.println(\"This is a famille Individual!\");\n\t\t\t\t\te = docRoot.createElement(\"INDI\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t\n\t\t\t\t\t//Set attribute to INDI\n\t\t\t\t\tAttr indiAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tindiAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(indiAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"FAM\")){\n\t\t\t\t\t//System.out.println(\"Check3\");\n\t\t\t\t\tSystem.out.println(\"This is a famille!\");\n\t\t\t\t\te = docRoot.createElement(\"FAM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}if(s2.equalsIgnoreCase(\"HEAD\")){\n\t\t\t\t\tSystem.out.println(\"This is a head!\");\n\t\t\t\t\te = docRoot.createElement(\"HEAD\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"SUBM\")){\n\n\t\t\t\t\tSystem.out.println(\"This is a subm!\");\n\t\t\t\t\te = docRoot.createElement(\"SUBM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==1){\n\n\t\t\t\tString child = s2;\n\t\t\t\tif(child.equalsIgnoreCase(\"SOUR\")||child.equalsIgnoreCase(\"DEST\")||child.equalsIgnoreCase(\"DATE\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"FILE\")||child.equalsIgnoreCase(\"CHAR\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"NAME\")||child.equalsIgnoreCase(\"TITL\")||child.equalsIgnoreCase(\"SEX\")||child.equalsIgnoreCase(\"REFN\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"PHON\")||child.equalsIgnoreCase(\"DIV\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"HEAD\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"BIRT\")||child.equalsIgnoreCase(\"DEAT\")||child.equalsIgnoreCase(\"COMM\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"BURI\")||child.equalsIgnoreCase(\"ADDR\")||child.equalsIgnoreCase(\"CHR\")){\n\t\t\t\t\t\n\t\t\t\t\tString name = lastElement.getNodeName();\t\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"FAMS\")||child.equalsIgnoreCase(\"FAMC\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\t\tx.setAttribute(\"id\",s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"HUSB\")||child.equalsIgnoreCase(\"WIFE\")||child.equalsIgnoreCase(\"CHIL\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"MARR\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==2){\n\t\t\t\tString lastName = lastElement.getNodeName();\n\t\t\t\tif((lastName.equalsIgnoreCase(\"BIRT\"))||(lastName.equalsIgnoreCase(\"DEAT\"))||(lastName.equalsIgnoreCase(\"BURI\"))\n\t\t\t\t\t\t||(lastName.equalsIgnoreCase(\"MARR\"))||(lastName.equalsIgnoreCase(\"CHR\"))){\n\t\t\t\t\t//Add child nodes to birt, deat or marr\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"DATE\")){\n\t\t\t\t\t\tElement date = docRoot.createElement(\"DATE\");\n\t\t\t\t\t\tdate.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(date);\n\t\t\t\t\t}\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"PLAC\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"PLAC\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif(lastName.equalsIgnoreCase(\"COMM\")||lastName.equalsIgnoreCase(\"ADDR\")){\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"CONT\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"CONT\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//lastElement = e;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t//Saved this element for the next step\n\t\t\t\n\t\t\t//Write to file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"iso-8859-1\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, \"Royal.dtd\");\n\t\t\tDOMSource source = new DOMSource(docRoot);\n\t\t\tStreamResult result = new StreamResult(new File(\"complet.xml\"));\n\t \n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t \n\t\t\ttransformer.transform(source, result);\n\t \n\t\t\tSystem.out.println(\"\\nXML DOM Created Successfully.\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private V put(StringIterator iter, V value)\n {\n \tEntry curr = root;\n \twhile(iter.hasNext())\n \t{\n \t\tchar ch = iter.next();\n \t\tEntry node = curr.child.get(ch);\n \t\tif (node == null)\n \t\t{ \t\t\t\n \t\t\tnode = new Entry(null, curr.depth+1);\n \t\t\tcurr.child.put(ch, node);\n \t\t}\n \t\tcurr = node;\n \t}\n \tif(!curr.EndOfWord)\n \t{\n \t\tcurr.value = value;\n \tcurr.EndOfWord = true;\n \tsize++;\n \t}\n \telse\n \t{\n \t\tSystem.out.println(\"Word is already present.\");\n \t}\n \treturn curr.value;\n }", "org.landxml.schema.landXML11.SpeedsDocument.Speeds insertNewSpeeds(int i);", "protected PartiQLResultSet(PartiQLStatement statement, ExprValue value) {\n this.statement = statement;\n this.root = value;\n this.iterator = this.root.iterator();\n this.current = this.iterator.next(); // Skip over the initial Bag element\n }", "public InputSource getDummyXml() {\n return getDummyXml(0);\n }", "@Override\n public boolean insert(T val) {\n List<Node> path = new ArrayList<>();\n boolean[] wasInserted = new boolean[1];\n root = insertRec(val, root, path, wasInserted);\n splay(path.get(0), path.subList(1, path.size()));\n\n if (wasInserted[0]) {\n ++this.size;\n return true;\n }\n return false;\n }", "void push(Integer x) {\n if (s.isEmpty()) {\n minEle = x;\n s.push(x);\n System.out.println(\"Number Inserted: \" + x);\n return;\n }\n // if new number is less than original minEle\n if (x < minEle) {\n s.push(2 * x - minEle);\n minEle = x;\n } else {\n s.push(x);\n }\n System.out.println(\"Number Inserted: \" + x);\n }", "private static Node getReceiverElements(Document doc, Element element, String name, String value) {\r\n\t\tElement node = doc.createElement(name);\r\n\t\tnode.appendChild(doc.createTextNode(value));\r\n\t\treturn node;\r\n\t}", "Element toXML();", "public abstract StringBuffer toXML ();", "void insert(int idx, int val);", "public ExtElement insertFirst(String element, BaseModel value) {\r\n\t\treturn insertFirst(element, value.getJsObj());\r\n\t}", "public abstract StringBuffer toXML();", "org.landxml.schema.landXML11.DecisionSightDistanceDocument.DecisionSightDistance insertNewDecisionSightDistance(int i);", "org.landxml.schema.landXML11.LanesDocument.Lanes insertNewLanes(int i);", "public void appendElement(int element) {\r\n\t\tNode newNode = new Node();\r\n\t\tnewNode.value = element;\r\n\t\tnewNode.next = sentinel;\r\n\t\tnewNode.previous = sentinel.previous;\r\n\t\tsentinel.previous = newNode;\r\n\t\tnewNode.previous.next = newNode;\r\n\t\tlength++;\r\n\t}", "protected abstract ArrayList<Element> _toXml_();", "public void searchAndInsert(T searchValue, T InsertValue){\n int index = searchByValue(searchValue) + 1;\n addAtIndex(index, InsertValue);\n }", "public void insert(int val)\n {\n try\n {\n a[index++] = val;\n n=index;\n }\n catch(Exception e)\n {\n System.out.println(�e.getMessage�);\n }\n }", "public org.landxml.schema.landXML11.WatershedsDocument.Watersheds insertNewWatersheds(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.WatershedsDocument.Watersheds target = null;\r\n target = (org.landxml.schema.landXML11.WatershedsDocument.Watersheds)get_store().insert_element_user(WATERSHEDS$4, i);\r\n return target;\r\n }\r\n }", "private static void _valueToStorageDocument(\n\t\tValue value,\n\t\tElement element,\n\t\tDocument doc\n\t) {\n\t\t// Supports only string, int and double\n\t\tif ( value.isString() ) {\n\t\t\telement.appendChild( doc.createTextNode( value.strValue() ) );\n\t\t\telement.setAttribute( JOLIE_TYPE_ATTRIBUTE, \"string\" );\n\t\t} else if ( value.isInt() ) {\n\t\t\telement.appendChild( doc.createTextNode( new Integer( value.intValue() ).toString() ) );\n\t\t\telement.setAttribute( JOLIE_TYPE_ATTRIBUTE, \"int\" );\n\t\t} else if ( value.isDouble() ) {\n\t\t\telement.appendChild( doc.createTextNode( new Double( value.doubleValue() ).toString() ) );\n\t\t\telement.setAttribute( JOLIE_TYPE_ATTRIBUTE, \"double\" );\n\t\t} else {\n\t\t\telement.setAttribute( JOLIE_TYPE_ATTRIBUTE, \"void\" );\n\t\t}\n\n\t\t// adding other attributes\n\t\tMap<String, ValueVector> attrs = getAttributesOrNull( value );\n\t\tif ( attrs != null ) {\n\t\t\tfor( Entry<String, ValueVector> attrEntry : attrs.entrySet() ) {\n\t\t\t\telement.setAttribute(\n\t\t\t\t\tattrEntry.getKey(),\n\t\t\t\t\tattrEntry.getValue().first().strValue() );\n\t\t\t}\n\t\t}\n\n\t\t// adding subelements\n\t\tElement currentElement;\n\t\tfor( Entry<String, ValueVector> entry : value.children().entrySet() ) {\n\t\t\tif ( !entry.getKey().startsWith( \"@\" ) ) {\n\t\t\t\tfor( Value val : entry.getValue() ) {\n\t\t\t\t\tcurrentElement = doc.createElement( entry.getKey() );\n\t\t\t\t\telement.appendChild( currentElement );\n\t\t\t\t\t_valueToStorageDocument( val, currentElement, doc );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "void insertHelper(Node root, int val) {\n\t\tif (root == null) {\n\t\t\troot = new Node(val);\n\t\t} else if (root.item < val) {\n\t\t\troot.right = insertHelper(root.right, val);\n\t\t} else {\n\t\t\troot.left = insertHelper(root.left, val);\n\t\t}\n\t\treturn root;\n\t}", "public void insertAtStart(Booking<?> data) {\n\t\t\t\n\t\tBookingNode node = new BookingNode(data);\n\t\tnode.setData(data);\n\t\tnode.next = null;\n\t\tnode.next = head;\n\t\thead = node;\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "@Test\n public void whenSearchTwoThenResultIndexOne() {\n tree.addChild(nodeOne, \"1\");\n nodeOne.addChild(nodeTwo, \"2\");\n nodeTwo.addChild(nodeThree, \"3\");\n assertThat(tree.searchByValue(\"4\"), is(\"Element not found\"));\n }", "org.apache.xmlbeans.XmlInt xgetCombine();", "protected int findNonEmptyPosition() {\n\t\t\twhile (!set.bv[++indice]) {\n\t\t\t}\n\t\t\treturn indice;\n\t\t}", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "private Node setValue(Node startNode, String value, String xql) throws TransformerException {\r\n\r\n Node targetNode = XPathAPI.selectSingleNode(startNode, xql);\r\n NodeList children = targetNode.getChildNodes();\r\n int index = 0;\r\n int length = children.getLength();\r\n\r\n // Remove all of the current contents\r\n for (index = 0; index < length; index++) {\r\n targetNode.removeChild(children.item(index));\r\n }\r\n // Add in the new value\r\n Document doc = startNode.getOwnerDocument();\r\n targetNode.appendChild(doc.createTextNode(value));\r\n return targetNode;\r\n }", "void insert(int data) { \n root = insertRec(root, data); \n }", "void xsetNumberOfResults(org.apache.xmlbeans.XmlInt numberOfResults);", "public Element toXMLElement() {\n return null;\n }", "@Override\n\tpublic Position insertLast(Object element) {\n\t\treturn null;\n\t}", "private void saveMissingTagAndBiGram(){\n BiGram newBiGram;\n for(Tag tag1 : Tag.values()){\n if(!tagMap.containsKey(tag1))\n tagMap.put(tag1, (long)1);\n for (Tag tag2 :Tag.values()){\n newBiGram = new BiGram(tag1, tag2);\n if(!biGramMap.containsKey(newBiGram))\n biGramMap.put(newBiGram, (long)1);\n }\n }\n }", "void xsetValue(org.apache.xmlbeans.XmlInt value);", "private void copyXML(final WriteXML out, final Map<String, String> replace) {\r\n\t\tfinal StringBuilder text = new StringBuilder();\r\n\t\tint depth = 0;\r\n\t\tint ch;\r\n\t\tcopyAttributes(out, replace);\r\n\t\tfinal String contain = this.in.getTag().getName();\r\n\r\n\t\tout.beginTag(contain);\r\n\r\n\t\twhile ((ch = this.in.read()) != -1) {\r\n\t\t\tfinal Type type = this.in.getTag().getType();\r\n\r\n\t\t\tif (ch == 0) {\r\n\t\t\t\tif (type == Type.BEGIN) {\r\n\t\t\t\t\tif (text.length() > 0) {\r\n\t\t\t\t\t\tout.addText(text.toString());\r\n\t\t\t\t\t\ttext.setLength(0);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tcopyAttributes(out, null);\r\n\t\t\t\t\tout.beginTag(this.in.getTag().getName());\r\n\t\t\t\t\tdepth++;\r\n\t\t\t\t} else if (type == Type.END) {\r\n\t\t\t\t\tif (text.length() > 0) {\r\n\t\t\t\t\t\tout.addText(text.toString());\r\n\t\t\t\t\t\ttext.setLength(0);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (depth == 0) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tout.endTag(this.in.getTag().getName());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdepth--;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\ttext.append((char) ch);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tout.endTag(contain);\r\n\t}", "public boolean insert(int val) {\n if(! valToIndex.containsKey(val)){\n // add element to list\n elementsList.add(val);\n // add val + index to map\n valToIndex.put(val, elementsList.size()-1);\n return true;\n }\n\n return false;\n }", "public void insert(int val) throws DifferentOrderTrees {\r\n \tMonceau monceauTemp = new Monceau();\r\n \t\r\n \tmonceauTemp.arbres.add(new Node(val));\r\n \tthis.fusion(monceauTemp);\r\n }", "public int insert(int k, String i) {\r\n\t\t WAVLNode parentToInsert;\r\n\t\t if(this.root == null)\r\n\t\t {\r\n\t\t\t this.root = new WAVLNode (k,i,this.getExternalNode());\r\n\t\t\t return 0;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\t parentToInsert = this.root.placeToInsert(k);\r\n\t\t\t //System.out.println(parentToInsert.getKey());\r\n\t\t\t WAVLNode nodeToInsert = new WAVLNode(k,i,this.getExternalNode());\r\n\t\t\t if(parentToInsert == null)\r\n\t\t\t {\r\n\t\t\t\t return -1;\r\n\t\t\t }\r\n\t\t\t if(this.min == null || k < this.min.getKey())\r\n\t\t\t {\r\n\t\t\t\t this.min = nodeToInsert;\r\n\t\t\t }\r\n\t\t\t if(this.max == null || k > this.max.getKey())\r\n\t\t\t {\r\n\t\t\t\t this.max = nodeToInsert;\r\n\t\t\t }\r\n\t\t\t if(parentToInsert.getKey() > k)\r\n\t\t\t {\r\n\t\t\t\t parentToInsert.setLeft(nodeToInsert);\r\n\t\t\t\t nodeToInsert.setParent(parentToInsert);\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t parentToInsert.setRight(nodeToInsert);\r\n\t\t\t\t nodeToInsert.setParent(parentToInsert);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t WAVLNode currentNode = nodeToInsert;\r\n\t\t\t while(currentNode.getParent() != null)\r\n\t\t\t {\r\n\t\t\t\t currentNode = currentNode.getParent();\r\n\t\t\t\t currentNode.setSubTreeSize(currentNode.getSubTreeSize()+1);\r\n\t\t\t\t //System.out.println(\"Changed \" +currentNode.getKey()+ \" To \" + (currentNode.getSubTreeSize()));\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t int numRebalance = parentToInsert.rebalanceInsert();\r\n\t\t\t while(this.root.getParent() != null)\r\n\t\t\t {\r\n\t\t\t\t //System.out.println(this.root.getKey());\r\n\t\t\t\t this.setRoot(this.root.getParent());\r\n\t\t\t }\r\n\t\t\t return numRebalance;\r\n\t\t }\r\n\t }", "public void insertAtEnd(int val)\n\n {\n\n Node nptr = new Node(val, null, null); \n\n if(start == null)\n\n {\n\n start = nptr;\n\n end = start;\n\n }\n\n else\n\n {\n\n nptr.setLinkPrev(end);\n\n end.setLinkNext(nptr);\n\n end = nptr;\n\n }\n\n size++;\n\n }", "public void openBlankXmlFile() {\n\t\t\n\t\t// the root of the xmlElement tree\n\t\trootNode = new XmlNode(this);\n\t\tXmlElement rootField = rootNode.getXmlElement();\n\t\t\n\t\trootField.setName(\"rootElement\", true);\n\t\t\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\trootNode.addChild(newNode);\n\t}", "public ExtElement insertFirst(ExtElement element, BaseModel value) {\r\n\t\treturn insertFirst(element, value.getJsObj());\r\n\t}", "public org.apache.xmlbeans.XmlObject addNewValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlObject target = null;\n target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(VALUE$2);\n return target;\n }\n }", "public void insert(int X)\n {\n root = insert(X, root);\n }", "org.landxml.schema.landXML11.ClassificationDocument.Classification insertNewClassification(int i);", "private Node append(E element) {\n \treturn new Node(sentinel.pred, element);\n }", "public BTreeSearchResult insert(String key, int info) throws IOException{\r\n\t\tint diskAccessNum = 0;\r\n\t\tif (this.length() == 0){\r\n\t\t\tthis.create();\r\n\t\t\tdiskAccessNum = 1; //create B-tree, 1 disk access\r\n\t\t}\r\n\t\tBTreeNode root = new BTreeNode(this.readPage(0), this.order); //read root, 1 disk access\r\n\t\t\r\n\t\tif (root.numKeys == root.key.length){//Create new root and split old one\r\n\t\t\tBTreeSearchResult newRoot = new BTreeSearchResult(new BTreeNode( this.order ), 0);\r\n\t\t\troot.parent = 0; //Always keep root as first page\r\n\t\t\tBTreeSearchResult oldRoot = new BTreeSearchResult(root, (int) (this.length()/this.pageSize)); //Move old root to end of file\r\n\t\t\tnewRoot.node.child[0] = oldRoot.pageFound;\r\n\t\t\tBTreeNode newChild = this.split(newRoot.node, 0, oldRoot); // 3 accesses for split\r\n\t\t\tdiskAccessNum = diskAccessNum + this.updatePointerOfChildren(oldRoot); // Access all children of old root to update their parent pointer\r\n\t\t\tdiskAccessNum = diskAccessNum + this.updatePointerOfChildren(new BTreeSearchResult(newChild, newRoot.node.child[1])); // Access all children of new node to update their parent pointer\r\n\t\t\tnewRoot.diskAccessNum = 4 + diskAccessNum;\r\n\t\t\treturn insertNonFull(newRoot, key, info);\r\n\t\t}else{\r\n\t\t\tBTreeSearchResult oldRoot = new BTreeSearchResult(root, 0);\r\n\t\t\toldRoot.diskAccessNum = 1 + diskAccessNum; // 1 access for root\r\n\t\t\treturn insertNonFull(oldRoot, key, info);\r\n\t\t}\r\n\t}", "private static void populateValues(String name) throws Exception {\n\t\tDocument dom = null;\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t\t// Using factory get an instance of document builder\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"populateValues: Boolean Summary XML location passed: \"\n\t\t\t\t\t\t\t+ name);\n\t\t\t// parse using builder to get DOM representation of the XML file\n\t\t\tdom = db.parse(name);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"populateValues: Error: \");\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\t// get a nodelist of 'rule' elements\n\t\tNodeList nl = dom.getElementsByTagName(RULE_TAG);\n\t\tSystem.out.println(\"populateValues:Rule Node Size: \" + nl.getLength());\n\t\t\n\t\tNode parnode;\n\n\t\tif (null != nl && nl.getLength() > 0) {\n\t\t\tfor (int rulecount = 0; rulecount < nl.getLength(); rulecount++) {\n\t\t\t\t// get each of these elements\n\t\t\t\tparnode = (Node) nl.item(rulecount);\n\n\t\t\t\tSystem.out.println(\"populateValues: Rule Node Name: \" + parnode.getNodeName());\n\t\t\t\t\n\t\t\t\tString expression = null;\n\t\t\t\tString docCount = null;\n\t\t\t\tString dupCount = null;\t\t\t\t\n\n\t\t\t\t//skip the node with <rule hash=\"0\">\n\t\t\t\t NamedNodeMap attributes = parnode.getAttributes();\n\t\t\t Node hashValue = attributes.getNamedItem(ATTRIBUTE);\n\t\t\t if(hashValue.getNodeValue().equals(\"0\")){\n\t\t\t \t continue;\n\t\t\t }\n\n\n\t\t\t\t//fetch the childnodes\n\t\t\t\tNodeList childlist = parnode.getChildNodes();\n\t\t\t\tNode child = null;\n\n\t\t\t\tfor(int childcnt = 0; childcnt < childlist.getLength(); childcnt++){\n\t\t\t\t\tchild = (Node) childlist.item(childcnt);\n\t\t\t\t\tif(child.getNodeName().equalsIgnoreCase(EXPRESSION_TAG)){\n\t\t\t\t\t\texpression = child.getTextContent();\n\t\t\t\t\t}\n\t\t\t\t\tif(child.getNodeName().equalsIgnoreCase(DOCCOUNT_TAG)){\n\t\t\t\t\t\tdocCount = child.getTextContent();\n\t\t\t\t\t}\n\t\t\t\t\tif(child.getNodeName().equalsIgnoreCase(DUPCOUNT_TAG)){\n\t\t\t\t\t\tdupCount = child.getTextContent();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\n\t\t\t\tSystem.out.println(\"populateValues: Expression: \" + expression + \" docCount: \" + docCount + \" dupCount: \" + dupCount);\n\n\t\t\t\t//populate in Map\n\t\t\t\thitterms.put(expression, new Element(Integer.parseInt(docCount), Integer.parseInt(dupCount)));\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"populateValues: Added \" + hitterms.size() + \" hit entries to hashmap\");\n\n\t}", "@Override\n public void push(int value) {\n Entry newElement = new Entry(value);\n if (size == 0) {\n first = newElement;\n last = newElement;\n } else {\n first.previous = newElement;\n newElement.next = first;\n first = newElement;\n }\n size++;\n }", "public boolean insert(int val) {\r\n return insert(val, true);\r\n }", "protected Object atInsert(Object value) {\n return null;\n }", "org.landxml.schema.landXML11.CrashDataDocument.CrashData addNewCrashData();", "public InputSource getDummyXml(int i) {\n return dtdSpecifiers[i].dummyXml;\n }", "public void push(int value){\n //To be written by student\n localSize++;\n top++;\n if(localSize>A.getSize()){\n A.doubleSize();\n try{\n A.modifyElement(value,top);\n }catch(Exception c){c.printStackTrace();}\n }\n else{try{\n A.modifyElement(value,top);\n }catch(Exception a){a.printStackTrace();} }\n }", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "abstract void toXML(StringBuilder xml, int level);", "public void testInsert02() {\r\n\t\tBTree<String, Integer> bt = new BTree<String, Integer>(10);\r\n\t\tList<String> words = TestUtils.randomWords(5000, 31);\r\n\r\n\t\tfor (int i = 0; i < words.size(); i++) {\r\n\t\t\tbt.set(words.get(i), i);\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < words.size(); i++) {\r\n\t\t\tassertEquals(bt.get(words.get(i)), Integer.valueOf(i));\r\n\t\t}\r\n\t}", "void readPepXmlSearchScan(T scan) {\n for (int i = 0; i < reader.getAttributeCount(); i++) {\n String attrib = reader.getAttributeLocalName(i);\n String val = reader.getAttributeValue(i);\n if (attrib.equalsIgnoreCase(\"start_scan\"))\n scan.setScanNumber(Integer.parseInt(val));\n else if (attrib.equalsIgnoreCase(\"precursor_neutral_mass\"))\n // NOTE: We store M+H in the database\n scan.setObservedMass(new BigDecimal(val).add(BigDecimal.valueOf(BaseAminoAcidUtils.PROTON)));\n else if (attrib.equalsIgnoreCase(\"assumed_charge\"))\n scan.setCharge(Integer.parseInt(val));\n else if (attrib.equalsIgnoreCase(\"retention_time_sec\"))\n scan.setRetentionTime(new BigDecimal(val));\n }\n }", "void xsetValue(org.apache.xmlbeans.XmlString value);", "public void push(int x) {\n\t if(first == null){\n\t first = x;\n\t }\n\t s.push(x);\n\t}", "boolean searchValueExists(int i){\t\r\n\t\tthis.searchedNode = search(this.root, i);\r\n\t\tif(this.searchedNode != null){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Test\r\n public void testFindXmlRoot() {\r\n System.out.println(\"findXmlRoot\");\r\n\r\n XmlRoot expResult = root;\r\n XmlCompoundElement books = new XmlDefaultElement(\"books\");\r\n root.addChild(books);\r\n\r\n XmlRoot result = (XmlRoot) XmlBase.findXmlRoot(books);\r\n assertEquals(expResult, result);\r\n\r\n XmlElement book = new XmlDefaultTextElement(\"book\");\r\n books.addChild(book);\r\n\r\n result = (XmlRoot) XmlBase.findXmlRoot(book);\r\n assertEquals(expResult, result);\r\n\r\n }", "public void insert(int data) { \n\t\troot = insert(root, data);\t\n\t}", "private Element createXmlElementForValue(Value value, Document xmlDocument, Constraint constraint) {\n\t\tif (value instanceof ScopedValue) {\n\t\t\tLogging.LOGGER.warning(\"In ValueViewer.createXmlElementForValue: value must not be a ScopedValue. Please debug.\");\n\t\t\t\n\t\t\treturn createXmlElementForValue(((ScopedValue) value).getValue(), xmlDocument, constraint);\n\t\t}\n\t\telse if (value instanceof Concat) {\n\t\t\treturn createXmlElementForConcat((Concat) value, xmlDocument, constraint);\n\t\t}\n\t\telse if (value instanceof Choice) {\n\t\t\treturn createXmlElementForChoice((Choice) value, xmlDocument, constraint);\n\t\t}\n\t\telse if (value instanceof Switch) {\n\t\t\treturn createXmlElementForSwitch((Switch) value, xmlDocument, constraint);\n\t\t}\n\t\telse if (value instanceof Undefined) {\n\t\t\treturn createXmlElementForUndefined((Undefined) value, xmlDocument, constraint);\n\t\t}\n\t\telse if (value instanceof ArrayValueImpl) {\n\t\t\treturn createXmlElementForArray((ArrayValueImpl) value, xmlDocument, constraint);\n\t\t}\n\t\telse if (value instanceof ObjectExtValue) {\n\t\t\treturn createXmlElementForObject((ObjectExtValue) value, xmlDocument, constraint);\n\t\t}\n\t\telse {\n\t\t\t//System.out.println(\"Please handle \" + value.getClass().getSimpleName());\n\t\t\tElement element = xmlDocument.createElement(XML_VALUE);\n\t\t\telement.setAttribute(XML_DESC, value.toString());\n\n\t\t\treturn element;\n\t\t}\n\t}", "public int insert(){ // Wrapper insert function, passes random values to insert integer data in the tree.\n Random rn = new Random();\n\n\n for (int i = 0; i < 10; ++i)\n {\n insert(3);\n insert(5);\n insert(9);\n insert(5);\n insert(8);\n insert(1);\n insert(7);\n insert(4);\n insert(3);\n }\n return 1;\n }", "@Override\n public Event firstScan() {\n return null;\n }", "@Override\n public Object getSubElement(int index)\n {\n return null;\n }", "public void moveFirst() {\n\t\tcurrentElement = 0;\n\t}", "@Writer\n int insertSelective(LuckyBag record);", "protected void insertBeginning(T value) {\r\n\t\tthis.getHead().setPrev(new SNode<T>(value, this.getHead().getPrev()));\r\n\t\tthis.size++;\r\n\t}", "private static Node getTranslationElements(Document doc, Element element, String name, String value) {\n Element node = doc.createElement(name);\n node.appendChild(doc.createTextNode(value));\n return node;\n }", "public boolean writeNode(XsdNode xsdNode, Node xmlElement, Writer out,\n\t\t\tboolean empty) throws IOException {\n\n\t\t/** first check if the element do not have to be filtered */\n\t\tif (!empty) {\n\t\t\tEnumeration children = xsdNode.children();\n\t\t\twhile (children.hasMoreElements()) {\n\t\t\t\tXsdNode child = (XsdNode) children.nextElement();\n\n\t\t\t\tif (((Annotated) child.getUserObject()).getStructureType() == Structure.ATTRIBUTE) {\n\t\t\t\t\tif (elementFilters.containsKey(child)) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tString value = ((Element) xmlElement)\n\t\t\t\t\t\t\t\t\t.getAttributeNode(child.toString())\n\t\t\t\t\t\t\t\t\t.getNodeValue();\n\t\t\t\t\t\t\t/** TODO: done for managing filter */\n\t\t\t\t\t\t\t Pattern p = Pattern.compile((String) elementFilters\n\t\t\t\t\t\t\t\t\t\t.get(child));\n\t\t\t\t\t\t\t Matcher m = p.matcher(value);\n\t\t\t\t\t\t\t boolean b = m.matches();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t if (!b) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!xsdNode.isUsed) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (selections.contains(xsdNode)) {\n\t\t\tif (xmlElement != null || empty) {\n\t\t\t\tString value = getElementValue((Element) xmlElement);\n\t\t\t\t/** TODO: done for managing filter */\n\t\t\t\t/** if empty marshalling, we do not care about filters */\n\t\t\t\tif (elementFilters.containsKey(xsdNode) && !empty && elementFilters.get(xsdNode) != null && ((String)elementFilters.get(xsdNode)).length() > 0) {\n\t\t\t\t\tif (value.matches((String) elementFilters.get(xsdNode))) {\n\t\t\t\t\t\tif (firstElement)\n\t\t\t\t\t\t\tfirstElement = false;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tout.write(separator);\n\t\t\t\t\t\tout.write(getElementValue((Element) xmlElement));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (firstElement)\n\t\t\t\t\t\tfirstElement = false;\n\t\t\t\t\telse\n\t\t\t\t\t\tout.write(separator);\n\t\t\t\t\tout.write(getElementValue((Element) xmlElement));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Enumeration\n\t\tEnumeration children = xsdNode.children();\n\t\twhile (children.hasMoreElements()) {\n\t\t\tXsdNode child = (XsdNode) children.nextElement();\n\t\t\tif (child.isUsed) {\n\t\t\t\tswitch (((Annotated) child.getUserObject()).getStructureType()) {\n\t\t\t\tcase Structure.ELEMENT:\n\t\t\t\t\t/** number of element found */\n\t\t\t\t\tint cpt = 0;\n\t\t\t\t\t/** number of elements really marshalled, ie not filtered */\n\t\t\t\t\tint nbElementFound = 0;\n\t\t\t\t\t/* create a NodeList with all childs with tagname */\n\t\t\t\t\tif (xmlElement != null) {\n\t\t\t\t\t\tNodeList allElements = xmlElement.getChildNodes();\n\t\t\t\t\t\tArrayList elements = new ArrayList();\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * number of element found: could be lower than\n\t\t\t\t\t\t * elements's length due to filters\n\t\t\t\t\t\t */\n\t\t\t\t\t\tfor (int i = 0; i < allElements.getLength(); i++) {\n\t\t\t\t\t\t\tif (allElements.item(i).getNodeName().compareTo(\n\t\t\t\t\t\t\t\t\tchild.toString()) == 0) {\n\t\t\t\t\t\t\t\telements.add(allElements.item(i));\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t/* get refence by xs:key */\n\t\t\t\t\t\t\telse if (isXsRefPath(allElements.item(i)\n\t\t\t\t\t\t\t\t\t)) {\n\t\t\t\t\t\t\t\tElement ref = //document.\n\t\t\t\t\t\t\t\tthis.getElementByKeyRef(allElements.item(i));\n//\t\t\t\t\t\t\t\t\t\t((Element) allElements\n//\t\t\t\t\t\t\t\t\t\t\t\t.item(i))\n//\t\t\t\t\t\t\t\t\t\t\t\t.getAttribute(refAttribute),allElements.item(i)\n//\t\t\t\t\t\t\t\t\t\t\t\t.getNodeName());\n\t\t\t\t\t\t\t\tif (ref != null\n\t\t\t\t\t\t\t\t\t\t&& ref.getNodeName().compareTo(\n\t\t\t\t\t\t\t\t\t\t\t\tchild.toString()) == 0) {\n\t\t\t\t\t\t\t\t\telements.add(ref);\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\n\t\t\t\t\t\t\t/* get references by XML id */\n\t\t\t\t\t\t\telse if (isRefType(allElements.item(i)\n\t\t\t\t\t\t\t\t\t.getNodeName())) {\n\t\t\t\t\t\t\t\tElement ref = //document.\n\t\t\t\t\t\t\t\tgetElementById(((Element) allElements\n\t\t\t\t\t\t\t\t\t\t\t\t.item(i))\n\t\t\t\t\t\t\t\t\t\t\t\t.getAttribute(refAttribute));\n\t\t\t\t\t\t\t\tif (ref != null\n\t\t\t\t\t\t\t\t\t\t&& ref.getNodeName().compareTo(\n\t\t\t\t\t\t\t\t\t\t\t\tchild.toString()) == 0) {\n\t\t\t\t\t\t\t\t\telements.add(ref);\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\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (cpt < elements.size()) {\n\t\t\t\t\t\t\tboolean notEmptyElement = writeNode(child,\n\t\t\t\t\t\t\t\t\t(Node) elements.get(cpt), out, false);\n\t\t\t\t\t\t\tcpt++;\n\t\t\t\t\t\t\tif (notEmptyElement)\n\t\t\t\t\t\t\t\tnbElementFound++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tint maxCount = getMaxCount(child);\n\t\t\t\t\twhile (nbElementFound < maxCount) {\n\t\t\t\t\t\twriteNode(child, null, out, true);\n\t\t\t\t\t\tnbElementFound++;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Structure.ATTRIBUTE:\n\t\t\t\t\tif (firstElement)\n\t\t\t\t\t\tfirstElement = false;\n\t\t\t\t\telse\n\t\t\t\t\t\tout.write(separator);\n\n\t\t\t\t\tif (xmlElement != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tout.write(((Element) xmlElement).getAttributeNode(\n\t\t\t\t\t\t\t\t\tchild.toString()).getNodeValue());\n\t\t\t\t\t\t} catch (NullPointerException ne) {\n\t\t\t\t\t\t\t/* main cause: the cell does not exist */\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"[PSI makers: flattener] ERROR: the node is neither an attribute nor an element\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public HashMap<String, String> getNextNode() throws XMLStreamException,\n\t\t\tIOException {\n\t\tboolean add_elements = false;\n\t\tString node_name = new String();\n\t\tHashMap<String, String> document = new HashMap<String, String>();\n\t\t// StringWriter tag_content = new StringWriter();\n\n\t\t// Loop over the document\n\t\twhile (xmlEventReader.hasNext()) {\n\t\t\txmlEvent = xmlEventReader.nextEvent();// get the next event\n\n\t\t\t// Start element\n\t\t\tif (xmlEvent.isStartElement()) {\n\t\t\t\tnode_name = xmlEvent.asStartElement().getName().getLocalPart();\n\t\t\t\tif (!node_name.equalsIgnoreCase(root_node)\n\t\t\t\t\t\t&& !formatter_nodes.contains(\"|\" + node_name + \"|\")) {\n\t\t\t\t\t// not 'dblp' and is a document type tag\n\t\t\t\t\tif (document_types.contains(\"|\" + node_name + \"|\")) {\n\t\t\t\t\t\tadd_elements = true;\n\t\t\t\t\t\tdocument.put(\"type\", node_name);\n\t\t\t\t\t\t// Read the attributes to the document\n\t\t\t\t\t\tgetAttributes(\n\t\t\t\t\t\t\t\txmlEvent.asStartElement().getAttributes(),\n\t\t\t\t\t\t\t\tdocument);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// xmlWriter = xmlOutputFactory\n\t\t\t\t\t\t// .createXMLEventWriter(tag_content);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (add_elements && xmlEvent.isEndElement()) {\n\t\t\t\tnode_name = xmlEvent.asEndElement().getName().getLocalPart();\n\t\t\t\tif (!formatter_nodes.contains(\"|\" + node_name + \"|\")) {\n\t\t\t\t\t// Close the XML writer\n\t\t\t\t\t// xmlWriter.close();\n\t\t\t\t\t// add the node content to the document\n\t\t\t\t\t// String tag_value = tag_content.toString();\n\t\t\t\t\t// if (tag_value != null)\n\t\t\t\t\t// addNode(node_name, tag_value.trim(), document);\n\t\t\t\t\t// // Refresh the tag content value\n\t\t\t\t\t// tag_content = new StringWriter();\n\t\t\t\t\t// Stop adding elements\n\t\t\t\t\tif (document_types.contains(\"|\" + node_name + \"|\")) {\n\t\t\t\t\t\tadd_elements = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (xmlEvent.isCharacters()) {\n\t\t\t\t// Add the characters to the XMLWriter stream\n\t\t\t\tString value = xmlEvent.asCharacters().getData().trim();\n\t\t\t\tif (!value.isEmpty())\n\t\t\t\t\taddNode(node_name, value, document);\n\n\t\t\t}\n\n\t\t}\n\t\treturn document;\n\n\t}", "public void insert(int x) {\n root = insertHelper(root, x);\n }", "org.apache.xmlbeans.XmlString xgetValue();", "void writeNullObject() throws SAXException {\n workAttrs.clear();\n addIdAttribute(workAttrs, \"0\");\n XmlElementName elemName = uimaTypeName2XmiElementName(\"uima.cas.NULL\");\n startElement(elemName, workAttrs, 0);\n endElement(elemName);\n }", "private void incTag() {\n long id = tagId(tag[th()]); // 1\n tag[th()] = newTag(id+1); // 2\n }", "@Override\n\tpublic void scan(Transaction tx) {\n\n\t}", "private void insertAux2(K key, V val) {\n if(root == null) { //empty tree\n X = new Node(key, val);\n root = X;\n return;\n }\n Node temp = root;\n while(true) {\n int cmp = key.compareTo(temp.key);\n if (cmp < 0 && temp.left != null) { //go left\n comparisons += 1;\n temp = temp.left;\n } else if (cmp < 0 && temp.left == null) { //it goes in the next left\n comparisons += 1;\n X = new Node(key, val);\n temp.left = X;\n X.parent = temp;\n break;\n }\n if (cmp > 0 && temp.right != null) { //go right\n comparisons += 1;\n temp = temp.right;\n } else if (cmp > 0 && temp.right == null) { //it goes in the next right\n comparisons += 1;\n X = new Node(key, val);\n temp.right = X;\n X.parent = temp;\n break;\n }\n if(cmp == 0) { //no doubles, overlap pre-existing node\n comparisons += 1;\n temp.key = key;\n temp.val = val;\n X = temp;\n break;\n }\n }\n }", "@Override\n\tpublic int insert(Utente input) throws Exception {\n\t\treturn 0;\n\t}" ]
[ "0.5167692", "0.50976837", "0.49992162", "0.48559853", "0.4841836", "0.4839486", "0.48306105", "0.47883868", "0.47716194", "0.47107476", "0.47099113", "0.4694012", "0.46142352", "0.46142352", "0.45871553", "0.45735854", "0.4561522", "0.4552709", "0.45325986", "0.45312", "0.4525224", "0.45116666", "0.45112336", "0.45079976", "0.450168", "0.44995302", "0.44869834", "0.44756216", "0.44705802", "0.44525906", "0.44401416", "0.44387066", "0.4415492", "0.44109926", "0.44020852", "0.43911672", "0.43874145", "0.43766552", "0.43752217", "0.43737635", "0.43715215", "0.43660462", "0.43515348", "0.4350142", "0.43446034", "0.43329358", "0.43321294", "0.4329183", "0.4324694", "0.43210402", "0.432032", "0.43067712", "0.4299735", "0.42993173", "0.42933053", "0.42909184", "0.42881003", "0.42850012", "0.4283281", "0.42782953", "0.4277202", "0.42770624", "0.4274943", "0.42621163", "0.42596325", "0.42577815", "0.42563966", "0.4252373", "0.42469308", "0.42461702", "0.4244328", "0.4242631", "0.4236018", "0.42322898", "0.42272246", "0.42264837", "0.4219349", "0.42161894", "0.42152423", "0.4206277", "0.420316", "0.42009822", "0.4198806", "0.419715", "0.41969776", "0.41955253", "0.41918686", "0.41895893", "0.41894144", "0.418798", "0.41843936", "0.41825733", "0.41704252", "0.41654223", "0.41643912", "0.41609535", "0.41605812", "0.41601428", "0.41593593", "0.41591144" ]
0.5067216
2
Appends and returns a new empty value (as xml) as the last "scans" element
com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints addNewScans();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}", "public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}", "public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}", "XomNode appendElement(Element element) throws XmlBuilderException;", "@Override\n public StringBuilder createAccumulator() {\n return null;\n }", "public org.apache.xmlbeans.XmlObject addNewValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlObject target = null;\n target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(VALUE$2);\n return target;\n }\n }", "public String toXML() {\n return null;\n }", "public Element toXMLElement() {\n return null;\n }", "public String toXML() {\n return null;\n }", "public abstract StringBuffer toXML ();", "public abstract StringBuffer toXML();", "@Override\n\t\tpublic void endElement(String uri, String localName, String qName)\n\t\t\t\tthrows SAXException {\n\t\t\tNode lastElement = nodeStack.lastElement();\n\t\t\tlastElement.setValue(buffer.toString());\n\t\t\tLog.d(\"xml\", \"\\\\ \" + uri + \" \" + localName + \" | found data: \" + lastElement.getValue());\n\t\t\tnodeStack.pop();\n\t\t\t\n\t\t\t\n\t\t}", "private void clearFullTree()\r\n {\r\n fullXmlTree = new StringBuilder();\r\n }", "public String doneXML() {\r\n return null;\r\n }", "public RTWElementRef lastAsElement();", "public XMLDocument endElement() {\r\n return this.endElement(null);\r\n }", "@Override\n\tpublic CharSequence toXML() {\n\t\treturn null;\n\t}", "private Node append(E element) {\n \treturn new Node(sentinel.pred, element);\n }", "org.apache.xmlbeans.XmlInt xgetCombine();", "protected abstract ArrayList<Element> _toXml_();", "@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}", "Element toXML();", "private String toXML(){\n\tString buffer = \"<xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\">\\n\";\n\tfor(Room[] r : rooms)\n\t for(Room s : r)\n\t\tif(s != null)\n\t\t buffer += s.toXML();\n\tbuffer += \"</xml>\";\n\treturn buffer;\n }", "public String toXml() {\n\t\treturn(toString());\n\t}", "public InputSource getDummyXml() {\n return getDummyXml(0);\n }", "public boolean writeNode(XsdNode xsdNode, Node xmlElement, Writer out,\n\t\t\tboolean empty) throws IOException {\n\n\t\t/** first check if the element do not have to be filtered */\n\t\tif (!empty) {\n\t\t\tEnumeration children = xsdNode.children();\n\t\t\twhile (children.hasMoreElements()) {\n\t\t\t\tXsdNode child = (XsdNode) children.nextElement();\n\n\t\t\t\tif (((Annotated) child.getUserObject()).getStructureType() == Structure.ATTRIBUTE) {\n\t\t\t\t\tif (elementFilters.containsKey(child)) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tString value = ((Element) xmlElement)\n\t\t\t\t\t\t\t\t\t.getAttributeNode(child.toString())\n\t\t\t\t\t\t\t\t\t.getNodeValue();\n\t\t\t\t\t\t\t/** TODO: done for managing filter */\n\t\t\t\t\t\t\t Pattern p = Pattern.compile((String) elementFilters\n\t\t\t\t\t\t\t\t\t\t.get(child));\n\t\t\t\t\t\t\t Matcher m = p.matcher(value);\n\t\t\t\t\t\t\t boolean b = m.matches();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t if (!b) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!xsdNode.isUsed) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (selections.contains(xsdNode)) {\n\t\t\tif (xmlElement != null || empty) {\n\t\t\t\tString value = getElementValue((Element) xmlElement);\n\t\t\t\t/** TODO: done for managing filter */\n\t\t\t\t/** if empty marshalling, we do not care about filters */\n\t\t\t\tif (elementFilters.containsKey(xsdNode) && !empty && elementFilters.get(xsdNode) != null && ((String)elementFilters.get(xsdNode)).length() > 0) {\n\t\t\t\t\tif (value.matches((String) elementFilters.get(xsdNode))) {\n\t\t\t\t\t\tif (firstElement)\n\t\t\t\t\t\t\tfirstElement = false;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tout.write(separator);\n\t\t\t\t\t\tout.write(getElementValue((Element) xmlElement));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (firstElement)\n\t\t\t\t\t\tfirstElement = false;\n\t\t\t\t\telse\n\t\t\t\t\t\tout.write(separator);\n\t\t\t\t\tout.write(getElementValue((Element) xmlElement));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Enumeration\n\t\tEnumeration children = xsdNode.children();\n\t\twhile (children.hasMoreElements()) {\n\t\t\tXsdNode child = (XsdNode) children.nextElement();\n\t\t\tif (child.isUsed) {\n\t\t\t\tswitch (((Annotated) child.getUserObject()).getStructureType()) {\n\t\t\t\tcase Structure.ELEMENT:\n\t\t\t\t\t/** number of element found */\n\t\t\t\t\tint cpt = 0;\n\t\t\t\t\t/** number of elements really marshalled, ie not filtered */\n\t\t\t\t\tint nbElementFound = 0;\n\t\t\t\t\t/* create a NodeList with all childs with tagname */\n\t\t\t\t\tif (xmlElement != null) {\n\t\t\t\t\t\tNodeList allElements = xmlElement.getChildNodes();\n\t\t\t\t\t\tArrayList elements = new ArrayList();\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * number of element found: could be lower than\n\t\t\t\t\t\t * elements's length due to filters\n\t\t\t\t\t\t */\n\t\t\t\t\t\tfor (int i = 0; i < allElements.getLength(); i++) {\n\t\t\t\t\t\t\tif (allElements.item(i).getNodeName().compareTo(\n\t\t\t\t\t\t\t\t\tchild.toString()) == 0) {\n\t\t\t\t\t\t\t\telements.add(allElements.item(i));\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t/* get refence by xs:key */\n\t\t\t\t\t\t\telse if (isXsRefPath(allElements.item(i)\n\t\t\t\t\t\t\t\t\t)) {\n\t\t\t\t\t\t\t\tElement ref = //document.\n\t\t\t\t\t\t\t\tthis.getElementByKeyRef(allElements.item(i));\n//\t\t\t\t\t\t\t\t\t\t((Element) allElements\n//\t\t\t\t\t\t\t\t\t\t\t\t.item(i))\n//\t\t\t\t\t\t\t\t\t\t\t\t.getAttribute(refAttribute),allElements.item(i)\n//\t\t\t\t\t\t\t\t\t\t\t\t.getNodeName());\n\t\t\t\t\t\t\t\tif (ref != null\n\t\t\t\t\t\t\t\t\t\t&& ref.getNodeName().compareTo(\n\t\t\t\t\t\t\t\t\t\t\t\tchild.toString()) == 0) {\n\t\t\t\t\t\t\t\t\telements.add(ref);\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\n\t\t\t\t\t\t\t/* get references by XML id */\n\t\t\t\t\t\t\telse if (isRefType(allElements.item(i)\n\t\t\t\t\t\t\t\t\t.getNodeName())) {\n\t\t\t\t\t\t\t\tElement ref = //document.\n\t\t\t\t\t\t\t\tgetElementById(((Element) allElements\n\t\t\t\t\t\t\t\t\t\t\t\t.item(i))\n\t\t\t\t\t\t\t\t\t\t\t\t.getAttribute(refAttribute));\n\t\t\t\t\t\t\t\tif (ref != null\n\t\t\t\t\t\t\t\t\t\t&& ref.getNodeName().compareTo(\n\t\t\t\t\t\t\t\t\t\t\t\tchild.toString()) == 0) {\n\t\t\t\t\t\t\t\t\telements.add(ref);\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\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (cpt < elements.size()) {\n\t\t\t\t\t\t\tboolean notEmptyElement = writeNode(child,\n\t\t\t\t\t\t\t\t\t(Node) elements.get(cpt), out, false);\n\t\t\t\t\t\t\tcpt++;\n\t\t\t\t\t\t\tif (notEmptyElement)\n\t\t\t\t\t\t\t\tnbElementFound++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tint maxCount = getMaxCount(child);\n\t\t\t\t\twhile (nbElementFound < maxCount) {\n\t\t\t\t\t\twriteNode(child, null, out, true);\n\t\t\t\t\t\tnbElementFound++;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Structure.ATTRIBUTE:\n\t\t\t\t\tif (firstElement)\n\t\t\t\t\t\tfirstElement = false;\n\t\t\t\t\telse\n\t\t\t\t\t\tout.write(separator);\n\n\t\t\t\t\tif (xmlElement != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tout.write(((Element) xmlElement).getAttributeNode(\n\t\t\t\t\t\t\t\t\tchild.toString()).getNodeValue());\n\t\t\t\t\t\t} catch (NullPointerException ne) {\n\t\t\t\t\t\t\t/* main cause: the cell does not exist */\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"[PSI makers: flattener] ERROR: the node is neither an attribute nor an element\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private Element generateEmptyOutboundElem(XmlProcessor hqmfXmlProcessor) {\n\t\tElement outboundRelElem = hqmfXmlProcessor.getOriginalDoc().createElement(OUTBOUND_RELATIONSHIP);\n\t\toutboundRelElem.setAttribute(TYPE_CODE, \"COMP\");\n\t\treturn outboundRelElem;\n\t}", "public void writeXMLFinisher() {\n\t\tJavaIO.createXMLFile(getCurrentPath(), \"coveragePriorJ.xml\", \"</list>\", true);\n\t}", "public void writeToXML(){\n\t\t\n\t\t String s1 = \"\";\n\t\t String s2 = \"\";\n\t\t String s3 = \"\";\n\t\t Element lastElement= null;\n\t\t\n\t\tDocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dbElement;\n\t\tBufferedReader brRead=null;\n\n\t\ttry{\n\t\t\tdbElement = dbfactory.newDocumentBuilder();\n\t\t\t\n\t\t\t//Create the root\n\t\t\tDocument docRoot = dbElement.newDocument();\n\t\t\tElement rootElement = docRoot.createElement(\"ROYAL\");\n\t\t\tdocRoot.appendChild(rootElement);\n\t\t\t\n\t\t\t//Create elements\n\t\t\t\n\t\t\t//Element fam = docRoot.createElement(\"FAM\");\n\t\t\tElement e= null;\n\t\t\tbrRead = new BufferedReader(new FileReader(\"complet.ged\"));\n\t\t\tString line=\"\";\n\t\t\twhile((line = brRead.readLine()) != null){\n\t\t\t\tString lineTrim = line.trim();\n\t\t\t\tString str[] = lineTrim.split(\" \");\n\t\t\t\t//System.out.println(\"length = \"+str.length);\n\n\t\t\t\tif(str.length == 2){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3 = \"\";\n\t\t\t\t}else if(str.length ==3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2=\"\";\n\n\t\t\t\t\ts2 = str[1];\n//\t\t\t\t\tSystem.out.println(\"s2=\"+s2);\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\ts3 = str[2];\n//\t\t\t\t\ts3 = s[0];\n\t\t\t\t\t\n\t\t\t\t}else if(str.length >3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\tfor(int i =2; i<str.length; i++){\n\t\t\t\t\t\ts3 = s3 + str[i]+ \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//System.out.println(s1+\"!\"+s2+\"!\"+s3+\"!\");\n\t\t\t\t//Write to file xml\n\t\t\t\t//writeToXML(s1, s2, s3);\n\t\t\t//Element indi = docRoot.createElement(\"INDI\");\t\n\t\t\t//System.out.println(\"Check0 :\" + s1);\n\t\t\tif( Integer.parseInt(s1)==0){\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Check1\");\n\t\t\t\tif(s3.equalsIgnoreCase(\"INDI\")){\n\t\t\t\t\t//System.out.println(\"Check2\");\n\t\t\t\t\tSystem.out.println(\"This is a famille Individual!\");\n\t\t\t\t\te = docRoot.createElement(\"INDI\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t\n\t\t\t\t\t//Set attribute to INDI\n\t\t\t\t\tAttr indiAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tindiAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(indiAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"FAM\")){\n\t\t\t\t\t//System.out.println(\"Check3\");\n\t\t\t\t\tSystem.out.println(\"This is a famille!\");\n\t\t\t\t\te = docRoot.createElement(\"FAM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}if(s2.equalsIgnoreCase(\"HEAD\")){\n\t\t\t\t\tSystem.out.println(\"This is a head!\");\n\t\t\t\t\te = docRoot.createElement(\"HEAD\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"SUBM\")){\n\n\t\t\t\t\tSystem.out.println(\"This is a subm!\");\n\t\t\t\t\te = docRoot.createElement(\"SUBM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==1){\n\n\t\t\t\tString child = s2;\n\t\t\t\tif(child.equalsIgnoreCase(\"SOUR\")||child.equalsIgnoreCase(\"DEST\")||child.equalsIgnoreCase(\"DATE\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"FILE\")||child.equalsIgnoreCase(\"CHAR\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"NAME\")||child.equalsIgnoreCase(\"TITL\")||child.equalsIgnoreCase(\"SEX\")||child.equalsIgnoreCase(\"REFN\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"PHON\")||child.equalsIgnoreCase(\"DIV\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"HEAD\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"BIRT\")||child.equalsIgnoreCase(\"DEAT\")||child.equalsIgnoreCase(\"COMM\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"BURI\")||child.equalsIgnoreCase(\"ADDR\")||child.equalsIgnoreCase(\"CHR\")){\n\t\t\t\t\t\n\t\t\t\t\tString name = lastElement.getNodeName();\t\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"FAMS\")||child.equalsIgnoreCase(\"FAMC\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\t\tx.setAttribute(\"id\",s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"HUSB\")||child.equalsIgnoreCase(\"WIFE\")||child.equalsIgnoreCase(\"CHIL\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"MARR\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==2){\n\t\t\t\tString lastName = lastElement.getNodeName();\n\t\t\t\tif((lastName.equalsIgnoreCase(\"BIRT\"))||(lastName.equalsIgnoreCase(\"DEAT\"))||(lastName.equalsIgnoreCase(\"BURI\"))\n\t\t\t\t\t\t||(lastName.equalsIgnoreCase(\"MARR\"))||(lastName.equalsIgnoreCase(\"CHR\"))){\n\t\t\t\t\t//Add child nodes to birt, deat or marr\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"DATE\")){\n\t\t\t\t\t\tElement date = docRoot.createElement(\"DATE\");\n\t\t\t\t\t\tdate.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(date);\n\t\t\t\t\t}\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"PLAC\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"PLAC\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif(lastName.equalsIgnoreCase(\"COMM\")||lastName.equalsIgnoreCase(\"ADDR\")){\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"CONT\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"CONT\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//lastElement = e;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t//Saved this element for the next step\n\t\t\t\n\t\t\t//Write to file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"iso-8859-1\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, \"Royal.dtd\");\n\t\t\tDOMSource source = new DOMSource(docRoot);\n\t\t\tStreamResult result = new StreamResult(new File(\"complet.xml\"));\n\t \n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t \n\t\t\ttransformer.transform(source, result);\n\t \n\t\t\tSystem.out.println(\"\\nXML DOM Created Successfully.\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "@Override\n public void endElement(String uri, String localName, String qName)\n throws SAXException {\n if(branchInXML.equalsIgnoreCase(ELEM_BOOK)) {\n if(localName.equalsIgnoreCase(ELEM_ID)) {\n currentBook.setId(new Integer(currentvalue.toString()));\n } else if(localName.equalsIgnoreCase(ELEM_TITLE)) {\n currentBook.setTitle(currentvalue.toString());\n } else if(localName.equalsIgnoreCase(ELEM_ISBN)) {\n currentBook.setIsbn(currentvalue.toString());\n } else if(localName.equalsIgnoreCase(ELEM_IMAGE_URL)) {\n currentBook.setImageURL(currentvalue.toString());\n } else if(localName.equalsIgnoreCase(ELEM_THUMBNAIL)) {\n currentBook.setThumbnailURL(currentvalue.toString());\n } else if(localName.equalsIgnoreCase(ELEM_THUMBNAIL)) {\n currentBook.setTitle(currentvalue.toString());\n } else if(localName.equalsIgnoreCase(ELEM_DESCRIPTION)) {\n currentBook.setDescription(currentvalue.toString());\n } else if(localName.equalsIgnoreCase(ELEM_RATING)) {\n currentBook.setRating(new Double(currentvalue.toString()).doubleValue());\n } else if(localName.equalsIgnoreCase(ELEM_RATING_COUNT)) {\n currentBook.setRatingCount(new Integer(currentvalue.toString()).intValue());\n } else if(localName.equalsIgnoreCase(ELEM_NUM_PAGES)) {\n currentBook.setNumPages(new Integer(currentvalue.toString()).intValue());\n } else if(localName.equalsIgnoreCase(ELEM_LINK)) {\n currentBook.setLink(currentvalue.toString());\n }\n \n } else if(branchInXML.equalsIgnoreCase(ELEM_REVIEW)) {\n if(localName.equalsIgnoreCase(ELEM_ID)) {\n currentReview.setId(new Integer(currentvalue.toString()).intValue());\n } else if(localName.equalsIgnoreCase(ELEM_RECOMMENDED_FOR)) {\n currentReview.setRecommendedFor(currentvalue.toString());\n } else if(localName.equalsIgnoreCase(ELEM_BODY)) {\n currentReview.setContent(currentvalue.toString());\n } else if(localName.equalsIgnoreCase(ELEM_DATE_ADDED)) {\n currentReview.setDateAdded(currentvalue.toString());\n }\n } else if(branchInXML.equalsIgnoreCase(ELEM_AUTHOR)) {\n if(localName.equalsIgnoreCase(ELEM_AUTHOR)) {\n currentBook.addAuthor(currentvalue.toString());\n }\n } else if(branchInXML.equalsIgnoreCase(ELEM_USER)) {\n if(localName.equalsIgnoreCase(ELEM_NAME)) {\n currentReview.setAuthor(currentvalue.toString());\n } else if(localName.equalsIgnoreCase(ELEM_LOCATION)) {\n currentReview.setAuthorLocation(currentvalue.toString());\n }\n }\n currentElement=false;\n //Close the branch if necessary and return to the parent branch.\n if(localName.equalsIgnoreCase(ELEM_BOOK)) {\n books.add(currentBook);\n } else if(localName.equalsIgnoreCase(ELEM_REVIEW)) {\n currentBook.addReview(currentReview);\n } else if(localName.equalsIgnoreCase(ELEM_USER)) {\n branchInXML = ELEM_REVIEW;\n } else if(localName.equalsIgnoreCase(ELEM_AUTHOR)) {\n branchInXML = ELEM_BOOK;\n }\n }", "private static Node getReceiverElements(Document doc, Element element, String name, String value) {\r\n\t\tElement node = doc.createElement(name);\r\n\t\tnode.appendChild(doc.createTextNode(value));\r\n\t\treturn node;\r\n\t}", "public void appendElement(int element) {\r\n\t\tNode newNode = new Node();\r\n\t\tnewNode.value = element;\r\n\t\tnewNode.next = sentinel;\r\n\t\tnewNode.previous = sentinel.previous;\r\n\t\tsentinel.previous = newNode;\r\n\t\tnewNode.previous.next = newNode;\r\n\t\tlength++;\r\n\t}", "private Element createXmlElementForConcat(Concat concat, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_CONCAT);\n\t\t//element.setAttribute(XML_INFO1, concat.getValue1().toString());\n\t\t//element.setAttribute(XML_INFO2, concat.getValue2().toString());\n\n\t\tfor (Value childValue : concat) {\n\t\t\tElement child = createXmlElementForValue(childValue, xmlDocument, constraint);\n\t\t\tif (child != null)\n\t\t\t\telement.appendChild(child);\n\t\t}\n\t\t\n\t\treturn (element.hasChildNodes() ? element : null);\n\t}", "@Override\n public void writeEndElement() throws XMLStreamException {\n closeStartTag();\n if(_depth == 0){\n return;\n }\n if(_ncContextState[_depth]){\n nsContext.popContext();\n }\n try {\n _stream .write(_END_TAG);\n //writeStringToUtf8 (qname,_stream);\n ElementName en =elementNames[--_depth];\n _stream.write(en.getUtf8Data().getBytes(), 0,en.getUtf8Data().getLength());\n en.getUtf8Data().reset();\n _stream .write('>');\n } catch (IOException ex) {\n throw new RuntimeException(ex);\n }\n }", "@Override\n\tpublic Position insertLast(Object element) {\n\t\treturn null;\n\t}", "public String toXMLTag() {\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\ttoXMLTag(buffer,0);\n\t\treturn buffer.toString();\n\t}", "void writeNullObject() throws SAXException {\n workAttrs.clear();\n addIdAttribute(workAttrs, \"0\");\n XmlElementName elemName = uimaTypeName2XmiElementName(\"uima.cas.NULL\");\n startElement(elemName, workAttrs, 0);\n endElement(elemName);\n }", "@Override\n\tpublic Element saveToXml(boolean includeConfigState) {\n\t\treturn null;\n\t}", "abstract void toXML(StringBuilder xml, int level);", "public void setXmlRoot() {\n\t\tif (lineNodeIsSelected)\n\t\t\treturn;\n\n\t\tif (selections.size() == 0) {\n\t\t\tlineNode = (XsdNode) treeModel.getRoot();\n\t\t\tlineElements = getNodes(lineNode.getPath());\n\t\t\treturn;\n\t\t}\n\n\t\tXsdNode value = rootNode;\n\t\tXsdNode tmp = null;\n\t\tXsdNode select = null;\n\t\tXsdNode lastDuplicable = null;\n\t\t// go down while no more than one child is used and current node\n\t\t// is not selected\n\n\t\t// keep last node duplicable\n\n\t\tEnumeration children = value.children();\n\t\tint nb = 0;\n\t\twhile (nb <= 1 && !selections.contains(tmp)) {\n\n\t\t\tif (children.hasMoreElements()) {\n\t\t\t\tXsdNode child;\n\t\t\t\tchild = (XsdNode) children.nextElement();\n\t\t\t\tif (child.isUsed) {\n\t\t\t\t\ttmp = child;\n\t\t\t\t\tnb++;\n\t\t\t\t}\n\t\t\t\tif (selections.contains(child)) {\n\t\t\t\t\tselect = child;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnb = 0;\n\t\t\t\tif (tmp.isDuplicable())\n\t\t\t\t\tlastDuplicable = tmp;\n\t\t\t\tvalue = tmp;\n\t\t\t\tchildren = value.children();\n\t\t\t}\n\t\t}\n\t\tif (nb <= 1)\n\t\t\tvalue = select;\n\t\tSystem.out.println(\"[PSI makers: flattener] root selected: \"\n\t\t\t\t+ value.toString());\n\n\t\tlineNode = lastDuplicable;\n\n\t\tlineElements = getNodes(lineNode.getPath());\n\n\t}", "public String doneXML() {\n if ( (MyLocation != null) && (MyName != null)) {\n return null;\n }\n return new String(\"Incomplete \" + XML_TAG + \" XML specification\");\n }", "public Document getXML() {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"PMD.AvoidDuplicateLiterals\")\n public XML getFixedResult() {\n final List<String> packages = this.skeleton.xpath(\"//package/@id\");\n String finalres = \"\";\n if (this.tempres.toString().indexOf(\"<package\") > 6) {\n finalres = this.tempres.toString().substring(\n 0,\n this.tempres.toString().indexOf(\"<package\") - 6\n );\n }\n for (final String apackage : packages) {\n finalres = finalres.concat(\n String.format(\n \" <package id=\\\"%s\\\">\\n\",\n apackage\n )\n );\n final List<String> classes = this.skeleton.xpath(\n String.format(\n \"//package[@id ='%s']/class/@id\",\n apackage\n )\n );\n for (final String aclass : classes) {\n finalres = this.calc(aclass, finalres);\n }\n finalres = finalres.concat(\" </package>\\n\");\n }\n if (this.tempres.toString().indexOf(\"</app\") > 1) {\n finalres = finalres.concat(\n this.tempres.toString().substring(\n this.tempres.toString().indexOf(\"</app\")\n )\n );\n }\n return new XMLDocument(finalres);\n }", "public HashMap<String, String> getNextNode() throws XMLStreamException,\n\t\t\tIOException {\n\t\tboolean add_elements = false;\n\t\tString node_name = new String();\n\t\tHashMap<String, String> document = new HashMap<String, String>();\n\t\t// StringWriter tag_content = new StringWriter();\n\n\t\t// Loop over the document\n\t\twhile (xmlEventReader.hasNext()) {\n\t\t\txmlEvent = xmlEventReader.nextEvent();// get the next event\n\n\t\t\t// Start element\n\t\t\tif (xmlEvent.isStartElement()) {\n\t\t\t\tnode_name = xmlEvent.asStartElement().getName().getLocalPart();\n\t\t\t\tif (!node_name.equalsIgnoreCase(root_node)\n\t\t\t\t\t\t&& !formatter_nodes.contains(\"|\" + node_name + \"|\")) {\n\t\t\t\t\t// not 'dblp' and is a document type tag\n\t\t\t\t\tif (document_types.contains(\"|\" + node_name + \"|\")) {\n\t\t\t\t\t\tadd_elements = true;\n\t\t\t\t\t\tdocument.put(\"type\", node_name);\n\t\t\t\t\t\t// Read the attributes to the document\n\t\t\t\t\t\tgetAttributes(\n\t\t\t\t\t\t\t\txmlEvent.asStartElement().getAttributes(),\n\t\t\t\t\t\t\t\tdocument);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// xmlWriter = xmlOutputFactory\n\t\t\t\t\t\t// .createXMLEventWriter(tag_content);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (add_elements && xmlEvent.isEndElement()) {\n\t\t\t\tnode_name = xmlEvent.asEndElement().getName().getLocalPart();\n\t\t\t\tif (!formatter_nodes.contains(\"|\" + node_name + \"|\")) {\n\t\t\t\t\t// Close the XML writer\n\t\t\t\t\t// xmlWriter.close();\n\t\t\t\t\t// add the node content to the document\n\t\t\t\t\t// String tag_value = tag_content.toString();\n\t\t\t\t\t// if (tag_value != null)\n\t\t\t\t\t// addNode(node_name, tag_value.trim(), document);\n\t\t\t\t\t// // Refresh the tag content value\n\t\t\t\t\t// tag_content = new StringWriter();\n\t\t\t\t\t// Stop adding elements\n\t\t\t\t\tif (document_types.contains(\"|\" + node_name + \"|\")) {\n\t\t\t\t\t\tadd_elements = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (xmlEvent.isCharacters()) {\n\t\t\t\t// Add the characters to the XMLWriter stream\n\t\t\t\tString value = xmlEvent.asCharacters().getData().trim();\n\t\t\t\tif (!value.isEmpty())\n\t\t\t\t\taddNode(node_name, value, document);\n\n\t\t\t}\n\n\t\t}\n\t\treturn document;\n\n\t}", "public int getEmptyX()\n\t{\n\t\treturn x0;\n\t}", "@Override\n SerializerElem preValueWrite(String key, Object value, boolean withNsPrefix, Class<?> rootClass) {\n return null;\n }", "public void resetCurrentElement() {\r\n\t\tcurrentNode = firstNode;\r\n\t}", "public void openBlankXmlFile() {\n\t\t\n\t\t// the root of the xmlElement tree\n\t\trootNode = new XmlNode(this);\n\t\tXmlElement rootField = rootNode.getXmlElement();\n\t\t\n\t\trootField.setName(\"rootElement\", true);\n\t\t\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\trootNode.addChild(newNode);\n\t}", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "public String getxValueAdded() {\n String text = xValueAdded.getText();\n if(text == null) {\n return(\"numGenerations\");\n } else {\n return (text);\n }\n}", "private Node setValue(Node startNode, String value, String xql) throws TransformerException {\r\n\r\n Node targetNode = XPathAPI.selectSingleNode(startNode, xql);\r\n NodeList children = targetNode.getChildNodes();\r\n int index = 0;\r\n int length = children.getLength();\r\n\r\n // Remove all of the current contents\r\n for (index = 0; index < length; index++) {\r\n targetNode.removeChild(children.item(index));\r\n }\r\n // Add in the new value\r\n Document doc = startNode.getOwnerDocument();\r\n targetNode.appendChild(doc.createTextNode(value));\r\n return targetNode;\r\n }", "abstract protected String getOtherXml();", "public static void end() {\n Log.writeln(\"<xml-end/> <!-- Non-xml data follows ... -->\");\n }", "private static void value(ArrayList<tok> pHolder, ArrayList<tok> xmlList) {\n\t\t\r\n\t\tif(pHolder.get(index).getType() == Token_Type.TOK_APOSTROPHE){\r\n\t\t\tindex++;\r\n\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_ID){\r\n\t\t\t\tindex++;\r\n\t\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_APOSTROPHE){\r\n\t\t\t\t\tindex++;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse{noError = false;}\r\n\t\t\t}\r\n\t\t\telse{noError = false;}\r\n\t\t}\r\n\t\telse if(pHolder.get(index).getType() == Token_Type.TOK_NUM){\r\n\t\t\tindex++;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse{noError = false;}\r\n\t}", "private void rewriteXmlSource(){\n //Log.i(LOG_TAG, \"Updating radios.xml....\");\n String fileName = \"radios.xml\";\n String content = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\\n\" +\n \"<playlist>\\n\";\n\n for (Radio radio : radioList) {\n content += \"<track>\\n\";\n content += \"<location>\" + radio.getUrl() + \"</location>\\n\";\n content += \"<title>\" + radio.getName() + \"</title>\\n\";\n content += \"</track>\\n\";\n }\n content += \"</playlist>\";\n\n FileOutputStream outputStream = null;\n try {\n //Log.i(LOG_TAG,\"write new radios.xml file\");\n outputStream = owner.openFileOutput(fileName, owner.getBaseContext().MODE_PRIVATE);\n outputStream.write(content.getBytes());\n outputStream.close();\n } catch (Exception e2) {\n e2.printStackTrace();\n }\n }", "QueryElement addEmpty(String collectionProperty);", "public org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty addNewSldAll()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty)get_store().add_element_user(SLDALL$6);\n return target;\n }\n }", "@Override\n\tpublic Element toElement() {\n\t\treturn null;\n\t}", "public abstract String toXML();", "public abstract String toXML();", "public abstract String toXML();", "@Override\r\n public GenValueAppendStrategy getGenValueAppendStrategy() {\n return null;\r\n }", "public void closeElement() throws IOException {\r\n if (this.elements.size() <= 1) return;\r\n Element elt = popElement();\r\n this.depth--;\r\n // this is an empty element\r\n if (this.isNude) {\r\n writer.write('/');\r\n this.isNude = false;\r\n // the element contains text\r\n } else {\r\n if (elt.hasChildren) this.indent();\r\n this.writer.write('<');\r\n this.writer.write('/');\r\n int x = elt.qName.indexOf(' ');\r\n if (x < 0)\r\n this.writer.write(elt.qName);\r\n else\r\n this.writer.write(elt.qName.substring(0, x));\r\n }\r\n // restore previous mapping if necessary\r\n restorePrefixMapping(elt);\r\n this.writer.write('>');\r\n if (super.indent) this.writer.write('\\n');\r\n }", "org.apache.xmlbeans.XmlString xgetValue();", "public String exportXML() {\n\n\t\tXStream xstream = new XStream();\n\t\txstream.setMode(XStream.NO_REFERENCES);\n\n\t\treturn xstream.toXML(this);\n\t}", "public XMLBuilder getRoot() {\n\t\treturn xmlBody;\n\t}", "void appendXML(String path, DocumentFragment fragment)\n throws ProcessingException;", "protected void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n // Start element:\n out.writeStartElement(getXMLElementTagName());\n\n out.writeAttribute(\"id\", getId());\n out.writeAttribute(\"accelerator\", getKeyStrokeText(getAccelerator()));\n\n out.writeEndElement();\n }", "@Override\n public Event firstScan() {\n return null;\n }", "public void insertAtEnd(int val)\n\n {\n\n Node nptr = new Node(val, null, null); \n\n if(start == null)\n\n {\n\n start = nptr;\n\n end = start;\n\n }\n\n else\n\n {\n\n nptr.setLinkPrev(end);\n\n end.setLinkNext(nptr);\n\n end = nptr;\n\n }\n\n size++;\n\n }", "private void addXMLEventWriter(XMLEvent event) throws XMLStreamException {\n\n\t\tboolean in_doc_unit = cur_path.toString().contains(doc_unit_path);\n\n\t\tif (!in_doc_unit)\n\t\t\txml_writer.add(event);\n\n\t\telse if (no_document_key)\n\t\t\tinterim_events.add(event);\n\n\t\telse if (!omit_doc_unit) {\n\n\t\t\tif (interim_events.size() > 0) {\n\n\t\t\t\tinterim_events.forEach(_event -> {\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\txml_writer.add(_event);\n\n\t\t\t\t\t} catch (XMLStreamException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t\t\t\tinterim_events.clear();\n\n\t\t\t}\n\n\t\t\txml_writer.add(event);\n\n\t\t}\n\n\t}", "@Override\n public int countOut() {\n if (callCheck())\n return EMPTY_INDEX;\n int ret = last.getValue();\n last = last.getPrev();\n return ret;\n }", "public JspElement getLast() {\r\n\treturn _last;\r\n}", "public XMLBuilder(String prevContents, boolean header)\n\t{\n\t\t// Initialize our output StringBuilder\n\t\toutput = new StringBuilder();\n\n\t\t// If we have no previous contents, add a header.\n\t\t// Otherwise, add the contents and assume the header was present\n\t\tif (header && (prevContents == null || prevContents.equals(\"\")))\n\t\t\toutput.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\");\n\t\telse\n\t\t\toutput.append(prevContents);\n\t}", "@Override\r\n\tpublic XmlDataStruct getOutputStruct()\r\n\t{\n\t\treturn null;\r\n\t}", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "@Override\n public abstract void addToXmlElement(Element element);", "private void addToEmptyList(T data) {\n this.first = this.last = new Node(data);\n this.nrOfElements++;\n }", "public Object lastElement();", "public String getXML() {\n\t\treturn getXML(false);\n\t}", "StoreResponse append(CACHE_ELEMENT element);", "public eu.aladdin_project.xsd.OperationResult addNewOut()\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.xsd.OperationResult target = null;\n target = (eu.aladdin_project.xsd.OperationResult)get_store().add_element_user(OUT$0);\n return target;\n }\n }", "private Element createXmlElementForValue(Value value, Document xmlDocument, Constraint constraint) {\n\t\tif (value instanceof ScopedValue) {\n\t\t\tLogging.LOGGER.warning(\"In ValueViewer.createXmlElementForValue: value must not be a ScopedValue. Please debug.\");\n\t\t\t\n\t\t\treturn createXmlElementForValue(((ScopedValue) value).getValue(), xmlDocument, constraint);\n\t\t}\n\t\telse if (value instanceof Concat) {\n\t\t\treturn createXmlElementForConcat((Concat) value, xmlDocument, constraint);\n\t\t}\n\t\telse if (value instanceof Choice) {\n\t\t\treturn createXmlElementForChoice((Choice) value, xmlDocument, constraint);\n\t\t}\n\t\telse if (value instanceof Switch) {\n\t\t\treturn createXmlElementForSwitch((Switch) value, xmlDocument, constraint);\n\t\t}\n\t\telse if (value instanceof Undefined) {\n\t\t\treturn createXmlElementForUndefined((Undefined) value, xmlDocument, constraint);\n\t\t}\n\t\telse if (value instanceof ArrayValueImpl) {\n\t\t\treturn createXmlElementForArray((ArrayValueImpl) value, xmlDocument, constraint);\n\t\t}\n\t\telse if (value instanceof ObjectExtValue) {\n\t\t\treturn createXmlElementForObject((ObjectExtValue) value, xmlDocument, constraint);\n\t\t}\n\t\telse {\n\t\t\t//System.out.println(\"Please handle \" + value.getClass().getSimpleName());\n\t\t\tElement element = xmlDocument.createElement(XML_VALUE);\n\t\t\telement.setAttribute(XML_DESC, value.toString());\n\n\t\t\treturn element;\n\t\t}\n\t}", "public Builder clearSearchValue() {\n if (searchValueBuilder_ == null) {\n searchValue_ = null;\n onChanged();\n } else {\n searchValue_ = null;\n searchValueBuilder_ = null;\n }\n\n return this;\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.AccSearch param, boolean optimizeContent,\r\n javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.AccSearch.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "public void insertAtStart(int val)\n\n {\n\n Node nptr = new Node(val, null, null); \n\n if(start == null)\n\n {\n\n start = nptr;\n\n end = start;\n\n }\n\n else\n\n {\n\n start.setLinkPrev(nptr);\n\n nptr.setLinkNext(start);\n\n start = nptr;\n\n }\n\n size++;\n\n }", "abstract public E addEmpty();", "protected T createNewValueOnFlush() {\n \t\treturn null;\n \t}", "protected boolean isEmptyXmlTagExpanded() {\n return false;\n }", "void xsetNumberOfResults(org.apache.xmlbeans.XmlInt numberOfResults);", "protected void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n super.toXML(out, getXMLElementTagName());\n }", "public void makeEmpty() {\n root = null;\n }", "private XMLDocument endElement(String name, boolean addIndent) {\r\n String endName = startedElements.removeLast();\r\n\r\n if (name != null) {\r\n if (!endName.equals(name)) {\r\n throw new IllegalArgumentException(\"Close the element \" + endName + \" instead of \" + name);\r\n }\r\n\r\n } else {\r\n name = endName;\r\n }\r\n\r\n indent--;\r\n\r\n if (addIndent) {\r\n this.addIndent();\r\n }\r\n\r\n xml.append(\"</\").append(name).append(\">\");\r\n xml.append(\"\\n\");\r\n\r\n return this;\r\n }", "@Override\n public Object getSubElement(int index)\n {\n return null;\n }", "public void makeEmpty() {\n\t\troot = null;\n\t}", "@Override\n void endElement(String uri, String localName, String qName);", "@Override\n\tpublic String getNextSequenceValuesQuery(String sequence) {\n\t\treturn \"\";\n\t}", "@Override\r\n\t\tpublic Node getLastChild()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void makeEmpty() {\r\n\t\troot = null;\r\n\t}", "void xsetCombine(org.apache.xmlbeans.XmlInt combine);" ]
[ "0.55281717", "0.5504928", "0.5504928", "0.5155814", "0.5126222", "0.50167197", "0.5008754", "0.49861532", "0.49728525", "0.49438208", "0.49429202", "0.49402124", "0.48821527", "0.48740485", "0.4868243", "0.48611948", "0.48056212", "0.4797747", "0.47855738", "0.47786406", "0.47175524", "0.47155198", "0.46760505", "0.4650763", "0.46409348", "0.4636415", "0.46248034", "0.46150208", "0.45996982", "0.45874757", "0.45834386", "0.45820263", "0.45809305", "0.45613015", "0.45546636", "0.45445633", "0.45342058", "0.45241466", "0.4514469", "0.4508595", "0.4504656", "0.44819114", "0.44769767", "0.4471476", "0.4459363", "0.44438308", "0.4442744", "0.44409844", "0.44325104", "0.44300088", "0.4426636", "0.44230688", "0.4421196", "0.44104317", "0.44098067", "0.44042483", "0.4400151", "0.43963388", "0.43886808", "0.43856964", "0.43856964", "0.43856964", "0.43821934", "0.43803552", "0.43786523", "0.43716267", "0.4371379", "0.43621764", "0.43621114", "0.43612376", "0.43474808", "0.4340857", "0.4338046", "0.43322346", "0.4329117", "0.43272892", "0.43243936", "0.43228117", "0.4317375", "0.4308081", "0.4298654", "0.42891684", "0.42854354", "0.42809868", "0.42784178", "0.42725495", "0.4271144", "0.42707446", "0.4270356", "0.42698202", "0.4267395", "0.42649737", "0.42637908", "0.42594907", "0.42579296", "0.42568722", "0.42554632", "0.42542553", "0.4254009", "0.42523733", "0.42505184" ]
0.0
-1
Removes the ith "scans" element
void removeScans(int i);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove() {\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }", "public void remove() {\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }", "public void remove() {\n elements[index] = null;\n size--;\n next();\n }", "private final void fastRemove(final int index) {\r\n\t\tfinal int numMoved = this.size - index - 1;\r\n\t\tif (numMoved > 0) {\r\n\t\t\tSystem.arraycopy( this.elementData, index + 1, this.elementData, index, numMoved );\r\n\t\t}\r\n\t\tthis.elementData[--this.size] = null; // Let gc do its work\r\n\t}", "final void deleteFirst(int elt) {\n if (contents != null && n >= 0 && n <= contents.length){\n int[] new_contents;\n //@ loop_invariant (i <= n);\n for (int i = 0; i < n; i++) {\n if (contents[i] == elt) {\n n--;\n new_contents = new int[contents.length];\n arraycopy(contents, 0, new_contents, 0, i);\n arraycopy(contents, i+1, new_contents, i, n-i);\n contents = new_contents;\n return;\n }\n }\n }\n }", "public void removeIt() { \n\t\t\tcollection.remove(currIndex);\n\t\t\tcurrIndex--;\n\t\t}", "int remove(int idx);", "public void remove()\n {\n if( current > 0 )\n {\n set(-- current);\n }\n }", "@Override\n public Item removeFirst() {\n nextFirst = moveForward(nextFirst, 1);\n Item output = items[nextFirst];\n items[nextFirst] = null;\n size -= 1;\n return output;\n }", "final void deleteAll(int elt) {\n if (contents != null && n >= 0 && n <= contents.length){\n int n_old = n;\n //@ loop_invariant (i <= n+1);\n for (int i = 0; i < n; i++) { \n if (contents[i] == elt ) {\n if (n == 1){\n n--;\n contents = new int[contents.length];\n return;\n } else {\n n--;\n contents[i] = contents[n];\n i--;\n }\n }\n }\n if (n_old != n) {\n int[] new_contents = new int[contents.length];\n arraycopy(new_contents, 0, contents, 0, n);\n contents = new_contents;\n }\n }\n }", "private int remove(int index){\n\t\tremovedItem=heap[index];\n\t\theap[index]=INFINITE;\n\t\tshiftUp(index);\n\t\treturn extractMax();\n\t}", "void remove(int idx);", "@Override\n public int remove() {\n isEmptyList();\n int result = first.value;\n first = first.next;\n first.previous = null;\n size--;\n return result;\n }", "public E remove(int i) {\n\t /*\n\t * Add code here.\n\t * Remember to compact the array so there are no spaces in between\n\t * if an element from the middle is removed or an element at the\n\t * beginning of the array is removed.\n\t */\n\t\t if(i<=num_elements){\n\t\t\t E removed_element= elements[i];\n\t\t for(int r=i;r<num_elements;r++){\n\t\t\t elements[r] = elements[r+1];\n\t\t }\n\t\t \tnum_elements --;\n\t\t return removed_element;\n\t\t }\n\t return null;\n\t }", "public void remove(int element) {\r\n\t\tint i = find(element);\r\n\t\tlist[i] = -1;\r\n\t\tinsertionSort(list);\r\n\t\tcurrentPosition = i;\r\n\t}", "public void remove() { \n if (lastAccessed == null) throw new IllegalStateException();\n Node x = lastAccessed.previous;\n Node y = lastAccessed.next;\n x.next = y;\n y.previous = x;\n size--;\n if (current == lastAccessed) current = y;\n else index--;\n lastAccessed = null;\n }", "@Override\n\tpublic int remove(int n) {\n\t\treturn 0;\n\t}", "public void removeElementAt(int index);", "public void removeFirst() \r\n\t{\r\n\t\tint position = 1;\r\n\t\tif ( this.isEmpty() || position > numItems || position < 1 )\r\n\t\t{\r\n\t\t\tSystem.out.print(\"This delete can not be performed \"+ \"an element at position \" + position + \" does not exist \" );\r\n\t\t}\r\n\t\tfor (int i=position-1; i< numItems-1; i++)\r\n\t\t\tthis.bookArray[i] = this.bookArray[i+1];\r\n\t\t\tthis.bookArray[numItems-1] = null;\r\n\t\t\tnumItems--;\r\n\t\t\tSystem.out.println(\"DELETED first book from the Array \\n\");\r\n\t\t\r\n\t\t\treturn ;\r\n\t}", "@Override\n public void remove() {\n if(elementToRemove != null){\n if(elementToRemove == lastInternalIteratorGivenElement){\n iterator.remove();\n }\n else{\n list.remove(elementToRemove);\n }\n }\n }", "void remove(int index) {\n\t\tfor (int i = index; i < array.length - 1; i++) {\n\t\t\tarray[i] = array[i + 1];\n\t\t}\n\t\tint[] temp = new int[array.length - 1];\n\t\tfor (int i = 0; i < array.length - 1; i++) {\n\t\t\ttemp[i] = array[i];\n\t\t}\n\t\tint lastValue = array[array.length - 1];// index starts @ 0, so its the\n\t\t\t\t\t\t\t\t\t\t\t\t// array.length - 1 to account\n\t\t\t\t\t\t\t\t\t\t\t\t// for the 0\n\t\tarray = temp;\n\n\t}", "private Element removeHiElements(Element p_seg)\n {\n ArrayList elems = new ArrayList();\n\n findHiElements(elems, p_seg);\n\n for (int i = 0; i < elems.size(); i++)\n {\n Element hi = (Element)elems.get(i);\n\n removeHiElement(hi);\n }\n\n return p_seg;\n }", "public void removefirst()\r\n {\r\n Item item = pre.item;\r\n pre = pre.next;\r\n n--;\r\n }", "Object removeFirst();", "private T unlinkFirst(final int idx) {\r\n\t\tfinal T element = serializer.getRandomAccess(idx);\r\n\t\tfinal int next = getNextPointer(idx);\r\n\t\tfirst = next;\r\n\t\tif (next == -1) {\r\n\t\t\tlast = -1;\r\n\t\t} else {\r\n\t\t\tsetPrevPointer(next, -1);\r\n\t\t}\r\n\t\tdeleteElement(idx);\r\n\t\tsize--;\r\n\t\tmodCount++;\r\n\t\treturn element;\r\n\t}", "void removeBridgeElement(int i);", "public void remove() {\n\t\t if (lastReturned == null)\n\t\t throw new IllegalStateException(\n\t\t \"Iterator call to next() \" +\n\t\t \"required before calling remove()\");\n\t\t\tif (modCount != expectedModCount)\n\t\t\t\t throw new ConcurrentModificationException();\n\n\t\t\t// remove lastReturned by calling remove() in Hash.\n\t\t\t// this call will increment modCount\n\t\t\tHashAVL.this.remove(lastReturned);\n\t\t\texpectedModCount = modCount;\n\t\t\tlastReturned = null;\n\t\t}", "public Message remove() \n { \n Message r = elements[head]; \n head = (head + 1) % elements.length; \n count--; \n return r; \n }", "public void remove( int index ) {\n\tif (index > _lastPos)\n\t System.out.println(\"No meaningful value at index\");\n\telse {for (int i= index; i < _lastPos; i++){\n\t\t_data[i]= _data[i+1];\n\t }\n\t _size--;\n\t _lastPos--;\n\t}\n }", "public long remove(){\n\t\t\r\n\t\t\tlong temp = queueArray[front]; //retrieves and stores the front element\r\n\t\t\tfront++;\r\n\t\t\tif(front == maxSize){ //To set front = 0 and use it again\r\n\t\t\t\tfront = 0;\r\n\t\t\t}\r\n\t\t\tnItems--;\r\n\t\t\treturn temp;\r\n\t\t}", "void removeStar(int i);", "public void remove(int num) {\n // find the index of num\n for (int i = 0; i < count; i++) {\n if (list[i] == num) {\n // shift the elements leftward and decrement count\n for (int j = 0; j < count - 1; j++) {\n list[i+j] = list[i+j+1];\n }\n count--;\n return;\n }\n }\n }", "protected int removeFirst() throws Exception {\n if (size > 0) {\n int temp = heap[1];\n heap[1] = heap[size];\n heap[size] = 0;\n size--;\n return temp;\n } else {\n throw new Exception(\"No Item in the heap\");\n }\n }", "void remove( int index );", "public static void remove1() {\n\t\tSystem.out.println(\">>>>>>>>>>>>\");\n\t\tArrayList<Integer> class0 = new ArrayList<Integer>();\n\t\tclass0.add(1);\n\t\tclass0.add(2);\n class0.add(3);\n class0.add(4);\n class0.add(5);\n\t\tassert (class0.contains(1) == true);\n\t\tassert (class0.contains(2) == true);\n assert (class0.contains(3) == true);\n assert (class0.contains(4) == true);\n assert (class0.contains(5) == true);\n\t\tfor(int i = 0; i < class0.size(); i++) {\n\t\t\tint temp = (int)class0.get(i);\n\t\t\tSystem.out.println(temp + \" \");\n\t\t}\n\t\t\n\t\tclass0.remove(2);\n\t\tassert (class0.contains(1) == true);\n\t\tassert (class0.contains(2) == true);\n assert (class0.contains(3) == false);\n assert (class0.contains(4) == true);\n assert (class0.contains(5) == true);\n\t\tfor(int i = 0; i < class0.size(); i++) {\n\t\t\tint temp = (int)class0.get(i);\n\t\t\tSystem.out.println(temp + \" \");\n\t\t}\n\t\tret0 = class0;\n\t}", "void remove(int index);", "void remove(int index);", "void remove(int index);", "void remove(int index);", "@Override\r\n\tpublic void removeToIndex(int index) {\n\t}", "@Override\n public E removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n E value = dequeue[head];\n dequeue[head] = null;\n head = ++head % dequeue.length;\n size--;\n if (size < dequeue.length / 2) {\n reduce();\n }\n return value;\n }", "E remove(int i) throws IndexOutOfBoundsException;", "E remove(int i ) throws IndexOutOfBoundsException;", "public void clear(long index);", "private void removeTailElement(){\n JavaBaseTask removed = items.remove(tail.getKey());\n System.out.println(\"element with index : \" + removed.getKey() + \"has been deleted doe to cache eviction\");\n tail = tail.previous;\n var headAu = head;\n while (headAu.next != null){\n headAu = headAu.next;\n }\n headAu = headAu.previous;\n headAu.next = null;\n }", "@Override\n public E remove(int index) {\n\t E first = _store[index];\n\t _store[index] = null;\n\t for( int i = index; i< _size-1;i++) {\n\t\t _store[i]=_store[i+1];\n\t }\n\t_store[_size-1]=null;\n\t _size -=1;\n\t \n\t\t \n\treturn first;\n }", "public void remove(int index);", "public void removeAt(int iterator) {\n int block = iterator / (len << 1);\n if (block >= numberOfBlocks || iterator >= endOfBlock[block]) throw new ArrayIndexOutOfBoundsException(\"Try to remove by incorrect iterator\");\n if (iterator == (len * (block) << 1)) dataInBegin[block] = data[iterator + 1];\n for (int l = iterator; l < endOfBlock[block] - 1; l++) {\n data[l] = data[l + 1];\n }\n endOfBlock[block]--;\n size--;\n if (endOfBlock[block] <= (len * block << 1)) {\n rebuildSqrt();\n }\n }", "private void deleteElement(final int idx) {\r\n\t\tserializer.setRandomAccess(idx, null);\r\n\t\tif (idx < firstFree) {\r\n\t\t\tsetNextPointer(idx, firstFree);\r\n\t\t\tsetPrevPointer(idx, 0);\r\n\t\t\tfirstFree = idx;\r\n\t\t} else {\r\n\t\t\tint free = firstFree;\r\n\t\t\tint lastFree = 0;\r\n\t\t\twhile (free < idx) {\r\n\t\t\t\tlastFree = free;\r\n\t\t\t\tfree = getNextPointer(free);\r\n\t\t\t}\r\n\t\t\tsetNextPointer(lastFree, idx);\r\n\t\t\tsetNextPointer(idx, free);\r\n\t\t}\r\n\t}", "public void remove(int index) {\n\t\t\tcheckIndex(index);\n\t\t\tfor(int i = index; i < size - 1; i++) {\n\t\t\t\telementData[i] = elementData[i + 1];\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic Score remove(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\tScore a = scoreList[i];\r\n\t\tfor (int j = i; j < numItems - 1; j++) {\r\n\t\t\tscoreList[j] = scoreList[j + 1];\r\n\t\t}\r\n\t\tnumItems--;\r\n\t\treturn a;\r\n\t}", "protected void removeDuplicates() {\n log.trace(\"Removing duplicated\");\n long startTime = System.currentTimeMillis();\n int initial = size();\n E last = null;\n int index = 0;\n while (index < size()) {\n E current = get(index);\n if (last != null && last.equals(current)) {\n if (log.isTraceEnabled()) {\n log.trace(\"Removing duplicate '\" + current + \"'\");\n }\n remove(index);\n } else {\n index++;\n }\n last = current;\n }\n log.debug(String.format(\"Removed %d duplicates from a total of %d values in %dms\",\n initial - size(), initial, System.currentTimeMillis() - startTime));\n }", "@Override\n public E remove(int i) throws IndexOutOfBoundsException {\n checkIndex(i, size);\n E temp = data[i];\n for (int k = i; k < size - 1; k++) // shift element to fill hole\n data[k] = data[k + 1];\n data[size - 1] = null; // help garbage collection\n size--;\n return temp;\n }", "@Override\n // average-case complexity: O(n), since it always needs to shift n-amount\n // of element, where n is propotional to the list/input size\n public void remove(int index) {\n if (arr.length * SHRINK_THRESHOLD > size)\n arr = resize(arr, SHRINK_FACTOR);\n \n // remove the item at the specified index and shift everything right of\n // the given index 1 step to the left\n for (int i = index; i < size-1; i++) {\n arr[i] = arr[i+1];\n }\n // remove the previous last item and then decrement the size\n arr[--size] = null;\n }", "public int removeMin() \n {\n\t//error\n\tif ( queue.isEmpty() ) {//nothing to remove\n\t System.out.println( \"Error! Nothing to remove!\" );\n\t throw new NoSuchElementException();\n\t}\n\n\tint ret = (int) queue.get(0);\n\tqueue.remove(0);\n\treturn ret; \n }", "public T remove(int idx) {\n\t\tint index = (idx << 1);\n\t\tnvPairs.remove(index);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tT result = (T) nvPairs.remove(index); // same index, as things shifted in previous remove\n\t\treturn result;\n\t}", "void remove(int v){\n if(isEmpty()!=1){\n for(int i=0;i<size;i++){\n if(values[i]==v){\n int j = i;\n while((j+1)!=size){\n values[j] = values[j+1];\n j++;\n\n }\n values[j] = (-1);\n break;\n }\n }\n }\n }", "public Type remove(int index);", "void removeAt(final int removeIndex) {\n final Object[] items = this.items;\n if (removeIndex == takeIndex) {\n items[takeIndex] = null;\n if (++takeIndex == items.length) takeIndex = 0;\n count--;\n } else {\n final int putIndex = this.putIndex;\n for (int i = removeIndex;;) {\n int next = i + 1;\n if (next == items.length) next = 0;\n if (next != putIndex) {\n items[i] = items[next];\n i = next;\n } else {\n items[i] = null;\n this.putIndex = i;\n break;\n }\n }\n count--;\n }\n notFull.signal();\n }", "@Override\n public int remove(int index) {\n checkIndex(index);\n Entry tmp = getEntry(index);\n int result = tmp.value;\n tmp.previous.next = tmp.next;\n tmp.next.previous = tmp.previous;\n size--;\n return result;\n }", "private void deleteElement(int index) {\n Object[] first = new Object[index];\n System.arraycopy(this.container, 0, first, 0, index);\n\n Object[] second = new Object[this.container.length - index - 1];\n System.arraycopy(this.container, index + 1, second, 0, second.length);\n\n this.container = new Object[this.container.length];\n System.arraycopy(first, 0, this.container, 0, first.length);\n System.arraycopy(second, 0, this.container, index, second.length);\n\n this.position--;\n }", "public U remove(int idx){\r\n\t \tif ((idx < 0)|| (idx > numElems-1))\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \tint i = idx;\r\n\t \t@SuppressWarnings(\"unchecked\")\r\n\t\t\tU data = (U) array[i];\r\n\t \t//Same shift algorithm as other remove method\r\n\t \twhile(i<numElems-1){\r\n\t \t\tarray[i]= array[i+1];\r\n\t \t\ti++;\r\n\t \t}\r\n\t \t//Not sure if needed: set last element to null after shift\r\n\t \tarray[numElems-1] = null;\r\n\t \tnumElems--;\r\n\t \treturn data;\r\n\t }", "protected void removeByIndex(int index) {\n int h = head;\n int t = tail;\n size = size - 1;\n int present = dequeue.length - 1;\n int offset = (index - h) & present;\n int finish = (tail - index) & present;\n\n if (offset < finish) {\n if (h <= index) {\n System.arraycopy(dequeue, h, dequeue, h + 1, offset);\n } else {\n System.arraycopy(dequeue, 0, dequeue, 1, index);\n dequeue[0] = dequeue[present];\n System.arraycopy(dequeue, h, dequeue, h + 1, present - h);\n }\n dequeue[h] = null;\n head = (h + 1) & present;\n } else {\n if (index < t) {\n System.arraycopy(dequeue, index + 1, dequeue, index, finish);\n tail = t - 1;\n } else {\n System.arraycopy(dequeue, index + 1, dequeue, index, present - index);\n dequeue[present] = dequeue[0];\n System.arraycopy(dequeue, 1, dequeue, 0, t);\n tail = (t - 1) & present;\n }\n }\n }", "public int remove() {\n return priorityQueue[--counter];\n }", "T remove(int index);", "T remove(int index);", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n//\t\t\t\tif (i == begin || removed)\n//\t\t\t\t\tthrow new IllegalStateException();\n//\t\t\t\telements.set(i-1, null);\n//\t\t\t\tremoved = true;\n\t\t\t}", "@Override\n public E remove() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n size--;\n array[0] = swap(array[size], array[size] = array[0]);\n siftDown(0);\n return (E) array[size];\n }", "@Override\n public T removeFirst() {\n if (size == 0) {\n return null;\n }\n\n int position = plusOne(nextFirst);\n T itemToReturn = array[position];\n array[position] = null;\n nextFirst = position;\n size -= 1;\n\n if ((double)size / array.length < 0.25 && array.length >= 16) {\n resize(array.length / 2);\n }\n return itemToReturn;\n }", "public static void removeItem() {\n removeItem();\n scanner scan; \n scan = new Scanner(System.in);\n while(true){\n System.out.print(\"Enter the Index you'd like to remove:\");\n if (scan.hasNextInt()){\n int idx=scan.nextInt();\n ArrayList.remove(idx);\n }\n }\n \n\t}", "public void removeIndex(int i) {\n // YOUR CODE HERE\n }", "void removeDebts(int i);", "private static void remove(int[]data,int size){\n int temp = data[0];\n data[0] = data[size-1];\n data[size-1] = temp;\n pushDown(data, size-1, 0);\n }", "public void remove()\n {\n list.remove(cursor);\n cursor--;\n }", "@Test\r\n\tpublic void testRemoveByIndex() {\r\n\t\tAssert.assertNull(list.remove(100));\r\n\t\tAssert.assertTrue(list.get(5).equals(list.remove(5)));\r\n\t\tAssert.assertEquals(14, list.size());\r\n\t}", "@Override\n public E remove(int i) throws IndexOutOfBoundsException {\n Object element = get(i);\n size--;\n\n if (size == 0) {\n storage = null;\n } else if (size < 5) {\n for (int cnt = i; cnt < size; cnt++) {\n ((E[]) storage)[cnt] = ((E[]) storage)[cnt + 1];\n }\n\n if (size == 1) {\n storage = ((E[]) storage)[0];\n }\n } else {\n ((ArrayList<E>) storage).remove(i);\n\n if (size == 5) {\n storage = ((ArrayList<E>) storage).toArray();\n }\n }\n\n return (E) element;\n }", "public E remove(int index)\n {\n if (index >= 0 && index < size) {\n E temp = data[index]; // element to return\n\n // shift all elements to the right down by 1 index\n for (int i = index; i < size - 1; i++)\n data[i] = data[i+1];\n \n size--;\n return temp;\n } else\n throw new NoSuchElementException();\n }", "final IntHashMapEntry removeEntry(int par1)\n {\n int j = computeHash(par1);\n int k = getSlotIndex(j, this.slots.length);\n IntHashMapEntry inthashmapentry = this.slots[k];\n IntHashMapEntry inthashmapentry1;\n IntHashMapEntry inthashmapentry2;\n\n for (inthashmapentry1 = inthashmapentry; inthashmapentry1 != null; inthashmapentry1 = inthashmapentry2)\n {\n inthashmapentry2 = inthashmapentry1.nextEntry;\n\n if (inthashmapentry1.hashEntry == par1)\n {\n ++this.versionStamp;\n --this.count;\n\n if (inthashmapentry == inthashmapentry1)\n {\n this.slots[k] = inthashmapentry2;\n }\n else\n {\n inthashmapentry.nextEntry = inthashmapentry2;\n }\n\n return inthashmapentry1;\n }\n\n inthashmapentry = inthashmapentry1;\n }\n\n return inthashmapentry1;\n }", "private E remove(){\n E tmp = array[0];\n swap(0,--lastPosition);\n array[lastPosition] = null;\n trickleDown(0);\n array = Arrays.copyOfRange(array,0,array.length);\n return tmp;\n }", "public E removeFirst() {\n\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\n\t\tE retVal = remove(mHead.next);\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "public T removeFirst() {\n if (size == 0) {\n return null;\n }\n nextFirst = plusOne(nextFirst);\n size -= 1;\n T toRemove = items[nextFirst];\n items[nextFirst] = null;\n if (isSparse()) {\n resize(capacity / 2);\n }\n return toRemove;\n }", "public E removeFirst();", "public void remove() {\n\t\tprocess temp = queue.removeFirst();\n\t}", "public void remove(int n) { // not being used\n\t\tcollection.remove(n); \n\t}", "public void clear(){\r\n\t\tbeginMarker.next = endMarker;\r\n\t\tendMarker.prev = beginMarker;\r\n\t\tnumAdded=0;\r\n\t\tsize=0;\r\n \tmodCount++;\r\n\t}", "@Test\n public void testRemove_Contains_First_Ocurrence_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(3);\n\n instance.remove(new Integer(3));\n\n int expResult = 2;\n int result = instance.get(0);\n assertEquals(expResult, result);\n }", "public void remove(){\n\t\tqueueArray[1][0] = null;\n\t\tqueueArray[1][1] = null;\n\t}", "private static int[] removeElement(int[] a, int i) {\n\t\tint[] b = new int[a.length-1];\n\t\tint k = 0;\n\t\tfor (int j = 0; j < a.length; j++) {\n\t\t\tif (j != i) {\n\t\t\t\tb[k++] = a[j];\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}", "@Override // com.google.android.gms.internal.firebase_ml.zzsq, java.util.List, java.util.AbstractList\n public final /* synthetic */ Long remove(int i) {\n zzpu();\n zzci(i);\n long[] jArr = this.zzbqi;\n long j = jArr[i];\n int i2 = this.size;\n if (i < i2 - 1) {\n System.arraycopy(jArr, i + 1, jArr, i, (i2 - i) - 1);\n }\n this.size--;\n ((AbstractList) this).modCount++;\n return Long.valueOf(j);\n }", "public Object remove (int i)\r\n {\r\n }", "private void removeMine(int i, int j) {\n current[i][j] = new Empty();\n for (int k = -1; k <= 1; k++) {\n for (int l = -1; l <= 1; l++) {\n //pas de omliggende vlaggetjes aan\n if ((k != 0 || l != 0) && inField(i + k, j + l) && current[i + k][j + l].isBound()) {\n current[i + k][j + l].increment();\n }\n }\n }\n }", "public E remove () throws NoSuchElementException;", "@Override\n public E remove() {\n if (size == 0){\n throw new NoSuchElementException();\n }\n E removed = heap[0];\n heap[0] = heap[--size];\n siftDown(0);\n return removed;\n }", "@Override\r\n public CustomProcess removeBest() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException(\"queue is empty, cannot remove from empty queue\");\r\n }\r\n CustomProcess best = data[0]; // process to be removed\r\n data[0] = data[size - 1];\r\n data[size - 1] = null;\r\n minHeapPercolateDown(0); // Percolate down on first index\r\n size--;\r\n return best;\r\n }", "@Override\n public E remove(int index) {\n // todo: Students must code\n int pos = calculate(index);\n\n E temp = data[pos];\n data[pos] = null;\n if(pos == head)\n head = (head+1) % data.length;\n else if(pos == tail)\n tail = (tail-1) % data.length;\n else {\n // shift all array contents after pos left 1\n for(int i = pos; i < (pos + curSize-index-1); i++)\n data[calculate(i)] = data[calculate(i+1)];\n tail = (tail-1) % data.length;\n }\n curSize--;\n return temp;\n }", "public E remove() {\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\n\t\tE retVal = remove(mHead.next);\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "public void remove() {\n\t\t\tif (mIterModCount != modCount) {\n\t\t\t\tSystem.out.println( mIterModCount + \" : \" + modCount);\n\t\t\t\tthrow new ConcurrentModificationException();\n\t\t\t}\n\t\t\tif (mLastNodeReturned == null)\n\t\t\t\tthrow new IllegalStateException();\n\t\t\tLinkedList.this.remove(mLastNodeReturned);\n\t\t\tif (mLastIteration == NEXT)\n\t\t\t\tmCurrentIndex--;\n\t\t\tmSize--;\n\t\t\tmIterModCount++;\n\t\t\tmodCount++;\n\t\t\tmLastNodeReturned = null;\n\t\t}", "public RNode deleteFirstOccurrence(int item) {\n\tif (item == datum() ) return next;\n\telse {\n\t if (next != null) next = next.deleteFirstOccurrence(item);\n\t return this;\n\t}\n }", "@Override\n public synchronized E remove(int index) {\n E result = this.get(index);\n if (index < this.size() - 1) {\n System.arraycopy(this.container, index + 1, this.container, index, this.size() - (index + 1));\n }\n this.container[--this.pointer] = null;\n return result;\n }", "@Override\n\tpublic void clear() {\n\t\tthis.first=null;\n\t\tthis.last=null;\n\t\tthis.size=0;\n\t\tthis.modificationCount++;\n\t}" ]
[ "0.65864784", "0.65864784", "0.64494574", "0.642249", "0.63887674", "0.6177828", "0.6154316", "0.61312455", "0.61181825", "0.61136806", "0.6051919", "0.60339874", "0.6029955", "0.6018364", "0.60067326", "0.59983414", "0.599637", "0.59876037", "0.5986648", "0.5985148", "0.5959564", "0.59548104", "0.5952918", "0.59458166", "0.5929624", "0.5927751", "0.59181327", "0.5912192", "0.589007", "0.5885216", "0.5866282", "0.5862619", "0.58619887", "0.5849524", "0.5834415", "0.58311665", "0.58311665", "0.58311665", "0.58311665", "0.5829781", "0.582229", "0.57905304", "0.5787545", "0.57861096", "0.57847524", "0.577943", "0.57673794", "0.57659775", "0.57535267", "0.57512754", "0.57390666", "0.57228595", "0.5709404", "0.57084143", "0.5708197", "0.5704975", "0.5702152", "0.56988806", "0.5696504", "0.56945544", "0.56918955", "0.5691718", "0.56899107", "0.56880164", "0.567384", "0.567384", "0.56699413", "0.56662935", "0.56595486", "0.5649832", "0.56492597", "0.5648433", "0.5640687", "0.563826", "0.5633244", "0.56331426", "0.5632139", "0.56294847", "0.56269467", "0.5625098", "0.5615563", "0.56150216", "0.56135076", "0.5612356", "0.56071717", "0.5605596", "0.56046754", "0.5602132", "0.5601607", "0.5598913", "0.5598586", "0.559545", "0.5586069", "0.5584549", "0.558395", "0.5570946", "0.5569924", "0.5562423", "0.55602837", "0.554947" ]
0.7267123
0
Gets the "tag" element
java.lang.String getTag();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getTag();", "public String getFromTag();", "public String getTag();", "public String tag()\r\n {\r\n return this.tag;\r\n }", "public String getTag()\n\t{\n\t\treturn tag;\n\t}", "public String getTag()\n\t{\n\t\treturn tag;\n\t}", "public String getTag()\n {\n return this.tag;\n }", "public String getTag() {\n return tag;\n }", "public String getTag() {\n return tag;\n }", "public String getTag() {\n\t\treturn tag;\n\t}", "public String getTag() {\r\n return tag;\r\n }", "public String getTag() {\n return this.tag;\n }", "public String getTag() {\n return tag;\n }", "public Object getTag(String tagName);", "public abstract String getTag();", "public String getTag() {\r\n return new String(XML_TAG);\r\n }", "public String getTag() {\n return new String(XML_TAG);\n }", "public GTag getTag() {\r\n\t\treturn tag;\r\n\t}", "String getTag() {\n return tag;\n }", "public String getTag(String tagName){\r\n \t\tfor (Enumeration<Tag> temp = tags.elements(); temp.hasMoreElements();){\r\n \t\t\tTag current = temp.nextElement();\r\n \t\t\tif(current.getName() == tagName){\r\n \t\t\t\treturn current.insertTag();\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\t\r\n \t}", "org.apache.xmlbeans.XmlString xgetTag();", "public String tagAsString();", "@Override\n public int getTag() {\n return this.tag;\n }", "Tag getInternal();", "public int getTag() {\n return tag;\n }", "public String getTagName() {\n return this.tagName;\n }", "public String getTagName() {\n return \"element\";\n }", "public String getTagName() {\n return this.tagName;\n }", "public static __Tag getTagSub(String tag) {\n\t return map.get(tag);\n\t}", "public static __Tag getTagSub(String tag) {\n\t return map.get(tag);\n\t}", "public String getTag() {\n\t\treturn mStag;\n\t}", "public String getTAG() {\r\n return TAG;\r\n }", "public String getTag() {\n return tagNum;\n }", "@Override\n\tpublic Tag getTag() {\n\t\treturn null;\n\t}", "@Override\n public String getTag() {\n return this.reference;\n }", "public java.lang.String getTag() {\n java.lang.Object ref = tag_;\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 tag_ = s;\n return s;\n }\n }", "public int tag () { return MyTag; }", "public String eTag() {\n return this.eTag;\n }", "public String getStandardTag();", "public String getTagName() {\n return TAG_NAME;\n }", "Element getGenericElement();", "public int getMyTag()\n\t{\n\t\treturn myTag;\n\t}", "public java.lang.String getTag() {\n java.lang.Object ref = tag_;\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 tag_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getTagName() \n {\n return _node == null ? null : _node.getName().getLocalPart();\n }", "public String getTagName() {\n return tagName;\n }", "public String getTagName() {\n return tagName;\n }", "public final native java.lang.String getTagName() /*-{\n return this.tagName;\n }-*/;", "String getElement();", "@Override\r\n\tpublic String getTagName() {\n\t\treturn tagName;\r\n\t}", "int getTagClass();", "public String getTagname() {\n return tagname;\n }", "public List<Tag> getTag()\n\t{\n\t\treturn (List<Tag>) this.getKeyValue(\"Tag\");\n\n\t}", "public String getTagVal() {\n return tagVal;\n }", "public String getTagName() {\r\n\t\treturn tagName;\r\n\t}", "java.lang.String getTagValue();", "public String getElement() { return element; }", "public String getTagName() {\n\t\treturn tagName;\n\t}", "public Element getElementByTagName(String tagName) {\r\n\t\tNodeList list = doc.getElementsByTagName(tagName);\t\t\r\n\t\tElement element = (Element)list.item(0);\t\t\r\n\t\t\r\n\t\treturn element;\r\n\t}", "@Override\n\tpublic String getTagName() {\n\t\treturn null;\n\t}", "public static String xmlTag() { return XMLTAG; }", "public static String xmlTag() { return XMLTAG; }", "public static String getXmltag() {\r\n\t\treturn xmltag;\r\n\t}", "Element getElement();", "private Node getTagFromEntry(Node entryElem, String tagName) {\n\n\t\tString entryElemName = entryElem.getNodeName();\n\t\tif (ENTRY.equals(entryElemName)) {\n\t\t\tNode firstChild = entryElem.getFirstChild();\n\t\t\tif (LOCAL_VARIABLE_NAME.equals(firstChild.getNodeName())) {\n\t\t\t\tNodeList nodeList = ((Element) firstChild.getNextSibling()).getElementsByTagName(tagName);\n\t\t\t\tif (nodeList != null && nodeList.getLength() > 0) {\n\t\t\t\t\treturn nodeList.item(0);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tNodeList nodeList = ((Element) firstChild).getElementsByTagName(tagName);\n\t\t\t\tif (nodeList != null && nodeList.getLength() > 0) {\n\t\t\t\t\treturn nodeList.item(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "String getElem();", "public String getToTag();", "public int getTag()\n {\n return this.m_descriptor[0] & 0xFF;\n }", "int getTagNo();", "public String getTag() {\n if (mTag == null) {\n try {\n mTag = mSessionBinder.getTag();\n } catch (RemoteException e) {\n Log.d(TAG, \"Dead object in getTag.\", e);\n }\n }\n return mTag;\n }", "ITagView getTagView();", "public Object getTag(String name)\r\n\t{\r\n\t\treturn tagMap.get(name);\r\n\t}", "public final String getTagName() {\n return getNodeName();\n }", "public String getCurrentTagName() throws ParseException {\n return findCurrentTag(html, position);\n }", "public com.google.protobuf.ByteString\n getTagBytes() {\n java.lang.Object ref = tag_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n tag_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n\tpublic Tag getTag(String tagId) throws Exception {\n\t\treturn null;\n\t}", "public java.lang.String getIdTag()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDTAG$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public Node get(String tag)\n {\n if(_list!=null)\n {\n for(int i=0;i<_list.size();i++)\n {\n Object o=_list.get(i);\n if(o instanceof Node)\n {\n Node n=(Node)o;\n if(tag.equals(n._tag))\n return n;\n }\n }\n }\n return null;\n }", "public TagInfo getTag(String shortname) {\n/* 190 */ TagInfo[] tags = getTags();\n/* */ \n/* 192 */ if (tags == null || tags.length == 0) {\n/* 193 */ return null;\n/* */ }\n/* */ \n/* 196 */ for (int i = 0; i < tags.length; i++) {\n/* 197 */ if (tags[i].getTagName().equals(shortname)) {\n/* 198 */ return tags[i];\n/* */ }\n/* */ } \n/* 201 */ return null;\n/* */ }", "@Override\r\n public String getXMLTag() {\r\n return XMLTAG;\r\n }", "@Override\n public String getXMLTag() {\n return XMLTAG;\n }", "private String getTagName(final Node tag) {\n if (tag != null) {\n if (tag.isElement()) {\n return \"<\" + tag.element + \">\";\n }\n else if (tag.type == NodeType.EndTag) {\n return \"</\" + tag.element + \">\";\n }\n else if (tag.type == NodeType.DocTypeTag) {\n return \"<!DOCTYPE>\";\n }\n else if (tag.type == NodeType.TextNode) {\n return \"plain text\";\n }\n else if (tag.type == NodeType.XmlDecl) {\n return \"XML declaration\";\n }\n else if (tag.element != null) {\n return tag.element;\n }\n }\n return \"\";\n }", "public String getItTag() {\n return itTag;\n }", "private Token getTagElement() {\n skipBlankSpaces();\n char currChar = this.data[currentIndex];\n\n if (Character.isDigit(currChar) || (currChar == '-' && Character.isDigit(this.data[currentIndex + 1]))) {\n return getNextNumber();\n } else if (Character.isLetter(currChar)) {\n return getNextVariableName();\n } else if (currChar == '\\\"') {\n return getNextString();\n } else if (currChar == '@') {\n return getNextFunctionName();\n } else if (currChar == '$') {\n if (this.data[currentIndex + 1] == '}') {\n currentIndex += 2;\n this.state = LexerState.TEXT;\n return new Token(TokenType.CLOSE_TAG, \"$}\");\n } else {\n throw new LexerException(\"Expected }, but didn't find it.\");\n }\n } else {\n return getNextOperator();\n }\n }", "public String getTagKey() {\n return tagKey;\n }", "public com.google.protobuf.ByteString\n getTagBytes() {\n java.lang.Object ref = tag_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n tag_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@AutoEscape\n\tpublic String getTagProperty();", "public static String getTag(String name) {\n\t\treturn tags.get(name);\n\t}", "public int getTagNumber() {\n return tagNumber;\n }", "public static String getXMLElementTagName() {\n return \"aiMain\";\n }", "public String getTagId() {\n return tagId;\n }", "com.google.protobuf.ByteString\n getTagBytes();", "public Tag get(String key) {\n \t\tfor (int i = 0; i < numTags; i++) {\n \t\t\tif (tags[i].key == key)\n \t\t\t\treturn tags[i];\n \t\t}\n \t\treturn null;\n \t}", "public E getElement() { return element; }", "UmlElement getUmlElement();", "TextView getTagView();", "protected Element el(String tag){\n\t\treturn doc.createElement(tag);\n\t}", "private static String getTagElem(final String fullTag) {\r\n final int index = fullTag.indexOf(\",\");\r\n\r\n if (index == -1) {\r\n return null;\r\n }\r\n\r\n return fullTag.substring(index + 1);\r\n }", "public Object getElement();", "private String getTextFromTagName(Element element, String tagName) {\n NodeList elements = element.getElementsByTagName(tagName);\n Node node = elements.item(0);\n return node.getTextContent();\n }" ]
[ "0.7965746", "0.7898023", "0.7844368", "0.7607536", "0.75882345", "0.75882345", "0.75525224", "0.75385344", "0.75385344", "0.7503697", "0.750207", "0.7495144", "0.7478381", "0.7475448", "0.735612", "0.7334505", "0.7282278", "0.7247922", "0.72359276", "0.7212027", "0.7131554", "0.71082777", "0.7092143", "0.7071371", "0.7064673", "0.7053429", "0.70343506", "0.7022778", "0.7019025", "0.7019025", "0.69639355", "0.69362557", "0.6881227", "0.6839579", "0.6802996", "0.67984974", "0.6789145", "0.67853504", "0.67445517", "0.67425084", "0.67228264", "0.67018795", "0.6699299", "0.6666552", "0.6661007", "0.6661007", "0.6649211", "0.66409445", "0.6624563", "0.6572183", "0.65627354", "0.65485793", "0.652845", "0.65083504", "0.649796", "0.649639", "0.64812714", "0.64794385", "0.6455802", "0.64519596", "0.64519596", "0.64511895", "0.64422303", "0.6440648", "0.64404505", "0.64332604", "0.64191437", "0.6418997", "0.6412682", "0.6398836", "0.638146", "0.6368109", "0.635977", "0.6342584", "0.6331527", "0.63311213", "0.63206273", "0.63166827", "0.6307245", "0.629306", "0.62882864", "0.6263431", "0.6260667", "0.62436986", "0.6238285", "0.6234311", "0.6224728", "0.62133783", "0.6209113", "0.62086076", "0.61981", "0.61735713", "0.61715", "0.6162876", "0.61617905", "0.6140949", "0.61336935", "0.61332446", "0.61324507" ]
0.83700645
1
Gets (as xml) the "tag" element
org.apache.xmlbeans.XmlString xgetTag();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTag() {\r\n return new String(XML_TAG);\r\n }", "public String getTag() {\n return new String(XML_TAG);\n }", "public static String xmlTag() { return XMLTAG; }", "public static String xmlTag() { return XMLTAG; }", "public static String getXmltag() {\r\n\t\treturn xmltag;\r\n\t}", "@Override\n public String getXMLTag() {\n return XMLTAG;\n }", "java.lang.String getTag();", "java.lang.String getTag();", "@Override\r\n public String getXMLTag() {\r\n return XMLTAG;\r\n }", "public String tagAsString();", "public String toXMLTag() {\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\ttoXMLTag(buffer,0);\n\t\treturn buffer.toString();\n\t}", "String getTag();", "public String getFromTag();", "public String getTag();", "public String tag()\r\n {\r\n return this.tag;\r\n }", "public java.lang.String getXml();", "public String getTag()\n\t{\n\t\treturn tag;\n\t}", "public String getTag()\n\t{\n\t\treturn tag;\n\t}", "public String getTagName() {\n return \"element\";\n }", "public String getTag() {\n\t\treturn tag;\n\t}", "public String getTag() {\n return tag;\n }", "public String getTag() {\n return tag;\n }", "public String getTag() {\r\n return tag;\r\n }", "public String getTag() {\n return tag;\n }", "public String getTag()\n {\n return this.tag;\n }", "public String getTag() {\n return this.tag;\n }", "public static String getXMLElementTagName() {\n return \"aiMain\";\n }", "public abstract String getTag();", "private String getTagName(final Node tag) {\n if (tag != null) {\n if (tag.isElement()) {\n return \"<\" + tag.element + \">\";\n }\n else if (tag.type == NodeType.EndTag) {\n return \"</\" + tag.element + \">\";\n }\n else if (tag.type == NodeType.DocTypeTag) {\n return \"<!DOCTYPE>\";\n }\n else if (tag.type == NodeType.TextNode) {\n return \"plain text\";\n }\n else if (tag.type == NodeType.XmlDecl) {\n return \"XML declaration\";\n }\n else if (tag.element != null) {\n return tag.element;\n }\n }\n return \"\";\n }", "public static String getXMLElementTagName() {\n return \"diplomaticTrade\";\n }", "String getTag() {\n return tag;\n }", "protected Element el(String tag){\n\t\treturn doc.createElement(tag);\n\t}", "public String getTagName() {\n return this.tagName;\n }", "public String getTagName() {\n return this.tagName;\n }", "public Object getTag(String tagName);", "public String getToTag();", "public String getXML() {\n\t\treturn getXML(false);\n\t}", "public Element get_xml_info() {\n\t\treturn _xml_info;\n\t}", "public String getTag() {\n\t\treturn mStag;\n\t}", "public static String getXMLElementTagName() {\n return \"pioneeringMission\";\n }", "public GTag getTag() {\r\n\t\treturn tag;\r\n\t}", "public String getStandardTag();", "public String getTag(String tagName){\r\n \t\tfor (Enumeration<Tag> temp = tags.elements(); temp.hasMoreElements();){\r\n \t\t\tTag current = temp.nextElement();\r\n \t\t\tif(current.getName() == tagName){\r\n \t\t\t\treturn current.insertTag();\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\t\r\n \t}", "public java.lang.String getTag() {\n java.lang.Object ref = tag_;\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 tag_ = s;\n return s;\n }\n }", "public static String getXMLElementTagName() {\n return \"modelMessage\";\n }", "public String getTagName() {\n return TAG_NAME;\n }", "public static String getXMLElementTagName() {\n return \"building-type\";\n }", "public String getTAG() {\r\n return TAG;\r\n }", "public java.lang.String getTag() {\n java.lang.Object ref = tag_;\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 tag_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getTagName() \n {\n return _node == null ? null : _node.getName().getLocalPart();\n }", "Element toXML();", "Element getGenericElement();", "public static String getXMLElementTagName() {\n return \"lastSale\";\n }", "public int getTag() {\n return tag;\n }", "Tag getInternal();", "@Override\n public int getTag() {\n return this.tag;\n }", "@Override\r\n\tpublic String getTagName() {\n\t\treturn tagName;\r\n\t}", "public int tag () { return MyTag; }", "public String getTagName() {\n return tagName;\n }", "public String getTagName() {\n return tagName;\n }", "public String getModelXMLTagValue(String tagname) {\n\t\treturn getModelXMLTagValue(tagname, null);\n\t}", "public String eTag() {\n return this.eTag;\n }", "public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( VolumeRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}", "@Override\n\tpublic String getTagName() {\n\t\treturn null;\n\t}", "public static String getXMLElementTagName() {\n return \"nationOptions\";\n }", "public java.lang.String getIdTag()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDTAG$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public Element getElementByTagName(String tagName) {\r\n\t\tNodeList list = doc.getElementsByTagName(tagName);\t\t\r\n\t\tElement element = (Element)list.item(0);\t\t\r\n\t\t\r\n\t\treturn element;\r\n\t}", "public final String getTagName() {\n return getNodeName();\n }", "public com.google.protobuf.ByteString\n getTagBytes() {\n java.lang.Object ref = tag_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n tag_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getTagVal() {\n return tagVal;\n }", "public String getTagName() {\r\n\t\treturn tagName;\r\n\t}", "public byte[] tag();", "public CharSequence getTagString() {\n\t\tStringBuilder tagString = new StringBuilder();\n\t\tList<String> tags = getTags();\n\t\tfor (String tag : tags) {\n\t\t\tif (tagString.length() > 0) {\n\t\t\t\ttagString.append(SPACE);\n\t\t\t}\n\t\t\ttagString.append(tag);\n\t\t}\n\t\treturn tagString;\n\t}", "public String getXml() {\n\t\treturn _xml;\n\t}", "public String getTagName() {\n\t\treturn tagName;\n\t}", "java.lang.String getTagValue();", "public com.google.protobuf.ByteString\n getTagBytes() {\n java.lang.Object ref = tag_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n tag_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "UmlElement getUmlElement();", "public final native java.lang.String getTagName() /*-{\n return this.tagName;\n }-*/;", "public String getTag() {\n return tagNum;\n }", "@Override\r\n public String toString() {\r\n return tagName;\r\n }", "@Override\n\tpublic Tag getTag() {\n\t\treturn null;\n\t}", "public String getTagname() {\n return tagname;\n }", "public String getXml() {\n return xml;\n }", "public String toXml(String tag) {\n\t\tif (tag == null) {\n\t\t\tthrow new NullPointerException(\"null XML tag\");\n\t\t}\n\t\t\n\t\treturn(\"<\" + tag + \">\" + toXml() + \"</\" + tag + \">\");\n\t}", "com.google.protobuf.ByteString\n getTagBytes();", "public String getModelXMLTagValue(String tagname, String default_value) {\n\t\tElement res = getModelXMLElement(tagname);\n\t\treturn (res != null) ? res.getTextContent() : default_value;\n\t}", "public EpmlElement(String tag) {\n\t\tthis.tag = tag;\n\t}", "public String getXMLBaseNodeName();", "public static String getXMLElementTagName() {\n return \"action\";\n }", "public static __Tag getTagSub(String tag) {\n\t return map.get(tag);\n\t}", "public static __Tag getTagSub(String tag) {\n\t return map.get(tag);\n\t}", "public static final String XML(final int level,\n final String tag, final String value)\n {\n final StringBuilder buffer = new StringBuilder();\n XML(buffer, level, tag, value);\n return buffer.toString();\n }", "@Override\r\n\tpublic String getXmlClassTag() {\r\n\t\treturn xmlClassTag;\r\n\t}", "@Override\r\n\tpublic String getXmlClassTag() {\r\n\t\treturn xmlClassTag;\r\n\t}", "public int getMyTag()\n\t{\n\t\treturn myTag;\n\t}", "@Override\n public String getTag() {\n return this.reference;\n }", "public String getXML() //Perhaps make a version of this where the header DTD can be manually specified\n { //Also allow changing of generated tags to user specified values\n \n String xml = new String();\n xml= \"<?xml version = \\\"1.0\\\"?>\\n\";\n xml = xml + generateXML();\n return xml;\n }", "public abstract String getXMLName();", "public static String getStartElement(String line) {\r\n int first = line.lastIndexOf( \"<\");\r\n int last = line.lastIndexOf( \">\");\r\n\r\n if ( last < first) { // In the Tag\r\n return null;\r\n } else {\r\n int firstEnd = line.lastIndexOf( \"</\");\r\n int lastEnd = line.lastIndexOf( \"/>\");\r\n\r\n // Last Tag is not an End Tag\r\n if ( (firstEnd != first) && ((lastEnd + 1) != last)) {\r\n return XmlParserUtils.getIdentifier( line.substring(first + 1) );\r\n }\r\n }\r\n\r\n return null;\r\n }" ]
[ "0.79339534", "0.7928431", "0.7649288", "0.7649288", "0.76334393", "0.74141145", "0.7394676", "0.7394676", "0.73902345", "0.7109515", "0.7108289", "0.7009823", "0.7007499", "0.69729334", "0.68191046", "0.67962646", "0.67853874", "0.67853874", "0.67840225", "0.6749376", "0.6718799", "0.6718799", "0.66909826", "0.66728866", "0.6660896", "0.66352946", "0.65848005", "0.65276426", "0.6521617", "0.6508966", "0.65081894", "0.6494836", "0.6475547", "0.64688575", "0.6448509", "0.6387152", "0.63562196", "0.63265216", "0.63185173", "0.62965083", "0.62822723", "0.62763834", "0.6266893", "0.62664145", "0.62286747", "0.62247026", "0.62168646", "0.62067425", "0.61980015", "0.61913353", "0.6162116", "0.6153842", "0.614263", "0.6138562", "0.61310637", "0.6098531", "0.60874766", "0.60741854", "0.60671467", "0.60671467", "0.60643584", "0.6051083", "0.60382676", "0.602836", "0.60245216", "0.6023912", "0.6022056", "0.60158104", "0.60128045", "0.6009618", "0.59809744", "0.5975538", "0.59724504", "0.5972134", "0.59566325", "0.5945506", "0.5928961", "0.59267294", "0.591602", "0.59076816", "0.5905335", "0.58846164", "0.5881157", "0.5870154", "0.5853818", "0.5847526", "0.5829835", "0.5821236", "0.5808271", "0.5808103", "0.5807714", "0.5807714", "0.58003896", "0.57850087", "0.57850087", "0.57711595", "0.57684064", "0.5750209", "0.5729773", "0.5724268" ]
0.7615145
5
Tests for nil "tag" element
boolean isNilTag();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void assertStreamItemViewHasNoTag() {\n Object tag = mView.getTag();\n assertNull(\"should not have a tag\", tag);\n }", "@Ignore\n @Test(expected = NullPointerException.class)\n public void failOnNullTag() throws Exception {\n }", "public boolean isEmptyElementTag() {\r\n\t\treturn source.charAt(end-2)=='/';\r\n\t}", "public boolean isBlank() {\n return (tags.length() == 0);\n }", "@Override\n\tpublic Tag getTag() {\n\t\treturn null;\n\t}", "public boolean isSetTag() {\n return this.tag != null;\n }", "private void clearHasTag() {\n \n hasTag_ = 0;\n }", "public static Tag emptyTag() {\n\t\treturn new Tag(NAME, \"\");\n\t}", "private boolean isIgnoredByTag(ExtensionContext context) {\n AnnotatedElement element = context.getElement().get();\n return isIgnoredByTag(element);\n }", "public static boolean XmlEmptyTag(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"XmlEmptyTag\")) return false;\n if (!nextTokenIs(b, XMLSTARTTAGSTART)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, XMLSTARTTAGSTART);\n r = r && XmlTagName(b, l + 1);\n r = r && XmlEmptyTag_2(b, l + 1);\n r = r && XmlEmptyTag_3(b, l + 1);\n r = r && XmlEmptyTag_4(b, l + 1);\n r = r && consumeToken(b, XMLEMPTYELEMENTEND);\n exit_section_(b, m, XML_EMPTY_TAG, r);\n return r;\n }", "private boolean endTagRequired(UAElement element) {\n \t\tString elementName = element.getElementName();\n \t\tif (\"a\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\tif (\"p\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\tif (\"div\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\tif (\"script\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\tif (\"textarea\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\treturn false;\n \t}", "boolean hasTag(Tag tag);", "boolean isSetTag();", "@objid (\"002ff058-0d4f-10c6-842f-001ec947cd2a\")\n @Override\n public Object visitElement(Element theElement) {\n return null;\n }", "@Test\n public void testAddNullAttribute() {\n Tag tag = new BaseTag(\"testtag\");\n String attributeName = \"testAttr\";\n tag.addAttribute(attributeName, null);\n assertNull(\"Wrong attribute value returned\", tag.getAttribute(attributeName));\n assertNotNull(\"No attribute map\", tag.getAttributes());\n assertEquals(\"Wrong attribute map size\", 0, tag.getAttributes().size());\n }", "boolean hasTigTag();", "@Test(expected = IllegalArgumentException.class)\n public void testParseNullDOMFails()\n {\n parser.parse((Document)null);\n fail(\"Should have thrown an IllegalArgumentException\");\n }", "@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}", "static boolean tagExists(CompoundTag tag, String key) {\n return tag.getValue().get(key) != null;\n }", "public boolean checkEmpty() \n { \n return header.rightChild == nullNode; \n }", "void setNilTag();", "@Override\n\tpublic String getTagName() {\n\t\treturn null;\n\t}", "@Override\n public boolean isTagged() {\n for (List<String> t : tags.values()) {\n if(!t.isEmpty()) return true;\n }\n return false;\n }", "@Override\n public Void visitUnknown(Element e, Void p) {\n return null;\n }", "public boolean isDefaultElement();", "public static boolean isExistHTMLTag(String tag) {\r\n\t\tfinal Matcher matcher = HTML_TAG_PATTERN.matcher(tag);\r\n\t\treturn matcher.matches();\r\n\t}", "public String getNullAttribute();", "private static boolean hasTag(String value) {\n return value.contains(\"<\") || value.contains(\">\");\n }", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\n\t}", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(NullValue arg0) {\n\n\t}", "protected boolean isEmptyXmlTagExpanded() {\n return false;\n }", "public boolean canProcessNull() {\n return false;\n }", "@Test(expected = IllegalArgumentException.class)\n public void testParseDOMWidgetElemEmptyTypeFails()\n {\n parser.parse(DefaultConfigurationParserMockDOMs.createDOMWidgetElemEmptyType());\n fail(\"Should have thrown an IllegalArgumentException\");\n }", "public static boolean isTag(int symbol) {\n return symbol < 0;\n }", "@Override\n\tpublic Element getElement() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void visit(NullValue arg0) {\n\t\t\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testParseDOMWidgetElemEmptyNameFails()\n {\n parser.parse(DefaultConfigurationParserMockDOMs.createDOMWidgetElemEmptyName());\n fail(\"Should have thrown an IllegalArgumentException\");\n }", "@Override\n\tpublic Tag getPreTag() {\n\t\treturn null;\n\t}", "@Override\r\n public Element findElement()\r\n {\n return null;\r\n }", "public String showNullTags(String word, ArrayList<String> nullTags) {\n StringBuilder stringBuilder = new StringBuilder();\n if (nullTags.size() > 0) {\n stringBuilder.append((nullTags.size() == 1 ? \"This tag \" : \"These tags \")\n + \"doesn't exist in the word \\\"\" + word + \"\\\"\" + \"\\n\");\n for (String tag : nullTags) {\n stringBuilder.append(tag + \"\\n\");\n }\n }\n return stringBuilder.toString();\n }", "public static boolean isNull()\r\n {\r\n return (page == null);\r\n }", "@Test\n\tpublic void takingNullNodeTest()\n\t{\n\t\ttry\n\t\t{\n\t\t\tOsmXmlToSQLiteDatabaseConverter converter = new OsmXmlToSQLiteDatabaseConverter(new MapObjectsIdFinderFake());\n\t\t\tconverter.takeNode(null);\n\t\t\tfail();\n\t\t}\n\t\tcatch (IllegalArgumentException ex)\n\t\t{\n\t\t\t// ok\n\t\t}\n\t}", "boolean isNilLabel();", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn firstNode.equals(null);\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testParseDOMWidgetElemEmptyIDFails()\n {\n parser.parse(DefaultConfigurationParserMockDOMs.createDOMWidgetElemEmptyID());\n fail(\"Should have thrown an IllegalArgumentException\");\n }", "@Override\n\t\tprotected Element getElement(ElementType button) {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic Tag getPosTag() {\n\t\treturn null;\n\t}", "boolean hasTagValue();", "public boolean isNilUniqueName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(UNIQUENAME$10, 0);\r\n if (target == null) return false;\r\n return target.isNil();\r\n }\r\n }", "@Override\r\n\tpublic boolean getElemento(T elemento) {\n\t\treturn false;\r\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testParseDOMWidgetElemNoTypeFails()\n {\n parser.parse(DefaultConfigurationParserMockDOMs.createDOMWidgetElemNoType());\n fail(\"Should have thrown an IllegalArgumentException\");\n }", "@Test(expected = IllegalArgumentException.class)\n public void testParseDOMUIElemEmptyNameFails()\n {\n parser.parse(DefaultConfigurationParserMockDOMs.createDOMUIElemEmptyName());\n fail(\"Should have thrown an IllegalArgumentException\");\n }", "public void testTransformWithNullElement() throws Exception {\n try {\n instance.transform(null, document, caller);\n fail(\"IllegalArgumentException is excepted[\" + suhClassName + \"].\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }", "@Test\n\tvoid transformTagNonExistingValue() throws JspException {\n\t\tPageContext pc = createPageContext();\n\t\tTestBean tb = new TestBean();\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tServletRequestDataBinder binder = new ServletRequestDataBinder(tb, \"tb\");\n\t\tCustomDateEditor l = new CustomDateEditor(df, true);\n\t\tbinder.registerCustomEditor(Date.class, l);\n\t\tpc.getRequest().setAttribute(BindingResult.MODEL_KEY_PREFIX + \"tb\", binder.getBindingResult());\n\n\t\t// try with non-existing value\n\t\tBindTag bind = new BindTag();\n\t\tbind.setPageContext(pc);\n\t\tbind.setPath(\"tb.name\");\n\t\tbind.doStartTag();\n\n\t\tTransformTag transform = new TransformTag();\n\t\ttransform.setPageContext(pc);\n\t\ttransform.setValue(null);\n\t\ttransform.setParent(bind);\n\t\ttransform.setVar(\"theString2\");\n\t\ttransform.doStartTag();\n\n\t\tassertThat(pc.getAttribute(\"theString2\")).isNull();\n\t}", "@Override\n\tpublic Tag getTag(String tagId) throws Exception {\n\t\treturn null;\n\t}", "static boolean isBlank(Token t) {\n return t.getText().isBlank(); // trim().length() == 0\n }", "@Test\n public final void testCheckForBlankText() {\n Document testDoc = TestDocHelper.createDocument(\n \"<a></a>\");\n\n Node nonBlank = testDoc.createTextNode(\"a\");\n assertFalse(NodeOps.nodeIsEmptyText(nonBlank));\n\n Node blank = testDoc.createTextNode(\"\");\n assertTrue(NodeOps.nodeIsEmptyText(blank));\n }", "@Test\n public void testEmptyTaintContainsNullTaint() {\n Taint t = Taint.emptyTaint();\n assertTrue(t.containsLabel(null));\n }", "public boolean xmlTagExists(String tagname) {\n\t\treturn getModelXMLElement(tagname) != null;\n\t}", "@Override\n public boolean isMissingNode() { return false; }", "boolean isNilValue();", "@Test(expected = IllegalArgumentException.class)\n public void testParseDOMWidgetElemNoNameFails()\n {\n parser.parse(DefaultConfigurationParserMockDOMs.createDOMWidgetElemNoName());\n fail(\"Should have thrown an IllegalArgumentException\");\n }", "boolean hasTags();", "boolean hasElement();", "void processTag(XMLNode tag) throws Exception {\n if(tag.type()== XMLNode.Type.TAG){\n state.traceTagBegin(tag.getTag()==null?\"process\":tag.getTag(),null);\n tagstk[tagstkptr++] = tag.getTag();\n \n dataloader.beginTag(tagstk, tagstkptr, tag.getTag(), tag.getAttribs());\n if(tag.getTags()!= null) for(XMLNode nextTag : tag.getTags()){\n processTag(nextTag);\n }\n ((LoadDatamapData)dataloader).endTag(tagstk, tagstkptr, tag, tag.getBody(), tag.getAttribs());\n \n tag.clearRef();\n \n tagstkptr--;\n tagstk[tagstkptr]= null;\n state.traceTagEnd();\n }\n }", "public void testNonExistanceID() throws Exception {\n\n // check that resolvement fails\n super.checkResolveNonExistanceID();\n\n // occurrence should be null\n assertNull(tag.getOccurrence());\n\n }", "private static String noTag(String name) {\n Matcher tagMatcher = TAG_REGEX.matcher(name);\n if (tagMatcher.find()) {\n return tagMatcher.replaceAll(\"\").trim();\n }\n return name;\n }", "@Test(expected = IllegalArgumentException.class)\n public void testParseDOMFormElemEmptyExistenceValidationWidgetFails()\n {\n parser.parse(DefaultConfigurationParserMockDOMs.createDOMFormElemEmptyExistenceValidationWidget());\n fail(\"Should have thrown an IllegalArgumentException\");\n }", "@Override\n public boolean isEmpty() {\n return (that.rootNode == null);\n }", "protected void initTag()\n {\n }", "@Test(expected = IllegalArgumentException.class)\n public void testParseDOMWidgetElemNoIDFails()\n {\n parser.parse(DefaultConfigurationParserMockDOMs.createDOMWidgetElemNoID());\n fail(\"Should have thrown an IllegalArgumentException\");\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\tmodCount = root.numChildren();\n\t\treturn (modCount == 0);\n\t}", "public boolean isEmpty()\n {\n return root == nil;\n }", "public boolean isEmpty()\n {\n return root == nil;\n }", "@Test(enabled = true, dependsOnMethods = {\"remove\"}, expectedExceptions = NullPointerException.class)\n\tpublic void getNullOnNull() {\n\t\tassert stack.getLast().getNext() == node5;\n\t}", "@Override\npublic Boolean isEmpty() {\n\treturn null;\n}", "@Test\n\tpublic void testNoopProject() {\n\t\tTag a = new Tag(A);\n\t\ttagService.create(a);\n\t\tTag b = tagService.create(new Tag(B));\n\t\tTag c = tagService.create(new Tag(C));\n\t\tIterable<Tag> values = tagService.find().matching(\n\t\t\t\tnew QueryBuilder<TagInformer>() {\n\n\t\t\t\t\tpublic QueryExpression createMatchingExpression(\n\t\t\t\t\t\t\tTagInformer object) {\n\t\t\t\t\t\treturn object.getText().differentFrom(null);\n\t\t\t\t\t}\n\t\t\t\t}).projectOn(new NoopProjectionBuilder<Tag, TagInformer>()).getAll();\n\t\tassertThat(values, IsCollectionContaining.hasItems(a, b, c));\n\t}", "@Override\n public String visit(NodeList n, Object arg) {\n return null;\n }", "public void testNullMode()\r\n {\r\n try\r\n {\r\n new IncludeDirective( null, null, \"value\", PROPERTIES );\r\n fail( \"no-NPE\" );\r\n }\r\n catch( NullPointerException e )\r\n {\r\n // success\r\n }\r\n }", "private boolean isElementPresent(By cssSelector) {\n\treturn false;\n}", "java.lang.String getTag();", "java.lang.String getTag();", "@Test(expected = IllegalArgumentException.class)\n public void testParseDOMUIElemNoNameFails()\n {\n parser.parse(DefaultConfigurationParserMockDOMs.createDOMUIElemNoName());\n fail(\"Should have thrown an IllegalArgumentException\");\n }", "public boolean containsTag(String tagName);", "@Override\r\n\tpublic void visit(NullExpression nullExpression) {\n\r\n\t}", "public boolean hasNullSig() {\n for (Mounted mEquip : getMisc()) {\n MiscType mtype = (MiscType) mEquip.getType();\n if (mtype.hasFlag(MiscType.F_NULLSIG)) {\n // The Mek has Null-Sig\n return true;\n }\n }\n return false;\n }", "public static boolean MarklogicNullNodeTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"MarklogicNullNodeTest\")) return false;\n if (!nextTokenIs(b, K_NULL_NODE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, MARKLOGIC_NULL_NODE_TEST, null);\n r = consumeTokens(b, 2, K_NULL_NODE, L_PAR);\n p = r; // pin = 2\n r = r && report_error_(b, MarklogicNullNodeTest_2(b, l + 1));\n r = p && consumeToken(b, R_PAR) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public boolean isNull(){\n return false;\n }", "boolean getTreeNodeIdNull();", "public boolean isNotNullTid() {\n return genClient.cacheValueIsNotNull(CacheKey.tid);\n }", "@Override\n\tpublic String getElementName() {\n\t\treturn null;\n\t}", "@Override\n public boolean isEmpty() {\n return root == null;\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn top==null;\r\n\t}", "void unsetTag();", "public void testNullValue()\r\n {\r\n try\r\n {\r\n new IncludeDirective( IncludeDirective.REF, null, null, PROPERTIES );\r\n fail( \"no-NPE\" );\r\n }\r\n catch( NullPointerException e )\r\n {\r\n // success\r\n }\r\n }", "public boolean empty() {\r\n if (text.equals(\"\") ||\r\n MoreString.indexOfIgnoreCase(text, \"<title>404 Not Found\") >= 0)\r\n return true;\r\n return false;\r\n }", "private boolean isIgnoredByTag(AnnotatedElement element) {\n Tag[] annotations = element.getDeclaredAnnotationsByType(Tag.class);\n\n if (annotations.length == 0 || enabledTags.isEmpty()) {\n LOGGER.info(\"Test method {} is not ignored by tag\", ((Method) element).getName());\n return false;\n }\n\n for (Tag annotation : annotations) {\n if (enabledTags.contains(annotation.value())) {\n LOGGER.info(\"Test method {} is not ignored by tag: {}\", ((Method) element).getName(), annotation.value());\n return false;\n }\n }\n LOGGER.info(\"Test method {} is ignored by tag\", ((Method) element).getName());\n return true;\n }", "public boolean checkTag(String tagToCheck){\r\n \t\treturn tags.containsKey(tagToCheck);\r\n \t}", "private String getTagName(final Node tag) {\n if (tag != null) {\n if (tag.isElement()) {\n return \"<\" + tag.element + \">\";\n }\n else if (tag.type == NodeType.EndTag) {\n return \"</\" + tag.element + \">\";\n }\n else if (tag.type == NodeType.DocTypeTag) {\n return \"<!DOCTYPE>\";\n }\n else if (tag.type == NodeType.TextNode) {\n return \"plain text\";\n }\n else if (tag.type == NodeType.XmlDecl) {\n return \"XML declaration\";\n }\n else if (tag.element != null) {\n return tag.element;\n }\n }\n return \"\";\n }" ]
[ "0.70879436", "0.67123187", "0.65183353", "0.6420463", "0.63378054", "0.61522764", "0.6129428", "0.6023838", "0.6021174", "0.5988193", "0.59844464", "0.59824705", "0.5977553", "0.59431636", "0.5907728", "0.58784664", "0.5874089", "0.5822757", "0.57921463", "0.5772232", "0.57423204", "0.5710542", "0.5688283", "0.568339", "0.5662894", "0.56514525", "0.5651133", "0.56447744", "0.5632051", "0.56224203", "0.56031877", "0.55987287", "0.55911726", "0.5589747", "0.55889446", "0.5574575", "0.5562985", "0.5535273", "0.55248135", "0.5521769", "0.54752135", "0.54623884", "0.5445026", "0.544173", "0.54367894", "0.54365623", "0.5435334", "0.5434682", "0.5422606", "0.54099536", "0.5399496", "0.53985775", "0.53874236", "0.5386453", "0.5384785", "0.538132", "0.5369601", "0.53521895", "0.5348287", "0.5340215", "0.53362083", "0.5329518", "0.5324951", "0.53197217", "0.53185284", "0.5316844", "0.5313578", "0.5311587", "0.5296136", "0.52636987", "0.5257711", "0.5257639", "0.5256209", "0.52405274", "0.52405274", "0.52363956", "0.5228844", "0.5225568", "0.5225146", "0.5220834", "0.52128637", "0.52095586", "0.52095586", "0.520664", "0.5204081", "0.5201021", "0.52009577", "0.51956207", "0.51928526", "0.5187508", "0.51809984", "0.51792026", "0.5175993", "0.5173969", "0.5173042", "0.51714754", "0.5159786", "0.5159769", "0.51580113", "0.51470023" ]
0.75588477
0
True if has "tag" element
boolean isSetTag();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasTag(Tag tag);", "boolean hasTigTag();", "boolean hasTags();", "public boolean isSetTag() {\n return this.tag != null;\n }", "public boolean containsTag(String tagName);", "boolean hasTagValue();", "public boolean hasTags() {\n return isTagged();\n }", "public int getHasTag() {\n return hasTag_;\n }", "boolean isNilTag();", "public boolean contains(String tag){\n return tags.contains(tag);\n }", "boolean hasElement();", "static boolean tagExists(CompoundTag tag, String key) {\n return tag.getValue().get(key) != null;\n }", "@Override\n public boolean isTagged() {\n for (List<String> t : tags.values()) {\n if(!t.isEmpty()) return true;\n }\n return false;\n }", "public boolean hasTags() {\n return fieldSetFlags()[4];\n }", "public boolean xmlTagExists(String tagname) {\n\t\treturn getModelXMLElement(tagname) != null;\n\t}", "public boolean isTagPresent(int tag) {\n return fieldIndex.containsKey(tag);\n }", "private static boolean hasTag(String value) {\n return value.contains(\"<\") || value.contains(\">\");\n }", "public static boolean isExistHTMLTag(String tag) {\r\n\t\tfinal Matcher matcher = HTML_TAG_PATTERN.matcher(tag);\r\n\t\treturn matcher.matches();\r\n\t}", "private Boolean isTag(String tagID) {\n\t\t\n\t\tif (tagManager.resolve(tagID) != null) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlog.warn(DEBUG_PREFIX + \"Tag ID passed in tags argument is invalid: \" + tagID);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "public boolean isSetTags() {\n return this.Tags != null;\n }", "public int getHasTag() {\n return instance.getHasTag();\n }", "public boolean hasFromTag() {\n return fromHeader != null && fromHeader.getTag() != null;\n }", "public boolean checkTag(String tagToCheck){\r\n \t\treturn tags.containsKey(tagToCheck);\r\n \t}", "@Override\n\tpublic boolean isTagged() {\n\t\treturn tagged;\n\t}", "public boolean hasToTag() {\n return toHeader != null && toHeader.getTag() != null;\n }", "private boolean endTagRequired(UAElement element) {\n \t\tString elementName = element.getElementName();\n \t\tif (\"a\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\tif (\"p\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\tif (\"div\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\tif (\"script\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\tif (\"textarea\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\treturn false;\n \t}", "public boolean hasData() {\n return (tags != null && tags.length() > 0);\n }", "boolean hasTraceTag();", "protected boolean isTargetTag(String tag) {\n\t\treturn this.nlpTagSet.contains(tag);\n\t}", "private boolean isTag(String item) {\n return storiesToTags.keySet().contains(item);\n }", "public LanguageAssert hasTag(String tag) {\n\t\tassertThat(actual.getLanguageTag()).as(descriptionText() + \" tag\").isEqualTo(tag);\n\t\treturn this;\n\t}", "public boolean isSetTagline() {\n return this.tagline != null;\n }", "boolean hasNode();", "boolean hasNode();", "public static boolean isTag(String tag) {\n return ElementTags.PHRASE.equals(tag);\n }", "public static boolean hasElements() {\n return content.size() > 0;\n }", "public boolean contains(String tagName, PageContext pageContext) throws IOException\n {\n /*\n * TODO JSPs using a different encoding then the system default will break here if the values for the characters in the opening\n * or closing tags are different. Not sure how to grab the encoding from the JSP that created the current content automatically.\n * Maybe add a filter parameter to specify the encoding if it's different then default.\n */\n byte[] tagNameBytes = tagName.getBytes();\n byte[] openTagBytes = new byte[tagNameBytes.length + 2];\n openTagBytes[0] = LESS_THAN;\n for (int i = 0; i < tagNameBytes.length; i++)\n {\n openTagBytes[i + 1] = tagNameBytes[i];\n }\n openTagBytes[openTagBytes.length - 1] = GREATER_THAN;\n\n int openTagIndex = indexOf(content, openTagBytes);\n if (openTagIndex >= 0)\n {\n byte[] closedTagBytes = new byte[tagNameBytes.length + 3];\n closedTagBytes[0] = LESS_THAN;\n closedTagBytes[1] = SOLIDUS;\n for (int i = 0; i < tagNameBytes.length; i++)\n {\n closedTagBytes[i + 2] = tagNameBytes[i];\n }\n closedTagBytes[closedTagBytes.length - 1] = GREATER_THAN;\n\n int closeTagIndex = lastIndexOf(content, closedTagBytes);\n return (closeTagIndex > openTagIndex);\n }\n else\n {\n return false;\n }\n }", "private boolean advanceToTag(final String tag) {\r\n\t\twhile (this.in.readToTag()) {\r\n\t\t\tfinal Type type = this.in.getTag().getType();\r\n\t\t\tif (type == Type.BEGIN) {\r\n\r\n\t\t\t\tif (this.in.getTag().getName().equals(tag)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tskipObject();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "boolean hasIsNodeOf();", "public boolean containsTags(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n return internalGetTags().getMap().containsKey(key);\n }", "public static boolean isSemanticTag(String tag){\n\t\treturn semBalises.contains(tag);\n\t}", "public boolean containsTags(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n return internalGetTags().getMap().containsKey(key);\n }", "public static boolean isTag(int symbol) {\n return symbol < 0;\n }", "boolean hasSetAttribute();", "boolean hasAttributes();", "boolean hasAttributes();", "public boolean addTag(Tag tag){\n return addTagUC.addTag(mCurrentAccount, tag);\n }", "private boolean isIgnoredByTag(ExtensionContext context) {\n AnnotatedElement element = context.getElement().get();\n return isIgnoredByTag(element);\n }", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "public static boolean matches(StartElement startElement, String tag) {\n String elementTag = StaxParserUtil.getElementName(startElement);\n return tag.equals(elementTag);\n }", "@Override\n public boolean hasTagProcessor(String uri, String localName) {\n return cdiManager.exists(Object.class, new TemplateProcessorLiteral(uri, localName));\n }", "boolean hasNextElement();", "private void clearHasTag() {\n \n hasTag_ = 0;\n }", "public boolean tagFound (String from) {\n boolean found = (from.length() == 0);\n int e = 0;\n int s = indexOfNextWordStart (tags, e, slashToSeparate);\n\n // Go through tags, looking for complete tags\n while (s < tags.length() && (! found)) {\n e = indexOfNextSeparator (tags, s, false, true, slashToSeparate);\n if (from.equalsIgnoreCase (tags.substring (s, e))) {\n found = true;\n } else {\n s = indexOfNextWordStart (tags, e, slashToSeparate);\n }\n }\n return found;\n }", "public boolean getNeedClosingTag() {\n\t\treturn (end_element);\n\t}", "private boolean isWanted(Node n) {\n if (use_All) {\n return true;\n }\n String name = n.getNodeName();\n for (int ix = 0; ix < remove_tags.length; ix++) {\n if (name.compareTo(remove_tags[ix]) == 0) {\n return false;\n }\n }\n for (int ix = 0; ix < add_tags.length; ix++) {\n if (name.compareTo(add_tags[ix]) == 0) {\n return true;\n }\n }\n return false;\n }", "public static boolean XmlTagName(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"XmlTagName\")) return false;\n if (!nextTokenIs(b, XMLTAGNCNAME)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = XmlTagName_0(b, l + 1);\n if (!r) r = XmlTagLocalName(b, l + 1);\n exit_section_(b, m, XML_TAG_NAME, r);\n return r;\n }", "public boolean isExtensionElement();", "boolean hasNested();", "public boolean hasElt(int e) {\n\t\treturn false;\n\t}", "public boolean anyTagFound (Tags selTags) {\n\n boolean tagSelected = false;\n if (selTags == null || selTags.length() == 0) {\n tagSelected = true;\n } else {\n int i = 0;\n String selTag = selTags.getTag(i);\n while (selTag.length() > 0 && (! tagSelected)) {\n tagSelected = tagFound (selTag);\n if (! tagSelected) {\n i++;\n selTag = selTags.getTag(i);\n }\n } // While more item tags for comparision \n } // End if we have selection tags\n return tagSelected;\n }", "public static Boolean ifModelTagExistsInPayload(GenericRecord record){\n\t\t Schema schema = record.getSchema();\n\t\t for (Schema.Field field : schema.getFields()){\n\t\t\t if (field.name().equals(Constants.MODEL_TAG)) return true;\n\t }\n\t\t return false;\n\t }", "public boolean isBlank() {\n return (tags.length() == 0);\n }", "public boolean matchesTag(int tag) {\n if (super.matchesTag(tag)) {\n return true;\n }\n if (this.mLayout != null) {\n Spanned text = (Spanned) this.mLayout.getText();\n for (RCTRawText span : (RCTRawText[]) text.getSpans(0, text.length(), RCTRawText.class)) {\n if (span.getReactTag() == tag) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean hasNextElement();", "public boolean hasElement(String name) {\n return elements.has(name);\n }", "private void setHasTag(int value) {\n \n hasTag_ = value;\n }", "boolean hasChildNodes();", "@Override\r\n public boolean equals(Object obj) {\r\n return obj != null\r\n && getClass() == obj.getClass()\r\n && Objects.equals(tagName, obj.toString());\r\n }", "public static Predicate<BiomeSelectionContext> tag(TagKey<Biome> tag) {\n\t\treturn context -> context.hasTag(tag);\n\t}", "private boolean isIgnoredByTag(AnnotatedElement element) {\n Tag[] annotations = element.getDeclaredAnnotationsByType(Tag.class);\n\n if (annotations.length == 0 || enabledTags.isEmpty()) {\n LOGGER.info(\"Test method {} is not ignored by tag\", ((Method) element).getName());\n return false;\n }\n\n for (Tag annotation : annotations) {\n if (enabledTags.contains(annotation.value())) {\n LOGGER.info(\"Test method {} is not ignored by tag: {}\", ((Method) element).getName(), annotation.value());\n return false;\n }\n }\n LOGGER.info(\"Test method {} is ignored by tag\", ((Method) element).getName());\n return true;\n }", "public boolean isEmptyElementTag() {\r\n\t\treturn source.charAt(end-2)=='/';\r\n\t}", "public boolean isElement() {\r\n return element;\r\n }", "boolean hasMeta();", "@Override\r\n\tpublic boolean contains(T element) {\n\t\treturn false;\r\n\t}", "public final boolean hasAttribute ()\r\n {\r\n return _value.hasAttribute();\r\n }", "private boolean hasTBody() {\r\n\t\treturn null != this.getTBody();\r\n\t}", "protected boolean isEmptyXmlTagExpanded() {\n return false;\n }", "public boolean hasChildren(Object element) {\n\t\treturn false;\r\n\t}", "@Test\n\tpublic void addElement() {\n\t\tXMLTagParser.addNewElement(\"Person\");\n\t\tassertEquals(XMLTagParser.containsElement(\"Person\"), true);\n\t}", "@java.lang.Override\n public boolean hasNode() {\n return node_ != null;\n }", "@java.lang.Override\n public boolean hasNode() {\n return node_ != null;\n }", "public boolean matches(Tag tag) {\n\n for (Selector token : selectors) {\n if (token.matches(tag)) {\n return true;\n }\n\n }\n\n return false;\n }", "private boolean checkTag(String tag) {\n if (tag.length() < 1) {\n return false;\n }\n char c = tag.charAt(0);\n if (!(c >= 'a' && c <= 'z')) {\n return false;\n }\n for (int i = 1; i < tag.length(); ++i) {\n c = tag.charAt(i);\n if (!(c >= 'a' && c <= 'z' || c >= '0' && c <= '9' || c == '-')) {\n return false;\n }\n }\n return true;\n }", "@Override\n public boolean knownProperty(final QName tag) {\n if (propertyNames.get(tag) != null) {\n return true;\n }\n\n // Not ours\n return super.knownProperty(tag);\n }", "@Override\n public boolean knownProperty(final QName tag) {\n if (propertyNames.get(tag) != null) {\n return true;\n }\n\n // Not ours\n return super.knownProperty(tag);\n }", "private boolean checkStartElement(XMLEvent event, String elementName) {\n\t\tif (event.isStartElement()\n\t\t\t\t&& event.asStartElement().getName().getLocalPart()\n\t\t\t\t\t\t.toLowerCase().equals(elementName)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public String getTag();", "public static boolean matches(EndElement endElement, String tag) {\n String elementTag = getElementName(endElement);\n return tag.equals(elementTag);\n }", "boolean isElement(Object object);", "public static boolean isOnlyChildren(Element e, String[] tags) {\n NodeList children = e.getChildNodes();\n for (int i = 0; i < children.getLength(); ++i) {\n Node item = children.item(i);\n short nodeType = item.getNodeType();\n if (nodeType == Node.TEXT_NODE && item.getNodeValue().trim().length() == 0) {\n continue;\n } else if (nodeType != Node.ELEMENT_NODE) {\n return false; \n }\n Element child = (Element) item;\n if (!isIncluded(child.getTagName(), tags)\n || child.getChildNodes().getLength() != 1\n || child.getFirstChild().getNodeType() != Node.TEXT_NODE) {\n return false;\n }\n }\n // Check that all tags in the tags[] array appear in the element\n // exactly once\n for (int i = 0; i < tags.length; ++i) {\n NodeList nl = e.getElementsByTagName(tags[i]);\n if (nl == null || nl.getLength() != 1) {\n return false;\n }\n }\n return true;\n }", "@Override\r\n\tpublic boolean getElemento(T elemento) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean estaElemento(String elemento) {\n\t\treturn false;\n\t}", "public static boolean hasHtmlTag(final String str) {\n return !isNullOrEmpty(str)\n && str.contains(\"<\")\n && str.contains(\"/>\");\n }" ]
[ "0.84018236", "0.8239777", "0.8061541", "0.7830384", "0.75926775", "0.75133866", "0.7393964", "0.73469126", "0.73083985", "0.7279124", "0.7248211", "0.72332627", "0.722022", "0.71495885", "0.709849", "0.698881", "0.6977332", "0.6943227", "0.6821935", "0.6820119", "0.6775221", "0.6756761", "0.6738367", "0.667159", "0.6666451", "0.6626345", "0.66262555", "0.66068465", "0.65841144", "0.65800965", "0.65762776", "0.6510336", "0.64823127", "0.64823127", "0.64263076", "0.6419826", "0.6397629", "0.6387029", "0.6382433", "0.63665557", "0.63594294", "0.6307555", "0.62998724", "0.62909013", "0.6201455", "0.6201455", "0.6193862", "0.61844945", "0.61833894", "0.61833894", "0.61833894", "0.61833894", "0.61833894", "0.61833894", "0.61833894", "0.6169101", "0.61543363", "0.6150742", "0.6107868", "0.6081242", "0.60790694", "0.60714954", "0.6063001", "0.6049954", "0.6028408", "0.6025871", "0.6007322", "0.59961486", "0.5994939", "0.59926295", "0.5989728", "0.5974405", "0.5972859", "0.5970414", "0.5948275", "0.5926827", "0.592384", "0.59009284", "0.587762", "0.5867949", "0.5856644", "0.5851903", "0.5849863", "0.5847291", "0.5843245", "0.5835335", "0.5831193", "0.5831193", "0.581424", "0.58061385", "0.5801342", "0.5801342", "0.5790717", "0.5778528", "0.5778475", "0.5770822", "0.57682705", "0.57649916", "0.57615614", "0.57599545" ]
0.79697186
3
Sets the "tag" element
void setTag(java.lang.String tag);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTag(Object tag)\n {\n fTag = tag;\n }", "public void setTag(String tag);", "public void setTag(String tagName, Object value);", "public void setToTag(String tag) throws ParseException,NullPointerException;", "public void setTag( String tag )\n {\n this.tag = tag;\n }", "public void setTag(String tag) {\r\n this.tag = tag;\r\n }", "public void setTag(String tag) {\n this.tag = tag;\n }", "public void setTag(String tag) {\n this.tag = tag;\n }", "public void setFromTag(String tag) throws ParseException,NullPointerException;", "public void setTag(int tag) {\n this.tag = tag;\n }", "@Override\n public void setTag(int t) {\n this.tag = t;\n\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 Tag(String tag) {\n\t\tthis.tag = tag;\n\t}", "Tag(String name){\r\n this.tagName = name;\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 }", "void xsetTag(org.apache.xmlbeans.XmlString tag);", "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 setTagProperty(String tagProperty);", "public void setTag(ProgramTags tag) {\n\t\tthis.tag = program.getTagIfPresent(tag.getTag());\n\t}", "public void setMyTag(int theTag)\n\t{\n\t\tmyTag = theTag;\n\t}", "public void addTag(String tag) {\n this.tag = tag;\n }", "void addTag(String name, String value);", "public TagAttributeHandlerBuilder tag(String tag) {\n this.tag = tag;\n return this;\n }", "public void addTag(Tag t);", "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 }", "void setNilTag();", "public void setTag(List<Tag> tag)\n\t{\n\t\t this.addKeyValue(\"Tag\", tag);\n\n\t}", "public void setToTag(String tag) {\n try{\n toHeader.setTag(tag);\n }\n catch(ParseException e) {}\n }", "public static void setTag(String string) {\n\t\ttags.put(last[0], string);\n\t}", "@JsonSetter(\"tag\")\r\n public void setTag(String tag) {\r\n this.tag = tag;\r\n }", "protected void initTag()\n {\n }", "public EpmlElement(String tag) {\n\t\tthis.tag = tag;\n\t}", "public Event setTag(String tag) {\n this.tag = tag;\n return this;\n }", "public void setTagName(String tagName) {\n this.tagName = tagName;\n }", "protected void tag (int ltagStart) throws HTMLParseException {\r\n Tag tag = new Tag ();\r\n Token token = new Token (tag, false);\r\n switch (nextToken) {\r\n case STRING:\r\n tag.setType (stringValue);\r\n match (STRING);\r\n arglist (tag);\r\n if (tagmode) {\r\n block.setRest (lastTagStart);\r\n } else {\r\n token.setStartIndex (ltagStart);\r\n //block.addToken (token);\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(token);\r\n }\r\n break;\r\n case MT:\r\n tagmode = false;\r\n match (MT);\r\n break;\r\n case END:\r\n block.setRest (lastTagStart);\r\n tagmode = false;\r\n return;\r\n default:\r\n arglist (tag);\r\n }\r\n }", "public void setTagName(String tagName) {\r\n\t\tthis.tagName = tagName;\r\n\t}", "@Api(1.1)\n @NonNull\n public Builder tag(Object tag) {\n mRequestBuilder.tag(tag);\n return this;\n }", "public boolean setTag(int tag)\n {\n if (tag < 0) {\n return false;\n }\n\n tag_ = tag;\n return true;\n }", "public void setCustomTag(String pTagName, String pTagValue){\n\t\tassert pTagName != null && pTagValue != null;\n\t\taCustomTags.put(pTagName, pTagValue);\n\t}", "void addTag(String tag){tags.add(tag);}", "public void addTag (@Nonnull ITag tag);", "@Override\n protected void onComponentTag(final ComponentTag _tag)\n {\n _tag.setName(\"a\");\n super.onComponentTag(_tag);\n onComponentTagInternal(_tag);\n }", "public void setTagName(String tagName) {\n this.tagName = tagName == null ? null : tagName.trim();\n }", "public void setTagName(String tagName) {\n this.tagName = tagName == null ? null : tagName.trim();\n }", "public void setIdTag(java.lang.String idTag)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDTAG$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDTAG$0);\n }\n target.setStringValue(idTag);\n }\n }", "public void setTAG(String TAG) {\r\n this.TAG = TAG == null ? null : TAG.trim();\r\n }", "private void setHasTag(int value) {\n \n hasTag_ = value;\n }", "public String getTag() {\r\n return tag;\r\n }", "public String getTag() {\n return tag;\n }", "public String getTag() {\n return tag;\n }", "public String getTag() {\n return tag;\n }", "public static void setProperty(String tag, String val) {\n\n prop.setProperty(tag, val);\n }", "public void setTagPosition(int position) {\n\t\tthis.position = position;\n\t}", "public String getTag() {\n\t\treturn tag;\n\t}", "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 String getTag()\n\t{\n\t\treturn tag;\n\t}", "public String getTag()\n\t{\n\t\treturn tag;\n\t}", "@Override\r\n\tpublic void setParent(Tag arg0) {\n\t}", "public void setElement (T element) {\r\n\t\t\r\n\t\tthis.element = element;\r\n\t\r\n\t}", "public Builder setTag(\n int index, org.multibit.hd.core.protobuf.MBHDContactsProtos.Tag value) {\n if (tagBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureTagIsMutable();\n tag_.set(index, value);\n onChanged();\n } else {\n tagBuilder_.setMessage(index, value);\n }\n return this;\n }", "public void setItTag(String itTag) {\n this.itTag = itTag == null ? null : itTag.trim();\n }", "public String getTag() {\n return this.tag;\n }", "public void setElement(T elem)\n {\n\n element = elem;\n }", "public Tags() {\n set (\"\");\n }", "public Tag(String name) {\n tagName = name;\n }", "public String getTag()\n {\n return this.tag;\n }", "public Tags (String tags) {\n set (tags);\n }", "public void setFromTag(String tag){\n try{\n fromHeader.setTag(tag);\n }\n catch(ParseException e) {}\n }", "public void addTag(Tag tag) {\n fullPhoto.addTag(tag);\n }", "protected void setFragmentTag(String tag) {\n\t\tif (mContext == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (mContext instanceof BaseActivity) {\n\t\t\tBaseActivity activity = (BaseActivity) mContext;\n\t\t\tactivity.setCurrentFragment(tag);\n\t\t}\n\t}", "public void setTagname(String tagname) {\n this.tagname = tagname == null ? null : tagname.trim();\n }", "java.lang.String getTag();", "java.lang.String getTag();", "@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}", "public void setRoomTag(Room room){\n roomTag.setRoomName(room.getName());\n roomTag.addAction(Actions.sequence(\n Actions.parallel(\n Actions.fadeIn(1f),\n Actions.moveBy(0, -roomTag.getHeight() - 10, 1f)),\n Actions.delay(2f),\n Actions.fadeOut(1f)));\n }", "protected Element el(String tag){\n\t\treturn doc.createElement(tag);\n\t}", "String getTag() {\n return tag;\n }", "public void setElement(String newElem) { element = newElem;}", "public void setElement(Object e) {\n element = e;\n }", "public void setElement(T element) {\n\t\tthis.element = element;\n\t}", "@Override\n\tpublic void addChild(HTMLGenerator tag) {\n\t\tthis.tags.add(tag);\n\t}", "public String getTag();", "protected Element el(String tag, Node i){\n\t\tElement e = doc.createElement(tag);\n\t\tif (i instanceof Attr) { \n\t\t\te.setAttributeNode((Attr)i);\n\t\t} else {\n\t\t\te.appendChild(i);\n\t\t}\n\t\treturn e;\n\t}", "Tag createTag();", "public void init(List<String> text, String tag) {\n if (null == this.text)\n this.text = text;\n else\n tags.getLast().text = text;\n tags.addLast(new Tag(tag));\n }", "public Tag(String name) {\n this.name = name;\n }", "public void addSupportedTag(String tag);", "@Override\n\tpublic void saveTag(Tag newTag) throws Exception {\n\n\t}", "public void setValue(T v){\n \telement = v;\n }", "public void fromNBT(NBTTagCompound tag)\n {\n this.name = tag.getString(\"Name\");\n }", "public Tag(String name) {\n\t\tthis.name = name;\n\t}", "public void settInn(T element);", "static void openTag(String name) { openTag(name,true); }", "public String tag()\r\n {\r\n return this.tag;\r\n }", "public void setElement(T newvalue);", "void updateTags();", "public void toNBT(NBTTagCompound tag)\n {\n tag.setString(\"Name\", this.name);\n }", "public Builder tag(String tag) {\n command.tag(tag);\n return this;\n }", "public void doTag()\n throws JspException\n {\n if (hasErrors()) {\n reportErrors();\n return;\n }\n\n JspTag tag = SimpleTagSupport.findAncestorWithClass(this, IAttributeConsumer.class);\n if (!(tag instanceof IAttributeConsumer)) {\n String s = Bundle.getString(\"Tags_AttributeInvalidParent\");\n registerTagError(s, null);\n reportErrors();\n return;\n }\n\n IAttributeConsumer ac = (IAttributeConsumer) tag;\n ac.setAttribute(_name, _value, _facet);\n return;\n }", "public void selectTag(String t) {\n\t\tif (!selectedTags.contains(t)) {\n\t\t\tthis.selectedTags.add(t);\n\t\t} else {\n\t\t\tSystem.out.println(\"Tag already selected!\");\n\t\t}\n\t}" ]
[ "0.7948121", "0.7937405", "0.7916146", "0.7801495", "0.7557807", "0.7444993", "0.7342093", "0.7342093", "0.730135", "0.7249093", "0.7224077", "0.713941", "0.70487785", "0.7033261", "0.70098734", "0.6897802", "0.68966955", "0.6867057", "0.6815589", "0.68132544", "0.6709513", "0.66110486", "0.65610576", "0.6505311", "0.6482972", "0.6467983", "0.64530575", "0.64507633", "0.6445788", "0.6421948", "0.6385395", "0.6352954", "0.6348436", "0.6287284", "0.6207883", "0.61917144", "0.6176611", "0.61443675", "0.6133052", "0.61221194", "0.60905915", "0.60900223", "0.6075739", "0.6075739", "0.6060106", "0.60600054", "0.6039557", "0.6031658", "0.60074043", "0.60074043", "0.5948353", "0.59474254", "0.59254485", "0.5915231", "0.5909561", "0.59032065", "0.59032065", "0.58991766", "0.58954704", "0.5893137", "0.5886626", "0.58818686", "0.5876547", "0.5872416", "0.5856653", "0.58554703", "0.5849274", "0.58444905", "0.5833872", "0.58292043", "0.5805011", "0.5800012", "0.5800012", "0.5789917", "0.5786095", "0.5781982", "0.57773775", "0.5775708", "0.57741666", "0.5770537", "0.57669365", "0.57646114", "0.5756915", "0.5728173", "0.5724384", "0.5715839", "0.5710977", "0.5699944", "0.56875587", "0.56859344", "0.5681096", "0.56782186", "0.5677112", "0.5667424", "0.5657898", "0.5650842", "0.56469977", "0.5637284", "0.5632954", "0.5624593" ]
0.7870362
3
Sets (as xml) the "tag" element
void xsetTag(org.apache.xmlbeans.XmlString tag);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTag(String tagName, Object value);", "public void setToTag(String tag) throws ParseException,NullPointerException;", "public void setTag(String tag);", "void setTag(java.lang.String tag);", "public void setTag(Object tag)\n {\n fTag = tag;\n }", "public void setTag( String tag )\n {\n this.tag = tag;\n }", "public void setFromTag(String tag) throws ParseException,NullPointerException;", "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 setTag(String tag) {\r\n this.tag = tag;\r\n }", "void addTag(String name, String value);", "public void setTag(String tag) {\n this.tag = tag;\n }", "public void setTag(String tag) {\n this.tag = tag;\n }", "Tag(String name){\r\n this.tagName = name;\r\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 }", "@Override\n public void setTag(int t) {\n this.tag = t;\n\n }", "public void setTag(int tag) {\n this.tag = tag;\n }", "@Override\r\n public String getXMLTag() {\r\n return XMLTAG;\r\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 setTagProperty(String tagProperty);", "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 }", "@Override\n public String getXMLTag() {\n return XMLTAG;\n }", "public EpmlElement(String tag) {\n\t\tthis.tag = tag;\n\t}", "public Tag(String tag) {\n\t\tthis.tag = tag;\n\t}", "private static void addTag(StringBuilder xml, final String name,\n\t\t\tfinal String value) {\n\t\tString v = StringMethods.stripHTML(value, true);\n\t\t\n\t\tv = v.replace(\"&\", \"&amp;\");\n\t\tv = v.replace(\"<\", \"&lt;\").replace(\">\", \"&gt;\");\n\t\tv = v.replaceAll(\"\\\\s+\", \" \");\n\n\t\txml.append(\"\\t<\").append(name).append(\">\");\n\t\txml.append(v.trim());\n\t\txml.append(\"</\").append(name).append(\">\\n\");\n\t}", "public void addTag(String tag) {\n this.tag = tag;\n }", "public void setToTag(String tag) {\n try{\n toHeader.setTag(tag);\n }\n catch(ParseException e) {}\n }", "public void setIdTag(java.lang.String idTag)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDTAG$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDTAG$0);\n }\n target.setStringValue(idTag);\n }\n }", "public void setMyTag(int theTag)\n\t{\n\t\tmyTag = theTag;\n\t}", "public TagAttributeHandlerBuilder tag(String tag) {\n this.tag = tag;\n return this;\n }", "public static String xmlTag() { return XMLTAG; }", "public static String xmlTag() { return XMLTAG; }", "public String getTag() {\r\n return new String(XML_TAG);\r\n }", "public String getTag() {\n return new String(XML_TAG);\n }", "public void setCustomTag(String pTagName, String pTagValue){\n\t\tassert pTagName != null && pTagValue != null;\n\t\taCustomTags.put(pTagName, pTagValue);\n\t}", "public void setTag(ProgramTags tag) {\n\t\tthis.tag = program.getTagIfPresent(tag.getTag());\n\t}", "protected Element el(String tag){\n\t\treturn doc.createElement(tag);\n\t}", "public static String getXmltag() {\r\n\t\treturn xmltag;\r\n\t}", "public void addTag(Tag t);", "protected void tag (int ltagStart) throws HTMLParseException {\r\n Tag tag = new Tag ();\r\n Token token = new Token (tag, false);\r\n switch (nextToken) {\r\n case STRING:\r\n tag.setType (stringValue);\r\n match (STRING);\r\n arglist (tag);\r\n if (tagmode) {\r\n block.setRest (lastTagStart);\r\n } else {\r\n token.setStartIndex (ltagStart);\r\n //block.addToken (token);\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(token);\r\n }\r\n break;\r\n case MT:\r\n tagmode = false;\r\n match (MT);\r\n break;\r\n case END:\r\n block.setRest (lastTagStart);\r\n tagmode = false;\r\n return;\r\n default:\r\n arglist (tag);\r\n }\r\n }", "public void setXml(java.lang.String newXml);", "public static void setTag(String string) {\n\t\ttags.put(last[0], string);\n\t}", "org.apache.xmlbeans.XmlString xgetTag();", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public static final void XML(final StringBuilder buffer, final int level,\n \t\tfinal String tag, final String value)\n {\n indent(buffer, level);\n buffer.append(\"<\").append(tag).append(\">\");\n buffer.append(escapeXMLstring(value));\n buffer.append(\"</\").append(tag).append(\">\\n\");\n }", "@Test\n\tpublic void addAttribute() {\n\t\tXMLTagParser.addNewElement(\"Person\");\n\n\t\tXMLTagParser.editElement(\"Person\", \"name\", \"tony\");\n\t\tassertEquals(XMLTagParser.getTagValueFromElement(\"Person\", \"name\"), \"tony\");\n\t}", "public static void setProperty(String tag, String val) {\n\n prop.setProperty(tag, val);\n }", "private void setHasTag(int value) {\n \n hasTag_ = value;\n }", "public void setTagName(String tagName) {\n this.tagName = tagName;\n }", "public boolean setTag(int tag)\n {\n if (tag < 0) {\n return false;\n }\n\n tag_ = tag;\n return true;\n }", "protected Element el(String tag, Node i){\n\t\tElement e = doc.createElement(tag);\n\t\tif (i instanceof Attr) { \n\t\t\te.setAttributeNode((Attr)i);\n\t\t} else {\n\t\t\te.appendChild(i);\n\t\t}\n\t\treturn e;\n\t}", "public Event setTag(String tag) {\n this.tag = tag;\n return this;\n }", "@JsonSetter(\"tag\")\r\n public void setTag(String tag) {\r\n this.tag = tag;\r\n }", "public void setTag(List<Tag> tag)\n\t{\n\t\t this.addKeyValue(\"Tag\", tag);\n\n\t}", "@Api(1.1)\n @NonNull\n public Builder tag(Object tag) {\n mRequestBuilder.tag(tag);\n return this;\n }", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "public void setTagName(String tagName) {\r\n\t\tthis.tagName = tagName;\r\n\t}", "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 }", "@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}", "void setNilTag();", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void setParent(Tag arg0) {\n\t}", "protected void initTag()\n {\n }", "public void setAttribute(String name, Object value);", "public void setTagPosition(int position) {\n\t\tthis.position = position;\n\t}", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public void toNBT(NBTTagCompound tag)\n {\n tag.setString(\"Name\", this.name);\n }", "public void setElement(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/element\",v);\n\t\t_Element=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public String getTag() {\r\n return tag;\r\n }", "public String toXMLTag() {\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\ttoXMLTag(buffer,0);\n\t\treturn buffer.toString();\n\t}", "private void toXMLTag(StringBuffer buffer, int level) {\n\t\tindent(buffer,level).append('<').append(name);\n\n\t\tif(attributes!=null && attributes.getLength()>0)\n\t\t\tbuffer.append(' ').append(attributes.toString());\n\n\t\tif(children.size()>0) {\n\t\t\tbuffer.append(\">\\n\");\n\t\t\tfor(int i=0; i<children.size(); i++)\n\t\t\t\t((WSLNode)children.elementAt(i)).toXMLTag(buffer, level+1);\n\t\t\tindent(buffer,level).append(\"</\").append(name).append(\">\\n\");\n\t\t} else buffer.append(\" />\\n\");\n\t}", "public String getTag() {\n return tag;\n }", "public String getTag() {\n return tag;\n }", "@Override\n protected void onComponentTag(final ComponentTag _tag)\n {\n _tag.setName(\"a\");\n super.onComponentTag(_tag);\n onComponentTagInternal(_tag);\n }", "Tag createTag();", "@Override\n\tpublic void saveTag(Tag newTag) throws Exception {\n\n\t}", "public void setElement(String newElem) { element = newElem;}", "java.lang.String getTag();", "java.lang.String getTag();", "void addTag(String tag){tags.add(tag);}", "public String getTag() {\n\t\treturn tag;\n\t}", "static void openTag(String name) { openTag(name,true); }", "public void setFromTag(String tag){\n try{\n fromHeader.setTag(tag);\n }\n catch(ParseException e) {}\n }", "public String getTag() {\n return tag;\n }", "public String getTag()\n\t{\n\t\treturn tag;\n\t}", "public String getTag()\n\t{\n\t\treturn tag;\n\t}", "public void addTag (@Nonnull ITag tag);", "@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}", "public void setTagName(String tagName) {\n this.tagName = tagName == null ? null : tagName.trim();\n }", "public void setTagName(String tagName) {\n this.tagName = tagName == null ? null : tagName.trim();\n }", "@Override\n\tpublic void addChild(HTMLGenerator tag) {\n\t\tthis.tags.add(tag);\n\t}", "private void set(String sEmailTag, String sFirstNameTag, String sIdTag, String sLastNameTag)\r\n\t{\r\n\t\tthis.sEmailTag = sEmailTag;\r\n\t\tthis.sFirstNameTag = sFirstNameTag;\r\n\t\tthis.sIdTag = sIdTag;\r\n\t\tthis.sLastNameTag = sLastNameTag;\r\n\t\t\r\n\t}", "public String getTag();", "static void openTag(String name, boolean endTag) {\n openMinorTag(name);\n if (endTag)\n closeTag(false);\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}", "public Builder setTag(\n int index, org.multibit.hd.core.protobuf.MBHDContactsProtos.Tag value) {\n if (tagBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureTagIsMutable();\n tag_.set(index, value);\n onChanged();\n } else {\n tagBuilder_.setMessage(index, value);\n }\n return this;\n }", "String getTag() {\n return tag;\n }", "public String getTag() {\n return this.tag;\n }", "private void setName(){\r\n\t\tString tagString = new String();\r\n\t\tfor (String k : tags.keySet()){\r\n\t\t\ttagString += \"@\" + k;\r\n\t\t}\r\n\t\tString newName = originalName + tagString +\".\"+ extension;\r\n\t\tif (!newName.equals(name)){\r\n\t\t\tremovePrevNames(newName); //if the new name is a previous name\r\n\t\t\taddPrevNames(name);\r\n\t\t\tupdateLog(newName);\r\n\t\t\tname = newName;\r\n\t\t\t//notify the tag observer\r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers();\r\n\t\t\tclearChanged();\r\n\t\t}\r\n\t}", "public String getTagName() {\n return this.tagName;\n }" ]
[ "0.7439464", "0.7197707", "0.7181972", "0.7141809", "0.7080885", "0.6774644", "0.66645384", "0.66642505", "0.6662597", "0.65796465", "0.6556268", "0.6556268", "0.6523865", "0.651522", "0.6490936", "0.6468637", "0.643161", "0.64081186", "0.63873106", "0.63591003", "0.634903", "0.63418716", "0.6289378", "0.62373656", "0.62125814", "0.6159704", "0.6118807", "0.6111634", "0.6057231", "0.6048759", "0.6048759", "0.60471135", "0.6023563", "0.6018903", "0.59333205", "0.5907609", "0.5900162", "0.58967257", "0.5885606", "0.5870279", "0.5830045", "0.5823682", "0.5806637", "0.57908636", "0.57906383", "0.5779501", "0.5777088", "0.57704246", "0.5762715", "0.57568043", "0.5754735", "0.57479596", "0.57370985", "0.57300085", "0.57163876", "0.57163876", "0.57012856", "0.56899154", "0.56816673", "0.56608456", "0.56585777", "0.56532776", "0.56494325", "0.56352574", "0.5622632", "0.56117046", "0.5609479", "0.56086755", "0.559852", "0.5587424", "0.5587065", "0.5579674", "0.5579674", "0.55792236", "0.55499583", "0.55451405", "0.5541336", "0.5536587", "0.5536587", "0.55266297", "0.55200076", "0.55163205", "0.5513989", "0.5510824", "0.550604", "0.550604", "0.54991883", "0.5496144", "0.54731214", "0.54731214", "0.5472242", "0.5468206", "0.54670984", "0.5457638", "0.54547465", "0.545143", "0.5446611", "0.5443861", "0.54363054", "0.54263633" ]
0.74593806
0
Nils the "tag" element
void setNilTag();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Tag getTag() {\n\t\treturn null;\n\t}", "public static Tag emptyTag() {\n\t\treturn new Tag(NAME, \"\");\n\t}", "private void clearHasTag() {\n \n hasTag_ = 0;\n }", "void unsetTag();", "boolean isNilTag();", "@objid (\"002ff058-0d4f-10c6-842f-001ec947cd2a\")\n @Override\n public Object visitElement(Element theElement) {\n return null;\n }", "@Override\n\tpublic String getTagName() {\n\t\treturn null;\n\t}", "private void assertStreamItemViewHasNoTag() {\n Object tag = mView.getTag();\n assertNull(\"should not have a tag\", tag);\n }", "@Override\n\tpublic Tag getPreTag() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Element getElement() {\n\t\treturn null;\n\t}", "@Override\n\t\tprotected Element getElement(ElementType button) {\n\t\t\treturn null;\n\t\t}", "private Node() {\n // Start empty.\n element = null;\n }", "public Builder clearTag() {\n \n tag_ = getDefaultInstance().getTag();\n onChanged();\n return this;\n }", "@Override\n\tpublic Tag getPosTag() {\n\t\treturn null;\n\t}", "public Builder clearTag() {\n if (tagBuilder_ == null) {\n tag_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000080);\n onChanged();\n } else {\n tagBuilder_.clear();\n }\n return this;\n }", "@Override\n public Void visitUnknown(Element e, Void p) {\n return null;\n }", "protected void initTag()\n {\n }", "@Override\r\n\tpublic Tag getParent() {\n\t\treturn null;\r\n\t}", "private void initializeTag()\n {\n Iterator<node_info> it=this.ga.getV().iterator();\n while(it.hasNext())\n {\n it.next().setTag(Double.POSITIVE_INFINITY);\n }\n }", "public void unsetTag(String tagName);", "@Override\n\tpublic String getElementName() {\n\t\treturn null;\n\t}", "public Tag() {\n\t}", "public Tag() {\n\t}", "void writeNullObject() throws SAXException {\n workAttrs.clear();\n addIdAttribute(workAttrs, \"0\");\n XmlElementName elemName = uimaTypeName2XmiElementName(\"uima.cas.NULL\");\n startElement(elemName, workAttrs, 0);\n endElement(elemName);\n }", "private static String noTag(String name) {\n Matcher tagMatcher = TAG_REGEX.matcher(name);\n if (tagMatcher.find()) {\n return tagMatcher.replaceAll(\"\").trim();\n }\n return name;\n }", "@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}", "@Override\r\n\tpublic E element() {\n\t\treturn null;\r\n\t}", "@Override\r\n public Element findElement()\r\n {\n return null;\r\n }", "public void clear(boolean nulltags) {\n \t\tArrays.fill(tags, null);\n \t\tnumTags = 0;\n \t}", "public boolean isEmptyElementTag() {\r\n\t\treturn source.charAt(end-2)=='/';\r\n\t}", "@Override\r\n\tpublic void stoppElement(Enum tag) {\n\t\t\r\n\t}", "@Override\n\tpublic Tag getTag(String tagId) throws Exception {\n\t\treturn null;\n\t}", "public Tags() {\n set (\"\");\n }", "public void skipTag(String tag) throws ParseException {\n goToTag(tag);\n movePositionToEndOfTag(tag);\n }", "@Override\n public String visit(NodeList n, Object arg) {\n return null;\n }", "public void clearTagArray(){\n\t\t\n\t\ttagArray.clear();\n\t\t\n\t}", "private void tagZero(graph g) {\n\t\tCollection<node_data> temp = g.getV();\n\t\tfor (node_data node : temp) {\n\t\t\tnode.setTag(0);\n\t\t}\n\t}", "void removeTag(String tag){tags.remove(tag);}", "@Test\n public void testAddNullAttribute() {\n Tag tag = new BaseTag(\"testtag\");\n String attributeName = \"testAttr\";\n tag.addAttribute(attributeName, null);\n assertNull(\"Wrong attribute value returned\", tag.getAttribute(attributeName));\n assertNotNull(\"No attribute map\", tag.getAttributes());\n assertEquals(\"Wrong attribute map size\", 0, tag.getAttributes().size());\n }", "@Override\n\tpublic Object visit(SimpleNode node, Object data) {\n\t\treturn null;\n\t}", "public Element createEmptyElement(EmptyTask task) {\n\t\tElement empty = this.document.createElement(\"empty\");\n\t\t\n//\t\tBPELUtil.setStandardAttributes(empty, task);\n\t\t\n//\t\treturn createScopeForAttachedHandlers(empty, task);\n\t\treturn null;\n\t\t\n\t}", "public void clearRemovalTag() {\n\t levelOfRemoval = 0;\n\t}", "public static void remove() {\n if (create()) {\n DOM.removeChild((com.google.gwt.user.client.Element) \n tag.getParentElement(), \n (com.google.gwt.user.client.Element) tag);\n tag = null;\n removed = true;\n }\n }", "public void setEmptyTags (String[] tags) {\n\t\temptyTags = tags;\n\t}", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "public boolean isBlank() {\n return (tags.length() == 0);\n }", "public Builder clearTagValue() {\n bitField0_ = (bitField0_ & ~0x00000001);\n tagValue_ = getDefaultInstance().getTagValue();\n onChanged();\n return this;\n }", "void processTag(XMLNode tag) throws Exception {\n if(tag.type()== XMLNode.Type.TAG){\n state.traceTagBegin(tag.getTag()==null?\"process\":tag.getTag(),null);\n tagstk[tagstkptr++] = tag.getTag();\n \n dataloader.beginTag(tagstk, tagstkptr, tag.getTag(), tag.getAttribs());\n if(tag.getTags()!= null) for(XMLNode nextTag : tag.getTags()){\n processTag(nextTag);\n }\n ((LoadDatamapData)dataloader).endTag(tagstk, tagstkptr, tag, tag.getBody(), tag.getAttribs());\n \n tag.clearRef();\n \n tagstkptr--;\n tagstk[tagstkptr]= null;\n state.traceTagEnd();\n }\n }", "public Builder clearHasTag() {\n copyOnWrite();\n instance.clearHasTag();\n return this;\n }", "public void setTag(String tag) {\r\n this.tag = tag;\r\n }", "@Override\n public String visit(EmptyStmt n, Object arg) {\n return null;\n }", "public void setTag( String tag )\n {\n this.tag = tag;\n }", "@Override\n\tpublic Element toElement() {\n\t\treturn null;\n\t}", "private void clean(Element e, String tag) {\n Elements targetList = e.getElementsByTag(tag);\n targetList.remove();\n }", "public static boolean XmlEmptyTag(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"XmlEmptyTag\")) return false;\n if (!nextTokenIs(b, XMLSTARTTAGSTART)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, XMLSTARTTAGSTART);\n r = r && XmlTagName(b, l + 1);\n r = r && XmlEmptyTag_2(b, l + 1);\n r = r && XmlEmptyTag_3(b, l + 1);\n r = r && XmlEmptyTag_4(b, l + 1);\n r = r && consumeToken(b, XMLEMPTYELEMENTEND);\n exit_section_(b, m, XML_EMPTY_TAG, r);\n return r;\n }", "@Ignore\n @Test(expected = NullPointerException.class)\n public void failOnNullTag() throws Exception {\n }", "public void setTag(String tag) {\n this.tag = tag;\n }", "public void setTag(String tag) {\n this.tag = tag;\n }", "public void clearFields() {\n tags.clear();\n tagText.setText(\"\");\n ((ImageView)findViewById(R.id.picture)).setImageResource(android.R.color.transparent);\n }", "public void addMandatoryTag(Tag t) {\n\t\tmandatoryTags.add(t);\n\t}", "protected Element el(String tag){\n\t\treturn doc.createElement(tag);\n\t}", "public void setNilUniqueName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(UNIQUENAME$10, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(UNIQUENAME$10);\r\n }\r\n target.setNil();\r\n }\r\n }", "public void emptyElement(String element) throws IOException {\r\n emptyElement(null, element);\r\n }", "java.lang.String getTag();", "java.lang.String getTag();", "@Override\n public NodeList getChildNodes() {\n return null;\n }", "public void setTagName(String tagName) {\n this.tagName = tagName == null ? null : tagName.trim();\n }", "public void setTagName(String tagName) {\n this.tagName = tagName == null ? null : tagName.trim();\n }", "public boolean isSetTag() {\n return this.tag != null;\n }", "@Override\n public void visit(NoOpNode noOpNode) {\n }", "@Override\n public String getElementId()\n {\n return null;\n }", "@Override\r\n\t\tpublic Attr getAttributeNode(String name)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void setItTag(String itTag) {\n this.itTag = itTag == null ? null : itTag.trim();\n }", "@Override\n\tpublic Object visit(ASTTagName node, Object data) {\n\t\tSystem.out.print(node.tagName);\n\t\treturn null;\n\t}", "protected boolean isEmptyXmlTagExpanded() {\n return false;\n }", "public String showNullTags(String word, ArrayList<String> nullTags) {\n StringBuilder stringBuilder = new StringBuilder();\n if (nullTags.size() > 0) {\n stringBuilder.append((nullTags.size() == 1 ? \"This tag \" : \"These tags \")\n + \"doesn't exist in the word \\\"\" + word + \"\\\"\" + \"\\n\");\n for (String tag : nullTags) {\n stringBuilder.append(tag + \"\\n\");\n }\n }\n return stringBuilder.toString();\n }", "protected void handleStart(HtmlDocument.Tag tag) {\n if (!tag.isSelfTerminating()) {\n // Add to the stack of tags needing closing tag\n mSeenTags.push(new TagWrapper(tag, mBuilder.length()));\n }\n }", "public void setToTag(String tag) throws ParseException,NullPointerException;", "public void removeSupportedTag(String tag);", "public TagRecord() {\n super(Tag.TAG);\n }", "public String getNullAttribute();", "@Override\r\n\t\tpublic NamedNodeMap getAttributes()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void makeEmpty()\n {\n root = nil;\n }", "@Override\n\tpublic String getInnerText() {\n\t\treturn null;\n\t}", "@Override\n public String visit(UnknownType n, Object arg) {\n return null;\n }", "@Override\n\tpublic void visit(NullValue arg0) {\n\n\t}", "@Override\r\n\tpublic void visit(NullExpression nullExpression) {\n\r\n\t}", "@Override\n public String visit(SimpleName n, Object arg) {\n return null;\n }", "public RemoveNullElementException() {\n }", "public Tags() {\n\t\t\n\t}", "public EpmlElement(String tag) {\n\t\tthis.tag = tag;\n\t}", "public void setTAG(String TAG) {\r\n this.TAG = TAG == null ? null : TAG.trim();\r\n }", "@Override\n\tpublic void visit(NullValue arg0) {\n\t\t\n\t}", "public void setNilPriceEntity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.unitedtote.schema.totelink._2008._06.result.PriceEntity target = null;\n target = (com.unitedtote.schema.totelink._2008._06.result.PriceEntity)get_store().find_element_user(PRICEENTITY$0, 0);\n if (target == null)\n {\n target = (com.unitedtote.schema.totelink._2008._06.result.PriceEntity)get_store().add_element_user(PRICEENTITY$0);\n }\n target.setNil();\n }\n }", "@Override\n public boolean isMissingNode() { return false; }", "@Override\n public void setNull() {\n\n }", "@Override\r\n\tpublic String getInnerText() {\n\t\treturn null;\r\n\t}", "@Override\r\n\t\tpublic NodeList getChildNodes()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void setIdTagsOff () {\n\t\tidTags = false;\n\t}", "public Tag addDefaultTag(){\n StringProperty tagName = new SimpleStringProperty();\n tagName.setValue(\"New Tag\");\n Tag newTag = new Tag(tagName);\n\n\n /* verify if id is integer or string, we handle just strings here\n newTag.setIdProperty(0);\n */\n\n addTag(newTag);\n\n System.out.println(contentFromTags(tags));\n\n return newTag;\n }" ]
[ "0.7372113", "0.7116523", "0.6857164", "0.6781757", "0.67446923", "0.6692234", "0.65835327", "0.64562225", "0.63903487", "0.63576615", "0.6273758", "0.6249805", "0.62474793", "0.61707395", "0.6103479", "0.6084192", "0.60669774", "0.6059483", "0.6054281", "0.59994704", "0.595198", "0.59373635", "0.59373635", "0.5901016", "0.58993566", "0.58861864", "0.5845631", "0.5825166", "0.5797218", "0.5772109", "0.57434314", "0.56944567", "0.5690912", "0.56729543", "0.56725657", "0.5670855", "0.5667452", "0.5662107", "0.5644773", "0.56371456", "0.5625917", "0.562524", "0.56084484", "0.56017685", "0.55951834", "0.5592508", "0.5587199", "0.5579659", "0.5555117", "0.55455863", "0.55415446", "0.5539741", "0.55325335", "0.55288583", "0.55276096", "0.55193365", "0.5515766", "0.5515766", "0.5504751", "0.5500715", "0.549574", "0.54865867", "0.54811406", "0.54677624", "0.54677624", "0.5458993", "0.5455271", "0.5455271", "0.54239476", "0.5415978", "0.5414218", "0.5396265", "0.53862214", "0.5385759", "0.5374624", "0.5367015", "0.53612876", "0.53524363", "0.53491205", "0.5345613", "0.5342972", "0.5342188", "0.5342158", "0.5328988", "0.5324239", "0.53241986", "0.5323279", "0.5310119", "0.53023744", "0.53011286", "0.53006774", "0.5295991", "0.5295967", "0.5293081", "0.5287381", "0.52863216", "0.52786165", "0.52774143", "0.52688617", "0.5265494" ]
0.7198745
1
Unsets the "tag" element
void unsetTag();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unsetTag(String tagName);", "public Builder clearTag() {\n \n tag_ = getDefaultInstance().getTag();\n onChanged();\n return this;\n }", "private void clearHasTag() {\n \n hasTag_ = 0;\n }", "public Builder clearTag() {\n if (tagBuilder_ == null) {\n tag_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000080);\n onChanged();\n } else {\n tagBuilder_.clear();\n }\n return this;\n }", "public void clearRemovalTag() {\n\t levelOfRemoval = 0;\n\t}", "private void clean(Element e, String tag) {\n Elements targetList = e.getElementsByTag(tag);\n targetList.remove();\n }", "public void clearTagArray(){\n\t\t\n\t\ttagArray.clear();\n\t\t\n\t}", "void removeTag(String tag){tags.remove(tag);}", "public void removeHighlight(Object tag) {}", "public Builder clearTagValue() {\n bitField0_ = (bitField0_ & ~0x00000001);\n tagValue_ = getDefaultInstance().getTagValue();\n onChanged();\n return this;\n }", "private void jTextField_tagMouseClicked(java.awt.event.MouseEvent evt) {\n jTextField_tag.setText(\"\");\n }", "public com.babbler.ws.io.avro.model.BabbleValue.Builder clearTags() {\n tags = null;\n fieldSetFlags()[4] = false;\n return this;\n }", "public static void remove() {\n if (create()) {\n DOM.removeChild((com.google.gwt.user.client.Element) \n tag.getParentElement(), \n (com.google.gwt.user.client.Element) tag);\n tag = null;\n removed = true;\n }\n }", "void setNilTag();", "public void setIdTagsOff () {\n\t\tidTags = false;\n\t}", "public void removeSupportedTag(String tag);", "public void clearFields() {\n tags.clear();\n tagText.setText(\"\");\n ((ImageView)findViewById(R.id.picture)).setImageResource(android.R.color.transparent);\n }", "public void unsetItalic()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ITALIC$6, 0);\n }\n }", "void unset() {\n size = min = pref = max = UNSET;\n }", "void unsetDesc();", "public void unsetBold()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BOLD$4, 0);\n }\n }", "public Builder clearHasTag() {\n copyOnWrite();\n instance.clearHasTag();\n return this;\n }", "public void unsetTpg()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(TPG$30, 0);\r\n }\r\n }", "public void unsetTpe()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(TPE$32, 0);\r\n }\r\n }", "public void removeTag(Tag tag) {\n this.tags.remove(tag);\n }", "@Override\n public void release() {\n // do *not* reset tag attributes\n }", "void unsetLabel();", "public void unset(){\n\t\tcurrentInst = -1;\n\t}", "public void unsetTpd()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(TPD$34, 0);\r\n }\r\n }", "@Override\n\t\tprotected void resetAttribute() {\n\t\t}", "public void unsetGi()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GI$22, 0);\r\n }\r\n }", "public void unsetText()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEXT$18, 0);\n }\n }", "public static void freeTag(int tag) {\n\t\tsynchronized (reservedTags) {\n\t\t\treservedTags.remove((Integer) tag);\n\t\t}\n\t}", "void unsetValueAttachment();", "public void deleteTag(Tag tag){\r\n\t\tString tagName = tag.getName();\r\n\t\tif (tags.containsKey(tagName)){\r\n\t\t\ttags.remove(tagName);\r\n\t\t\tsetName();\r\n\t\t\tdeleteObserver(tag);\r\n\t\t}\r\n\t}", "public void unsetRegular()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(REGULAR$2, 0);\n }\n }", "public void unsetNamedAnnotTrack()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(NAMEDANNOTTRACK$38, 0);\r\n }\r\n }", "@Override\r\n\tpublic void stoppElement(Enum tag) {\n\t\t\r\n\t}", "void unsetDescription();", "void unsetDescription();", "public void unsetThead()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(THEAD$6, 0);\n }\n }", "public void untagAsRemoved() {\n\t levelOfRemoval --;\n\t}", "public void resetCurrentElement() {\r\n\t\tcurrentNode = firstNode;\r\n\t}", "public void unsetInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(INTERNAL$4, 0);\n }\n }", "public void unsetReset() {\n\t\twasReset=false;\n\t}", "void unsetControlType();", "void unsetValue();", "void unsetValue();", "public void reset() {\n tid.setEnabled(true);\n tid.setText(\"\");\n tname.setText(\"\");\n }", "@Override\n public void unTag(String tagId, String userName, String topicPath) {\n\n\t}", "public void unsetXmlLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(XMLLANG$26);\n }\n }", "public void unsetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(VALUE$12);\n }\n }", "public void unsetBoldItalic()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BOLDITALIC$8, 0);\n }\n }", "public void unsetGiim()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GIIM$6, 0);\r\n }\r\n }", "void unsetUnordered();", "void unsetType();", "public void unsetOID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(OID$12);\r\n }\r\n }", "public Canary clearTagsEntries() {\n this.tags = null;\n return this;\n }", "public void unsetDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(DESC$10);\r\n }\r\n }", "void unsetTarget();", "public void unsetMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(METADATA$0, 0);\n }\n }", "public void unsetGibbmt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GIBBMT$4, 0);\r\n }\r\n }", "void unsetIdentifier();", "void unsetRef();", "public void unsetEmbl()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(EMBL$10, 0);\r\n }\r\n }", "public void reset() {\n\t\tvar.clear();\n\t\tname.clear();\n\t}", "public void resetTitulo()\r\n {\r\n this.titulo = null;\r\n }", "public void resetTitulo()\r\n {\r\n this.titulo = null;\r\n }", "@Override\n\tpublic Tag getTag() {\n\t\treturn null;\n\t}", "public void reset() {\r\n dogNameField.clear();\r\n dogText.clear();\r\n }", "public void reset(){\r\n \tif (blank != null){\r\n \t\tblank.clear();\r\n \t}\r\n \tif (blankNode != null){\r\n \t\tblankNode.clear();\r\n \t}\r\n }", "public void unsetVlanTag1Value() throws JNCException {\n delete(\"vlan-tag1\");\n }", "public void reset() {\r\n\t\t_tb = new TreeBuffer();\r\n\t}", "public Proposal clearTagsEntries() {\n this.tags = null;\n return this;\n }", "public void deleteTag(Tag tag) {\n if ((!this.tags.isEmpty()) && this.tags.get(tags.size() - 1).contains(tag)) {\n String path = getPath();\n ArrayList<Tag> clone = (ArrayList<Tag>) this.tags.get(this.tags.size() - 1).clone();\n clone.remove(tag);\n this.tags.add(clone);\n renameTo(getName(), path);\n }\n }", "public void unsetUniqueName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(UNIQUENAME$10, 0);\r\n }\r\n }", "public void unsetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(EXTLST$14, 0);\n }\n }", "void unsetID();", "private void tear() {\n\t\tthis.torn = true;\n\t\tthis.getContainer().addToContents(getDucatContent());\n\t\tthis.getContainer().removeFromContents(this);\n\t}", "@Override\n public void reset() throws IOException {\n lemmaListIndex = 0;\n lemmaList = Collections.emptyList();\n tagsList.clear();\n super.reset();\n }", "public void unsetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(EXTLST$28, 0);\n }\n }", "void unsetControlPosition();", "public Dataset clearTagsEntries() {\n this.tags = null;\n return this;\n }", "void deleteUnusedTags();", "public void reset() {\n\t\t\t\t\r\n\t\t\t}", "void unsetBegin();", "public void reset() {\n this.state = null;\n }", "protected void clearElement(final ELEMENT element)\r\n {\r\n //Does nothing by default\r\n }", "public void clearSelection() {\n getElement().clearSelection();\n }", "void unsetState();", "void unsetCit();", "public void setToTag(String tag) throws ParseException,NullPointerException;", "UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest);", "public void clear() {\n context = null;\n nestedElements.clear();\n }", "public void setTag(Object tag)\n {\n fTag = tag;\n }", "public Builder clearEtag() {\n etag_ = getDefaultInstance().getEtag();\n bitField0_ = (bitField0_ & ~0x00000200);\n onChanged();\n return this;\n }", "public void clear() {\r\n\t\tthis.document = null;\r\n\t\tthis.elements.clear();\r\n\t}", "public Builder clearEtag() {\n bitField0_ = (bitField0_ & ~0x00000020);\n etag_ = getDefaultInstance().getEtag();\n onChanged();\n return this;\n }", "public void setFromTag(String tag) throws ParseException,NullPointerException;", "public void unsetTfoot()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TFOOT$8, 0);\n }\n }" ]
[ "0.78713644", "0.7343981", "0.72355247", "0.6791388", "0.6736476", "0.6715902", "0.66409916", "0.66138935", "0.65305793", "0.6446266", "0.6435824", "0.637586", "0.6299436", "0.62548035", "0.6233025", "0.61704373", "0.61605316", "0.61576796", "0.613309", "0.6113752", "0.6113721", "0.6112291", "0.61044824", "0.610028", "0.6098228", "0.6093329", "0.6039081", "0.6017869", "0.60034245", "0.6002931", "0.59978735", "0.5991863", "0.5968131", "0.59527004", "0.5936145", "0.59149975", "0.5902764", "0.59018093", "0.5900922", "0.5900922", "0.5888208", "0.5885247", "0.586505", "0.5859594", "0.58543605", "0.58482134", "0.58327603", "0.58327603", "0.5828807", "0.58047587", "0.57858765", "0.5783652", "0.57797503", "0.5774867", "0.57661355", "0.57652193", "0.5749391", "0.57406676", "0.5725665", "0.5724663", "0.57237256", "0.5720306", "0.5718758", "0.571599", "0.5708035", "0.5695594", "0.56833136", "0.56833136", "0.56804943", "0.5664416", "0.5663032", "0.5652514", "0.56429356", "0.5637753", "0.5635201", "0.5632238", "0.5630106", "0.5629491", "0.56290406", "0.56274384", "0.56262565", "0.562316", "0.56217784", "0.56193864", "0.5618541", "0.561619", "0.56154656", "0.56093657", "0.5606967", "0.560495", "0.56010616", "0.5599133", "0.55979663", "0.5594223", "0.55928755", "0.55908895", "0.55893666", "0.55874693", "0.5568152", "0.5562018" ]
0.8468464
0
it will return the available products
@RequestMapping(value ="/customer/product", method = RequestMethod.GET) public String showAvailableProducts(ModelMap model){ logger.info("*** OrderController - showAvailableProducts ***"); List<Product> products = productService.getAllProducts(); model.put("products",products); return "customer_product_list"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Product getPProducts();", "public Set<String> getAvailableProducts() {\n\t\treturn availableProducts.keySet();\n\t}", "private void getAllProducts() {\n }", "public List<Product> getProducts();", "public List<Product> getProducts();", "List<Product> getProductsList();", "List<Product> getAllProducts();", "List<Product> getAllProducts();", "List<Product> getAllProducts();", "List<Product> retrieveProducts();", "@Override\n\tpublic List<ProductInfo> getProducts() {\n\t\treturn shoppercnetproducts;\n\t}", "public void showAllProducts() {\n try {\n System.out.println(Constants.DECOR+\"ALL PRODUCTS IN STORE\"+Constants.DECOR_END);\n List<Product> products = productService.getProducts();\n System.out.println(Constants.PRODUCT_HEADER);\n for (Product product : products) { \n System.out.println((product.getName()).concat(\"\\t\\t\").concat(product.getDescription()).concat(\"\\t\\t\")\n .concat(String.valueOf(product.getId()))\n .concat(\"\\t\\t\").concat(product.getSKU()).concat(\"\\t\").concat(String.valueOf(product.getPrice()))\n .concat(\"\\t\").concat(String.valueOf(product.getMaxPrice())).concat(\"\\t\")\n .concat(String.valueOf(product.getStatus()))\n .concat(\"\\t\").concat(product.getCreated()).concat(\"\\t\\t\").concat(product.getModified())\n .concat(\"\\t\\t\").concat(String.valueOf(product.getUser().getUserId())));\n }\n } catch (ProductException ex) {\n System.out.println(ex);\n }\n }", "private void checkProductAvailability()\n\t{\n\n\t\tprodMsg = \"\";\n\t\tcartIsEmpty = false;\n\n\t\tMap <String,Product> products = getProducts();\n\n\t\tint qtyRequested, qtyAvailable;\n\n\t\t// Check for unavailable products\n\t\tfor ( Product p : shoppingCart.getProducts().keySet() )\n\t\t{\n\t\t\tfor ( String s : products.keySet() )\n\t\t\t{\n\t\t\t\tif ( products.get(s).getName().equals(p.getName()) )\n\t\t\t\t{\n\t\t\t\t\t// Modify product to write to file\n\t\t\t\t\tqtyRequested = shoppingCart.getProducts().get(p);\n\t\t\t\t\tqtyAvailable = products.get(s).getQtyAvailable();\n\n\t\t\t\t\tif ( qtyAvailable < qtyRequested )\n\t\t\t\t\t\tunavailableProds.put(p, new ArrayList <>(Arrays.asList(qtyRequested, qtyAvailable)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Show warning\n\t\tif ( !unavailableProds.isEmpty() )\n\t\t{\n\t\t\tprodMsg = \"The cart products were not available anymore in the requested quantity, only the available quantity has been bought:\\n\\n\";\n\n\t\t\tfor ( Product p : unavailableProds.keySet() )\n\t\t\t{\n\t\t\t\tprodMsg += p.getName() + \": requested: \" + unavailableProds.get(p).get(0) + \", available: \"\n\t\t\t\t\t\t+ unavailableProds.get(p).get(1) + \"\\n\";\n\n\t\t\t\tif ( unavailableProds.get(p).get(1) == 0 )\n\t\t\t\t\tshoppingCart.removeProduct(p);\n\t\t\t\telse\n\t\t\t\t\tshoppingCart.getProducts().replace(p, unavailableProds.get(p).get(1));\n\t\t\t}\n\n\t\t\tif ( shoppingCart.getProducts().size() == 0 )\n\t\t\t{\n\t\t\t\tcartIsEmpty = true;\n\t\t\t\tprodMsg = \"All of your products were not available anymore for purchase: payment cancelled.\\nPlease select some new products.\";\n\t\t\t}\n\t\t}\n\t}", "@GetMapping(\"/available\")\n public ResponseEntity<ApiResponseBase<List<ProductDTO>>> findByAvailability() {\n ApiResponseBase<List<ProductDTO>> pagedApiResponseBase = new ApiResponseBase<>();\n pagedApiResponseBase.setResponse(productService.getProductByAvailability());\n// kafkaTemplate.send(\"Kafka_Task1\", pagedApiResponseBase.getResponse().get(0));\n return new ResponseEntity<>(pagedApiResponseBase, HttpStatus.OK);\n }", "@Override\r\n\tpublic List prodAllseach() {\n\t\treturn adminDAO.seachProdAll();\r\n\t}", "public ArrayList<ItemModel> getAllCheckedProduct() {\n ArrayList<ItemModel> allProducts;\n ArrayList<ItemModel> checkedProducts = new ArrayList<ItemModel>();\n allProducts = getAllProducts();\n Log.d(DatabaseHelper.class.getName(), \"getAllCheckedProducts:\");\n for (ItemModel item : allProducts) {\n if (item.isAcquired()) {\n Log.d(DatabaseHelper.class.getName(), \"\\tgetAllCheckedProducts:\" + item.toString());\n\n checkedProducts.add(item);\n }\n }\n\n return checkedProducts;\n }", "private void fetchProducts() {\n Product p1 = new Product(R.drawable.aj1rls, \"Air Jordan 1 Retro Low Slip\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Jordan\", 9);\n Product p2 = new Product(R.drawable.aj1rhp, \"Air Jordan 1 Retro High Premium\", \"Đen/Trắng\", \"Nữ\", 8500000,9.5,\"Jordan\", 8.7);\n Product p3 = new Product(R.drawable.nm2ktse, \"Nike M2k Tenko SE\", \"Đen/Trắng\", \"Nữ\", 8500000,8,\"Nike\", 8.6);\n Product p4 = new Product(R.drawable.nre55, \"Nike React Element 55\", \"Đen/Trắng\", \"Nữ\", 8500000,8.5,\"Nike\", 9);\n Product p5 = new Product(R.drawable.ncracp, \"NikeCourt Royale AC\", \"Đen/Trắng\", \"Nữ\", 8500000,7,\"Nike\", 8);\n Product p6 = new Product(R.drawable.namff720, \"Nike Air Max FF 720\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p7 = new Product(R.drawable.nam90, \"Nike Air Max 90\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p8 = new Product(R.drawable.nbmby, \"Nike Blazer Mid By You\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p9 = new Product(R.drawable.nam270, \"Nike Air Max 270\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p10 = new Product(R.drawable.ncclxf, \"Air Jordan 1 Retro Low Slip\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Jordan\", 9);\n productList = new ArrayList<>(Arrays.asList(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10));\n }", "public ArrayList<Product> getAllProducts(){\r\n\t\tArrayList<Product> prods = new ArrayList<Product>();\r\n\t\tIterator<Integer> productCodes = inventory.keySet().iterator();\r\n\t\twhile(productCodes.hasNext()) {\r\n\t\t\tint code = productCodes.next();\r\n\t\t\tfor(Product currProduct : Data.productArr) {\r\n\t\t\t\tif(currProduct.getID() == code) {\r\n\t\t\t\t\tprods.add(currProduct);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn prods;\r\n\t}", "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}", "public List<Item> getAllItemsAvailable();", "private void get_products_search()\r\n\r\n {\n MakeWebRequest.MakeWebRequest(\"get\", AppConfig.SALES_RETURN_PRODUCT_LIST,\r\n AppConfig.SALES_RETURN_PRODUCT_LIST + \"[\" + Chemist_ID + \",\"+client_id +\"]\", this, true);\r\n\r\n// MakeWebRequest.MakeWebRequest(\"out_array\", AppConfig.SALES_RETURN_PRODUCT_LIST, AppConfig.SALES_RETURN_PRODUCT_LIST,\r\n// null, this, false, j_arr.toString());\r\n //JSONArray jsonArray=new JSONArray();\r\n }", "public ArrayList<Product> getProducts() {\n\t\tArrayList<Product> scannedItems = new ArrayList<>();\n\n\t\tArrayList<Item> currentPurchases = purchaseList.getCurrentPurchases(); \n\n\t\tfor (Item item : currentPurchases) {\n\t\t\tProduct possibleProductToShow = this.getProductFromItem(item);\n\t\t\tif (possibleProductToShow != null) {\n\t\t\t\tscannedItems.add(possibleProductToShow);\n\t\t\t}\n\t\t}\n\n\t\treturn scannedItems;\n\t}", "private List<Product> extractProducts() {\r\n\t\t//load products from hidden fields\r\n\t\tif (this.getListProduct() != null){\r\n\t\t\tfor(String p : this.getListProduct()){\r\n\t\t\t\tProduct product = new Product();\r\n\t\t\t\tproduct.setId(Long.valueOf(p));\r\n\t\t\t\tthis.products.add(product);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn this.products;\r\n\t}", "public List<Product> getProductList(){\n List<Product> productList = mongoDbConnector.getProducts();\n return productList;\n }", "public List<Product> findAllEnabled();", "private List<ProductView> fetchProducts(String developerId) {\n LOG.debug(\"Enter. developerId: {}.\", developerId);\n\n List<Product> products = productService.getByDeveloperId(developerId);\n\n List<ProductView> result = ProductMapper.toView(products);\n\n List<String> productIds = products.stream().map(Product::getId).collect(Collectors.toList());\n\n Map<String, List<ProductDataView>> productDataViews =\n restClient.getProductData(developerId, productIds);\n\n mergeProductData(result, productDataViews);\n\n cacheApplication.cacheProducts(developerId, result);\n\n LOG.trace(\"Product: {}.\", result);\n LOG.debug(\"Exit. product size: {}.\", result.size());\n\n return result;\n }", "@GetMapping(\"/getproduct\")\n\t\tpublic List<Product> getAllProduct() {\n\t\t\tlogger.info(\"products displayed\");\n\t\t\treturn productService.getAllProduct();\n\t\t}", "public static ArrayList<Product> selectProducts() {\n \n ArrayList<Product> products = new ArrayList<>();\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n PreparedStatement ps2 = null;\n ResultSet rs = null;\n ResultSet rs2 = null;\n int count = 0;\n\n String query = \"SELECT * FROM product ORDER BY catalogCategory, productName ASC \";\n \n String query2 = \"SELECT * FROM product\"; \n \n try {\n ps = connection.prepareStatement(query);\n ps2 = connection.prepareStatement(query2);\n rs = ps.executeQuery();\n rs2 = ps2.executeQuery();\n ResultSetMetaData mD = rs.getMetaData();\n int colCount = mD.getColumnCount();\n Product p = null;\n System.out.println(\"DBSetup@line448 \" + colCount);\n \n while( rs2.next() ) {\n ++count;\n } \n ///////For test purposes // System.out.println(\"DBSetup @ line 363 \" + count); \n for (int i = 0; i < count; i++) {\n if (rs.next()) {\n p = new Product();\n p.setProductCode(rs.getString(\"productCode\"));\n p.setProductName(rs.getString(\"productName\"));\n p.setCatalogCategory(rs.getString(\"catalogCategory\"));\n p.setDescription(rs.getString(\"description\"));\n p.setPrice(Float.parseFloat(rs.getString(\"price\")));\n p.setImageURL(rs.getString(\"imageURL\"));\n System.out.println(\"DBSetup @ line 461 \" + p.getProductCode());\n products.add(p);\n }\n }\n return products;\n } catch (SQLException e) {\n System.out.println(e);\n return null;\n } finally {\n DBUtil.closeResultSet(rs);\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }", "public List<Product> getFilteredRecommendedProductsList() {\n return filteredRecommendedProductsList;\n }", "public List<Product> findHot() {\n\t\t\treturn productDao.findHot();\n\t\t}", "public List<productmodel> getproductbyname(String name);", "public List<Product> getProducts(ProductRequest request) throws IOException {\n if (request.isSingle()){\n List<Product> products = new ArrayList<>();\n products.add(parseResult(executeRequest(request),Product.class));\n return products;\n } else {\n return parseResults(executeRequest(request), Product.class);\n }\n }", "@Override\n\t\tpublic List<ProductInfo> getProducts() {\n\t\t\treturn TargetProducts;\n\t\t}", "@Override\n public int getNumberOfProducts() {\n return getAll().size();\n }", "@Override\r\n\tpublic List<Product> getallProducts() {\n\t\treturn dao.getallProducts();\r\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 }", "public List<Product> getAllProducts() {\n List<Product> listProduct= productBean.getAllProducts();\n return listProduct;\n }", "@CrossOrigin()\r\n @GetMapping(\"/products/discover\")\r\n Stream<ProductEntity> getDiscoveryProducts() {\n return productRepository\r\n .findAll(PageRequest.of(0, 3, Sort.by(\"numberOfPurchases\").descending()))\r\n .get();\r\n }", "@Override\r\n\tpublic List<Product> getProducts() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic List prodStockseach() {\n\t\treturn adminDAO.seachProdStock();\r\n\t}", "private void checkProducts() {\n for (JButton prodButton : productButtons) {\n if (inventoryManager.checkProductAvailability(prodButton.getText())) {\n prodButton.setEnabled(true);\n } else {\n prodButton.setEnabled(false);\n }\n }\n }", "public List<MarketObject<?>> getAvailableProducts(Player customer) {\n\t\tList<MarketObject<?>> available = new ArrayList<>();\n\t\tfor(MarketObject<?> o: products)\n\t\t\tif(o.getSellingPlayer().getPlayerID() != customer.getPlayerID())\n\t\t\t\tavailable.add(o);\n\t\treturn available;\n\t}", "String getTheirProductId();", "public List<Product> returnProducts() throws FlooringMasteryDaoException {\n\n List<Product> products = dao.loadProductInfo();\n return products;\n\n }", "@Override\r\n public int getNumOfProducts() {\r\n return this.productList.size();\r\n }", "ArrayList<Product> ListOfProducts();", "public Set<ProductBarcode> getProducts();", "public List<Product> getProducts() {\n return products;\n }", "public int getProductCount();", "@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 }", "List<Product> getProducts(Order order);", "@Override\n public Iterable<Product> findAllProduct() {\n return productRepository.findAll();\n }", "@Override\n\tpublic List<Products> getAllProduct() {\n\t\treturn dao.getAllProduct();\n\t}", "public ShowProductListLimited() {\n initComponents();\n List<Product> products = WinkelApplication.getQueryManager().getProductList();\n DefaultTableModel model = (DefaultTableModel) this.jTable1.getModel();\n for (Product product : products) {\n model.addRow(new Object[]{new Integer(product.getProductId()),\n product.getCategorieId(),\n product.getName(),\n product.getPrice(),\n product.getDescription()});\n }\n }", "public Product getProductInfo(int pid) {\nfor (ProductStockPair pair : productCatalog) {\nif (pair.product.id == pid) {\nreturn pair.product;\n}\n}\nreturn null;\n}", "public Product[] getConsumerVisibleProducts () {\n return null;\n }", "private void fetchProducts() {\n\t\t// Showing progress dialog before making request\n\n\t\tpDialog.setMessage(\"Fetching products...\");\n\n\t\tshowpDialog();\n\n\t\t// Making json object request\n\t\tJsonObjectRequest jsonObjReq = new JsonObjectRequest(Method.GET,\n\t\t\t\tConfig.URL_PRODUCTS, null, new Response.Listener<JSONObject>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onResponse(JSONObject response) {\n\t\t\t\t\t\tLog.d(TAG, response.toString());\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tJSONArray products = response\n\t\t\t\t\t\t\t\t\t.getJSONArray(\"products\");\n\n\t\t\t\t\t\t\t// looping through all product nodes and storing\n\t\t\t\t\t\t\t// them in array list\n\t\t\t\t\t\t\tfor (int i = 0; i < products.length(); i++) {\n\n\t\t\t\t\t\t\t\tJSONObject product = (JSONObject) products\n\t\t\t\t\t\t\t\t\t\t.get(i);\n\n\t\t\t\t\t\t\t\tString id = product.getString(\"id\");\n\t\t\t\t\t\t\t\tString name = product.getString(\"name\");\n\t\t\t\t\t\t\t\tString description = product\n\t\t\t\t\t\t\t\t\t\t.getString(\"description\");\n\t\t\t\t\t\t\t\tString image = product.getString(\"image\");\n\t\t\t\t\t\t\t\tBigDecimal price = new BigDecimal(product\n\t\t\t\t\t\t\t\t\t\t.getString(\"price\"));\n\t\t\t\t\t\t\t\tString sku = product.getString(\"sku\");\n\n\t\t\t\t\t\t\t\tProduct p = new Product(id, name, description,\n\t\t\t\t\t\t\t\t\t\timage, price, sku);\n\n\t\t\t\t\t\t\t\tproductsList.add(p);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// notifying adapter about data changes, so that the\n\t\t\t\t\t\t\t// list renders with new data\n\t\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\"Error: \" + e.getMessage(),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// hiding the progress dialog\n\t\t\t\t\t\thidepDialog();\n\t\t\t\t\t}\n\t\t\t\t}, new Response.ErrorListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\t\t\tVolleyLog.d(TAG, \"Error: \" + error.getMessage());\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\terror.getMessage(), Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t// hide the progress dialog\n\t\t\t\t\t\thidepDialog();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t// Adding request to request queue\n\t\tAppController.getInstance().addToRequestQueue(jsonObjReq);\n\t}", "@Override\r\n\tpublic List<Mobile> showAllProduct() {\n\t\tQuery query=entitymanager.createQuery(\"FROM Mobile\");\r\n\t\tList<Mobile> myProd=query.getResultList();\r\n\t\treturn myProd;\r\n\t}", "public void getProducts(String eId){\n // invoke getProductsById from ProductDatabse and assign products, productIds and productNames\n products = myDb.getProductsById(eId);\n productIds = new ArrayList<Integer>();\n ArrayList<String> productNames = new ArrayList<String>();\n for(Product product: products){\n productIds.add(Integer.parseInt(product.getProductId()));\n productNames.add(product.getProductName());\n }\n //if products exists in database then its displayed as a list else no products message is displayed\n if(products.size() > 0){\n productsadded.setVisibility(View.VISIBLE);\n noproducts.setVisibility(View.GONE);\n }else{\n productsadded.setVisibility(View.GONE);\n noproducts.setVisibility(View.VISIBLE);\n }\n otherProductAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_expandable_list_item_1, productNames);\n otherProductsList.setAdapter(otherProductAdapter);\n if(productNames.size() > 0){\n //invoked on click of the product\n otherProductsList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(OtherEventsProductsActivity.this, PurchaseProductActivity.class);\n intent.putExtra(\"eventId\", eventId);\n intent.putExtra(\"productId\", \"\"+productIds.get(position));\n intent.putExtra(\"status\", \"view\");\n startActivity(intent);\n }\n });\n }\n }", "public Boolean hasNextProduct() {\n\t\treturn getProducts().size() > 0;\n\t}", "@Override\n\tpublic List<Product> getProducts() {\n\t\treturn null;\n\t}", "List<Product> list();", "@GetMapping(\"/sysadm/product\")\n public String showAllProduct() {\n return \"admin/sysadm/productList\";\n }", "private void checkAvailability() {\n if (productList != null) {\n if (productList.size() == 0) {\n noProductText.setVisibility(View.VISIBLE);\n } else {\n noProductText.setVisibility(View.GONE);\n }\n }\n }", "public static ObservableList<Product> getAllProducts() {\n return allProducts;\n }", "String getProduct();", "private void printAllProducts()\n {\n manager.printAllProducts();\n }", "public ArrayList<Product> viewAllProduct() throws ProductException{\r\n\t\t\tArrayList<Product> products=new ArrayList<Product>();\r\n\t\t\tif(ProductRepository.productsList.isEmpty()) {\r\n\t\t\t\tthrow new ProductException(\"there are no products in the store\");\r\n\t\t\t\t\r\n\t\t\t}else {\r\n\t\t\t\r\n\t\t\tproducts.addAll(pDoa.viewProductsDoa());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn products;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}", "public ObservableList<Product> getAllProducts() {\n return allProducts;\n }", "private List<FreeShopProduct> getProductList() {\n\n productList = new ArrayList<>();\n productList.add(new FreeShopProduct(R.drawable.db_school_small, getResources().getString(R.string.shopItem0)));\n productList.add(new FreeShopProduct(R.drawable.db_clothes_small, getResources().getString(R.string.shopItem1)));\n productList.add(new FreeShopProduct(R.drawable.db_emotions_small, getResources().getString(R.string.shopItem2)));\n productList.add(new FreeShopProduct(R.drawable.db_etiquette_small, getResources().getString(R.string.shopItem3)));\n productList.add(new FreeShopProduct(R.drawable.db_landforms_small, getResources().getString(R.string.shopItem4)));\n productList.add(new FreeShopProduct(R.drawable.db_fruits_small, getResources().getString(R.string.shopItem5)));\n productList.add(new FreeShopProduct(R.drawable.db_kingdom_small, getResources().getString(R.string.shopItem6)));\n productList.add(new FreeShopProduct(R.drawable.db_outerspace_small, getResources().getString(R.string.shopItem7)));\n productList.add(new FreeShopProduct(R.drawable.db_festival_small, getResources().getString(R.string.shopItem8)));\n productList.add(new FreeShopProduct(R.drawable.db_music_small, getResources().getString(R.string.shopItem9)));\n\n return productList;\n }", "@Override\n\tpublic List<Product> getAllProduct() {\n\t\treturn productRepository.findAll();\n\t}", "@Override\n\tpublic List<Product> getAllProduct() {\n\t\treturn productRepository.findAll();\n\t}", "public List<ProductTilePojo> getManualProductList() {\n\t\tLOGGER.info(\"getManualProductList -> Start\");\n\t\tmanualProductList.clear();\n\t\tif (pages != null) {\n\t\t\tmanualProductList = productGalleryAndLandingService.getAllTiles(pages, true);\n\t\t}\n\n\t\tif (manualProductList.size() > 12) {\n\n\t\t\treturn manualProductList.subList(0, 12);\n\t\t}\n\t\t\n\t\tLOGGER.debug(\"manualProductList size {}\", \n\t\t\t\tmanualProductList.size());\n\t\t\n\t\tLOGGER.info(\"getManualProductList -> End\");\n\t\treturn manualProductList;\n\t}", "public ArrayList<Product> getMissingProduct(){\r\n\t\tString sql=\"SELECT Barcode FROM ProductTable WHERE (Quantity_In_Store+Quantity_In_storeroom)<=\"\r\n\t\t\t\t+ \"(Average_Sales_Per_Day*Delivery_Time)\";\r\n\t\tArrayList<Product> products = new ArrayList<>();\r\n\t\t try (Connection conn = this.connect();\r\n\t Statement stmt = conn.createStatement();\r\n\t ResultSet rs = stmt.executeQuery(sql)){\r\n\t\t\t while(rs.next()){\r\n\t\t\t\t products.add(getProductByID(rs.getInt(\"Barcode\")));\r\n\t\t\t }\r\n\t\t }\r\n\t\t catch (SQLException e) {\r\n\t\t\t System.out.println(\"getMissingProduct: \"+e.getMessage());\r\n\t\t\t return null;\r\n\t\t }\r\n\t\treturn products;\r\n\t}", "@Override\n\tpublic List<Product> getByHot() throws SQLException {\n\t\treturn productDao.getByHot();\n\t}", "@Override\n\tpublic List<Product> selectAllProduct() {\n\t\treturn productMapper.selectAllProduct();\n\t}", "List<Product> getAllProducts() throws DataBaseException;", "public List<Product> getAvailableProductList(int offset, int limit) {\n\t\t\n\t\tList<Product> productList = new ArrayList<Product>();\n\t\tPreparedStatement productStm = null;\n\t\t\n\t\ttry {\n\t\t\tString sql = \"SELECT * FROM PRODOTTO WHERE ELIMINATO = 0 AND UNITADISPONIBILI > 0 LIMIT ? OFFSET ?;\";\n\t\t\tproductStm = connection.prepareStatement(sql);\n\t\t\tproductStm.setInt(1, limit);\n\t\t\tproductStm.setInt(2, offset);\n\t\t\tResultSet productRs = productStm.executeQuery();\n\t\t\t\n\t\t\tproductList = getProductListFromRs(productRs);\n\t\t}\n\t\tcatch(SQLException e) {\n\t\t\tSystem.out.println(\"Errore: impossibile ottenere la lista di prodotti disponibili.\");\n\t\t\tSystem.out.println(e.getClass().getName() + \": \" + e.getMessage());\n\t\t}\n\t\tfinally {\n\t\t\tif(productStm != null) {\n\t\t\t\ttry {\n\t\t\t\t\tproductStm.close();\n\t\t\t\t}\n\t\t\t\tcatch(SQLException e) {\n\t\t\t\t\tSystem.out.println(\"Errore: impossibile chiudere lo statement.\");\n\t\t\t\t\tSystem.out.println(e.getClass().getName() + \": \" + e.getMessage());\n\t\t\t\t}\n\t\t\t\tfinally {\n\t\t\t\t\tConnector.releaseConnection(connection);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn productList;\n\t}", "@Override\r\n\tpublic List<Product> getAllProducts() {\n\t\treturn dao.getAllProducts();\r\n\t}", "List<Product> getProductPage(int pageNumber, int pageSize);", "@Override\n public ArrayList<ProductType> loadProducts() {\n ProductType product = new ProductType(\"TestProduct\", new BigDecimal(\"5.00\"), new BigDecimal(\"10.00\"));\n ArrayList<ProductType> list = new ArrayList<>();\n list.add(product);\n return list;\n }", "Page<Product> findByAvailableTrue(Pageable page);", "@Override\r\n\tpublic List<Product> findAllProducts() {\n\t\treturn productRepository.findAllProducts();\r\n\t}", "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}", "public ObservableList<Product> getAllProducts() { return allProducts; }", "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 }", "List<transactionsProducts> purchasedProducts();", "@Test\n void searchProduct() {\n List<DummyProduct> L1= store.SearchProduct(\"computer\",null,-1,-1);\n assertTrue(L1.get(0).getProductName().equals(\"computer\"));\n\n List<DummyProduct> L2= store.SearchProduct(null,\"Technology\",-1,-1);\n assertTrue(L2.get(0).getCategory().equals(\"Technology\")&&L2.get(1).getCategory().equals(\"Technology\"));\n\n List<DummyProduct> L3= store.SearchProduct(null,null,0,50);\n assertTrue(L3.get(0).getProductName().equals(\"MakeUp\"));\n\n List<DummyProduct> L4= store.SearchProduct(null,\"Fun\",0,50);\n assertTrue(L4.isEmpty());\n }", "public int getNumberOfProducts(){\n return this.products.size();\n }", "Object getProduct();", "public List<ProductTilePojo> getLandingProductList() {\n\t\tLOGGER.info(\"getLandingProductList -> Start\");\n\t\tResource landingNodeResource = resolver.getResource(landinggridPath);\n\t\tif (landingNodeResource != null) {\n\t\t\tValueMap nodeValues = landingNodeResource.adaptTo(ValueMap.class);\n\t\t\tif (null != nodeValues) {\n\t\t\t\tpages = nodeValues.get(\"pages\", String[].class);\n\t\t\t\tString orderProduct = nodeValues.get(\"orderProduct\", String.class);\n\t\t\t\tif (orderProduct != null) {\n\t\t\t\t\tif (orderProduct.equals(\"manual\")) {\n\t\t\t\t\t\tlandingProductList = productGalleryAndLandingService.getAllTiles(pages, true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString currentPath = homePagePath + PropertyReaderUtils.getProductPath();\n\t\t\t\t\t\tlandingProductList = productGalleryAndLandingService.getTilesByDate(currentPath, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (landingProductList.size() > 12) {\n\t\t\t\t\treturn landingProductList.subList(0, 12);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLOGGER.debug(\"landingProductList size {}\", \n\t\t\t\t\t\tlandingProductList.size());\n\t\t\t}\n\t\t}\n\t\tLOGGER.info(\"getLandingProductList -> End\");\n\t\treturn landingProductList;\n\t}", "public List<Product> scrapeProducts() {\n\n // Create empty list for the products that are going to be fetched\n List<Product> foundProducts = new ArrayList<>();\n\n // Open the url\n getDriver().get(getWebStore().getURL());\n\n // Locate the overview of all products\n System.out.println(getWebStore().getURL());\n WebElement productsOverview = getDriver().findElement(By.cssSelector(getWebStore().getProductsOverviewSelector()));\n\n // Get all products per class\n List<WebElement> products = productsOverview.findElements(By.className(getWebStore().getProductSelector().substring(1)));\n\n // Create a new webScraper\n WebScraper productPage = new WebScraper();\n productPage.setDriver(new HtmlUnitDriver());\n\n // Loop thru all found products and scrape information that is needed\n for (WebElement product : products) {\n Product newProduct = new Product();\n\n try {\n // Set up the information that is already visible\n newProduct.setBrand(new Brand(webStore.getBrand()));\n\n // Find the redirect link\n newProduct.setRedirectURL(\n product.findElement(By.cssSelector(webStore.getProductURLSelector())).getAttribute(\"href\")\n );\n\n foundProducts.add(newProduct);\n } catch (Exception e) {\n // Show error message when something goes wrong\n System.out.printf(\"Something went wrong while fetching the products of the brand: %s\\n\", getWebStore().getBrand());\n e.printStackTrace();\n }\n }\n\n // Add additional data to the products by visiting their individual page\n for (Product foundProduct : foundProducts) {\n try {\n scrapeAdditionalDataOfProduct(foundProduct);\n } catch (Exception e) {\n System.out.printf(\"Something went wrong while fetching the products of the brand: %s\\n\", getWebStore().getBrand());\n }\n }\n\n for (int i = 0; i < foundProducts.size(); i++) {\n if (foundProducts.get(i).getName() == null) {\n foundProducts.remove(foundProducts.get(i));\n }\n }\n\n return foundProducts;\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic ProductResponseModel getAllProduct() {\n\r\n\t\tProductResponseModel productResponseModel = new ProductResponseModel();\r\n\r\n\t\tMap<String, Object> map = productRepositoryImpl.getAllProduct();\r\n\r\n\t\t// productResponseModel.setCount((long) map.get(\"count\"));\r\n\t\tList<Product> product = (List<Product>) map.get(\"data\");\r\n\t\tList<ProductModel> productList = product.stream().map(p -> new ProductModel(p.getId(), p.getProName(),\r\n\t\t\t\tp.getProPrice(), p.getProQuantity(), p.getProDescription(), p.getProSize()))\r\n\t\t\t\t.collect(Collectors.toList());\r\n\r\n\t\tproductResponseModel.setData(productList);\r\n\r\n\t\treturn productResponseModel;\r\n\t}", "@Override\r\n\tpublic List<PayedProduct> getProductCount() {\n\t\tList<PayedProduct> list=null;\r\n\t\ttry {\r\n\t\t\tString sql=\"SELECT * FROM payedproduct\";\r\n\t\t\treturn qr.query(sql, new BeanListHandler<PayedProduct>(PayedProduct.class));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic int getProducts(List<Product> products, int pageNo, int pageSize) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic List<Product> findHots() throws Exception {\n\t\treturn null;\r\n\t}", "public List<Product> readAll() {\n\t\treturn null;\n\t}", "List<ProductView> getAllByPage(int pageNumber, int itemsPerPage) throws ProductException;", "public List<Product> list();", "public String productList(ProductDetails p);" ]
[ "0.73681587", "0.72232485", "0.7163667", "0.7012417", "0.7012417", "0.6983673", "0.69392115", "0.69392115", "0.69392115", "0.691621", "0.69062793", "0.6843926", "0.6816209", "0.6799614", "0.67068964", "0.6658508", "0.6593215", "0.6587911", "0.65770984", "0.6564236", "0.6530407", "0.6517524", "0.64992845", "0.6487068", "0.6482454", "0.64770424", "0.64747536", "0.6472506", "0.6457194", "0.64463913", "0.64453775", "0.6444833", "0.6444496", "0.64407456", "0.64373213", "0.642702", "0.64169353", "0.6413494", "0.6412052", "0.64054054", "0.64029217", "0.63999766", "0.63987476", "0.63807523", "0.63748795", "0.6371871", "0.6369087", "0.63639617", "0.6357389", "0.63447076", "0.6342116", "0.6341967", "0.63355875", "0.6324794", "0.63247365", "0.6317372", "0.6315884", "0.6311701", "0.6308722", "0.62902856", "0.628779", "0.6285448", "0.6268161", "0.62676495", "0.6264054", "0.62606466", "0.626005", "0.6258301", "0.624767", "0.6240296", "0.6239713", "0.6239713", "0.62317264", "0.6227754", "0.6227538", "0.6226375", "0.62156636", "0.62063205", "0.62028223", "0.6202404", "0.62020546", "0.62014645", "0.6197184", "0.6194938", "0.6188633", "0.6185579", "0.6181606", "0.61807925", "0.6179349", "0.617488", "0.61678183", "0.6167429", "0.61670864", "0.616321", "0.61601675", "0.61366975", "0.6133896", "0.612155", "0.61150545", "0.611069" ]
0.67486465
14
It will initiate the order
@RequestMapping(value ="/customer/buy_now", method = RequestMethod.POST) public String initiateOrder(@RequestParam("pcode") String code,Order order, ModelMap model) { logger.info("*** OrderController - initiateOrder ***"); String username = "BookMan"; Product product = productService.getProduct(code); order.setProduct(product); order.setStatus("initiated"); order.setCustomerName(username); order.setOrderDate(new Date()); order.setBill(order.getQuantity()*product.getPrice()); Order orderInserted = orderService.newOrder(order); model.addAttribute("order",orderInserted); return "customer_shipping_details"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "public void startOrder() {\r\n this.o= new Order();\r\n }", "public void incrementOrder() {\n mOrder++;\n }", "public ApplyOrder() {\n super();\n }", "void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}", "void newOrder();", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(int order) {\n this.order = order;\n }", "@Override\n public int getOrder() {\n return 0;\n }", "public void createNewOrder()\n\t{\n\t\tnew DataBaseOperationAsyn().execute();\n\t}", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrder(int order) {\n mOrder = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "void order() {\n\n\t\tSystem.out.println(\"In Zomato order method\");\n\t\tclass Hotels {\n\t\t\tString name;\n\t\t\tHotels(String name ) {\n\t\t\t\tthis.name = name;\n\t\t\t}\n\n\t\t\tvoid orderPlaced() {\n\t\t\t\tSystem.out.println(\"Order placd at hotel \"+ name);\n\t\t\t}\n\t\t}\n\t}", "public void setOrder(int order) {\n\t\tthis.order = order;\n\t}", "public void setOrder(Order order){\n this.order = order;\n }", "@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}", "public void startOrder() {\n\t\tDeck tempDeck = new Deck();\n\t\tArrayList<Player> highPlayerList = new ArrayList<Player>();\n\t\tStrategy3 testPlayer = new Strategy3();\n\t\tint temp = 0;\n\t\tfor (Player p : this.playerList) {\n\t\t\ttemp++;\n\t\t\tp.hand.add(tempDeck.dealTile());\n\t\t}\n\t\t\n\t\twhile (playerList.isEmpty() == false) {\t\n\t\t\tPlayer min = playerList.get(0);\n\t\t\tfor(Player i : playerList) {\n\t\t\t\tif (i.getHandValue() > min.getHandValue()) {min = i;}\n\t\t\t}\n\t\t\thighPlayerList.add(min);\n\t\t\tplayerList.remove(min);\n\t\t}\n\t\tthis.playerList = highPlayerList;\t\n\t\ttemp = 0; \n\t\tfor(Player p : this.playerList) {\n\t\t\ttemp++;\n\t\t}\n\t\t\n\t\tfor (Player p : playerList) {\n\t\t\tp.hand.clear();\n\t\t}\t\t\n\t}", "@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}", "void setOrder(Order order);", "@Override\n\tpublic void inorder() {\n\n\t}", "public void doneOrder(){\n setId(++count);\n }", "public void setOrder(Integer order) {\n\t\tthis.order = order;\n\t}", "public void setOrder(int value) {\n this.order = value;\n }", "private void putToTop()\r\n {\r\n OrderManager manager = myOrderManagerRegistry.getOrderManager(ourKey);\r\n manager.activateParticipant(ourKey);\r\n manager.moveToTop(ourKey);\r\n }", "public void setOrder(List<Order> order) {\n this.order = order;\n }", "public Order viewOrders() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\tem.getTransaction().begin();\r\n\t\t//Order nextOrder = \r\n\t\treturn nextOrder;\r\n\t}", "default int getOrder() {\n\treturn 0;\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n initiateOrder(request, response);\n }", "@Override\n public int getOrder() {\n return 4;\n }", "public void setOrder(final Integer order) {\n this.order = order;\n }", "@Test\r\n public void testAddOrder() throws FlooringMasteryPersistenceException{\r\n firstTest = order1();\r\n secondTest = order2();\r\n\r\n assertEquals(firstTest, dao.getOrder(orderList, 1));\r\n\r\n assertEquals(secondTest, dao.getOrder(orderList, 2));\r\n\r\n }", "protected void processOrder( Game game )\n {\n }", "@Override\n\tpublic void accept_order() {\n\t\t\n\t}", "public final void setOrder(java.lang.Integer order)\r\n\t{\r\n\t\tsetOrder(getContext(), order);\r\n\t}", "@Test\r\n\tpublic void testOrderPerform() {\n\t}", "public int getOrder() {\n\t\treturn 0;\n\t}", "public DownloadSmtOrder() {\n\t\tsuper();\n\t}", "public void setOrder(int order) {\n q = new Queue();\n if (order == 1) {\n inOrder(root, q);\n } else if (order == 2) {\n preOrder(root, q);\n } else if (order == 3) {\n postOrder(root, q);\n } else {\n System.out.println(\"invalid order\");\n }\n }", "public void listOrder()\r\n {o.listOrder();}", "void prepareOrder(int orderId);", "int getOrder(){\r\n\t\t\treturn this.order;\r\n\t\t}", "public LabOrder generateOrder() {\n LabOrder order = new LabOrder();\n Random r = new Random();\n Date date = getDate(r);\n order.insertts = date; //randbetween 1388534400 <-> 1420070400\n order.ordernr = \"O\" + r.nextInt();\n order.patientnr = \"P\" + r.nextInt(10000); //1 mil / 100 = 10 000\n order.visitNr = \"V\" + r.nextInt(); //unique;\n order.specimens.add(generateSpecimen(order));\n order.specimens.add(generateSpecimen(order));\n return order;\n }", "private void updateOrder() {\n Arrays.sort(positions);\n }", "public int getOrder();", "private static void placeOrder() {\n System.out.println();\n System.out.println(\"Menu : \");\n for (int i = 0; i < menuItems.length; i++) {\n System.out.printf(\"%2d. %-30s Price: %8.2f Baht%n\", i + 1, menuItems[i], menuPrices[i]);\n }\n System.out.println();\n\n int orderNo = getIntReply(\"What would you like to menuOrder (by menu number)\");\n if (orderNo > menuOrder.length || orderNo == -1) {\n System.out.println(\"Invalid menu number\");\n return;\n }\n\n int amount = getIntReply(\"How many of them\");\n if (amount == -1) return;\n menuOrder[orderNo - 1] += amount;\n\n System.out.printf(\"You've ordered %s for %d piece(s)%n%n\", menuItems[orderNo - 1], menuOrder[orderNo - 1]);\n }", "public void insertReorderBarrier() {\n\t\t\n\t}", "@Override\r\n\tpublic void setOrder(int order){\r\n\t\tthis.head.setOrder(order);\r\n\t}", "public SMplace_order() {\n initComponents();\n table();\n }", "public void setOrder(String Order) {\n this.Order = Order;\n }", "private void handleOrders()\r\n {\r\n // only 4 orders can fit on the screen, so don't do anything if there's already 4\r\n if (orders.size() < 4)\r\n {\r\n orderTimer--;\r\n \r\n if (orderTimer <= 0)\r\n {\r\n // create a new order\r\n Order nextOrder = new Order();\r\n orders.add(nextOrder);\r\n \r\n // find the position\r\n int xPos = 170 * orders.size() + 70;\r\n addObject(nextOrder, xPos, 100);\r\n \r\n // reset the order timer to a new value (between base time - variance & base time + variance)\r\n int baseFrameDelay = calcOrderDelay();\r\n int maxDelay = baseFrameDelay + orderVariance;\r\n int minDelay = baseFrameDelay - orderVariance;\r\n orderTimer = Greenfoot.getRandomNumber(maxDelay - minDelay) + minDelay;\r\n }\r\n }\r\n }", "public void setOrder(int order) {\n this.order = order;\n paint();\n }", "public int getOrder() {\n return order;\n }", "public int getOrder() {\n return order;\n }", "public void orderPlace() {\n Log.d(\"Method\", \"orderPlaced()\");\n\n if (coffeeCount < getResources().getInteger(R.integer.min_coffee)) {\n Log.e(\"\", \"coffeeCount < minimum coffee order\");\n displayMessage(String.format(Locale.getDefault(), getString(R.string.min_order_message), getResources().getInteger(R.integer.min_coffee)));\n } else if (coffeeCount > getResources().getInteger(R.integer.max_coffee)) {\n Log.e(\"\", \"coffeeCount > maximum coffee order\");\n displayMessage(String.format(Locale.getDefault(), getString(R.string.max_order_message), getResources().getInteger(R.integer.max_coffee)));\n } else {\n Log.i(\"\", \"Order placed: \" + coffeeCount + \" coffee.\");\n displayMessage(String.format(Locale.getDefault(), getString(R.string.order_thanks), 176));\n }\n resetQuantity();\n }", "@Override\r\n public int getOrder() {\r\n return this.order;\r\n }", "@Override\n\tpublic void postorder() {\n\n\t}", "public BorderedStrategy() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void preorder() {\n\n\t}", "public int getOrder() {\r\n\t\treturn order;\r\n\t}", "@Override\n\tpublic int getOrder() {\n\t\treturn Ordered.HIGHEST_PRECEDENCE + 10000;\n\t}", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "public CompletionOrder() {\n initComponents();\n }", "private void orderSegments() {\n //insert numOrder for the db\n int i = 0;\n for(TransportSegmentLogic transportSegment: transportSegments){\n transportSegment.setOrder(i);\n i++;\n }\n\n\n\n /*int i = 0;\n int j = 1;\n\n\n TransportSegmentLogic swapSegment;\n\n while(j < transportSegments.size()){\n if(transportSegments.get(j).getOrigin().equals(transportSegments.get(i).getDestination())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(i +1, swapSegment);\n i = i + 1;\n j = i + 1;\n }\n j++;\n }\n\n j = transportSegments.size() -1;\n\n while(j > i){\n if(transportSegments.get(j).getDestination().equals(transportSegments.get(0).getOrigin())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(0, swapSegment);\n i = i + 1;\n j = transportSegments.size();\n }\n j--;\n } */\n }", "public static void C_Order(MOrder o) {\n\t\tMDocType dt = MDocType.get(o.getCtx(), o.getC_DocTypeTarget_ID());\n\t\tString DocSubTypeSO = dt.getDocSubTypeSO();\n\t\tif (MDocType.DOCSUBTYPESO_StandardOrder.equals(DocSubTypeSO) || !o.isSOTrx()) {\n\t\t\tif ((o.getDocStatus().equals(MOrder.DOCSTATUS_InProgress) || o.getDocStatus().equals(MOrder.DOCSTATUS_Completed)) || !o.isSOTrx()) {\n\t\t\t\tfor (MOrderLine line : o.getLines()) {\n\t\t\t\t\tC_OrderLine(line);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (o.is_ValueChanged(MUColumnNames.COLUMNNAME_DocStatus) || o.is_ValueChanged(MUColumnNames.COLUMNNAME_C_BPartner_ID)) {\n\t\t\t\tList<MPPMRP> list = getQuery(o, null, null).list();\n\t\t\t\tfor (MPPMRP mrp : list) {\n\t\t\t\t\tmrp.setC_Order(o);\n\t\t\t\t\tmrp.save();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected void onInit() {\n order = new Entry[threshold];\n }", "private void orderList() {\n Iterator<PlanarShape> sort = unorderedList.iterator();\n\n while(sort.hasNext()) {\n orderedList.insertInOrder(sort.next());\n }\n }", "@Override\n\tpublic void openOrderEnd() {\n\t}", "public void setOrder(Order order) {\n this.order = order;\n notifyChanged();\n }", "void order(Pizza pizza) {\n order.add(pizza);\n }", "@Override\n\tpublic boolean PlaceOrder(Order order) {\n\t\treturn false;\n\t}", "private static void incrementLaunchOrder()\r\n\t{\r\n\t\tlaunchOrder++;\r\n\t}", "private void populateOrdersAndMakeGraphs() {\n Database.getInstance().setCallback(new Database.Callback() {\n @Override\n public void dbCallback(Object o) {\n Customer tempCustomer = (Customer)o;\n log = tempCustomer.getLog();\n final Stack<Order> ordersStack = new Stack<Order>();\n ordersStack.addAll(log.getOrders().values());\n\n // get all orders from database\n while (ordersStack.size() > 0) {\n Order order = ordersStack.pop();\n Database.getInstance().setCallback(new Database.Callback() {\n @Override\n public void dbCallback(Object o) {\n orders.add((Order)o);\n\n if (orders.size() == log.getOrders().size()) {\n extractDataFromOrders(orders);\n\n // create charts and order list\n caffeineBarChart = findViewById(R.id.caffeineBarChart);\n moneyXYPlot = findViewById(R.id.moneyXYPlot);\n\n // setup charts and order list\n onCreateCaffeineBarChart(coffeeCaffeineSeries, teaCaffeineSeries);\n onCreateMoneyXYPlot(coffeeExpenditureSeries, teaExpenditureSeries);\n }\n }\n });\n Database.getInstance().getOrder(order.getId());\n }\n }\n });\n Database.getInstance().getUser(userID);\n }", "public void setOrderList() {\n\n\t\tint index = 0;\n\t\tlistModel.clear();\n\t\tfor (Order order : driver.getOrderDB().getCustomerOrderList()) {\n\t\t\tlistModel\n\t\t\t\t\t.addElement(textAlignment(\" \" + order.getId(), \"\" + order.getDate(), \"\"\n\t\t\t\t\t\t\t+ order.getPerson().getId(), \"\"\n\t\t\t\t\t\t\t+ order.getCurrentlyLoggedInStaff().getId()));\n\t\t\t// stockList.setSelectedIndex(orderListIndex);\n\t\t\tindex++;\n\t\t}\n\t}", "Order(int t, int l) {\n this.t = t;\n this.l = l;\n }", "private void goZhuSuOrder(int position){\n\t}", "@Test\n\tpublic void orderingItemsIncreasesCumulativeOrders() {\n\t\tItemQuantity itemQ1 = new ItemQuantity(101, 5);\n\t\tItemQuantity itemQ2 = new ItemQuantity(102, 10);\n\t\tList<ItemQuantity> itemQuantities = new ArrayList<ItemQuantity>();\n\t\titemQuantities.add(itemQ1);\n\t\titemQuantities.add(itemQ2);\n\t\tOrderStep step = new OrderStep(1, itemQuantities);\n\t\t\n\t\ttry {\n\t\t\titemSupplier.executeStep(step);\n\t\t} catch (OrderProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t\t\n\t\tList<ItemQuantity> ordersPerItem = null;\n\t\ttry {\n\t\t\tordersPerItem = itemSupplier.getOrdersPerItem(supplierItemIds);\n\t\t} catch (InvalidItemException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t\t\n\t\tfor (ItemQuantity itemQ : ordersPerItem) {\n\t\t\tif (itemQ.getItemId() == 101)\n\t\t\t\tassertEquals(5, itemQ.getQuantity());\n\t\t\tif (itemQ.getItemId() == 102)\n\t\t\t\tassertEquals(10, itemQ.getQuantity());\n\t\t\tif (itemQ.getItemId() == 103)\n\t\t\t\tassertEquals(0, itemQ.getQuantity());\n\t\t}\n\t\t\n\t\t/*\n\t\t * Place another order\n\t\t */\n\t\titemQ1 = new ItemQuantity(101, 10);\n\t\titemQ2 = new ItemQuantity(103, 3);\n\t\titemQuantities = new ArrayList<ItemQuantity>();\n\t\titemQuantities.add(itemQ1);\n\t\titemQuantities.add(itemQ2);\n\t\tstep = new OrderStep(1, itemQuantities);\n\t\t\n\t\ttry {\n\t\t\titemSupplier.executeStep(step);\n\t\t} catch (OrderProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t\t\n\t\tordersPerItem = null;\n\t\ttry {\n\t\t\tordersPerItem = itemSupplier.getOrdersPerItem(supplierItemIds);\n\t\t} catch (InvalidItemException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t\t\n\t\tfor (ItemQuantity itemQ : ordersPerItem) {\n\t\t\tif (itemQ.getItemId() == 101)\n\t\t\t\tassertEquals(15, itemQ.getQuantity());\n\t\t\tif (itemQ.getItemId() == 102)\n\t\t\t\tassertEquals(10, itemQ.getQuantity());\n\t\t\tif (itemQ.getItemId() == 103)\n\t\t\t\tassertEquals(3, itemQ.getQuantity());\n\t\t}\n\t}", "private void constructOrder(CriteriaBuilderImpl cb, CriteriaQueryImpl<?> q, Tree orderBy) {\n \t\tfinal List<Order> orders = Lists.newArrayList();\n \n \t\tfor (int i = 0; i < orderBy.getChildCount(); i++) {\n \t\t\tfinal Tree orderByItem = orderBy.getChild(i);\n \t\t\tfinal Order order = orderByItem.getChildCount() == 2 ? //\n \t\t\t\tcb.desc(this.getExpression(cb, q, orderByItem.getChild(0), null)) : //\n \t\t\t\tcb.asc(this.getExpression(cb, q, orderByItem.getChild(0), null));\n \n \t\t\torders.add(order);\n \t\t}\n \n \t\tq.orderBy(orders);\n \t}", "int order();", "public int getOrder() {\n\t\treturn order;\n\t}", "@Before\r\n\tpublic void setUp() throws DuplicateIDException, IdNotContainedException {\n\t\tprocessOrder = new ProcessOrder(new Menu());\r\n\t\tcustomerList = processOrder.getCustomerList();\r\n\t\tallorders = processOrder.getAllOrders();\r\n\t\tmenu = processOrder.getMenu();\r\n\t\tcurrentOrder = new LinkedHashMap<String, Integer>();\r\n\t\tcurrentOrder.put(\"DES006\", 2);\r\n\t}", "public void makeComplete(Order order) {}", "public void preOrder() {\n preOrder(root);\n }", "Order getOrder();", "@Test\n public void testOrderInNegotiation() {\n Player l_player = new Player();\n l_player.setD_playerName(\"user2\");\n l_player.setD_negotiatePlayer(d_player.getD_playerName());\n\n Country l_country2 = new Country();\n l_country2.setD_continentIndex(1);\n l_country2.setD_countryIndex(3);\n l_country2.setD_countryName(\"nepal\");\n List<Country> l_countryList = new ArrayList();\n l_countryList.add(l_country2);\n l_player.setD_ownedCountries(l_countryList);\n\n d_gameData.getD_playerList().add(l_player);\n\n d_orderProcessor.processOrder(\"negotiate user2\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n\n d_orderProcessor.processOrder(\"advance india nepal 5\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order1 = d_gameData.getD_playerList().get(0).next_order();\n assertEquals(false, l_order1.executeOrder());\n }", "public OrderDoneExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public void queryOrder(){\n\t\ttry{\n\t\t\tlock.lock();\n\t\t\tSystem.out.println(Thread.currentThread().getName()+\"查询到数据:\"+System.currentTimeMillis());\n\t\t\tThread.sleep(2000);\n\t\t}catch( Exception e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tlock.unlock();\n\t\t}\n\t}", "public void makeOrder(Order order) {\n for(Order_Item x : order.getOrdered()){\n TableRow item_row = build_row(x.getItem().getName(), String.valueOf(x.getQuantity()), (x.getPrice()*x.getQuantity()) + \"€\");\n orderLayout.addView(item_row);\n }\n\n refreshPriceView();\n }", "public void saveOrder() {\n setVisibility();\n Order order = checkInputFromUser();\n if (order == null){return;}\n if(orderToLoad != null) DBSOperations.remove(connection,orderToLoad);\n DBSOperations.add(connection, order);\n }", "private void generateAndSubmitOrder()\n {\n OrderSingle order = Factory.getInstance().createOrderSingle();\n order.setOrderType(OrderType.Limit);\n order.setPrice(BigDecimal.ONE);\n order.setQuantity(BigDecimal.TEN);\n order.setSide(Side.Buy);\n order.setInstrument(new Equity(\"METC\"));\n order.setTimeInForce(TimeInForce.GoodTillCancel);\n if(send(order)) {\n recordOrderID(order.getOrderID());\n }\n }", "public void init() {\n\t\tList<Order> entries = new ArrayList<>();\n\t\tentries.add(new Order(entries.size(), null, \"Bryce\", Statuses.IN_QUEUE, new java.util.Date(System.currentTimeMillis())));\n\t\tentries.add(new Order(entries.size(), null, \"Bryce\", Statuses.IN_QUEUE, new java.util.Date(System.currentTimeMillis())));\n\t\tentries.add(new Order(entries.size(), null, \"Bryce\", Statuses.IN_QUEUE, new java.util.Date(System.currentTimeMillis())));\n\t\tgetServletContext().setAttribute(\"entries\", entries);\n\t}", "@SneakyThrows\n @Override\n public void prepare() {\n final String orderId = order.getId();\n final BlockingQueue<Order> queue = new LinkedBlockingDeque<>();\n if (preparedOrderMap.containsKey(orderId)) {\n throw new SimulatorException(\"Encounter repeated order id!\");\n }\n preparedOrderMap.put(orderId, queue);\n\n Thread.sleep(order.getPrepTime() * SCALE_MILLI_SECOND);\n order.setOrderPreparedTime(new Date());\n preparedOrderMap.get(orderId).put(order);\n log.info(String.format(\"Order prepared: %s\", order.getId()));\n }", "public int getOrder() {\n return mOrder;\n }", "public void testGetOrder() {\n }", "private void orderItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "void setOrderwithdate() {\r\n\r\n\t\tOrderAbyDate oad = new OrderAbyDate();\r\n\r\n\t\tMap<Integer, Map<Integer, Integer>> data = oad.getOrderByDate();\r\n\r\n\t\tjava.util.List<Integer> ls = new ArrayList<>(data.keySet());\r\n\r\n\t\tfor (int i = 0; i < ls.size(); i++) {\r\n\r\n\t\t\tdropyear1.getItems().add(\"\" + ls.get(i));\r\n\r\n\t\t}\r\n\r\n\t\tif (ls.size() > 0) {\r\n\r\n\t\t\tdropyear1.getSelectionModel().selectedItemProperty()\r\n\t\t\t\t\t.addListener(new ChangeListener<String>() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void changed(\r\n\t\t\t\t\t\t\t\tObservableValue<? extends String> observable,\r\n\t\t\t\t\t\t\t\tString oldValue, String newValue) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\tsetBarchartorder(\r\n\t\t\t\t\t\t\t\t\tdata.get(Integer.parseInt(newValue)),\r\n\t\t\t\t\t\t\t\t\tnewValue);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\tdropyear1.getSelectionModel().select(0);\r\n\r\n\t\t}\r\n\r\n\t}", "public void OrderHistoryInit() {\n orderId = -1;\n ArrayList<Orders> orders = new OrdersBean().getFromUsername(Global.getUsername());\n setDataModel(orders);\n orderTable.setModel(dtm);\n setVisible(true);\n }", "public void fillOrders(int totalEntries) {\n StoreAPI storeOperations = new StoreAPIMongoImpl();\n for (int i = 0; i < totalEntries; i++) {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date date = new Date();\n int getRandomUserId = getRandomNumber(0, 999);\n storeOperations.submitOrder(dateFormat.format(date), \"user_\" + getRandomUserId, \"password_\" + getRandomUserId, getProductsToBeOrdered(getRandomNumber(1, 10)));\n }\n }", "public void inOrder() {\r\n \r\n // call the private inOrder method with the root\r\n inOrder(root);\r\n }", "public Integer getOrder() {\n return order;\n }" ]
[ "0.7639575", "0.7591024", "0.74387366", "0.7391345", "0.7301877", "0.7131557", "0.7125701", "0.7125701", "0.6972215", "0.6958887", "0.69530284", "0.6942767", "0.6904551", "0.6904551", "0.687128", "0.6869387", "0.68582726", "0.6849002", "0.6761361", "0.6755586", "0.6741873", "0.673742", "0.6719267", "0.67045283", "0.66776025", "0.6641482", "0.66134953", "0.6610497", "0.65670925", "0.6561013", "0.6550214", "0.65268105", "0.6520335", "0.64995885", "0.64904505", "0.6475641", "0.64594704", "0.6444875", "0.6442766", "0.64336723", "0.64321965", "0.64267415", "0.64190364", "0.6415726", "0.6364608", "0.6361183", "0.63601583", "0.635966", "0.63594866", "0.6344363", "0.6343196", "0.6343011", "0.634125", "0.6331803", "0.6331803", "0.6321774", "0.62990105", "0.6284884", "0.6276519", "0.62443095", "0.6236941", "0.62270564", "0.62238145", "0.6222258", "0.62103254", "0.6207714", "0.6204868", "0.6155892", "0.6155415", "0.6140835", "0.6134148", "0.6133266", "0.6127998", "0.6123095", "0.6122178", "0.6117221", "0.61098933", "0.6106165", "0.6105312", "0.6090805", "0.60839874", "0.6062761", "0.60576874", "0.6057149", "0.6053863", "0.6047119", "0.6047093", "0.6045195", "0.6043689", "0.6036982", "0.60340184", "0.60304534", "0.600857", "0.6007823", "0.60065836", "0.6002796", "0.60009766", "0.59957165", "0.59765893", "0.59619105", "0.5959676" ]
0.0
-1
It will place the Order
@RequestMapping(value ="/customer/place_order", method = RequestMethod.POST) public String placeOrder(ModelMap model, Order order, @RequestParam("code") String code) { logger.info("*** OrderController - placeOrder ***"); Product product = productService.getProduct(code); order.setProduct(product); order.setStatus("completed"); order.setOrderDate(new Date()); Order completedOrder = orderService.placeOrder(order); if(!completedOrder.equals(null)){ productService.updateInventory(product,order.getQuantity()); } model.addAttribute("completedOrder", completedOrder); return "success"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "public void placeOrder(TradeOrder order)\r\n {\r\n brokerage.placeOrder(order);\r\n }", "public void orderPlace() {\n Log.d(\"Method\", \"orderPlaced()\");\n\n if (coffeeCount < getResources().getInteger(R.integer.min_coffee)) {\n Log.e(\"\", \"coffeeCount < minimum coffee order\");\n displayMessage(String.format(Locale.getDefault(), getString(R.string.min_order_message), getResources().getInteger(R.integer.min_coffee)));\n } else if (coffeeCount > getResources().getInteger(R.integer.max_coffee)) {\n Log.e(\"\", \"coffeeCount > maximum coffee order\");\n displayMessage(String.format(Locale.getDefault(), getString(R.string.max_order_message), getResources().getInteger(R.integer.max_coffee)));\n } else {\n Log.i(\"\", \"Order placed: \" + coffeeCount + \" coffee.\");\n displayMessage(String.format(Locale.getDefault(), getString(R.string.order_thanks), 176));\n }\n resetQuantity();\n }", "@Override\n\tpublic boolean PlaceOrder(Order order) {\n\t\treturn false;\n\t}", "private static void placeOrder() {\n System.out.println();\n System.out.println(\"Menu : \");\n for (int i = 0; i < menuItems.length; i++) {\n System.out.printf(\"%2d. %-30s Price: %8.2f Baht%n\", i + 1, menuItems[i], menuPrices[i]);\n }\n System.out.println();\n\n int orderNo = getIntReply(\"What would you like to menuOrder (by menu number)\");\n if (orderNo > menuOrder.length || orderNo == -1) {\n System.out.println(\"Invalid menu number\");\n return;\n }\n\n int amount = getIntReply(\"How many of them\");\n if (amount == -1) return;\n menuOrder[orderNo - 1] += amount;\n\n System.out.printf(\"You've ordered %s for %d piece(s)%n%n\", menuItems[orderNo - 1], menuOrder[orderNo - 1]);\n }", "public void setOrder(Order order){\n this.order = order;\n }", "void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(int order) {\n this.order = order;\n }", "void order() {\n\n\t\tSystem.out.println(\"In Zomato order method\");\n\t\tclass Hotels {\n\t\t\tString name;\n\t\t\tHotels(String name ) {\n\t\t\t\tthis.name = name;\n\t\t\t}\n\n\t\t\tvoid orderPlaced() {\n\t\t\t\tSystem.out.println(\"Order placd at hotel \"+ name);\n\t\t\t}\n\t\t}\n\t}", "void newOrder();", "public void placeOrder(String custID) {\r\n //creates Order object based on current cart\r\n Order order = new Order(custID, getItems());\r\n //inserts new order into DB\r\n order.insertDB();\r\n }", "public void incrementOrder() {\n mOrder++;\n }", "public ApplyOrder() {\n super();\n }", "public void setOrder(int order) {\n mOrder = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "void setOrder(Order order);", "public void makeOrder(Order order) {\n for(Order_Item x : order.getOrdered()){\n TableRow item_row = build_row(x.getItem().getName(), String.valueOf(x.getQuantity()), (x.getPrice()*x.getQuantity()) + \"€\");\n orderLayout.addView(item_row);\n }\n\n refreshPriceView();\n }", "public void setOrder(List<Order> order) {\n this.order = order;\n }", "public void setOrder(String Order) {\n this.Order = Order;\n }", "public void setOrder(int order) {\n\t\tthis.order = order;\n\t}", "private void putToTop()\r\n {\r\n OrderManager manager = myOrderManagerRegistry.getOrderManager(ourKey);\r\n manager.activateParticipant(ourKey);\r\n manager.moveToTop(ourKey);\r\n }", "public void placeOrder(TradeOrder order) {\r\n\t\tString msg = \"New order: \";\r\n\t\tif (order.isBuy()) {\r\n\t\t\tbuy.add(order);\r\n\t\t\tmsg += \"Buy \";\r\n\r\n\t\t}\r\n\r\n\t\tif (order.isSell()) {\r\n\t\t\tsell.add(order);\r\n\t\t\tmsg += \"Sell \";\r\n\t\t}\r\n\r\n\t\tmsg += this.getSymbol() + \" (\" + this.getName() + \")\";\r\n\t\tmsg += \"\\n\" + order.getShares() + \" shares at \";\r\n\r\n\t\tif (order.isLimit())\r\n\t\t\tmsg += money.format(order.getPrice());\r\n\t\telse\r\n\t\t\tmsg += \"market\";\r\n\t\tdayVolume += order.getShares();\r\n\t\torder.getTrader().receiveMessage(msg);\r\n\t\t\r\n\t}", "public void startOrder() {\r\n this.o= new Order();\r\n }", "protected void processOrder( Game game )\n {\n }", "public APIResponse placeOrder(@NotNull Order order){\n try {\n validateOrder(order);\n \n order.getItems().addAll(\n orderItemRepository.saveAll(order.getItems())\n );\n orderRepository.save( order );\n return APIResponse.builder()\n .success( true)\n .data( true )\n .error( null )\n .build();\n }catch (Exception exception){\n\n log.error(exception.getMessage());\n return APIResponse.builder()\n .success( true)\n .data( false )\n .error( exception.getMessage() )\n .build();\n }\n }", "public void setOrder(int value) {\n this.order = value;\n }", "public void setOrder(Integer order) {\n\t\tthis.order = order;\n\t}", "public void createNewOrder()\n\t{\n\t\tnew DataBaseOperationAsyn().execute();\n\t}", "void order(Pizza pizza) {\n order.add(pizza);\n }", "public Order viewOrders() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\tem.getTransaction().begin();\r\n\t\t//Order nextOrder = \r\n\t\treturn nextOrder;\r\n\t}", "public void placeSingleTaskOrder(User user, SingleTaskOrder order);", "public void saveOrder() {\n setVisibility();\n Order order = checkInputFromUser();\n if (order == null){return;}\n if(orderToLoad != null) DBSOperations.remove(connection,orderToLoad);\n DBSOperations.add(connection, order);\n }", "Order placeNewOrder(Order order, Project project, User user);", "public SMplace_order() {\n initComponents();\n table();\n }", "public void addToOrder() {\n OrderLine orderLine = new OrderLine(order.lineNumber++, sandwhich, sandwhich.price());\n order.add(orderLine);\n ObservableList<Extra> selected = extraSelected.getItems();\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n pickSandwhich();\n\n\n\n }", "@Override\n\tpublic void UpdateOrder(Order order) {\n\t\t\n\t}", "private void handleOrders()\r\n {\r\n // only 4 orders can fit on the screen, so don't do anything if there's already 4\r\n if (orders.size() < 4)\r\n {\r\n orderTimer--;\r\n \r\n if (orderTimer <= 0)\r\n {\r\n // create a new order\r\n Order nextOrder = new Order();\r\n orders.add(nextOrder);\r\n \r\n // find the position\r\n int xPos = 170 * orders.size() + 70;\r\n addObject(nextOrder, xPos, 100);\r\n \r\n // reset the order timer to a new value (between base time - variance & base time + variance)\r\n int baseFrameDelay = calcOrderDelay();\r\n int maxDelay = baseFrameDelay + orderVariance;\r\n int minDelay = baseFrameDelay - orderVariance;\r\n orderTimer = Greenfoot.getRandomNumber(maxDelay - minDelay) + minDelay;\r\n }\r\n }\r\n }", "public void setPositionOrder(Integer positionOrder) {\n this.positionOrder = positionOrder;\n }", "public void addOrders() {\n\t\torders.stream()\n\t\t\t.forEach(db::store);\n\t}", "Order getOrder();", "static void addOrder(orders orders) {\n }", "public void setOrder(final Integer order) {\n this.order = order;\n }", "@Override\n public void addOrder(Order o) {\n orders.add(o);\n }", "int getOrder(){\r\n\t\t\treturn this.order;\r\n\t\t}", "public void setOrder(int order) {\n this.order = order;\n paint();\n }", "@Override\r\n public int getOrder() {\r\n return this.order;\r\n }", "public void addOrder(Order o) {\n medOrder.add(o);\n //System.out.println(\"in adding order\");\n for(OrderItem oi: o.getOrderItemList())\n {\n MedicineProduct p=oi.getProduct();\n //System.out.println(\"in for oop produscts \"+p);\n Medicine med = this.searchMedicine(p.getProdName());\n if(med!=null){\n int i = med.getAvailQuantity()+oi.getQuantity();\n med.setAvailQuantity(i);\n // System.out.println(\"in adding quntity \"+i);\n \n }\n }\n \n }", "@Override\n public int getOrder() {\n return 0;\n }", "@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}", "@Override\n\tpublic void addOrder(Order order) {\n\t\t\n\t em.getTransaction().begin();\n\t\t\tem.persist(order);\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\n\t\t\temf.close();\n\t \n\t}", "void prepareOrder(int orderId);", "@Override\r\n\tpublic void PassOrder(Order order) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tem.persist(order);\r\n\t\t\r\n\t}", "@Override\n\tpublic void setPositionOrder(int positionOrder) {\n\t\t_dmGTShipPosition.setPositionOrder(positionOrder);\n\t}", "public String getOrder() {\n return this.Order;\n }", "public void AddOrder(Shoporder model) {\n\t\tmapper.AddOrder(model);\n\t}", "public void addOrder ()\n\t\t{\n\t\t\t//Creates a new cone\n\t\t\tIceCreamCone newCone = new IceCreamCone();\n\t\t\t\n\t\t\t//Creates a random number from 1-4\n\t\t\tint rand = (int) (Math.random()*4) + 1;\n\t\t\t\n\t\t\t//Adds a random number from 1-4 of randomly flavoured scoops to the new cone and adds the new cone to the ice cream line queue\n\t\t\tif(rand == 1)\n\t\t\t{\n\t\t\t\tnewCone.addRandScoop();\n\t\t\t\ticeCreamLine.enqueue(newCone);\n\t\t\t}\n\t\t\telse if(rand == 2)\n\t\t\t{\n\t\t\t\tnewCone.addRandScoop();\n\t\t\t\tnewCone.addRandScoop();\n\t\t\t\ticeCreamLine.enqueue(newCone);\n\t\t\t}\n\t\t\telse if(rand == 3)\n\t\t\t{\n\t\t\t\tnewCone.addRandScoop();\n\t\t\t\tnewCone.addRandScoop();\n\t\t\t\tnewCone.addRandScoop();\n\t\t\t\ticeCreamLine.enqueue(newCone);\n\t\t\t}\n\t\t\telse if(rand == 4)\n\t\t\t{\n\t\t\t\tnewCone.addRandScoop();\n\t\t\t\tnewCone.addRandScoop();\n\t\t\t\tnewCone.addRandScoop();\n\t\t\t\tnewCone.addRandScoop();\n\t\t\t\ticeCreamLine.enqueue(newCone);\n\t\t\t}\n\t\t\t\n\t\t\t//Creates a new view for this new cone\n\t\t\tIceCreamConeView view = new IceCreamConeView(newCone);\n\t\t\t//Adds the view JComponent to the box JPanel\n\t\t\tconeList.add(view);\n\t\t}", "@Transactional\n public OrderEntity placeOrder(OrderEntity order) {\n order.setStatus(\"draft\");\n return em.merge(order);\n }", "public void setOrder(Order order) {\n this.order = order;\n notifyChanged();\n }", "public int getOrder() {\n return order;\n }", "public int getOrder() {\n return order;\n }", "public static void addOrderedItem() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Adding ordered item************\");\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\n\t\tItemManager itemManager = new ItemManager();\n\t\tList listOfItems = itemManager.onStartUp();\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tItem item = null;\n\t\tOrderedItem orderedItem = null;\n\t\tboolean check = false;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (listOfItems.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no items!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.out.println();\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to add the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tdo {\n\t\t\t\tfor (i = 0; i < listOfItems.size(); i++) {\n\t\t\t\t\titem = (Item) listOfItems.get(i);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((i + 1) + \") ID: \" + item.getId()\n\t\t\t\t\t\t\t+ \" | Name: \" + item.getName() + \" | Price: $\"\n\t\t\t\t\t\t\t+ item.getPrice());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.println((i + 1) + \") Done\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.print(\"Select an item to add into order: \");\n\t\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\t\tif (choice != (i + 1)) {\n\t\t\t\t\titem = (Item) listOfItems.get(choice - 1);\n\n\t\t\t\t\torderedItem = new OrderedItem();\n\t\t\t\t\torderedItem.setItem(item);\n\t\t\t\t\torderedItem.setOrder(order);\n\t\t\t\t\torderedItem.setPrice(item.getPrice());\n\n\t\t\t\t\torder.addOrderedItem(orderedItem);\n\n\t\t\t\t\tcheck = orderedItemManager.createOrderedItem(orderedItem);\n\n\t\t\t\t\tif (check) {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK UPDATE\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Item added into order successfully!\");\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out.println(\"Failed to add item into order!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} while (choice != (i + 1));\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of adding items************\");\n\t}", "public void addOrder(Order order) {\n orders.add(order);\n }", "public PlaceOrder() {\n initComponents();\n this.setSize(1090, 750);\n \n System.out.println(\"new Order().getAllOrders() = \" + new Order().getAllOrders());\n \n this.products = new ArrayList<>();\n \n this.productsList = new ItemList(ProductOrderPanel.WIDTH);\n this.getAllCustomers();\n \n pnlAddProducts.add(productsList, new org.netbeans.lib.awtextra.AbsoluteConstraints(55, 260, ProductOrderPanel.WIDTH, 250));\n \n UIUtils.setIcon(this.jbPlaceOrder, \"save\");\n UIUtils.setIcon(this.jbAdd, \"add\");\n \n \n \n }", "public void setOrder(int o) throws SystemException {\n group.setDisplayItemOrder(o);\n ModelInputGroupLocalServiceUtil.updateModelInputGroup(group);\n }", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "public Order getOrder() {\n return order;\n }", "private void orderList() {\n Iterator<PlanarShape> sort = unorderedList.iterator();\n\n while(sort.hasNext()) {\n orderedList.insertInOrder(sort.next());\n }\n }", "@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}", "public int getOrder() {\r\n\t\treturn order;\r\n\t}", "private void orderSegments() {\n //insert numOrder for the db\n int i = 0;\n for(TransportSegmentLogic transportSegment: transportSegments){\n transportSegment.setOrder(i);\n i++;\n }\n\n\n\n /*int i = 0;\n int j = 1;\n\n\n TransportSegmentLogic swapSegment;\n\n while(j < transportSegments.size()){\n if(transportSegments.get(j).getOrigin().equals(transportSegments.get(i).getDestination())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(i +1, swapSegment);\n i = i + 1;\n j = i + 1;\n }\n j++;\n }\n\n j = transportSegments.size() -1;\n\n while(j > i){\n if(transportSegments.get(j).getDestination().equals(transportSegments.get(0).getOrigin())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(0, swapSegment);\n i = i + 1;\n j = transportSegments.size();\n }\n j--;\n } */\n }", "public final void setOrder(java.lang.Integer order)\r\n\t{\r\n\t\tsetOrder(getContext(), order);\r\n\t}", "public int getOrder();", "public void provideOrderAccess() {\n\t\tint choiceOrder = View.NO_CHOICE;\n\t\t// get customer id and date for the order\n\t\tLong customerId = view.readIDWithPrompt(\"Enter Customer ID for Order: \");\n\t\tif (customerId == null) {\n\t\t\tSystem.out.println(\"Error: Customer Not Found.\");\n\t\t}\n\t\tLong orderId = view.readIDWithPrompt(\"Enter new Unique ID for Order: \");\n\t\tDate currDate = new Date();\n\n\t\t// create the order,\n\t\t// add the orderID to Customer\n\t\tatMyService.placeOrder(customerId, orderId, currDate);\n\n\t\t// enter loop to add items to the order\n\t\tArrayList<Long[]> items = new ArrayList<Long[]>();\n\t\twhile (choiceOrder != View.ENDORDER) {\n\t\t\t// display the order menu\n\t\t\tview.menuOrder();\n\t\t\tchoiceOrder = view.readIntWithPrompt(\"Enter choice: \");\n\t\t\tswitch (choiceOrder) {\n\t\t\t\tcase View.ADD_ORDER_ITEM:\n\t\t\t\t\tLong itemID = view.readIDWithPrompt(\"Enter Item ID: \");\n\t\t\t\t\t// note: Needs to be Long for Long[] below. \n\t\t\t\t\t//Also, i DO want to use readID rather than readInt then convert to long,\n\t\t\t\t\t// because I do not want amt to be negative. \n\t\t\t\t\tLong amt = view.readIDWithPrompt(\"Enter Amount: \");\n\t\t\t\t\t// check to see if the item exists and is in stock\n\t\t\t\t\tItem temp = atMyService.findItem(itemID);\n\t\t\t\t\tif (temp == null) {\n\t\t\t\t\t\tSystem.out.println(\"Item '\" + itemID + \"' not found. Item skipped.\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((temp.getStock() - amt) < 0) {\n\t\t\t\t\t\t\tSystem.out.println(\"There is only '\" + temp.getStock() + \"' of this item left. Please try again.\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// add the items to the arrayList\n\t\t\t\t\t\t\tLong[] toAdd = { itemID, amt };\n\t\t\t\t\t\t\titems.add(toAdd);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase View.ENDORDER:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// convert arrayList to array, add to orders.\n\t\tif (!(items.isEmpty())) {\n\t\t\tLong[][] array = new Long[items.size()][2];\n\t\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\t\tarray[i][0] = items.get(i)[0];\n\t\t\t\tarray[i][1] = items.get(i)[1];\n\t\t\t}\n\t\t\tatMyService.addOrderItems(orderId, array);\n\t\t}\n\t}", "public int getOrder() {\n\t\treturn 0;\n\t}", "public Integer getOrder() {\n return order;\n }", "public static void C_Order(MOrder o) {\n\t\tMDocType dt = MDocType.get(o.getCtx(), o.getC_DocTypeTarget_ID());\n\t\tString DocSubTypeSO = dt.getDocSubTypeSO();\n\t\tif (MDocType.DOCSUBTYPESO_StandardOrder.equals(DocSubTypeSO) || !o.isSOTrx()) {\n\t\t\tif ((o.getDocStatus().equals(MOrder.DOCSTATUS_InProgress) || o.getDocStatus().equals(MOrder.DOCSTATUS_Completed)) || !o.isSOTrx()) {\n\t\t\t\tfor (MOrderLine line : o.getLines()) {\n\t\t\t\t\tC_OrderLine(line);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (o.is_ValueChanged(MUColumnNames.COLUMNNAME_DocStatus) || o.is_ValueChanged(MUColumnNames.COLUMNNAME_C_BPartner_ID)) {\n\t\t\t\tList<MPPMRP> list = getQuery(o, null, null).list();\n\t\t\t\tfor (MPPMRP mrp : list) {\n\t\t\t\t\tmrp.setC_Order(o);\n\t\t\t\t\tmrp.save();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void placeOrder(Cashier cashier){\n }", "private void addOrderDB(){\n OrganiseOrder organiser = new OrganiseOrder();\n Order finalisedOrder = organiser.Organise(order);\n // Generate the order id\n String id = UUID.randomUUID().toString();\n // Set the name of the order to the generated id\n finalisedOrder.setName(id);\n\n // Get the firebase reference\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child(\"Orders\").child(id);\n\n // Update the order\n ref.setValue(finalisedOrder);\n }", "public int getOrder() {\n return mOrder;\n }", "public int getOrder() {\n\t\treturn order;\n\t}", "public Integer getOrder() {\n return order;\n }", "public Integer getOrder() {\n return order;\n }", "public void generateOrder() throws IOException, StockException {\n\t\tManifest order = new Manifest();\n\n\t\tfor (Item item : Store.getInstance().getInventory().getItems()) {\n\t\t\tif (item.requiresOrder()) {\n\t\t\t\torder.addItem(item);\n\t\t\t}\n\t\t}\n\t\torder.saveToFile(\"manifest.csv\");\n\n\t\tfor (Truck truck : order.getTrucks()) {\n\t\t\tinventory.adjustBy(truck.getCargo(), true);\n\t\t}\n\t\tcapital -= order.getTotalCost();\n\t}", "public void orderItem(Item i) {\r\n\r\n\r\n\r\n this.o.orderItem(i);\r\n\r\n }", "@Test\n public void placeOrderTest() {\n Order body = new Order().id(10L)\n .petId(10L)\n .complete(false)\n .status(Order.StatusEnum.PLACED)\n .quantity(1);\n Order response = api.placeOrder(body);\n\n Assert.assertEquals(10L, response.getId().longValue());\n Assert.assertEquals(10L, response.getPetId().longValue());\n Assert.assertEquals(1, response.getQuantity().intValue());\n Assert.assertEquals(true, response.isComplete());\n Assert.assertEquals(Order.StatusEnum.APPROVED, response.getStatus());\n\n verify(exactly(1), postRequestedFor(urlEqualTo(\"/store/order\")));\n }", "public Order() {\n\t\tsuper();\n\t\tcurrentOrder += 1;\n\t\torderNumber = currentOrder;\n\t\tthis.orderPrice.setScale(2, BigDecimal.ROUND_HALF_EVEN);\n\t}", "public Order getOrder() {\n return this.order;\n }", "@Override\n public int getOrder() {\n return 4;\n }", "@Override\n\tpublic void placeOrder(Map<String, Integer> orderDetails, Buyer buyer) {\n\t\tif (successor != null) {\n\t\t\tsuccessor.placeOrder(orderDetails, buyer);\n\t\t} else {\n\t\t\tSystem.out.println(\"Did not set successor of SupplierProxy\");\n\t\t}\n\t\t\n\t}", "public Order() {\n\t\tsuper();\n\t\titems = new HashMap<>();\n\t}", "public void listOrder()\r\n {o.listOrder();}", "@Test\r\n public void testAddOrder() throws FlooringMasteryPersistenceException{\r\n firstTest = order1();\r\n secondTest = order2();\r\n\r\n assertEquals(firstTest, dao.getOrder(orderList, 1));\r\n\r\n assertEquals(secondTest, dao.getOrder(orderList, 2));\r\n\r\n }", "@Override\r\n\tpublic void setOrder(int order){\r\n\t\tthis.head.setOrder(order);\r\n\t}", "public void addToOrder()\n {\n\n if ( donutTypeComboBox.getSelectionModel().isEmpty() || flavorComboBox.getSelectionModel().isEmpty() )\n {\n Popup.DisplayError(\"Must select donut type AND donut flavor.\");\n return;\n } else\n {\n int quantity = Integer.parseInt(quantityTextField.getText());\n if ( quantity == 0 )\n {\n Popup.DisplayError(\"Quantity must be greater than 0.\");\n return;\n } else\n {\n for ( int i = 0; i < quantity; i++ )\n {\n Donut donut = new Donut(donutTypeComboBox.getSelectionModel().getSelectedIndex(), flavorComboBox.getSelectionModel().getSelectedIndex());\n mainMenuController.getCurrentOrder().add(donut);\n }\n if ( quantity == 1 )\n {\n Popup.Display(\"Donuts\", \"Donut has been added to the current order.\");\n } else\n {\n Popup.Display(\"Donuts\", \"Donuts have been added to the current order.\");\n }\n\n\n donutTypeComboBox.getSelectionModel().clearSelection();\n flavorComboBox.getSelectionModel().clearSelection();\n quantityTextField.setText(\"0\");\n subtotalTextField.setText(\"$0.00\");\n }\n }\n\n\n }", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "public static void PP_Order(MPPOrder o) {\n\t\tProperties ctx = o.getCtx();\n\t\tString trxName = o.get_TrxName();\n\t\t//\n\t\t// Supply\n\t\tMPPMRP mrpSupply = getQuery(o, TYPEMRP_Supply, ORDERTYPE_ManufacturingOrder).firstOnly();\n\t\tif (mrpSupply == null) {\n\t\t\tmrpSupply = new MPPMRP(ctx, 0, trxName);\n\t\t\tmrpSupply.setAD_Org_ID(o.getAD_Org_ID());\n\t\t\tmrpSupply.setTypeMRP(MPPMRP.TYPEMRP_Supply);\n\t\t}\n\t\tmrpSupply.setPP_Order(o);\n\t\tmrpSupply.setPriority(o.getPriorityRule());\n\t\tmrpSupply.setPlanner_ID(o.getPlanner_ID());\n\t\tmrpSupply.setM_Product_ID(o.getM_Product_ID());\n\t\tmrpSupply.setM_Warehouse_ID(o.getM_Warehouse_ID());\n\t\tmrpSupply.setQty(o.getQtyOrdered().subtract(o.getQtyDelivered()));\n\t\tmrpSupply.save();\n\t\t//\n\t\t// Demand\n\t\tList<MPPMRP> mrpDemandList = getQuery(o, TYPEMRP_Demand, ORDERTYPE_ManufacturingOrder).list();\n\t\tfor (MPPMRP mrpDemand : mrpDemandList) {\n\t\t\tmrpDemand.setPP_Order(o);\n\t\t\tmrpDemand.save();\n\t\t}\n\t}", "void create(Order order);" ]
[ "0.8468971", "0.751031", "0.7493532", "0.7417577", "0.73407507", "0.7293693", "0.72426575", "0.7240943", "0.7240943", "0.72258663", "0.7151855", "0.71341854", "0.71067333", "0.70939726", "0.7090334", "0.70706254", "0.7043987", "0.7043987", "0.70391434", "0.70253265", "0.70186263", "0.69903326", "0.69888985", "0.69757193", "0.69469625", "0.69234246", "0.68774265", "0.686041", "0.68581414", "0.6849105", "0.6848353", "0.6821683", "0.6815455", "0.6792122", "0.67775065", "0.67656624", "0.6764291", "0.6748941", "0.67167956", "0.6662357", "0.6637233", "0.661635", "0.6605655", "0.65972406", "0.65792173", "0.6575338", "0.6572955", "0.654365", "0.65237236", "0.6522589", "0.6504075", "0.64652604", "0.6454876", "0.6447168", "0.6443936", "0.64385235", "0.6437315", "0.64342153", "0.64340556", "0.64313257", "0.642619", "0.64130193", "0.64130193", "0.63892144", "0.6386433", "0.63864017", "0.63852376", "0.6385214", "0.63847035", "0.6381707", "0.63715816", "0.63596874", "0.6308542", "0.630354", "0.62925816", "0.6291766", "0.6285276", "0.62742794", "0.6265191", "0.6253697", "0.6252708", "0.62506753", "0.62429965", "0.6226508", "0.6226508", "0.62254465", "0.62222606", "0.62216467", "0.6208354", "0.6206771", "0.6193737", "0.6187785", "0.61864847", "0.61856383", "0.6180258", "0.6177294", "0.6171744", "0.6168113", "0.6168113", "0.6164776", "0.6158602" ]
0.0
-1
It will get the order status
@RequestMapping(value ="/order_status", method = RequestMethod.GET) public String orderStatus(ModelMap model){ logger.info("*** OrderController - orderStatus ***"); String customerName = "BookMan"; List<Order> orderHistoryList= orderService.findOrderHistory(customerName); model.put("orderHistory",orderHistoryList); return "order_history"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String\t\tgetOrderStatus();", "public OrderStatus getStatus() {\n return this.status;\n }", "public Boolean getOrderStatus() {\n return orderStatus;\n }", "public Byte getOrderStatus() {\n return orderStatus;\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus();", "io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus();", "public byte[] getOrderStatus() {\n return orderStatus;\n }", "public java.lang.String getOrderStatus(){\n return localOrderStatus;\n }", "public static boolean getOrderStatus() {\r\n \treturn orderSucceed;\r\n }", "@Field(10) \n\tpublic byte OrderStatus() {\n\t\treturn this.io.getByteField(this, 10);\n\t}", "Order getOrderStatus(OrderStatusRequest orderStatusRequest);", "@ApiModelProperty(value = \"The status of the auto order\")\r\n public StatusEnum getStatus() {\r\n return status;\r\n }", "public String getSOrderStatus() {\n return sOrderStatus;\n }", "public InvoiceOrderLineStatus getOrderLineStatus() {\r\n if (invoicedAgreements.size() == 0 || invoicedAgreements.get(0).getInvoicedOrderLines().size() == 0) return NO_ORDER_LINES;\r\n return invoicedAgreements.get(0).getInvoicedOrderLines().get(0).getStatus();\r\n }", "String getTransactionStatus();", "public MarketStatus getStatus(){\n return status;\n }", "List<Order> getOrderListByStatus(OrderStatusEnum orderStatus) throws ServiceException;", "public TradeStatus getStatus() {\n return status;\n }", "public String getStatusOrder(String idLocation) {\n\n\t\tString statusGotten = null;\n\n\t\ttry {\n\t\t\tString sql = \"SELECT status FROM restodb.order WHERE status != 'Paid' AND location_idLocation =\" + idLocation;\n\t\t\t\n\t\t\tjava.sql.PreparedStatement statement = mysqlConnect.connect().prepareStatement(sql);\n\n\t\t\tResultSet rs = statement.executeQuery(sql);\n\n\t\t\tif (rs.next())\n\n\t\t\t\tstatusGotten = rs.getString(1);\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmysqlConnect.disconnect();\n\t\t}\n\n\t\treturn statusGotten;\n\t}", "public int getStatus ()\n {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "public String getStatus(){\r\n\t\treturn status;\r\n\t}", "public int getStatus()\n {\n return status;\n }", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderStatus result = io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.UNRECOGNIZED : result;\n }", "public io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderStatus result = io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.UNRECOGNIZED : result;\n }", "public int getStatus(){\r\n\t\treturn this.status;\r\n\t}", "public io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderStatus result = io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.UNRECOGNIZED : result;\n }", "public io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderStatus result = io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.UNRECOGNIZED : result;\n }", "@Override\n\t@Transactional\n\tpublic long getOrderCount(int status) throws Exception {\n\t\treturn 0;\n\t}", "public TransactionStatus getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public String getStatus () {\r\n return status;\r\n }", "public Integer getStatus() {\r\n return status;\r\n }", "public Integer getStatus() {\r\n return status;\r\n }", "public String status() {\n return this.status;\n }", "public String status() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\n return _status;\n }", "@Override\n\tpublic List<Orders> queryOrderStatus(int status) {\n\t\tQueryRunner qr= new QueryRunner(dataSource);\n\t\tString sql = \"select * from orders where status=?\";\n\t\ttry {\n\t\t\treturn qr.query(sql, new BeanListHandler<Orders>(Orders.class), status);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(\"根据状态查询订单出错\");\n\t\t}\n\t}", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() { return status; }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public java.lang.Object getStatus() {\n return status;\n }", "public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }", "public Status getStatus() {\r\n\t return status;\r\n\t }", "String getOrderStatusId();", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }" ]
[ "0.8527004", "0.8252356", "0.8166369", "0.79934484", "0.79334766", "0.79334766", "0.7825975", "0.77629936", "0.77439183", "0.75872886", "0.74966395", "0.7129314", "0.7071694", "0.69913554", "0.6933846", "0.68757", "0.6851778", "0.6827697", "0.68148595", "0.67526126", "0.67526126", "0.67319393", "0.67302376", "0.672404", "0.6714364", "0.6714364", "0.6699088", "0.6698452", "0.6698452", "0.6698155", "0.6688362", "0.6686977", "0.6686977", "0.6686977", "0.6686977", "0.6686977", "0.66846675", "0.66820085", "0.66820085", "0.6680483", "0.6680483", "0.6669561", "0.6669561", "0.6669561", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.66659385", "0.6659761", "0.6659761", "0.6659761", "0.6659761", "0.6659761", "0.6654293", "0.6654293", "0.6654293", "0.6654293", "0.6654293", "0.6654293", "0.6654293", "0.66406786", "0.66406786", "0.66406786", "0.66406786", "0.66406786", "0.66377586", "0.6634929", "0.6628198", "0.6628198", "0.66279536", "0.6624755", "0.6624755", "0.6624755", "0.6624755", "0.6624755", "0.6624755", "0.6624755", "0.6624755", "0.6624755", "0.661551", "0.6614509", "0.6605775", "0.66042167", "0.6603526", "0.6603526" ]
0.0
-1
It will initiate the refund
@RequestMapping(value ="/refund_order", method = RequestMethod.GET) public String refundOrder(ModelMap model, @RequestParam("id") String orderId, RedirectAttributes redirectAttributes){ logger.info("*** OrderController - refundOrder ***"); Order order = orderService.getOrder(orderId); boolean isRefunded = orderService.processRefund(order); if(isRefunded) { redirectAttributes.addFlashAttribute("message", "Refund initiated successfully"); return "redirect:/order_status"; } redirectAttributes.addFlashAttribute("message", "Order cannot be refunded !!"); return "redirect:/order_status"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void refund() {\r\n vend.setCurrState(\"Refunding\");\r\n vend.refund();\r\n\r\n }", "BrainTreeRefundTransactionResult refundTransaction(BrainTreeRefundTransactionRequest request);", "public void refund(HashMap<String, String> params) {\n\t\tTRANSACTION_TYPE = \"REFUND\";\n\t\tRRNO = params.get(\"transactionID\");\n\t\tAMOUNT = params.get(\"amount\");\n\t\tAPI = \"bp10emu\";\n\t}", "public void requestRefund(RefundDTO refund, AsyncResponse response){\n\n Message message = new Message();\n message.setEvent(\"getRefund\");\n message.setService(\"payment_service\");\n message.setPayload(refund);\n message.setCallback(new Callback(\"customer_service\", \"requestRefundResponse\"));\n\n UUID requestId = responseHandler.saveRestResponseObject(response);\n message.setRequestId(requestId);\n\n this.sendMessage(message);\n }", "@Test\n\tpublic void freezeRefundTest() throws Exception {\n AlipayClient alipayClient = new DefaultAlipayClient(\"https://openapi.alipay.com/gateway.do\", \"2017082108306436\",\n \"MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCtyKGAX+U7kfPcw2kS7Cku3d3kNOxjG37T1Ckt43tH/F41QQ/x0HuJs5QoeRkW1Y3UZ0AR2H/Oq4GkkI+tZnxFONx3Pkl/qhuNu/0fv3QEbAcFF7meKY6/9gbRs+ZwmMfazR6U1f4S6ML3+Ee/1NVYuiqKQF2uViXJ0keMS5pPZfQTM2SL+/TgH4YD5ha1iRFgOsLasjonV6PmSfrkpltcHlWdkN+CpSWOCGmDGvzcw6Z91PHVvmGGErFUV6ybJywXtGrf4VG5ijVQOA9FDFf4q0IyG5mlYrurMx09KysfqSkshAequLmU390md9tKWWTjZMgMVXwQz9GG8MAJg8FnAgMBAAECggEAcxNIxl45yDGEnuoS+QHC35LxLP1SjuoVGKYDwqxA5VEa/P6hVUntlCiC8i4GTBWLflwElAydzTfKeDN1wKf9oETf0GJBfzUgW8FhAxXe+FKkb13ffvkb2sdKirAq5uJ0bNGo73uoa9MPz+3rbP69a6yTIMswfZH0IemJkUA65VmRUw2rFuxmbrWuGgL7ZoUm7cIxXiX+TZGhf9+kp71icDoEtJiC8ZFdjapBZmcqsoXm0YGRmY8+tSt2rY3aDDIXEZTWwk4RA3NQ/pHrJ+h3yr+sWXdrIFLRLQm3Oy53zNrkt+eisHl62ACwG2qg2GeUZuHEYBaNpVz8Zp4flDyqAQKBgQDYDPLN3rGtrPGNJVFyYpwSGhhqLwy6PqaPU4pPup3XYY9UtkZIf4WiX+u/8KV2vLoArXhdp9tDztqatzidUHhDQbffYIANecbAsoOP/dnjJJmLOGQrGX7pV9YqExk91AGM+u3BJMTwMA1dgn/urf81LC5EtWbxfDmqPih3oE30ZwKBgQDN6uwSiQakyY0MP+P1L09iZVPWpGT6tie4ncLncCwlBL5X9qy8FMnyQ7Wcp77NEBDEDMb0kAq+gMOhc/8AOa/1PlQ53DC6QAhsn59tb0DyNf2Cj9GPni7iPHUy/IsKOPHgH0Y754Po6NPXyf0+Xvz1lwDWF4qSdkYLzBRroEOrAQKBgENt1yHVjRKtVT4+FWtjx14G8vPA93HxN76nzhUQI08jTb6cnNbnpeeFlGh1TM8AG/U2LsjcKJzDJIsBABRpFv+2tRJsZcrO5O8jR9ha2/P+akV/NhQVgvyEw3yiNVCMqGc9sZKETUrBVIqIvjDZ8TrBLTeYfiaEJOMzPyIG0A2lAoGAC4pkCrHlTm0BW7Nk+kPZhiE5rqjuA+MbnMwytTfjMXvvkwx/J9debhZ/YjVAi0ugNOymZeSAxaZ/0Feo7gFNrEf+/nMpw/Z8wmG71K1MjYabG6slyo/J/uH2i5H91OfWHoKCNC9IhFAwN0LZz5oRQU5iPJ17JbQ9PsIETvffcwECgYAEZ7H5gw+zzgYQUSRexgPCc5lscJGL/kQ3KGx4nwAl8WsvF77nfccd+BpQRqrLaRzAgyATEPuEoclKtdFIWVRzZtIxi3wh21M/te6NMfd59u1duRAWSdF4D0fAt4Q+u/Es9SK0h9Bi5fj1+hwnbMO0+Bv7Fx7gvS2eylYgjZLFsw==\",\n \"json\", \"GBK\",\n \"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDI6d306Q8fIfCOaTXyiUeJHkrIvYISRcc73s3vF1ZT7XN8RNPwJxo8pWaJMmvyTn9N4HQ632qJBVHf8sxHi/fEsraprwCtzvzQETrNRwVxLO5jVmRGi60j8Ue1efIlzPXV9je9mkjzOmdssymZkh2QhUrCmZYI/FCEa3/cNMW0QIDAQAB\",\n \"RSA\");\n\n //[email protected]\n// AlipayClient alipayClient = new DefaultAlipayClient(\"https://openapi.alipay.com/gateway.do\", \"2017082108306200\",\n// \"MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCtyKGAX+U7kfPcw2kS7Cku3d3kNOxjG37T1Ckt43tH/F41QQ/x0HuJs5QoeRkW1Y3UZ0AR2H/Oq4GkkI+tZnxFONx3Pkl/qhuNu/0fv3QEbAcFF7meKY6/9gbRs+ZwmMfazR6U1f4S6ML3+Ee/1NVYuiqKQF2uViXJ0keMS5pPZfQTM2SL+/TgH4YD5ha1iRFgOsLasjonV6PmSfrkpltcHlWdkN+CpSWOCGmDGvzcw6Z91PHVvmGGErFUV6ybJywXtGrf4VG5ijVQOA9FDFf4q0IyG5mlYrurMx09KysfqSkshAequLmU390md9tKWWTjZMgMVXwQz9GG8MAJg8FnAgMBAAECggEAcxNIxl45yDGEnuoS+QHC35LxLP1SjuoVGKYDwqxA5VEa/P6hVUntlCiC8i4GTBWLflwElAydzTfKeDN1wKf9oETf0GJBfzUgW8FhAxXe+FKkb13ffvkb2sdKirAq5uJ0bNGo73uoa9MPz+3rbP69a6yTIMswfZH0IemJkUA65VmRUw2rFuxmbrWuGgL7ZoUm7cIxXiX+TZGhf9+kp71icDoEtJiC8ZFdjapBZmcqsoXm0YGRmY8+tSt2rY3aDDIXEZTWwk4RA3NQ/pHrJ+h3yr+sWXdrIFLRLQm3Oy53zNrkt+eisHl62ACwG2qg2GeUZuHEYBaNpVz8Zp4flDyqAQKBgQDYDPLN3rGtrPGNJVFyYpwSGhhqLwy6PqaPU4pPup3XYY9UtkZIf4WiX+u/8KV2vLoArXhdp9tDztqatzidUHhDQbffYIANecbAsoOP/dnjJJmLOGQrGX7pV9YqExk91AGM+u3BJMTwMA1dgn/urf81LC5EtWbxfDmqPih3oE30ZwKBgQDN6uwSiQakyY0MP+P1L09iZVPWpGT6tie4ncLncCwlBL5X9qy8FMnyQ7Wcp77NEBDEDMb0kAq+gMOhc/8AOa/1PlQ53DC6QAhsn59tb0DyNf2Cj9GPni7iPHUy/IsKOPHgH0Y754Po6NPXyf0+Xvz1lwDWF4qSdkYLzBRroEOrAQKBgENt1yHVjRKtVT4+FWtjx14G8vPA93HxN76nzhUQI08jTb6cnNbnpeeFlGh1TM8AG/U2LsjcKJzDJIsBABRpFv+2tRJsZcrO5O8jR9ha2/P+akV/NhQVgvyEw3yiNVCMqGc9sZKETUrBVIqIvjDZ8TrBLTeYfiaEJOMzPyIG0A2lAoGAC4pkCrHlTm0BW7Nk+kPZhiE5rqjuA+MbnMwytTfjMXvvkwx/J9debhZ/YjVAi0ugNOymZeSAxaZ/0Feo7gFNrEf+/nMpw/Z8wmG71K1MjYabG6slyo/J/uH2i5H91OfWHoKCNC9IhFAwN0LZz5oRQU5iPJ17JbQ9PsIETvffcwECgYAEZ7H5gw+zzgYQUSRexgPCc5lscJGL/kQ3KGx4nwAl8WsvF77nfccd+BpQRqrLaRzAgyATEPuEoclKtdFIWVRzZtIxi3wh21M/te6NMfd59u1duRAWSdF4D0fAt4Q+u/Es9SK0h9Bi5fj1+hwnbMO0+Bv7Fx7gvS2eylYgjZLFsw==\",\n// \"json\", \"GBK\",\n// \"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDI6d306Q8fIfCOaTXyiUeJHkrIvYISRcc73s3vF1ZT7XN8RNPwJxo8pWaJMmvyTn9N4HQ632qJBVHf8sxHi/fEsraprwCtzvzQETrNRwVxLO5jVmRGi60j8Ue1efIlzPXV9je9mkjzOmdssymZkh2QhUrCmZYI/FCEa3/cNMW0QIDAQAB\",\n// \"RSA\");\n// 133290965116141568\t2018032302432256\t853.33\n//// 133870511490088960\t2018032302432256\t853.33\n//// 134281662728257536\t2018032302432256\t1493.33\n//// 134627684222521344\t2018032302432256\t853.33\n\t\tAlipayTradeRefundRequest request = new AlipayTradeRefundRequest();\n\t\trequest.setBizContent(\"{\" +\n\t\t\t\t\" \\\"refund_reason\\\":\\\"正常退款\\\",\" +\n\t\t\t\t\" \\\"trade_no\\\":\\\"2019010322001494210558889685\\\",\" +\n\t\t\t\t\" \\\"refund_amount\\\":\\\"1\\\"\" +\n\t\t\t\t\"}\");\n\t\tAlipayTradeRefundResponse response = alipayClient.execute(request);\n\t\tSystem.out.println(JSON.toJSONString(response));\n\t\tif (response.isSuccess()) {\n\n\t\t\tSystem.out.println(\"调用成功\");\n\t\t} else {\n\t\t\tSystem.out.println(\"调用失败\");\n\t\t}\n\t}", "public void issueScheduledTransactionForRefund(Bid bid, BidsRepository bidsRepository, String memo) {\n // Create a transfer transaction for the refund\n // check the status of the bid isn't already refunded, issued or in error\n try {\n Bid testBid = bidsRepository.getBidForTimestamp(bid.getTimestamp());\n if ((testBid != null) && ! testBid.isRefunded() && ! testBid.isRefundIssued() && ! testBid.isRefundError()) {\n this.transactionId = TransactionId.generate(AccountId.fromString(Objects.requireNonNull(env.get(\"OPERATOR_ID\"))));\n this.transactionId.setScheduled(true);\n String shortTransactionId = this.transactionId.toString().replace(\"?scheduled\", \"\");\n\n TransferTransaction transferTransaction = new TransferTransaction();\n transferTransaction.setTransactionMemo(memo);\n transferTransaction.addHbarTransfer(this.auctionAccountId, Hbar.fromTinybars(-bid.getBidamount()));\n transferTransaction.addHbarTransfer(AccountId.fromString(bid.getBidderaccountid()), Hbar.fromTinybars(bid.getBidamount()));\n\n this.transaction = transferTransaction;\n\n @Var TransactionSchedulerResult transactionSchedulerResult = null;\n try {\n transactionSchedulerResult = issueScheduledTransaction(\"Scheduled Auction Refund\");\n if (transactionSchedulerResult.success\n || transactionSchedulerResult.status == Status.NO_NEW_VALID_SIGNATURES\n || transactionSchedulerResult.status == Status.DUPLICATE_TRANSACTION) {\n log.info(\"Refund transaction successfully scheduled (scheduleId {}, transactionId {})\", transactionSchedulerResult.getScheduleId(), shortTransactionId);\n log.info(\"setting bid to refund issued (timestamp = {})\", bid.getTimestamp());\n try {\n if (StringUtils.isEmpty(transactionSchedulerResult.getScheduleId())) {\n log.error(\"empty schedule id for bid transaction id {}\", bid.getTransactionid());\n bidsRepository.setRefundError(bid.getTransactionid());\n } else {\n bidsRepository.setRefundIssued(bid.getTimestamp(), shortTransactionId, transactionSchedulerResult.getScheduleId());\n }\n } catch (SQLException e) {\n log.error(\"Failed to set bid refund issued (bid timestamp {})\",bid.getTimestamp(), e);\n }\n } else {\n log.error(\"Error issuing refund to bid - timestamp = {} status {}\", bid.getTimestamp(), transactionSchedulerResult.status);\n bidsRepository.setRefundError(bid.getTransactionid());\n }\n } catch (Exception e) {\n log.error(e, e);\n }\n }\n } catch (SQLException e) {\n log.error(e, e);\n }\n }", "@Override\n\tpublic void refundPoint(String id, int balance) throws Exception {\n\t\t\n\t}", "@Override\r\n\tpublic void updateRefund(Refund refund) throws Exception {\n\t\t\r\n\t}", "public Refund() {\n this(DSL.name(\"refund\"), null);\n }", "@Override\n\tpublic ResultBO<?> refund(RefundParamVO refundParam) {\n\t\treturn super.refund(refundParam);\n\t}", "public void setRefund(Integer refund) {\n this.refund = refund;\n }", "@Override\r\n\tpublic void addRefund(Refund refund) throws Exception {\n\t}", "public void setRefundId(int value) {\n this.refundId = value;\n }", "@Test\n public void refundTicket() {\n Ticket ticket = givenTicketInOrderedBilled();\n\n // when\n boolean refundTicket = ticket.refundTicket();\n\n // then\n assertTrue(refundTicket);\n assertTicketInState(ticket, TicketStateType.TICKET_RETURNED, TransactionStateType.TRANSACTION_BILLED, 6);\n }", "public void refund(Trooper t) {\n if(t.hasTurned()) {\n if(ArmoredTrooper.class.isInstance(t)) {\n noOfCredits = (long) (noOfCredits + (1.25 *\n Translator.armoredTrooperPrice));\n } else if(PitifulTrooper.class.isInstance(t)) {\n noOfCredits = (long) (noOfCredits + (1.25 *\n Translator.pitifullPrice));\n } else if(TeleportTrooper.class.isInstance(t)) {\n noOfCredits = (long) (noOfCredits + (1.25 *\n Translator.teleporterPrice));\n }\n } else {\n if(ArmoredTrooper.class.isInstance(t)) {\n noOfCredits = (long) (noOfCredits + (0.75 *\n Translator.armoredTrooperPrice));\n } else if(PitifulTrooper.class.isInstance(t)) {\n noOfCredits = (long) (noOfCredits + (0.75 *\n Translator.pitifullPrice));\n } else if(TeleportTrooper.class.isInstance(t)) {\n noOfCredits = (long) (noOfCredits + (0.75 *\n Translator.teleporterPrice));\n }\n }\n }", "public void setRefundDate( Date refundDate ) {\n this.refundDate = refundDate;\n }", "@Override\n public void onClick(View view) {\n Bundle ecommerceBundle = new Bundle();\n ecommerceBundle.putString(\"screenName\", \"Confirmation\");\n ecommerceBundle.putString( FirebaseAnalytics.Param.TRANSACTION_ID, \"333444\" );\n ecommerceBundle.putDouble( FirebaseAnalytics.Param.VALUE, 20.49 );\n // (OPTIONAL) For partial refunds, define the item IDs and quantities of products being refunded\n Bundle refundedProduct = new Bundle();\n refundedProduct.putString(FirebaseAnalytics.Param.ITEM_ID, \"ProductId 123\"); // Required for partial refund\n refundedProduct.putLong(FirebaseAnalytics.Param.QUANTITY, 1); // Required for partial refund\n ArrayList items = new ArrayList();\n items.add(refundedProduct);\n ecommerceBundle.putParcelableArrayList( \"items\", items );\n mFirebaseAnalytics.logEvent( FirebaseAnalytics.Event.PURCHASE_REFUND, ecommerceBundle );\n\n toast.show();\n }", "public int getRefundId() {\n return refundId;\n }", "public void setRefundQuantity(int value) {\n this.refundQuantity = value;\n }", "public String getRefundId() {\n return refundId;\n }", "public Integer getRefund() {\n return refund;\n }", "@Override\n public String getDescription() {\n return \"Digital goods refund\";\n }", "public interface IRefundController {\n void transactionRefunded(long transactionId);\n}", "public void requestRefundResponse(Message message, JsonObject payload){\n System.out.println(\"Response Status Message:\" + message.getStatusMessage());\n AsyncResponse response = this.responseHandler.getRestResponseObject(message.getRequestId());\n response.resume(Response.status(message.getStatus()).entity(message.getStatusMessage()).build());\n }", "@Test\n public void fetch() throws RazorpayException{\n String mockedResponseJson = \"{\\n\" +\n \" \\\"id\\\": \"+REFUND_ID+\",\\n\" +\n \" \\\"entity\\\": \\\"refund\\\",\\n\" +\n \" \\\"amount\\\": 300100,\\n\" +\n \" \\\"currency\\\": \\\"INR\\\",\\n\" +\n \" \\\"payment_id\\\": \\\"pay_FIKOnlyii5QGNx\\\",\\n\" +\n \" \\\"notes\\\": {\\n\" +\n \" \\\"comment\\\": \\\"Comment for refund\\\"\\n\" +\n \" },\\n\" +\n \" \\\"receipt\\\": null,\\n\" +\n \" \\\"acquirer_data\\\": {\\n\" +\n \" \\\"arn\\\": \\\"10000000000000\\\"\\n\" +\n \" },\\n\" +\n \" \\\"created_at\\\": 1597078124,\\n\" +\n \" \\\"batch_id\\\": null,\\n\" +\n \" \\\"status\\\": \\\"processed\\\",\\n\" +\n \" \\\"speed_processed\\\": \\\"normal\\\",\\n\" +\n \" \\\"speed_requested\\\": \\\"optimum\\\"\\n\" +\n \"}\";\n try {\n mockResponseFromExternalClient(mockedResponseJson);\n mockResponseHTTPCodeFromExternalClient(200);\n Refund fetch = refundClient.fetch(REFUND_ID);\n assertNotNull(fetch);\n assertEquals(REFUND_ID,fetch.get(\"id\"));\n String fetchRequest = getHost(String.format(Constants.REFUND,REFUND_ID));\n verifySentRequest(false, null, fetchRequest);\n } catch (IOException e) {\n assertTrue(false);\n }\n }", "@Test\n public void create() throws RazorpayException{\n JSONObject request = new JSONObject(\"{\" +\n \"\\\"amount\\\":\\\"100\\\",\" +\n \"\\\"speed\\\":\\\"normal\\\",\" +\n \"\\\"notes\\\":{\\\"notes_key_1\\\":\\\"BeammeupScotty.\\\",\" +\n \"\\\"notes_key_2\\\":\\\"Engage\\\"},\" +\n \"\\\"receipt\\\":\\\"ReceiptNo.31\\\"}\");\n\n String mockedResponseJson = \"{\\n\" +\n \" \\\"id\\\": \"+REFUND_ID+\",\\n\" +\n \" \\\"entity\\\": \\\"refund\\\",\\n\" +\n \" \\\"amount\\\": 500100,\\n\" +\n \" \\\"receipt\\\": \\\"Receipt No. 31\\\",\\n\" +\n \" \\\"currency\\\": \\\"INR\\\",\\n\" +\n \" \\\"payment_id\\\": \\\"pay_FCXKPFtYfPXJPy\\\",\\n\" +\n \" \\\"notes\\\": [],\\n\" +\n \" \\\"acquirer_data\\\": {\\n\" +\n \" \\\"arn\\\": null\\n\" +\n \" },\\n\" +\n \" \\\"created_at\\\": 1597078866,\\n\" +\n \" \\\"batch_id\\\": null,\\n\" +\n \" \\\"status\\\": \\\"processed\\\",\\n\" +\n \" \\\"speed_processed\\\": \\\"normal\\\"\\n\" +\n \"}\";\n\n try {\n mockResponseFromExternalClient(mockedResponseJson);\n mockResponseHTTPCodeFromExternalClient(200);\n Refund fetch = refundClient.create(request);\n assertNotNull(fetch);\n assertEquals(REFUND_ID,fetch.get(\"id\"));\n assertEquals(\"refund\",fetch.get(\"entity\"));\n assertEquals(500100,(int)fetch.get(\"amount\"));\n assertEquals(\"INR\",fetch.get(\"currency\"));\n String createRequest = getHost(Constants.REFUNDS);\n verifySentRequest(true, request.toString(), createRequest);\n } catch (IOException e) {\n assertTrue(false);\n }\n }", "@Test\n public void testLoanRefundByCashCashBasedAccounting() {\n\n Calendar fourMonthsfromNowCalendar = Calendar.getInstance(Utils.getTimeZoneOfTenant());\n fourMonthsfromNowCalendar.add(Calendar.MONTH, -4);\n\n // FINERACT-885: If the loan starts on day 27-31th of month and not all months have that\n // many days, then loan payment will get reset to a day of month less than today's day\n // and 4th payment will be in the past. In such case, start the loan a few days later,\n // so that 4th payment is guaranteed to be in the future.\n if (fourMonthsfromNowCalendar.get(Calendar.DAY_OF_MONTH) > 27) {\n fourMonthsfromNowCalendar.add(Calendar.DAY_OF_MONTH, 4);\n }\n\n String fourMonthsfromNow = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n /***\n * Create loan product with Default STYLE strategy\n */\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n final Integer loanProductID = createLoanProduct(\"0\", \"0\", LoanProductTestBuilder.DEFAULT_STRATEGY, CASH_BASED, assetAccount,\n incomeAccount, expenseAccount, overpaymentAccount);\n Assertions.assertNotNull(loanProductID);\n\n /***\n * Apply for loan application and verify loan status\n */\n final String savingsId = null;\n final String principal = \"12,000.00\";\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n\n Integer flatInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"50\", false));\n addCharges(charges, flatInstallmentFee, \"50\", null);\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanID = applyForLoanApplicationWithPaymentStrategyAndPastMonth(clientID, loanProductID, charges, savingsId,\n principal, LoanApplicationTestBuilder.DEFAULT_STRATEGY, -4, collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(fourMonthsfromNow, loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(fourMonthsfromNow, loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = {\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, fourMonthsfromNow, assetAccountInitialEntry);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"2290\", String.valueOf(firstInstallment.get(\"totalOutstandingForPeriod\")));\n\n // Make payment for installment #1\n\n fourMonthsfromNowCalendar.add(Calendar.MONTH, 1);\n\n final String threeMonthsfromNow = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n LOAN_TRANSACTION_HELPER.makeRepayment(threeMonthsfromNow, Float.parseFloat(\"2290\"), loanID);\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"0.00\", String.valueOf(firstInstallment.get(\"totalOutstandingForPeriod\")));\n\n // Make payment for installment #2\n fourMonthsfromNowCalendar.add(Calendar.MONTH, 1);\n\n final String twoMonthsfromNow = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n LOAN_TRANSACTION_HELPER.makeRepayment(twoMonthsfromNow, Float.parseFloat(\"2290\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, twoMonthsfromNow,\n new JournalEntry(Float.parseFloat(\"2290\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2000\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, twoMonthsfromNow,\n new JournalEntry(Float.parseFloat(\"50\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"240\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n Map secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0.00\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // Make payment for installment #3\n // Pay 2290 more than expected\n fourMonthsfromNowCalendar.add(Calendar.MONTH, 1);\n\n final String oneMonthfromNow = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n LOAN_TRANSACTION_HELPER.makeRepayment(oneMonthfromNow, Float.parseFloat(\"4580\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, oneMonthfromNow,\n new JournalEntry(Float.parseFloat(\"4580\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"4000\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, oneMonthfromNow,\n new JournalEntry(Float.parseFloat(\"100\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"480\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"0.00\", String.valueOf(thirdInstallment.get(\"totalOutstandingForPeriod\")));\n\n // Make refund of 20\n // max 2290 to refund. Pay 20 means only principal\n // Default style refund order(principal, interest, fees and penalties\n // paid: principal 2000, interest 240, fees 50, penalty 0\n // refund 20 means paid: principal 1980, interest 240, fees 50, penalty\n // 0\n\n // FINERACT-885: As loan may not have started exactly four months ago,\n // make final payment today and not four months from start (as that may be in the future)\n fourMonthsfromNowCalendar.setTime(Date.from(Utils.getLocalDateOfTenant().atStartOfDay(Utils.getZoneIdOfTenant()).toInstant()));\n final String now = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n LOAN_TRANSACTION_HELPER.makeRefundByCash(now, Float.parseFloat(\"20\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, now,\n new JournalEntry(Float.parseFloat(\"20\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"20\"), JournalEntry.TransactionType.DEBIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"20.00\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n validateNumberForEqual(\"20.00\", String.valueOf(fourthInstallment.get(\"principalOutstanding\")));\n validateNumberForEqual(\"0.00\", String.valueOf(fourthInstallment.get(\"interestOutstanding\")));\n validateNumberForEqual(\"0.00\", String.valueOf(fourthInstallment.get(\"feeChargesOutstanding\")));\n\n // Make refund of 2000\n // max 2270 to refund. Pay 2000 means only principal\n // paid: principal 1980, interest 240, fees 50, penalty 0\n // refund 2000 means paid: principal 0, interest 220, fees 50, penalty 0\n\n LOAN_TRANSACTION_HELPER.makeRefundByCash(now, Float.parseFloat(\"2000\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, now,\n new JournalEntry(Float.parseFloat(\"2000\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"1980\"), JournalEntry.TransactionType.DEBIT));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, now,\n new JournalEntry(Float.parseFloat(\"20\"), JournalEntry.TransactionType.DEBIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"2020.00\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n validateNumberForEqual(\"2000.00\", String.valueOf(fourthInstallment.get(\"principalOutstanding\")));\n validateNumberForEqual(\"20.00\", String.valueOf(fourthInstallment.get(\"interestOutstanding\")));\n validateNumberForEqual(\"0.00\", String.valueOf(fourthInstallment.get(\"feeChargesOutstanding\")));\n\n }", "public void refundConfirmation(String fName, String customerEmail, double price, int numOfTicket, int bookingNo){\n\t Properties props = makeProps();\r\n\t \r\n\t final String username = \"[email protected]\";\r\n\t final String password = \"movie4050\";\r\n\t \r\n\t try{\r\n\t Session session = Session.getDefaultInstance(props, \r\n\t new Authenticator(){\r\n\t protected PasswordAuthentication getPasswordAuthentication() {\r\n\t return new PasswordAuthentication(username,password);}});\r\n\t // -- Create a new message --\r\n\t Message msg = new MimeMessage(session);\r\n\t \r\n\t /* from */\r\n\t msg.setFrom(new InternetAddress(username));\r\n\t \r\n\t /* to */\r\n\t msg.setRecipients(Message.RecipientType.TO, \r\n\t InternetAddress.parse(customerEmail,false));\r\n\t /* title */\r\n\t msg.setSubject(\"Refund Confirmation - Receipt\");\r\n\t \r\n\t /* text field */ \r\n\t String sendThis = \"Hello \\t\"+fName + \"!\\n\\n\"\r\n\t + \"You requested on booking #\" +bookingNo+\".\"\r\n\t + \"Your \"+numOfTicket+\" ticket(s)\"\r\n\t + \" will be refunded within few days.\\n\"\r\n\t + \"Total refund price: $\"+price+\"\\n\"\r\n\t + \"Thank you for using our service!\\n\";\r\n\t msg.setText(sendThis);\r\n\t msg.setSentDate(new Date());\r\n\t Transport.send(msg);\r\n\t \r\n\t System.out.println(\"Message sent.\");\r\n\t }catch (MessagingException e){ \r\n\t System.out.println(\"Error: \" + e);\r\n\t }\r\n\t \r\n\t }", "@Test\n public void testLoanRefundByCashAccrualBasedAccounting() {\n Calendar fourMonthsfromNowCalendar = Calendar.getInstance(Utils.getTimeZoneOfTenant());\n fourMonthsfromNowCalendar.add(Calendar.MONTH, -4);\n\n // FINERACT-885: If the loan starts on day 27-31th of month and not all months have that\n // many days, then loan payment will get reset to a day of month less than today's day\n // and 4th payment will be in the past. In such case, start the loan a few days later,\n // so that 4th payment is guaranteed to be in the future.\n if (fourMonthsfromNowCalendar.get(Calendar.DAY_OF_MONTH) > 27) {\n fourMonthsfromNowCalendar.add(Calendar.DAY_OF_MONTH, 4);\n }\n\n String fourMonthsfromNow = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n /***\n * Create loan product with Default STYLE strategy\n */\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n final Integer loanProductID = createLoanProduct(\"0\", \"0\", LoanProductTestBuilder.DEFAULT_STRATEGY, ACCRUAL_UPFRONT, assetAccount,\n incomeAccount, expenseAccount, overpaymentAccount);// ,\n // LoanProductTestBuilder.EQUAL_INSTALLMENTS,\n // LoanProductTestBuilder.FLAT_BALANCE);\n Assertions.assertNotNull(loanProductID);\n\n /***\n * Apply for loan application and verify loan status\n */\n final String savingsId = null;\n final String principal = \"12,000.00\";\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n\n Integer flatInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"50\", false));\n addCharges(charges, flatInstallmentFee, \"50\", null);\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanID = applyForLoanApplicationWithPaymentStrategyAndPastMonth(clientID, loanProductID, charges, savingsId,\n principal, LoanApplicationTestBuilder.DEFAULT_STRATEGY, -4, collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(fourMonthsfromNow, loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(fourMonthsfromNow, loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"1440\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"300.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, fourMonthsfromNow, assetAccountInitialEntry);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"2290\", String.valueOf(firstInstallment.get(\"totalOutstandingForPeriod\")));\n\n // Make payment for installment #1\n\n fourMonthsfromNowCalendar.add(Calendar.MONTH, 1);\n\n final String threeMonthsfromNow = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n LOAN_TRANSACTION_HELPER.makeRepayment(threeMonthsfromNow, Float.parseFloat(\"2290\"), loanID);\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"0.00\", String.valueOf(firstInstallment.get(\"totalOutstandingForPeriod\")));\n\n // Make payment for installment #2\n fourMonthsfromNowCalendar.add(Calendar.MONTH, 1);\n\n final String twoMonthsfromNow = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n LOAN_TRANSACTION_HELPER.makeRepayment(twoMonthsfromNow, Float.parseFloat(\"2290\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, twoMonthsfromNow,\n new JournalEntry(Float.parseFloat(\"2290\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2290\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n Map secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0.00\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // Make payment for installment #3\n // Pay 2290 more than expected\n fourMonthsfromNowCalendar.add(Calendar.MONTH, 1);\n\n final String oneMonthfromNow = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n LOAN_TRANSACTION_HELPER.makeRepayment(oneMonthfromNow, Float.parseFloat(\"4580\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, oneMonthfromNow,\n new JournalEntry(Float.parseFloat(\"4580\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"4580\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"0.00\", String.valueOf(thirdInstallment.get(\"totalOutstandingForPeriod\")));\n\n // Make refund of 20\n // max 2290 to refund. Pay 20 means only principal\n // Default style refund order(principal, interest, fees and penalties\n // paid: principal 2000, interest 240, fees 50, penalty 0\n // refund 20 means paid: principal 1980, interest 240, fees 50, penalty\n // 0\n\n // FINERACT-885: As loan may not have started exactly four months ago,\n // make final payment today and not four months from start (as that may be in the future)\n fourMonthsfromNowCalendar.setTime(Date.from(Utils.getLocalDateOfTenant().atStartOfDay(Utils.getZoneIdOfTenant()).toInstant()));\n final String now = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n LOAN_TRANSACTION_HELPER.makeRefundByCash(now, Float.parseFloat(\"20\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, now,\n new JournalEntry(Float.parseFloat(\"20\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"20\"), JournalEntry.TransactionType.DEBIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"20.00\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n validateNumberForEqual(\"20.00\", String.valueOf(fourthInstallment.get(\"principalOutstanding\")));\n validateNumberForEqual(\"0.00\", String.valueOf(fourthInstallment.get(\"interestOutstanding\")));\n validateNumberForEqual(\"0.00\", String.valueOf(fourthInstallment.get(\"feeChargesOutstanding\")));\n\n // Make refund of 2000\n // max 2270 to refund. Pay 2000 means only principal\n // paid: principal 1980, interest 240, fees 50, penalty 0\n // refund 2000 means paid: principal 0, interest 220, fees 50, penalty 0\n\n LOAN_TRANSACTION_HELPER.makeRefundByCash(now, Float.parseFloat(\"2000\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, now,\n new JournalEntry(Float.parseFloat(\"2000\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"1980\"), JournalEntry.TransactionType.DEBIT));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, now,\n new JournalEntry(Float.parseFloat(\"20\"), JournalEntry.TransactionType.DEBIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"2020.00\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n validateNumberForEqual(\"2000.00\", String.valueOf(fourthInstallment.get(\"principalOutstanding\")));\n validateNumberForEqual(\"20.00\", String.valueOf(fourthInstallment.get(\"interestOutstanding\")));\n validateNumberForEqual(\"0.00\", String.valueOf(fourthInstallment.get(\"feeChargesOutstanding\")));\n\n }", "public void refundGiftActions(WebDriver driver) throws InterruptedException \r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t\t\tdriver.manage().timeouts().pageLoadTimeout(20,TimeUnit.SECONDS);\r\n\t\t\t\t\r\n\t\t\t//Clicking on Change Credit Button\r\n\t\t\tdriver.findElement(By.xpath(\"//a[contains(text(),'Refund Gift')]\")).click();\t\t\t\r\n\t\t\t//driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t\t\tdriver.manage().timeouts().pageLoadTimeout(30,TimeUnit.SECONDS);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Before Refund total cash\");\r\n\t\t\t\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tdriver.findElement(By.xpath(\"//button[contains(text(),'Refund Total Cash')]\")).click();\t\r\n\t\t\t\tSystem.out.println(\"After Refund total cash\");\r\n\t\t\t\tdriver.manage().timeouts().pageLoadTimeout(20,TimeUnit.SECONDS);\r\n\t\t\t}catch(TimeoutException e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tThread.sleep(10000);\r\n\t\t\tSystem.out.println(\"Before pop up\");\r\n\t\t\tverifyRefundStatus = driver.findElement(By.xpath(\"//div[contains(text(),'Refund was successful')]\")).isDisplayed();\r\n\t\t\tSystem.out.println(\"verifyRefundStatus:\"+verifyRefundStatus);\r\n\t\t\tSystem.out.println(\"After pop up\");\r\n\t\t\t\r\n\t\t\tif(verifyRefundStatus)\r\n\t\t\t{\r\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t\t\t\tdriver.findElement(By.xpath(\"//button[contains(text(),'Close')]\")).click();\r\n\t\t\t\t\r\n\t\t\t\tFloat creditValue = Float.parseFloat(creditsOnGifts); \r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t\t\t\t\tverifyCreditsRefundID = driver.findElement(By.xpath(\"//td[contains(text(),'Credit Modification')]\")).isDisplayed();\r\n\t\t\t\t\tSystem.out.println(\"verifyCreditsRefundID:\"+verifyCreditsRefundID);\r\n\t\t\t\t}catch(Exception wde)\r\n\t\t\t\t{\r\n\t\t\t\t\twde.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(creditValue == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t\t\t\t\tmembershipRefundID = driver.findElement(By.xpath(\"//tr[td[contains(text(),'Membership')]]/td[9]\")).getText();\r\n\t\t\t\t System.out.println(\"membershipRefundID:\"+membershipRefundID);\r\n\t\t\t\t \r\n\t\t\t\t chargeID = driver.findElement(By.xpath(\"//tr[td[contains(text(),'Membership')]]/td[8]\")).getText();\r\n\t\t\t\t System.out.println(\"chargeID:\"+chargeID);\r\n\t\t\t\t \r\n\t\t\t\t totalCashToRefund = driver.findElement(By.xpath(\"//tr[td[strong[contains(text(),'Total cash to refund:')]]]/td[4]\")).getText();\r\n\t\t\t\t System.out.println(\"totalCashToRefund:\"+totalCashToRefund); \r\n\t\t\t\t driver.manage().timeouts().implicitlyWait(5,TimeUnit.SECONDS);\r\n\t\t\t\t}else if(verifyCreditsRefundID)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(verifyCreditsRefundID)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t\t\t\t\t\tcreditsRefundID = driver.findElement(By.xpath(\"//tr[td[contains(text(),'Credit Modification')]]/td[9]\")).getText();\r\n\t\t\t\t\t System.out.println(\"creditsRefundID:\"+creditsRefundID);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t\t\t\t\tmembershipRefundID = driver.findElement(By.xpath(\"//tr[td[contains(text(),'Membership')]]/td[9]\")).getText();\r\n\t\t\t\t System.out.println(\"membershipRefundID:\"+membershipRefundID);\r\n\t\t\t\t \r\n\t\t\t\t chargeID = driver.findElement(By.xpath(\"//tr[td[contains(text(),'Membership')]]/td[8]\")).getText();\r\n\t\t\t\t System.out.println(\"chargeID:\"+chargeID);\r\n\t\t\t\t \r\n\t\t\t\t totalCashToRefund = driver.findElement(By.xpath(\"//tr[td[strong[contains(text(),'Total cash to refund:')]]]/td[4]\")).getText();\r\n\t\t\t\t System.out.println(\"totalCashToRefund:\"+totalCashToRefund); \r\n\t\t\t\t driver.manage().timeouts().implicitlyWait(5,TimeUnit.SECONDS);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception wde)\r\n\t\t{\r\n\t\t\twde.printStackTrace();\r\n\t\t}\r\n\t}", "com.dogecoin.protocols.payments.Protos.Output getRefundTo(int index);", "public ResultMessage addRefunds(PurchaseVO vo) throws RemoteException{\r\n\t\tif(RemoteHelper.getInstance().getPurchaseBillDataService().addPurchaseBill(toPurchaseBillPO(vo))==feedback.Success){\r\n\t\t\treturn ResultMessage.SUCCESS;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn ResultMessage.FAILED;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic Refund getRefund(int refundNo) throws Exception {\n\t\treturn null;\r\n\t}", "public String getRefundReason() {\n return refundReason;\n }", "private void clearRefundTo() {\n refundTo_ = emptyProtobufList();\n }", "public void setRefundState(Integer refundState) {\n this.refundState = refundState;\n }", "public void setRefundMoney(Integer refundMoney) {\n this.refundMoney = refundMoney;\n }", "public int getRefundQuantity() {\n return refundQuantity;\n }", "int updateByPrimaryKey(TRefundOrder record);", "public void transact() {\n\t\truPay.transact();\n\n\t}", "public FeeRefund create(Map<String, Object> params, RequestOptions options)\n throws StripeException {\n return ApiResource.request(ApiResource.RequestMethod.POST, String.format(\"%s%s\",\n Stripe.getApiBase(), this.getUrl()), params, FeeRefund.class, options);\n }", "private void addRefundTo(\n int index, com.dogecoin.protocols.payments.Protos.Output value) {\n value.getClass();\n ensureRefundToIsMutable();\n refundTo_.add(index, value);\n }", "private void addRefundTo(com.dogecoin.protocols.payments.Protos.Output value) {\n value.getClass();\n ensureRefundToIsMutable();\n refundTo_.add(value);\n }", "@Test\n public void reentrantCallSelf() {\n byte[] txDataMethodArguments = ABIUtil.encodeMethodArguments(\"putStorage\");\n AvmRule.ResultWrapper resultWrapper = avmRule.call(from, dappAddr, BigInteger.ZERO, txDataMethodArguments, energyLimit, energyPrice);\n Assert.assertTrue(resultWrapper.getReceiptStatus().isSuccess());\n\n byte[] data = ABIUtil.encodeMethodArguments(\"resetStorage\");\n txDataMethodArguments = ABIUtil.encodeMethodArguments(\"reentrantCall\", dappAddr, data, new byte[0]);\n resultWrapper = avmRule.call(from, dappAddr, BigInteger.ZERO, txDataMethodArguments, energyLimit, energyPrice);\n Assert.assertTrue(resultWrapper.getReceiptStatus().isSuccess());\n // cost before the refund is processed\n long executionCost = 61934 + 29 * 5 +\n 5 * RuntimeMethodFeeSchedule.BlockchainRuntime_avm_resetStorage;\n Assert.assertEquals(executionCost - executionCost / 2, energyLimit - resultWrapper.getTransactionResult().getEnergyRemaining());\n }", "private void cancel() {\n recoTransaction.cancel();\n }", "public com.vodafone.global.er.decoupling.binding.request.RefundCreditRequest createRefundCreditRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.RefundCreditRequestImpl();\n }", "private void refundSeats() {\n\t\tint numSeats;\n\n\t\tSystem.out.print(\"Please enter the number of seats to refund: \");\n\t\tnumSeats = Integer.parseInt(sc.nextLine());\n\t\t\n\t\t// Reject attempt to refund more seats than are available\n\t\tif (numSeats > coach.numSeatsBooked()) {\n\t\t\tSystem.out.printf(\"Unable to refund %d seats. Only %d booked\\n\", \n\t\t\t\t\tnumSeats, coach.numSeatsBooked());\n\t\t\treturn;\n\t\t}\n\t\t// Refund each of the requested seats\n\t\tfor (int i = 0; i < numSeats; i++) {\n\t\t\tint seatPos;\n\t\t\tboolean refundResult;\n\t\t\tSystem.out.println(\"Seats refunded: \" + i);\n\t\t\tdo {\n\t\t\t\tSystem.out.print(\"Please enter the seat position to refund: \");\n\t\t\t\tseatPos = Integer.parseInt(sc.nextLine());\n\t\t\t\t// Attempt to refund seat\n\t\t\t\trefundResult = coach.refundSeat(seatPos);\n\t\t\t\tif (refundResult == false)\n\t\t\t\t\tSystem.out.println(\"Seat position wasn't booked. Please try again\");\n\t\t\t} while (refundResult == false);\n\t\t}\n\t\tcoach.printReceipt();\n\t}", "public void setRefundReason(String refundReason) {\n this.refundReason = refundReason;\n }", "public Builder clearRefundTo() {\n copyOnWrite();\n instance.clearRefundTo();\n return this;\n }", "@Override\n\tpublic ResultBO<?> refundQuery(PayQueryParamVO payQueryParamVO) {\n\t\treturn super.refundQuery(payQueryParamVO);\n\t}", "int insert(TRefundOrder record);", "private void setRefundTo(\n int index, com.dogecoin.protocols.payments.Protos.Output value) {\n value.getClass();\n ensureRefundToIsMutable();\n refundTo_.set(index, value);\n }", "@Override\n\tpublic int updateRefundStatus(long transactionid) {\n\t\treturn paydao.modifyRefundStatus(transactionid);\n\t}", "public FeeRefund create(Map<String, Object> params) throws StripeException {\n return create(params, (RequestOptions) null);\n }", "public Integer getRefundMoney() {\n return refundMoney;\n }", "@Test\n public void edit() throws RazorpayException{\n JSONObject request = new JSONObject(\"\" +\n \"{\\\"notes\\\":\" +\n \"{\\\"notes_key_1\\\":\\\"BeammeupScotty.\\\",\" +\n \"\\\"notes_key_2\\\":\\\"Engage\\\"}}\");\n\n String mockedResponseJson = \"{\\n\" +\n \" \\\"id\\\": \"+REFUND_ID+\",\\n\" +\n \" \\\"entity\\\": \\\"refund\\\",\\n\" +\n \" \\\"amount\\\": 300100,\\n\" +\n \" \\\"currency\\\": \\\"INR\\\",\\n\" +\n \" \\\"payment_id\\\": \\\"pay_FIKOnlyii5QGNx\\\",\\n\" +\n \" \\\"notes\\\": {\\n\" +\n \" \\\"notes_key_1\\\": \\\"Beam me up Scotty.\\\",\\n\" +\n \" \\\"notes_key_2\\\": \\\"Engage\\\"\\n\" +\n \" },\\n\" +\n \" \\\"receipt\\\": null,\\n\" +\n \" \\\"acquirer_data\\\": {\\n\" +\n \" \\\"arn\\\": \\\"10000000000000\\\"\\n\" +\n \" },\\n\" +\n \" \\\"created_at\\\": 1597078124,\\n\" +\n \" \\\"batch_id\\\": null,\\n\" +\n \" \\\"status\\\": \\\"processed\\\",\\n\" +\n \" \\\"speed_processed\\\": \\\"normal\\\",\\n\" +\n \" \\\"speed_requested\\\": \\\"optimum\\\"\\n\" +\n \"}\";\n\n try {\n mockResponseFromExternalClient(mockedResponseJson);\n mockResponseHTTPCodeFromExternalClient(200);\n Refund fetch = refundClient.edit(REFUND_ID, request);\n assertNotNull(fetch);\n assertEquals(REFUND_ID,fetch.get(\"id\"));\n assertEquals(\"refund\",fetch.get(\"entity\"));\n assertEquals(300100,(int)fetch.get(\"amount\"));\n assertEquals(\"INR\",fetch.get(\"currency\"));\n String editRequest = getHost(String.format(Constants.REFUND,REFUND_ID));\n verifySentRequest(true, request.toString(), editRequest);\n } catch (IOException e) {\n assertTrue(false);\n }\n }", "int updateByPrimaryKeySelective(TRefundOrder record);", "public Reimbursement(){}", "public com.vodafone.global.er.decoupling.binding.request.RefundCreditRequestType createRefundCreditRequestType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.RefundCreditRequestTypeImpl();\n }", "java.util.List<com.dogecoin.protocols.payments.Protos.Output> \n getRefundToList();", "public Integer getRefundState() {\n return refundState;\n }", "protected void testUncancelReal() {\n\n log.info(\"Starting testUncancel\");\n\n try {\n\n String prod = \"Shotgun\";\n BillingPeriod term = BillingPeriod.MONTHLY;\n String planSet = IPriceListSet.DEFAULT_PRICELIST_NAME;\n\n // CREATE\n Subscription subscription = createSubscription(prod, term, planSet);\n IPlanPhase trialPhase = subscription.getCurrentPhase();\n assertEquals(trialPhase.getPhaseType(), PhaseType.TRIAL);\n\n // NEXT PHASE\n DateTime expectedPhaseTrialChange = Clock.addDuration(subscription.getStartDate(), trialPhase.getDuration());\n checkNextPhaseChange(subscription, 1, expectedPhaseTrialChange);\n\n // MOVE TO NEXT PHASE\n testListener.pushExpectedEvent(NextEvent.PHASE);\n clock.setDeltaFromReality(trialPhase.getDuration(), DAY_IN_MS);\n assertTrue(testListener.isCompleted(2000));\n IPlanPhase currentPhase = subscription.getCurrentPhase();\n assertEquals(currentPhase.getPhaseType(), PhaseType.EVERGREEN);\n\n // SET CTD + RE READ SUBSCRIPTION + CHANGE PLAN\n IDuration ctd = getDurationMonth(1);\n DateTime newChargedThroughDate = Clock.addDuration(expectedPhaseTrialChange, ctd);\n billingApi.setChargedThroughDate(subscription.getId(), newChargedThroughDate);\n subscription = (Subscription) entitlementApi.getSubscriptionFromId(subscription.getId());\n\n testListener.pushExpectedEvent(NextEvent.CANCEL);\n\n // CANCEL\n subscription.cancel(clock.getUTCNow(), false);\n assertFalse(testListener.isCompleted(2000));\n\n subscription.uncancel();\n\n // MOVE TO EOT + RECHECK\n clock.addDeltaFromReality(ctd);\n DateTime future = clock.getUTCNow();\n assertFalse(testListener.isCompleted(2000));\n\n IPlan currentPlan = subscription.getCurrentPlan();\n assertEquals(currentPlan.getProduct().getName(), prod);\n currentPhase = subscription.getCurrentPhase();\n assertEquals(currentPhase.getPhaseType(), PhaseType.EVERGREEN);\n\n } catch (EntitlementUserApiException e) {\n Assert.fail(e.getMessage());\n }\n }", "public void receiveResultfechaRefundido(\r\n es.mitc.redes.urbanismoenred.serviciosweb.v1_86.UrbrWSServiceStub.FechaRefundidoResponseE result\r\n ) {\r\n }", "public Builder setRefundTo(\n int index, com.dogecoin.protocols.payments.Protos.Output value) {\n copyOnWrite();\n instance.setRefundTo(index, value);\n return this;\n }", "public void cancelCurrentPurchase() throws VerificationFailedException {\n\t}", "public void cancelCurrentPurchase() throws VerificationFailedException {\n\t}", "@Override\r\n\t\tpublic void action() {\n MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.ACCEPT_PROPOSAL);\r\n MessageTemplate mt2 = MessageTemplate.MatchPerformative(ACLMessage.PROPOSE);\r\n ACLMessage msg = myAgent.receive(mt);\r\n //If it is a ACCEPT_PROPOSAL, the seller sell the book to the buyer (execpt if the book if not here anymore)\r\n if (msg != null) {\r\n // ACCEPT_PROPOSAL Message received. Process it\r\n title = msg.getContent();\r\n ACLMessage reply = msg.createReply();\r\n\r\n Integer price = (Integer) catalogue.remove(title);\r\n if (price != null) {\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(String.valueOf(price));\r\n System.out.println(title+\" sold to agent \"+msg.getSender().getName());\r\n }\r\n else {\r\n // The requested book has been sold to another buyer in the meanwhile .\r\n reply.setPerformative(ACLMessage.FAILURE);\r\n reply.setContent(\"not-available\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n //If it is a new PROPOSE, the buyer is trying to negociate.\r\n else {\r\n ACLMessage msg2 = myAgent.receive(mt2);\r\n if(msg2 != null){\r\n ACLMessage reply = msg2.createReply();\r\n //If the price of the buyer is OK for the seller according to his tolerance, the transaction is made\r\n if(((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) <= tolerance){\r\n System.out.println(myAgent.getLocalName() + \" say : OK, let's make a deal\");\r\n updateCatalogue(title, Integer.parseInt(msg2.getContent()));\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(msg2.getContent());\r\n }\r\n //Else, the seller accept to negociate, he up his tolerance and ask the buyer to up his real price\r\n else{\r\n //Send a REQUEST Message to negociate with the buyer\r\n reply.setPerformative(ACLMessage.REQUEST);\r\n //Up the tolerance by *change*\r\n tolerance += change;\r\n reply.setContent(String.valueOf(change));\r\n System.out.println(myAgent.getLocalName() + \" say : Let's up your real price while I up my tolerance (\" + ((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) + \" < \" + tolerance + \")\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n else{\r\n block();\r\n }\r\n }\r\n\t\t}", "private void addAllRefundTo(\n java.lang.Iterable<? extends com.dogecoin.protocols.payments.Protos.Output> values) {\n ensureRefundToIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, refundTo_);\n }", "public void setRefundId(String refundId) {\n this.refundId = refundId == null ? null : refundId.trim();\n }", "public Builder addRefundTo(\n int index, com.dogecoin.protocols.payments.Protos.Output value) {\n copyOnWrite();\n instance.addRefundTo(index, value);\n return this;\n }", "public void execute() {\r\n int depositAmount = this.promptDepositAmount(); // amount in cents\r\n if (depositAmount != CANCELED) {\r\n screen.displayMessage(\"\\nPlease insert a deposit envelope containing: \");\r\n screen.displayDollarAmount(depositAmount / 100);\r\n screen.displayMessageLine(\".\");\r\n\r\n if (depositSlot.isEnvelopeReceived()) {\r\n screen.displayMessageLine(\"\\nYour envelope has been received.\");\r\n screen.displayMessageLine(\"The money just deposited will not be available until we verify \" +\r\n \"the amount of any enclosed cash and your checks clear.\");\r\n bankDatabase.credit(this.accountNumber, depositAmount / 100);\r\n } else {\r\n screen.displayMessageLine (\"\\nYou did not insert an envelope. The ATM has canceled your transaction.\");\r\n }\r\n } else {\r\n screen.displayMessageLine( \"\\nCanceling transaction...\");\r\n }\r\n }", "@Override\n\tpublic int getRefund(Refund refund) {\n\t\treturn paydao.doRefund(refund);\n\t}", "private void hitApiForActivateDeal() {\n appUtils.showProgressDialog(mActivity, false);\n HashMap<String, String> params = new HashMap<>();\n params.put(ApiKeys.DEAL_ID, dealData.getDealId());\n params.put(ApiKeys.DEAL_STATUS, \"1\");\n\n params.put(ApiKeys.DEAL_TITLE, etTitle.getText().toString().trim());\n params.put(ApiKeys.DEAL_DESCRIPTION, etDescription.getText().toString().trim());\n params.put(ApiKeys.TOTAL_ITEMS, etTotalItems.getText().toString().trim());\n params.put(ApiKeys.ORIGINAL_PRICE, etOriginalPrice.getText().toString().trim());\n params.put(ApiKeys.NEW_PRICE, tvNewPrice.getText().toString());\n params.put(ApiKeys.START_DATE_TIME, parseTime(etBeginTime.getText().toString().trim()));\n params.put(ApiKeys.END_DATE_TIME, parseTime(etEndTime.getText().toString().trim()));\n\n ApiInterface service = RestApi.createService(ApiInterface.class);\n Call<ResponseBody> call = service.deactivateDeal(AppSharedPrefs.getInstance(mActivity).\n getString(AppSharedPrefs.PREF_KEY.ACCESS_TOKEN, \"\"), appUtils.encryptData(params));\n ApiCall.getInstance().hitService(mActivity, call, new NetworkListener() {\n @Override\n public void onSuccess(int responseCode, String response) {\n try {\n JSONObject mainObject = new JSONObject(response);\n if (mainObject.getInt(\"CODE\") == 200) {\n appUtils.showToast(mActivity, getString(R.string.deal_activated));\n Intent intent = new Intent();\n intent.putExtra(Constants.DEAL_POSITION_KEY, position);\n intent.putExtra(Constants.DEAL_STATUS_KEY, \"1\");\n setResult(Constants.DEAL_ACTIVIATE_RESULT_CODE, intent);\n Intent intent1 = new Intent(Constants.REFRESH_RECCEIVER_KEY);\n // You can also include some extra data.\n intent1.putExtra(\"refresh\", true);\n LocalBroadcastManager.getInstance(mActivity).sendBroadcast(intent1);\n finish();\n } else if (mainObject.getInt(\"CODE\") == ApiKeys.UNAUTHORISED_CODE) {\n appUtils.logoutFromApp(mActivity, mainObject.optString(\"MESSAGE\"));\n } else {\n appUtils.showSnackBar(activityCreateDeal, mainObject.optString(\"MESSAGE\"));\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onSuccessErrorBody(String response) {\n\n }\n\n @Override\n public void onFailure() {\n appUtils.showSnackBar(activityCreateDeal, getString(R.string.txt_something_went_wrong));\n }\n });\n\n }", "@Override\n\tprotected void onCancelRequestPurchase() {\n\t\tmTxtStatus.setText(\"requestPurchase onCancel\");\n\t}", "@DirtiesDatabase\n\t@Test\n\tpublic void testSuccessfulReversePreAuthorization() {\n\t\torderPayment.setAuthorizationCode(AUTH_CODE1);\n\t\tGiftCertificateAuthorizationRequest authorizationRequest = createAuthorizationRequestFromOrderPayment(orderPayment);\n\n\t\tGiftCertificateTransactionResponse response = transactionService.preAuthorize(authorizationRequest, null);\n\t\t\n\t\torderPayment.setAuthorizationCode(response.getAuthorizationCode());\n\t\torderPayment.setReferenceId(response.getGiftCertificateCode());\n\n\t\torderPayment.setAmount(REGULAR_AUTH);\n\t\t\ttransactionService.reversePreAuthorization(orderPayment);\n\n\t\tassertEquals(BALANCE, transactionService.getBalance(giftCertificate));\n\t\t}", "@RequestMapping(value = \"/organizer_refund/create\", method = RequestMethod.POST,\n produces = \"application/json;charset=UTF-8\")\n public ResponseEntity<String> createOrganizerRefund(\n @RequestBody(required = true) OOrderRefundTable organizerRefundTable) {\n try {\n int affectedRow = refundRepositoryImpl.createOrganizerRefund(organizerRefundTable);\n\n if (affectedRow == 0) {\n return new ResponseEntity<>(\"{\\\"message\\\" : \\\"Organizer refund not created\\\"}\",\n HttpStatus.OK);\n } else {\n return new ResponseEntity<>(\n \"{\\\"message\\\" : \\\"Organizer refund successfully registered\\\"}\",\n HttpStatus.OK);\n }\n } catch (DataIntegrityViolationException di) {\n return new ResponseEntity<>(\"{\\\"message\\\" : \\\"Invalid input, lack of data\\\"}\",\n HttpStatus.BAD_REQUEST);\n } catch (Exception e) {\n return new ResponseEntity<>(\"{\\\"message\\\" : \\\"Unknown error\\\"}\",\n HttpStatus.INTERNAL_SERVER_ERROR);\n }\n }", "private void hitApiForCreateDeal() {\n appUtils.showProgressDialog(mActivity,false);\n\n HashMap<String, String> params = new HashMap<>();\n params.put(ApiKeys.DEAL_TITLE, etTitle.getText().toString().trim());\n params.put(ApiKeys.DEAL_DESCRIPTION, etDescription.getText().toString().trim());\n params.put(ApiKeys.TOTAL_ITEMS, etTotalItems.getText().toString().trim());\n params.put(ApiKeys.ORIGINAL_PRICE, etOriginalPrice.getText().toString().trim());\n params.put(ApiKeys.NEW_PRICE, tvNewPrice.getText().toString());\n params.put(ApiKeys.START_DATE_TIME, parseTime(etBeginTime.getText().toString().trim()));\n params.put(ApiKeys.END_DATE_TIME, parseTime(etEndTime.getText().toString().trim()));\n\n ApiInterface service = RestApi.createService(ApiInterface.class);\n Call<ResponseBody> call = service.createDeal(AppSharedPrefs.getInstance(mActivity).\n getString(AppSharedPrefs.PREF_KEY.ACCESS_TOKEN, \"\"), appUtils.encryptData(params));\n ApiCall.getInstance().hitService(mActivity, call, new NetworkListener() {\n @Override\n public void onSuccess(int responseCode, String response) {\n CreateDealModel createDealModel = new Gson().fromJson(response, CreateDealModel.class);\n if (createDealModel.getCODE() == 200) {\n /*Intent intent = new Intent(mActivity, MerchantActivity.class);\n startActivity(intent);*/\n setResult(Constants.CREATE_DEAL_REQ_CODE);\n\n Intent intent1 = new Intent(Constants.REFRESH_RECCEIVER_KEY);\n // You can also include some extra data.\n intent1.putExtra(\"refresh\", true);\n LocalBroadcastManager.getInstance(mActivity).sendBroadcast(intent1);\n\n mActivity.finish();\n\n } else if (createDealModel.getCODE() == ApiKeys.UNAUTHORISED_CODE) {\n appUtils.logoutFromApp(mActivity, createDealModel.getMESSAGE());\n } else {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), createDealModel.getMESSAGE());\n }\n\n appUtils.hideProgressDialog(mActivity);\n }\n\n @Override\n public void onSuccessErrorBody(String response) {\n\n }\n\n @Override\n public void onFailure() {\n appUtils.hideProgressDialog(mActivity);\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.txt_something_went_wrong));\n\n }\n });\n\n }", "Receipt chargeOrder(PizzaOrder order, CreditCard creditCard);", "int insertSelective(TRefundOrder record);", "private void makeWithdraw() {\n\t\t\r\n\t}", "public void createInventoryReward() {\n if (inventoryEntityToRetrieve == null) {\n try {\n inventoryEntityToRetrieve = RandomBenefitModel.getInventoryRewards(application, encounter, characterVM.getDistance());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "public void autoApprove(int reimburseID, String autoReason, int status);", "public void doPositiveClick(String args) {\n Intent intent = getIntent();\n String budget_type = intent.getStringExtra(\"budget_type\");\n int amountVal1 = accountTypeDbAdapter.getSinlgeEntryAccountAmount2(1);\n int amountVal2 = accountTypeDbAdapter.getSinlgeEntryAccountAmount2(2);\n int amountVal = amountVal1 + amountVal2;\n String amountVal3 = Integer.toString(amountVal);\n Intent data7 = new Intent();\n data7.putExtra(EXTRA_STRING_NAME7, amountVal3);\n // Activity finished ok, return the data\n Toast.makeText(getApplicationContext(), \"Delete Transaction Cancelled\", Toast.LENGTH_SHORT).show();\n setResult(RESULT_OK, data7);\n\n super.finish();\n }", "@Test\n\tpublic void testProcessInventoryUpdateOrderCancellation() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_10, inventoryDto.getAllocatedQuantity());\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t}\n\t\t});\n\n\t\tfinal Inventory inventory2 = assembler.assembleDomainFromDto(inventoryDto);\n\n\t\tfinal InventoryDao inventoryDao2 = context.mock(InventoryDao.class, INVENTORY_DAO2);\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_NEG_10);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tatLeast(1).of(inventoryDao2).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory2));\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, WAREHOUSE_UID,\tInventoryEventType.STOCK_DEALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tinventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_0, inventoryDto.getAllocatedQuantity());\n\t}", "public FeeRefund retrieve(String id) throws StripeException {\n return retrieve(id, (RequestOptions) null);\n }", "@Test\n public void fetchMultipleRefund() throws RazorpayException{\n String mockedResponseJson = \"{\\n\" +\n \" \\\"entity\\\": \\\"collection\\\",\\n\" +\n \" \\\"count\\\": 1,\\n\" +\n \" \\\"items\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": \\\"rfnd_FP8DDKxqJif6ca\\\",\\n\" +\n \" \\\"entity\\\": \\\"refund\\\",\\n\" +\n \" \\\"amount\\\": 300100,\\n\" +\n \" \\\"currency\\\": \\\"INR\\\",\\n\" +\n \" \\\"payment_id\\\": \\\"pay_FIKOnlyii5QGNx\\\",\\n\" +\n \" \\\"notes\\\": {\\n\" +\n \" \\\"comment\\\": \\\"Comment for refund\\\"\\n\" +\n \" },\\n\" +\n \" \\\"receipt\\\": null,\\n\" +\n \" \\\"acquirer_data\\\": {\\n\" +\n \" \\\"arn\\\": \\\"10000000000000\\\"\\n\" +\n \" },\\n\" +\n \" \\\"created_at\\\": 1597078124,\\n\" +\n \" \\\"batch_id\\\": null,\\n\" +\n \" \\\"status\\\": \\\"processed\\\",\\n\" +\n \" \\\"speed_processed\\\": \\\"normal\\\",\\n\" +\n \" \\\"speed_requested\\\": \\\"optimum\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \"}\";\n try {\n mockResponseFromExternalClient(mockedResponseJson);\n mockResponseHTTPCodeFromExternalClient(200);\n List<Refund> fetch = refundClient.fetchMultipleRefund(REFUND_ID);\n assertNotNull(fetch);\n assertTrue(fetch.get(0).has(\"id\"));\n assertTrue(fetch.get(0).has(\"entity\"));\n assertTrue(fetch.get(0).has(\"amount\"));\n assertTrue(fetch.get(0).has(\"currency\"));\n assertTrue(fetch.get(0).has(\"payment_id\"));\n String fetchRequest = getHost(String.format(Constants.REFUND_MULTIPLE,REFUND_ID));\n verifySentRequest(false, null, fetchRequest);\n } catch (IOException e) {\n assertTrue(false);\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Map<String, Object> updateData = new HashMap<>();\n updateData.put(\"reservationStatus\", 2);\n /*\n Set status of reservation to 2 (cancel)\n */\n db.collection(\"reservations\")\n .document(list.get(viewHolder.getAdapterPosition()).getReservationId())\n .update(updateData)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull @NotNull Task<Void> task) {\n Reservation reservation = list.get(viewHolder.getAdapterPosition());\n /*\n Refund balance to customer\n */\n db.collection(\"customers\")\n .whereEqualTo(\"customerEmail\", email)\n .get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull @NotNull Task<QuerySnapshot> task) {\n if (task.isSuccessful() && !task.getResult().isEmpty()) {\n DocumentSnapshot doc = task.getResult().getDocuments().get(0);\n Customer cus = doc.toObject(Customer.class);\n double refund = reservation.getReservationAmount() + cus.getCustomerBalance();\n Map<String, Object> Data = new HashMap<>();\n Data.put(\"customerBalance\", refund);\n db.collection(\"customers\")\n .document(cus.getCustomerId())\n .update(Data)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull @NotNull Task<Void> task) {\n if (task.isSuccessful()) {\n new AlertDialog.Builder(CancelReservation.this).setTitle(\"Refund Notice\")\n .setMessage(\"Cancel Reservation Successful, Your Balance Has Been Refund\") //Annouce that balance has been refund to customer\n .setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n /*\n Update reservation list\n */\n @Override\n public void onClick(DialogInterface dialog, int which) {\n res.setReservationStatus(2);\n reserAdap.notifyDataSetChanged();\n }\n }).show();\n }\n }\n });\n }\n }\n });\n }\n });\n }", "public void generateInvoice() throws InvoicePrintException {\n authInvoice = null;\n try {\n signedInvoice = signer.sign(xmlGenerate.generateXMLFile(getInvoice(), getCustomer(), issuer), issuer.getCertificate(), issuer.getPassword());\n final List<Autorizacion> authResponse = authorization.syncRequest(signedInvoice, ServiceEnvironment.TEST, 20);\n if (!authResponse.isEmpty()) {\n final Autorizacion autorizacion = authResponse.get(0);\n final String authorizationStatus = autorizacion.getEstado();\n LOG.info(String.format(\"Invoice status: %s\", authorizationStatus));\n FacesMessageHelper.addInfo(String.format(\"Factura %s\", authorizationStatus), null);\n FacesMessageHelper.addQueryMessages(autorizacion.getMensajes().getMensaje());\n\n if (AuthorizationState.AUTORIZADO.name().equals(authorizationStatus)) {\n authInvoice = autorizacion.getNumeroAutorizacion() == null ? null : autorizacion;\n List<Attachment> attachments = createAttachments(autorizacion);\n stroreDocument(AuthorizationState.AUTORIZADO);\n sendMailWithAttachments(attachments);\n }\n } else {\n FacesMessageHelper.addError(\"Existe Problemas con el Servicio de Rentas Internas \", \"\");\n stroreDocument(AuthorizationState.NO_AUTORIZADO);\n }\n\n } catch (ReturnedInvoiceException rie) {\n final Comprobante comprobante = rie.getComprobantes().get(0);\n FacesMessageHelper.addRequestMessages(comprobante.getMensajes().getMensaje());\n stroreDocument(AuthorizationState.NO_AUTORIZADO);\n } catch (SignerException e) {\n LOG.error(e, e);\n FacesMessageHelper.addError(String.format(\"Hubo un error al firmar el documento: %s\", e.getMessage()), \"\");\n stroreDocument(AuthorizationState.NO_AUTORIZADO);\n } catch (Exception e) {\n FacesMessageHelper.addError(\"Existe Problemas con el Servicio de Rentas Internas \", \"Reintente la facturacion\");\n stroreDocument(AuthorizationState.NO_AUTORIZADO);\n }\n }", "@Test\n\tpublic void refundByBankTransferEuSEPA() throws Exception {\n\t\ttry {\n\t\t\tUtility.initConfiguration();\n\t\t\tThread.sleep(3000);\n\t\t\t// Login to back end and check payment method is enabled or not\n\t\t\tUtility.wooCommerceBackEndLogin();\n\t\t\tThread.sleep(3000);\n\t\t\tElementLocators element = PageFactory.initElements(driver, ElementLocators.class);\n\t\t\ttest = extend.createTest(\"Vendor script execution for SEPA 'REFUND_BY_BANK_TRANSFER_EU'\");\n\t\t\tActions actions = new Actions(driver);\n\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\tThread.sleep(3000);\n\t\t\telement.WooCommerce_Settings.click();\n\t\t\telement.Payment_Tab.click();\n\t\t\tThread.sleep(2000);\n\t\t\telement.Sepa_Payment_Display.click();\n\t\t\t// Checking payment method enabled or disabled\n\t\t\tif (!element.Sepa_Enable_Payment_Method_Checkbox.isSelected()) {\n\t\t\t\telement.Sepa_Enable_Payment_Method_Checkbox.click();\n\t\t\t\tThread.sleep(3000);\n\t\t\t}\n\t\t\t// Checking Guarantee payment enabled or disabled\n\t\t\tif (element.Sepa_Enable_Payment_Guarantee_CheckBox.isSelected()) {\n\t\t\t\telement.Sepa_Enable_Payment_Guarantee_CheckBox.click();\n\t\t\t\tThread.sleep(3000);\n\t\t\t}\n\t\t\telement.Sepa_Payment_Save_Changes.click();\n\t\t\tThread.sleep(3000);\n\t\t\tdriver.navigate().to(Constant.shopfrontendurl);\n\t\t\tThread.sleep(3000);\n\t\t\tUtility.wooCommerceCheckOutProcess();\n\t\t\tThread.sleep(3000);\n\t\t\t// Read the data from excel sheet\n\t\t\tMap<String, String> UserData = new HashMap<String, String>();\n\t\t\tUserData = Data.ExcelReader_PaymentMethods();\n\t\t\t// Check whether payment method is displayed in checkout page\n\t\t\tif (element.Sepa_Label.isDisplayed()) {\n\t\t\t\tif (element.Sepa_Radio_button.isDisplayed() == true) {\n\t\t\t\t\telement.Sepa_Radio_button.click();\n\t\t\t\t}\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\telement.Sepa_Iban_TextBox.sendKeys(UserData.get(\"SEPAIBAN\"));\n\t\t\t\telement.Place_Order.click();\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(25, TimeUnit.SECONDS);\n\t\t\t\t// After order placed successfully verify Thank you message displayed\n\t\t\t\tString thankyoumessage = element.FE_Thank_You_Page_Text.getText();\n\t\t\t\tif (thankyoumessage.equals(\"Thank you. Your order has been received.\")) {\n\t\t\t\t\tSystem.out.println(\"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.INFO, \"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\tString totalOrderAmount = element.OrderDetails_TotalAmount.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\tString TID = element.OrderDetails_Note_TID.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\tSystem.out.println(\"Order amount:\" + totalOrderAmount);\n\t\t\t\t\tSystem.out.println(\"TID:\" + TID);\n\t\t\t\t\t// Go to callback execution site and enter vendor script URL\n\t\t\t\t\tdriver.navigate().to(Constant.vendorscripturl);\n\t\t\t\t\tThread.sleep(4000);\n\t\t\t\t\telement.Vendor_Script_Url.sendKeys((Constant.shopfrontendurl) + \"?wc-api=novalnet_callback\");\n\t\t\t\t\t// Enter required parameter\n\t\t\t\t\telement.Vendor_Id.clear();\n\t\t\t\t\telement.Vendor_Id.sendKeys(\"4\");\n\t\t\t\t\telement.Vendor_Auth_Code.clear();\n\t\t\t\t\telement.Vendor_Auth_Code.sendKeys(\"JyEtHUjjbHNJwVztW6JrafIMHQvici\");\n\t\t\t\t\telement.Product_Id.clear();\n\t\t\t\t\telement.Product_Id.sendKeys(\"14\");\n\t\t\t\t\telement.Tariff_Id.clear();\n\t\t\t\t\telement.Tariff_Id.sendKeys(\"30\");\n\t\t\t\t\telement.Payment_Type_Edit_Button.click();\n\t\t\t\t\tSelect selectpaymenttype = new Select(element.Payment_Type_Selectbox);\n\t\t\t\t\tselectpaymenttype.selectByVisibleText(\"REFUND_BY_BANK_TRANSFER_EU\");\n\t\t\t\t\telement.Test_Mode.clear();\n\t\t\t\t\telement.Test_Mode.sendKeys(\"1\");\n\t\t\t\t\telement.Tid_Payment.clear();\n\t\t\t\t\telement.Tid_Payment.sendKeys(TID);\n\t\t\t\t\telement.Amount.clear();\n\t\t\t\t\telement.Amount.sendKeys(totalOrderAmount);\n\t\t\t\t\telement.Currency.clear();\n\t\t\t\t\telement.Currency.sendKeys(\"EUR\");\n\t\t\t\t\telement.Status.clear();\n\t\t\t\t\telement.Status.sendKeys(\"100\");\n\t\t\t\t\telement.Tid_Status.clear();\n\t\t\t\t\telement.Tid_Status.sendKeys(\"100\");\n\t\t\t\t\telement.Tid.clear();\n\t\t\t\t\telement.Tid.sendKeys(\"13245678945612345\");\n\t\t\t\t\telement.Execute_Button.click();\n\t\t\t\t\tString callback_message = element.callback_message.getText();\t\t\t\t\t\n\t\t\t\t\tString callback_message_updated = callback_message.substring(9, callback_message.length());\n\t\t\t\t\tSystem.out.println(\"Callback execution message: \" + callback_message_updated);\n\t\t\t\t\tif (callback_message.contains(\n\t\t\t\t\t\t\t\"Novalnet callback received. Refund/Bookback executed successfully for the TID:\")) {\n\t\t\t\t\t\t// Go to shop front end and check the order status update\n\t\t\t\t\t\tdriver.navigate().to(Constant.shopbackendurl);\n\t\t\t\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t\telement.WooCommerce_Orders.click();\n\t\t\t\t\t\telement.Backend_Order_Number.click();\n\t\t\t\t\t\tString BEOrderNotes_CallBackMessage = element.BE_OrderNotes_Message.getText();\n\t\t\t\t\t\tSystem.out.println(\"Back end order note: \" + BEOrderNotes_CallBackMessage);\n\t\t\t\t\t\t// Verify the callback execution message is updated in the order note\n\t\t\t\t\t\tif (BEOrderNotes_CallBackMessage.equalsIgnoreCase(callback_message_updated)) {\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\"TC PASSED: REFUND_BY_BANK_TRANSFER_EU execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\"TC PASSED: REFUND_BY_BANK_TRANSFER_EU execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\"TC FAILED: REFUND_BY_BANK_TRANSFER_EU execution message and back end order note message text was not matched successfully\");\n\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\"TC PASSED: REFUND_BY_BANK_TRANSFER_EU execution and back end order note message text was not matched successfully\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t\ttest.log(Status.ERROR, \"ERROR: Callback response message is displayed wrongly\");\n\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"ERROR: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.ERROR, \"ERROR: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Close browser\n\t\t\tUtility.closeBrowser();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"ERROR: Unexpected error from 'refundByBankTransferEuSEPA' method\");\n\t\t\ttest.log(Status.ERROR, \"ERROR: Unexpected error from 'refundByBankTransferEuSEPA' method\");\n\t\t}\n\t}", "private LoanProtocol processRollback(LoanProtocol protocol)\n\t{\n\t\ttransferLock.countDown();\n\t\tshouldRollback = true;\n\t\treturn null;\n\t}", "protected void onCancelRequestReceipts() {\n \tmTxtStatus.setText(\"requestReceipts onCancel\");\n }", "public com.vodafone.global.er.decoupling.binding.request.RefundDiscountRequest createRefundDiscountRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.RefundDiscountRequestImpl();\n }", "public net.wit.webservice.TerminalServiceXmlServiceStub.QqChargeResponse qqCharge(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge qqCharge8)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/qqChargeRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n qqCharge8,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"qqCharge\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"qqCharge\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n net.wit.webservice.TerminalServiceXmlServiceStub.QqChargeResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (net.wit.webservice.TerminalServiceXmlServiceStub.QqChargeResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "int getRefundToCount();", "public Refund(Name alias) {\n this(alias, REFUND);\n }", "public void setRefundPrice(BigDecimal refundPrice) {\n this.refundPrice = refundPrice;\n }", "private String sendTransaction(AgentTransaction txn) {\n\t\tString responseMsg = null;\n\t\t/* vishal end */\n\t\tList<ERRORType> errorType = null;\n\t\tList<ERRORDETAILSType> errorDetails = null;\n\t\tString errorDesc = null;\n\n\n\t\ttry {\n\t\t\tFCUBSCLService service = new FCUBSCLService(); \n\t\t\tFCUBSCLServiceSEI ser = service.getFCUBSCLServiceSEI();\n\t\t\tFCUBSHEADERType fcubsHeaderType = getFcubsHeaderTypeObject();\n\t\t\tif (txn.getTxnType().equals(ServiceConstants.REAPYMENT_STATUS)) {\n\t\t\t\tlogger.info(\"sendTransaction to CBS::REPAYMENT : \"+txn.getId());\n\t\t\t\tCREATEPAYMENTFSFSREQ requestMsg = populateCreatePaymentReq(txn,\n\t\t\t\t\t\tfcubsHeaderType);\n\t\t\t\tCREATEPAYMENTFSFSRES response = ser.createPaymentFS(requestMsg);\n\t\t\t\t/* vishal Start */\n\t\t\t\tif(response != null){\n\t\t\t\t/* vishal end */\t\n\t\t\t\t\t\n\t\t\t\t\tresponseMsg = response.getFCUBSHEADER().getMSGSTAT().value();\n\t\t\t\t\terrorType = response.getFCUBSBODY().getFCUBSERRORRESP();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tlogger.info(\"sendTransaction to CBS::REPAYMENT NULL RESPONSE: \"+ txn.getId());\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t} else {\n\t\t\t\tlogger.info(\"sendTransaction to CBS::DISBURSEMENT : \"+txn.getId());\n\t\t\t\tCREATEDISBURSEMENTIOPKREQ requestMsg = populateCreateDisbrReq(\n\t\t\t\t\t\ttxn, fcubsHeaderType);\n\t\t\t\tCREATEDISBURSEMENTIOPKRES response = ser\n\t\t\t\t\t\t.createDisbursementIO(requestMsg);\n\t\t\t\t/* vishal Start */\n\t\t\t\tif(response != null){\t\t\t\t\n\t\t\t\t\tresponseMsg = response.getFCUBSHEADER().getMSGSTAT().value();\n\t\t\t\t\terrorType = response.getFCUBSBODY().getFCUBSERRORRESP();\n\t\t\t\t} else {\n\t\t\t\t\tlogger.info(\"sendTransaction to CBS::FAILED ::RESPONSE NULL:: \"+txn.getId());\n\t\t\t\n\t\t\t\t}\n\t\t\t\t/* vishal end */\n\t\t\t}\n\t\t\t/* vishal Start */\n\t\t\tif (errorType != null && !errorType.isEmpty()) {\n\t\t\t/* vishal End */\n\t\t\t\terrorDetails = errorType.get(0).getERROR();\n\t\t\t/* vishal Start */\n\t\t\t\tif (errorDetails != null && !errorDetails.isEmpty()) {\n\t\t\t/* vishal End */\n\t\t\t\t\terrorDesc = errorDetails.get(0).getEDESC();\n\t\t\t\t\tgetFcubsCbsWebDao().updateTxnWithErrorMsg(errorDesc,\n\t\t\t\t\t\t\ttxn.getTxnId());\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (WebServiceException e) {\n\t\t\tlogger.info(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tthrow new WebServiceException();\n\t\t}\n\t\treturn responseMsg;\n\t}", "public void cancelRebill(String rebillID){\n\t\tTRANSACTION_TYPE = \"SET\";\n\t\tREBILL_STATUS = \"stopped\";\n\t\tREBILL_ID = rebillID;\n\t\tAPI = \"bp20rebadmin\";\n\t}", "public void refill(int amount) {\n myAmount = myAmount + amount;\n }", "public Builder addRefundTo(com.dogecoin.protocols.payments.Protos.Output value) {\n copyOnWrite();\n instance.addRefundTo(value);\n return this;\n }" ]
[ "0.7786409", "0.69431394", "0.6744452", "0.66062135", "0.6554323", "0.6538976", "0.6440846", "0.63684314", "0.6345089", "0.6338099", "0.62872887", "0.6198203", "0.6071878", "0.6071065", "0.60081464", "0.5926172", "0.58802915", "0.5866038", "0.5848352", "0.5816646", "0.579265", "0.577115", "0.5747819", "0.57292026", "0.5682008", "0.56569344", "0.561874", "0.55787677", "0.55630493", "0.5560096", "0.55294865", "0.5498338", "0.54398906", "0.54350245", "0.5431202", "0.5416203", "0.53938127", "0.5355209", "0.5333594", "0.53312904", "0.53302735", "0.53278714", "0.5322823", "0.53138816", "0.53130573", "0.5297796", "0.52943015", "0.5294049", "0.5293723", "0.52714294", "0.5258871", "0.5231993", "0.51954", "0.51775956", "0.51629317", "0.51620567", "0.51620483", "0.512015", "0.50892055", "0.5086312", "0.5081727", "0.50758076", "0.5075095", "0.5043103", "0.502266", "0.502266", "0.5015511", "0.50133455", "0.50124323", "0.5003439", "0.49966872", "0.49962053", "0.49930426", "0.49710548", "0.49640724", "0.49413455", "0.49396834", "0.4938917", "0.4927188", "0.49228165", "0.49212712", "0.49205163", "0.49194983", "0.49047315", "0.49041986", "0.4903411", "0.48986456", "0.489812", "0.48961934", "0.48811832", "0.4879625", "0.48783576", "0.48718235", "0.48689312", "0.48651534", "0.48628733", "0.4860809", "0.48582646", "0.48535648", "0.48527429" ]
0.58335817
19
Generate the next Fibonacci number.
public long next() { long ret = prev; prev = current; current = ret + current; return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BigInteger nextFibonacci() {\n if (this.data.size() == 0) {\n // Base case: zero.\n this.data.add(new BigInteger(\"0\"));\n } else if (this.data.size() == 1) {\n // Base case: one.\n this.data.add(new BigInteger(\"1\"));\n } else {\n this.data.add( this.data.get(this.data.size()-1).add(this.data.get(this.data.size()-2)) );\n }\n return this.data.get(this.data.size()-1);\n }", "public static int nextF(int fib[])\n { \n int tmp = fib[0];\n fib[0] = fib[1];\n fib[1] += tmp;\n return fib[0];\n }", "public BigDecimal getFibonacci(Integer number) throws Exception;", "public static int dynamicFibonacci(int n) {\n\t\t// calculate each fibonacci number as the sum of the previous two\n\t\treturn n == 0 ? 0 : Stream.iterate(new int[]{0, 1}, i -> new int[]{i[1], i[0]+i[1]}).limit(n).reduce((a, b) -> b).orElse(null)[1];\n\t}", "public static int getFibonacciNumber(int n) {\r\n\t\tif (n < 2)\r\n\t\t\treturn n;\r\n\t\treturn getFibonacciNumber(n - 1) + getFibonacciNumber(n - 2);\r\n\t}", "public static int calculateFibonacciNumber(int i)\n {\n if(i==1||i==2)return 1;\n else\n {\n return calculateFibonacciNumber(i-1)+calculateFibonacciNumber(i-2);\n }\n }", "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 }", "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 }", "public static BigInteger fibonacci(int n) {\n\t\t// Use best algorithm to compute\t\t\n\t\treturn ABFind.fibonacciLoop(n);\n\t}", "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 }", "private int fibonacci(int x) {\n int a = 0;\n int b = 1;\n\n for (int i = 0; i < x; i++) {\n int c = a + b;\n a = b;\n b = c;\n }\n\n return a;\n }", "private static int getFibonacci(int n) {\n\t\tdouble f1 = Math.pow(((1 + Math.sqrt(5)) / 2.0), n);\n\t\tdouble f2 = Math.pow(((1 - Math.sqrt(5)) / 2.0), n);\n\t\treturn (int)(Math.floor((f1 - f2) / Math.sqrt(5)));\n\t}", "public static int fib(int index){\n int num1 = 0;\n int num2 = 1;\n int temp;\n\n for(int i = 0; i < index-1; i++){\n temp = num2;\n num2 += num1;\n num1 = temp;\n }\n\n return num2;\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 }", "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}", "@Override\r\n\tpublic int fib(int x) {\n\t\treturn 0;\r\n\t}", "private FibonacciNumber(long value) {\n\t\t\tthis.value = BigInteger.valueOf(value);\n\t\t}", "public static int fib(int index) {\r\n\t\t// default values for fibonacci and f0, f1\r\n\t\tint fibonacci = 0;\r\n\t\tint f0 = 0;\r\n\t\tint f1 = 1;\r\n\r\n\t\t// if index is not 0 or 1 calculate fibonacci\r\n\t\tif (index != 0 && index != 1) {\r\n\r\n\t\t\t// loop starts from 2 (fib on index 2 is 1)\r\n\t\t\tfor (int i = 2; i <= index; i++) {\r\n\t\t\t\tfibonacci = f0 + f1;\r\n\t\t\t\tf0 = f1;\r\n\t\t\t\tf1 = fibonacci;\r\n\t\t\t}\r\n\t\t\t// else fibonacci is index\r\n\t\t} else {\r\n\t\t\tfibonacci = index;\r\n\t\t}\r\n\t\treturn fibonacci;\r\n\t}", "public void Fibonacciseries()\r\n\t{\r\n\t\tint firstNo=0,secondNo=1,sum;\r\n\t\tint count;\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the Number\");\r\n\t\tcount = sc.nextInt();//Read the number to calculate fibonacci\r\n\t\t\r\n\t\tSystem.out.println(firstNo);\r\n\t\tSystem.out.println(secondNo);\r\n\t\t\r\n\t\tfor(int i=2;i<count;i++) //loop start from 2nd value \r\n\t\t{\r\n\t\t\tsum=firstNo+secondNo;\r\n\t\t\tSystem.out.println(+sum);\r\n\t\t\tfirstNo=secondNo;\r\n\t\t\tsecondNo=sum;\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static int efficient_fibonacci(int num) {\n\t\tDouble temp=(Math.sqrt(5)+1)/2.0;\n\t\tDouble result=Math.pow(temp,num)/Math.sqrt(5);\n\t\treturn (int)Math.round(result);\n\t}", "public long findNthFibonacci(int number)\n {\n // Your Code Here\n \n long dp[] = new long[number+1];\n \n dp[0]=0L;\n dp[1]=1L;\n \n for(int i=2;i<=number;i++){\n dp[i]=dp[i-1]+dp[i-2];\n }\n return dp[number];\n }", "public static void fibonacci(int count) {\r\n\t\tBigInteger number1 = BigInteger.valueOf(0);\r\n\t\tBigInteger number2 = BigInteger.valueOf(1);\r\n\t\tfor (int i = 0; i < count; i++) {\r\n\t\t\tif (i < 1)\r\n\t\t\t\tSystem.out.println(number2);\r\n\t\t\telse {\r\n\t\t\t\tBigInteger sum = BigInteger.valueOf(0);\r\n\t\t\t\tsum = number1.add(number2);\r\n\t\t\t\tSystem.out.println(sum);\r\n\t\t\t\tnumber1 = number2;\r\n\t\t\t\tnumber2 = sum;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Fibonacci(int upper) {\n this.upper = upper; \n }", "FibonacciPair next() {\n return new FibonacciPair(getSecond(), sum());\n }", "static int fib(int n, int a, int b)\n {\n if (n == 0) {\n return 0;}\n// elseif(n==1){\n// \treturn 1;}\n else{\n for (int i = 2; i <= n; i++) \n { \n int \ttemp = a + b; \n a = b; \n temp = b;\n } \n return b; \n }\n }", "private long fibonacci(long n) {\n if (n <= 1) {\n return n;\n } else {\n return fibonacci(n - 1) + fibonacci(n - 2);\n }\n }", "public static void fibonacci(int fibo) {\n }", "public static long getFibonacciNumberAt(int n) {\n\n try {\n\n if (n < 1) {\n\n throw new IllegalArgumentException(\"no fibonacci numbers at n < 1\");\n\n } else if (n == 1 || n == 2) {\n\n return 1;\n\n }\n\n } catch (IllegalArgumentException iae) {\n\n System.out.println(iae.getMessage());\n\n }\n\n return getFibonacciNumberAt(n - 1) + getFibonacciNumberAt(n - 2);\n\n }", "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 }", "@Test\n public void findFibonacci() {\n\n assertEquals(0, Computation.fibFinder(1));\n assertEquals(1, Computation.fibFinder(2));\n assertEquals(1, Computation.fibFinder(3));\n assertEquals(2, Computation.fibFinder(4));\n assertEquals(3, Computation.fibFinder(5));\n assertEquals(5, Computation.fibFinder(6));\n }", "private static int fibonacciWithLoop(int num) {\n\n if (num <= 0) {\n return 0;\n }\n\n /**\n * first and second case are pre-computed\n */\n /*\n * first case\n */\n int number1 = 0;\n /*\n * second case\n */\n int number2 = 1;\n\n int sum = 0;\n\n for (int i = 2; i <= num; i++) {\n\n sum = number1 + number2;\n\n System.out.println(number1 + \"+\" + number2 + \" = \" + sum);\n\n number1 = number2;\n number2 = sum;\n\n }\n\n return sum;\n }", "public FibonacciSequence generateSequence() {\n\n\t\t// Check whether all the items have already created\n\t\tif (hasAlreadyGenerated()) {\n\t\t\treturn this;\n\t\t}\n\n\t\tif (sequenceSize < 1) {\n\t\t\treturn this;\n\t\t}\n\n\t\t// The first two numbers in fibonacci sequence is 0 and 1\n\t\tfibonacciNumberArray.add(FIB_SEQ_FIRST_ELEMENT);\n\t\tif (sequenceSize >= 2) {\n\t\t\tfibonacciNumberArray.add(FIB_SEQ_SECOND_ELEMENT);\n\t\t}\n\n\t\t// Generate the fibonacci number one by one, access the pre-computed\n\t\t// number in the array to get rid of re-computation\n\t\tfor (int numPos = 2; numPos < sequenceSize; numPos++) {\n\t\t\tBigInteger fibNum = fibonacciNumberArray.get(numPos - 1).add(\n\t\t\t\t\tfibonacciNumberArray.get(numPos - 2));\n\t\t\tfibonacciNumberArray.add(fibNum);\n\t\t}\n\n\t\t// generate and return readable string\n\t\tStringBuffer fibSeqSB = new StringBuffer();\n\t\tfor (BigInteger fibNumber : fibonacciNumberArray) {\n\t\t\tfibSeqSB.append(fibNumber).append(\" \");\n\t\t}\n\t\tfibSeqSB.deleteCharAt(fibSeqSB.length() - 1);\n\n\t\treturn this;\n\t}", "public long fibonacci(long number) {\n\t\tif (number == 0 || number == 1)\n\t\t\treturn number;\n\t\telse\n\t\t\treturn fibonacci(number - 1) + fibonacci(number - 2);\n\t}", "public static int fibonacci(int number){\n\t\tif(number <= NumberUtils.INTEGER_ONE){ \n\t\t\treturn number; \n\t\t} \n\t\t//recursive call\n\t\treturn fibonacci(number - NumberUtils.INTEGER_ONE) + fibonacci(number - INTEGER_TWO); \n\t}", "public int fibonacci(int n){\n int f[] = new int[n+2]; // 1 extra to handle case, n = 0\n int i;\n\n /* 0th and 1st number of the series are 0 and 1*/\n f[0] = 0;\n System.out.print(f[0]+\" \");\n f[1] = 1;\n System.out.print(f[1]+\" \");\n\n for (i = 2; i <= n; i++)\n {\n /* Add the previous 2 numbers in the series\n and store it */\n f[i] = f[i-1] + f[i-2];\n System.out.print(f[i]+\" \");\n }\n\n return f[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 int fibonacciNum (int index){\n int firsnum = 0;\n int secnum = 1;\n int allSum = 0;\n\n for (int i = 0; i < index ; i ++){\n allSum = firsnum + secnum;\n firsnum = secnum;\n secnum = allSum;\n\n\n }\n\n\n return allSum;\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 int fibonacci(int n) {\n\n\t\tif (n == 0 || n == 1) {\n\t\t\treturn n;\n\t\t}\n\n\t\tint fnm1 = fibonacci(n - 1);\n\t\tint fnm2 = fibonacci(n - 2);\n\n\t\tint fn = fnm1 + fnm2;\n\n\t\treturn fn;\n\n\t}", "public static int fibonaci(int number) {\n if(number <= 0) return 0;\n if (number == 1 || number == 2) {\n return 1;\n }\n\n return fibonaci(number - 1) + fibonaci(number - 2);\n }", "public static int fibonacci(int n) {\n\t\tif(n == 0) \n\t\t\treturn 0;\n\t\tif(n == 1) \n\t\t\treturn 1;\n\t\t\n\t\treturn fibonacci(n - 1) + fibonacci(n - 2);\n\t}", "public int fibNum(int n) {\n\n //base case\n if ((n == 0) || (n == 1)) {\n logger.info(\"Fibonacci number successfully computed\");\n return n;\n } else if (n > 1) { //recursive case\n logger.info(\"Fibonacci number successfully computed\");\n return fibNum(n - 1) + fibNum(n - 2);\n } else {\n throw new IllegalArgumentException(\"Invalid argument, input is less than 0\");\n }\n }", "@Test\n\t\tpublic void testFibonacci20() {\n\t\t\tBigInteger expected = BigInteger.valueOf(6765);\n\t\t\tassertEquals(expected, FibonacciGenerator.fibonacciNumber(20));\n\t\t}", "private void fibonacciIterative(int noOfTerms) {\n int currentFibonacci = 1;\n int previousFibonacci = 1;\n for (int i = 1; i <= noOfTerms; i++) {\n if (i ==1) {\n //System.out.print(previousFibonacci + \" \");\n } else if (i == 2) {\n //System.out.print(currentFibonacci + \" \");\n } else {\n int newFib = currentFibonacci + previousFibonacci;\n if (i == noOfTerms) \n System.out.print(noOfTerms + \"th fibonacci is \" + newFib + \" \");\n previousFibonacci = currentFibonacci;\n currentFibonacci = newFib;\n }\n }\n System.out.println();\n }", "public int calculaFibonacci(int n) {\n\t\t//condição de parada, vai sair quando n for 1\n\t\tif (n < 2) {\n\t\t\treturn n;\n\t\t}\n\t\t// retorno chamando a própria função\n\t\treturn calculaFibonacci(n - 1) + calculaFibonacci(n - 2); \n\t}", "public static int fibonacci(int n){\n if (n==0 || n==1)\n return n;\n else {\n return fibonacci(n-1)+fibonacci(n-2);\n }\n }", "public long getFibonacciFunction(long max) {\n return Stream.iterate(new long[]{0, 1}, n -> new long[]{n[1], n[0] + n[1]})\n .limit(max)\n .mapToLong(l -> l[1])\n .max()\n .orElseThrow(NoSuchFieldError::new);\n }", "public static int fib(int n) {\n if (n == 0) {\n return 0;\n } else if (n == 1) {\n return 1;\n } else {\n return fib(n-1) + fib(n-2);\n }\n }", "public int fib(int n) {\n if (n < 2) {\n return n;\n }\n\n int n1 = 1;\n int n2 = 0;\n\n for (int i = 2; i < n; i++) {\n int current = n1 + n2;\n n2 = n1;\n n1 = current;\n }\n return n1 + n2;\n }", "public static long fibonacci(int n) {\r\n if (n <= 1){\r\n return n;\r\n }\r\n else return fibonacci(n-1) + fibonacci(n-2);\r\n }", "public static boolean isFibonacci(Integer num)\n {\n int check = 1;\n int check2 = 0;\n for(int check3 = 0;check < num; check = check3)\n {\n check3 = check + check2;\n check2 = check;\n if(check3 == num)\n return true;\n }\n return false;\n }", "public static void printFibonacci(int number) {\n\t\tint number1 = 1, number2=2;\n\t\t//and print the numbers since they are part of fib series\n\t\tSystem.out.print(number1+\" \"+number2+\" \");\n\t\t//to find the fib numbers up to a number, use for loop\n\t\tfor(int i=0; i<=number; i++) {\n\t\t\tint fibNumber = number1+number2;\n\t\t\tnumber1 = number2;//after each loop number1 should increase to number2\n\t\t\tnumber2 = fibNumber;//and number2 should be the total which is fibNumber\n\t\t\t//if fibNumber is equal to or bigger then given number break the loop\n\t\t\tif(fibNumber==number || fibNumber>number) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//print the fibnumbers\n\t\t\tSystem.out.print(fibNumber+\" \");\n\t\t}\n\t}", "int fibonacciNumberFinder(int n){\n if (n <= 1){\n return n;\n }\n return fibonacciNumberFinder(n - 1) + fibonacciNumberFinder(n - 2);\n }", "public Fibonacci() {\n this.data = new ArrayList<BigInteger>();\n }", "public static int fib(int n) {\n\t\tif (n <= 1) {\n\t\t\treturn n;\n\t\t} else {\n\t\t\treturn fib(n - 1) + fib(n - 2);\n\t\t}\n\t}", "public void fibonacci()\n {\n int x = 1;\n int y = 2;\n\n final int LASTNUM = 4000000;\n int totalEven = 0;\n\n while(x < LASTNUM)\n {\n if(x % 2==0)\n {\n totalEven += x;\n }\n\n int z = x + y;\n x = y;\n y = z;\n }\n System.out.println(totalEven);\n }", "@Test\n\tvoid FibonacciTest() \n\t{\tassertEquals(0, utilities.Fibonacci(0));\n\t\tassertEquals(1, utilities.Fibonacci(1));\n\t\tassertEquals(1, utilities.Fibonacci(2));\n\t\tassertEquals(2, utilities.Fibonacci(3));\n\t\tassertEquals(3, utilities.Fibonacci(4));\n\t\tassertEquals(89, utilities.Fibonacci(11));\n\n\t}", "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 }", "public BigInteger fib(long i) {\n Map<Long, BigInteger> cache = new HashMap<>();\n if (i == 0) return BigInteger.ZERO;\n if (i == 1) return BigInteger.ONE;\n\n //The complete signature for the computIfAbsent method is:\n //V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction)\n //This method is particularly useful when creating a cache of the results of method calls.\n return cache.computeIfAbsent(i, n -> fib(n - 2).add(fib(n - 1)));\n }", "public static int fib(int n) {\n\t\tif (n <= 1)\n\t\t\treturn n;\n\t\treturn fib(n - 1) + fib(n - 2);\n\t}", "@Test\n\t\tpublic void testFibonacci100() {\n\t\t\tBigInteger expected = new BigInteger(\"354224848179261915075\");\n\t\t\tassertEquals(expected, FibonacciGenerator.fibonacciNumber(100));\n\t\t}", "public int fibo2(int n){\r\n int[] f = new int[n];\r\n f[0] = 1;\r\n f[1] = 1;\r\n for(int i=2; i<n; i++){\r\n f[i] = f[i-1] + f[i-2];\r\n }\r\n return f[n-1];\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}", "@Test\n\tpublic void isFibonacciTest() {\n\t\tAssert.assertTrue(ifn.isFibonacci(21));\n\t\tAssert.assertTrue(ifn.isFibonacci(144));\n\t\tAssert.assertTrue(!ifn.isFibonacci(150));\n\t\tAssert.assertTrue(!ifn.isFibonacci(56));\n\t}", "public static int fibonacci(int n) throws Exception\n {\n if (n < 0)\n {\n throw new Exception(\n \"Fibonacci Series for \" + n + \" not possible for negative numbers\" );\n }\n\n if (n == 0 || n == 1)\n {\n return n;\n }\n else\n {\n return fibonacci(n - 1) + fibonacci(n - 2);\n }\n }", "public static void FibonacciNumbers(int num)\n {\n int n1 = 1;\n int n2 = 1;\n int n3 = 0;\n String out = \"1 ,1\";\n for (int i=2; i<=num; i++){\n n3 = n1 + n2;\n n1 = n2;\n n2 = n3;\n out = out + \", \" + n3;\n }\n\n System.out.println(out);\n }", "public static int BinaryFib (int n) {\n\t\tif (n <= 1) {\n\t\t\treturn n;\n\t\t}\n\t\telse {\n\t\t\treturn BinaryFib(n-1) + BinaryFib(n-2);\n\t\t}\n\t}", "int main()\n{\n int n;\n cin>>n;\n fibo(n);\n return 0;\n}", "private static int fib(int a, int b, int n) {\n\t\tint arr[] = new int[n + 1];\n\t\tarr[0] = a;\n\t\tarr[1] = b;\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tarr[i] = arr[i - 1] + arr[i - 2];\n\t\t}\n\t\treturn arr[n - 1];\n\t}", "public int fibonacci(int n, int i, int a, int b) {\n if (i == n) return a;\n return fibonacci(n, i + 1, a + b, a);\n }", "public static int fibo_iterative(final int n) {\n if (n < 0) {\n return -1; // Error condition.\n }\n if (n == 0) {\n return 0;\n }\n int a = 1, b = 1;\n for (int i = 3; i <= n; i++) {\n final int c = a + b;\n a = b;\n b = c;\n }\n return b;\n }", "public static long fibonacci(int n) {\n return fibonacciMemoization(n, new HashMap<>());\n }", "@Test\n\t\tpublic void testFibonacci40() {\n\t\t\tBigInteger expected = new BigInteger(\"102334155\");\n\t\t\tassertEquals(expected, FibonacciGenerator.fibonacciNumber(40));\n\t\t}", "public ArrayList<Integer> Fibonacci(int num) {\n\t\tArrayList<Integer> fibonacciNums = new ArrayList<Integer>();\n//\t\tinitialization\n\t\tint firstNum = 1;\n\t\tint secondNum = 1;\n\t\tint fibNum = 0;\n//\t\tn - 2 value\n\t\tfibonacciNums.add(firstNum);\n//\t\tn - 1 value\n\t\tfibonacciNums.add(secondNum);\n//\t\tbecause our assumption is n has a lowest possible value of 3\n\t\tfor (int i = 3; i <= num; i++) {\n\t\t\tfibNum = firstNum + secondNum;\n\t\t\tfibonacciNums.add(fibNum);\n\t\t\tfirstNum = secondNum;\n\t\t\tsecondNum = fibNum;\n\t\t}\n\t\treturn fibonacciNums;\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 ScannableTable fibonacciTable() {\n return fibonacciTableWithLimit( -1L );\n }", "int main()\n{\n int n;\n cin>>n;\n printf(\"The term %d in the fibonacci series is %d\",n,fib(n-1));\n}", "private int calculateFibonacciUsingTopDownMemorization(int n) {\n int[] memory = new int[n+1];\n if (n < 2) {\n return n;\n }\n if(memory[n] != 0){\n return memory[n];\n }\n memory[n] = calculateFibonacciUsingTopDownMemorization(memory, n - 1) + calculateFibonacciUsingTopDownMemorization(memory, n - 2);\n return memory[n];\n\n }", "public static void displayFibonacci(int iNum)\n {\n int first = 0, second = 1, third = 0;\n for(int i = 2; i < iNum; i++)\n {\n third = first + 2 * second;\n System.out.print(third + \" \");\n first = second;\n second = third;\n }\n }", "public static double fibonacci(int number) throws IOException {\n\t\tif (number == 0 || number == 1) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn fibonacci(number - 2) + fibonacci(number - 1);\n\t\t}\n\t}", "public void fibTest(){\r\n \r\n for(int j=0;j<eDB.staff.size();j++){\r\n String y = eDB.staff.get(j).getId().replaceAll(\"[^\\\\d.]\", \"\"); //removes letters from id\r\n int n = Integer.parseInt(y);\r\n\r\n {\r\n int a=0, b=1 ,c=0; \r\n \r\n while(c<n) \r\n {\r\n c = a + b; \r\n a = b;\r\n b = c;\r\n }\r\n \r\n \r\n \r\n if(c==n) \r\n fibSpies.add(eDB.staff.get(j));\r\n \r\n \r\n }\r\n \r\n}\r\n }", "private static int naiveFib(int n) {\n if (n == 0) return 0;\n if (n == 1) return 1;\n\n return naiveFib(n-1) + naiveFib(n-2);\n }", "public int fibNaive(int n) {\n int f;\n if (n == 0 || n == 1) f = 1;\n else f = fibNaive(n - 1) + fibNaive(n - 2);\n return f;\n }", "private int iterativeFib(int n) {\r\n int backVal = 0, frontVal = 1;\r\n \r\n for (int i = 1; i < n - 1; i++) {\r\n int temp = frontVal + backVal;\r\n backVal = frontVal;\r\n frontVal = temp;\r\n }\r\n \r\n return frontVal + backVal;\r\n }", "public int badFibonacci(int n){\n if (n <= 1){\n return (n);\n }\n return (badFibonacci(n-2) + badFibonacci(n-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}", "public static void main(String[] args){\n for(int i=5; i>=1; i--) {\n //System.out.println(i);\n }\n //Print number from 5 to 1 using WHILE loop\n int j=0;\n while(j<=8){\n j+=2;\n //System.out.println(j);\n }\n // Create a loop to print first 30 fibonacci numbers Also print the 10th Even Fib number\n int a=0;\n int b=1;\n int count =0;\n System.out.println(a);\n System.out.println(b);\n while(count <= 30){\n int c=a+b;\n a=b;\n b=c;\n System.out.println(c);\n count++;\n if(count==8 && c%2==0){\n System.out.println(\"10th Even Fibonacci number is\" + c);\n }\n }\n\n // Create a square number series\n for(int i=0; i<10; i++){\n System.out.println((int)Math.pow(i,2));\n }\n\n }", "public static int fibonacciBU(int n) {\n\n\t\tint[] strg = new int[n + 1];\n\n\t\tstrg[0] = 0;\n\t\tstrg[1] = 1;\n\n\t\tfor (int i = 2; i < strg.length; i++) {\n\t\t\tstrg[i] = strg[i - 1] + strg[i - 2];\n\t\t}\n\n\t\treturn strg[n];\n\n\t}", "public static BigInteger calculateModifiedFib(int a, int b, int n) {\n \n BigInteger[] fib_of_all = new BigInteger[n+2];\n fib_of_all[0] = BigInteger.valueOf(a);\n fib_of_all[1] = BigInteger.valueOf(b);\n\n\n\n BigInteger fib_of_n = BigInteger.valueOf(0);\n\n //fib_of_n = (fib_of_n+2) - (fib_of_n+1)2;\n\n for(int c = 2; c < n+2; c++) {\n \tfib_of_all[c] = fib_of_all[c-2].add(fib_of_all[c-1].pow(2));\n }\n\n return fib_of_all[n-1];\n }", "public static int fib(int N) {\n if (N == 1)\n return 1;\n if (N == 0)\n return 0;\n return fib(N-1) + fib(N-2);\n }", "public static int fibonacci(int n) {\n if (n == 1){\n map.put(1,0);\n }\n if (n == 2)\n map.put(2,1);\n if (map.containsKey(n))\n return map.get(n);\n map.put(n,fibonacci(n-1)+fibonacci(n-2));\n return map.get(n);\n\n }", "@Override\n public void run() {\n Fibonacci gen = new Fibonacci();\n for (int i = 0; i < count; i++) {\n System.out.print(gen.next() + \" \");\n }\n System.out.println();\n// System.out.println(\"end: \" + count);\n }", "public void printRangeFibonacci() {\n BigInteger before = BigInteger.valueOf(0);\n BigInteger current = BigInteger.valueOf(1);\n BigInteger next = BigInteger.valueOf(1);\n for (int i = 2; i <= finish; i++) {\n next = current.add(before);\n before = current;\n current = next;\n\n if (i >= start && i <= finish) {\n String delimiter = i == finish ? \"\" : \", \";\n out.print(before + delimiter);\n }\n }\n }", "public static int fibonacciBUSE(int n) {\n\n\t\tint[] strg = new int[2];\n\t\tstrg[0] = 0;\n\t\tstrg[1] = 1;\n\n\t\tfor (int slide = 1; slide <= n - 1; slide++) {\n\n\t\t\tint sum = strg[0] + strg[1];\n\t\t\tstrg[0] = strg[1];\n\t\t\tstrg[1] = sum;\n\n\t\t}\n\n\t\treturn strg[1];\n\n\t}", "private int fibCache(int n) {\n if (n == 1) {\n //System.out.print (1 + \" \");\n return 1;\n } else if (n == 2) {\n //System.out.print (1 + \" \");\n return 1;\n } else {\n \n Integer fibn2 = fibCache.get(n-2);\n if (fibn2 == null) {\n fibCache.put(n-2, fib(n-2));\n fibn2 = fibCache.get(n-2);\n }\n\n Integer fibn1 = fibCache.get(n-1);\n if (fibn1 == null) {\n fibCache.put(n-1, fib(n-1));\n fibn1 = fibCache.get(n-1);\n } \n \n //System.out.print(nextfib + \" \");\n \n int nextfib = fibn2 + fibn1;\n return nextfib;\n }\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}", "@TestFactory\n\t\tpublic Stream<DynamicTest> testFibonacciNumber() {\n\t\t\tList<BigInteger> expected = List.of(0, 1, 1, 2, 3, 5, 8, 13, 21, 34).stream()\n\t\t\t\t\t.map(item -> BigInteger.valueOf(item)).collect(Collectors.toList());\n\n\t\t\tStream<DynamicTest> testSizes = IntStream.range(0, expected.size())\n\t\t\t\t\t.mapToObj(i -> generateSizeTest(i));\n\n\t\t\tStream<DynamicTest> testContents = IntStream.range(0, expected.size())\n\t\t\t\t\t.mapToObj(i -> generateContentTest(i, expected));\n\n\t\t\treturn Stream.concat(testSizes, testContents);\n\t\t}", "public static int fastFib(int n) {\n\t\t\n\t\tint a = 1;\n\t\tint b = 0;\n\t\t\n\t\tint temp = 0;\n\t\tfor(int i=0; i<n-1; i++){\n\t\t\ttemp = a;\n\t\t\ta += b;\n\t\t\tb = temp;\n\t\t\tif(a<0){\n\t\t\t\tSystem.out.println(\"Int overflow\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n return a; \n \n\t}", "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 static long fib(long n, long m) {\n if (n == 0 || n == 1) {\n return n;\n }\n \n long temp;\n long first = 0;\n long second = 1;\n \n for (int i = 2; i < n + 1; i++) {\n temp = first;\n first = second;\n second = (second + temp) % m;\n }\n return second;\n }", "public int fibonacciIterative(int n) {\n\t\tint prev = 0;\n\t\tint next = 1;\n\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tint tmp = next;\n\t\t\tnext = next + prev;\n\t\t\tprev = tmp;\n\t\t}\n\t\treturn prev;\n\t}" ]
[ "0.8178455", "0.7603196", "0.75543976", "0.73102957", "0.7274185", "0.72104216", "0.71939176", "0.71837443", "0.71679044", "0.7166018", "0.7152725", "0.71485806", "0.71106184", "0.7104867", "0.70687747", "0.70638853", "0.7017721", "0.6997751", "0.699409", "0.69790006", "0.69733185", "0.6930477", "0.69107074", "0.6905943", "0.6896987", "0.68951184", "0.6879025", "0.6862713", "0.6860684", "0.6856444", "0.68540853", "0.6831172", "0.6823032", "0.6822722", "0.67862934", "0.67686194", "0.6757175", "0.6750586", "0.6742269", "0.67315155", "0.6698422", "0.6685946", "0.66689026", "0.6662227", "0.6658825", "0.6655069", "0.6645992", "0.66247386", "0.6617679", "0.66147035", "0.65905744", "0.65875465", "0.6586338", "0.6576881", "0.655903", "0.65561754", "0.6538368", "0.6534485", "0.65342903", "0.6525788", "0.65087354", "0.65001005", "0.6498022", "0.64934874", "0.6490667", "0.64895654", "0.64810073", "0.64793235", "0.64706916", "0.64372283", "0.64337975", "0.64318895", "0.6427806", "0.6411033", "0.64071417", "0.63911635", "0.6385649", "0.637944", "0.63340497", "0.6333454", "0.6331647", "0.6327481", "0.63195467", "0.6311628", "0.6307665", "0.6293812", "0.62844914", "0.62806267", "0.6277416", "0.6272258", "0.62514716", "0.6225191", "0.6211951", "0.620083", "0.6177464", "0.61654174", "0.61480004", "0.6124154", "0.6110777", "0.6079345", "0.60311383" ]
0.0
-1
Constructs a notch filter with the requested center frequency, bandwidth and sample rate.
public CCNotchFilter(double freq, double bandWidth, double sampleRate) { super(freq, sampleRate); setBandWidth(bandWidth); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SawLPFInstRT(int sampleRate, int filterCutoff){\r\n\t\tthis.sampleRate = sampleRate;\r\n\t\tthis.filterCutoff = filterCutoff;\r\n\t\tthis.channels = 1;\r\n\t}", "public BiQuadraticFilter(FilterType type, double center_freq, double sample_rate, double Q) {\n configure(type, center_freq, sample_rate, Q, 0);\n }", "public NoiseCalculator(double wavelength) {\n this(wavelength, 0.0);\n }", "public ExternalFilter() {\n\t\treset();\n\t\tenable_filter(true);\n\t\tset_sampling_parameter(15915.6);\n\t\tset_chip_model(ISIDDefs.chip_model.MOS6581);\n\t}", "public NoiseCalculator(double wavelength, double offset, double amplitude) {\n this(wavelength, offset, amplitude, 0.0);\n }", "public static DataFilter createDefault() {\n\t\tString type = Config.get(Key.LATENCY_FILTER_TYPE);\n\t\tswitch(type) {\n\t\t\tcase \"average\" : \n\t\t\t\treturn new MovingAverageFilter();\n\t\t\tcase \"median\" : \n\t\t\t\treturn new MovingMedianFilter();\n\t\t\tcase \"none\" : \n\t\t\t\treturn new NoFilter();\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid latency filter type in config file\");\n\t\t}\n\t}", "public Filter () {\n\t\tsuper();\n\t}", "public NoiseCalculator(double wavelength, double offset, double amplitude, double phase) {\n this.amplitude = addParameter(\"amplitude\", amplitude);\n this.offset = addParameter(\"offset\", offset);\n this.wavelength = addParameter(\"wavelength\", wavelength);\n this.phase = addParameter(\"phase\", phase);\n }", "public NoiseCalculator(double wavelength, double offset) {\n this(wavelength, offset, 1.0);\n }", "void setSampleFiltering(boolean filterFlag, float cutoffFreq) {\n }", "public NewsFilter()\n {\n this.queue = new LinkedBlockingQueue<>();\n this.uiContents = new HashMap<>();\n this.retrieved = new HashMap<>();\n this.running = new LinkedList<>();\n this.cancelled = false;\n\n // Start the filter task\n filter = new Thread( ()-> filter() ); \n filter.start();\n theLogger.info(\"NewsFilter Constructed and filter started\");\n }", "private static native long createDTFilter_0(long guide_nativeObj, double sigmaSpatial, double sigmaColor, int mode, int numIters);", "public void createChain(){\r\n Oscillator wt = new Oscillator(this, Oscillator.SAWTOOTH_WAVE, this.sampleRate, this.channels);\r\n Filter filt = new Filter(wt, this.filterCutoff, Filter.LOW_PASS);\r\n Envelope env = new Envelope(filt, \r\n new double[] {0.0, 0.0, 0.05, 1.0, 0.3, 0.4, 1.0, 0.0});\r\n\t\tVolume vol = new Volume(env);\r\n//\t\tSampleOut sout = new SampleOut(vol);\r\n\t}", "public MovingAverageFilter(final double hz, final int sampleRate) {\n this.samples = new short[(int)(Math.floor(sampleRate / hz / 2))];\n }", "public ZFilterLogic(ZTable t)\r\n\t{\r\n\t\tthis(t, DEFAULT_DELAY);\r\n\t}", "public LancasterFilterFactory(Map<String, String> args) {\n super(args);\n\n }", "private static native long createGuidedFilter_0(long guide_nativeObj, int radius, double eps);", "StandardFilterBuilder standardFilter(int count);", "public Filter() {\n }", "private BandPassFilter constructBPF(float r) {\n float width = 0.20f/r;\n BandPassFilter bpf = new BandPassFilter(0.0,0.5/r,width,0.01);\n return bpf;\n }", "@Override\n public void init(int blockLength, SourceDataLine sourceDataLine)\n { this.fftWindowLength = blockLength; // fftWindowLength = 8192\n this.fftSampleRate = sourceDataLine.getFormat().getFrameRate(); // fftSampleRate = 44100\n this.maxFreq = fftSampleRate / 2.0f; // maxFreq = 22050 Hz\n this.audioChannels = new float[2][blockLength];\n this.channelSamples = new float[blockLength];\n\n this.fft = new FloatFFT_1D(fftWindowLength);\n calculateWindowCoefficients(fftWindowLength);\n setBinCount( fftWindowLength / 2 ); // 8192 / 2 = 4096\n setBandCount(octaveCount*notesPerOctave*bandsPerNote + bandsPerNote); // covers 8 octaves plus 1 note\n // 8*12*1 + 1 = 97 bands or 8*12*5 + 5 = 485 bands or 8*12*9 + 9 = 873\n computeBandTables(); \n }", "public MitchellFilter(Direction2 radius, double b, double c)\n {\n super(radius);\n this.b = b;\n this.c = c;\n }", "public void reconfigure(double cf) {\n if (cf > 20000) {\n cf = 20000;\n } else if (cf < 20) {\n cf = 20;\n }\n Q = (Q == 0) ? 1e-9 : Q;\n center_freq = cf;\n // only used for peaking and shelving filters\n gain_abs = Math.pow(10, gainDB / 40);\n double omega = 2 * Math.PI * cf / sample_rate;\n double sn = Math.sin(omega);\n double cs = Math.cos(omega);\n double alpha = sn / (2 * Q);\n double beta = Math.sqrt(gain_abs + gain_abs);\n switch (type) {\n case BANDPASS:\n b0 = alpha;\n b1 = 0;\n b2 = -alpha;\n a0 = 1 + alpha;\n a1 = -2 * cs;\n a2 = 1 - alpha;\n break;\n case LOWPASS:\n b0 = (1 - cs) / 2;\n b1 = 1 - cs;\n b2 = (1 - cs) / 2;\n a0 = 1 + alpha;\n a1 = -2 * cs;\n a2 = 1 - alpha;\n break;\n case HIGHPASS:\n b0 = (1 + cs) / 2;\n b1 = -(1 + cs);\n b2 = (1 + cs) / 2;\n a0 = 1 + alpha;\n a1 = -2 * cs;\n a2 = 1 - alpha;\n break;\n case NOTCH:\n b0 = 1;\n b1 = -2 * cs;\n b2 = 1;\n a0 = 1 + alpha;\n a1 = -2 * cs;\n a2 = 1 - alpha;\n break;\n case PEAK:\n b0 = 1 + (alpha * gain_abs);\n b1 = -2 * cs;\n b2 = 1 - (alpha * gain_abs);\n a0 = 1 + (alpha / gain_abs);\n a1 = -2 * cs;\n a2 = 1 - (alpha / gain_abs);\n break;\n case LOWSHELF:\n b0 = gain_abs * ((gain_abs + 1) - (gain_abs - 1) * cs + beta * sn);\n b1 = 2 * gain_abs * ((gain_abs - 1) - (gain_abs + 1) * cs);\n b2 = gain_abs * ((gain_abs + 1) - (gain_abs - 1) * cs - beta * sn);\n a0 = (gain_abs + 1) + (gain_abs - 1) * cs + beta * sn;\n a1 = -2 * ((gain_abs - 1) + (gain_abs + 1) * cs);\n a2 = (gain_abs + 1) + (gain_abs - 1) * cs - beta * sn;\n break;\n case HIGHSHELF:\n b0 = gain_abs * ((gain_abs + 1) + (gain_abs - 1) * cs + beta * sn);\n b1 = -2 * gain_abs * ((gain_abs - 1) + (gain_abs + 1) * cs);\n b2 = gain_abs * ((gain_abs + 1) + (gain_abs - 1) * cs - beta * sn);\n a0 = (gain_abs + 1) - (gain_abs - 1) * cs + beta * sn;\n a1 = 2 * ((gain_abs - 1) - (gain_abs + 1) * cs);\n a2 = (gain_abs + 1) - (gain_abs - 1) * cs - beta * sn;\n break;\n }\n // prescale flter constants\n b0 /= a0;\n b1 /= a0;\n b2 /= a0;\n a1 /= a0;\n a2 /= a0;\n }", "public void useFilter() {\r\n\t\t\tif(src.channels() > 1) {\r\n\t\t\t\tImgproc.cvtColor(src, bwsrc, Imgproc.COLOR_BGR2GRAY);\r\n\t\t\t\tdst = new Mat(bwsrc.size(),CvType.CV_8U);\r\n\t\t\t\tfor(int i = 0; i<bwsrc.rows();i++) {\r\n\t\t\t\t\tfor(int j = 0; j <bwsrc.cols();j++) {\r\n\t\t\t\t\t\tif(bwsrc.get(i,j)[0]>=t) {\r\n\t\t\t\t\t\t\tdst.put(i, j, 255);\r\n\t\t\t\t\t\t}else dst.put(i, j, 0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else {\r\n\t\t\t\tdst = new Mat(src.size(),CvType.CV_8U);\r\n\t\t\t\tfor(int i = 0; i<src.rows();i++) {\r\n\t\t\t\t\tfor(int j = 0; j <src.cols();j++) {\r\n\t\t\t\t\t\tif(src.get(i,j)[0]>=t) {\r\n\t\t\t\t\t\t\tdst.put(i, j, 255);\r\n\t\t\t\t\t\t}else dst.put(i, j, 0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public FilterWidget( String initalFilter )\n {\n this.initalFilter = initalFilter;\n }", "public NoiseCalculator() {\n this(1.0);\n }", "public PopulationFilter(int nr)\n { \n super();\n inhabitants = nr;\n }", "public DDataFilter() {\n filters = new ArrayList<>();\n operator = null;\n value = null;\n externalData = false;\n valueTo = null;\n attribute = ROOT_FILTER;\n }", "@SuppressWarnings(\"unused\")\n\tprivate Filter() {\n\n\t}", "public SamFilterParams create() {\n return new SamFilterParams(this);\n }", "WithCreate withFilter(EventChannelFilter filter);", "public Filter (Filter filter) {\n this.name = filter.name;\n this.type = filter.type;\n this.pred = new FilterPred(filter.pred);\n this.enabled = filter.enabled;\n }", "public SimpleKalmanFilter(double noiseDeviation) {\n\t\tthis(noiseDeviation, 0);\n\t}", "public GameFilter() {\r\n\t\tthis.category = 1;\r\n\t\tthis.mask = Long.MAX_VALUE;\r\n\t\tthis.v1 = null;\r\n\t\tthis.v2 = null;\r\n\t\tthis.noJoints = true;\r\n\t}", "void setFilter(Filter f);", "public static DisparityWLSFilter createDisparityWLSFilterGeneric(boolean use_confidence)\r\n {\r\n \r\n DisparityWLSFilter retVal = DisparityWLSFilter.__fromPtr__(createDisparityWLSFilterGeneric_0(use_confidence));\r\n \r\n return retVal;\r\n }", "public LogFilter() {}", "public MaxwellFisheyeLensSurface(double ratioNSurfaceNSurrounding, double transparentTunnelRadius, double transmissionCoefficient, boolean shadowThrowing)\n\t{\n\t\tsuper(transmissionCoefficient, shadowThrowing);\n\t\tthis.ratioNSurfaceNSurrounding = ratioNSurfaceNSurrounding;\n\t\tthis.transparentTunnelRadius = transparentTunnelRadius;\n\t}", "public void setNdFilter(NdFilter newValue) {\n NdFilter oldValue = getNdFilter();\n if (oldValue != newValue) {\n _ndFilter = newValue;\n firePropertyChange(AltairConstants.ND_FILTER_PROP, oldValue, newValue);\n }\n }", "public KalmanFilter() {\n // This is a very trusting kalman filter; it just adds the\n // encoder offset to the current believed position.\n \n }", "public BasicFrequencyAnalysis(int NumberSamplesPerFrame, int OverlapSamplesNumber, double _samplingRate)\n {\n \tframeLength = NumberSamplesPerFrame;\n \tshiftInterval = OverlapSamplesNumber;\n \tsamplingRate = _samplingRate;\n }", "public FileFilter() {\n this.filterExpression = \"\";\n }", "public LowpassFilter(double Fc, double Fs)\r\n\t{\r\n\t\t// Calculate normalised cut-off\r\n\t\tdouble W = Fc / (Fs / 2);\r\n\r\n\t\t// Create coefficients\r\n\t\tB = new double[BUTTERWORTH4_NUM_COEFFICIENTS];\r\n\t\tA = new double[BUTTERWORTH4_NUM_COEFFICIENTS];\r\n\t\t\r\n\t\t// Calculate coefficients\r\n\t\tCoefficientsButterworth4LP(W, B, A);\r\n\t\t\r\n\t\t// [debug] Dump coefficients\r\n Boolean debug = false;\r\n\t\tif (debug) {\r\n\t\t\tSystem.out.println(\"B = \" + Arrays.toString(B));\r\n\t\t\tSystem.out.println(\"A = \" + Arrays.toString(A));\r\n\t\t}\r\n\t\t\r\n\t\t// Create final/initial condition tracker\r\n\t\tz = new double[BUTTERWORTH4_NUM_COEFFICIENTS];\r\n\t\treset();\r\n\t}", "AveragingFilter(Sensor sensor, int samples) {\n\tsuper(sensor, samples);\n }", "public Fletcher32() {\n }", "public KeyProbability(double segmentTime) { \n filters.add(new SingleKeyProbabilityFilter(true, \"ionian\", \t\t\t\tnew double[] { 0.2, 0.0, 0.12, 0.0, 0.16, 0.12, 0.0, 0.16, 0.0, 0.12, 0.0, 0.12 } ));\n filters.add(new SingleKeyProbabilityFilter(true, \"lydian\",\t\t\t\tnew double[] { 0.2, 0.0, 0.12, 0.0, 0.16, 0.0, 0.12, 0.16, 0.0, 0.12, 0.0, 0.12 } ));\n filters.add(new SingleKeyProbabilityFilter(true, \"mixolydian\",\t\t\tnew double[] { 0.2, 0.0, 0.12, 0.0, 0.16, 0.12, 0.0, 0.16, 0.0, 0.12, 0.12, 0.0 } ));\n filters.add(new MultiKeyProbabilityFilter(false, \"aeolian\",\t\t\t\tnew double[][] {\n new double[] { 0.2, 0.0, 0.12, 0.16, 0.0, 0.12, 0.0, 0.16, 0.12, 0.0, 0.12, 0.0 },\n new double[] { 0.2, 0.0, 0.12, 0.16, 0.0, 0.12, 0.0, 0.16, 0.12, 0.0, 0.0, 0.12 } // harmonic\n } )); \n filters.add(new MultiKeyProbabilityFilter(false, \"dorian\",\t\t\t\tnew double[][] {\n new double[] { 0.2, 0.0, 0.12, 0.16, 0.0, 0.12, 0.0, 0.16, 0.0, 0.12, 0.12, 0.0 },\n new double[] { 0.2, 0.0, 0.12, 0.16, 0.0, 0.12, 0.0, 0.16, 0.0, 0.12, 0.0, 0.12 } // augmented\n } )); \n filters.add(new SingleKeyProbabilityFilter(false, \"phrygian\",\t\t\tnew double[] { 0.2, 0.12, 0.0, 0.16, 0.0, 0.12, 0.0, 0.16, 0.12, 0.0, 0.12, 0.0 } ));\n }", "private static native long createFastGlobalSmootherFilter_0(long guide_nativeObj, double lambda, double sigma_color, double lambda_attenuation, int num_iter);", "public MovingAverageFilter(final int samples) {\n this.samples = new short[samples];\n this.partialResult = 0;\n this.current = 0;\n }", "public final void initNoiseBuffer(final int w, final int h) {\n width = w;\n height = h;\n noiseBuffer = new float[h][w];\n }", "public DefaultSpectrumAnalyzerSettings (\n final byte[] bytes,\n final Unit unit,\n final double centerFrequency_MHz,\n final double span_MHz,\n final double resolutionBandwitdh_Hz,\n final boolean resolutionBandwidthCoupled,\n final double videoBandwitdh_Hz,\n final boolean videoBandwidthCoupled,\n final double sweepTime_s,\n final boolean sweepTimeCoupled,\n final double referenceLevel_dBm,\n final double rfAttenuation_dB,\n final boolean rfAttenuationCoupled)\n {\n this.bytes = bytes;\n this.unit = unit;\n this.centerFrequency_MHz = centerFrequency_MHz;\n this.span_MHz = span_MHz;\n this.resolutionBandwidth_Hz = resolutionBandwitdh_Hz;\n this.resolutionBandwidthCoupled = resolutionBandwidthCoupled;\n this.videoBandwidth_Hz = videoBandwitdh_Hz;\n this.videoBandwidthCoupled = videoBandwidthCoupled;\n this.sweepTime_s = sweepTime_s;\n this.sweepTimeCoupled = sweepTimeCoupled;\n this.referenceLevel_dBm = referenceLevel_dBm;\n this.rfAttenuation_dB = rfAttenuation_dB;\n this.rfAttenuationCoupled = rfAttenuationCoupled;\n }", "public PDStream(PDDocument doc, InputStream input, COSArray filters) throws IOException {\n/* 119 */ this(doc, input, (COSBase)filters);\n/* */ }", "public FalseFilter() {\n\t\t//can be ignored\n\t}", "public BloomFilter(double c, int n, int k) {\r\n\t\tthis.expectedNumberOfFilterElements = n;\r\n\t\tthis.k = k;\r\n\t\tthis.bitsPerElement = c;\r\n\t\tthis.bitSetSize = (int) Math.ceil(c * n);\r\n\t\tnumberOfAddedElements = 0;\r\n\t\tthis.bitset = new BitSet(bitSetSize);\r\n\t\ttry {\r\n\t\t\tdigestFunction.getInstance(\"MD5\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public DemodulatedAudioFilterModule( int pass, int stop )\n\t{\n\t\tassert( stop > pass );\n\t\t\n//TODO: change this to a band pass filter\n\t\tmBandPassFilter = new RealFIRFilter_RB_RB( FilterFactory.getLowPass( 48000, pass, stop, 60, \n\t\t\tWindowType.HANNING, true ), 1.0f );\n\t\t\n\t\tmDCFilter.setListener( mBandPassFilter );\n\t}", "public Filter(FilterType type, FilterPred pred) {\n this(null, type, pred);\n }", "public RealBuffer(float[] samples)\n {\n super(samples);\n }", "public SonicAudioProcessor() {\n speed = 1f;\n pitch = 1f;\n channelCount = Format.NO_VALUE;\n sampleRateHz = Format.NO_VALUE;\n buffer = EMPTY_BUFFER;\n shortBuffer = buffer.asShortBuffer();\n outputBuffer = EMPTY_BUFFER;\n }", "public static DiscoveryFilter discoveryFilter() {\n return new DiscoveryFilter(ID, \"FireTV\");\n }", "public PDStream(PDDocument doc, InputStream input, COSName filter) throws IOException {\n/* 105 */ this(doc, input, (COSBase)filter);\n/* */ }", "public void init(int newChannelCount, int newSampleCount,\n\t\t\tfloat newSampleRate) {\n\t\tinit(newChannelCount, newSampleCount, newSampleRate, LAZY_DEFAULT);\n\t}", "public BloomFilter(int n){\n\t\tflags = new boolean[4*n]; // initialize the boolean array by the size of 4n\n\t\tfor(int i=0; i<flags.length; i++){\n\t\t\tflags[i]=false; // initializing the fields with false value\n\t\t}\n\t\ta = (int) (Math.random()*100); // 1-100\n\t\tb = (int) (Math.random()*100);// 1-100\n\t}", "private static native long createDisparityWLSFilterGeneric_0(boolean use_confidence);", "public AllpassFilter(AudioContext context, int maxdel, UGen idel, float ig) {\r\n\t\tthis(context, maxdel);\r\n\t\tsetDelay(idel).setG(ig);\r\n\t}", "public AllpassFilter(AudioContext context, int maxdel, int idel, float ig) {\r\n\t\tthis(context, maxdel);\r\n\t\tsetDelay(idel).setG(ig);\r\n\t}", "public FilterWidget()\n {\n this.browserConnection = null;\n this.initalFilter = null;\n }", "public Sone(int windowSize, float sampleRate) throws IllegalArgumentException\n {\n //check for correct window size\n if(windowSize < 32)\n {\n throw new IllegalArgumentException(\"window size must be at least 32\");\n }\n else\n {\n int i = 32;\n while(i < windowSize && i < Integer.MAX_VALUE)\n i = i << 1;\n\n if(i != windowSize)\n throw new IllegalArgumentException(\"window size must be 2^n\");\n }\n\n //check sample rate\n sampleRate = Math.round(sampleRate);\n if(sampleRate < 1)\n throw new IllegalArgumentException(\"sample rate must be at least 1\");\n\n //initialize fields\n this.windowSize = windowSize;\n this.hopSize = windowSize/2; //50% Overleap\n this.sampleRate = sampleRate;\n this.baseFreq = sampleRate/windowSize;\n\n //create buffers\n inputData = new double[windowSize];\n buffer = new double[windowSize];\n\n //get upper boundaries for the used bark bands\n bark_upper = getBarkUpperBoundaries(sampleRate);\n\n //create normalized power fft object\n normalizedPowerFFT = new FFT(FFT.FFT_NORMALIZED_POWER, windowSize, FFT.WND_HANNING);\n\n //get weights for simulation of the perception of the outer ear\n terhardtWeight = getTerhardtWeights(baseFreq, windowSize);\n\n //create spread matrix for spectral masking\n spreadMatrix = getSpreadMatrix(bark_upper.length);\n }", "public void create_dataset(double sampling_rate, double freq, int n) {\n double amplitude = 10.0d;\n double constant = freq/sampling_rate*2.0d*Math.PI;\n double sumTWD=0.0d;\n\n for (int i = 0; i < n; i++) {\n NavigationTools.TWD.add((Math.sin((double)i*constant)+Math.random()*0.2d)*amplitude);\n sumTWD += NavigationTools.TWD.getLast();\n }\n\n NavigationTools.TWD_longAVG=sumTWD/(double)n;\n }", "public LdapFilterParser()\n {\n this.scanner = new LdapFilterScanner();\n this.model = new LdapFilter();\n }", "private DatasetPieChartFilter initPieChartFilter(String title, String filterId, int index, int width, int height) {\n DatasetPieChartFilter filter = new DatasetPieChartFilter(title, filterId, index, width, height) {\n @Override\n public void selectDatasets(boolean noselection) {\n Set<Integer> finalSelectionIds = filterSelectionUnit();\n if (noselection) {\n updateFilters(finalSelectionIds, \"\");\n } else {\n updateFilters(finalSelectionIds, filterId);\n }\n }\n };\n return filter;\n }", "CompiledFilter() {\n }", "interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }", "public SubsetFilter createFilter(Dimension dimension);", "private static native void dtFilter_0(long guide_nativeObj, long src_nativeObj, long dst_nativeObj, double sigmaSpatial, double sigmaColor, int mode, int numIters);", "public SawLPFInstRT(int sampleRate){\r\n\t\tthis(sampleRate, 1000);\r\n\t}", "private static Filter newFilter()\r\n {\r\n Filter filter = new Filter(\"filter1\", new Source(\"display1\", \"name1\", \"server\", \"key1\"));\r\n filter.getOtherSources().add(filter.getSource());\r\n Group group = new Group();\r\n group.addFilterCriteria(new Criteria(\"field1\", Conditional.EQ, \"123\"));\r\n Group group2 = new Group();\r\n group2.addFilterCriteria(new Criteria(\"field1\", Conditional.EQ, \"124\"));\r\n group.addFilterGroup(group2);\r\n filter.setFilterGroup(group);\r\n return filter;\r\n }", "private static ArrayList<double[]> createSamples(double p, int n) {\n\t\tArrayList<double[]> result = new ArrayList<double[]>();\n\t\tint cutoff = (int) Math.round(n * p);\n\t\tfor (int i = 0; i < cutoff; i++) result.add(new double[] {1});\n\t\tfor (int i = cutoff; i < n; i++) result.add(new double[] {0});\n\t\treturn result;\n\t}", "public void AddNotch( TopoDS_Wire notch, double width) {\n OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_AddNotch(swigCPtr, this, TopoDS_Wire.getCPtr(notch), notch, width);\n }", "public void butterworthHighPassFilter(double radius) throws FFTException {\r\n\t\tbutterworthHighPassFilter(1, radius);\r\n\t}", "Filter getFilter();", "@IgnoreRandomChains(reason = \"No dictionary support yet\")\n public MorfologikFilter(final TokenStream in, final Dictionary dict) {\n super(in);\n this.input = in;\n this.stemmer = new DictionaryLookup(dict);\n this.lemmaList = Collections.emptyList();\n }", "public IntentFilter createFilter()\n {\n IntentFilter filter = new IntentFilter();\n filter.addAction(UPDATE_TIME);\n\n return filter;\n }", "public static Filter not(Filter filter) {\r\n return new NotFilter(filter);\r\n }", "private void initFilter() {\r\n if (filter == null) {\r\n filter = new VocabularyConceptFilter();\r\n }\r\n filter.setVocabularyFolderId(vocabularyFolder.getId());\r\n filter.setPageNumber(page);\r\n filter.setNumericIdentifierSorting(vocabularyFolder.isNumericConceptIdentifiers());\r\n }", "public HttpFilter() { }", "FeedbackFilter getFilter();", "public FilterSpec build() {\n return new FilterSpec(this);\n }", "public native void setFilter(int filter) throws MagickException;", "public ObjectFilter()\n\t{\n\t}", "FilterCondition createFilterCondition(int clueNum);", "public Filter() throws UnknownHostException {\n\n\t}", "public Builder clearNoisySampleCount() {\n bitField0_ = (bitField0_ & ~0x00000004);\n noisySampleCount_ = 0;\n onChanged();\n return this;\n }", "protected NullFilterImpl() {\n }", "public Filters() {\n }", "public AllpassFilter(AudioContext context, int maxdel, UGen idel, UGen ig) {\r\n\t\tthis(context, maxdel);\r\n\t\tsetDelay(idel).setG(ig);\r\n\t}", "private static native void guidedFilter_0(long guide_nativeObj, long src_nativeObj, long dst_nativeObj, int radius, double eps, int dDepth);", "public CommonGramsQueryFilter(CommonGramsFilter input) {\n super(input);\n }", "public FloatSampleBuffer() {\n\t\tthis(0, 0, 1);\n\t}", "public AllpassFilter(AudioContext context, int maxdel, int idel, UGen ig) {\r\n\t\tthis(context, maxdel);\r\n\t\tsetDelay(idel).setG(ig);\r\n\t}", "private ToneDetection() { }", "public EnvelopedSignatureFilter(){\n\n }" ]
[ "0.6048649", "0.5872124", "0.551045", "0.54762024", "0.53756696", "0.5374435", "0.53633255", "0.5262476", "0.5252525", "0.5212336", "0.5191252", "0.5176512", "0.51568186", "0.5153371", "0.51355284", "0.51209134", "0.511468", "0.51103455", "0.50975037", "0.5097459", "0.50832736", "0.50531924", "0.496573", "0.4911262", "0.48769307", "0.4844516", "0.48443946", "0.48320323", "0.48297685", "0.48179892", "0.47953144", "0.47948492", "0.47935274", "0.47898284", "0.47884458", "0.47706464", "0.47656426", "0.47483623", "0.47266597", "0.472647", "0.47230622", "0.47157273", "0.47079992", "0.47079676", "0.46881735", "0.4684217", "0.4676247", "0.46664652", "0.46579766", "0.46546057", "0.46490508", "0.46258882", "0.46253735", "0.4615567", "0.4613682", "0.46110043", "0.45882797", "0.45832312", "0.45768806", "0.4565679", "0.45568523", "0.45484224", "0.4547964", "0.4546893", "0.45388743", "0.45324844", "0.4512908", "0.45065686", "0.45047098", "0.45042217", "0.45032412", "0.45008352", "0.44999713", "0.4496685", "0.44955832", "0.4489534", "0.4487371", "0.44787273", "0.44768113", "0.4475203", "0.44746968", "0.4466826", "0.44547817", "0.44503435", "0.44474626", "0.44470665", "0.4442525", "0.44355032", "0.44341052", "0.44332322", "0.44329873", "0.4430167", "0.4419996", "0.44171327", "0.43959516", "0.43860453", "0.43785578", "0.437523", "0.43564847", "0.43535957" ]
0.73032624
0
Sets the band width of the filter.
public void setBandWidth(double b) { bw = b / _mySampleRate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBandWidth(BigDecimal bandWidth) {\r\n this.bandWidth = bandWidth;\r\n }", "public void setBandWidth(double value, int subsystem) {\n _avTable.set(ATTR_BANDWIDTH, value, subsystem);\n }", "public void setBandWidth(String value, int subsystem) {\n setBandWidth(Format.toDouble(value), subsystem);\n }", "public void setFeBandWidth(String value) {\n setFeBandWidth(Format.toDouble(value));\n }", "public void setFeBandWidth(double value) {\n _avTable.set(ATTR_FE_BANDWIDTH, value);\n }", "public void setWidth(final int theWidth) {\n myWidth = theWidth;\n }", "public void setWidth(double w) {\n\t\t\twidth.set(clamp(w, WIDTH_MIN, WIDTH_MAX));\n\t\t}", "public synchronized void setBandCount(int count)\n { bandCount = count;\n }", "public void setWidth(int width) {\n\tthis.width = width;\n\tcalculateWidthRatio();\n }", "public void setWidth(double width) {\n this.width = width;\n }", "public void setWidth(int w){\n \twidth = w;\n }", "public void setWidth(double value) {\n this.width = value;\n }", "public void setWidth(int w)\n {\n width = w;\n }", "public void setWidth(double width) {\r\n this.width = width;\r\n }", "public Builder setWidth(int value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n onChanged();\n return this;\n }", "public void setWidth(double width) {\n this.width = width;\n }", "public void setWidth(int w) {\n this.width = w;\n }", "public void setWidth(Integer width) {\n this.width = width;\n control.draw();\n }", "public void setWidth(int w) {\n this.W = w;\n }", "public void setWidth(float width) {\n this.xRadius = width/2f;\n }", "public void setWidth(double width) {\n\t\tthis.width = width;\n\t}", "public void setWidth(double width) {\n\t\tthis.width = width;\n\t}", "public void setWidth(int w) {\n\t\twidth = w;\n\t}", "public void setWidth(int width) {\n this.width = width;\n }", "void setWidth(int width);", "void setWidth(int width);", "public void setWidth(int width)\n {\n this.width = width;\n }", "public void setWidth(int width) {\n\t\tw = width;\n\t}", "public Builder setWidth(int value) {\n \n width_ = value;\n onChanged();\n return this;\n }", "public void setWidth(int width) {\n if (width > 0) {\n this.width = width;\n }\n }", "public void setTrackWidth(int width){\n this.mTrackWidth = Utils.dp2px(mContext, width);\n progressPaint.setStrokeWidth(width);\n updateTheTrack();\n refreshTheView();\n }", "public void setWidth(Double width) {\n\t\tthis.width = width;\n\t}", "public void SetWidth(double width) {\n OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_SetWidth(swigCPtr, this, width);\n }", "public void setWidth(Integer width) {\n\t\tthis.width = width;\n\t\tthis.handleConfig(\"width\", width);\n\t}", "@Override\n\tpublic void setWidth(float width) {\n\n\t}", "public void setWidth(int width) {\n\t\tthis.width = width;\n\t}", "public void setWidth(double w)\n { this.widthDefault = w; }", "public void setBarWidth(float mBarWidth) {\n this.mBarWidth = mBarWidth;\n }", "public void setCameraWidth(float width) {\n setValueInTransaction(PROP_CAMERA_WIDTH, width);\n }", "public MediaDeviceDescription setWidth(float width) {\n this.width = width;\n return this;\n }", "public void setWidth( int width ) {\n\t\t_width = width;\n\t}", "public final native void setWidth(double width) /*-{\n this.setWidth(width);\n }-*/;", "public BigDecimal getBandWidth() {\r\n return bandWidth;\r\n }", "public void setRunwayWidth(float runwayWidth) {\n\t\tif(this.runwayWidth != 0f){\n\t\t\treturn;\n\t\t}\n\t\tthis.runwayWidth = runwayWidth;\n\t}", "public void setWitdh(int newValue)\n {\n width = newValue;\n }", "public void setWidth(int w){ widthRadius = w; }", "public void setEffectWidth(int effectWidth) {\n int oldEffectWidth = this.effectWidth;\n this.effectWidth = effectWidth;\n propertyChangeSupport.firePropertyChange(\"effectWidth\", oldEffectWidth, effectWidth);\n }", "private void setWindowWidth(int width) {\n this.width = width;\n }", "public void setWidth(int width) {\n\t\tif (width <= 0)\n\t\t\tthrow new IllegalArgumentException(\"width must be > 0\");\n\n\t\tthis.width = width;\n\t}", "public void setBand(Band band) {\n this.band = band;\n }", "@Override\n\tpublic void setWidth(int newWidth) {\n\t\tint width = (int) (newWidth * 0.5);\n\t\tif (width > mainContainer.getMinWidth()) {\n\t\t\tscreenWidth = width;\n\t\t\tmainContainer.setPrefWidth(screenWidth);\n\t\t}\n\t\tcenterScreenX(newWidth);\n\t}", "public void setWidth(Integer width)\n {\n getStateHelper().put(PropertyKeys.width, width);\n }", "public void setWidth(int width) {\n this.width = width;\n this.rightEdge = RRConstants.getRightEdge(width);\n }", "private void setCurrentWidth(int width)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmCurrentWidth = width;\r\n\t\t}\r\n\t}", "public double getBandWidth() {\n\t\treturn bw * _mySampleRate;\n\t}", "@Nonnull\n public NumberSliderElement width( int width )\n {\n setWidth( width );\n return this;\n }", "@Override\r\n\tpublic void setWidth(int width) {\n\t\t\r\n\t}", "public void setTrackWidth(int width) {\n invalidateRect.set(thumbOffset.getPointXToInt() - thumbCurvature, 0, thumbOffset.getPointXToInt() + thumbWidth, recyclerView.getHeight());\n trackWidth = width;\n updateThumbPath();\n invalidateRect.fuse(thumbOffset.getPointXToInt() - thumbCurvature, 0, thumbOffset.getPointXToInt() + thumbWidth, recyclerView.getHeight());\n recyclerView.invalidate();\n }", "public void setWidth(final int width) {\n\t\tthis.width = width;\n\t\tthis.widthString = \"%-\" + width + \"s\";\n\t}", "public void setBaseWidth(double baseWidth) {\n this.baseWidth = baseWidth;\n }", "void setFitWidth(short width);", "private void setWidth(long value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n }", "public void setWidth(final String value)\n {\n width = value;\n }", "public void setWidth (int width) {\r\n\tcheckWidget();\r\n\tif ((style & SWT.SEPARATOR) == 0) return;\r\n\tif (width < 0) return;\r\n\tOS.PtSetResource (handle, OS.Pt_ARG_WIDTH, width, 0);\r\n\tif (control != null && !control.isDisposed ()) {\r\n\t\tcontrol.setBounds (getBounds ());\r\n\t}\r\n}", "public void setUploadBandwidth(int bw);", "public void setWidth(int newWidth) {\n roomWidth = newWidth;\n }", "@Field(2) \n\tpublic AVBufferSrcParameters width(int width) {\n\t\tthis.io.setIntField(this, 2, width);\n\t\treturn this;\n\t}", "public SpriteSheetSplitter setWidth(int width) {\n if (width <= 0) {\n throw new IllegalStateException(\"invalid width\");\n }\n this.width = width;\n return this;\n }", "@MavlinkFieldInfo(\n position = 3,\n unitSize = 2,\n description = \"Width of a matrix or image.\"\n )\n public final Builder width(int width) {\n this.width = width;\n return this;\n }", "public void setLineWidth(int width)\n {\n if (width > 0)\n lineWidth = width;\n else \n lineWidth = 1;\n }", "public void setBand(String value) {\n _avTable.set(ATTR_BAND, value);\n }", "public void setWidth(String width) {\r\n this.width = width;\r\n }", "public void setWidth(java.lang.String width)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(WIDTH$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(WIDTH$20);\n }\n target.setStringValue(width);\n }\n }", "public void setWidth(int width) {\n if(width < 0) throw new NegativeSizeException(\"Negative width\");\n \tthis.width = width;\n }", "public void setW(int i) {\n\t\tthis.width=i;\n\t\t\n\t}", "public void setImageWidth(int width)\n\t{\n\t\tspecialWidth = SpecialDimension.NONE;\n\t\timgWidth = width;\n\t}", "public void setWidth(double alpha, double beta, double coil)\n {\n this.widthAlpha = alpha;\n this.widthBeta = beta;\n this.widthCoil = coil;\n }", "private void setTargetWidth(int width)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmTargetWidth = width;\r\n\t\t}\r\n\t}", "public void setWidth(short width) throws Exception {\n\n\t\tif (width > MAX_MAZE_WIDTH)\n\t\t\tthrow new Exception(String.format(\"Width %d is bigger than maximum allowed width %d\", width,\n\t\t\t\t\tMAX_MAZE_WIDTH));\n\n\t\tthis.width = width;\n\t}", "public void setCurrentWidth(final int currentWidth);", "public void setThumbWidth(int width) {\n invalidateRect\n .set(thumbOffset.getPointXToInt() - thumbCurvature, thumbOffset.getPointYToInt(), thumbOffset.getPointXToInt() + thumbWidth, thumbOffset.getPointYToInt() + thumbHeight);\n thumbWidth = width;\n updateThumbPath();\n invalidateRect\n .fuse(thumbOffset.getPointXToInt() - thumbCurvature, thumbOffset.getPointYToInt(), thumbOffset.getPointXToInt() + thumbWidth, thumbOffset.getPointYToInt() + thumbHeight);\n recyclerView.invalidate();\n }", "public void setRrWidth(int width) {\n rrWidth = width;\n }", "public void setArcwidth(double aw) {\n\t\t\tarcwidth.set(aw);\n\t\t}", "public void setWidth(int n){ // Setter method\n \n width = n; // set the class attribute (variable) radius equal to num\n }", "public void setRadWidth(int width) {\n radWidth = width;\n }", "public void setTextureWidth(int texWidth) {\n\tthis.texWidth = texWidth;\n\tcalculateWidthRatio();\n }", "public void setExpectedBandwidth(int bw);", "void setStation(String stationType, double band);", "public void setWavelength(float wavelength) {\n/* 61 */ this.wavelength = wavelength;\n/* */ }", "public void updateWidth() {\n\t\t// Update width\n\t\tif (this.getFamily() != null) {\n\t\t\tthis.getFamily().updateFamilyWidth();\n\t\t\tthis.setWidth(this.getFamily().getWidth()\n\t\t\t\t\t+ this.getFamily().getNextWidth());\n\t\t} else {\n\t\t\tthis.setWidth(1);\n\t\t}\n\t}", "@Override\r\n public void setWidth(String width) {\n }", "public boolean setWidth(double width){\n if (width <= 0.0) return false;\n this.width = width;\n return true;\n }", "public void xsetWidth(org.apache.xmlbeans.XmlString width)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(WIDTH$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(WIDTH$20);\n }\n target.set(width);\n }\n }", "public void setScaleZoneWidth(float zoneWidth){\n this.mScaleZoneWidth = Utils.dp2px(mContext, zoneWidth);\n }", "public void setImageWidth(int val)\n {\n \n setImageWidth_0(nativeObj, val);\n \n return;\n }", "public void setMinWidth(int width) {\n setMinSize(width, minHeight);\n }", "public void setLineWidth(float width)\r\n\t{\r\n\t\t// not implemented\r\n\t\tg.setPenWidth((int) width);\r\n\t}", "public void changeFrameWidth(int frameWidth) {\r\n ViewGroup.LayoutParams params = gameFrame.getLayoutParams();\r\n params.width = frameWidth;\r\n gameFrame.setLayoutParams(params);\r\n }", "@JsProperty\n public void setWidth(int width);", "@Override\n public void setLineWidth(double width) {\n graphicsEnvironmentImpl.setLineWidth(canvas, width);\n }" ]
[ "0.7053288", "0.7034054", "0.6852842", "0.6706653", "0.65610087", "0.6468401", "0.6414639", "0.6410181", "0.6399324", "0.63789755", "0.63608885", "0.63600934", "0.6339661", "0.6338832", "0.63345855", "0.63240975", "0.63229203", "0.6318729", "0.63045245", "0.6232995", "0.62210023", "0.62210023", "0.6216951", "0.6201711", "0.6200061", "0.6200061", "0.61754555", "0.61684245", "0.6134139", "0.61304426", "0.61220694", "0.6083521", "0.6079369", "0.6067094", "0.605541", "0.6042776", "0.60234153", "0.60199344", "0.5995238", "0.5994173", "0.59839815", "0.5957159", "0.5939999", "0.5939018", "0.5931003", "0.5918344", "0.5914627", "0.589733", "0.5894445", "0.5892615", "0.5884737", "0.58804154", "0.58703107", "0.5860456", "0.58357406", "0.5818851", "0.581516", "0.5805263", "0.5799377", "0.5786902", "0.57486904", "0.569238", "0.56867176", "0.564728", "0.5646952", "0.56368685", "0.56268954", "0.56247526", "0.5622918", "0.56191266", "0.5581238", "0.55802983", "0.5566077", "0.5563154", "0.55606806", "0.55606", "0.5555023", "0.55408835", "0.5529299", "0.55133873", "0.55033284", "0.54995155", "0.54840666", "0.5482411", "0.5474854", "0.5467454", "0.54503626", "0.54463243", "0.54370826", "0.54180044", "0.54027236", "0.5399018", "0.5386717", "0.5382667", "0.53763646", "0.5375678", "0.5362035", "0.5356754", "0.53268695", "0.5322335" ]
0.70304585
2
Returns the band width of this filter.
public double getBandWidth() { return bw * _mySampleRate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BigDecimal getBandWidth() {\r\n return bandWidth;\r\n }", "public double getFeBandWidth() {\n return _avTable.getDouble(ATTR_FE_BANDWIDTH, 0.0);\n }", "public double getBandWidth(int subsystem) {\n double bandwidth = _avTable.getDouble(ATTR_BANDWIDTH, subsystem, 0.0);\n return bandwidth;\n }", "public final int getSampleSize(int band) {\n return DataBuffer.getDataTypeSize(dataType);\n }", "public double getWidth() {\n\t\t\treturn width.get();\n\t\t}", "public short getWidth() {\n\n\t\treturn getShort(ADACDictionary.X_DIMENSIONS);\n\t}", "public float getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\n\t\treturn width;\n\t}", "public float getWidth() {\r\n\t\treturn width;\r\n\t}", "public Integer getWidth() {\n\t\t\treturn width;\n\t\t}", "public double getWidth() {\r\n\t\treturn width;\r\n\t}", "final public double getWidth()\n\t{\n\t\treturn width;\n\t}", "public Number getWidth() {\n GroupingExpression w = getArg(1);\n return (w instanceof LongValue) ? ((LongValue)w).getValue() : ((DoubleValue)w).getValue();\n }", "public double getWidth() {\n return width;\n }", "public double getWidth() {\n return width;\n }", "public double getWidth() {\n return width;\n }", "public float getWidth() {\n return width;\n }", "public double getWidth() {\r\n return width;\r\n }", "public SVGLength getWidth() {\n return width;\n }", "public double getWidth () {\n return width;\n }", "public double getWidth() {\r\n\r\n\t\treturn w;\r\n\r\n\t}", "public float getWidth() {\n return this.width;\n }", "public final float getWidth() {\n return mWidth;\n }", "public double getWidth()\r\n {\r\n return width;\r\n }", "public int getWidth() {\n return width_;\n }", "public double getWidth()\n {\n return width;\n }", "public Double rockWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n return (int) Math.round(width);\n }", "public int getWidth()\n\t{\n\t\treturn this._width;\n\t}", "public int getWidth() {\n\t\t\treturn width;\n\t\t}", "public float getWidth(){\n\t\treturn this.arm.width();\n\t}", "public int getWidth() {\n return width_;\n }", "public int getWidth() {\n return width_;\n }", "public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public float getWidth();", "public int getWidth() {\r\n\t\t\r\n\t\treturn width;\r\n\t}", "public JSlider getFramesPerWavelengthSlider() {\n return framesPerWavelength;\n }", "public int getWidth() {\n return type.getWidth();\n }", "public int getWidth()\r\n {\r\n\tif (hue != null && saturation != null && intensity != null)\r\n\t return hue[0].length;\r\n\telse\r\n\t return -1;\r\n }", "public int getWidth() {\n\t\treturn this.width;\n\t}", "public int getWidth() {\n\t\treturn this.width;\n\t}", "public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}", "public int getWidth() \n\t{\n\t\treturn width;\n\t}", "public int getWidth()\n\t{\n\t\treturn width;\n\t}", "public int getWidth()\n\t{\n\t\treturn width;\n\t}", "public int getWidth() {\n return bala.getWidth();\n }", "public int getWidth() {\n\t\treturn width;\r\n\t}", "public int getWidth() {\n return this._width;\n }", "public int getWidthWeight()\n {\n int ret = 1;\n if (!isFixedWidth() && hasProperty(UIFormFieldProperty.WIDTH.value())) {\n ret = Integer.valueOf(getProperty(UIFormFieldProperty.WIDTH.value()));\n }\n return ret;\n }", "public final int getWidth(){\n return width_;\n }", "public float getWidth() {\n\treturn widthRatio;\n }", "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "public int getWidth(){\n\t\treturn width;\n\t}", "public Number getWidth() {\n\t\treturn getAttribute(WIDTH_TAG);\n\t}", "public double getWidth();", "public double getWidth();", "public int getWidth() {\n return width_;\n }", "public int getWidth() {\r\n\t\treturn this.width;\r\n\t}", "public double getWidth()\r\n {\r\n return this.widthCapacity;\r\n }", "public double getWidth() {\n\treturn width;\n }", "public final int getWidth() {\r\n return width;\r\n }", "public byte getWidth();", "public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}", "public int getWidthNumOfBytes() {\n return widthNumOfBytes;\n }", "@MavlinkFieldInfo(\n position = 3,\n unitSize = 2,\n description = \"Width of a matrix or image.\"\n )\n public final int width() {\n return this.width;\n }", "public int getWidth() {\n\t\treturn this.f1[0].length;\n\t}", "public static int getGeqBandCount()\n {\n int bandCount = (int)akParam_genb_;\n return bandCount;\n }", "private long getBandWidth(Connection conn, String deviceName, String portName) throws SQLException {\n\t\tlong band = 0;\n\t\ttry {\n\t\t\tband = Long.parseLong((String)(dao.getPortBandFromDeviceNamePortName(conn, deviceName, portName)));\n\t\t} catch (NullPointerException e) {\n\t\t\tthrow new RuntimeException(String.format(NOT_FOUND, \"port={deviceName:'\" + deviceName + \"', portName:'\" + portName + \"'}\"));\n\t\t}\n\t\treturn band;\n\t}", "public int getEffectWidth() {\n return this.effectWidth;\n }", "public int getWidth()\n\t{\n\t\treturn mWidth;\n\t}", "public int getWidth() {\n return this.width;\n }", "public int getWidth() {\n return this.width;\n }", "public double Width() {\n return OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_Width(swigCPtr, this);\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }" ]
[ "0.8044463", "0.71068096", "0.7000278", "0.66164577", "0.6554552", "0.6549572", "0.6465452", "0.6435587", "0.6435587", "0.6435587", "0.6427881", "0.6407993", "0.640014", "0.63820803", "0.63629663", "0.63496107", "0.63496107", "0.63496107", "0.63382864", "0.6322631", "0.6322036", "0.63153005", "0.6314098", "0.63020355", "0.6301625", "0.63015497", "0.6300886", "0.6291129", "0.62911093", "0.6290123", "0.628303", "0.6280676", "0.627423", "0.62707025", "0.62707025", "0.6239708", "0.6225904", "0.6225904", "0.6225904", "0.6225904", "0.6225904", "0.6225904", "0.6225904", "0.6225904", "0.6225904", "0.6225904", "0.6225904", "0.6225904", "0.6225904", "0.620592", "0.6201597", "0.620054", "0.61996686", "0.6196183", "0.61938334", "0.61938334", "0.618598", "0.6184526", "0.61823004", "0.61823004", "0.6173859", "0.6173411", "0.6168402", "0.6167974", "0.6159031", "0.61534464", "0.6151961", "0.6151961", "0.61415136", "0.6139127", "0.61382633", "0.61382633", "0.6135559", "0.61301184", "0.612798", "0.61267537", "0.6126306", "0.6119825", "0.61147237", "0.6112768", "0.61120296", "0.61079144", "0.61057824", "0.6104235", "0.61037123", "0.60988295", "0.60985917", "0.60985917", "0.6097228", "0.6090576", "0.6090576", "0.6090576", "0.6090576", "0.6090576", "0.6090576", "0.6090576", "0.6090576", "0.6090576", "0.6090576", "0.6090576" ]
0.83267903
0
Truy an khong tra ket qua: CREATE,UPDATE...
public void QuerryData(String sql){ SQLiteDatabase database = getWritableDatabase(); database.execSQL(sql); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Update createUpdate();", "private void updateDB() {\n }", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "@Override\n\tpublic void create(String text1,String text2,String text3) {\n\t\tString query=\"INSERT INTO BOOK VALUES ( '\"+text1+\"','\"+text2+\"','\"+text3+\"', 'ready')\";\n\t\texecuteQuery(query);\n\t\tnotifyAllObservers();\n\t\t\n\t}", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tbinder.commit();\n\t\t\t\t\t\n\t\t\t\t\tconexion = new Conexion();\n\t\t\t\t\tConnection con = conexion.getConnection();\n\t\t\t\t\tStatement statement = con.createStatement();\n\t\t\t\t\ttxTerm.setValue(txTerm.getValue().replace(\"'\", \"´\"));\n\t\t\t\t\t\n\t\t\t\t\tString cadena;\n\t\t\t\t\tif ( acceso.equals(\"NEW\" )) {\n\t\t\t\t\t\tcadena= \"INSERT INTO TERMANDCONDITIONS ( CONDICIONES, IDTIPO, ACTIVO ) VALUES (\"\n\t\t\t\t\t\t\t+ \"'\" + txTerm.getValue().toString() + \"',\"\n\t\t\t\t\t\t\t+ \"'\" + cbType.getValue() + \"',\"\n\t\t\t\t\t\t\t+ cbEnabled.getValue()\n\t\t\t\t\t\t\t+ \")\" ;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tcadena= \"UPDATE TERMANDCONDITIONS \"\n\t\t\t\t\t\t\t\t+ \"SET CONDICIONES = '\" + txTerm.getValue().toString() + \"',\"\n\t\t\t\t\t\t\t\t+ \"IDTIPO = '\" + cbType.getValue() + \"',\"\n\t\t\t\t\t\t\t\t+ \"ACTIVO = \" + cbEnabled.getValue()\n\t\t\t\t\t\t\t\t+ \" WHERE IDTERM = \" + regterm.getItemProperty(\"IdTerm\").getValue();\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(cadena);\n\t\t\t\t\tstatement.executeUpdate(cadena);\n\t\t\t\t\tstatement.close();\n\t\t\t\t\tcon.close();\n\t\t\t\t\t\n\t\t\t\t\tnew Notification(\"Process OK\",\n\t\t\t\t\t\t\t\"Record \" + acceso,\n\t\t\t\t\t\t\tNotification.Type.TRAY_NOTIFICATION, true)\n\t\t\t\t\t\t\t.show(Page.getCurrent());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tVenEditarTerms.this.close();\n\t\t\t\t\tpantallaTerms.buscar.click();\n\t\t\t\t} catch (CommitException e) {\n\n\t\t\t\t\t\n\t\t\t\t\tString mensajes = \"\";\n\t\t for (Field<?> field: binder.getFields()) {\n\t\t ErrorMessage errMsg = ((AbstractField<?>)field).getErrorMessage();\n\t\t \n\t\t if (errMsg != null) {\n\t\t \t//System.out.println(\"Error:\"+errMsg.getFormattedHtmlMessage());\n\t\t \tmensajes+=errMsg.getFormattedHtmlMessage();\n\t\t }\n\t\t }\n\t\t \n\t\t\t\t\tnew Notification(\"Errors detected\",\n\t\t\t\t\t\t\tmensajes,\n\t\t\t\t\t\t\tNotification.Type.TRAY_NOTIFICATION, true)\n\t\t\t\t\t\t\t.show(Page.getCurrent());\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n \n\t\t } catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t \te.printStackTrace();\n\t\t \tnew Notification(\"Got an exception!\",\n\t\t\t\t\t\t\te.getMessage(),\n\t\t\t\t\t\t\tNotification.Type.ERROR_MESSAGE, true)\n\t\t\t\t\t\t\t.show(Page.getCurrent());\n\t\t \t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public int Edbroker(Long broker_id, String firstname, String lastname,\r\n\t\tString address, String gender, String eMail, Long phone,\r\n\t\tString experience) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update broker set first_name='\"+firstname+\"',last_name='\"+lastname+\"',address='\"+address+\"',gender='\"+gender+\"',e_mail='\"+eMail+\"',phone=\"+phone+\",experience='\"+experience+\"' where broker_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}", "public void formDatabaseTable() {\n }", "@Override\n public void onCreate (SQLiteDatabase sqLiteDatabase){\n sqLiteDatabase.execSQL(\"create table if not exists \"+nama_table+\" (judul varchar(50) primary key, deskripsi varchar(50), priority varchar(50)) \");\n }", "protected String createUpdate(T t) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"UPDATE \");\n\t\tsb.append(type.getSimpleName());\n\t\tsb.append(\" SET \");\n\t\treturn sb.toString();\n\t}", "static void dataToevoegen(String querry) {\n try {\n Statement stmt = connectieMaken().createStatement(); //\n stmt.execute(querry);\n } catch (SQLException se) {\n se.printStackTrace();\n }\n }", "public void editar(String update){\n try {\n Statement stm = Conexion.getInstancia().createStatement();\n stm.executeUpdate(update);\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n }", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\", this._productoNombre);\n _valuesPedido.put(\"Precio\",this._productoPrecio);\n _valuesPedido.put(\"Cantidad\",this._etAdquirir.getText().toString());\n _valuesPedido.put(\"Vendedor\",this.username);\n _valuesPedido.put(\"Id_Producto\",this._productoId);\n bdsecunadaria.insert(\"DATOS\",null,this._valuesPedido);\n bdsecunadaria.close();\n }", "private void TambahData(String judul,String penulis,String harga){\n try{ // memanipulasi kesalahan\n String sql = \"INSERT INTO buku VALUES(NULL,'\"+judul+\"','\"+penulis+\"',\"+harga+\")\"; // menambahkan data dengan mengkonekan dari php\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n stt.executeUpdate(sql); \n model.addRow(new Object[]{judul,penulis,harga}); // datanya akan tertambah dibaris baru di tabel model\n \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "public static void main(String[] args) {\n\n String select = \"select direccion from cliente where idCliente = 3;\", update;\n Connection conexion = BddConnection.newConexionPostgreSQL(\"Ventas\");\n PreparedStatement sentencia;\n Direccion dirCliente;\n ResultSet resul;\n\n try {\n sentencia = conexion.prepareStatement(select);\n resul = sentencia.executeQuery();\n if (resul.next()){\n dirCliente = Direccion.newInstance(resul.getString(1));\n dirCliente.getPoblacion().getProvincia().setProvincia(\"Granada update\");\n update = \"update cliente set direccion = \" + dirCliente.getStringTypeT_Direccion() + \" where idCliente = 3\";\n sentencia = conexion.prepareStatement(update);\n sentencia.executeUpdate();\n }\n resul.close();\n sentencia.close();\n conexion.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public static void promuovi_utente(int id) {\r\n\t\ttry {\r\n\t\tDatabase.connect();\r\n\t\tDatabase.updateRecord(\"utente\", \"utente.ruolo=2\", \"utente.id=\"+id); \t\t\r\n\t\tDatabase.close();\t\r\n\t\t}catch(NamingException e) {\r\n \t\tSystem.out.println(e);\r\n }catch (SQLException e) {\r\n \tSystem.out.println(e);\r\n }catch (Exception e) {\r\n \tSystem.out.println(e); \r\n }\r\n\t}", "@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 }", "@Test\n public void test() throws Exception{\n update(\"update user set username=? where id=?\",\"wangjian\",\"4\");\n }", "public static void promuovi_mod(int id) {\r\n\t\ttry {\r\n\t\tDatabase.connect();\r\n\t\tDatabase.updateRecord(\"utente\", \"utente.ruolo=3\", \"utente.id=\"+id); \t\t\r\n\t\tDatabase.close();\r\n\t\t}catch(NamingException e) {\r\n \t\tSystem.out.println(e);\r\n }catch (SQLException e) {\r\n \tSystem.out.println(e);\r\n }catch (Exception e) {\r\n \tSystem.out.println(e); \r\n }\r\n\t}", "@PostMapping(\"/demande\")\n public Demande addDemande(@RequestBody Demande demande)\n {\n try\n {\n \n /* ajout traitement spécial :\n * setDateCreate setCreatedBy\n * */\n demande.setDateOp(LocalDateTime.now());\n demande.setUtil(\"admin\");\n demande.setOp(\"A\"); // D,E\n demande= demandeRepository.save(demande);\n }\n catch(Exception e)\n {\n \n }\n return demande;\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n // String sql = String.format(\n // \"CREATE table $TABLE ( \" +\n // \"$C_ID INTEGER NOT NULL PRIMARY KEY,\" +\n // \"%C_CREATED_AT INTEGER, $C_TEXT TEXT, $C_USER TEXT)\",\n // ,\n // , \n // , , );\n String sql = context.getResources().getString(R.string.sql_create);\n db.execSQL(sql); // execute the sql\n Log.d(TAG, \"onCreate'd sql: \" + sql);\n }", "Operacion createOperacion();", "public void performTambah() {\n\n dialogEntry.postInit();\n dialogEntry.clearFields();\n dialogEntry.setRowToBeEdited(-1);\n //dialogEntry.clearFields ();\n dialogEntry.show(true); // -- modal dialog ya, jd harus menunggu..\n //if (isDirty()) {\n loadTable();\n // TODO : select last item added\n //}\n }", "public void verarbeite() {\n\t\t\r\n\t}", "public static void main(String[] args){\n\r\n StringDB Database = new StringDB();\r\n Database.execute(\"INSERT INTO teachers VALUES ( 'Martin_Aumüller' , 'maau' ) ;\");\r\n\r\n\r\n\r\n }", "public static String altaLogico(int id){\n String query=\"UPDATE empleado SET activo=1 WHERE idEmpleado=\"+id;\n return query;\n}", "public void uptadeDB(){\n //mainDatabase.modifyStaff(this);\n }", "@Test\n public void testUpdate() throws MainException, SQLException {\n System.out.println(\"update\");\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n PreparedStatement stmt = instance.prepareStatement(\n \"insert into infermieri (nome, cognome) values ('luca', 'massa')\");\n boolean expResult = true;\n boolean result = instance.update(stmt);\n assertEquals(expResult, result);\n }", "public static void main(String[] args) throws SQLException {\n\t\tDeptHandler d=new DeptHandler();\r\n\t\tVector<String> input=new Vector<>();\r\n\t\tinput.add(\"100\");\r\n\t\tinput.add(\"수원점\");\r\n\t\tinput.add(\"수원\");\r\n\t\tinput.add(\"031-333-3333\");\r\n\t\tinput.add(\"202\");\r\n\t\t\r\n\t\td.InsertRow(input);\r\n\t\t//d.deleteRow(100);\r\n\t\tVector<String> update=new Vector<>();\r\n\t\tupdate.add(\"100\");\r\n\t\tupdate.add(\"\");\r\n\t\tupdate.add(\"서울\");\r\n\t\tupdate.add(\"02-333-3333\");\r\n\t\tupdate.add(\"\");\r\n\t\td.updateRow(100,update);\r\n\t\t\r\n\r\n\t}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "@Override\n\tpublic void run(String... args) throws Exception {Formation f1=formationRepository.save(new Formation(\"php\", 60));\n//\t\tFormation f2=formationRepository.save(new Formation(\"java\", 60));\n//\t\tFormation f3=formationRepository.save(new Formation(\"c\", 60));\n//\t\tetudiantRepository.save(new Etudiant(\"hachem\",\"jebel\",new Date(),f1));\n//\t\tetudiantRepository.save(new Etudiant(\"salah\",\"sallemi\",new Date(),f2));\n//\t\tetudiantRepository.save(new Etudiant(\"hachem\",\"jebel\",new Date(),f3));\n//\t\t\n\t}", "void commit();", "void commit();", "int insert(AdminTab record);", "public void insert() {\n SiswaModel m = new SiswaModel();\n m.setNisn(view.getTxtNis().getText());\n m.setNik(view.getTxtNik().getText());\n m.setNamaSiswa(view.getTxtNama().getText());\n m.setTempatLahir(view.getTxtTempatLahir().getText());\n \n //save date format\n String date = view.getDatePickerLahir().getText();\n DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\"); \n Date d = null;\n try {\n d = df.parse(date);\n } catch (ParseException ex) {\n System.out.println(\"Error : \"+ex.getMessage());\n }\n m.setTanggalLahir(d);\n \n //Save Jenis kelamin\n if(view.getRadioLaki().isSelected()){\n m.setJenisKelamin(JenisKelaminEnum.Pria);\n }else{\n m.setJenisKelamin(JenisKelaminEnum.Wanita);\n }\n \n m.setAsalSekolah(view.getTxtAsalSekolah().getText());\n m.setHobby(view.getTxtHoby().getText());\n m.setCita(view.getTxtCita2().getText());\n m.setJumlahSaudara(Integer.valueOf(view.getTxtNis().getText()));\n m.setAyah(view.getTxtNamaAyah().getText());\n m.setAlamat(view.getTxtAlamat().getText());\n \n if(view.getRadioLkkAda().isSelected()){\n m.setLkk(LkkEnum.ada);\n }else{\n m.setLkk(LkkEnum.tidak_ada);\n }\n \n //save agama\n m.setAgama(view.getComboAgama().getSelectedItem().toString());\n \n dao.save(m);\n clean();\n }", "public void editOperation() {\n\t\t\r\n\t}", "@Override\n public void onClick(View view) {\n Log.d(\"CALL_TEST\", \"SAVE!\");\n DbManager db = DbManager.getInstance(getApplicationContext());\n\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"NAME\", \"홍길동\");\n contentValues.put(\"PHONE\", \"1234\");\n\n db.insert(contentValues);\n }", "public void records_update_accessibility(){\n try{\n\n Context context = getApplicationContext();\n String s = String.valueOf(context.getDatabasePath(\"vkl.db\"));\n db = getApplicationContext().openOrCreateDatabase(s,MODE_APPEND,null);\n String tname = DocId+\"_access\";\n db.beginTransaction();\n try {\n String query = \"create table \" + tname + \" (\"\n + \" patient TEXT ); \";\n db.execSQL(query);\n\n db.setTransactionSuccessful(); //commit your changes\n }\n catch (SQLiteException e) {\n\n System.out.println(\"********SOME THING WRONG******\");\n }\n finally {\n db.endTransaction();\n }\n }catch (SQLException e){\n System.out.println(\"********SOME THING WRONG OUTER******\");\n\n }\n\n }", "public static int save(Periode p){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection();\n //melakukan query database\n PreparedStatement ps=con.prepareStatement( \n \"insert into periode(tahun, awal, akhir) values(?,?,?)\"); \n ps.setString(1,p.getTahun()); \n ps.setString(2,p.getAwal()); \n ps.setString(3,p.getAkhir()); \n status=ps.executeUpdate(); \n }catch(Exception e){\n System.out.println(e);\n } \n return status; \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 }", "@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 }", "private static void insertListsInDataBase () throws SQLException {\n //Create object ActionsWithRole for working with table role\n ActionsCRUD<Role,Integer> actionsWithRole = new ActionsWithRole();\n for (Role role : roles) {\n actionsWithRole.create(role);\n }\n //Create object ActionsWithUsers for working with table users\n ActionsCRUD<User,Integer> actionsWithUsers = new ActionsWithUsers();\n for (User user : users) {\n actionsWithUsers.create(user);\n }\n //Create object ActionsWithAccount for working with table account\n ActionsCRUD<Account,Integer> actionsWithAccount = new ActionsWithAccount();\n for (Account account : accounts) {\n actionsWithAccount.create(account);\n }\n //Create object ActionsWithPayment for working with table payment\n ActionsCRUD<Payment,Integer> actionsWithPayment = new ActionsWithPayment();\n for (Payment payment : payments) {\n actionsWithPayment.create(payment);\n }\n }", "private static void doCreate(SQLiteDatabase db) {\r\n Logger.info(Logger.Type.GHOST_SMS, \"*** execute doCreate\");\r\n final Version version = new Version(VERSION_1, Names.GHOST_SMS, DateTimeUtils.currentDateWithoutSeconds());\r\n Versions.insert(db, version);\r\n doUpgrade(db, version.version);\r\n }", "@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 dbActions(String SQL){\n\t\ttry {\n\t\t\tstmt.executeUpdate(SQL);\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}", "@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 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 createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "@Test\n public void updateQuejaTest() {\n QuejaEntity entity = data.get(0);\n PodamFactory factory = new PodamFactoryImpl();\n QuejaEntity newEntity = factory.manufacturePojo(QuejaEntity.class);\n\n newEntity.setId(entity.getId());\n\n quejaPersistence.update(newEntity);\n\n QuejaEntity resp = em.find(QuejaEntity.class, entity.getId());\n\n Assert.assertEquals(newEntity.getName(), resp.getName());\n }", "private void Update_table() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void createDB() {\n\t\ttry {\n\t\t\tBufferedReader br= new BufferedReader(new FileReader(\"db_schema.txt\"));\n\t\t\tString line= null;\n\t\t\tStringBuilder sb= new StringBuilder();\n\t\t\twhile ((line=br.readLine())!=null){\n\t\t\t\tsb.append(line);\n\t\t\t\tif(sb.length()>0 && sb.charAt(sb.length()-1)==';'){//see if it is the end of one line of command\n\t\t\t\t\tstatement.executeUpdate(sb.toString());\n\t\t\t\t\tsb= new StringBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void atualizarBD(){\n SchemaUpdate se = new SchemaUpdate(hibernateConfig);\n se.execute(true, true);\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tdb.execSQL(\"create table \" + TABLE_NAME + \"(id integer primary key autoincrement,uname text,name text)\");\n\t}", "public abstract void updateDatabase();", "private void edit() {\n if (String.valueOf(tgl_pengobatanField.getText()).equals(null)\n || String.valueOf(waktu_pengobatanField.getText()).equals(null)) {\n Toast.makeText(getApplicationContext(),\n \"Ada Yang Belum Terisi\", Toast.LENGTH_SHORT).show();\n } else {\n SQLite.update(Integer.parseInt(idField.getText().toString().trim()),nama_pasien2,nama_dokter2, tgl_pengobatanField.getText().toString().trim(),waktu_pengobatanField.getText().toString(),\n keluhan_pasienField.getText().toString().trim(),hasil_diagnosaField.getText().toString().trim(),\n biayaField.getText().toString().trim());\n blank();\n finish();\n }\n }", "Secuencia createSecuencia();", "public void commit(){\n \n }", "public static void inserttea() {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"insert into teacher values ('\"+teaid+\"','\"+teaname+\"','\"+teabirth+\"','\"+protitle+\"','\"+cno+\"')\");\n\t\t\tSystem.out.println(\"cno:\"+cno);\n\t\t\tps.executeUpdate();\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"教师记录添加成功!\", \"提示消息\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}catch (Exception e){\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"数据添加异常!\", \"提示消息\", JOptionPane.ERROR_MESSAGE);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@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 }", "@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 }", "private void UpdateTable() {\n\t\t\t\t\n\t\t\t}", "@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 }", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "public void executeUpdate();", "public abstract void commitMiembrosDeEquipo();", "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga(new Integer(tfHarga.getText()));\n s.setStok((int) spJumlah.getValue());\n s.setBrand(tfBrand.getText());\n s.setIDKategori((Kategorimotor) cbKategori.getSelectedItem());\n s.setIDSupplier((Supplier) cbSupplier.getSelectedItem());\n s.setTanggalDidapat(dateChooser.getDate());\n\n daoStok.addOrUpdateStok(s);\n JOptionPane.showMessageDialog(this, \"Data berhasil disimpan!\");\n showAllDataStok();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Data gagal disimpan!\");\n }\n }", "public boolean ModificarProducto(int id,String nom,String fab,int cant,int precio,String desc,int sucursal) {\n boolean status=false;\n int res =0;\n try {\n conectar(); \n res=state.executeUpdate(\"update producto set nombreproducto='\"+nom+\"', fabricante='\"+fab+\"',cantidad=\"+cant+\",precio=\"+precio+\",descripcion='\"+desc+\"',idsucursal=\"+sucursal+\" where idproducto=\"+id+\";\");\n if(res>=1)\n {\n status=true;\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return status;\n }", "public void createDB(){\r\n\t\t\r\n\t\t Connection connection = null;\r\n\t try\r\n\t {\r\n\t // create a database connection\r\n\t connection = DriverManager.getConnection(\"jdbc:sqlite:project.sqlite\");\r\n\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\r\n\t statement.executeUpdate(\"drop table if exists task\");\r\n\t statement.executeUpdate(\"create table task (taskId integer primary key asc, description string, status string, createDate datetime default current_timestamp)\");\r\n\t statement.executeUpdate(\"insert into task values(1, 'leo', 'Active', null)\");\r\n\t statement.executeUpdate(\"insert into task values(2, 'yui', 'Complete', null)\");\r\n\t }\r\n\t catch(SQLException ex){\r\n\t \tthrow new RuntimeException(ex);\r\n\t }\r\n\t\t\r\n\t}", "@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 }", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "void executeUpdate();", "public static int update(Periode p){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection();\n //melakukan query database untuk merubah data berdasarkan id atau primary key\n PreparedStatement ps=con.prepareStatement( \n \"update periode set tahun=?, awal=?, akhir=?, status=? where id=?\"); \n ps.setString(1,p.getTahun()); \n ps.setString(2,p.getAwal()); \n ps.setString(3,p.getAkhir()); \n ps.setString(4,p.getStatus()); \n ps.setInt(5,p.getId()); \n status=ps.executeUpdate(); \n }catch(Exception e){System.out.println(e);} \n return status; \n }", "public static void main(String[] args) {\n\t\tCreateTable createTable = new CreateTable();\n\n\t\tCity city = new City();\n\t\tcity.setId(1);\n\t\tcreateTable.execute(city);\n\n\t\tProvince province = new Province();\n\t\tprovince.setId(1);\n\t\tcreateTable.execute(province);\n\n\t\tTown town = new Town();\n\t\ttown.setId(1);\n\t\tcreateTable.execute(town);\n\n\t\tDetail detail = new Detail();\n\t\tdetail.setId(1);\n\t\tcreateTable.execute(detail);\n\n\t\tOrder order = new Order();\n\t\torder.setId(1);\n\t\tcreateTable.execute(order);\n\n\t\tBrand2 brand2 = new Brand2();\n\t\tbrand2.setId(1);\n\t\tcreateTable.execute(brand2);\n\n\t\tColor color = new Color();\n\t\tcolor.setId(1);\n\t\tcreateTable.execute(color);\n\n\t\tFeature feature = new Feature();\n\t\tfeature.setId(1);\n\t\tcreateTable.execute(feature);\n\n\t\tImg img = new Img();\n\t\timg.setId(1);\n\t\tcreateTable.execute(img);\n\n\t\tSku sku = new Sku();\n\t\tsku.setId(1);\n\t\tcreateTable.execute(sku);\n\n\t\tType type = new Type();\n\t\ttype.setId(1);\n\t\tcreateTable.execute(type);\n\n\t\tAddr addr = new Addr();\n\t\taddr.setId(1);\n\t\tcreateTable.execute(addr);\n\t\tcreateTable.execute(new Buyer());\n\n\t\t// 商品编号 商品名称 图片 新品 热卖 推荐 上下架 操作选项\n\t\tProduct product = new Product();\n\t\tproduct.setId(001);\n\t\tproduct.setNo(UUID.randomUUID().toString());\n\t\tproduct.setName(\"依琦莲2014瑜伽服套装新款 瑜珈健身服三件套 广场舞蹈服装 女瑜伽服送胸垫 长袖紫色\");\n\t\tproduct.setWeight(56.00);\n\t\tproduct.setIsNew(1); // 1是 0否\n\t\tproduct.setIsHot(1);\n\t\tproduct.setCreateTime(new Date());\n\t\tproduct.setCheckUserId(\"\");\n\t\tproduct.setCheckTime(new Date());\n\t\tproduct.setCreateUserId(\"\");\n\t\tproduct.setIsShow(1);\n\t\tproduct.setIsDel(1);\n\t\tproduct.setTypeId(1);\n\t\tproduct.setBrandId(1);\n\t\tproduct.setKeywords(\"\");\n\t\tproduct.setSales(36);\n\t\tproduct.setDescription(\"不是东西\");\n\t\tproduct.setPackageList(\"\");\n\t\tproduct.setFeature(\"头角狰狞\");\n\t\tproduct.setColor(\"blue\");\n\t\tproduct.setSize(\"L\"); // S,L,XXL\n\t\tcreateTable.execute(product);\n\n\t\t// insert into\n\t\t// Product(id,no,name,weight,isNew,isHot,sales,description,feature,size)value(1,\"11xzc3568\",\"依琦莲2014瑜伽服套装新款女瑜伽服送胸垫\n\t\t// 长袖紫色\",36.12,1,1,110,\"不是东西\",\"头角狰狞\",\"blue\",\"L\");\n\n\t\tEmployee employee = new Employee();\n\t\temployee.setId(1);\n\t\tcreateTable.execute(employee);\n\n\t}", "void commit( boolean onSave );", "@Override\n public void onCreate(SQLiteDatabase db) {\n //SQLiteDatabase es semejante al session de hibernate\n ejecutarScript(db,R.array.scriptCreate);\n }", "@Override\r\n\tpublic boolean create(Moteur obj, Connection conn) throws SQLException {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic String execute() throws Exception {\n\t\tResfun rol=new Resfun();\n\t\trol.setCaction(caction);\n\t\trol.setCname(cname);\n\t\trol.setPname(pname);\n\t\trol.setResfunid(resfunid);\n\t\tuserService.upResfun(rol);\n\t\taddActionMessage(\"数据修改成功!\");\n\t\treturn SUCCESS;\n\t}", "private void edit() {\n\n\t}", "@Override\n public void execute()\n {\n mDbHandle.execSQL(CREATE_TABLE_BLOOD_SUGAR);\n }", "@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 }", "@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 }", "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 }", "@Override\r\n public void onCreate(SQLiteDatabase db)\r\n {\r\n db.execSQL(DB_ADMIN);\r\n db.execSQL(DB_QUEST_FIELD);\r\n db.execSQL(DB_QUEST_RADIO);\r\n db.execSQL(DB_QUEST_CHECK);\r\n db.execSQL(DB_EMOCA_TIME);\r\n db.execSQL(DB_EMOCA_SRC);\r\n db.execSQL(DB_EMOCA_REPLAY);\r\n db.execSQL(DB_EMOCA_MARKS);\r\n db.execSQL(DB_EMOCA_SCORE);\r\n }", "@Override\r\n\tpublic void save(TQssql sql) {\n\r\n\t}", "private static void testupdate() {\n\t\ttry {\n\t\t\tRoleModel model = new RoleModel();\n\t\t\tRoleBean bean = new RoleBean();\n\t\t\tbean = model.findByPK(7L);\n\t\t\tbean.setName(\"Finance\");\n\t\t\tbean.setDescription(\"Finance Dept\");\n\t\t\tbean.setCreatedBy(\"CCD MYSORE\");\n\t\t\tbean.setModifiedBy(\"CCD MYSORE\");\n\t\t\tbean.setCreatedDatetime(new Timestamp(new Date().getTime()));\n\t\t\tbean.setModifiedDatetime(new Timestamp(new Date().getTime()));\n\t\t\tmodel.update(bean);\n\t\t\tRoleBean updateBean = model.findByPK(1);\n\t\t\tif (\"12\".equals(updateBean.getName())) {\n\t\t\t\tSystem.out.println(\"UPDATE RECORD FAILED\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"RECORD UPDATED SUCCESSFULLY\");\n\t\t\t}\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (DuplicateRecordException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void insertTupel(Connection c) {\n try {\n String query = \"INSERT INTO \" + getEntityName() + \" VALUES (null,?,?,?,?,?);\";\n PreparedStatement ps = c.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, getAnlagedatum());\n ps.setString(2, getText());\n ps.setString(3, getBild());\n ps.setString(4, getPolizist());\n ps.setString(5, getFall());\n ps.executeUpdate();\n ResultSet rs = ps.getGeneratedKeys();\n rs.next();\n setID(rs.getString(1));\n getPk().setValue(getID());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "@Test\r\n public void testUpdate() {\r\n System.out.println(\"update\");\r\n Title t = new Title();\r\n t.setIsbn(\"test\");\r\n t.setTitle(\"aaaaaaaaaaaaaaaaaa\");\r\n t.setAuthor(\"kkkkkkkkkkkkkk\");\r\n t.setType(\"E\");\r\n int expResult = 1;\r\n int result = TitleDao.update(t);\r\n assertEquals(expResult, result);\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 update(Product p){\n ContentValues contvalu= new ContentValues();\n //contvalu.put(\"date_created\", \"datetime('now')\");\n contvalu.put(\"name\",p.getName());\n contvalu.put(\"feature\",p.getFeature());\n contvalu.put(\"price\",p.getPrice());\n return (cx.update(\"Product\",contvalu,\"id=\"+p.getId(),null))>0;\n//-/-update2-////\n\n\n }", "Persistencia() {\n\t}", "E update(E entiry);", "@Override\n public void updateDatabase() {\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\n\t\t\n\t\tdb.execSQL(\"CREATE TABLE \"+TABLE+\" (\"+QID+\" TEXT, \"+\n\t\t\t\tQNAME+\" TEXT, \"+OPTIONA+\" TEXT,\"+OPTIONB+\" TEXT,\"+OPTIONC+\" TEXT,\"+OPTIOND+\" TEXT,\"+ANS+\" TEXT) ;\");\n\t\t\n\t//\tdb.execSQL(\"insert into \"+TestTable+\"values('10','Grace period for the renewal of a permanent Driving License','a)Nill','b)30days','C)60days','D)90days');\");\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n\n DBCreate();\n\n SubmitData2SQLiteDB();\n\n }", "public static void main(String[] args) {\n EntityManagerFactory fabrica = Persistence.createEntityManagerFactory(\"oracle\");\n EntityManager em = fabrica.createEntityManager();\n\n //Instanciar um novo aluno sem o código(Estado: new - não gerenciado)\n Aluno aluno = new Aluno(\"Gabriel\", \"2TDSJ\",\n new GregorianCalendar(200, Calendar.JULY, 10), Periodo.MATUTINO, true);\n //Adiciona o aluno no contexto do Entity Manager(gerencia-lo)\n em.persist(aluno);\n //Começar com uma transação\n em.getTransaction().begin();\n //Realizar o commit\n em.getTransaction().commit();\n\n System.out.println(\"Aluno Registrado\");\n //Atualiza o valor no banco, faz um update automatico.\n aluno.setNome(\"Luiz\");\n\n ///Fechar\n em.close();\n fabrica.close();\n }", "@Override\n\t\tpublic void update(Metodologia metodologia,String name) {\n\t\t\t\n\t\t}", "@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 }", "@Override\n\tpublic void CRUD(Integer pid) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tString query =\"delete from pmohan_prescription where pid = ?;\";\n\t\ttry(PreparedStatement statement = connection.prepareStatement(query))\n\t\t{\n\t\t\tstatement.setInt(1,pid);\n\t\t\tstatement.executeUpdate();\n\t\t} catch(SQLException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\t\t\n\t}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tString fn = tffname.getText();\r\n\t\t\tString ln = tflname.getText();\r\n\t\t\tString eml= tfemail.getText();\r\n\t\t\tString phn = tfphone.getText();\r\n\t\t\tString user = tfusername.getText();\r\n\t\t\tString pass = tfpasswrd.getText();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tstatement.executeUpdate(\"INSERT INTO register VALUES('\"+fn+\"','\"+ln+\"','\"+eml+\"','\"+phn+\"','\"+user+\"','\"+pass+\"')\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\r\n\t\t}", "@Test\n public void commonUpdateTest() {\n\n String sql2 = \"UPDATE `order` SET order_name=? WHERE order_id=?\";\n commonUpdate(sql2, \"abc\", \"2\");\n }", "@Override\n\tpublic int create(Prod_Unidadmed P) {\n\t\treturn jdbcTemplate.update(\"call PKG_ALM_CRUD_PRODUNIDADMED.pa_mat_produnidadmed_ins(?,?,?)\",P.getNombrelargo(),P.getNombrecorto(),P.getEstado());\n\t}" ]
[ "0.6827185", "0.6359634", "0.62398213", "0.6061025", "0.59833807", "0.5980689", "0.59765744", "0.594279", "0.5885396", "0.5874457", "0.5869882", "0.5843058", "0.58259064", "0.58126825", "0.57845503", "0.57754976", "0.5769887", "0.5764907", "0.57589567", "0.5757471", "0.5745473", "0.5732074", "0.57289803", "0.57192403", "0.57145506", "0.57116807", "0.5710158", "0.570343", "0.5691589", "0.56910855", "0.56846416", "0.5683597", "0.5683597", "0.56745094", "0.56723595", "0.56710637", "0.56697714", "0.566644", "0.5663251", "0.565774", "0.5654894", "0.5653343", "0.56475806", "0.5643556", "0.5641382", "0.5635889", "0.562663", "0.56228507", "0.5619817", "0.5613805", "0.5611871", "0.5605387", "0.5597381", "0.5597008", "0.5594255", "0.559337", "0.55933315", "0.5590651", "0.55895185", "0.5582783", "0.55748606", "0.55741054", "0.5566687", "0.55635875", "0.55593085", "0.5554353", "0.5550579", "0.5549215", "0.5548644", "0.5545981", "0.55394226", "0.55380976", "0.55362177", "0.55334216", "0.55313385", "0.5531019", "0.55294555", "0.5524467", "0.55240124", "0.5521059", "0.55204904", "0.5520288", "0.551993", "0.5518329", "0.5517036", "0.5516964", "0.5516825", "0.5516547", "0.5512494", "0.5512336", "0.55115205", "0.5507869", "0.55071956", "0.550507", "0.5502092", "0.5499784", "0.54991084", "0.5496588", "0.5496148", "0.5495607", "0.5495299" ]
0.0
-1
Truy van tra ket qua SELECT...
public Cursor getData(String sql){ SQLiteDatabase database = getReadableDatabase(); return database.rawQuery(sql,null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SELECT createSELECT();", "protected T selectImpl(String sql, String... paramentros) {\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tcursor = BancoHelper.db.rawQuery(sql, paramentros);\n\t\t\t\n\t\t\tif (cursor.getCount() > 0 && cursor.moveToFirst()) {\n\t\t\t\treturn fromCursor(cursor);\n\t\t\t}\n\n\t\t\tthrow new RuntimeException(\"Não entrou no select\");\n\n\t\t} finally {\n\n\t\t\tif (cursor != null && !cursor.isClosed()) {\n\t\t\t\tcursor.close();\n\t\t\t}\n\t\t}\n\n\t}", "private StringBuilder getSqlSelectContadorDocProrroga() {\n StringBuilder query = new StringBuilder();\n\n query.append(\" \");\n query.append(\" SELECT \\n\");\n query.append(\" PRO.ID_PRORROGA_ORDEN, \\n\");\n query.append(\" PRO.ID_ORDEN, \\n\");\n query.append(\" PRO.FECHA_CARGA, \\n\");\n query.append(\" PRO.RUTA_ACUSE,\\n\");\n query.append(\" PRO.CADENA_CONTRIBUYENTE, \\n\");\n query.append(\" PRO.FIRMA_CONTRIBUYENTE, \\n\");\n query.append(\" PRO.APROBADA, \\n\");\n query.append(\" PRO.ID_ASOCIADO_CARGA, \\n\");\n query.append(\" PRO.ID_AUDITOR, \\n\");\n query.append(\" PRO.ID_FIRMANTE, \\n\");\n query.append(\" PRO.RUTA_RESOLUCION, \\n\");\n query.append(\" PRO.CADENA_FIRMANTE, \\n\");\n query.append(\" PRO.FIRMA_FIRMANTE,\\n\");\n query.append(\" PRO.FECHA_FIRMA, \\n\");\n query.append(\" PRO.ID_ESTATUS, \\n\");\n query.append(\" PRO.FOLIO_NYV, \\n\");\n query.append(\" PRO.FECHA_NOTIF_NYV, \\n\");\n query.append(\" PRO.FECHA_NOTIF_CONT, \\n\");\n query.append(\" PRO.FECHA_SURTE_EFECTOS, \\n\");\n query.append(\" PRO.ID_NYV, \\n\");\n query.append(\" (SELECT COUNT(0) FROM \");\n query.append(FecetDocProrrogaOrdenDaoImpl.getTableName());\n query.append(\" DOCPRO WHERE PRO.ID_PRORROGA_ORDEN = DOCPRO.ID_PRORROGA_ORDEN) TOTAL_DOC_PRORROGA, \\n\");\n query.append(\" ASOCIADO.ID_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.RFC_CONTRIBUYENTE, \\n\");\n query.append(\" ASOCIADO.RFC, \\n\");\n query.append(\" ASOCIADO.ID_ORDEN, \\n\");\n query.append(\" ASOCIADO.ID_TIPO_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.NOMBRE, \\n\");\n query.append(\" ASOCIADO.CORREO, \\n\");\n query.append(\" ASOCIADO.TIPO_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.FECHA_BAJA, \\n\");\n query.append(\" ASOCIADO.FECHA_ULTIMA_MOD, \\n\");\n query.append(\" ASOCIADO.FECHA_ULTIMA_MOD_IDC, \\n\");\n query.append(\" ASOCIADO.MEDIO_CONTACTO, \\n\");\n query.append(\" ASOCIADO.ESTATUS, \\n\");\n query.append(\" ESTATUS.ID_ESTATUS, \\n\");\n query.append(\" ESTATUS.DESCRIPCION, \\n\");\n query.append(\" ESTATUS.MODULO, \\n\");\n query.append(\" ESTATUS.ID_MODULO \\n\");\n\n query.append(\"FROM \");\n query.append(getTableName());\n query.append(\" PRO \\n\");\n query.append(\" INNER JOIN FECEC_ESTATUS ESTATUS \\n\");\n query.append(\" ON PRO.ID_ESTATUS = ESTATUS.ID_ESTATUS \\n\");\n query.append(\" LEFT JOIN FECET_ASOCIADO ASOCIADO \\n\");\n query.append(\" ON PRO.ID_ASOCIADO_CARGA = ASOCIADO.ID_ASOCIADO \\n\");\n return query;\n }", "public String ejecutarSQLselect(String sql, int div){\n String line=\"\";\n try {\n iniciarConexion();\n ResultSet rs = this.statement.executeQuery(sql);\n if (rs.next()){ \n String paquete = rs.getString(\"dataInstrumento\");\n String token[]=paquete.split(\";\");\n double aux []=new double[token.length];\n for(int i=0;i<aux.length;i++){\n aux[i]+=Double.parseDouble(token[i]);\n }\n while (rs.next()) {\n paquete = rs.getString(\"dataInstrumento\");\n String token2[]=paquete.split(\";\");\n for(int i=0;i<aux.length;i++){\n aux[i]+=Double.parseDouble(token2[i]);\n }\n }\n for(int i=0;i<aux.length-1;i++){\n line+=aux[i]/div+\";\";// posible error entteros\n }\n line+=aux[aux.length-1]/div;\n } \n rs.close();\n cerrarConexion();\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n return line;\n }", "private static void selectEx() throws SQLException {\n ResultSet rs = stmt.executeQuery(\"SELECT name,score FROM students \\n\" +\n \"WHERE score >50;\");\n\n while (rs.next()) {\n System.out.println(rs.getString(\"name\") + \" \" + rs.getInt(\"score\"));\n }\n rs.close();\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 void select();", "private static void selectRecordsFromDbUserTable() throws SQLException {\n\n\t\tConnection dbConnection = null;\n\t\tStatement statement = null;\n\n\t\tString selectTableSQL = \"SELECT * from spelers\";\n\n\t\ttry {\n\t\t\tdbConnection = getDBConnection();\n\t\t\tstatement = dbConnection.createStatement();\n\n\t\t\tSystem.out.println(selectTableSQL);\n\n\t\t\t// execute select SQL stetement\n\t\t\tResultSet rs = statement.executeQuery(selectTableSQL);\n\n\t\t\twhile (rs.next()) {\n \n String naam = rs.getString(\"naam\");\n\t\t\t\tint punten = rs.getInt(\"punten\");\n \n System.out.println(\"naam : \" + naam);\n\t\t\t\tSystem.out.println(\"punten : \" + punten);\n\t\t\t\t\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\n\t\t\tSystem.out.println(e.getMessage());\n\n\t\t} finally {\n\n\t\t\tif (statement != null) {\n\t\t\t\tstatement.close();\n\t\t\t}\n\n\t\t\tif (dbConnection != null) {\n\t\t\t\tdbConnection.close();\n\t\t\t}\n\n\t\t}\n\n\t}", "public ResultSet select(String pCampos, String pTabla, String pCondicion) {\n ResultSet rs = null; //obtener los datos del select\n Statement s = null; // se utiliza para inicializar la conexión\n String sentencia = \"\";\n try {\n s = this.conn.createStatement();\n sentencia = \" SELECT \" + pCampos + \" FROM \" + pTabla; // se crea el select\n if (!pCondicion.isEmpty()) {\n sentencia += \" WHERE \" + pCondicion;\n }\n rs = s.executeQuery(sentencia); // \n } catch (Exception e) {\n System.out.printf(\"Error: \" + e.toString());\n }\n return rs;\n }", "public static ResultSet selectAll(){\n String sql = \"SELECT Codigo, Nombre, PrecioC, PrecioV, Stock FROM articulo\";\n ResultSet rs = null;\n try{\n Connection conn = connect();\n Statement stmt = conn.createStatement();\n rs = stmt.executeQuery(sql);\n }\n catch(SQLException e) {\n System.out.println(\"Error. No se han podido sacar los productos de la base de datos.\");\n //Descomentar la siguiente linea para mostrar el mensaje de error.\n //System.out.println(e.getMessage());\n }\n return rs;\n }", "Object executeSelectQuery(String sql) { return null;}", "public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }", "@Override\n public List<Beheerder> select() {\n ArrayList<Beheerder> beheerders = new ArrayList<>();\n Connection connection = createConnection();\n try {\n PreparedStatement preparedStatement = connection.prepareStatement(\"SELECT * FROM gebruiker ORDER BY id;\");\n ResultSet resultSet = preparedStatement.executeQuery();\n beheerders = fillListFromResultSet(resultSet, beheerders);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n closeConnection(connection);\n return beheerders;\n }", "private void getSelectStatements()\n\t{\n\t\tString[] sqlIn = new String[] {m_sqlOriginal};\n\t\tString[] sqlOut = null;\n\t\ttry\n\t\t{\n\t\t\tsqlOut = getSubSQL (sqlIn);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tlog.log(Level.SEVERE, m_sqlOriginal, e);\n\t\t\tthrow new IllegalArgumentException(m_sqlOriginal);\n\t\t}\n\t\t//\ta sub-query was found\n\t\twhile (sqlIn.length != sqlOut.length)\n\t\t{\n\t\t\tsqlIn = sqlOut;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tsqlOut = getSubSQL (sqlIn);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tlog.log(Level.SEVERE, m_sqlOriginal, e);\n\t\t\t\tthrow new IllegalArgumentException(sqlOut.length + \": \"+ m_sqlOriginal);\n\t\t\t}\n\t\t}\n\t\tm_sql = sqlOut;\n\t\t/** List & check **\n\t\tfor (int i = 0; i < m_sql.length; i++)\n\t\t{\n\t\t\tif (m_sql[i].indexOf(\"SELECT \",2) != -1)\n\t\t\t\tlog.log(Level.SEVERE, \"#\" + i + \" Has embedded SQL - \" + m_sql[i]);\n\t\t\telse\n\t\t\t\tlog.fine(\"#\" + i + \" - \" + m_sql[i]);\n\t\t}\n\t\t/** **/\n\t}", "public void select() {}", "String limitSubquery();", "public void selectFromTable(){\n //SQL query\n String query = \"SELECT fNavn, eNavn, konto_Navn, konto_Reg, konto_ID, konto_Saldo FROM person JOIN konti ON Person_ID = fk_Person_ID\";\n\n try {\n //connection\n stmt = con.createStatement();\n //execute query\n rs = stmt.executeQuery(query);\n System.out.println(\"\\nFornavn: \\t\\tEfternavn: \\t\\tKonto: \\t\\tReg.nr: \\t\\tKontonr.: \\t\\tSaldo: \\n____________________________________\");\n\n //get data\n while (rs.next()){\n String fNavn = rs.getString(\"fNavn\"); //returns fornavn\n String eNavn = rs.getString(\"eNavn\"); //returns efternavn\n String kontoNavn = rs.getString(\"konto_Navn\"); //returns kontonavn\n int kontoReg = rs.getInt(\"konto_Reg\"); //returns kontoreg\n double kontoID = rs.getDouble(\"konto_ID\"); //returns kontoID\n double kontoSaldo = rs.getDouble(\"konto_Saldo\"); //returns kontoSaldo\n System.out.println(fNavn + \"\\t\\t\" + eNavn + \"\\t\\t\" + kontoNavn + \"\\t\\t\" + kontoReg + \"\\t\\t\" + kontoID + \"\\t\\t\" + kontoSaldo);\n }\n }\n catch (SQLException ex){\n System.out.println(\"\\n--Query did not execute--\");\n ex.printStackTrace();\n }\n\n\n }", "private void llenarListado1() {\r\n\t\tString sql1 = Sentencia1()\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tdet.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 det.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\tString sql2 = Sentencia2()\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\tcargarLista(sql1, sql2);\r\n\t}", "private void appendSelectStatement() {\n builder.append(SELECT).append(getSelectedFields()).append(FROM);\n }", "public String selectByExample(CarExample example) {\n SQL sql = new SQL();\n if (example != null && example.isDistinct()) {\n sql.SELECT_DISTINCT(\"car_id\");\n } else {\n sql.SELECT(\"car_id\");\n }\n sql.SELECT(\"car_brand_id\");\n sql.SELECT(\"car_model\");\n sql.SELECT(\"car_type\");\n sql.SELECT(\"alias\");\n sql.SELECT(\"seat_type\");\n sql.SELECT(\"seat_num\");\n sql.SELECT(\"car_class\");\n sql.SELECT(\"guest_num\");\n sql.SELECT(\"luggage_num\");\n sql.SELECT(\"spell\");\n sql.SELECT(\"en_name\");\n sql.SELECT(\"updated_at\");\n sql.SELECT(\"created_at\");\n sql.FROM(\"`basedata_car`\");\n applyWhere(sql, example, false);\n \n if (example != null && example.getOrderByClause() != null) {\n sql.ORDER_BY(example.getOrderByClause());\n }\n \n String sqlStr = sql.toString();\n if(example.getPage()!=null){\n sqlStr = sqlStr+\" limit \"+example.getPage().getOffset()+\",\"+example.getPage().getLimit()+\"\";\n }\n return sqlStr;\n }", "private void mbushetabelen() {\n try {\n Statement stmt = LidhjaMeDb.hapelidhjen();\n //CallableStatement stmt = conn.prepareCall(\"{call procedura1(?)}\");\n //stmt.setInt(1, 1);\n //ResultSet rs=stmt.executeQuery();\n String sql = \"SELECT kerkesat.kompania AS 'Kompania', llojet_lejes.lloji_lejes AS 'Lloji i Lejes'\"\n + \" ,kerkesat.adresa AS 'Adresa', kerkesat.tel AS 'Tel',kerkesat.data_pranimit AS 'Data e Pranimit'\"\n + \" ,kerkesat.nr_protokollit AS 'Numri i Protokollit', aktivitetet.aktiviteti AS 'Aktiviteti'\"\n + \" ,komunat.komuna AS 'Komuna', kerkesat.taksa AS 'Taksa', kerkesat.statusi_lendes AS 'Statusi i Lendes'\"\n + \" ,kerkesat.data_leshimit AS 'Data e Leshimit'\"\n + \" ,pergjigjjet_komisionit.pergjigjja AS 'Pergjigjja e Komisionit' FROM kerkesat \"\n + \" JOIN llojet_lejes ON kerkesat.idlloji = llojet_lejes.idlloji \"\n + \" JOIN aktivitetet ON kerkesat.idaktiviteti = aktivitetet.idaktiviteti \"\n + \" JOIN pergjigjjet_komisionit ON kerkesat.idpergjigjja = pergjigjjet_komisionit.idpergjigjja \"\n + \" JOIN komunat ON kerkesat.idkomuna=komunat.idkomuna \"\n + \"WHERE kompania LIKE '%\" + txtkompania.getText() + \"%' \"\n + \"AND aktiviteti like '%\" + (String) kmbaktiviteti.getSelectedItem() + \"%' \"\n + \"AND komuna like '%\" + (String) kmbkomunat.getSelectedItem() + \"%' \"\n + \"AND pergjigjja like '%\" + (String) kmbpergjigjja.getSelectedItem() + \"%' \"\n + \"AND data_pranimit >= '\" + new java.sql.Date(jdataprej.getDate().getTime()) + \"' AND data_pranimit <= '\" + new java.sql.Date(jdataderi.getDate().getTime()) + \"' \";\n System.out.println(sql);\n ResultSet rs = stmt.executeQuery(sql);\n tblkerkesat.setModel(DBUtils.resultSetToTableModel(rs));\n//boolean Zgjedhur=false;jTable1.addColumn(Zgjedhur);\n LidhjaMeDb.mbyllelidhjen();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "SelectQuery createSelectQuery();", "public List<NhanVien> select() {\n String sql = \"SELECT * FROM NhanVien\";\n return select(sql);\n }", "public void select();", "@Override\r\n\tpublic String getSelect() {\n\t\treturn SQL;\r\n\t}", "protected String getSelectSQL() {\n\t\treturn queryData.getString(\"SelectSQL\");\n\t}", "public ResultSet selecionar(String tabela);", "final public Exp SelectQuery(Metadata la) throws ParseException {\n Exp stack;\n jj_consume_token(SELECT);\n Debug();\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case NOSORT:\n jj_consume_token(NOSORT);\n astq.setSorted(false);\n break;\n default:\n jj_la1[64] = jj_gen;\n ;\n }\n OneMoreListMerge();\n GroupCountSortDisplayVar();\n Max();\n label_14:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case FROM:\n ;\n break;\n default:\n jj_la1[65] = jj_gen;\n break label_14;\n }\n DatasetClause();\n }\n stack = WhereClause();\n SolutionModifier();\n astq.setResultForm(ASTQuery.QT_SELECT);\n astq.setAnnotation(la);\n {if (true) return stack;}\n throw new Error(\"Missing return statement in function\");\n }", "public static ResultSet fechaVigencia() {\r\n Connection con = MantenimientoUsuarios.con;\r\n ResultSet rs = null;\r\n try {\r\n\r\n String fechaVigencia = \"SELECT NOW() as fecha_emision, DATE_ADD(NOW(), Interval valor DAY ) as fecha_vigencia, valor FROM parametros where codigoParametro = 2;\";\r\n\r\n Statement st;\r\n st = con.createStatement();\r\n rs = st.executeQuery(fechaVigencia);\r\n return rs;\r\n } catch (SQLException ex) {\r\n Logger.getLogger(MantenimientoCotizacion.class.getName()).log(Level.SEVERE, null, ex);\r\n return rs;\r\n }\r\n\r\n }", "public ResultSet selectData(String sql) throws java.sql.SQLException {\n\t\treturn selectData(sql, -1);\n\t}", "@Override\n\tpublic ResultSet select() {\n\t\treturn null;\n\t}", "private void selectOperator() {\n String query = \"\";\n System.out.print(\"Issue the Select Query: \");\n query = sc.nextLine();\n query.trim();\n if (query.substring(0, 6).compareToIgnoreCase(\"select\") == 0) {\n sqlMngr.selectOp(query);\n } else {\n System.err.println(\"No select statement provided!\");\n }\n }", "List selectByExample(CTipoComprobanteExample example) throws SQLException;", "public String consultaParametrosEstado(String estado){\n String select =\"SELECT parsadm_parsadm, parsadm_nombre, parsadm_estado, parsadm_valor FROM ad_tparsadm where parsadm_estado = '\"+estado+\"'\";\n \n return select;\n }", "public ResultSet querySelect(String query) throws SQLException {\n\t \t\t// Création de l'objet gérant les requêtes\n\t \t\tstatement = cnx.createStatement();\n\t \t\t\n\t \t\t// Exécution d'une requête de lecture\n\t \t\tResultSet result = statement.executeQuery(query);\n\t \t\t\n\t \t\treturn result;\n\t \t}", "public void select(String komenda) throws Exception {\n komenda = komenda.substring(7);\n char[] zbiorSymboli = komenda.toCharArray();\n\n boolean wystapilaNazwaTablicy = false;\n boolean wystapilFROM = false;\n boolean wystapilWHERE = false;\n boolean wystapilaZmiana = false;\n boolean wystapilyKolumny = false;\n\n String temp = \"\";\n String kolumny = \"\";\n String nazwaTablicy = \"\";\n String warunek = \"\";\n\n // SELECT SYNTAX CHECKER\n for (int i = 0; i < zbiorSymboli.length; i++) {\n // ; - wyjscie\n if (i == zbiorSymboli.length - 1 || zbiorSymboli[i] == ';') {\n if (zbiorSymboli[i] != ';')\n throw new Exception(\"Oczekiwano ';'\");\n else {\n // to średnik ; i jest sens sprawdzac\n if (wystapilFROM == true & wystapilWHERE == true) {\n if (temp.matches(\".*[a-z].*\")) {\n warunek = temp; // bez srednika\n wystapilaZmiana = true;\n break;\n } else\n throw new Exception(\"Wprowadz warunek\");\n }\n if (wystapilyKolumny == true) {\n if (temp.matches(\".*[a-z].*\")) {\n nazwaTablicy = temp; // bez srednika\n wystapilaZmiana = true;\n break;\n } else\n throw new Exception(\"Wprowadz nazwe tablicy\");\n }\n }\n }\n\n if (temp.contains(\" FROM\")) {\n if (wystapilFROM == true)\n throw new Exception(\"Błąd składni, dwukrotne wystąpienie FROM!\");\n wystapilFROM = true;\n kolumny = temp.substring(0, temp.length() - 5);\n if (kolumny.matches(\".*[a-z].*\") || kolumny.contains(\"*\")) {\n wystapilyKolumny = true;\n temp = \"\";\n continue;\n } else\n throw new Exception(\"Kolumny nie zawieraja liter\");\n }\n\n if (temp.contains(\" WHERE\")) {\n if (wystapilWHERE == true)\n throw new Exception(\"Błąd składni, dwukrotne wystąpienie WHERE!\");\n\n wystapilWHERE = true;\n nazwaTablicy = temp.substring(0, temp.length() - 6);\n if (nazwaTablicy.matches(\".*[a-z].*\")) {\n wystapilaNazwaTablicy = true;\n temp = \"\";\n continue;\n } else\n throw new Exception(\"Nazwa tablicy nie zawiera liter\");\n }\n\n temp += zbiorSymboli[i];\n }\n\n if (wystapilaZmiana == false)\n throw new Exception(\"Błąd składni!\");\n\n if (czyIstniejeTabela(nazwaTablicy) == false)\n throw new Exception(\"Nie ma takiej tablicy\");\n\n temp = \"\";\n\n String[] zbiorKolumn = kolumny.replaceAll(\" \", \"\").split(\",\");\n String[] warunekKolumnaWartosc = warunek.replaceAll(\" \", \"\").split(\"=\");\n\n // SELECT co WHERE warunek\n if (wystapilWHERE == true) {\n if (warunek.contains(\"=\") == false)\n throw new Exception(\"Warunek musi skladac się z kolumna = tresc\");\n Tabela tabela = new Tabela();\n tabela = zbiorTabel.get(nazwaTablicy);\n tabela.wypiszKolumnyZTablicyGdzieKolumnaSpelniaWarunek(zbiorKolumn, warunekKolumnaWartosc);\n\n } else {\n // wypisz wszystkie kolumny / wypisz kolumne\n Tabela tabela = new Tabela();\n tabela = zbiorTabel.get(nazwaTablicy);\n\n for (String kolumna : zbiorKolumn) {\n if (kolumna.equals(\"*\")) {\n tabela.wypiszWszystkieKolumnyWrazZZawaroscia();\n break;\n } else\n tabela.wypiszZawartoscKolumny(kolumna);\n }\n }\n }", "private void select(String tableName, String colName, String value,\n boolean usePar) {\n String query;\n \n if (usePar == true){\n // Parenthesis will surrond the value making it a string\n query = \"SELECT * FROM \" + tableName + \" WHERE \" + colName + \" = \\'\" + value + \"\\'\";\n }\n else{\n // Parenthesis will not surround the value\n query = \"SELECT * FROM \" + tableName + \" WHERE \" + colName + \" = \" + value;\n }\n \n this.executeSelect(query);\n }", "@Override\n public Collection<KlantBedrijf> select() {\n return null;\n }", "public void select ();", "@Test\n public void testVisit_PlainSelect() throws JSQLParserException {\n String sql = \"select a,b,c from test\";\n Select select = (Select) parserManager.parse(new StringReader(sql));\n final AddAliasesVisitor instance = new AddAliasesVisitor();\n select.accept(instance);\n\n assertEquals(\"SELECT a AS A1, b AS A2, c AS A3 FROM test\", select.toString());\n }", "public List<Dishes> selectTian(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 }", "public List<ItemVenda> getItemVenda(Lancamento lancamento) {\r\n\r\n List<ItemVenda> resultado = new ArrayList<ItemVenda>();\r\n Connection con = pool.getConnection();\r\n PreparedStatement ps = null;\r\n ResultSet rs = null;\r\n String sqlSelect = \"SELECT \\n\" +\r\n \" *\\n\" +\r\n \"FROM\\n\" +\r\n \" (SELECT \\n\" +\r\n \" A.CODIGO_LANCAMENTO,\\n\" +\r\n \" D.CODIGO_PRODUTO AS CODIGO_PRODUTO,\\n\" +\r\n \" D.NOME_PRODUTO AS DESCRICAO,\\n\" +\r\n \" C.QUANTIDADE,\\n\" +\r\n \" C.PRECO_TOTAL,\\n\" +\r\n \" C.PRECO_UNITARIO,\\n\" +\r\n \" C.TYPE_PRODUCT\\n\" +\r\n \" FROM\\n\" +\r\n \" LANCAMENTO A, VENDA B, ITEM_VENDA C, PRODUTO D\\n\" +\r\n \" WHERE\\n\" +\r\n \" A.VENDA_CODIGO_VENDA = B.CODIGO_VENDA\\n\" +\r\n \" AND B.CODIGO_VENDA = C.VENDA_CODIGO_VENDA\\n\" +\r\n \" AND C.PRODUTO_CODIGO_PRODUTO = D.CODIGO_PRODUTO UNION ALL SELECT \\n\" +\r\n \" A.CODIGO_LANCAMENTO,\\n\" +\r\n \" D.CODIGO_PACOTE_PROMOCIONAL AS CODIGO_PRODUTO,\\n\" +\r\n \" D.DESCRICAO,\\n\" +\r\n \" C.QUANTIDADE,\\n\" +\r\n \" C.PRECO_TOTAL,\\n\" +\r\n \" C.PRECO_UNITARIO,\\n\" +\r\n \" C.TYPE_PRODUCT\\n\" +\r\n \" FROM\\n\" +\r\n \" LANCAMENTO A, VENDA B, ITEM_VENDA C, PACOTE_PROMOCIONAL D\\n\" +\r\n \" WHERE\\n\" +\r\n \" A.VENDA_CODIGO_VENDA = B.CODIGO_VENDA\\n\" +\r\n \" AND B.CODIGO_VENDA = C.VENDA_CODIGO_VENDA\\n\" +\r\n \" AND C.PACOTE_PROMOCIONAL_CODIGO_PACOTE_PROMOCIONAL = D.CODIGO_PACOTE_PROMOCIONAL) AS CONSULTA\\n\" +\r\n \" WHERE CODIGO_LANCAMENTO = ?\";\r\n\r\n try {\r\n ps = con.prepareStatement(sqlSelect);\r\n ps.setInt(1, lancamento.getCodigo_lancamento());\r\n\r\n rs = ps.executeQuery();\r\n\r\n resultado = getListaItensVenda(rs);\r\n\r\n ps.close();\r\n } catch (ParseException ex) {\r\n return null;\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(LocacaoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n pool.liberarConnection(con);\r\n }\r\n return resultado;\r\n }", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "public List select(String sql, Object[] obj) {\n\t\treturn null;\n\t}", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "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 }", "Kaiwa selectByPrimaryKey(String maht);", "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}", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "private String setQueryExpecLaboralCandidato() {\n\t\tStringBuffer sqlString = new StringBuffer();\n\t\tsqlString.append(\"SELECT el.id_expectativa_laboral, \");\n\t\tsqlString.append(\"el.id_sector_deseado, \");\n\t\tsqlString.append(\"F_DESC_CATALOGO(\" + CATALOGO_OPCION_SUBSECTOR + \n\t\t\t\t\", el.id_sector_deseado), \");\n\t\tsqlString.append(\"el.puesto_deseado, el.id_area_laboral_deseada, \");\n\t\tsqlString.append(\"F_DESC_CATALOGO(\" + CATALOGO_OPCION_AREA_LABORAL + \n\t\t\t\t\", el.id_area_laboral_deseada), \");\n\t\tsqlString.append(\"el.id_ocupacion_deseada, \");\n\t\tsqlString.append(\"F_DESC_CATALOGO(\" + CATALOGO_OPCION_OCUPACION + \n\t\t\t\t\", el.id_ocupacion_deseada), \");\n\t\tsqlString.append(\"el.salario_pretendido, \");\n\t\tsqlString.append(\"el.id_tipo_empleo_deseado, \");\n\t\tsqlString.append(\"F_DESC_CATALOGO(\" + CATALOGO_OPCION_TIPO_EMPLEO + \n\t\t\t\t\", el.id_tipo_empleo_deseado), \");\n\t\tsqlString.append(\"el.id_tipo_contrato, \");\n\t\tsqlString.append(\"F_DESC_CATALOGO(\" + CATALOGO_OPCION_TIPO_CONTRATO + \n\t\t\t\t\", el.id_tipo_contrato), el.principal, el.id_experiencia \");\n\t\tsqlString.append(\"FROM EXPECTATIVA_LABORAL el \");\n\t\tsqlString.append(\"WHERE el.id_candidato = ? \");\n\t\tsqlString.append(\"ORDER BY 14,1\");\n\t\tlogger.debug(sqlString.toString());\n\t\treturn sqlString.toString();\n\t}", "private void executeSelect(String query){\n try {\n statement = connection.createStatement();\n rs = statement.executeQuery(query);\n } catch (SQLException e) {\n throw new RuntimeException(e);\n } \n }", "void defSelect(Variable var){\r\n \t//if (isSelectAll()){\r\n \t\taddSelect(var);\r\n \t//}\r\n }", "public void prepareSelectOneRow() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareSelectOneRow();\n }", "static ResultSet dataOphalen(String querry) {\n //declaratie anders kan er niks worden gereturnt\n ResultSet rs = null;\n try {\n Statement stmt = connectieMaken().createStatement(); //\n rs = stmt.executeQuery(querry);\n } catch (SQLException se) {\n se.printStackTrace();\n }\n return rs;\n }", "String getSelect();", "String getSelect();", "@Override\n SqlSelect wrapSelect(SqlNode node) {\n throw new UnsupportedOperationException();\n }", "Prueba selectByPrimaryKey(Integer id);", "@Override\n public KlantBedrijf select(int id) {\n return null;\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 static ResultSet mostrar(int cod) throws SQLException {\n int nFilas = 0;\r\n String lineaSQL = \"Select * from pago WHERE codigo LIKE '%\"+ cod +\"%';\" ;\r\n ResultSet resultado = Conexion.getInstance().execute_Select(lineaSQL);\r\n \r\n return resultado;\r\n \r\n }", "@Override\n\tpublic void select() {\n\t}", "private String getQuerySelecaoClientesRebarba()\n\t{\n\t\tString result = \n\t\t\t\"SELECT \"\n\t\t\t+\t\" P_ASSINANTE.IDT_MSISDN, \" \n\t\t\t+\t\" P_ASSINANTE.IDT_PROMOCAO, \"\n\t\t\t+\t\" P_ASSINANTE.DAT_EXECUCAO, \" \n\t\t\t+\t\" P_ASSINANTE.DAT_ENTRADA_PROMOCAO, \"\n\t\t\t+\t\" P_ASSINANTE.IND_SUSPENSO, \"\n\t\t\t+\t\" P_ASSINANTE.IND_ISENTO_LIMITE, \"\n\t\t\t+\t\" ASSINANTE.IDT_STATUS, \" \n\t\t\t+\t\" ASSINANTE.VLR_SALDO_PRINCIPAL, \" \n\t\t\t+\t\" ASSINANTE.DAT_EXPIRACAO_PRINCIPAL, \" \n\t\t\t+\t\" PROMOCAO.IND_ZERAR_SALDO_BONUS, \" \n\t\t\t+\t\" PROMOCAO.IND_ZERAR_SALDO_SMS, \" \n\t\t\t+\t\" PROMOCAO.IND_ZERAR_SALDO_GPRS, \" \n\t\t\t//A divisao por 60 deve-se a alteracao da carga de CDRs para preencher os valores da \n\t\t\t//TBL_GER_TOTALIZACAO_PULA_PULA em segundos e nao minutos, de forma a diminuir a perda de precisao.\n\t\t\t+\t\" NVL(MINUTOS.MIN_CREDITO, 0)/60 AS MIN_CREDITO, \" \n\t\t\t+\t\" NVL(MINUTOS.MIN_FF, 0)/60 AS MIN_FF \" \n\t\t\t+\t\"FROM \"\n\t\t\t+\t\" TBL_APR_ASSINANTE ASSINANTE, \"\n\t\t\t+\t\" TBL_GER_PROMOCAO PROMOCAO, \" \n\t\t\t+\t\" TBL_GER_PROMOCAO_ASSINANTE P_ASSINANTE, \" \n\t\t\t+\t\" TBL_GER_TOTALIZACAO_PULA_PULA MINUTOS \"\n\t\t\t+\t\"WHERE \"\n\t\t\t+\t\" ASSINANTE.IDT_MSISDN = P_ASSINANTE.IDT_MSISDN AND \"\n\t\t\t+\t\" P_ASSINANTE.IDT_PROMOCAO = PROMOCAO.IDT_PROMOCAO AND \"\n\t\t\t+\t\" P_ASSINANTE.IDT_MSISDN = MINUTOS.IDT_MSISDN (+) AND \"\n\t\t\t+\t\" P_ASSINANTE.IDT_PROMOCAO = ? AND \"\n\t\t\t//Descartar assinantes que entraram na promocao no mes da execucao\n\t\t\t+\t\" MINUTOS.DAT_MES (+) = ? AND \"\n\t\t\t+\t\" P_ASSINANTE.DAT_ENTRADA_PROMOCAO < ? AND \"\n\t\t\t+\t\" PROMOCAO.IDT_CATEGORIA = \" \n\t\t\t+\t\tString.valueOf(ID_CATEGORIA_PULA_PULA) + \" AND \"\n\t\t\t//PONTO DE ATENCAO: Verificar pela fila de recargas e nao pela tabela de recargas devido aos\n\t\t\t//agendamentos (Se a execucao na fila de recargas ainda nao tiver sido realizada, o registro na\n\t\t\t//fila sera duplicado)\n\t\t\t+\t\" NOT EXISTS \"\n\t\t\t+\t\" ( \"\n\t\t\t+\t\" SELECT 1 \" \n\t\t\t+\t\" FROM \"\n\t\t\t+\t\" TBL_REC_FILA_RECARGAS RECARGAS \" \n\t\t\t+\t\" WHERE \" \n\t\t\t+\t\" RECARGAS.IDT_MSISDN = P_ASSINANTE.IDT_MSISDN AND \"\n\t\t\t+\t\" RECARGAS.TIP_TRANSACAO = ? AND \"\n\t\t\t+\t\" RECARGAS.IDT_STATUS_PROCESSAMENTO IN \" \n\t\t\t+\t\" (\" \n\t\t\t+\t\t\t\tString.valueOf(REC_STATUS_NAO_EXECUTADO) + \", \" \n\t\t\t+\t\t\t\tString.valueOf(REC_STATUS_OK) + \", \"\n\t\t\t+\t\t\t\tString.valueOf(REC_STATUS_TESTE_PULA_PULA) \n\t\t\t+\t\" ) AND \"\n\t\t\t+\t\" RECARGAS.DAT_EXECUCAO >= ? AND \"\n\t\t\t+\t\" RECARGAS.DAT_EXECUCAO < ? \"\n\t\t\t+\t\" ) AND \"\n\t\t\t//Descartar assinantes que nao possuem ligacoes\n\t\t\t+\t\" NOT EXISTS \"\n\t\t\t+\t\" ( \"\n\t\t\t+\t\" SELECT 1 \" \n\t\t\t+\t\" FROM \"\n\t\t\t+\t\" TBL_GER_HISTORICO_PULA_PULA HISTORICO \" \n\t\t\t+\t\" WHERE \" \n\t\t\t+\t\" HISTORICO.IDT_MSISDN = P_ASSINANTE.IDT_MSISDN AND \"\n\t\t\t+\t\" HISTORICO.DAT_EXECUCAO BETWEEN ? AND ? AND \" \n\t\t\t+\t\" HISTORICO.IDT_CODIGO_RETORNO = \" + String.valueOf(RET_PULA_PULA_LIGACOES_NOK) \n\t\t\t+\t\" ) \";\n\n\t\treturn result;\n\t}", "protected String buildDataQuery() {\n StringBuilder sql = new StringBuilder(\"select\");\n String delim = \" \";\n for (String vname : getColumnNames()) {\n sql.append(delim).append(vname);\n delim = \", \";\n }\n \n Element ncElement = getNetcdfElement();\n \n String table = ncElement.getAttributeValue(\"dbTable\");\n if (table == null) {\n String msg = \"No database table defined. Must set 'dbTable' attribute.\";\n _logger.error(msg);\n throw new TSSException(msg);\n }\n sql.append(\" from \" + table);\n \n String predicate = ncElement.getAttributeValue(\"predicate\");\n if (predicate != null) sql.append(\" where \" + predicate);\n \n //Order by time.\n String tname = getTimeVarName();\n sql.append(\" order by \"+tname+\" ASC\");\n \n return sql.toString();\n }", "private void xuLyLayMaDichVu() {\n int result = tbDichVu.getSelectedRow();\n String maDV = (String) tbDichVu.getValueAt(result, 0);\n hienThiDichVuTheoMa(maDV);\n }", "private String getQuerySelecaoClientes() \n\t{\n\t\tString result = \n\t\t\t\"SELECT \"\n\t\t\t+\t\" P_ASSINANTE.IDT_MSISDN, \" \n\t\t\t+\t\" P_ASSINANTE.IDT_PROMOCAO, \"\n\t\t\t+\t\" P_ASSINANTE.DAT_EXECUCAO, \" \n\t\t\t+\t\" P_ASSINANTE.DAT_ENTRADA_PROMOCAO, \"\n\t\t\t+\t\" P_ASSINANTE.IND_SUSPENSO, \"\n\t\t\t+\t\" P_ASSINANTE.IND_ISENTO_LIMITE, \"\n\t\t\t+\t\" ASSINANTE.IDT_STATUS, \" \n\t\t\t+\t\" ASSINANTE.VLR_SALDO_PRINCIPAL, \" \n\t\t\t+\t\" ASSINANTE.DAT_EXPIRACAO_PRINCIPAL, \" \n\t\t\t+\t\" PROMOCAO.IND_ZERAR_SALDO_BONUS, \" \n\t\t\t+\t\" PROMOCAO.IND_ZERAR_SALDO_SMS, \" \n\t\t\t+\t\" PROMOCAO.IND_ZERAR_SALDO_GPRS, \" \n\t\t\t//A divisao por 60 deve-se a alteracao da carga de CDRs para preencher os valores da \n\t\t\t//TBL_GER_TOTALIZACAO_PULA_PULA em segundos e nao minutos, de forma a diminuir a perda de precisao.\n\t\t\t+\t\" NVL(MINUTOS.MIN_CREDITO, 0)/60 AS MIN_CREDITO, \" \n\t\t\t+\t\" NVL(MINUTOS.MIN_FF, 0)/60 AS MIN_FF \" \n\t\t\t+\t\"FROM \"\n\t\t\t+\t\" TBL_APR_ASSINANTE ASSINANTE, \"\n\t\t\t+\t\" TBL_GER_PROMOCAO_ASSINANTE P_ASSINANTE, \" \n\t\t\t+\t\" TBL_GER_PROMOCAO PROMOCAO, \"\n\t\t\t+\t\" TBL_GER_TOTALIZACAO_PULA_PULA MINUTOS \"\n\t\t\t+\t\"WHERE \"\n\t\t\t+\t\" ASSINANTE.IDT_MSISDN = P_ASSINANTE.IDT_MSISDN AND \"\n\t\t\t+\t\" P_ASSINANTE.IDT_PROMOCAO = PROMOCAO.IDT_PROMOCAO AND \"\n\t\t\t+\t\" P_ASSINANTE.IDT_MSISDN = MINUTOS.IDT_MSISDN (+) AND \"\n\t\t\t+\t\" P_ASSINANTE.DAT_EXECUCAO <= ? AND \"\n\t\t\t+\t\" PROMOCAO.IDT_CATEGORIA = \" \n\t\t\t+\t\tString.valueOf(ID_CATEGORIA_PULA_PULA) + \" AND \"\n\t\t\t+\t\" MINUTOS.DAT_MES (+) = ? AND \"\n\t\t\t//PONTO DE ATENCAO: Verificar pela fila de recargas e nao pela tabela de recargas devido aos\n\t\t\t//agendamentos (Se a execucao na fila de recargas ainda nao tiver sido realizada, o registro na\n\t\t\t//fila sera duplicado)\n\t\t\t+\t\" NOT EXISTS \"\n\t\t\t+\t\" ( \"\n\t\t\t+\t\" SELECT 1 \" \n\t\t\t+\t\" FROM \"\n\t\t\t+\t\" TBL_REC_FILA_RECARGAS RECARGAS \" \n\t\t\t+\t\" WHERE \" \n\t\t\t+\t\" RECARGAS.IDT_MSISDN = P_ASSINANTE.IDT_MSISDN AND \"\n\t\t\t+\t\" RECARGAS.TIP_TRANSACAO = ? AND \"\n\t\t\t+\t\" RECARGAS.IDT_STATUS_PROCESSAMENTO IN \" \n\t\t\t+\t\" (\" \n\t\t\t+ String.valueOf(REC_STATUS_NAO_EXECUTADO) + \", \" \n\t\t\t+ String.valueOf(REC_STATUS_OK) + \", \"\n\t\t\t+ String.valueOf(REC_STATUS_TESTE_PULA_PULA) \n\t\t\t+\t\" ) AND \"\n\t\t\t+\t\" RECARGAS.DAT_EXECUCAO >= ? AND \"\n\t\t\t+\t\" RECARGAS.DAT_EXECUCAO < ? \"\n\t\t\t+\t\" ) AND \"\n\t\t\t//Descartar assinantes que ja foram processados na data de execucao atual ou que nao possuem\n\t\t\t//ligacoes\n\t\t\t+\t\" NOT EXISTS \"\n\t\t\t+\t\" ( \"\n\t\t\t+\t\" SELECT 1 \" \n\t\t\t+\t\" FROM \"\n\t\t\t+\t\" TBL_GER_HISTORICO_PULA_PULA HISTORICO \" \n\t\t\t+\t\" WHERE \" \n\t\t\t+\t\" HISTORICO.IDT_MSISDN = P_ASSINANTE.IDT_MSISDN AND \"\n\t\t\t+\t\" ( \" \n\t\t\t+\t\" HISTORICO.DAT_EXECUCAO = ? OR \"\n\t\t\t+\t\" ( \"\n\t\t\t+\t\" HISTORICO.DAT_EXECUCAO BETWEEN ? AND ? AND \" \n\t\t\t+\t\" HISTORICO.IDT_CODIGO_RETORNO = \" + String.valueOf(RET_PULA_PULA_LIGACOES_NOK) \n\t\t\t+\t\" ) \"\n\t\t\t+\t\" ) \"\n\t\t\t+\t\" ) \";\n\t\t\n\t\treturn result;\n\t}", "public List<Dishes> select(Dishes book){\n StringBuilder sql=new StringBuilder(\"select * from REAPER.\\\"Dish\\\" where 1=1 \");\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 /*list.add(book.getBookname());\n list.add(book.getPrice());\n list.add(book.getAuthor());\n list.add(book.getPic());\n list.add(book.getPublish());*/\n }\n return dao.select(sql.toString(), list.toArray());\n }", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);", "@Override\n\tpublic ArrayList select(String... args) throws SQLException {\n\t\treturn null;\n\t}", "private void selectAll() {\n //To change body of generated methods, choose Tools | Templates.\n \n tabelpulsa.setModel(model);\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n \n \n try {\n Connection c=koneksidb.getkoneksi();\n Statement s=c.createStatement();\n ResultSet r=s.executeQuery(\"select* from pulsa\");\n while(r.next()){\n Object[] pulsa = new Object[5]; \n pulsa[0]=r.getString(\"operator\");\n pulsa[1]=r.getString(\"id_pulsa\");\n pulsa[2]=r.getString(\"harga_default\");\n pulsa[3]=r.getString(\"harga_jual\");\n pulsa[4]=r.getString(\"harga_member\");\n model.addRow(pulsa);\n }\n }catch (SQLException e){\n System.out.println(\"terjadi error :\" +e);\n }\n }", "public List<ReporteComprasVentasRetenciones> getReporteCompras(int mes, int anio, int idOrganizacion)\r\n/* 167: */ {\r\n/* 168:227 */ StringBuffer sql = new StringBuffer();\r\n/* 169: */ \r\n/* 170:229 */ sql.append(\" SELECT new ReporteComprasVentasRetenciones(tc.codigo, tc.nombre, COUNT(tc.codigo), \");\r\n/* 171:230 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleTarifaCero) ELSE SUM(fps.baseImponibleTarifaCero) END), \");\r\n/* 172:231 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleDiferenteCero) ELSE SUM(fps.baseImponibleDiferenteCero) END), \");\r\n/* 173:232 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleNoObjetoIva) ELSE SUM(fps.baseImponibleNoObjetoIva) END), \");\r\n/* 174:233 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.montoIva) ELSE SUM(fps.montoIva) END), 'Compras',ct.codigo,ct.nombre) \");\r\n/* 175:234 */ sql.append(\" FROM FacturaProveedorSRI fps \");\r\n/* 176:235 */ sql.append(\" LEFT OUTER JOIN fps.tipoComprobanteSRI tc \");\r\n/* 177:236 */ sql.append(\" LEFT OUTER JOIN fps.creditoTributarioSRI ct\");\r\n/* 178:237 */ sql.append(\" WHERE MONTH(fps.fechaRegistro) =:mes \");\r\n/* 179:238 */ sql.append(\" AND YEAR(fps.fechaRegistro) =:anio \");\r\n/* 180:239 */ sql.append(\" AND fps.estado!=:estadoAnulado \");\r\n/* 181:240 */ sql.append(\" AND fps.indicadorSaldoInicial!=true \");\r\n/* 182:241 */ sql.append(\" AND fps.idOrganizacion = :idOrganizacion \");\r\n/* 183:242 */ sql.append(\" GROUP BY tc.codigo, tc.nombre,ct.codigo,ct.nombre\");\r\n/* 184:243 */ sql.append(\" ORDER BY tc.codigo, tc.nombre \");\r\n/* 185: */ \r\n/* 186:245 */ Query query = this.em.createQuery(sql.toString());\r\n/* 187:246 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 188:247 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 189:248 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 190:249 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 191: */ \r\n/* 192:251 */ return query.getResultList();\r\n/* 193: */ }", "public List<ReporteRetencionesResumido> getRetencionSRIResumido(int mes, int anio, int idOrganizacion)\r\n/* 27: */ {\r\n/* 28: 58 */ String sql = \"SELECT new ReporteRetencionesResumido(f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero),\\tf.identificacionProveedor,c.descripcion,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) +COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) else COALESCE(dfp.baseImponibleRetencion, 0) end,dfp.porcentajeRetencion,dfp.valorRetencion,\\tc.codigo,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA then 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD then 'ISD' else '' end,f.numeroRetencion) FROM DetalleFacturaProveedorSRI dfp INNER JOIN dfp.facturaProveedorSRI f INNER JOIN dfp.conceptoRetencionSRI c WHERE MONTH(f.fechaRegistro) =:mes\\tAND YEAR(f.fechaRegistro) =:anio AND f.estado!=:estadoAnulado AND f.indicadorSaldoInicial!=true AND f.idOrganizacion = :idOrganizacion\\tGROUP BY c.codigo,f.numero,f.puntoEmision,\\tf.establecimiento, f.identificacionProveedor,\\tc.descripcion,dfp.baseImponibleRetencion,dfp.porcentajeRetencion,dfp.valorRetencion,f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision,f.numeroRetencion, c.tipoConceptoRetencion ORDER BY c.tipoConceptoRetencion, c.codigo \";\r\n/* 29: */ \r\n/* 30: */ \r\n/* 31: */ \r\n/* 32: */ \r\n/* 33: */ \r\n/* 34: */ \r\n/* 35: */ \r\n/* 36: */ \r\n/* 37: */ \r\n/* 38: */ \r\n/* 39: */ \r\n/* 40: */ \r\n/* 41: */ \r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 75 */ Query query = this.em.createQuery(sql);\r\n/* 46: 76 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 47: 77 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 48: 78 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 49: 79 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 50: 80 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 51: 81 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 52: 82 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 53: 83 */ List<ReporteRetencionesResumido> lista = query.getResultList();\r\n/* 54: */ \r\n/* 55: 85 */ return lista;\r\n/* 56: */ }", "public static ru.terralink.mvideo.sap.Orders findByPrimaryKey(java.lang.String IV_FO_TOR_ID\n ,java.lang.String IV_FU_TOR_ID)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByPrimaryKey\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \"SELECT x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x\"\n + \".\\\"_rf\\\",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bl\\\" = ? AND x.\\\"bm\\\" = ?)\";\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FO_TOR_ID,\n IV_FU_TOR_ID,\n };\n Object res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, ru.terralink.mvideo.sap.Orders.class);\n return (ru.terralink.mvideo.sap.Orders)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }", "public static String todosLosEmpleados_baja(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=0;\";\n return query;\n }", "@Override\r\n public ProductosPuntoVenta[] findByDynamicSelect(String sql,\r\n Object[] sqlParams) throws ProductosPuntoVentaDaoException {\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n try {\r\n // Validamos la conexion\r\n this.validateConnection();\r\n System.out.println(\"Executing \" + sql);\r\n // prepare statement\r\n stmt = userConn.prepareStatement(sql);\r\n stmt.setMaxRows(maxRows);\r\n // se setean los parametros de la consulta\r\n for (int i = 0; sqlParams != null && i < sqlParams.length; i++) {\r\n stmt.setObject(i + 1, sqlParams[i]);\r\n }\r\n System.out.println(sql);\r\n rs = stmt.executeQuery();\r\n // recuperamos los resultados\r\n return fetchMultiResults(rs);\r\n }\r\n catch (SQLException e) {\r\n e.printStackTrace();\r\n throw new ProductosPuntoVentaDaoException(\"Exception: \"\r\n + e.getMessage(), e);\r\n }\r\n finally {\r\n ResourceManager.close(rs);\r\n ResourceManager.close(stmt);\r\n if (userConn != null) {\r\n ResourceManager.close(userConn);\r\n }\r\n }\r\n }", "public List<ReporteComprasVentasRetenciones> getReporteRetencionClientes(int mes, int anio, int idOrganizacion)\r\n/* 231: */ {\r\n/* 232:307 */ StringBuffer sql = new StringBuffer();\r\n/* 233:308 */ sql.append(\"SELECT new ReporteComprasVentasRetenciones(fp.codigo, fp.nombre, COUNT(fp.codigo),\");\r\n/* 234:309 */ sql.append(\" (CASE WHEN fp.indicadorRetencionIva = true OR fp.indicadorRetencionFuente = true THEN SUM(dcfc.valor) END),\");\r\n/* 235:310 */ sql.append(\" 'Ventas', '' )\");\r\n/* 236:311 */ sql.append(\" FROM DetalleCobroFormaCobro dcfc\");\r\n/* 237:312 */ sql.append(\" JOIN dcfc.detalleFormaCobro dfc\");\r\n/* 238:313 */ sql.append(\" LEFT JOIN dfc.cobro c\");\r\n/* 239:314 */ sql.append(\" LEFT OUTER JOIN dfc.formaPago fp\");\r\n/* 240:315 */ sql.append(\" LEFT OUTER JOIN dcfc.detalleCobro dc\");\r\n/* 241:316 */ sql.append(\" LEFT OUTER JOIN dc.cuentaPorCobrar cpc\");\r\n/* 242:317 */ sql.append(\" LEFT OUTER JOIN cpc.facturaCliente fc\");\r\n/* 243:318 */ sql.append(\" WHERE MONTH(c.fecha) =:mes\");\r\n/* 244:319 */ sql.append(\" AND YEAR(c.fecha) =:anio\");\r\n/* 245:320 */ sql.append(\" AND fc.estado!=:estadoAnulado\");\r\n/* 246:321 */ sql.append(\" AND c.estado!=:estadoAnulado\");\r\n/* 247:322 */ sql.append(\" AND (fp.indicadorRetencionIva=true OR fp.indicadorRetencionFuente=true)\");\r\n/* 248:323 */ sql.append(\" AND fc.idOrganizacion = :idOrganizacion\");\r\n/* 249:324 */ sql.append(\" GROUP BY fp.codigo, fp.nombre, fp.indicadorRetencionIva, fp.indicadorRetencionFuente\");\r\n/* 250:325 */ sql.append(\" ORDER BY fp.codigo, fp.nombre\");\r\n/* 251:326 */ Query query = this.em.createQuery(sql.toString());\r\n/* 252:327 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 253:328 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 254:329 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 255:330 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 256:331 */ return query.getResultList();\r\n/* 257: */ }", "public Institucion buscarInstitucionDeSolicitud(String cod_solicitud){\n\tString sql=\"select * from institucion where cod_institucion='\"+cod_solicitud+\"';\";\n\t\n\treturn db.queryForObject(sql, new InstitucionRowMapper());\n}", "public 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 }", "private Cursor selectStatements(TransferObject feature) throws Exception {\r\n\t //ContentValues cv = new ContentValues(); \r\n\t List<FieldTO> fields = feature.getFields();\r\n\t String[] selectionArgs = new String[fields.size()];\r\n\t for (int i=0; i<fields.size();i++) {\r\n\t \tFieldTO fieldTO = fields.get(i);\r\n\t \tString name = fieldTO.getName();\r\n\t \tObject value = fieldTO.getValue();\r\n\t \tselectionArgs[i] = String.valueOf(value);\r\n\r\n\t\t}\r\n\t // return getDb().insert(getTableName(), null, cv);\r\n\t\tStatementFactory statement = new StatementFactory(feature);\r\n StringBuilder sqls = statement.createStatementSQL();\r\n Cursor c = getDb().rawQuery(sqls.toString(), selectionArgs);\r\n\t return c;\r\n\t}", "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 }", "public Collection cargarMasivo(int codigoCiclo, String proceso, String subproceso, int periodo) {\n/* 287 */ Collection resultados = new ArrayList();\n/* */ try {\n/* 289 */ String s = \"select m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, u.Descripcion Nombre_Area, Um.Descripcion as Nombre_Unidad_Medida, to_char(m.Codigo_Objetivo,'9999999999') ||' - ' || o.Descripcion Nombre_Objetivo, to_char(m.Codigo_Meta,'9999999999') ||' - ' || m.Descripcion Nombre_Meta, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, l.Valor_Logro, case when l.Valor_Logro is not null then 'A' else 'N' end Existe from Cal_Planes p, Cal_Plan_Objetivos o, Cal_Plan_Metas m left join Cal_Logros l on( m.Codigo_Ciclo = l.Codigo_Ciclo and m.Codigo_Plan = l.Codigo_Plan and m.Codigo_Meta = l.Codigo_Meta and m.Codigo_Objetivo = l.Codigo_Objetivo and \" + periodo + \" = l.Periodo),\" + \" Unidades_Dependencia u,\" + \" Sis_Multivalores Um\" + \" where p.Ciclo = o.Codigo_Ciclo\" + \" and p.Codigo_Plan = o.Codigo_Plan\" + \" and o.Codigo_Ciclo = m.Codigo_Ciclo\" + \" and o.Codigo_Plan = m.Codigo_Plan\" + \" and o.Codigo_Objetivo = m.Codigo_Objetivo\" + \" and p.Codigo_Area = u.Codigo\" + \" and m.Unidad_Medida = Um.Valor\" + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\" + \" and o.Proceso = '\" + proceso + \"'\" + \" and o.Subproceso = '\" + subproceso + \"'\" + \" and p.Ciclo = \" + codigoCiclo + \" and m.Estado = 'A'\" + \" and o.Estado = 'A'\" + \" and o.Tipo_Objetivo in ('G', 'M')\";\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/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 333 */ if (periodo == 1) {\n/* 334 */ s = s + \" and m.mes01='S'\";\n/* */ }\n/* 336 */ else if (periodo == 2) {\n/* 337 */ s = s + \" and m.mes02='S'\";\n/* */ }\n/* 339 */ else if (periodo == 3) {\n/* 340 */ s = s + \" and m.mes03='S'\";\n/* */ }\n/* 342 */ else if (periodo == 4) {\n/* 343 */ s = s + \" and m.mes04='S'\";\n/* */ }\n/* 345 */ else if (periodo == 5) {\n/* 346 */ s = s + \" and m.mes05='S'\";\n/* */ }\n/* 348 */ else if (periodo == 6) {\n/* 349 */ s = s + \" and m.mes06='S'\";\n/* */ }\n/* 351 */ else if (periodo == 7) {\n/* 352 */ s = s + \" and m.mes07='S'\";\n/* */ }\n/* 354 */ else if (periodo == 8) {\n/* 355 */ s = s + \" and m.mes08='S'\";\n/* */ }\n/* 357 */ else if (periodo == 9) {\n/* 358 */ s = s + \" and m.mes09='S'\";\n/* */ }\n/* 360 */ else if (periodo == 10) {\n/* 361 */ s = s + \" and m.mes10='S'\";\n/* */ }\n/* 363 */ else if (periodo == 11) {\n/* 364 */ s = s + \" and m.mes11='S'\";\n/* */ }\n/* 366 */ else if (periodo == 12) {\n/* 367 */ s = s + \" and m.mes12='S'\";\n/* */ } \n/* */ \n/* 370 */ s = s + \" order by m.Codigo_Ciclo, m.Codigo_Objetivo, m.Codigo_Meta, u.Descripcion\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 377 */ boolean rtaDB = this.dat.parseSql(s);\n/* 378 */ if (!rtaDB) {\n/* 379 */ return resultados;\n/* */ }\n/* */ \n/* 382 */ this.rs = this.dat.getResultSet();\n/* 383 */ while (this.rs.next()) {\n/* 384 */ CalMetasDTO reg = new CalMetasDTO();\n/* 385 */ reg.setCodigoCiclo(codigoCiclo);\n/* 386 */ reg.setCodigoPlan(this.rs.getInt(\"codigo_plan\"));\n/* 387 */ reg.setCodigoMeta(this.rs.getInt(\"codigo_meta\"));\n/* 388 */ reg.setCodigoObjetivo(this.rs.getInt(\"codigo_objetivo\"));\n/* 389 */ reg.setNombreArea(this.rs.getString(\"Nombre_Area\"));\n/* 390 */ reg.setNombreMeta(this.rs.getString(\"Nombre_meta\"));\n/* 391 */ reg.setNombreObjetivo(this.rs.getString(\"Nombre_Objetivo\"));\n/* 392 */ reg.setUnidadMedida(this.rs.getString(\"unidad_medida\"));\n/* 393 */ reg.setValorMinimo(this.rs.getDouble(\"valor_minimo\"));\n/* 394 */ reg.setValorMaximo(this.rs.getDouble(\"valor_maximo\"));\n/* 395 */ reg.setValorLogro(this.rs.getDouble(\"Valor_Logro\"));\n/* 396 */ reg.setNombreUnidadMedida(this.rs.getString(\"nombre_unidad_medida\"));\n/* 397 */ reg.setEstado(this.rs.getString(\"existe\"));\n/* 398 */ resultados.add(reg);\n/* */ }\n/* */ \n/* 401 */ } catch (Exception e) {\n/* 402 */ e.printStackTrace();\n/* 403 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarTodos \", e);\n/* */ } \n/* 405 */ return resultados;\n/* */ }", "public void selectValuesFromTable(Connection conn) {\n\t// select queries\n\n\t\n\tthis.selectValuesIncidentTicketTables(conn);\n\n\n\t\n}", "@Override\n public SqlDatabaseTable select(SqlDatabaseTable table, List<SelectionRule> selectionRules) {\n StringBuilder sql = new StringBuilder();\n if (selectionRules.isEmpty()) {\n sql.append(\"SELECT 0 AS `id`\");\n } else {\n sql.append(\"SELECT 0 AS `id`\");\n for (int i = 0; i < selectionRules.size(); i++) {\n sql.append(\", \");\n SelectionRule rule = selectionRules.get(i);\n if (rule instanceof NullSelectionRule) {\n sql.append(\"NULL\");\n } else if (rule instanceof ConstantSelectionRule) {\n sql.append(\"'\").append(((ConstantSelectionRule) rule).getValue()).append(\"'\");\n } else if (rule instanceof VariableSelectionRule) {\n sql.append(\"`_\").append(((VariableSelectionRule) rule).getVariableIndex()).append(\"`\");\n }\n sql.append(\" AS `_\").append(i).append(\"`\");\n }\n sql.append(\" FROM \").append(table.getFullRef());\n }\n return new SqlDatabaseQueryTable(sql.toString(), selectionRules.size());\n }", "@Override\n protected void processSelect() {\n \n }", "@Override\n public boolean SearchSQL() {\n\n /*\n appunto su query.next()\n inizialmente query.next è posto prima della prima riga\n alla prima chiaata si posiziona sulla prima row\n alla seconda chiamata si posiziona sulla seconda row e cosi via\n */\n\n boolean controllo = false;\n\n openConnection();\n\n String sql =\"select user,pass,vol_o_cand from pass where user='\"+userInserito+\"'\";\n ResultSet query = selectQuery(sql);\n\n try {\n\n if(query.next()){\n\n String pass = query.getString(\"pass\");\n\n if(pass.equals(passInserita)) {\n controllo = true;\n volocand = query.getString(\"vol_o_cand\");\n }\n\n }\n\n\n }catch(SQLException se){\n se.printStackTrace();\n }finally{\n closeConnection();\n }\n\n\n return controllo;\n\n }", "public java.sql.ResultSet consultapormedicofecha2(String CodigoMedico,String fecha){\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,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \tSystem.out.println(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public ResultSet getAccno(Long ano)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select balance from bank where Accno=\"+ano+\"\");\r\n\treturn rs;\r\n}", "public List<Dishes> selectYue(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 }", "@Override\r\n\tpublic String select() {\n\t\tList<Object> paramList=new ArrayList<Object>();\r\n\t\tparamList.add(numPerPage*(pageIndex-1));\r\n\t\tparamList.add(numPerPage);\r\n\t\tthis.setResultMesg(adminDao.doCount(), adminDao.doSelect(paramList));\r\n\t\treturn SUCCESS;\r\n\t}", "public void select()\n {\n super.select();\n SwingUtilities.invokeLater(() -> _sqlPanel.getSQLEntryPanel().requestFocus());\n }", "public Object select(Object obj) throws SQLException {\n\t\treturn null;\r\n\t}", "public Collection cargarDeObjetivo(int codigoCiclo, int codigoPlan, int objetivo, int periodo, String estado) {\n/* 121 */ Collection resultados = new ArrayList();\n/* */ try {\n/* 123 */ String s = \"select m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, m.Descripcion, m.Valor_Meta, m.Tipo_Medicion, m.Frecuencia_Medicion, m.Justificacion, m.Estado, m.Fecha_Insercion, m.Usuario_Insercion, m.Fecha_Modificacion, m.Usuario_Modificacion, m.Mes01, m.Mes02, m.Mes03, m.Mes04, m.Mes05, m.Mes06, m.Mes07, m.Mes08, m.Mes09, m.Mes10, m.Mes11, m.Mes12, m.Fuente_Dato, m.Aplica_En, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, m.Tipo_Grafica, Tm.Descripcion as Nombretipomedicion, Est.Descripcion as Nombreestado, Um.Descripcion as Nombre_Unidad_Medida, SUM(CASE WHEN ac.NUMERO IS NOT NULL THEN 1 ELSE 0 END) acciones from Cal_Plan_Metas m left join Am_Acciones Ac on( m.Codigo_Ciclo = Ac.Codigo_Ciclo and m.Codigo_Plan = Ac.Codigo_Plan and m.Codigo_Meta = Ac.Codigo_Meta and Ac.Asociado = 'P'), \\t\\t Sis_Multivalores Tm, \\t\\t Sis_Multivalores Est, \\t\\t Sis_Multivalores Um where m.Tipo_Medicion = Tm.Valor and Tm.Tabla = 'CAL_TIPO_MEDICION' and m.Estado = Est.Valor and Est.Tabla = 'CAL_ESTADO_META' and m.Unidad_Medida = Um.Valor and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META' and m.codigo_ciclo=\" + codigoCiclo + \" and m.codigo_plan=\" + codigoPlan + \" and m.codigo_objetivo=\" + objetivo;\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/* */ \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/* 180 */ if (estado.length() > 0) {\n/* 181 */ s = s + \" and m.estado='A'\";\n/* */ }\n/* */ \n/* 184 */ if (periodo == 1) {\n/* 185 */ s = s + \" and m.mes01='S'\";\n/* */ }\n/* 187 */ else if (periodo == 2) {\n/* 188 */ s = s + \" and m.mes02='S'\";\n/* */ }\n/* 190 */ else if (periodo == 3) {\n/* 191 */ s = s + \" and m.mes03='S'\";\n/* */ }\n/* 193 */ else if (periodo == 4) {\n/* 194 */ s = s + \" and m.mes04='S'\";\n/* */ }\n/* 196 */ else if (periodo == 5) {\n/* 197 */ s = s + \" and m.mes05='S'\";\n/* */ }\n/* 199 */ else if (periodo == 6) {\n/* 200 */ s = s + \" and m.mes06='S'\";\n/* */ }\n/* 202 */ else if (periodo == 7) {\n/* 203 */ s = s + \" and m.mes07='S'\";\n/* */ }\n/* 205 */ else if (periodo == 8) {\n/* 206 */ s = s + \" and m.mes08='S'\";\n/* */ }\n/* 208 */ else if (periodo == 9) {\n/* 209 */ s = s + \" and m.mes09='S'\";\n/* */ }\n/* 211 */ else if (periodo == 10) {\n/* 212 */ s = s + \" and m.mes10='S'\";\n/* */ }\n/* 214 */ else if (periodo == 11) {\n/* 215 */ s = s + \" and m.mes11='S'\";\n/* */ }\n/* 217 */ else if (periodo == 12) {\n/* 218 */ s = s + \" and m.mes12='S'\";\n/* */ } \n/* */ \n/* 221 */ s = s + \" GROUP BY m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, m.Descripcion, m.Valor_Meta, m.Tipo_Medicion, m.Frecuencia_Medicion, m.Justificacion, m.Estado, m.Fecha_Insercion, m.Usuario_Insercion, m.Fecha_Modificacion, m.Usuario_Modificacion, m.Mes01, m.Mes02, m.Mes03, m.Mes04, m.Mes05, m.Mes06, m.Mes07, m.Mes08, m.Mes09, m.Mes10, m.Mes11, m.Mes12, m.Fuente_Dato, m.Aplica_En, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, m.Tipo_Grafica, Tm.Descripcion, Est.Descripcion, Um.Descripcion order by m.descripcion\";\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/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 259 */ boolean rtaDB = this.dat.parseSql(s);\n/* 260 */ if (!rtaDB) {\n/* 261 */ return resultados;\n/* */ }\n/* */ \n/* 264 */ this.rs = this.dat.getResultSet();\n/* 265 */ while (this.rs.next()) {\n/* 266 */ resultados.add(leerRegistro());\n/* */ }\n/* */ }\n/* 269 */ catch (Exception e) {\n/* 270 */ e.printStackTrace();\n/* 271 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarTodos \", e);\n/* */ } \n/* 273 */ return resultados;\n/* */ }", "public FlujoDetalleDTO cargarRegistro(int codigoFlujo, int secuencia) {\n/* */ try {\n/* 201 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.enviar_hermana,t.enviar_si_hermana_cerrada,t.ind_cliente_inicial,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" and t.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/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 243 */ boolean rtaDB = this.dat.parseSql(s);\n/* 244 */ if (!rtaDB) {\n/* 245 */ return null;\n/* */ }\n/* 247 */ this.rs = this.dat.getResultSet();\n/* 248 */ if (this.rs.next()) {\n/* 249 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 252 */ catch (Exception e) {\n/* 253 */ e.printStackTrace();\n/* 254 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarFlujoDetalle\", e);\n/* */ } \n/* 256 */ return null;\n/* */ }", "private String getConsulta(int indice) {\r\n\t\tString sql = \"\";\r\n\t\tStringBuffer variables = new StringBuffer();\r\n\t\tinParams = ((TxParams)todo.get(indice)).getParams().entrada;\r\n\t\toutParams = ((TxParams)todo.get(indice)).getParams().salida;\r\n\t\tif ((inParams == null || inParams.size() == 0) && (outParams == null || outParams.size() == 0))\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"}\";\r\n\t\telse {\r\n\t\t\t//Por cada parametro de entrada corresponde un ?\r\n\t\t\t//Ojo que tambien hay que considerar los de salida si es necesario\r\n\t\t\t//pero no esta cubierto en esta primera etapa\r\n\t\t\tif (inParams != null) {\r\n\t\t\t\tfor (int i = 0; i < inParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tif (outParams != null) {\r\n\t\t\t\tfor (int i = 0; i < outParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tString listaVars = variables.toString();\r\n\t\t\tlistaVars = listaVars.substring(0, listaVars.length() - 1);\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"(\" + listaVars + \")}\";\r\n\t\t}\r\n\t\treturn sql;\r\n\t}", "public String selectByExample(BsNewsExample example) {\n BEGIN();\n if (example != null && example.isDistinct()) {\n SELECT_DISTINCT(\"ID\");\n } else {\n SELECT(\"ID\");\n }\n SELECT(\"title\");\n SELECT(\"note\");\n SELECT(\"createTime\");\n SELECT(\"createUserId\");\n SELECT(\"createUserName\");\n SELECT(\"updateTime\");\n SELECT(\"updateUserId\");\n SELECT(\"updateUserName\");\n SELECT(\"intColumn1\");\n SELECT(\"intColumn2\");\n SELECT(\"strColumn1\");\n SELECT(\"strColumn2\");\n FROM(\"bs_news\");\n applyWhere(example, false);\n \n if (example != null && example.getOrderByClause() != null) {\n ORDER_BY(example.getOrderByClause());\n }\n if (example !=null && example.getLimit() > 0 ) { \n \n \treturn SQL() + \" limit #{offset,jdbcType=INTEGER} , #{limit,jdbcType=INTEGER}\";\n \t} \n return SQL();\n }", "public void getSelect(String query, ArrayList<Object> params) {\r\n\t\tif (null != connection) {\r\n\t\t\tSystem.out.println(QueryProcessor.exec(connection, query, params));\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Hubo algún error con la conexión...\");\r\n\t\t}\r\n\t}", "public static String todosLosEmpleados(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=1;\";\n return query;\n }", "Select createSelect();", "public List<ReporteComprasVentasRetenciones> getReporteVentas(int mes, int anio, int idOrganizacion, boolean electronicas)\r\n/* 196: */ {\r\n/* 197:264 */ StringBuffer sql = new StringBuffer();\r\n/* 198: */ \r\n/* 199:266 */ sql.append(\" SELECT new ReporteComprasVentasRetenciones(tc.codigo, tc.nombre, COUNT(tc.codigo), \");\r\n/* 200:267 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fcs.baseImponibleTarifaCero) ELSE SUM(fcs.baseImponibleTarifaCero) END), \");\r\n/* 201:268 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fcs.baseImponibleDiferenteCero) ELSE SUM(fcs.baseImponibleDiferenteCero) END), \");\r\n/* 202:269 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fcs.baseImponibleNoObjetoIva) ELSE SUM(fcs.baseImponibleNoObjetoIva) END), \");\r\n/* 203:270 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fcs.montoIva) ELSE SUM(fcs.montoIva) END), 'Ventas', (CASE WHEN tc.codigo = '41' THEN '02' ELSE '01' END),\");\r\n/* 204:271 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fc.descuentoImpuesto) ELSE SUM(fc.descuentoImpuesto) END))\");\r\n/* 205:272 */ sql.append(\" FROM FacturaClienteSRI fcs \");\r\n/* 206:273 */ sql.append(\" JOIN fcs.facturaCliente fc \");\r\n/* 207:274 */ sql.append(\" LEFT OUTER JOIN fcs.tipoComprobanteSRI tc \");\r\n/* 208:275 */ sql.append(\" LEFT OUTER JOIN fc.documento d \");\r\n/* 209:276 */ sql.append(\" LEFT OUTER JOIN fc.facturaClientePadre fcpadre \");\r\n/* 210:277 */ sql.append(\" LEFT OUTER JOIN fcpadre.documento dpadre \");\r\n/* 211:278 */ sql.append(\" WHERE MONTH(fcs.fechaEmision) =:mes \");\r\n/* 212:279 */ sql.append(\" AND YEAR(fcs.fechaEmision) =:anio \");\r\n/* 213:280 */ sql.append(\" AND fc.estado!=:estadoAnulado \");\r\n/* 214:281 */ sql.append(\" AND fcs.indicadorSaldoInicial!=true \");\r\n/* 215:282 */ sql.append(\" AND fcs.idOrganizacion = :idOrganizacion \");\r\n/* 216:283 */ sql.append(\" AND COALESCE(dpadre.indicadorDocumentoExterior, d.indicadorDocumentoExterior) = false \");\r\n/* 217:284 */ sql.append(\" AND fcs.indicadorDocumentoElectronico = :fisicas \");\r\n/* 218:285 */ sql.append(\" GROUP BY tc.codigo, tc.nombre \");\r\n/* 219:286 */ sql.append(\" ORDER BY tc.codigo, tc.nombre \");\r\n/* 220: */ \r\n/* 221:288 */ Query query = this.em.createQuery(sql.toString());\r\n/* 222:289 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 223:290 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 224:291 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 225:292 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 226:293 */ query.setParameter(\"fisicas\", Boolean.valueOf(electronicas));\r\n/* 227:294 */ return query.getResultList();\r\n/* 228: */ }", "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}", "private String getSelectQuery() {\n String query = null;\n try {\n query = crudQueryComposer.composeReadQuery();\n } catch (MissingPropertyException e) {\n logger.error(e);\n }\n return query;\n }" ]
[ "0.709789", "0.6526705", "0.63426536", "0.6217488", "0.619568", "0.6142821", "0.6131769", "0.61070216", "0.6097577", "0.6080001", "0.60097975", "0.59772605", "0.59747374", "0.5967378", "0.5962866", "0.5954888", "0.5946137", "0.5934264", "0.59282285", "0.5895585", "0.5895134", "0.5883951", "0.5870786", "0.5858703", "0.58499527", "0.5848964", "0.58470315", "0.5841581", "0.5825409", "0.5818236", "0.58068436", "0.5806732", "0.5794493", "0.57915217", "0.57837534", "0.57756287", "0.5773672", "0.5768275", "0.57671654", "0.5763202", "0.57400084", "0.573805", "0.5717391", "0.57090175", "0.57054853", "0.5697691", "0.56960106", "0.5695713", "0.5682513", "0.5672223", "0.5664057", "0.5661395", "0.5655829", "0.5654785", "0.5645422", "0.5645422", "0.5641811", "0.56217325", "0.561965", "0.56166124", "0.56086034", "0.56053144", "0.5604314", "0.56009555", "0.5597558", "0.5591915", "0.55888945", "0.5588894", "0.55857724", "0.55821735", "0.5581771", "0.55810535", "0.5576182", "0.55655676", "0.55641615", "0.55567074", "0.55560905", "0.55461293", "0.55459327", "0.5544203", "0.55373526", "0.55357754", "0.5532375", "0.5527948", "0.55249214", "0.5517602", "0.5516147", "0.55156034", "0.55146956", "0.55102605", "0.5504901", "0.5497686", "0.54956615", "0.54920775", "0.54858506", "0.54831266", "0.5481077", "0.54798895", "0.5475494", "0.5472914", "0.54724914" ]
0.0
-1
private static DispatchingProperties handler = null;
DispatchingProperties() { super(); // if (handler != null) { // throw new // RuntimeException("ServicePropertiesHandler: class already instantiated!"); // } // handler = this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static DispatchingProperties getInstance() {\r\n\t\t// if (handler == null) {\r\n\t\t// handler = new DispatchingProperties();\r\n\t\t// }\r\n\t\t// return handler;\r\n\t\treturn (DispatchingProperties) Properties.forClassName(Properties.DISPATCHING_PROPERTIES_HANDLER_CLASS);\r\n\t}", "@ClientConfig(JsonMode.Function)\n\r\n\tpublic Object getHandler () {\r\n\t\treturn (Object) getStateHelper().eval(PropertyKeys.handler);\r\n\t}", "public Handler getHandler();", "public Handler getHandler() {\r\n return handler;\r\n }", "public Handler getHandler() {\r\n return handler;\r\n }", "CreateHandler()\n {\n }", "public String getHandler() {\n return handler;\n }", "@JsonProperty(value = \"Handler\")\n public String getHandler() {\n return this.Handler;\n }", "public void setHandler ( Object handler ) {\r\n\t\tgetStateHelper().put(PropertyKeys.handler, handler);\r\n\t\thandleAttribute(\"handler\", handler);\r\n\t}", "private Property getHandlersPropertyObject(String namespace)\r\n throws CockpitConfigurationException {\r\n Property handlersProp;\r\n\r\n try {\r\n handlersProp = ConfigManager.getInstance().getPropertyObject(namespace, \"handlers\");\r\n } catch (UnknownNamespaceException e) {\r\n throw new CockpitConfigurationException(\"Fails on reading handlers from unknown namespace '\"\r\n + namespace + \"'\", e);\r\n }\r\n\r\n if (handlersProp == null) {\r\n throw new CockpitConfigurationException(\"Missing 'handlers' property from namespace '\" + namespace\r\n + \"'\");\r\n }\r\n\r\n return handlersProp;\r\n }", "public GenericHandler() {\n\n }", "HandlerHelper getHandlerHelper() {\n return handlerHelper;\n }", "public Handler getHandler() {\n return mHandler;\n }", "@Override\n\tpublic Handler getHandler() {\n\t\treturn mHandler;\n\t}", "Handler getHandler() {\n return getEcologyLooper().getHandler();\n }", "public Handler getHandler() {\n return null;\n }", "@Override\n\tpublic void dispatchHandler(Message msg) {\n\t\t\n\t}", "public Handler getHandler() {\n return this.mHandler;\n }", "public Class<?> getHandler();", "public void setHandler(Handler handler) {\r\n this.handler = handler;\r\n }", "public void setHandler(Handler handler) {\r\n this.handler = handler;\r\n }", "Map<String, Handler> handlers();", "public int getHandler() {\n\t\treturn 1;\n\t}", "public void setHandler(String handler) {\n this.Handler = handler;\n }", "static synchronized Handler getHandler() {\n checkState();\n return sInstance.mHandler;\n }", "@Override\n\tpublic Handler getHandler() {\n\t\t// TODO Auto-generated method stub\n\t\treturn mHandler;\n\t}", "private PersonHandler() {\n }", "public void setCommunicationHandler(){\n this.comHandler = new CommunicationHandler(this);\n }", "public void registerHandler(Object handler)\n {\n\n }", "protected void setHandlers()\n {\n tableTypeHandler = ccddMain.getTableTypeHandler();\n dataTypeHandler = ccddMain.getDataTypeHandler();\n }", "@Override\n\tpublic void initiateHandling() {\n\t}", "@Override\n\tpublic void initiateHandling() {\n\t}", "@Override\n\tpublic void initiateHandling() {\n\t}", "public interface PropertyHandler<T, V> {\n\n void set(T instance, V value);\n\n V get(T instance);\n\n String property();\n\n Class<V> type();\n}", "DataHandler getDataHandler();", "public RequestUrlHandler() {\n // requestService = SpringContextHolder.getBean(ScfRequestService.class);\n }", "BodyHandler getBodyHandler();", "@Override\r\n\tpublic void configHandler(Handlers me) {\n\r\n\t}", "@NotNull\n @Contract(pure = true)\n @SuppressWarnings(\"unused\")\n public static HandlerList getHandlerList() {\n return HANDLERS;\n }", "public static synchronized INSURLHandler getINSURLHandler() {\n/* 50 */ if (insURLHandler == null) {\n/* 51 */ insURLHandler = new INSURLHandler();\n/* */ }\n/* 53 */ return insURLHandler;\n/* */ }", "ClassificationHandler getClassificationHandler() {\n return classificationHandler;\n }", "@Override\n public String getHandlerName() {\n return \"UpdateHandler\";\n }", "public void initEventsAndProperties() {\r\n }", "interface Handler{\n /**\n * The proxy will call it when it has new data coming from the opponent. The implementation should handle the\n * checkpoints in the way the client needs.\n *\n * @param checkPoint <code>CheckPoint</code> received from the opponent.\n */\n void hasNewData(CheckPoint checkPoint);\n\n /**\n * Will be called when the proxy receives notification that the opponent is ready.\n */\n void isReady();\n\n /**\n * Will be called when the proxy receives notification that the opponent has finished.\n */\n void isFinished();\n\n /**\n * Will be called when the proxy receives notification that the opponent has left the challenge.\n */\n void hasLeft();\n\n /**\n * Will be called when the proxy receives notification that the opponent has joined the challenge room.\n */\n void opponentInRoom();\n }", "@Override\n protected PropertiesHandler<Person> getPropertiesHandler() {\n final PropertiesHandler<Address.Builder> addressHandler = new MappedPropertiesHandler<Address.Builder>() {\n @Override\n public Address.Builder getTarget() {\n return Address.builder();\n }\n }\n .map(\"street\", (Address.Builder t, String value) -> t.setStreet(value))\n .map(\"zip\", (Address.Builder t, String value) -> t.setZip(value))\n .map(\"city\", (Address.Builder t, String value) -> t.setCity(value));\n\n /*\n * Map Person to properties\n */\n final PropertiesHandler<Person> personHandler = new MappedPropertiesHandler<Person>() {\n @Override\n public Person getTarget() {\n return new Person();\n }\n }\n .map(\"first-name\", (Person p, String value) -> p.setFirstName(value))\n .map(\"last-name\", (Person p, String value) -> p.setLastName(value))\n .map(\"home-address\", addressHandler, (Person p, Address.Builder a) -> p.setHomeAddress(a.build()))\n .map(\"work-address\", addressHandler, (Person p, Address.Builder a) -> p.setWorkAddress(a.build()));\n\n return personHandler;\n }", "@Override\r\n\tpublic void attachHandlers() {\n\r\n\t}", "private void loadHandlers(String namespace, ObjectFactory objectFactory)\r\n throws CockpitConfigurationException {\r\n // gets 'handlers' property\r\n Property handlersProp = getHandlersPropertyObject(namespace);\r\n\r\n // iterates all sub-properties\r\n for (Iterator<?> iter = handlersProp.list().iterator(); iter.hasNext();) {\r\n Property handlerProp = (Property) iter.next();\r\n\r\n // creates the HandlerRegistryInfo based on property name\r\n String handlerPropName = handlerProp.getName();\r\n HandlerRegistryInfo info = createHandlerRegistryInfo(handlerPropName);\r\n\r\n // creates the PhaseHandler based on property value.\r\n String handlerPropValue = handlerProp.getValue();\r\n\r\n if (handlerPropValue.trim().length() == 0) {\r\n throw new CockpitConfigurationException(\"The value of '\" + handlerPropName\r\n + \"' should not be empty\");\r\n }\r\n\r\n PhaseHandler phaseHandler = (PhaseHandler) createObject(objectFactory, handlerPropValue,\r\n PhaseHandler.class);\r\n\r\n // put the mapping to the handlers.\r\n this.delegate.registerHandler(phaseHandler, info.getType(), info.getOperation());\r\n }\r\n }", "public Object getProperty(String propertyId)\n throws SAXNotRecognizedException\n {\n if ((PROPERTY + \"declaration-handler\").equals(propertyId))\n {\n return (declHandler == base) ? null : declHandler;\n }\n \n if ((PROPERTY + \"lexical-handler\").equals(propertyId))\n {\n return (lexicalHandler == base) ? null : lexicalHandler;\n }\n \n // unknown properties\n throw new SAXNotRecognizedException(propertyId);\n }", "Handler<Q, R> handler();", "@Override\n public HandlerList getHandlers() {\n return handlers;\n }", "@Override\n public HandlerList getHandlers() {\n return handlers;\n }", "public void init()\n {\n policyComponent.bindClassBehaviour(NodeServicePolicies.OnUpdatePropertiesPolicy.QNAME,\n WebSiteModel.TYPE_WEB_SITE, new JavaBehaviour(this, \"onUpdatePropertiesEveryEvent\"));\n }", "public void testChangePropertyHandler_Accuracy() {\n assertNotNull(\"Test method for 'ChangePropertyHandler(MainFrame)' failed.\", handler);\n }", "protected Object getHandlerInternal(HttpServletRequest request) {\n String lookupPath = WebUtils.getLookupPathForRequest(request, this.alwaysUseFullPath);\n logger.debug(\"Looking up handler for: \" + lookupPath);\n return lookupHandler(lookupPath);\n }", "public void setHandler(String handler) {\n this.handler = handler == null ? null : handler.trim();\n }", "public interface Props {\n public final static String HTTP=\"http://\";\n public final static String SEP=\":\";\n public final static String POST_TYPE_JSON=\"application/json\";\n}", "private static Map<String, Greetable> loadHandlers() {\n Map<String, Greetable> result = new HashMap<>();\n\n try (InputStream is = Server.class.getClassLoader()\n .getResourceAsStream(\"server.properties\")){\n\n Properties properties = new Properties();\n properties.load(is);\n\n //Get full name of handler class by associated map key\n for (Object command : properties.keySet()) {\n String className = properties.getProperty(command.toString());\n //Get link on class realizzation\n Class<Greetable> cl = (Class<Greetable>) Class.forName(className);\n //Get class entity\n Greetable handler = cl.getConstructor().newInstance();\n result.put(command.toString(), handler);\n\n }\n\n } catch (Exception e){\n e.printStackTrace(System.out);\n }\n\n\n return result;\n }", "public DictionaryHandler() {\n\t}", "@Override\n public void afterPropertiesSet() throws Exception {\n\n Map<String, EventHandler> beans = applicationContext.getBeansOfType(EventHandler.class);\n if (beans != null) {\n\n for (Map.Entry<String, EventHandler> entry : beans.entrySet()) {\n List<EventType> supportedEventType = entry.getValue().getSupportEventType();\n\n for (EventType type : supportedEventType) {\n if (eventHandlerMap.containsKey(type) == false) {\n eventHandlerMap.put(type, new LinkedList<EventHandler>());\n }\n\n eventHandlerMap.get(type).add(entry.getValue());\n }\n }\n }\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n while (true) {\n\n String key = RedisKeyUtil.getKeyEventQueue();\n // pop an event from event queuqe (key, event)\n List<String> events = jedisAdapter.popFromListTail(key, 0);\n\n for (String message : events) {\n // skip the first key\n if (message.equals(key)) {\n continue;\n }\n\n EventModel eventModel = JSON.parseObject(message, EventModel.class);\n if (eventHandlerMap.containsKey(eventModel.getType()) == false) {\n logger.error(\"Wrong event type.\");\n continue;\n }\n\n // handle event\n for (EventHandler handler : eventHandlerMap.get(eventModel.getType())) {\n handler.handleEvent(eventModel);\n }\n }\n }\n }\n });\n\n thread.start();\n }", "static Handler getCallbackHandler() {\n return sCallbackHandler;\n }", "public void onInitHandler() {\n }", "@Override\n public List<XulEventHandler> getEventHandlers() {\n return null;\n }", "protected CommunicationsHandler(){}", "@Override\n public final HandlerList getHandlers(){\n return handlers;\n }", "private void initializeHandler() {\n if (handler == null) {\n handler = AwsHelpers.initSpringBootHandler(Application.class);\n }\n }", "public void initMap()\r\n/* */ {\r\n///* 36 */ putHandler(\"vwkgcode\", PDWkHeadTailVWkgcodeHandler.class);\r\n///* 37 */ putHandler(\"fcapacitycalc\", PDWkHeadTailFcapacitycalcHandler.class);\r\n///* 38 */ putHandler(\"bprodline\", PDWkHeadTailBprodlineHandler.class);\r\n/* */ }", "private void eventhandler() {\n\r\n\t}", "private Handler getConnectorHandler() {\n return connectorHandler;\n }", "@Override\n public List<MHandler> getHandlers()\n {\n return null;\n }", "public InternalNameServiceHandler() {\n }", "public Handler getHandler() {\n\t\treturn this.serverHandler;\n\t}", "public void handleEvent(SimplePropertyEvent<S, D> event);", "@Override\n\tprotected void dispatch(CometResponseHandler handler) {\n\t\t\n\t}", "private void startHandler() {\n mHandler = new MessageHandler();\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:47.199 -0500\", hash_original_method = \"41983E4AD1DCA5E034973FB71B6F64E2\", hash_generated_method = \"FE0086F5838C2FA5A6CD634F53A119E2\")\n \npublic void createUIHandler() {\n if (mUIHandler == null) {\n mUIHandler = new Handler() {\n @DSSafe(DSCat.SAFE_LIST)\n @Override\n public void handleMessage(Message msg) {\n // Runs on the UI thread.\n switch (msg.what) {\n case RETURN_ORIGINS: {\n Map values = (Map) msg.obj;\n Set<String> origins = (Set<String>) values.get(ORIGINS);\n ValueCallback<Set<String> > callback = (ValueCallback<Set<String> >) values.get(CALLBACK);\n callback.onReceiveValue(origins);\n } break;\n case RETURN_ALLOWED: {\n Map values = (Map) msg.obj;\n Boolean allowed = (Boolean) values.get(ALLOWED);\n ValueCallback<Boolean> callback = (ValueCallback<Boolean>) values.get(CALLBACK);\n callback.onReceiveValue(allowed);\n } break;\n }\n }\n };\n }\n }", "private void setHandler() {\n handler = new Handler() {\n @Override\n public void handleMessage(Message msg) {\n JSONObject message;\n try {\n message = new JSONObject((String)msg.obj);\n switch (message.getString(\"type\")) {\n case \"picture\":\n setImage(message.getString(\"img\"));\n break;\n case \"info\":\n name = message.getString(\"name\");\n battery = Integer.parseInt(message.getString(\"battery\"));\n stiffness = Boolean.parseBoolean(message.getString(\"stiffness\"));\n showInfo();\n break;\n case \"disconnect\":\n Toast.makeText(getApplicationContext(), message.getString(\"text\"),\n Toast.LENGTH_SHORT).show();\n // Change connect button and hide robot info\n Button connectButton = (Button) findViewById(R.id.connectButton);\n LinearLayout robotInfo = (LinearLayout) findViewById(R.id.robotInfo);\n if (connectButton != null) {\n connectButton.setText(\"Connect\");\n robotInfo.setVisibility(View.INVISIBLE);\n }\n break;\n case \"error\":\n Toast.makeText(getApplicationContext(), message.getString(\"text\"),\n Toast.LENGTH_SHORT).show();\n break;\n default:\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n };\n }", "public interface IPropertiesHandler {\n\n /**\n * <p>\n * Returns property value from property value\n * </p>\n * @param filename name of resource bundle\n * @param lang localization\n * @param key property key\n * @return value for specific key and localization or only key if no value was found\n */\n String getPropertyValue(String filename, String lang, String key);\n}", "private ReadProperty()\r\n {\r\n\r\n }", "public void setHandler(ContentHandler handler) { }", "private HandlerBuilder() {\n }", "@Override\n\tpublic void setHandler(Incoming handler) {\n\t\tthis.handler = handler;\n\t}", "public void setRecordHandler(RecordHandler recordHandler) {\n \t this.recordHandler = recordHandler;\n }", "public ContentHandler getContentHandler()\n {\n return (contentHandler == base) ? null : contentHandler;\n }", "public MessageHandler() {\n }", "@Override\r\n\tpublic Collection<EventHandler> getEventHandlers() {\n\t\treturn null;\r\n\t}", "public static void bindProperties(Binder binder, final PropertiesHandler propertiesHandler) {\n for (final String key : propertiesHandler.keys()) {\n binder.bindConstant().annotatedWith(new PropertyImpl(key)).to((String) propertiesHandler.get(key));\n }\n }", "@Override\n\tpublic void ClearHandler() {\n\t\teventHandlers.clear();\n\t\t\n\t}", "void setAspectDataHandler(AspectDataHandler handler);", "protected XPath getXPathHandler()\n\t{\n\t\treturn xPath;\n\t}", "public IPSObjectStoreHandler getObjectStoreHandler();", "public PropertyFileHandle createPropertyHandleOfAnyType();", "public ExternalReferenceHandlerIF getExternalReferenceHandler() {\n return ref_handler;\n }", "TransferHandler getTransferHandler() {\n return defaultTransferHandler;\n }", "public static Mono<Void> handle(DispatcherHandler handler, ServerWebExchange exchange) {\n\t\t// remove attributes that may disrupt the forwarded request\n\t\texchange.getAttributes().remove(GATEWAY_PREDICATE_PATH_CONTAINER_ATTR);\n\n\t\treturn handler.handle(exchange);\n\t}", "public final static HandlerList getHandlerList(){\n return handlers;\n }", "private PropertyUtil(){\n\t\ttry{\n\t\t\tloadURL();\n\t\t\tRuntime.getRuntime().addShutdownHook(new UtilShutdownHook());\n\t\t}catch(IOException ioe){\n\t\t\tLOGGER.error(\"Unable to load Property File\\n\"+ioe);\n\t\t}\n\t\tLOGGER.debug(\"INSTANTIATED\");\n\t}", "private PropertySingleton(){}", "@Override\n\tpublic Handler getId() {\n\t\treturn null;\n\t}", "public final String getHandlerId() {\n return prefix;\n }", "private synchronized Handler getCustomHandler( ) {\n if( (customHandler != null ) \n ||(customHandlerError) ) \n {\n return customHandler;\n }\n LogService logService = getLogService( );\n if( logService == null ) {\n return null;\n }\n String customHandlerClassName = null;\n try {\n customHandlerClassName = logService.getLogHandler( );\n\n customHandler = (Handler) getInstance( customHandlerClassName );\n // We will plug in our UniformLogFormatter to the custom handler\n // to provide consistent results\n if( customHandler != null ) {\n customHandler.setFormatter( new UniformLogFormatter(componentManager.getComponent(Agent.class)) );\n }\n } catch( Exception e ) {\n customHandlerError = true; \n new ErrorManager().error( \"Error In Initializing Custom Handler \" +\n customHandlerClassName, e, ErrorManager.GENERIC_FAILURE );\n }\n return customHandler;\n }" ]
[ "0.7347574", "0.6833439", "0.63202924", "0.6254062", "0.6254062", "0.62055254", "0.6085619", "0.5988286", "0.5981701", "0.5955058", "0.59176886", "0.5914712", "0.5913042", "0.5887286", "0.58802503", "0.5829941", "0.5819086", "0.57727593", "0.5771776", "0.5722024", "0.5722024", "0.5700524", "0.5691275", "0.5690562", "0.5668493", "0.56471354", "0.5620962", "0.56125546", "0.55646867", "0.5556732", "0.5552098", "0.5552098", "0.5552098", "0.551281", "0.5492429", "0.54817194", "0.54572994", "0.54487437", "0.5436276", "0.5425093", "0.5402978", "0.5395667", "0.5386783", "0.5380236", "0.53758055", "0.5373364", "0.53682727", "0.5336637", "0.5335406", "0.53228253", "0.53228253", "0.5305844", "0.52958053", "0.528685", "0.5283497", "0.5279393", "0.5276372", "0.5270018", "0.5268329", "0.5261645", "0.5260206", "0.5258412", "0.5239271", "0.523383", "0.52195853", "0.5217812", "0.52053744", "0.52038676", "0.5199682", "0.518378", "0.5176969", "0.51589465", "0.51523465", "0.515008", "0.5150056", "0.51420873", "0.51413965", "0.5139656", "0.5138463", "0.51356083", "0.5133981", "0.5120292", "0.51177377", "0.5113094", "0.5111451", "0.5111339", "0.51090485", "0.5108493", "0.5106112", "0.5094147", "0.50934917", "0.50883883", "0.50876033", "0.50862694", "0.5084711", "0.50750726", "0.5073936", "0.50685865", "0.5065062", "0.50591314" ]
0.76803565
0
Gets instance of dispatching properties.
public static DispatchingProperties getInstance() { // if (handler == null) { // handler = new DispatchingProperties(); // } // return handler; return (DispatchingProperties) Properties.forClassName(Properties.DISPATCHING_PROPERTIES_HANDLER_CLASS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Properties getPropertiesObject()\n {\n return fProp;\n }", "Property getProperty();", "Property getProperty();", "public Properties getProperty() {\r\n return properties;\r\n }", "public static PropertyUtil getInstance(){\t\t\n\t\tif(resource==null){\n\t\t\tresource = new PropertyUtil();\n\t\t}\n\t\treturn resource;\n\t}", "public Properties getProperties() {\n Properties properties = new Properties();\n properties.setProperty(\"advice\", \"method interceptor\");\n properties.setProperty(\"scope\", \"per-instance\");\n return properties;\n }", "public Properties getProperties() { return props; }", "public PropertyDefinitionBase getPropertyDefinition() {\n return propertyDefinition;\n }", "Object getProperty(String name);", "public static PropertyHolder getInstance() {\n if (singletonHolder == null) {\n singletonHolder = new PropertyHolder();\n }\n return singletonHolder;\n }", "public Property getProperty() {\n\t\treturn _property;\n\t}", "public static final CMProps instance() {\n final CMProps p = p();\n if (p == null)\n return new CMProps();\n return p;\n }", "Properties getProps()\n {\n return props;\n }", "public Property getProperty() {\n\treturn commonproperty;\r\n}", "protected java.util.Map getProperties() {\n return properties;\n }", "Object getProps();", "public static ConfigProperties getInstance() {\r\n\r\n if (instance==null) {\r\n instance=new ConfigProperties();\r\n }\r\n return instance;\r\n }", "public String getProperty();", "Properties getProperties();", "public Object getObject()\n {\n initialize();\n\n if (_invariant)\n return _cachedValue;\n\n return resolveProperty();\n }", "public Object getProperty(String name) {\n return properties.get(name);\n }", "public static mxPropertiesManager getInstance()\n\t{\n\t\tif (propertiesManager == null)\n\t\t{\n\t\t\tpropertiesManager = new mxPropertiesManager();\n\t\t}\n\t\treturn propertiesManager;\n\t}", "public Properties initForRuntime() {\n initProperties();\n return this;\n }", "public Object getProperty(String name)\n {\n return m_props.get(name);\n }", "public abstract Properties getProperties();", "public abstract AbstractProperties getProperties();", "public ScriptingClass getPropertyClass( final String name )\n {\n ScriptingClass propClass = null;\n if( properties != null )\n {\n propClass = (ScriptingClass) properties.get( name );\n }\n if( propClass == null && ancestors != null )\n {\n final int size = ancestors.size();\n for( int i = 0; i < size && propClass == null; i++ )\n {\n final ScriptingClass clazz = (ScriptingClass)\n ancestors.elementAt( i );\n propClass = clazz.getPropertyClass( name );\n }\n }\n if( propClass == null )\n {\n try\n {\n final ScriptingClass object = getClassLoader().load( \"object\" );\n propClass = object.getPropertyClass( name );\n }\n catch( ScriptingClassNotFoundException e )\n {\n }\n }\n return propClass;\n }", "public DatatypeProp getProperty() {\n return property;\n }", "public Object getProperties() {\n return this.properties;\n }", "public Properties getProperties() {\n return properties;\n }", "String getProperty();", "String getProperty();", "String getProperty();", "public Properties getProperties()\n {\n return this.properties;\n }", "DispatchingProperties() {\r\n\t\tsuper();\r\n\t\t// if (handler != null) {\r\n\t\t// throw new\r\n\t\t// RuntimeException(\"ServicePropertiesHandler: class already instantiated!\");\r\n\t\t// }\r\n\t\t// handler = this;\r\n\t}", "public Properties getProperties() {\n return properties;\n }", "EProperties getProperties();", "public static Properties getProperties() {\n \tif (!propertiesLoaded)\n \t\tSystem.err.println(\"Warning: Default properties loaded\");\n \t\n \t\n \tif (properties == null)\n \t\tproperties = new Properties();\n \t\n \t\n \treturn properties;\n }", "public Properties getProperties() {\n\t\tif (isStale()) {\n\t\t\tlogger.info(\"getProperties: is stale (reloading\");\n\t\t\tload();\n\t\t}\n\t\treturn properties;\n\t}", "public <T> T getProperty(String name) {\n return properties.get(name);\n }", "public static Properties getProperties() {\r\n return getProperties(false);\r\n }", "CommonProperties getProperties();", "Object getOtherprops();", "java.lang.String getProperty();", "public PropertyObject getProperty(String name) {\n return this.properties.get(name);\n }", "private PropertySingleton(){}", "public org.LexGrid.commonTypes.Properties getProperties() {\n return properties;\n }", "public Map<String, Object> getProperties()\n {\n return m_props;\n }", "@Override\n public Object getProperty(String property) {\n for (Map.Entry<String, RequiredFunctionalExtension> requiredBehaviorEntry : myRequiredBehaviorById.entrySet()) {\n Object prop = requiredBehaviorEntry.getValue().getProperty(property);\n if (prop != null) {\n return prop;\n }\n }\n return null;\n }", "public static PropertyManager getInstance () {\n if (instance == null) {\n synchronized (lock) {\n instance = new PropertyManager();\n instance.loadData();\n }\n }\n return instance;\n }", "Object getPropertytrue();", "@Override\n public ConfigurablePropertyMap getProperties() {\n return properties;\n }", "@Override\n public Object getProperty(final Object bean,\n final String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {\n\n if (!collections.isEmpty()) {\n final String key = getResolver().getProperty(name);\n Pair<String, Object> collectionInfo = collections.pop();\n if (bean instanceof Map) {\n Map map = (Map) bean;\n if (!map.containsKey(key)) {\n map.put(key, newNamedInstanceForCollection(collectionInfo.getA(), collectionInfo.getB(), key));\n }\n Object value = map.get(key);\n return trackCollectionOrMap(null, value, value);\n } else { // collection\n Object value = findByNameProperty(key, (Collection)bean);\n if (value == null) {\n // create it\n value = newNamedInstanceForCollection(collectionInfo.getA(), collectionInfo.getB(), key);\n ((Collection) bean).add(value);\n }\n return trackCollectionOrMap(null, value, value);\n }\n }\n\n Object resolved = null;\n\n try {\n resolved = getNestedProperty(bean, name);\n } catch (final NoSuchMethodException e) {\n // to avoid it being swallowed by caller wrap\n throw new InvocationTargetException(e, \"Cannot access property with key: \" + name);\n }\n\n return trackCollectionOrMap(name, resolved, bean);\n }", "private ConfigProperties getProperties() {\n return properties;\n }", "public Object getProperty(String name) {\n\t\treturn beanMap.get(name);\n\t}", "private PropertyEvaluator createEvaluator() {\n return helper.getStandardPropertyEvaluator();\n }", "public Hashtable getProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getProperties();\n }", "public Map<String, Property> getProperties()\n {\n return properties;\n }", "Object getProperty(String key);", "@SuppressWarnings(\"unchecked\")\n\tpublic Hashtable getProperties() {\n\t\treturn _props;\n\t}", "public String getPropertyWatcherClass()\n {\n return propertyWatcherClass;\n }", "public static SftpPropertyLoad getInstance() {\n\t\tif (null == instance) {\n\t\t\tsynchronized (SftpPropertyLoad.class) {\n\t\t\t\tif (null == instance) {\n\t\t\t\t\tinstance = new SftpPropertyLoad(\"sftp\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn instance;\n\t}", "private Property getHandlersPropertyObject(String namespace)\r\n throws CockpitConfigurationException {\r\n Property handlersProp;\r\n\r\n try {\r\n handlersProp = ConfigManager.getInstance().getPropertyObject(namespace, \"handlers\");\r\n } catch (UnknownNamespaceException e) {\r\n throw new CockpitConfigurationException(\"Fails on reading handlers from unknown namespace '\"\r\n + namespace + \"'\", e);\r\n }\r\n\r\n if (handlersProp == null) {\r\n throw new CockpitConfigurationException(\"Missing 'handlers' property from namespace '\" + namespace\r\n + \"'\");\r\n }\r\n\r\n return handlersProp;\r\n }", "public Properties getProperties() {\n\t\treturn this.properties;\n\t}", "public static PropertiesUtil getInstance(){\n if (instance == null) {\n synchronized (PropertiesUtil.class){\n instance = new PropertiesUtil();\n instance.loadProperties();\n }\n }\n return instance;\n }", "String getProperty(String name);", "public static ConfigFileProperties getInstance() {\n return ConfigFilePropertiesHolder.INSTANCE;\n }", "public message.Figure.FigureData.FigureProperty getProperty() {\n return property_;\n }", "public Object getProperty(String propertyName){\n return properties.get(propertyName);\n }", "public Object getProperty(String name) {\n if (properties != null) {\n return properties.get(name);\n }\n return null;\n }", "public java.util.Map<String,String> getProperties() {\n \n if (properties == null) {\n properties = new java.util.HashMap<String,String>();\n }\n return properties;\n }", "public Properties getProperties();", "public Properties getProperties()\n {\n Properties properties = null;\n List<Props.Entry> props = this.props.getEntry();\n if ( props.size() > 0 )\n {\n properties = new Properties();\n //int size = props.size();\n for ( Props.Entry entry : props )\n {\n String key = entry.getKey();\n String val = entry.getValue();\n properties.setProperty( key, val );\n }\n }\n return properties;\n }", "public interface Property extends Assignable\n{\n\t/**\n\t * Property name\n\t */\n\tString getName();\n\n\t/**\n\t * Type.\n\t * \n\t * If this is a getter, the returned value is the getter's return type.\n\t * If this is a setter, the returned value is the type of the input argument of the setter.\n\t */\n\tType getType();\n\n /**\n * [InstanceType]\n *\n * @return null if the instance type metadata is not available or if the\n * instance type is not specified.\n */\n Type getInstanceType();\n\n\t/**\n\t * Is this read only?\n\t */\n\tboolean readOnly();\n\n /**\n\t *\n\t */\n\tboolean hasPublic();\n\n // metadata\n\n\t/**\n\t * [Inspectable]\n\t */\n\tInspectable getInspectable();\n\n\t/**\n\t * [CollapseWhiteSpace]\n\t */\n\tboolean collapseWhiteSpace();\n\n /**\n * [RichTextContent]\n */\n boolean richTextContent();\n\n\t/**\n\t * [Deprecated]\n\t */\n\tDeprecated getDeprecated();\n\n\t/**\n\t * [ChangeEvent]\n\t */\n\tboolean hasChangeEvent(String name);\n\n\n\t/**\n\t * [PercentProxy]\n\t */\n\tString getPercentProxy();\n}", "public String getStaticPropertyWatcherClass()\n {\n return staticPropertyWatcherClass;\n }", "public String runtimeProperty(String name) {\n if (_properties == null) {\n return null;\n }\n return _properties.get(name);\n }", "public static Props getProps() {\n return Props.create((PrinterActor.class));\n }", "public Map<String, Object> getProperties() {\n return properties;\n }", "public Map<String, Object> getProperties() {\n return properties;\n }", "public Map<String, Object> getProperties() {\n return properties;\n }", "public String getProperty(String name);", "public Object getProperty(String name) {\n return null;\n }", "public message.Figure.FigureData.FigureProperty getProperty() {\n return property_;\n }", "public Object getProperty(String name)\n {\n return ClassAnalyzer.getProperty(m_Source,name);\n }", "Property createProperty();", "public Map getProperties()\n {\n // Lazy compute properties\n if (properties == null)\n {\n ObjectNode parent = objectNode.getParent();\n if (parent == null)\n {\n this.properties = declaredPropertyMap;\n }\n else\n {\n Map properties = new HashMap();\n properties.putAll(parent.getObject().getProperties());\n properties.putAll(declaredPropertyMap);\n this.properties = properties;\n }\n\n //\n this.unmodifiableProperties = Collections.unmodifiableMap(properties);\n }\n\n //\n return unmodifiableProperties;\n }", "Object getProperty(String requestedProperty) {\n return properties.getProperty(requestedProperty);\n }", "public Dictionary<String, Object> getProperties();", "public synchronized Properties getProperties() {\n if (properties != null) {\n return properties;\n }\n Properties p = new Properties();\n if (propertiesFile != null && propertiesFile.isFile()) {\n try (InputStream in = new FileInputStream(propertiesFile)) {\n p.load(in);\n } catch (Exception e) {\n e.printStackTrace();\n // oh well!\n }\n }\n properties = p;\n return p;\n }", "PropertyReference createPropertyReference();", "String getProperty(String property);", "private RulesEngineProperties innerProperties() {\n return this.innerProperties;\n }", "public static ColorScheme getColorProperties() {\n \n return BASE_PROPERTIES;\n }", "public static ThreadedPmClientInstanceResolver get() {\n\t\t// synchronization :: rely on registry to return same impl\n\t\tif (instance == null) {\n\t\t\tinstance = Registry.impl(ThreadedPmClientInstanceResolver.class);\n\t\t}\n\t\treturn instance;\n\t}", "public Properties getValue() throws ContextInitializationException {\n PropertiesHolder propertiesRef = getReferencedProperties();\n if (propertiesRef != null) {\n return propertiesRef.getValue();\n }\n return null;\n }", "public Integer getPropertyClass()\r\n\t{\r\n\t\treturn propertyClass;\r\n\t}", "public ObjectProperties getObjectProperties();", "protected abstract String getPropertyValue(Server instance);", "public static com.tangosol.coherence.Component get_Instance()\n {\n return new com.tangosol.coherence.component.util.collections.WrapperMap.Values();\n }", "public Object getPropertySyncObject() {\n return propertySyncObject;\n }" ]
[ "0.6135157", "0.60876304", "0.60876304", "0.60410106", "0.5945684", "0.5787636", "0.5768529", "0.57281727", "0.56847966", "0.5629251", "0.56115854", "0.5566754", "0.55542517", "0.552307", "0.552123", "0.5513486", "0.55091774", "0.5488682", "0.5484748", "0.5470196", "0.5454063", "0.5452562", "0.54497445", "0.544862", "0.5434466", "0.5432235", "0.54099166", "0.5395188", "0.5376788", "0.5376685", "0.5374059", "0.5374059", "0.5374059", "0.5364181", "0.5358137", "0.5347715", "0.53438914", "0.5339365", "0.5333605", "0.53298736", "0.5311851", "0.5304458", "0.53016704", "0.52863425", "0.5284301", "0.5280554", "0.5277488", "0.5273707", "0.52690554", "0.52668715", "0.52562183", "0.5235284", "0.5228471", "0.5227846", "0.52228165", "0.52146286", "0.52117914", "0.52080476", "0.5207923", "0.5201385", "0.52008885", "0.51932716", "0.51917475", "0.51903856", "0.5184923", "0.5177618", "0.5170012", "0.51577485", "0.51545465", "0.5146709", "0.5145338", "0.5138358", "0.51229227", "0.5117313", "0.5116726", "0.51152843", "0.5115056", "0.51133907", "0.51133907", "0.51088715", "0.51030356", "0.5098634", "0.5095099", "0.5091784", "0.5089137", "0.5075916", "0.5074188", "0.5062294", "0.5062278", "0.50562245", "0.50442684", "0.50403756", "0.5039504", "0.50247097", "0.5021978", "0.5015017", "0.50115764", "0.5009426", "0.5007887", "0.5006838" ]
0.78688276
0
Gets time until request will timeout, if no response is received.
public int getResponseWaitTime() { return responseWaitTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getResponseTimeNsec();", "public int getTimeout();", "long getTimeout();", "int getTimeout();", "private void checkTimeout() {\n/* 169 */ if (this.socket != null) {\n/* */ \n/* 171 */ long i = this.keepaliveTimeoutMs;\n/* */ \n/* 173 */ if (this.listRequests.size() > 0)\n/* */ {\n/* 175 */ i = 5000L;\n/* */ }\n/* */ \n/* 178 */ long j = System.currentTimeMillis();\n/* */ \n/* 180 */ if (j > this.timeLastActivityMs + i)\n/* */ {\n/* 182 */ terminate(new InterruptedException(\"Timeout \" + i));\n/* */ }\n/* */ } \n/* */ }", "public int getResponseTimeOut()\n {\n return fResponseTimeOut;\n }", "public long GetTimeout() { return timeout; }", "long getResponseTimeSec();", "public static int getEventResponseTimeout() {\r\n return eventResponseTimeout.getValue();\r\n }", "boolean hasResponseTimeNsec();", "public long getTimeout() { return timeout; }", "public int getInCallTimeout();", "public int getTimeout() {\r\n return timeout;\r\n }", "public int getResponseTimeNsec() {\n return responseTimeNsec_;\n }", "public long getRequestTimeoutMillis()\n {\n return requestTimeoutMillis;\n }", "public int getTimeout() {\n return timeout;\n }", "public int getTimeout() {\n return params.getTimeout() * 1000;\n }", "public int getResponseTimeNsec() {\n return responseTimeNsec_;\n }", "boolean hasResponseTimeSec();", "Integer getStartTimeout();", "public int sendTimeout(){\n return 0; //TODO codavaj!!\n }", "public int getDelayedTimeout();", "public long getTimeout() {\n return timeout;\n }", "public long getTimeout() {\n return timeout;\n }", "public long getTimeout() {\n return timeout;\n }", "public int getTimeout() {\n\t\treturn (Integer)getObject(\"timeout\");\n\t}", "private int getPullingTimeout(HttpServletRequest request) {\n Integer clientPullingTimeout = Integer.parseInt(request.getHeader(Constants.PULLING_TIMEOUT_HEADER));\n return clientPullingTimeout - 1;\n }", "public int calcAcknowledgeTime()\n {\n return( TIMEOUT );\n }", "public int calcAcknowledgeTime()\n {\n return( TIMEOUT );\n }", "public int getNortpTimeout();", "public int explicitWait(){\n\t\tString time_out = null;\n\t\ttry {\n\t\t\ttime_out = new AutomationConfigurator().getTimeOut();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (time_out == null){\n\t\t\treturn default_timeout;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Integer.parseInt(time_out);\n\t\t}\n\t}", "int hardTimeout();", "public long getRequestTime() {\n return requestTime_;\n }", "int timeout();", "public static int getTimeOut() {\n\t\tTIME_OUT = 10;\n\t\treturn TIME_OUT;\n\t}", "public int getHardwareTimeout();", "public long readTimeout(){\n return 0l; //TODO codavaj!!\n }", "public long timeout(long timeout);", "public Duration timeout() {\n return this.timeout;\n }", "public long getRequestTime() {\n return requestTime_;\n }", "public long getResponseTimeSec() {\n return responseTimeSec_;\n }", "public int receiveTimeout(){\n return 0; //TODO codavaj!!\n }", "public static long getMaximumResponseTime() {\n return (long) maxResponseTime;\n }", "public long getTimeout() {\r\n return configuration.getTimeout();\r\n }", "private long getWaitTime() {\n long retVal = 1;\n long difference = System.currentTimeMillis() - myLastRefreshTime;\n if (difference < 75) {\n retVal = 75 - difference;\n }\n return (retVal);\n }", "public long responseTimeoutMillis() {\n return get(RESPONSE_TIMEOUT_MILLIS);\n }", "public long getResponseTimeSec() {\n return responseTimeSec_;\n }", "private void doWaitDueToLongResponse(BaseRequest request, long responseTime, String uri) {\n try {\n AgentConfig config = request.getLogUtil().getAgentConfig();\n long maxAgentResponseTime = config.getMaxAgentResponseTime();\n if (maxAgentResponseTime < responseTime) {\n long waitTime = Math.min(config.getMaxAgentWaitTime(), responseTime);\n LOG.warn(request.getLogUtil().getLogMessage(\"Response time to slow | delaying \" + waitTime + \" ms | url --> \" + uri, LogEventType.Script));\n Thread.sleep(waitTime);\n }\n } catch (InterruptedException e) {\n LOG.warn(\"Interrupted\", e);\n }\n }", "public int getTimeOut() {\n return timeOut;\n }", "BigInteger getResponse_time();", "boolean timedOut() {\n\treturn timedOut;\n }", "public int get_serverResponseTimeout() {\n\t\treturn _serverResponseTimeout;\n\t}", "long getRetrievedTime();", "@Override\n protected void onRequestTimeout(Tuple request) {\n }", "int getWaitTime();", "public int getReadTimeout();", "private String tryGetResponse(Request request) throws IOException {\n long startTime = System.currentTimeMillis();\n Response response;\n String responseBody;\n do {\n response = client.newCall(request).execute();\n responseBody = response.body().string();\n System.out.println(\"Got response code \" + response.code());\n } while (response.code() != 200\n && System.currentTimeMillis() - startTime < TimeUnit.SECONDS.toMillis(30));\n\n assertEquals(\n 200, response.code(), \"Unexpected response code. Got this response: \" + responseBody);\n return responseBody;\n }", "public TestTimeout getTimeout() {\n return timeout;\n }", "public long getStatusTimeLeft()\r\n {\r\n long timeLeft = statusTimeout - System.currentTimeMillis();\r\n if ( timeLeft < 0 )\r\n {\r\n timeLeft = 0;\r\n }\r\n return timeLeft;\r\n }", "public Duration getHttpRequestReadTimeout()\n {\n return httpRequestReadTimeout;\n }", "public int getDefaultTimeout() {\n return defaultTimeout;\n }", "void timedOut();", "public boolean hasResponseTimeNsec() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "final Long getTimeoutValue()\n/* */ {\n/* 137 */ return this.timeout;\n/* */ }", "public int getSipTransportTimeout();", "public long getExpectationTimeout() {\n return expectationTimeout;\n }", "public boolean hasResponseTimeNsec() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "@Override\r\n public long getTimeouts()\r\n {\n return 0;\r\n }", "public long getConnectionWaitTime()\n {\n return _connectionWaitTime;\n }", "public long getTimeoutInMilliseconds() {\n return timeoutInMilliseconds;\n }", "public int getTIME_OUT() {\n\t\treturn TIME_OUT;\n\t}", "public void processTransmissionTimeout() {\n //to be overridden by extending classes\n }", "public int getIncTimeout();", "public void checkTime() throws InterruptedByTimeoutException\n {\n if (System.currentTimeMillis() - this.start > TIME)\n throw new InterruptedByTimeoutException();\n }", "Future timeoutIn(long timeout, TimeUnit timeUnit);", "public void handleTimeout();", "long getLastTimeRequestSentMillis() {\n\t\treturn lastTimeRequestSentMillis;\n\t}", "public YangUInt8 getRequestTimerValue() throws JNCException {\n YangUInt8 requestTimer = (YangUInt8)getValue(\"request-timer\");\n if (requestTimer == null) {\n requestTimer = new YangUInt8(\"5\"); // default\n }\n return requestTimer;\n }", "double getClientTime();", "public void requestTimeout(Pdu packet);", "@Test\n public void testSocketTimeout(){\n CloseableHttpClient client = HttpClients.createDefault();\n HttpGet httpGet = new HttpGet(URL + \"/http/testSocketTimeout\");\n RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(3500).build();\n httpGet.setConfig(requestConfig);\n try {\n CloseableHttpResponse response = client.execute(httpGet);\n System.out.println(EntityUtils.toString(response.getEntity()));\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "public int getSocketTimeout()\n {\n return _socketTimeout;\n }", "public int getWaitedTime() {\n\t\treturn this.waitedTime;\n\t}", "public org.apache.axis.types.UnsignedInt getTimeout() {\n return timeout;\n }", "public int getTimeoutInSeconds() {\n return timeoutInSeconds;\n }", "private static void timeout(String user, int time) { sendMessage(\"/timeout \" + user + \" \" + time); }", "@Override\n\t\t\tpublic Long answer() throws Throwable {\n\t\t\t\treturn time;\n\t\t\t}", "public int getTimeOut()\r\n\t{\r\n\t\tString time = JOptionPane.showInputDialog(null, \"Please enter the timeout amount in milliseconds: \", \"Set Timeout\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t//Check to see if the entry was invalid\r\n\t\twhile(!isNumber(time))\r\n\t\t\ttime = JOptionPane.showInputDialog(null, \"You must enter a NUMBER. Please re-enter the timeout time in milliseconds: \", \"Set Timeout\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\r\n\t\treturn Integer.parseInt(time);\r\n\t}", "DurationTracker timeSpentTaskWait();", "public LWTRTPdu timeout() throws IncorrectTransitionException;", "public Duration getClientTimeout()\n {\n return clientTimeout;\n }", "int getExpireTimeout();", "float getDuration() throws InterruptedException, ConnectionLostException;", "RequestSender onTimeout(long timeout, Runnable runnable);", "int getQueryTimeNsec();", "public static long getSessionTimeOut()\n {\n return nSessionTimeOut;\n }", "public int getTimeout() {\r\n\t\treturn connTimeout;\r\n\t}", "public int getConnTimeout()\n {\n return _connTimeout;\n }", "public Integer timeoutSeconds() {\n return this.timeoutSeconds;\n }", "@Override\n public Duration getWait() {\n return duration;\n }" ]
[ "0.73397994", "0.7241042", "0.7227706", "0.72034425", "0.70536786", "0.6999004", "0.69704264", "0.6962321", "0.6889008", "0.6883967", "0.68066305", "0.68011", "0.67071664", "0.67023057", "0.66998416", "0.66771567", "0.6623039", "0.6615277", "0.660834", "0.6511055", "0.64672303", "0.64413434", "0.6424147", "0.6424147", "0.6424147", "0.6400507", "0.6400446", "0.6397661", "0.6397661", "0.63624185", "0.63368267", "0.6308797", "0.63035417", "0.63000286", "0.6299236", "0.6292904", "0.62738377", "0.6264716", "0.62549675", "0.6240771", "0.62320465", "0.6228931", "0.620984", "0.6205654", "0.6190873", "0.61900127", "0.61517423", "0.6132467", "0.61304283", "0.60798925", "0.60417336", "0.6030078", "0.6012474", "0.600644", "0.6002632", "0.60009253", "0.5990315", "0.59692943", "0.5964894", "0.59606636", "0.59555596", "0.5934287", "0.5924577", "0.5912091", "0.58994985", "0.5899454", "0.5890671", "0.5869703", "0.58635855", "0.5859354", "0.5831429", "0.5829862", "0.58285713", "0.5823566", "0.58123", "0.58088785", "0.5798687", "0.5786012", "0.578354", "0.5781204", "0.5766706", "0.57604647", "0.57587546", "0.57587504", "0.5743194", "0.57413435", "0.57365155", "0.5732361", "0.5729942", "0.57297844", "0.5710982", "0.5703855", "0.56835544", "0.56759685", "0.5667162", "0.566353", "0.5650208", "0.5645597", "0.564145", "0.5638977" ]
0.64982116
20
Sets time until request will timeout, if no response is received.
public void setResponseWaitTime(int responseWaitTime) { this.responseWaitTime = responseWaitTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setTimedOut() {\n\t\tthis.timedOut.set(true);\n\t}", "public void setResponseTimeOut(int timeOut)\n {\n fResponseTimeOut = timeOut;\n }", "@Override\n protected void onRequestTimeout(Tuple request) {\n }", "protected void setTimeout() {\r\n\t\tTimeout timeout = new Timeout();\r\n\t\tt.schedule(timeout, TIMEOUT);\r\n\t}", "private void checkTimeout() {\n/* 169 */ if (this.socket != null) {\n/* */ \n/* 171 */ long i = this.keepaliveTimeoutMs;\n/* */ \n/* 173 */ if (this.listRequests.size() > 0)\n/* */ {\n/* 175 */ i = 5000L;\n/* */ }\n/* */ \n/* 178 */ long j = System.currentTimeMillis();\n/* */ \n/* 180 */ if (j > this.timeLastActivityMs + i)\n/* */ {\n/* 182 */ terminate(new InterruptedException(\"Timeout \" + i));\n/* */ }\n/* */ } \n/* */ }", "public void setTimeout(int timeout);", "public void setTimeout(int _timeout) {\n if (timeout < 0)\n return;\n timeout = _timeout;\n }", "public void setTimeout(double timeout){\n this.timeout = timeout;\n }", "T setStartTimeout(Integer timeout);", "public void resetTimeout(){\n this.timeout = this.timeoutMax;\n }", "public long timeout(long timeout);", "private static void timeout(String user, int time) { sendMessage(\"/timeout \" + user + \" \" + time); }", "public void setTimeOut(int value) {\n this.timeOut = value;\n }", "public void setTimeout(int timeout) {\r\n this.timeout = timeout;\r\n }", "protected void setTimeout(Integer connectionTimeoutInMillis, Integer receiveTimeoutInMillis) {\n ((BindingProvider) movilizerCloud).getRequestContext().put(CONNECTION_TIMEOUT_KEY,\n String.valueOf(connectionTimeoutInMillis));\n\n //Set timeout until the response is received\n ((BindingProvider) movilizerCloud).getRequestContext().put(RECEIVE_TIMEOUT_KEY,\n String.valueOf(receiveTimeoutInMillis));\n\n }", "public void requestTimeout(Pdu packet);", "long getTimeout();", "public void setTimeout( int timeout ) {\n this.timeout = timeout;\n }", "public void setTimeout(int timeout) {\r\n\t\tconnTimeout = timeout;\r\n\t}", "void setTimeout(@Nullable Duration timeout);", "public void setTimeout(int timeout) {\n this.timeout = timeout;\n }", "@Test\r\n public void testSetTimeout() {\r\n // Not required\r\n }", "public int sendTimeout(){\n return 0; //TODO codavaj!!\n }", "public void setTimeout(long timeout) {\n this.timeout = timeout;\n }", "public void setTimeout(long timeout) {\n this.timeout = timeout;\n }", "public void setTimeout(Integer timeout) {\n\t\tthis.timeout = timeout;\n\t}", "protected int minTimeout() { return 500; }", "void setStartTimeout(int startTimeout);", "private void doWaitDueToLongResponse(BaseRequest request, long responseTime, String uri) {\n try {\n AgentConfig config = request.getLogUtil().getAgentConfig();\n long maxAgentResponseTime = config.getMaxAgentResponseTime();\n if (maxAgentResponseTime < responseTime) {\n long waitTime = Math.min(config.getMaxAgentWaitTime(), responseTime);\n LOG.warn(request.getLogUtil().getLogMessage(\"Response time to slow | delaying \" + waitTime + \" ms | url --> \" + uri, LogEventType.Script));\n Thread.sleep(waitTime);\n }\n } catch (InterruptedException e) {\n LOG.warn(\"Interrupted\", e);\n }\n }", "public void setTimeout(int timeout) {\r\n\t\tthis.TIMEOUT = timeout;\r\n\t}", "RequestSender onTimeout(long timeout, Runnable runnable);", "public int getTimeout();", "public void clearRemoteRequestTimeout() {\n\t\tsetRemoteRequestTimeout(\"0\");\n\t}", "public void setTimeout(long timeout)\r\n\t{\r\n\t\tthis.timeout = timeout;\r\n\t}", "public long GetTimeout() { return timeout; }", "public void setTimeout (int timeout) {\n\tif (timeout >= 0)\n\t call.setTimeout (new Integer (timeout));\n }", "int getTimeout();", "void setTimeout(long timeoutInNanos);", "public void setTimeout(final long timeout);", "public long getTimeout() { return timeout; }", "public void processTransmissionTimeout() {\n //to be overridden by extending classes\n }", "public void setTimeout(final String timeout);", "protected void pktTimeout() {}", "public abstract void onTimeout();", "public void onTimeout();", "public void handleTimeout();", "public void setTimeout(Long value) {\r\n timeout = value;\r\n incompatibleWithSpawn |= timeout != null;\r\n }", "protected void onTimeout() {\n }", "public void setDelayedTimeout(int seconds);", "public void setTimeout(long timeout) {\n\t\tthis.timeout = timeout;\n\t}", "public int getResponseTimeOut()\n {\n return fResponseTimeOut;\n }", "protected int maxTimeout() { return 15*1000*1000; }", "public static void setRequestTimeout(long requestTimeoutMs) {\n DebeziumResource.requestTimeoutMs = Duration.ofMillis(requestTimeoutMs);\n }", "public void setTimeout(int newTimeout) {\n this.timeout = newTimeout;\n }", "void timedOut();", "public void setInCallTimeout(int seconds);", "private void setupTimeoutJob() {\n eventLoopGroup.scheduleAtFixedRate(() -> {\n\n /*\n * We cannot wait for the request infinitely, but we also cannot remove the object\n * from the queue - FIXME in case of situation when queue of waiting objects grow to X we have to\n * brake connection.\n */\n\n Iterator<RedisQueryRequest> iterator = queue.iterator();\n int i = 0;\n long timeNow = System.currentTimeMillis();\n /*\n * we are tracking 'i' because we want to do only some work, not all the work.\n * we cannot take too much time in timeout checking.\n */\n\n while (iterator.hasNext() && i < 100) {\n RedisQueryRequest current = iterator.next();\n if (current.isTimeouted()) {\n //already been here.\n continue;\n }\n long whenRequestStarted = current.getRequestTimeStart();\n long requestTimeUntilNow = timeNow - whenRequestStarted;\n if (requestTimeUntilNow >= 1000) {\n LOG.error(\"Timeouted request detected\");\n current.markTimeouted();\n current.getCompletableFuture().completeExceptionally(new TimeoutException(\"Timeout occurred.\"));\n }\n\n i++;\n }\n\n }, 100, 100, TimeUnit.MILLISECONDS);\n }", "public void setTimeout(long t) {\n StepTimeout = t;\n }", "public long getRequestTimeoutMillis()\n {\n return requestTimeoutMillis;\n }", "public void setTimeOut(long timeOut) {\n _timeOut = timeOut;\n }", "int hardTimeout();", "public void setTimeout(final int timeout) {\n this.timeout = timeout;\n }", "@Override\n public void onTimeout(TimeValue timeout) {\n run();\n }", "public void setTimeout(org.apache.axis.types.UnsignedInt timeout) {\n this.timeout = timeout;\n }", "public int getDelayedTimeout();", "public final void setResponseTime(java.lang.Integer responsetime)\r\n\t{\r\n\t\tsetResponseTime(getContext(), responsetime);\r\n\t}", "protected void initialize() {\n this.setTimeout(timeoutTime);\n }", "public void setTimeouted() {\n this.timeouted = true;\n }", "public void setSendTimeout(int sendTimeout){\n return; //TODO codavaj!!\n }", "public void setNortpTimeout(int seconds);", "public int getTimeout() {\r\n return timeout;\r\n }", "public int getDefaultTimeout() {\n return defaultTimeout;\n }", "@Override\n\tpublic void setOpTimeout(long arg0) {\n\n\t}", "public void setHttpClientRequestTimeout(int timeout) {\n this.requestTimeout = timeout;\n this.customized = true;\n }", "public int getTimeout() {\n return timeout;\n }", "void setOperationTimeout(int timeout) throws RemoteException;", "static void timeout(AnyRpcCallback<APIResponse> callback) {\n APIResponse apiResponse =\n APIResponse.newBuilder()\n .setError(APIResponse.ERROR.RPC_ERROR_VALUE)\n .setRpcError(RpcError.DEADLINE_EXCEEDED)\n .build();\n callback.success(apiResponse);\n // This is \"success\" in the sense that we got back a response, but one that will provoke\n // an ApiProxy.ApiDeadlineExceededException.\n }", "boolean hasResponseTimeNsec();", "public final synchronized void setConnectionTimeout(final int timeout) {\n HttpConnectionParams.setConnectionTimeout(params, timeout);\n }", "@Test\n public void testSocketTimeout(){\n CloseableHttpClient client = HttpClients.createDefault();\n HttpGet httpGet = new HttpGet(URL + \"/http/testSocketTimeout\");\n RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(3500).build();\n httpGet.setConfig(requestConfig);\n try {\n CloseableHttpResponse response = client.execute(httpGet);\n System.out.println(EntityUtils.toString(response.getEntity()));\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "public void setConnectionTimeOut(int connectionTimeOut) {\n this.connectionTimeOut = connectionTimeOut;\n }", "Future timeoutIn(long timeout, TimeUnit timeUnit);", "int timeout();", "protected void initialize() {\n \tsetTimeout(timeInSeconds);\n }", "public Builder setResponseTimeNsec(int value) {\n bitField0_ |= 0x00001000;\n responseTimeNsec_ = value;\n onChanged();\n return this;\n }", "@Override\r\n public long getTimeouts()\r\n {\n return 0;\r\n }", "@Override\n\tpublic void setConnectTimeout(long arg0) {\n\n\t}", "boolean hasResponseTimeSec();", "public static int getEventResponseTimeout() {\r\n return eventResponseTimeout.getValue();\r\n }", "public void setConnectionTimeout(Duration connectionTimeout) {\n this.connectionTimeout = connectionTimeout;\n }", "public void enquireTimeout(Long sessionId);", "public void setDefaultTimeout(int defaultTimeout) {\n this.defaultTimeout = defaultTimeout;\n }", "void resetTimeout() {\n timer.cancel();\n timer = getTimer();\n timer.schedule(getTimerTask(), this.timeout);\n }", "public void opponentResponseCountdown() {\n responseTimer = 101;\n opponentResponseSwitch = true;\n }", "public int getTimeout() {\n return params.getTimeout() * 1000;\n }", "private void checkTimeout() {\n val timeout = config.getInt(\"timeout\");\n\n checkArgument(timeout >= 1000, \"timeout is less than 1000!\");\n }", "public void setQueryTimeout(long timeout) {\n queryTimeout = timeout;\n }", "public void checkTime() throws InterruptedByTimeoutException\n {\n if (System.currentTimeMillis() - this.start > TIME)\n throw new InterruptedByTimeoutException();\n }", "protected void initialize() {\n setTimeout(duration);\n }", "@Override\n default UserpostPrx ice_timeout(int t)\n {\n return (UserpostPrx)_ice_timeout(t);\n }", "protected void touchTimeoutCounter()\n\t{\n\t this.lastAccessTime = System.currentTimeMillis();\n\t thread.interrupt ();\n\t}" ]
[ "0.688445", "0.67850095", "0.6698147", "0.6687946", "0.6654187", "0.66359913", "0.6626198", "0.65838015", "0.6572797", "0.65478253", "0.6521391", "0.6423225", "0.64213127", "0.6407201", "0.64054704", "0.64014244", "0.6379402", "0.6357512", "0.63545406", "0.6337452", "0.6334437", "0.62824947", "0.62778854", "0.6271169", "0.6271169", "0.62664765", "0.6263707", "0.6260608", "0.62591517", "0.625787", "0.62451094", "0.62391675", "0.6224284", "0.6224165", "0.6212119", "0.6198528", "0.61982566", "0.6160695", "0.61594695", "0.6144359", "0.6141355", "0.61347485", "0.6131103", "0.61275715", "0.6126788", "0.6125912", "0.6120591", "0.61157894", "0.6109447", "0.608815", "0.6068076", "0.6064153", "0.60396135", "0.6019969", "0.6010563", "0.60035735", "0.60022634", "0.60020703", "0.5998067", "0.5997671", "0.5995112", "0.599448", "0.5964361", "0.59531325", "0.5950841", "0.5939781", "0.59393394", "0.59364784", "0.5936327", "0.5926566", "0.59225255", "0.589687", "0.5887926", "0.5880111", "0.5879327", "0.5874996", "0.58707947", "0.586997", "0.5857005", "0.58358", "0.5825575", "0.5813204", "0.5806574", "0.57967335", "0.57966286", "0.5783622", "0.5779775", "0.5776549", "0.57728755", "0.5771354", "0.57665825", "0.5757835", "0.57524353", "0.57478356", "0.5746836", "0.5723016", "0.57218957", "0.57191265", "0.5716147", "0.5705901", "0.57043546" ]
0.0
-1
Gets size of message id buffer. The buffer is used to ignore multiple received udp messages.
public int getMessageIdBufferSize() { return msgIdBufferSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size() { return buffer.length; }", "public int getReceiveBufferSize() {\n return soRcvBuf;\n }", "public int getBufferSize() {\n\t\treturn buffer.length;\n\t}", "public int getMessageIdCount() {\n return messageId_.size();\n }", "public void setMessageIdBufferSize(int msgIdBufferSize) {\r\n\t\tthis.msgIdBufferSize = msgIdBufferSize;\r\n\t}", "public int getBufferSize() {\n return count;\n }", "public long length() {\r\n return 1 + 4 + buffer.length;\r\n }", "public int getReceiveBufferSize()\r\n/* 99: */ {\r\n/* 100: */ try\r\n/* 101: */ {\r\n/* 102:131 */ return this.javaSocket.getReceiveBufferSize();\r\n/* 103: */ }\r\n/* 104: */ catch (SocketException e)\r\n/* 105: */ {\r\n/* 106:133 */ throw new ChannelException(e);\r\n/* 107: */ }\r\n/* 108: */ }", "int getBufferSize();", "public int getLength() {\r\n\t\treturn messageData.length;\r\n\t}", "int getMessageIdCount();", "public int getIdSize() {\n\t\treturn LongConverter.SIZE;\n\t}", "public int amountOfBuffs() {\r\n return buffs.size();\r\n }", "public int getBufferSize() {\n\t\treturn 0;\n\t}", "long getFullMessageLength();", "public int getMessageIdCount() {\n return instance.getMessageIdCount();\n }", "public int getPayloadLength() {\n return buffer.limit() - 12;\n }", "com.google.protobuf.ByteString\n getMessageIdBytes();", "public int getRecordSize() {\n\t\treturn this.buffer.getRecordSize();\n\t\t}", "private static int getBufferSize() {\n\t\tint result = -1;\n\n\t\t// see if the system property is set\n\t\tString property = System.getProperty(BUFFER_SIZE_PROPERTY);\n\t\tif (property != null && !property.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tresult = Integer.parseInt(property);\n\t\t\t}\n\t\t\tcatch (NumberFormatException e) {\n\t\t\t\tLOGGER.log(Level.WARNING, \"invalid buffer size: \" + property);\n\t\t\t}\n\t\t}\n\n\t\t// overrule negative or unspecified values with a 4 MB buffer (yes, I know that's a lot, but we want\n\t\t// quality output, right?)\n\t\tif (result < 0) {\n\t\t\tresult = 4 * 1024 * 1024;\n\t\t}\n\n\t\treturn result;\n\t}", "public int getBufferSize() {\n return this.response.getBufferSize();\n }", "public int getBufferLength() {\n return this.bufferLength;\n }", "public int getMaxBufferSize() {\n return maxBufferSize;\n }", "@Override\n public abstract long getReceivedBytesCount();", "public int size() {\n return 4 + value.length + BufferUtil.paddingLength(value.length, 4);\n }", "public long getSize() {\n\t\treturn this.payloadSize; // UTF-16 => 2 bytes per character\n\t}", "public int getMaxBufferSize() {\r\n return maxBufferSize;\r\n }", "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "public AsyncResult<Integer> requestNumberOfMessages() {\r\n ServiceDiscoveryManager serviceDiscoveryManager = xmppSession.getManager(ServiceDiscoveryManager.class);\r\n return serviceDiscoveryManager.discoverInformation(null, OfflineMessage.NAMESPACE).thenApply(infoDiscovery -> {\r\n if (!infoDiscovery.getExtensions().isEmpty()) {\r\n DataForm dataForm = infoDiscovery.getExtensions().get(0);\r\n if (dataForm != null) {\r\n for (DataForm.Field field : dataForm.getFields()) {\r\n if (\"number_of_messages\".equals(field.getVar())) {\r\n String numberOfMessages = field.getValues().get(0);\r\n return Integer.valueOf(numberOfMessages);\r\n }\r\n }\r\n }\r\n }\r\n return 0;\r\n });\r\n }", "public native long getReceivedByteCount()\n throws IOException, IllegalArgumentException;", "public final int getMessageSize() {\n if (length == UNKNOWN_LENGTH) {\n throw new ProtocolException();\n }\n\n return length;\n }", "public int getBufferLength() {\n return data.length;\n }", "public int nioBufferCount()\r\n/* 295: */ {\r\n/* 296:309 */ return 1;\r\n/* 297: */ }", "public int getTotalNumOfMsg(){ return allmessage.size();}", "private int zzMaxBufferLen() {\n return Integer.MAX_VALUE;\n }", "private int zzMaxBufferLen() {\n return Integer.MAX_VALUE;\n }", "public static int size_moteId() {\n return (16 / 8);\n }", "public abstract int getMessageSize();", "public float getSize() {\n return bufSize;\n }", "public static int size_receiverNodeID() {\n return (8 / 8);\n }", "@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 }", "int getBytesInBufferAvailable() {\n if (this.count == this.pos) return 0;\n else return this.buf.length - this.pos;\n }", "public static int sizeBits_moteId() {\n return 16;\n }", "public int getPacketSize(){\r\n\t\treturn 8 + data.length;\r\n\t}", "private int getMessageCount() {\r\n return mMessages.length;\r\n }", "public int getMsgCount() {\n return msg_.size();\n }", "public int getMsgCount() {\n return msg_.size();\n }", "private static int parseLength(ByteBuffer buffer) {\n short length = buffer.getShort();\n return (int)length;\n }", "public int getMessagesCount() {\n return messages_.size();\n }", "public static int sizeBits_receiverNodeID() {\n return 8;\n }", "int getMsgCount();", "int getMsgCount();", "int getReceivingMinorFragmentIdCount();", "public int getSize() throws MessagingException {\n/* */ try {\n/* 111 */ synchronized (this) {\n/* */ \n/* 113 */ if (this.msgSize > 0) {\n/* 114 */ return this.msgSize;\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 132 */ if (this.headers == null) {\n/* 133 */ loadHeaders();\n/* */ }\n/* 135 */ synchronized (this) {\n/* 136 */ if (this.msgSize < 0)\n/* 137 */ this.msgSize = this.folder.getProtocol().list(this.msgnum) - this.hdrSize; \n/* 138 */ return this.msgSize;\n/* */ } \n/* 140 */ } catch (EOFException eex) {\n/* 141 */ this.folder.close(false);\n/* 142 */ throw new FolderClosedException(this.folder, eex.toString());\n/* 143 */ } catch (IOException ex) {\n/* 144 */ throw new MessagingException(\"error getting size\", ex);\n/* */ } \n/* */ }", "public int getMessagesCount() {\n if (messagesBuilder_ == null) {\n return messages_.size();\n } else {\n return messagesBuilder_.getCount();\n }\n }", "public int getMessageCount() {\n return message_.size();\n }", "public int getMessageCount() {\n return message_.size();\n }", "public int getMessageCount() {\n return message_.size();\n }", "public int getMessageCount() {\n return message_.size();\n }", "public int getMessageCount() {\n return message_.size();\n }", "public int getMessageCount() {\n if (messageBuilder_ == null) {\n return message_.size();\n } else {\n return messageBuilder_.getCount();\n }\n }", "public int getMessageCount() {\n if (messageBuilder_ == null) {\n return message_.size();\n } else {\n return messageBuilder_.getCount();\n }\n }", "public int getMessageCount() {\n if (messageBuilder_ == null) {\n return message_.size();\n } else {\n return messageBuilder_.getCount();\n }\n }", "public int getMessageCount() {\n if (messageBuilder_ == null) {\n return message_.size();\n } else {\n return messageBuilder_.getCount();\n }\n }", "public int getMessageCount() {\n if (messageBuilder_ == null) {\n return message_.size();\n } else {\n return messageBuilder_.getCount();\n }\n }", "public String getSizeMessage() {\n\t\treturn sizeMessage;\n\t}", "public int getMessagesCount() {\n return messages_.size();\n }", "public static int size_reply() {\n return (8 / 8);\n }", "com.google.protobuf.Int32Value getSize();", "private int getBufferSize() {\n int maxBandOff = bandOffsets[0];\n for (int i = 1; i < bandOffsets.length; i++) {\n maxBandOff = Math.max(maxBandOff, bandOffsets[i]);\n }\n\n if (maxBandOff < 0 || maxBandOff > (Integer.MAX_VALUE - 1)) {\n throw new IllegalArgumentException(\"Invalid band offset\");\n }\n\n if (pixelStride < 0 || pixelStride > (Integer.MAX_VALUE / width)) {\n throw new IllegalArgumentException(\"Invalid pixel stride\");\n }\n\n if (scanlineStride < 0 || scanlineStride > (Integer.MAX_VALUE / height)) {\n throw new IllegalArgumentException(\"Invalid scanline stride\");\n }\n\n int size = maxBandOff + 1;\n\n int val = pixelStride * (width - 1);\n\n if (val > (Integer.MAX_VALUE - size)) {\n throw new IllegalArgumentException(\"Invalid pixel stride\");\n }\n\n size += val;\n\n val = scanlineStride * (height - 1);\n\n if (val > (Integer.MAX_VALUE - size)) {\n throw new IllegalArgumentException(\"Invalid scan stride\");\n }\n\n size += val;\n\n return size;\n }", "public final int size()\n\t{\n\t\tif (messages == null)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn messages.size();\n\t\t}\n\t}", "public int getMessagesCount() {\n if (messagesBuilder_ == null) {\n return messages_.size();\n } else {\n return messagesBuilder_.getCount();\n }\n }", "public int getSendBufferSize()\r\n/* 111: */ {\r\n/* 112: */ try\r\n/* 113: */ {\r\n/* 114:140 */ return this.javaSocket.getSendBufferSize();\r\n/* 115: */ }\r\n/* 116: */ catch (SocketException e)\r\n/* 117: */ {\r\n/* 118:142 */ throw new ChannelException(e);\r\n/* 119: */ }\r\n/* 120: */ }", "public long getIdMessage() {\r\n\t\treturn idMessage;\r\n\t}", "int getServerPayloadSizeBytes();", "public int getMarshalledSize()\n{\n int marshalSize = 0; \n\n marshalSize += recordType.getMarshalledSize();\n marshalSize += changeIndicator.getMarshalledSize();\n marshalSize += entityType.getMarshalledSize();\n marshalSize += 2; // padding\n marshalSize += 4; // padding1\n\n return marshalSize;\n}", "public final int size()\r\n/* 41: */ {\r\n/* 42:215 */ long after = lvConsumerIndex();\r\n/* 43: */ for (;;)\r\n/* 44: */ {\r\n/* 45:219 */ long before = after;\r\n/* 46:220 */ long currentProducerIndex = lvProducerIndex();\r\n/* 47:221 */ after = lvConsumerIndex();\r\n/* 48:222 */ if (before == after)\r\n/* 49: */ {\r\n/* 50:224 */ long size = currentProducerIndex - after >> 1;\r\n/* 51:225 */ break;\r\n/* 52: */ }\r\n/* 53: */ }\r\n/* 54: */ long size;\r\n/* 55:230 */ if (size > 2147483647L) {\r\n/* 56:232 */ return 2147483647;\r\n/* 57: */ }\r\n/* 58:236 */ return (int)size;\r\n/* 59: */ }", "public native long getReceivedPacketCount()\n throws IOException, IllegalArgumentException;", "public synchronized long size() {\n\t\treturn size;\n\t}", "public int getPacketLength() {\n return TfsConstant.INT_SIZE * 3 + failServer.size() * TfsConstant.LONG_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 }", "com.google.protobuf.Int32ValueOrBuilder getSizeOrBuilder();", "public int getDataSize() {\n\t\treturn (int)this.getSize(data);\n\t}", "public int getOutgoingQueueSize();", "public static int size_p_sendts() {\n return (32 / 8);\n }", "@Override\n\tpublic int getBufferSize() {\n\t\treturn 0;\n\t}", "public synchronized int size() {\r\n return size;\r\n }", "public int getLovDataByteSize() {\n\t\treturn 0; // sometimes first 4 bytes give the length of data + 4 bytes for number\n\t}", "@SuppressWarnings( \"unused\" )\n public int capacity() {\n return buffer.capacity() - buffer.limit();\n }", "public int getLobbyIdCount() {\n return lobbyId_.size();\n }", "int getNetTransferMsgsCount();", "com.google.protobuf.ByteString\n getMessageInfoIDBytes();", "@Override\n public int numberOfMessages() {\n return messages.size();\n }", "protected abstract long getCurrentBufferCapacity(long paramLong);", "public int getSize()\n\t{\n\t\treturn bytes.length;\n\t}", "public final int getRecordSize()\n\t{\n\t\treturn tarBuffer.getRecordSize();\n\t}", "public int numberOfBytes() {\n return this.data.size();\n }", "public int getSize() {\n return this.serialize().limit();\n }" ]
[ "0.6648511", "0.6608338", "0.64392644", "0.6154838", "0.6140418", "0.61139953", "0.60217637", "0.60026115", "0.59509647", "0.5916576", "0.58626235", "0.58384013", "0.58029157", "0.5792464", "0.57580256", "0.5753231", "0.5733751", "0.5705315", "0.5648921", "0.564354", "0.55867654", "0.5581565", "0.5575532", "0.5571503", "0.5556458", "0.55506045", "0.554743", "0.5544942", "0.5544942", "0.5544942", "0.5533631", "0.55305636", "0.5528667", "0.5518814", "0.5504777", "0.5497065", "0.5496036", "0.5496036", "0.5492487", "0.5487502", "0.5483884", "0.5477997", "0.5477187", "0.5467215", "0.5464722", "0.5451967", "0.5433794", "0.5419992", "0.5419992", "0.5419608", "0.5406518", "0.5406474", "0.5399894", "0.5399894", "0.53901005", "0.5386449", "0.53791726", "0.5363475", "0.5363475", "0.5363475", "0.5363475", "0.5363475", "0.5363457", "0.5363457", "0.5363457", "0.5363457", "0.5363457", "0.53612286", "0.5356135", "0.5339963", "0.5338237", "0.5336848", "0.5336316", "0.5331811", "0.53127366", "0.5296603", "0.52788055", "0.52751464", "0.5274546", "0.5273818", "0.5258209", "0.52201587", "0.5216106", "0.52134585", "0.5208631", "0.52060914", "0.5201781", "0.5198428", "0.5190314", "0.51866484", "0.518484", "0.51839864", "0.51747465", "0.5166651", "0.51659656", "0.5164388", "0.51641405", "0.5164032", "0.51459014", "0.51456153" ]
0.76273584
0
Sets size of message id buffer. The buffer is used to ignore multiple received udp messages.
public void setMessageIdBufferSize(int msgIdBufferSize) { this.msgIdBufferSize = msgIdBufferSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMessageIdBufferSize() {\r\n\t\treturn msgIdBufferSize;\r\n\t}", "@Override\n\tpublic void setBufferSize(int size) {\n\t}", "void setStreamBuffer(int size) {\r\n\t\tif(size>0)\r\n\t\t\tbuffer = new byte[size];\r\n\t\telse\r\n\t\t\tbuffer = new byte[this.size];\r\n\t}", "void setBufferSize(int bufferSize);", "public void setBufferSize(int bufferSize) {\n this.bufferSize = bufferSize;\n }", "private void fillReceiveBuffer(final int requestedSize) {\n ByteBuffer readBuffer = receiveBuffer;\n if (requestedSize > receiveBuffer.capacity()) {\n readBuffer = socketService.getByteBuffer(requestedSize);\n readBuffer.put(receiveBuffer).flip();\n socketService.releaseByteBuffer(receiveBuffer);\n }\n receiveBuffer = null;\n socketHandle.read(readBuffer).addDeferrable(this, true);\n }", "@Override\n public void setBufferSize(int arg0) {\n\n }", "public void setSendBufferSize(int bufferSize) {\n this.bufferSize = bufferSize;\n }", "private void createIntBuffer(long sizeOfBuffer) {\n\t\t\tFile bufferFile = createMappedBufferFile();\n\t\t\ttry {\n\t\t\t\trandomAccessFile = new RandomAccessFile(bufferFile,\n\t\t\t\t\t\treadWriteMode);\n\t\t\t\toutChan = randomAccessFile.getChannel();\n\t\t\t\tlong size = (sizeOfBuffer > 0) ? sizeOfBuffer\n\t\t\t\t\t\t: MAXIMUM_BYTES_PER_BLOCK;\n\t\t\t\tintBuffer = outChan.map(MapMode.READ_WRITE, 0, size)\n\t\t\t\t\t\t.asIntBuffer();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public Server(int id, long elementsToRemove, Buffer buffer) {\n this.id = id + 1;\n this.buffer = buffer;\n bufferCapacity = buffer.getBufferCapacity();\n this.elementsToRemove = elementsToRemove;\n }", "public void setBufferSize(int size) {\n this.response.setBufferSize(size);\n }", "public Builder setMessageID(long value) {\n bitField0_ |= 0x00000800;\n messageID_ = value;\n onChanged();\n return this;\n }", "public void setBufferSize(int i) {\n\n\t}", "public Builder clearMessageID() {\n bitField0_ = (bitField0_ & ~0x00000800);\n messageID_ = -1L;\n onChanged();\n return this;\n }", "private void clearMessageId() {\n messageId_ = emptyLongList();\n }", "private void resizeBuffer(int size) {\n if (size > m_maxImgBufferSize) {\n if (size > MAX_IMG_SIZE_BYTES) {\n size = MAX_IMG_SIZE_BYTES;\n }\n\n m_maxImgBufferSize = size + 100;\n m_imgBuffer = new byte[m_maxImgBufferSize];\n m_baistream = new ByteArrayInputStream(m_imgBuffer);\n }\n }", "void setMessageID(long messageID);", "public Builder clearMsgid() {\n bitField0_ = (bitField0_ & ~0x00000100);\n msgid_ = 0;\n onChanged();\n return this;\n }", "private void clearMessageId() {\n \n messageId_ = 0L;\n }", "public Builder setMsgid(int value) {\n bitField0_ |= 0x00000100;\n msgid_ = value;\n onChanged();\n return this;\n }", "private void addMessageToQueue( byte[] buffer ){\n \tsynchronized (this.messages) {\n byte message[] = new byte[buffer.length\n - Constants.MESSAGE_ID_LEN - 1];\n for (int i = Constants.MESSAGE_ID_LEN + 1; i < buffer.length; i++) {\n message[i - Constants.MESSAGE_ID_LEN - 1] = buffer[i];\n }\n messages.add(message);\n }\n }", "public void setSizeId(Integer sizeId) {\n this.sizeId = sizeId;\n }", "public Builder clearMessageInfoID() {\n bitField0_ = (bitField0_ & ~0x00000002);\n messageInfoID_ = getDefaultInstance().getMessageInfoID();\n onChanged();\n return this;\n }", "public MessageDeframer( final AtomicInteger _maxMessageSize ) {\n maxMessageSize = _maxMessageSize.get();\n buffer = allocateBuffer();\n frameOpenDetected = false;\n frameLength = 0;\n buffer.limit( 0 ); // this marks our buffer as empty...\n }", "public Builder setMessageInfoIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n messageInfoID_ = value;\n onChanged();\n return this;\n }", "public void setMaxBufferSize(int value) {\n this.maxBufferSize = value;\n }", "public void setSizeId(String sizeId) {\n this.sizeId = sizeId == null ? null : sizeId.trim();\n }", "public void setData(ByteBuffer buffer)\r\n\t\tthrows PDUException, NotEnoughDataInByteBufferException, TerminatingZeroNotFoundException {\r\n\t\tbyte[] messageData = null;\r\n\t\tint length = 0;\r\n\t\tif (buffer != null) {\r\n\t\t\tmessageData = buffer.getBuffer();\r\n\t\t\tlength = messageData == null ? 0 : messageData.length;\r\n\t\t\tcheckString(minLength, length, maxLength);\r\n\t\t}\r\n\t\tthis.message = null;\r\n\t\tthis.messageData = messageData;\r\n\t\tthis.length = length;\r\n\t}", "public void resize( final AtomicInteger _newMaxMessageSize ) {\n\n // if we're asking for a smaller (or same) sized buffer, just leave...\n int newMaxMessageSize = _newMaxMessageSize.get();\n if( newMaxMessageSize <= maxMessageSize ) return;\n\n // allocate new buffer of the right size...\n maxMessageSize = newMaxMessageSize;\n ByteBuffer newBuffer = allocateBuffer();\n\n // copy any bytes we already have into the new one...\n newBuffer.put( buffer );\n newBuffer.flip();\n buffer = newBuffer;\n }", "@MavlinkFieldInfo(\n position = 2,\n unitSize = 4,\n description = \"total data size (set on ACK only).\"\n )\n public final Builder size(long size) {\n this.size = size;\n return this;\n }", "public void setSizeMessage(String sizeMessage) {\n\t\tthis.sizeMessage = sizeMessage;\n\t}", "public Builder setMessageInfoID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n messageInfoID_ = value;\n onChanged();\n return this;\n }", "public Builder clearMsgId() {\n\n msgId_ = 0L;\n onChanged();\n return this;\n }", "public Builder clearMsgID() {\n bitField0_ = (bitField0_ & ~0x00000001);\n msgID_ = netty.framework.messages.MsgId.MsgID.MESSAGER;\n \n return this;\n }", "public Builder clearMsgID() {\n bitField0_ = (bitField0_ & ~0x00000001);\n msgID_ = netty.framework.messages.MsgId.MsgID.MESSAGER;\n \n return this;\n }", "public void setSize(int size) {\n\t\tif (size < 0) {\n\t\t throw new IllegalArgumentException(\"Log cache size can't be negative\");\n\t\t}\n\t\tint delta = this.size - size;\n\t\tthis.size = size;\n\t\tif (delta <= 0) {\n\t\t return;\n\t\t}\n\t\tif (messages.size() < size) {\n\t\t return;\n\t\t}\n\t\twhile (delta-- > 0) {\n\t\t messages.removeFirst();\n\t\t}\n\t}", "private void setMessageId(long value) {\n \n messageId_ = value;\n }", "public Builder setMessageId(int value) {\n \n messageId_ = value;\n onChanged();\n return this;\n }", "public SocketChannelConfig setReceiveBufferSize(int receiveBufferSize)\r\n/* 202: */ {\r\n/* 203: */ try\r\n/* 204: */ {\r\n/* 205:211 */ this.javaSocket.setReceiveBufferSize(receiveBufferSize);\r\n/* 206: */ }\r\n/* 207: */ catch (SocketException e)\r\n/* 208: */ {\r\n/* 209:213 */ throw new ChannelException(e);\r\n/* 210: */ }\r\n/* 211:215 */ return this;\r\n/* 212: */ }", "public Builder clearMessageId() {\n \n messageId_ = 0;\n onChanged();\n return this;\n }", "private void receiveId() throws Exception {\n\t\tint id = in.readInt();\n\t\t//intByteBuffer.clear();\n\t\t\n\t //if(numOfBytes < 0)\n\t // throw new Exception(\"Connection to server lost\");\n\t \n\t //if(numOfBytes < 4) {\n\t // System.err.println(\"Received only \" + numOfBytes + \" bytes in receiveId\");\n\t // return;\n\t //}\n\t \n\t GameActivity.getInstance().model().player().setId(id);\n\t \n\t System.out.println(\"id: \" + GameActivity.getInstance().model().player().id());\n\t}", "default void bufferLimit(@Nonnull ByteBuffer buffer) {\n }", "private void recordMessageID( byte[] messageID ){\n \tsynchronized( this.messageIDs ){\n \t Log.d(TAG, \"New Message, ID: \" + messageID.toString());\n \t messageIDs.add(messageID);\n \t // Remove oldest message ID if too many are stored\n \t if (messageIDs.size() > Constants.MSG_HISTORY_LEN) {\n \t Log.d(TAG, \"Removing Message from History\");\n \t messageIDs.remove(0);\n \t }\n \t}\n }", "public Builder setMsgID(netty.framework.messages.MsgId.MsgID value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n msgID_ = value;\n \n return this;\n }", "public Builder setMsgID(netty.framework.messages.MsgId.MsgID value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n msgID_ = value;\n \n return this;\n }", "public void setBufferStartCounter(String bufferStartCounter) {\r\n\t\tthis.bufferStartCounter = bufferStartCounter;\r\n\t}", "protected void setBuffer(int width, int height)\n\t{\n\t\tthis.width=width;\n\t\tthis.height=height;\n\t\tlength=width*height;\n\t}", "public int getReceiveBufferSize() {\n return soRcvBuf;\n }", "public void set(int frag_id, Message frag) {\n // don't count an already received fragment (should not happen though because the\n // reliable transmission protocol(s) below should weed out duplicates\n if(fragments[frag_id] == null) {\n fragments[frag_id]=frag;\n number_of_frags_recvd++;\n }\n }", "public int getBufferSize() {\n\t\treturn 0;\n\t}", "public Builder clearMessageId() {\n copyOnWrite();\n instance.clearMessageId();\n return this;\n }", "public void setSizeId(String value) {\n setAttributeInternal(SIZEID, value);\n }", "public ByteRingBuffer(int maxSize){\n buffer= new byte[maxSize];\n readIndex = 0;\n writeIndex = -1;\n size=0;\n }", "public void setSize(int _size)\r\n {\r\n size = _size;\r\n }", "@Override\n\tpublic int getBufferSize() {\n\t\treturn 0;\n\t}", "@Override\n public int getBufferSize() {\n return 0;\n }", "public Builder clearMessageId() {\n copyOnWrite();\n instance.clearMessageId();\n return this;\n }", "public Builder setMsgId(long value) {\n\n msgId_ = value;\n onChanged();\n return this;\n }", "public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}", "public void setMessageId(int value) {\n this.messageId = value;\n }", "public void setId(long id) {\n\t\t_tempNoTiceShipMessage.setId(id);\n\t}", "private void assignBuffer(List<TupleReaderBinary> buffers, int bufferID) {\n\t\tif (readerBucketID < prevTotalBuckets && readerBucketID < numInputBuffers * currentGroup) {\n\t\t\tTupleReaderBinary readerBinary = new TupleReaderBinary(DatabaseCatalog.getInstance().getTempDirectory()\n\t\t\t\t\t+ \"/\" + instanceHashcode + \"_\" + (passNumber - 1) + \"_\" + readerBucketID);\n\t\t\treaderBinary.keyNames = ordering;\n\t\t\tbuffers.set(bufferID, readerBinary);\n\t\t\treaderBucketID++;\n\t\t} else {\n\t\t\tbuffers.set(bufferID, null);\n\t\t}\n\t}", "protected void setArraySize(int arraySize){\r\n\t \tthis.arraySize = arraySize;\r\n\t }", "public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }", "public int getBufferSize() {\n\t\treturn buffer.length;\n\t}", "private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}", "public Builder setMnpIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n mnpId_ = value;\n onChanged();\n return this;\n }", "public TLUpdateMessageId() {\n super();\n }", "public void setMaxBufferSize(int maxBufferSize) {\r\n this.maxBufferSize = maxBufferSize;\r\n }", "public static IntBuffer createIntBuffer(int size) {\n/* 477 */ ByteBuffer temp = ByteBuffer.allocateDirect(4 * size);\n/* 478 */ temp.order(ByteOrder.nativeOrder());\n/* */ \n/* 480 */ return temp.asIntBuffer();\n/* */ }", "private void setMessageId(\n int index, long value) {\n ensureMessageIdIsMutable();\n messageId_.setLong(index, value);\n }", "protected void setMaxSize(int size) {\n maxSize = size;\n }", "void setBuffer(byte[] b)\n {\n buffer = b;\n }", "@Override\n public void fromBuffer(byte[] buffer) {\n set(bytesToContent(buffer));\n }", "@Override\n public void setAEBufferSize(int size) {\n if (size < 1000 || size > 1000000) {\n log.warning(\"ignoring unreasonable aeBufferSize of \" + size + \", choose a more reasonable size between 1000 and 1000000\");\n return;\n }\n this.aeBufferSize = size;\n prefs.putInt(\"CypressFX2.aeBufferSize\", aeBufferSize);\n }", "public Builder setMessageId(long value) {\n copyOnWrite();\n instance.setMessageId(value);\n return this;\n }", "protected void setReceiveMessage(byte[] rmsg)\n\t{\n\t\t//#CM29519\n\t\t// Sets data to communication message buffer\n\t\tfor (int i=0; i < LEN_ID27; i++)\n\t\t{\n\t\t\twLocalBuffer[i] = rmsg[i] ;\n\t\t}\n\t\twDataBuffer = wLocalBuffer ;\n\t}", "@Override\n public void preAllocateIds(int requestSize) {\n // do nothing by default\n }", "public void setKeySize(int keySize) {\n this.keySize = keySize;\n }", "public void setBufferEndCounter(String bufferEndCounter) {\r\n\t\tthis.bufferEndCounter = bufferEndCounter;\r\n\t}", "public void setMessageID(int messageID){\n this.messageID = messageID;\n }", "private void pushRemainingToBody(ByteBuffer buffer, DynamicByteBuffer body, int size) {\n\t\t// If buffer is empty or there is no clength then skip this\n\t\tif (size == 0 || !buffer.hasRemaining()) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (body.position() + buffer.remaining() > size) {\n\t\t\tbody.put(buffer.array(), buffer.position(), size - body.position());\n\t\t} else {\n\t\t\tbody.put(buffer.array(), buffer.position(), buffer.remaining());\n\t\t}\n\t}", "public Builder setServerPayloadSizeBytes(int value) {\n \n serverPayloadSizeBytes_ = value;\n onChanged();\n return this;\n }", "public int getBufferSize() {\n return count;\n }", "@NonNull\n public Builder setIdentifier(@NonNull String identifier) {\n require(!TextUtils.isEmpty(identifier), \"identifer must not be null or empty\");\n mProtoBuilder.id = identifier;\n return this;\n }", "public void setMessage(int messageId) {\r\n\t\t//\tmMessage.setText(mContext.getResources().getString(messageId));\r\n\t\t//\tmMessage.setMovementMethod(ScrollingMovementMethod.getInstance());\r\n\t\t}", "public Builder clearReceiverid() {\n bitField0_ = (bitField0_ & ~0x00000004);\n receiverid_ = 0;\n onChanged();\n return this;\n }", "public void resetBuffer(){\n bufferSet = false;\n init();\n }", "public static int sizeBits_moteId() {\n return 16;\n }", "public void setSize(int size) {\n\t members = size;\n\t}", "public void setMaxBufferSpace(long maxBufferSpace) {\n this.maxBufferSpace = maxBufferSpace;\n }", "public abstract void setBufferMode(int mode);", "public static void setRecorderVideoSize(Size size){\n\t}", "public void initialize(int size) {\n setMaxSize(size);\n }", "private void addAllMessageId(\n java.lang.Iterable<? extends java.lang.Long> values) {\n ensureMessageIdIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, messageId_);\n }", "private static ByteBuffer resizeByteBuffer(ByteBuffer buffer, int size)\n {\n ByteBuffer newBuffer = BufferUtils.createByteBuffer(size);\n buffer.flip();\n newBuffer.put(buffer);\n\n return newBuffer;\n }", "public int getMaxBufferSize() {\r\n return maxBufferSize;\r\n }", "@Override\r\n\tpublic void setSequenceSize(int size) {\n\t\tthis.sequence = \"Sequence length: \"+size;\r\n\t\tupdate();\r\n\t}", "public void trimToSize() {\n if (size() != this.buffer.length) {\n this.buffer = toArray();\n }\n }", "@Override\r\n public void setIdentifierMessage( int identifier, IBandIdentifier message )\r\n {\r\n\t\tmIdentifierUpdate = message;\r\n }" ]
[ "0.6709499", "0.6240719", "0.61502796", "0.60147595", "0.58615047", "0.5855282", "0.5737563", "0.5706291", "0.56665385", "0.5653937", "0.5642856", "0.5630501", "0.5519017", "0.55082995", "0.5494251", "0.5483438", "0.547116", "0.54426473", "0.5433611", "0.54329497", "0.54235333", "0.538778", "0.53742826", "0.53708327", "0.53431076", "0.5316165", "0.52975583", "0.5289256", "0.52688473", "0.52540606", "0.524701", "0.52352643", "0.52205324", "0.5216594", "0.5216594", "0.5190625", "0.51858556", "0.5184564", "0.5169536", "0.51694596", "0.51280236", "0.512324", "0.5111287", "0.5084378", "0.5084378", "0.50824463", "0.50457376", "0.5037617", "0.50285715", "0.5017896", "0.5005912", "0.5005731", "0.4992133", "0.49731004", "0.49702406", "0.49533018", "0.49388316", "0.49160427", "0.49018827", "0.49009672", "0.48954836", "0.48936123", "0.48790768", "0.48782215", "0.4876851", "0.48694506", "0.48674887", "0.48625576", "0.48623168", "0.48620152", "0.48534763", "0.4836458", "0.48344186", "0.48318887", "0.48283824", "0.4822298", "0.48197877", "0.48163402", "0.4813385", "0.4774647", "0.47722593", "0.47654298", "0.47579405", "0.4755357", "0.47539008", "0.47522336", "0.47451943", "0.47447562", "0.47399163", "0.473972", "0.4739523", "0.4725586", "0.47153845", "0.4712154", "0.4711499", "0.47094068", "0.46980056", "0.46930277", "0.46929005", "0.46923426" ]
0.77169883
0
Is a device reference created for each recognized remote device.
public boolean isDeviceReferenceAutoBuild() { return this.deviceReferenceAutoBuild; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reference getDevice();", "public org.hl7.fhir.ResourceReference addNewDevice()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(DEVICE$12);\n return target;\n }\n }", "boolean hasDevice();", "private void onDeviceConnected(String deviceId, Boolean isReference) {\n for (Room room : rooms.values()) {\n room.onDeviceConnected(deviceId, isReference);\n }\n }", "private boolean isReference()\n {\n return countAttributes(REFERENCE_ATTRS) > 0;\n }", "private void syncConnectedDeviceId(String newDeviceId, boolean isReference) {\n // Add the newly connected device id\n Map<Object, Object> devicesMap = new HashMap<>((Map<?, ?>) getEcologyDataSync().getData\n (\"devices\"));\n devicesMap.put(newDeviceId, isReference);\n getEcologyDataSync().setData(\"devices\", devicesMap);\n }", "public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {\n // add the device to the vector\n if (!vecDevices.contains(btDevice)) {\n vecDevices.addElement(btDevice);\n }\n }", "public DeviceLocator getDeviceLocator();", "boolean hasDeviceId();", "boolean hasDeviceId();", "private Boolean isDeviceYouWant(BleManager.DiscoveryListener.DiscoveryEvent event) {\n String name = event.device().getName_native();\n if (name.toLowerCase().startsWith(\"polar\")) {\n Log.v(TAG, event.device().getName_native());\n return true;\n }\n return false;\n\n// // Test with prototype BLE device, same repro.\n// byte[] b = event.device().getScanRecord();\n// if (null == b) {\n// return false;\n// }\n// if (b.length < 22) {\n// return false;\n// }\n//\n// byte[] kCompanyIdentifier = new byte[] {(byte)0x01, (byte)0x02, (byte)0x03};\n// byte[] companyIdentifier = new byte[] {b[19], b[20], b[21]};\n// if (Arrays.equals(kCompanyIdentifier, companyIdentifier)){\n// return true;\n// }\n// return false;\n }", "@Test\n public void findDevice() throws Exception {\n MockUpnpService upnpService = new MockUpnpService();\n LocalDevice device = SampleData.createLocalDevice();\n upnpService.getRegistry().addDevice(device);\n\n UDN udn = device.getIdentity().getUdn();\n\n Registry registry = upnpService.getRegistry(); // DOC: FIND_ROOT_UDN\n Device foundDevice = registry.getDevice(udn, true);\n\n assertEquals(foundDevice.getIdentity().getUdn(), udn); // DOC: FIND_ROOT_UDN\n\n LocalDevice localDevice = registry.getLocalDevice(udn, true); // DOC: FIND_LOCAL_DEVICE\n assertEquals(localDevice.getIdentity().getUdn(), udn);\n\n SampleDeviceRootLocal.assertLocalResourcesMatch(\n upnpService.getConfiguration().getNamespace().getResources(device)\n );\n }", "private boolean mAsClient(String sRemoteDeviceName) {\n return (sRemoteDeviceName.equals(sDeviceName));\n }", "public IDevice[] getDevices() { return devices; }", "boolean hasRef();", "@Override\r\n\tpublic boolean sameIdentityAs(Device other) {\n\t\treturn false;\r\n\t}", "public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {\n devicesDiscovered.addElement(btDevice);\n }", "Device createDevice();", "boolean hasReference();", "public void deviceDiscovered(IDiscoverer _discoverer, IDevice _device);", "public boolean isReference() {\n return isReference;\n }", "private void deviceDetected(String btMac, String location) {\r\n\t\t// If it is not this location\r\n\t\tif (location != this.location) {\r\n\t\t\tDoctor doctor = dbAdapter.getDoctor(btMac);\r\n\t\t\tif (doctor != null) {\r\n\t\t\t\tdoctors.addDoctor(doctor);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private boolean initialize() {\n boolean r = false;\n compiler.initialize(this);\n int memSize = Integer.parseInt(settings\n .getProperty(\"memory.size\"));\n memory.initialize(memSize, this);\n \n if (isConnected(\"cpu\",\"memory\")) \n r = cpu.initialize(memory.getContext(), this);\n else\n r = cpu.initialize(null, this);\n \n for (int i=0; i < devices.length; i++) {\n ICPUContext ccon = isConnected(\"cpu\",\"device\"+i) \n ? cpu.getContext() : null;\n IMemoryContext mcon = isConnected(\"memory\",\"device\"+i)\n ? memory.getContext() : null;\n r &= devices[i].initialize(ccon, mcon, this);\n }\n // finally device-device connections\n for (int i = 0; i < connections.length; i++) {\n String j0 = connections[i].getJunc0();\n String j1 = connections[i].getJunc1();\n if (j0.startsWith(\"device\") && j1.startsWith(\"device\")) {\n // TODO: jednosmerna komunikacia??\n int i1 = Integer.parseInt(j0.substring(6));\n int i2 = Integer.parseInt(j1.substring(6));\n // 1. smer\n IDeviceContext female = devices[i1].getFreeFemale();\n IDeviceContext male = devices[i2].getFreeMale();\n if (female != null && male != null)\n r &= devices[i1].attachDevice(female, male);\n // 2. smer\n female = devices[i2].getFreeFemale();\n male = devices[i1].getFreeMale();\n if (female != null && male != null)\n r &= devices[i2].attachDevice(female, male);\n }\n }\n return r;\n }", "@Override\n\tpublic boolean isCameraRelated() {\n\t\treturn true;\n\t}", "public List getDevices() {\n return devices;\n }", "@Override\n public boolean isReachable(DeviceId deviceId) {\n return true;\n }", "@Override\n public boolean isReachable(DeviceId deviceId) {\n return true;\n }", "public boolean isSetDeviceName() {\n return this.deviceName != null;\n }", "Device_Resource createDevice_Resource();", "protected boolean isReferenced() {\r\n return mReferenced || mUsers.size() > 0;\r\n }", "On_Device_Resource createOn_Device_Resource();", "public org.hl7.fhir.ResourceReference[] getDeviceArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEVICE$12, targetList);\n org.hl7.fhir.ResourceReference[] result = new org.hl7.fhir.ResourceReference[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "@DISPID(1611006048) //= 0x60060060. The runtime will prefer the VTID if present\n @VTID(123)\n boolean linkedExternalReferences();", "boolean isSetRef();", "public String getDevice() {\r\n return device;\r\n }", "@Path(\"device\")\n DeviceAPI devices();", "public static ElectronicDevice getDevice(){\n\t\treturn new Television();\n\t\t\n\t}", "public boolean hasReferences() {\n\t\treturn this.refCounter > 0;\n\t}", "public boolean canBeReferencedByIDREF() {\n/* 171 */ return false;\n/* */ }", "public boolean isConnectedToRemoteDevice() {\n return mConnectionManager.isConnected();\n }", "@Test\n public void findDeviceByType() throws Exception {\n MockUpnpService upnpService = new MockUpnpService();\n LocalDevice device = SampleData.createLocalDevice();\n upnpService.getRegistry().addDevice(device);\n\n Registry registry = upnpService.getRegistry();\n\n try {\n DeviceType deviceType = new UDADeviceType(\"MY-DEVICE-TYPE\", 1); // DOC: FIND_DEV_TYPE\n Collection<Device> devices = registry.getDevices(deviceType); // DOC: FIND_DEV_TYPE\n assertEquals(devices.size(), 1);\n } finally {}\n\n try {\n ServiceType serviceType = new UDAServiceType(\"MY-SERVICE-TYPE-ONE\", 1); // DOC: FIND_SERV_TYPE\n Collection<Device> devices = registry.getDevices(serviceType); // DOC: FIND_SERV_TYPE\n assertEquals(devices.size(), 1);\n } finally {}\n }", "public Device getDevice() {\n\t\treturn this.device;\n\t}", "boolean isSetSurfaceRefs();", "public String getCaptureDevice();", "public boolean isTargetRC() { return isTargetRC; }", "public boolean isDeviceAlreadyConnected(IWifiP2pProxy.IFastConnectInfo info) {\n\t\tLog.d(TAG, \"mConnectedDevice = \" + mConnectedDevice.getDeviceAddress());\n\t\tLog.d(TAG, \"info = \" + info.getDeviceAddress());\n\t\tif (mConnectedDevice.getDeviceAddress().equalsIgnoreCase(info.getDeviceAddress())) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean connect(BluetoothDevice bluetoothDevice) throws RemoteException {\n Parcel parcel = Parcel.obtain();\n Parcel parcel2 = Parcel.obtain();\n try {\n parcel.writeInterfaceToken(Stub.DESCRIPTOR);\n boolean bl = true;\n if (bluetoothDevice != null) {\n parcel.writeInt(1);\n bluetoothDevice.writeToParcel(parcel, 0);\n } else {\n parcel.writeInt(0);\n }\n if (!this.mRemote.transact(8, parcel, parcel2, 0) && Stub.getDefaultImpl() != null) {\n bl = Stub.getDefaultImpl().connect(bluetoothDevice);\n parcel2.recycle();\n parcel.recycle();\n return bl;\n }\n parcel2.readException();\n int n = parcel2.readInt();\n if (n == 0) {\n bl = false;\n }\n parcel2.recycle();\n parcel.recycle();\n return bl;\n }\n catch (Throwable throwable) {\n parcel2.recycle();\n parcel.recycle();\n throw throwable;\n }\n }", "@Override\r\n public void onDeviceConnecting(GenericDevice mDeviceHolder,\r\n PDeviceHolder innerDevice) {\n\r\n }", "public boolean soundDeviceCanCapture(String device);", "public SoftReference getReference ()\r\n {\r\n return _reference;\r\n }", "public void setDeviceReferenceAutoBuild(boolean deviceReferenceAutoBuild) {\r\n\t\tthis.deviceReferenceAutoBuild = deviceReferenceAutoBuild;\r\n\t}", "protected void sequence_RefDevice(ISerializationContext context, RefDevice semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public boolean isReference() {\n AnnotatedBase comp = m_item.getSchemaComponent();\n return comp instanceof IReference && ((IReference)comp).getRef() != null;\n }", "@Override\n\t\tpublic void onDeviceConnected() {\n\t\t\tDFUManager.log(TAG, \"onDeviceConnected()\");\n\t\t\tisDeviceConnected = true;\n\t\t\t\n\t\t\t\n\t\t}", "public boolean runOnAllDevices();", "public void initDevice() {\n myBluetoothAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter();\n pairedDevices = myBluetoothAdapter.getBondedDevices();\n }", "public String getRingerDevice();", "@Override\r\n\tpublic Device devGetDevice(boolean allProperties) throws RTException {\n\t\treturn null;\r\n\t}", "public boolean connect() {\n try {\n this.bluetoothSocket = this.device.createRfcommSocketToServiceRecord(this.device.getUuids()[0].getUuid());\n this.bluetoothSocket.connect();\n return true;\n } catch (IOException ex) {\n try {\n this.bluetoothSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n this.bluetoothSocket = null;\n }\n return false;\n }", "private boolean pathContainsDevice(List<ConnectPoint> completePath, DeviceId deviceId) {\n for (ConnectPoint cp : completePath) {\n if (cp.deviceId().equals(deviceId)) {\n return true;\n }\n }\n return false;\n }", "public void deviceLoaded(Device device);", "DeviceClass getDeviceClass();", "public abstract List<NADevice> getDevices(Context context);", "Collection<? extends ReflexDevice> getDevices() {\n return processors.values();\n }", "public boolean isConnected(){\r\n return (id!=-1 && matlabEng!=null); \r\n }", "public static boolean isIsOpenDeviceCH340() {\n return isOpenDeviceCH340;\n }", "public RemoteReferenceFactory getRemoteReferenceFactory\n (Container container, boolean remoteHomeView, String id)\n {\n\tRemoteReferenceFactory factory = new POARemoteReferenceFactory\n (container, this, orb, remoteHomeView, id);\n\t\t\t\t\t\t \n\t// XXX store factory in some kind of table ??\n\treturn factory;\n }", "@Override\n\tprotected boolean isExist(AbnormalDevice record) {\n\t\treturn false;\n\t}", "public boolean isSetDeviceNo() {\n return this.DeviceNo != null;\n }", "void addDeviceComplete(boolean hasOtherDevices);", "public String getName() {\n\t\treturn \"Device\";\r\n\t}", "boolean isPeripheralAccess();", "public boolean isCharacterDevice() {\n return linkFlag == LF_CHR;\n }", "private boolean isCurrentDevice(MediaRouter.RouteInfo info) {\n if (mCastDevice == null) {\n // No device selected\n return false;\n }\n CastDevice device = CastDevice.getFromBundle(info.getExtras());\n if (!device.getDeviceId().equals(mCastDevice.getDeviceId())) {\n // The callback is for a different device\n return false;\n }\n return true;\n }", "DeviceActuator createDeviceActuator();", "public org.hl7.fhir.ResourceReference insertNewDevice(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().insert_element_user(DEVICE$12, i);\n return target;\n }\n }", "@Override\n public boolean isReachable(DeviceId deviceId) {\n try {\n // First check if device is already connected.\n // If not, try to open a socket.\n Tl1Device device = controller.getDevice(deviceId).get();\n if (device.isConnected()) {\n return true;\n }\n\n Socket socket = new Socket();\n socket.connect(new InetSocketAddress(device.ip().toInetAddress(), device.port()), REACHABILITY_TIMEOUT);\n socket.close();\n return true;\n } catch (NoSuchElementException | IOException | IllegalArgumentException e) {\n log.error(\"Cannot reach device {}\", deviceId, e);\n return false;\n }\n }", "public Device() {\n isFaceUp = null;\n isFaceDown = null;\n isCloseProximity = null;\n isDark = null;\n }", "public int getDiscoverable() {\n return this.bluetoothStack.getLocalDeviceDiscoverable();\n }", "public boolean isCreated() {\n\t\treturn mqttClient != null;\n\t}", "@Override\n public boolean isAudioConnected(BluetoothDevice bluetoothDevice) throws RemoteException {\n Parcel parcel = Parcel.obtain();\n Parcel parcel2 = Parcel.obtain();\n try {\n parcel.writeInterfaceToken(Stub.DESCRIPTOR);\n boolean bl = true;\n if (bluetoothDevice != null) {\n parcel.writeInt(1);\n bluetoothDevice.writeToParcel(parcel, 0);\n } else {\n parcel.writeInt(0);\n }\n if (!this.mRemote.transact(6, parcel, parcel2, 0) && Stub.getDefaultImpl() != null) {\n bl = Stub.getDefaultImpl().isAudioConnected(bluetoothDevice);\n parcel2.recycle();\n parcel.recycle();\n return bl;\n }\n parcel2.readException();\n int n = parcel2.readInt();\n if (n == 0) {\n bl = false;\n }\n parcel2.recycle();\n parcel.recycle();\n return bl;\n }\n catch (Throwable throwable) {\n parcel2.recycle();\n parcel.recycle();\n throw throwable;\n }\n }", "public static boolean isConnected() {\r\n\t\treturn dfl != null;\r\n\t}", "public interface CommunicationDevice {\n String getAddress();\n\n CommunicationSocket createCommunicationSocket(UUID uuid) throws IOException;\n}", "public boolean isConnected() {\n\t\t\treturn (m_soundManager instanceof RemoteSoundManager);\n\t\t}", "public boolean isReferenceToPrimaryKey() {\n\t\treturn referencedColumns.isEmpty();\n\t}", "public Integer getDevices() {\r\n return devices;\r\n }", "@Override\n public boolean equals(Object obj) {\n if(obj instanceof Devices)\n {\n Devices temp = (Devices) obj;\n if(this.device==temp.getDevice() && this.MAC ==temp.getMAC())\n return true;\n }\n return false;\n\n }", "public boolean isDetecting()\n\t{\n\t\treturn currentlyDetecting;\n\t}", "DeviceSensor createDeviceSensor();", "public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {\n\t\ttry {\n\t\t\tif (isValidDevice(btDevice.getBluetoothAddress())) {\n\t\t\t\tNeighbors.getInstance().AddNeighbor(btDevice.getBluetoothAddress());\n\t\t\t\tdevList.addElement(btDevice.getBluetoothAddress());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t}\n\n\t}", "@Override\n public void onBluetoothDeviceFound(BluetoothDevice btDevice) {\n }", "boolean references(ResourceElement<S, V> referred, ResourceElement<?, ?> refers);", "public boolean isConnecting ()\r\n\t{\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\treturn _roboCOM!=null;\r\n\t\t}\r\n\t}", "public boolean isBeamWithTheSameDevice(IWifiP2pProxy.IFastConnectInfo info) {\n\t\t\n\t\tif (mTargetInfo != null\n\t\t\t\t&& mTargetInfo.getDeviceAddress().equals(\n\t\t\t\t\t\tinfo.getDeviceAddress())) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public final boolean isReferencedAtMostOnce() {\n return this.getReferences(false, true).size() == 0 && this.getReferences(true, false).size() <= 1;\r\n }", "private boolean connectReader() {\n BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n if (bluetoothManager == null) {\n Log.w(TAG, \"Unable to initialize BluetoothManager.\");\n updateConnectionState(BluetoothReader.STATE_DISCONNECTED);\n return false;\n }\n\n BluetoothAdapter bluetoothAdapter = bluetoothManager.getAdapter();\n if (bluetoothAdapter == null) {\n Log.w(TAG, \"Unable to obtain a BluetoothAdapter.\");\n updateConnectionState(BluetoothReader.STATE_DISCONNECTED);\n return false;\n }\n\n /*\n * Connect Device.\n */\n /* Clear old GATT connection. */\n if (mBluetoothGatt != null) {\n Log.i(TAG, \"Clear old GATT connection\");\n mBluetoothGatt.disconnect();\n mBluetoothGatt.close();\n mBluetoothGatt = null;\n }\n\n /* Create a new connection. */\n final BluetoothDevice device = bluetoothAdapter\n .getRemoteDevice(mDeviceAddress);\n\n if (device == null) {\n Log.w(TAG, \"Device not found. Unable to connect.\");\n return false;\n }\n\n /* Connect to GATT server. */\n updateConnectionState(BluetoothReader.STATE_CONNECTING);\n mBluetoothGatt = device.connectGatt(this, false, mGattCallback);\n return true;\n }", "public interface DeviceResource extends GpoResource, GpiResource {\n\n public String getId();\n}", "@DISPID(1611006052) //= 0x60060064. The runtime will prefer the VTID if present\n @VTID(127)\n boolean linkedExternalReferencesOnlyOnPublication();", "private boolean isConnectable (RoadInterface newObj) {\n boolean result = false;\n if (newObj instanceof Intersection) {\n result = true;\n }\n return (result);\n }", "@Override\n public void onDeviceFound(BluetoothDevice device) {\n writeLine(\"Found device: \" + device.getAddress());\n }" ]
[ "0.6483658", "0.59920776", "0.58155024", "0.57850355", "0.57469624", "0.5735045", "0.5569769", "0.55614567", "0.55599844", "0.55599844", "0.5546386", "0.5518082", "0.5516832", "0.54831016", "0.5465464", "0.54359347", "0.54306716", "0.54225624", "0.54032755", "0.54015684", "0.53819555", "0.5330227", "0.5327146", "0.53222704", "0.5306855", "0.5305536", "0.5305536", "0.5252063", "0.52453995", "0.52450055", "0.52200836", "0.5208037", "0.51988876", "0.5191395", "0.5177177", "0.51648074", "0.5145846", "0.51437545", "0.5135651", "0.5130736", "0.5129224", "0.51223516", "0.5111203", "0.51084626", "0.50585127", "0.5054145", "0.50168675", "0.50143623", "0.50128895", "0.5009062", "0.50033474", "0.4999644", "0.49914286", "0.4990697", "0.4984781", "0.4979195", "0.49698278", "0.49450094", "0.49429712", "0.4941831", "0.49414912", "0.49371648", "0.4933038", "0.49316582", "0.49315158", "0.49297687", "0.4927152", "0.49263343", "0.49221355", "0.4919998", "0.49169964", "0.4915751", "0.4914128", "0.4911587", "0.49038693", "0.4902903", "0.49005213", "0.4894392", "0.48933873", "0.4893014", "0.4888371", "0.48812738", "0.4877133", "0.48750058", "0.48560002", "0.48435327", "0.4841802", "0.48405877", "0.4837048", "0.48211852", "0.48113927", "0.4808664", "0.48044115", "0.48040202", "0.4801397", "0.47996974", "0.47909954", "0.47895953", "0.47830895", "0.4783028" ]
0.635023
1
Sets if a device reference should be created for each recognized remote device.
public void setDeviceReferenceAutoBuild(boolean deviceReferenceAutoBuild) { this.deviceReferenceAutoBuild = deviceReferenceAutoBuild; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void syncConnectedDeviceId(String newDeviceId, boolean isReference) {\n // Add the newly connected device id\n Map<Object, Object> devicesMap = new HashMap<>((Map<?, ?>) getEcologyDataSync().getData\n (\"devices\"));\n devicesMap.put(newDeviceId, isReference);\n getEcologyDataSync().setData(\"devices\", devicesMap);\n }", "public boolean isDeviceReferenceAutoBuild() {\r\n\t\treturn this.deviceReferenceAutoBuild;\r\n\t}", "private void setRefuse(boolean value) {\n \n refuse_ = value;\n }", "public void setReference(Reference ref)\n {\n this.ref = ref;\n }", "public void markCPRefs(boolean[] refs) {\n }", "public void setReference(boolean isReference) {\n ModelEvent<?> event = new ModelEventBuilder( ModelEventType.REFERENCE_FLAG_MODIFIED, this )\n .setOldValue( this.isReference ).setNewValue( isReference ).buildEvent();\n\n this.isReference = isReference;\n publishEvent( event );\n }", "public void setReference (SoftReference ref)\r\n {\r\n _reference = ref;\r\n }", "private void onDeviceConnected(String deviceId, Boolean isReference) {\n for (Room room : rooms.values()) {\n room.onDeviceConnected(deviceId, isReference);\n }\n }", "public void setReference(String reference);", "protected void setRefList( ReferenceList refList )\n {\n _refList = refList;\n }", "private void setReference(String ref) {\n Set<String> allRefs = getAllReferenceNames();\n if (!allRefs.contains(ref) && allRefs.contains(\"chr\" + ref)) {\n ref = \"chr\" + ref;\n }\n currentReference = ref;\n Genome loadedGenome = GenomeController.getInstance().getGenome();\n setMaxRange(new Range(1, loadedGenome.getLength()));\n setRange(1, Math.min(1000, loadedGenome.getLength()));\n }", "public void setInheritRefs(boolean value) {\n inheritRefs = value;\n }", "public void addReference() {\r\n mReferenced = true;\r\n }", "void setReference(String reference);", "private void setCrossRef(CrossRef crossRef) { this.crossRef = crossRef; }", "protected void sequence_RefDevice(ISerializationContext context, RefDevice semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public void setDefaultDevicesForAttributes(@NonNull ImmutableList<Object> devices) {\n defaultDevicesForAttributes = devices;\n }", "@Override\n\tpublic void setReferenceFiles(String referenceFiles) {\n\t\tmodel.setReferenceFiles(referenceFiles);\n\t}", "public SetOnceRef(Object ref) {\n this(ref, false, true);\n }", "public void setDevices(Integer devices) {\r\n this.devices = devices;\r\n }", "public void setReferral( boolean referral )\n {\n this.referral = referral;\n }", "public void addReference(VariableReference ref, boolean isLoopingReference) {\n // No action\n }", "void setUpRefs(GElement target) {\n\t\t if(target.isDataGenerator()){\n\t\t\t setDg((GDataGenerator)target);\n\t\t } \n\t }", "void replaceDevices(Set<String> devices) {\n availableDevices = devices;\n resetSelectedDevice();\n }", "private boolean isReference()\n {\n return countAttributes(REFERENCE_ATTRS) > 0;\n }", "boolean isSetRef();", "public void setReference(String reference) {\n this.reference = reference;\n }", "public void setReference(String reference) {\n this.reference = reference;\n }", "public void setReferenceService(ReferenceService referenceService){\n\t\tthis.referenceService = referenceService;\n\t}", "public void setDevices(Peripheral[] devices) {\r\n\tthis.deviceList.clear();\r\n\tif (devices != null) {\r\n\t int numEl = devices.length;\r\n\t for (int i = 0; i < numEl; i++) {\r\n\t\tthis.deviceList.add(devices[i]);\r\n\t }\r\n\t}\r\n }", "@NoProxy\n @NoWrap\n @NoDump\n @Override\n public void setContactHrefs(final Set<String> val) {\n contactHrefs = val;\n }", "public void addReference(FileSet reference) {\n referenceFilesets.add(reference);\n }", "void setSurfaceRefs(java.util.List surfaceRefs);", "protected boolean isReferenced() {\r\n return mReferenced || mUsers.size() > 0;\r\n }", "public void setIsPhysicalDevice(boolean value) {\n this.isPhysicalDevice = value;\n }", "@Override\n\tpublic boolean isCameraRelated() {\n\t\treturn true;\n\t}", "@Override\n public boolean getDefineAlternateReferenceLocationFlag() {\n return false;\n }", "public void setReferences(org.purl.dc.elements.x11.SimpleLiteral references)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.purl.dc.elements.x11.SimpleLiteral target = null;\r\n target = (org.purl.dc.elements.x11.SimpleLiteral)get_store().find_element_user(REFERENCES$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.purl.dc.elements.x11.SimpleLiteral)get_store().add_element_user(REFERENCES$0);\r\n }\r\n target.set(references);\r\n }\r\n }", "boolean isSetSurfaceRefs();", "public final void setRefutable(boolean isRefutable) {\n max_branching = isRefutable ? 2 : 1;\n }", "public org.hl7.fhir.ResourceReference addNewDevice()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(DEVICE$12);\n return target;\n }\n }", "public void setReference(float[] reference){\n if(reference.length==3){\n referenceState[0]=reference[0];\n referenceState[1]=reference[1];\n referenceState[2]=reference[2];\n\n isStateSaved=true;\n\n if(referenceState[0]>Math.abs(referenceState[1])){\n isXZplane=true;\n } else{\n isXZplane=false;\n }\n }\n }", "Reference getDevice();", "@Override\n\t\tprotected boolean fixReferences(EObject object) {\n\t\t\tsuper.fixReferences(object);\n\t\t\tEObject container = object.eContainer();\n\t\t\t\n\t\t\tif( ZDLUtil.isZDLConcept(object, CCMNames.INTERFACE_PORT)) {\n\t\t\t\t\n\t\t\t\tEObject fixedRole = null; // Old port reference that needs to be updated\n\t\t\t\t\n\t\t\t\tfor( TreeIterator<EObject> iter = object.eResource().getAllContents(); iter.hasNext(); ) {\n\t\t\t\t\tEObject next = iter.next();\n\t\t\t\t\t\n\t\t\t\t\tif( next instanceof ConnectorEnd ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tConnectorEnd ce = (ConnectorEnd)next;\n\t\t\t\t\t\tif( fixableInterfacePort(object, ce, container)) {\n\t\t\t\t\t\t\tfixedRole = ce.getRole();\n\t\t\t\t\t\t\tce.setRole((Port)object);\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor( TreeIterator<EObject> iter = object.eResource().getAllContents(); iter.hasNext(); ) {\n\t\t\t\t\tEObject next = iter.next();\n\t\t\t\t\t\n\t\t\t\t\tif( next instanceof Node ) {\n\t\t\t\t\t\tNode node = (Node)next;\n\t\t\t\t\t\tif( node.getElement() instanceof Port ) {\n\t\t\t\t\t\t\tPort nodeElement = (Port)node.getElement();\n\t\t\t\t\t\t\tif( nodeElement == fixedRole ) {\n\t\t\t\t\t\t\t\tnode.setElement(object);\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\t\n\t\t\treturn true;\n\t\t}", "public void setReferenceId(String refid) {\n this.refid = refid;\n }", "void addDeviceComplete(boolean hasOtherDevices);", "@JsonSetter(\"reference\")\r\n public void setReference (String value) { \r\n this.reference = value;\r\n }", "public void set(final Object ref) {\n synchronized (lock) {\n if (set) { throw new IllegalStateException(\"Reference has already been set\"); }\n\n if ((!allowsNull()) && (ref == null)) { throw new IllegalArgumentException(\n \"This instance cannot hold a null reference value\"); }\n\n set = true;\n this.ref = ref;\n }\n }", "public void setClasspathRef(Reference r) {\n if (isReference()) {\n throw tooManyAttributes();\n }\n createClasspath().setRefid(r);\n setChecked(false);\n }", "public boolean isReference() {\n return isReference;\n }", "public void setRemotable(boolean remotable) {\n this.remotable = remotable;\n }", "public void setDeviceArray(int i, org.hl7.fhir.ResourceReference device)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().find_element_user(DEVICE$12, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(device);\n }\n }", "public void setSafeSetPageDevice(boolean value) {\n this.safeSetPageDevice = value;\n }", "public void setDevicesForAttributes(\n @NonNull AudioAttributes attributes, @NonNull ImmutableList<Object> devices) {\n devicesForAttributes.put(attributes, devices);\n }", "public final void setReference(final String newReference) {\n reference = newReference;\n }", "void setDiscoverTargets(@ParamName(\"discover\") Boolean discover);", "public Builder setRefuse(boolean value) {\n copyOnWrite();\n instance.setRefuse(value);\n return this;\n }", "void setRef(java.lang.String ref);", "public void setInheritrefs(boolean b) {\r\n this.inheritRefs = b;\r\n }", "public void setDeviceArray(org.hl7.fhir.ResourceReference[] deviceArray)\n {\n check_orphaned();\n arraySetterHelper(deviceArray, DEVICE$12);\n }", "private void setDiscoverableBt() {\n\t\tIntent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n\t\tdiscoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, MADN3SCamera.DISCOVERABLE_TIME);\n\t\tstartActivity(discoverableIntent);\n\t}", "public SetOnceRef(Object ref, boolean allowNull) {\n this(ref, allowNull, true);\n }", "public void setRefId (int refId)\n {\n this.refId = refId;\n }", "protected void setOnWhenMovementDetected(boolean onWhenMovementDetected) {\n this.onWhenMovementDetected = onWhenMovementDetected;\n }", "public void setSingleUse(boolean value) {\r\n this.singleUse = value;\r\n }", "private void setCrossReference (String aCrossReference)\n\t{\n\t\tcrossReference = aCrossReference;\n\t}", "public void setMediaNetworkReachable(boolean value);", "public void setDeviceServiceLink(PeripheralDriverDeviceMutationInterface deviceServiceLink);", "@DISPID(1611005980) //= 0x6006001c. The runtime will prefer the VTID if present\n @VTID(55)\n boolean updateLinkedExternalReferences();", "public void setReference(java.lang.String reference) {\n this.reference = reference;\n }", "public void setDevice(String device) {\r\n this.device = device;\r\n }", "public void setReference(javax.xml.namespace.QName reference)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFERENCE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REFERENCE$0);\n }\n target.setQNameValue(reference);\n }\n }", "@Override\n public boolean setActiveDevice(BluetoothDevice bluetoothDevice) throws RemoteException {\n Parcel parcel = Parcel.obtain();\n Parcel parcel2 = Parcel.obtain();\n try {\n parcel.writeInterfaceToken(Stub.DESCRIPTOR);\n boolean bl = true;\n if (bluetoothDevice != null) {\n parcel.writeInt(1);\n bluetoothDevice.writeToParcel(parcel, 0);\n } else {\n parcel.writeInt(0);\n }\n if (!this.mRemote.transact(23, parcel, parcel2, 0) && Stub.getDefaultImpl() != null) {\n bl = Stub.getDefaultImpl().setActiveDevice(bluetoothDevice);\n parcel2.recycle();\n parcel.recycle();\n return bl;\n }\n parcel2.readException();\n int n = parcel2.readInt();\n if (n == 0) {\n bl = false;\n }\n parcel2.recycle();\n parcel.recycle();\n return bl;\n }\n catch (Throwable throwable) {\n parcel2.recycle();\n parcel.recycle();\n throw throwable;\n }\n }", "public SetOnceRef() {\n this(null, false, false);\n }", "@Reference\n public void setRemoteChannelLookup(final RemoteChannelLookup remoteChannelLookup)\n {\n m_RemoteChannelLookup = remoteChannelLookup;\n }", "public void setCaptureDevice(String devid);", "public void setHostRef(Reference hostRef) {\n this.hostRef = hostRef;\n }", "public void setCatalogPathRef(Reference r) {\n if (isReference()) {\n throw tooManyAttributes();\n }\n createCatalogPath().setRefid(r);\n setChecked(false);\n }", "public void setUniqueReference (int aUniqueReference)\n\t{\n\t\tuniqueReference = aUniqueReference;\n\t}", "public void setRefId(long value) {\n this.refId = value;\n }", "public void assignAddingContact(final boolean val) {\n addingContact = val;\n }", "public void shouldNotGc() {\n reachabilityReferenceChain = new Reference(\n new SoftReference(\n new Reference(\n new WeakReference(\n new SoftReference(\n new PhantomReference(new Object(), referenceQueue))))));\n }", "public void recordSetRefReprs()\n {\n //##60 BEGIN\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"\\nrecordSetRefReprs\",\n getSubpSym().getName());\n if (isComputedOrUnderComputation(DF_SETREFREPR)) {\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"already computed\");\n return;\n }\n //##60 END\n //##65 BEGIN\n if (! isComputed(DF_EXPID)) {\n allocateExpIdForSubp();\n }\n //##65 END\n setUnderComputation(DF_SETREFREPR); //##62\n //##65 BEGIN\n if (fArrayOfSetRefReprList == null) {\n fArrayOfSetRefReprList = new SetRefReprList[fBBlockCount + 1];\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(4, \"allocate fArrayOfSetRefReprList \"\n + fBBlockCount + 1);\n }\n //##65 END\n BBlock lBBlock;\n for (Iterator lCFGIterator = getBBlockList().iterator();\n lCFGIterator.hasNext(); ) {\n lBBlock = (BBlock)lCFGIterator.next();\n if (flowRoot.isHirAnalysis())\n recordSetRefReprs((BBlockHirImpl)lBBlock);\n }\n //##60 fDefCount=setRefRepr.getDefSetRefReprCount();\n fDefCount = getDefCount(); //##60\n //##60 DefVectorImpl.setVectorLength(flowRoot, fDefCount);\n setComputedFlag(DF_SETREFREPR); //##60\n }", "@Override\n protected void onConnecting() {\n mPreferredTarget = null;\n }", "public boolean isSetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(ROADWAYREF$16) != null;\r\n }\r\n }", "@Before\n public void setup() {\n device = new Device(deviceID, token);\n }", "public void setRingerDevice(String devid);", "public void xsetReference(org.apache.xmlbeans.XmlQName reference)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlQName target = null;\n target = (org.apache.xmlbeans.XmlQName)get_store().find_element_user(REFERENCE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlQName)get_store().add_element_user(REFERENCE$0);\n }\n target.set(reference);\n }\n }", "public Smart(final List<String> references)\n {\n this.references = references;\n final int size = references != null ? references.size() : 0;\n this.next = new Component[size];\n this.peek = Distributor.UNKNOWN;\n }", "public Binding setReference(IDatatype theValue) {\n\t\tmyReference = theValue;\n\t\treturn this;\n\t}", "public boolean generatesReferenceAreas() {\n return false;\n }", "public void setDevice(final String device)\n {\n this.device = device;\n }", "public boolean pointAtMetaConfig() {\n return pointAt(RefNames.REFS_CONFIG);\n }", "public void setServiceRef(IntegrationAppmasterService<?> serviceRef) {\n\t\tthis.serviceRef = serviceRef;\n\t}", "public void setNull(){\n for (int i = 0; i < Nodes.size(); i++){\n this.References.add(null);\n }\n }", "public void setFirearm(boolean value) {\r\n this.firearm = value;\r\n }", "public void setRefId(Integer refId) {\n this.refId = refId;\n }", "public void initialiseReference(ComponentReferenceModel crm) {\n \n // Find the BPEL implementation associated with the reference\n if (crm.getComponent() != null\n && crm.getComponent().getImplementation() instanceof BPELComponentImplementationModel) {\n BPELComponentImplementationModel impl=\n (BPELComponentImplementationModel)crm.getComponent().getImplementation();\n \n QName processName=impl.getProcessQName();\n \n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Register reference \"+crm.getName()+\" (\"+crm.getQName()+\") for process \"+processName);\n }\n \n RegistryEntry re=_registry.get(processName);\n \n if (re == null) {\n re = new RegistryEntry();\n _registry.put(processName, re);\n }\n \n javax.wsdl.Definition wsdl=WSDLHelper.getWSDLDefinition(crm.getInterface().getInterface());\n javax.wsdl.PortType portType=WSDLHelper.getPortType(crm.getInterface().getInterface(), wsdl);\n \n re.register(portType, crm.getQName(), crm.getComponent().getQName());\n\n } else {\n throw BPELMessages.MESSAGES.couldNotFindBPELImplementationAssociatedWithReference();\n }\n \n }", "public void analyzeSetReference(AnalyzeInfo info)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n\n // php/3a6f\n objGen.analyzeSetReference(info);\n }", "private void setRelationsValid(boolean value)\n {\n __relationsValid = value;\n }" ]
[ "0.59470177", "0.5784595", "0.57591575", "0.57065237", "0.5647484", "0.5619921", "0.5539236", "0.5469969", "0.5395595", "0.5350113", "0.5341969", "0.53068376", "0.5288233", "0.5242949", "0.5206463", "0.5204506", "0.520242", "0.5178946", "0.5176069", "0.51623106", "0.5155372", "0.5110955", "0.51045007", "0.50760615", "0.5049598", "0.504806", "0.5047324", "0.5047324", "0.5035508", "0.5014186", "0.5002097", "0.49928752", "0.49912044", "0.49897364", "0.49827525", "0.49814886", "0.49768564", "0.49721083", "0.4967113", "0.49499747", "0.49426693", "0.49350908", "0.492606", "0.49238452", "0.49165282", "0.4916406", "0.4909808", "0.48947063", "0.48741573", "0.4865963", "0.48653856", "0.48617983", "0.48576474", "0.48574343", "0.48419458", "0.48088282", "0.47950873", "0.47922322", "0.47849202", "0.4778105", "0.47581285", "0.47563696", "0.4747401", "0.4744485", "0.4731383", "0.4727744", "0.47263467", "0.46976894", "0.46972936", "0.468417", "0.46805748", "0.46717322", "0.4664344", "0.4643564", "0.46408397", "0.4628568", "0.46283108", "0.46141347", "0.46130437", "0.4600989", "0.46003112", "0.46001226", "0.45996663", "0.45887482", "0.45840785", "0.45839986", "0.458372", "0.45788595", "0.45731995", "0.45728478", "0.45720148", "0.45687622", "0.4561341", "0.45554692", "0.45448148", "0.45399332", "0.4538993", "0.45270482", "0.45235634", "0.4518017" ]
0.57596636
2
Given a Scanner as input, returns a List of strings read from the Scanner. The method should read words from the Scanner until there are no more words in the file (i.e. inScanner.hasNext() is false). The list of strings should be returned to the calling program.
public static ArrayList<String> getList(Scanner inScanner) { // Fill in the body ArrayList<String> list = new ArrayList<String>(); return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void readFile()\n {\n Scanner sc2 = new Scanner(System.in);\n try {\n sc2 = new Scanner(new File(\"src/main/java/ex45/exercise45_input.txt\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n while (sc2.hasNextLine()) {\n Scanner s2 = new Scanner(sc2.nextLine());\n while (s2.hasNext()) {\n //s is the next word\n String s = s2.next();\n this.readFile.add(s);\n }\n }\n }", "private List<String> readStopFile(File stopFile) throws FileNotFoundException {\n\n Scanner scanner = new Scanner(stopFile);\n List<String> words;\n words = new ArrayList<>();\n String temp;\n\n while (scanner.hasNextLine()) {\n temp = scanner.nextLine();\n words.add(temp.toLowerCase());\n }\n\n return words;\n }", "private static void list() throws FileNotFoundException {\n ArrayList<String> words = new ArrayList<>();\n Scanner input = new Scanner(new File(fileLocation));\n while (input.hasNext()) {\n String word = input.next();\n if (!words.contains(word)) {\n words.add(word);\n }\n }\n }", "public ArrayList<String> readTokens(String fileName) {\n Scanner sc1, sc2;\n ArrayList<String> wordList = new ArrayList<String>();\n\n try {\n sc1 = new Scanner(new File(fileName));\n\n while (sc1.hasNextLine()) {\n sc2 = new Scanner(sc1.nextLine());\n\n while (sc2.hasNext()) {\n String strWord = sc2.next().replaceAll(\"\\\\W\", \"\").toLowerCase();\n wordList.add(strWord);\n }\n\n sc2.close();\n }\n\n sc1.close();\n } catch (Exception e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n\n return wordList;\n }", "public ArrayList<String> getDefinitions () throws FileNotFoundException {\n String inputFile = getInputFile();\r\n Scanner scanner = new Scanner (new File (inputFile));\r\n ArrayList<String> terms = new ArrayList<String>();\r\n ArrayList<String> definitions = new ArrayList<String>();\r\n while (scanner.hasNextLine()) {\r\n terms.add(scanner.nextLine()); //took out .toLowerCase()\r\n definitions.add(scanner.nextLine());\r\n }\r\n return definitions;\r\n }", "private static List<String> getWordList(File feedFile) throws IOException {\n\n\t\tfinal List<String> words = new ArrayList<>();\n\n\t\tfinal BufferedReader textReader = new BufferedReader(new FileReader(feedFile));\n\n\t\ttextReader.lines()\n\t\t.forEach(lines -> words.addAll(Arrays.asList(lines.split(\"[\" + SPLIT_WORDS_AT_CHARS + \"]\")))); // Adds every word of every line to the words list\n\n\t\ttextReader.close();\n\n\t\treturn words.stream()\n\t\t\t\t.map(String::toLowerCase)\n\t\t\t\t.filter(word -> !word.equals(\"\")) // Filters out empty strings\n\t\t\t\t.map(String::trim)\n\t\t\t\t.collect(Collectors.toList());\n\t}", "public ArrayList<String> getTerms () throws FileNotFoundException {\n String inputFile = getInputFile();\r\n Scanner scanner = new Scanner (new File (inputFile));\r\n ArrayList<String> terms = new ArrayList<String>();\r\n ArrayList<String> definitions = new ArrayList<String>();\r\n while (scanner.hasNextLine()) {\r\n terms.add(scanner.nextLine()); //took out .toLowerCase() part so it prints correctly \r\n definitions.add(scanner.nextLine());\r\n }\r\n return terms;\r\n }", "public List<String> getFromFile(String file) throws FileNotFoundException {\n\t\tScanner scan = new Scanner(new File(file));\n\t\tList<String> words = new ArrayList<String>();\n\t\twhile(scan.hasNextLine()){\n\t \tString line = scan.nextLine();\n\t \n\t \twords.add(line);\n\t }\n\t\treturn words;\n\t}", "public String[] FetchWordsFrom(File file){\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t \tScanner scnr = null;\r\n\t\ttry {\r\n\t\t\tscnr = new Scanner(file);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\r\n\t \tString s=\"\";\r\n\t \twhile(scnr.hasNextLine()){\r\n\t \t\tsb.append(scnr.nextLine());\r\n\t \t\tsb.append(\" \");\r\n\t \t\ts=sb.toString();\r\n\t \t}\r\n\tString[] words = s.split(\" \");\r\n\tscnr.close();\r\n\treturn words;\r\n\t}", "public List<String> readFile(File spamFile) throws FileNotFoundException {\n\n Scanner scanner = new Scanner(spamFile);\n List<String> words;\n words = new ArrayList<>();\n List<String> temp;\n List<String> tempStr;\n while (scanner.hasNextLine()) \n {\n temp = Arrays.asList(scanner.nextLine().split(\"[ :@,.-]\"));\n for (String t : temp) \n {\n t = t.toLowerCase();\n if (!t.matches(\"[a-z']+\") || (stopListEnable && stopWords.contains(t))) \n {\n continue;\n } \n else \n {\n words.add(t);\n }\n }\n }\n\n return words;\n }", "public static ArrayList<String> readBook(String filename)\n throws FileNotFoundException {\n ArrayList<String> words = new ArrayList<>();\n Scanner in = new Scanner(new File(filename));\n while (in.hasNext()) {\n words.add(in.next());\n }\n return words;\n }", "public List<String> spellCheck(String fileName) {\r\n List<String> list = new LinkedList<String>();\r\n\r\n Scanner fileScanner;\r\n\r\n try {\r\n // use a FileInputStream to ensure correct reading end-of-file\r\n fileScanner = new Scanner(new FileInputStream(\"data\" + File.separator +fileName));\r\n\r\n while (fileScanner.hasNextLine()) {\r\n String nextLine = fileScanner.nextLine();\r\n // System.out.println(\"nextLine: \" + nextLine); uncomment if you want to see what is read in\r\n String [] words = nextLine.split(\" \");\r\n\r\n for(int i = 0; i < words.length; i++)\r\n {\r\n if(words[i].length() > 0 && !contains(words[i]))\r\n {\r\n list.add(words[i]);\r\n }\r\n }\r\n }\r\n\r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"could not find the file \" +fileName+ \"in the data directory!\");\r\n return null;\r\n }\r\n\r\n return list;\r\n }", "private List<String> getInputList(BufferedReader br) throws IOException {\n\t\tArrayList<String> inputWordsList = new ArrayList<String>();\n\t\tString tempInputWord = null;\n\t\twhile ((tempInputWord = br.readLine()) != null) {\n\t\t\tinputWordsList.add(tempInputWord);\n\t\t}\n\t\treturn inputWordsList;\n\t}", "private static List<String[]> readInput(String filePath) {\n List<String[]> result = new ArrayList<>();\n int numOfObject = 0;\n\n try {\n Scanner sc = new Scanner(new File(filePath));\n sc.useDelimiter(\"\");\n if (sc.hasNext()) {\n numOfObject = Integer.parseInt(sc.nextLine());\n }\n for (int i=0;i<numOfObject;i++) {\n if (sc.hasNext()) {\n String s = sc.nextLine();\n if (s.trim().isEmpty()) {\n continue;\n }\n result.add(s.split(\" \"));\n }\n }\n sc.close();\n }\n catch (FileNotFoundException e) {\n System.out.println(\"FileNotFoundException\");\n }\n return result;\n }", "public static String [] findWords (String letters) \r\n { \r\n String total = \"\";\r\n try\r\n {\r\n Scanner scanner = new Scanner(new File(\"wordlist.txt\"));\r\n while(scanner.hasNext())\r\n {\r\n String line = scanner.nextLine();\r\n if(matchletters(line, letters))\r\n total = total.concat(line).concat(\" \");\r\n }\r\n //System.out.println(total);\r\n return total.split(\" \");\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(\"Error found: \" + e);\r\n return null;\r\n }\r\n }", "public ArrayList <String> loadWordList () {\n ArrayList <String> words = new ArrayList <String> ();\n File file;\n if (chooser.showOpenDialog (null) == JFileChooser.APPROVE_OPTION) {\n file = chooser.getSelectedFile ();\n } else {\n return words;\n }\n if (file != null) {\n try {\n FileReader fileReader = new FileReader (file);\n BufferedReader buffer = new BufferedReader (fileReader);\n String temp;\n while ((temp = buffer.readLine ()) != null)\n words.add (temp);\n buffer.close ();\n return words;\n } catch (IOException e) {\n JOptionPane.showMessageDialog (null, \"File IO Exception\\n\" + e.getLocalizedMessage (), \"Error!\", JOptionPane.ERROR_MESSAGE);\n }\n }\n return words;\n }", "public ArrayList<String> readWords(String fileName) {\n BufferedReader r = null;\n\n try {\n r = new BufferedReader(new InputStreamReader(new FileInputStream(fileName)));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n words = new ArrayList<String>();\n\n while (true) {\n String word = null;\n try {\n word = r.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (word == null) {\n break;\n }\n assert word.length() == 5;\n words.add(word);\n }\n\n return words;\n }", "private static Set<String> readFromFile(String fileName)\n\t{\n\t\tSet<String> words = new HashSet<String> ();\n\t\ttry \n\t\t{\n\t\t\tScanner scanner = new Scanner(new File(fileName));\n\t\t\twhile (scanner.hasNext())\n\t\t\t{\n\t\t\t\tString word = scanner.nextLine();\n\t\t\t\twords.add(word);\n\t\t\t}\n\t\t\tscanner.close();\n\t\t}\n\t\tcatch (FileNotFoundException e)\n\t\t{\n\t\t\treturn words;\n\t\t}\n\t\treturn words;\n\t}", "public static String[] readFile() throws FileNotFoundException {\r\n\t\tScanner scan = new Scanner(new File(\"H:/My Documents/Eclipse/wordlist.txt\"));\r\n\t\tArrayList<String> a = new ArrayList<String>();\r\n\t\twhile (scan.hasNextLine()) {\r\n\t\t\ta.add(scan.nextLine());\r\n\t\t}\r\n\t\tString[] w = new String[a.size()];\r\n\t\tfor (int i = 0; i < a.size(); i++) {\r\n\t\t\tw[i] = a.get(i);\r\n\t\t}\r\n\t\tscan.close();\r\n\t\treturn w;\r\n\t}", "public ArrayList<String> readFromFile(){\n ArrayList<String> results = new ArrayList<>();\n //Wrap code in a try/ catch to help with exception handling.\n try{\n //Create a object of Scanner class\n Scanner s = new Scanner(new FileReader(path));\n //While loop for iterating thru the file.\n // Reads the data and adds it to the ArrayList.\n while(s.hasNext()) {\n String c1 = s.next();\n String c2 = s.next();\n String w = s.next();\n results.add(c1);\n results.add(c2);\n results.add(w);\n }return results;\n\n }//File not found exception block.\n catch(FileNotFoundException e){\n System.out.println(e);\n }\n return results;//default return.\n }", "protected List<List<String>> readFile() throws FileNotFoundException {\n\n List<List<String>> list = new ArrayList<>();\n\n File dire = new File(dir);\n File file = new File(dire, filename);\n\n try (Scanner in = new Scanner(file)) {\n\n while (in.hasNextLine()) {\n \n String line = in.nextLine();\n \n String temp[] = line.split(delimiter);\n \n list.add(Arrays.asList(temp));\n }\n in.close();\n } catch (IOException e) {\n System.out.println(\"Error reading file!\");\n }\n return list;\n }", "public List<String> readFile(File inputFile) {\n\n List<String> AL = new ArrayList<>();\n List<String> retAL;\n wordReplace wr = new wordReplace();\n String text;\n try{\n Scanner file_scan = new Scanner(inputFile);\n while(file_scan.hasNextLine()){\n text= file_scan.nextLine();\n AL.add(text);\n }\n file_scan.close();\n }\n catch(IOException e){\n System.out.println(\"File Not Found for some reason.\");\n }\n retAL = wr.replaceWord((ArrayList<String>) AL);\n return retAL;\n }", "public List<String> readFileIntoList(String filepath) throws IOException;", "public static ArrayList<String> convert2list(String filename) \n\t\t\tthrows FileNotFoundException{\n\t\tInputStream oeuvre = new FileInputStream(filename);\n\t\tScanner scanner = new Scanner(oeuvre).useDelimiter(\"\\n\");\n\t\t\n\t\tArrayList<String> words = new ArrayList<String>();\n\t\twhile(scanner.hasNext()){\n\t\t\twords.add(scanner.next());\n\t\t}\n\t\treturn words;\n\t}", "public static ArrayList<String> readWords(String fileName){\n\t\treturn read(fileName, true);\n\t}", "public static void readStopList() throws FileNotFoundException {\n String tempBuffer = \"\";\n Scanner sc_obj = new Scanner(new File(\"./inputFiles/Stopword-List.txt\"));\n\n while(sc_obj.hasNext()) {\n tempBuffer = sc_obj.next();\n stopWords.add(tempBuffer);\n }\n sc_obj.close();\n }", "public static List<List<String>> readFile() {\r\n List<List<String>> out = new ArrayList<>();\r\n File dir = new File(\"./tmp/data\");\r\n dir.mkdirs();\r\n File f = new File(dir, \"storage.txt\");\r\n try {\r\n f.createNewFile();\r\n Scanner s = new Scanner(f);\r\n while (s.hasNext()) {\r\n String[] tokens = s.nextLine().split(\"%%%\");\r\n List<String> tokenss = new ArrayList<>(Arrays.asList(tokens));\r\n out.add(tokenss);\r\n }\r\n return out;\r\n } catch (IOException e) {\r\n throw new Error(\"Something went wrong: \" + e.getMessage());\r\n }\r\n }", "public void readfiles1(String file_name){\n \n\n try{\n File fname1 = new File(file_name);\n Scanner sc = new Scanner(fname1);\n \n while (sc.hasNext()){\n String temp = sc.nextLine();\n String[] sts = temp.split(\" \");\n outs.addAll(Arrays.asList(sts));\n\n }\n\n // for (int i = 0;i<outs.size();i++){\n // System.out.println(outs.get(i));\n //}\n\n }catch(Exception ex){\n System.out.println(ex.getMessage());\n }\n }", "List<String> fileToListOfWords(File f) throws FileNotFoundException {\n\n\t\tScanner sc = new Scanner(f, \"UTF-8\");\n\n\t\tString txt = sc.useDelimiter(\"\\\\A\").next().toLowerCase();\n\t\tString[] s = txt.replaceAll(\"^[.,\\\\s]+\", \"\").split(\"[.,\\\\s]+\");\n\t\tsc.close(); // ovo je dobro\n\t\tList<String> list = Arrays.asList(s);\n\t\t\n\t\treturn list;\n\t}", "public static List<String> readListOfStringsFromFile(String filePath) throws IOException {\n List<String> list = new ArrayList<>();\n Files.lines(Paths.get(filePath), StandardCharsets.UTF_8).forEach(list::add);\n return list;\n }", "private void exercise7() throws IOException {\n final Path resourcePath = retrieveResourcePath();\n List<String> result;\n try (BufferedReader reader = newBufferedReader(resourcePath)) {\n result = reader.lines()\n .flatMap(line -> of(line.split(WORD_REGEXP)))\n .distinct()\n .map(String::toLowerCase)\n .sorted(comparingInt(String::length))\n .collect(toList());\n }\n\n result.forEach(System.out::println);\n }", "private ArrayList<String> parseFile(String file_name){ // extract each line from file AS string (stopList)\r\n ArrayList<String> list = new ArrayList<>();\r\n Scanner scanner = null;\r\n try{\r\n scanner = new Scanner(new BufferedReader(new FileReader(file_name)));\r\n while (scanner.hasNextLine())\r\n {\r\n list.add(scanner.nextLine());\r\n }\r\n }\r\n catch (Exception e ){ System.out.println(\"Error reading file -> \"+e.getMessage()); }\r\n finally {\r\n if(scanner != null ){scanner.close();} // close the file\r\n }\r\n return list;\r\n }", "public static ArrayList<String> inquiries() {\n ArrayList<String> temp = new ArrayList<String>();\n Scanner inquirer;\n try {\n inquirer = new Scanner(new File(\"Inquiries.txt\"));\n inquirer.useDelimiter(\", *\");\n while (inquirer.hasNext()){\n temp.add(\" \"+inquirer.next()+\" \");\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }", "private static ArrayList<String> read(String fileName, boolean next) {\n\t\t\n\n\t\tFile input = new File(fileName);\n\t\tArrayList<String> information = new ArrayList<String>();\n\t\t\n\t\t\n\t\t//uses a simple try catch to read the file\n\t\ttry {\n\t\t\t\n\t\t\tScanner fileReader = new Scanner(input);\n\t\t\t\n\t\t\tif(next) //if reading by word, the ArrayList will contain info by word\n\t\t\t\twhile(fileReader.hasNext()) \n\t\t\t\t\tinformation.add(fileReader.next());\n\t\t\t\t\n\t\t\telse //otherwise the ArrayList will contain info by lines\n\t\t\t\twhile(fileReader.hasNextLine())\n\t\t\t\t\tinformation.add(fileReader.nextLine());\n\t\t\t\n\t\t\tfileReader.close();\n\t\t} catch(FileNotFoundException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn information;\n\t}", "private void addWords(Scanner scan) {\n while (scan.hasNext()) {\n add(scan.next());\n }\n }", "private void exercise6() throws IOException {\n final Path resourcePath = retrieveResourcePath();\n List<String> result;\n try (BufferedReader reader = newBufferedReader(resourcePath)) {\n result = reader.lines()\n .flatMap(line -> of(line.split(WORD_REGEXP)))\n .distinct()\n .map(String::toLowerCase)\n .sorted()\n .collect(toList());\n }\n\n result.forEach(System.out::println);\n }", "public static ArrayList<String> convert2listWithoutDuplicate(String filename) \n\t\t\tthrows FileNotFoundException{\n\t\t\n\t\tInputStream oeuvre = new FileInputStream(filename);\n\t\tScanner scanner = new Scanner(oeuvre).useDelimiter(\"\\n\");\n\t\t\n\t\tArrayList<String> words = new ArrayList<String>();\n\t\tString word = null;\n\t\twhile(scanner.hasNext()){\n\t\t\tword = scanner.next();\n\t\t\tif (!(words.contains(word))){\n\t\t\t\twords.add(word);\n\t\t\t}\n\t\t\n\t\t}\n\t\treturn words;\n\t}", "public static List<String> parseDocument(Path file) throws IOException {\n List<String> words = new ArrayList<>();\n try (BufferedReader br = Files.newBufferedReader(file)) {\n String line;\n while ((line = br.readLine()) != null) {\n char[] characters = line.trim().toCharArray();\n int startPosition = -1;\n for (int i = 0; i < characters.length; i++) {\n char c = characters[i];\n if (!Character.isAlphabetic(c)) {\n if (startPosition == -1) {\n continue;\n }\n words.add(new String(characters, startPosition, i - startPosition).toLowerCase());\n startPosition = -1;\n } else if (Character.isAlphabetic(c) && startPosition == -1) {\n startPosition = i;\n }\n }\n if (startPosition != -1) {\n words.add(new String(characters, startPosition, characters.length - startPosition).toLowerCase());\n }\n }\n }\n return words;\n }", "private ArrayList<String> parseDocsFile(String file_name){\r\n // extract each <DOC> ... </DOC> from file AS string (corpus)\r\n ArrayList<String> list = new ArrayList<>();\r\n Scanner scanner = null;\r\n try{\r\n scanner = new Scanner(new BufferedReader(new FileReader(file_name)));\r\n scanner.useDelimiter(\"</DOC>\"); // END of Next()\r\n while (scanner.hasNext())\r\n {\r\n list.add(scanner.next()+\"</DOC>\");\r\n }\r\n list.remove(list.size()-1);\r\n }\r\n catch (Exception e ){ System.out.println(\"Error reading file -> \"+e.getMessage()); }\r\n finally {\r\n if(scanner != null ){scanner.close();} // close the file\r\n }\r\n return list;\r\n }", "public Iterator<String> words();", "private String[] readStopwords(String filepath) {\n // Get filepath\n Path path = Paths.get(filepath);\n\n // Array to hold each stopword\n ArrayList<String> words = new ArrayList<>();\n\n // Read file at that path\n try {\n Files.readAllLines(path).forEach(word -> {\n // Add each stopword\n words.add(word);\n });\n } catch (IOException e) {\n System.out.println(\"No stopwords list found.\");\n System.exit(1);\n }\n\n // Cast to String array and return\n String[] wordsArray = new String[words.size()];\n wordsArray = words.toArray(wordsArray);\n return wordsArray;\n }", "public Set<String> loadWords(final String filePath, final String delimiter) {\n\t\tSet<String> keywords = new HashSet<>();\n\t\tFile file = new File(filePath);\n\t\tScanner scanner = null;\n\t\ttry {\n\t\t\tscanner = new Scanner(file);\n\t\t\tscanner.useDelimiter(\",\");\n\t\t\twhile (scanner.hasNext()) {\n\t\t\t\tkeywords.add(scanner.next().toLowerCase());\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tscanner.close();\n\t\t}\n\t\treturn keywords;\n\t}", "private List<String> readFile(String fileName)\n {\n try\n {\n String file = new String(Files.readAllBytes(Paths.get(fileName)), Charset.forName(\"ISO-8859-1\"));\n file = file\n .toLowerCase()\n .replaceAll(\"[^\\\\w]+\", \" \")\n .replaceAll(\"[0-9]\", \"\");\n Tokenizer tokenizer = SimpleTokenizer.INSTANCE;\n String[] tokens = tokenizer.tokenize(file);\n return Arrays.asList(tokens);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return new ArrayList<>();\n }", "public ArrayList<ArrayList<Character> > reader(java.io.InputStream in) throws IOException{\n String s = \"\";\n int data = in.read();\n while(data!=-1){\n s += String.valueOf((char)data);\n data = in.read();\n }\t\t\t\t\t\t\t\t// s now has the input file stored as a string\n ArrayList<ArrayList<Character> > arr = new ArrayList<>();\n for(int i = 0;i<s.length();){\n ArrayList<Character> a = new ArrayList<>();\n while(s.charAt(i)!='\\n'){\n if((s.charAt(i)-'a'>=0&&s.charAt(i)-'a'<=25)||(s.charAt(i)-'0'>=0&&s.charAt(i)-'0'<=9)){ //taking only alphanumerics\n a.add(s.charAt(i));\n }\n i++;\n }\n arr.add(a);\n i++;\n }\n return arr;\n }", "private void exercise5() throws IOException {\n final Path resourcePath = retrieveResourcePath();\n List<String> nonDuplicateList;\n try (BufferedReader reader = newBufferedReader(resourcePath)) {\n nonDuplicateList = reader.lines()\n .flatMap(line -> of(line.split(WORD_REGEXP)))\n .distinct()\n .collect(toList());\n }\n\n nonDuplicateList.forEach(System.out::println);\n }", "public static void findWords(String target) throws FileNotFoundException{\n //reads file through the scanner\n scan = new Scanner(newFile);\n \n //creates new arraylist \n ArrayList<String> list = new ArrayList<String>();\n int count;\n while(scan.hasNextLine()){\n word = scan.nextLine();\n if(contains(target, word)){\n list.add(word.toLowerCase());\n }\n }\n\n int length = target.length();\n\n for(int i = length; i >= 2; i--){\n count = 0;\n System.out.println(i + \" letter words made by unscrambling the letters in \" + target );\n \n //This loop goes through all the strings in the arraylist of words contained\n //in the target word\n for(String a : list){\n //If the length of word in the arraylist is equal to i it prints the \n //word, as long as the line does not go over 40 characters\n if(a.length() == i) {\n if(count > (40 -a.length())){ \n System.out.print(\"\\n\");\n System.out.print(a + \" \");\n count = 0;\n count += (a.length() + 1);\n }\n else{\n System.out.print(a + \" \");\n count += (a.length() + 1);\n }\n }\n\n }\n //decrements length, and continues going through the loop\n length--;\n System.out.println(\"\\n\");\n }\n }", "public static List<String> readIn(String filename) throws Exception {\r\n Path filePath = new File(filename).toPath();\r\n Charset charset = Charset.defaultCharset(); \r\n List<String> stringList = Files.readAllLines(filePath, charset);\r\n\r\n return stringList;\r\n }", "public static ArrayList<String> adverbs() {\n ArrayList<String> temp = new ArrayList<String>();\n Scanner adverber;\n try {\n adverber = new Scanner(new File(\"Adverbs.txt\"));\n adverber.useDelimiter(\", *\");\n while (adverber.hasNext()){\n temp.add(\" \"+adverber.next()+\" \");\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }", "static List<String> readLines(InputStream in) throws IOException {\n\t\tList<String> lines = new ArrayList<String>();\n\t\t\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\tString line = null;\n\t\twhile((line = reader.readLine()) != null) {\n\t\t\tlines.add(line);\n\t\t}\n\t\treturn lines;\n\t}", "public static List<String> makeListFromFile(String filename) {\n\t\tList<String> names = new ArrayList<>();\n\t\ttry {\n\t\t\tFile file = new File(\"/Users/adhiman/Downloads/\" + filename);\n\t\t\tScanner input = new Scanner(file);\n\t\t\t\n\t\t\twhile (input.hasNextLine()) {\n\t\t\t\tString line = input.nextLine();\n\t\t\t\tnames.add(line);\n\t\t\t}\n\t\t\tinput.close();\n\t\t\t\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn names;\n\t}", "public ArrayList<String> getInputByWords(Class c, String file){\n this.resourceName = file;\n input = new ArrayList<String>();\n headerLine = new String();\n getFileAsResourceSpaceDelineated(c);\n return this.input;\n }", "public ArrayList<WordList> getAllWordLists() {\n userLogger.info(\"getting wordlists started\");\n\n // open file for reading\n InputStream inputStream = null;\n ArrayList<WordList> allWordlists = new ArrayList<>();\n\n try {\n inputStream = new FileInputStream(INPUT_DIRECTORY + filePath);\n Workbook wb = WorkbookFactory.create(inputStream);\n Sheet sheet = wb.getSheetAt(0);\n\n int rowNum = 0;\n int colNum = 1;\n\n // read all the headers with words' Meanings\n while (sheet.getRow(rowNum).getCell(colNum) != null) {\n if (Main.CONSOLE_SHOW_FOUND_MEANINGS_IN_INPUT_FILE) {\n userLogger.debug(\"meaning found: \" + sheet.getRow(rowNum).getCell(colNum).getStringCellValue());\n }\n allWordlists.add(this.composeWordList(sheet.getRow(rowNum).getCell(colNum).getStringCellValue()));\n colNum++;\n }\n inputStream.close();\n userLogger.info(colNum + \" wordlists are composed from input file\");\n return allWordlists;\n\n } catch (IOException e) {\n userLogger.error(e.toString());\n return null;\n }\n }", "private List<String> readFile() throws FileNotFoundException {\t\n\t\tList<String> itemsLines = new ArrayList<>();\n\t\tFile inputFile = new File(filePath);\t\n\t\ttry (Scanner newScanner = new Scanner(inputFile)) {\n\t\t\twhile(newScanner.hasNextLine()) {\n\t\t\t\titemsLines.add(newScanner.nextLine());\n\t\t\t}\t\n\t\t}\n\t\treturn itemsLines;\n\t}", "public static List read(String fileName) throws IOException {\n\tList data = new ArrayList() ;\n Scanner scanner = new Scanner(new FileInputStream(fileName));\n try {\n while (scanner.hasNextLine()){\n data.add(scanner.nextLine());\n }\n }\n finally{\n scanner.close();\n }\n return data;\n }", "public static void readInFile(Scanner inFile) {\n\t\twhile(inFile.hasNext()) {\n\t\t\tString strIn = inFile.nextLine();\n\t\t\tSystem.out.println(strIn);\n\t\t}\n\t\tinFile.close();\n\t}", "static void read()\n\t\t{\n\n\n\t\t\tString content=new String();\n\t\t\ttry {\n\t\t\t\tFile file=new File(\"Dic.txt\");\n\t\t\t\tScanner scan=new Scanner(file);\n\t\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\t\tcontent=scan.nextLine();\n\t\t\t\t//\tSystem.out.println(content);\n\n\t\t\t\t//\tString [] array=content.split(\" \");\n\t\t\t\t\tlist.add(content.trim());\n\n\t\t\t\t}\n\t\t\t\tscan.close(); \n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\n\t\t}", "public static ArrayList<String> sentenceTokenizer(String filename) throws FileNotFoundException{\n \n ArrayList<String> sentenceList = new ArrayList<String>();\n \n Scanner sc = new Scanner(new File(filename));\n \n String token;\n String sentence = \"\";\n while(sc.hasNext()){\n \n token = sc.next();\n sentence += \" \" + token + \" \";\n \n if(!sc.hasNext()){\n sentenceList.add(sentence.trim());\n break;\n }\n \n if(token.endsWith(\".\")){\n sentence = sentence.trim();\n sentenceList.add(sentence);\n sentence = \"\";\n }\n \n }\n \n sc.close();\n \n return sentenceList;\n \n }", "private ArrayList<String> readEntriesFromFile(String nameOfFile){\n\t\tArrayList<String> foundEntries = new ArrayList<String>();\n\t\t\n\t\ttry{\n\t\t\tFile file = new File(nameOfFile); \n\t\t\tScanner fileIn = new Scanner(file);\n\t\t\twhile (fileIn.hasNext()){\n\t\t\t\tString currentLine = fileIn.nextLine();\n\t\t\t\tfoundEntries.add(currentLine);\n\t\t\t} \n\t\t\tfileIn.close();\n\t\t}catch (IOException e){\n\t\t}\n\t\t\n\t\tif(foundEntries.size()==0){\n\t\t return null;\n\t\t}else{\n\t\t\treturn foundEntries;\n\t\t}\n\t}", "public static String getStopWords() throws IOException{\n\t\tString filepath1 = \"C:/Naveen/CCS/IR/AP89_DATA/AP_DATA/stoplist.txt\";\n\t\tPath path1 = Paths.get(filepath1);\n\t\tScanner scanner1 = new Scanner(path1);\n\t\tStringBuffer stopWords = new StringBuffer();\n\t\t\n\t\twhile (scanner1.hasNextLine()){\n\t\t\tString line = scanner1.nextLine();\n\t\t\tstopWords.append(line);\n\t\t\tstopWords.append(\"|\");\n\t } \n\t\t\n\t\tstopWords.append(\"document|discuss|identify|report|describe|predict|cite\");\n\t\tString allStopwords = stopWords.toString();\n\t\t//System.out.println(\"\"+allStopwords);\n\t\treturn allStopwords;\n\t}", "public List<String> readFileIntoList(String sourceFilepath) throws IOException {\n List<String> lines = new ArrayList<>();\n URL url = new URL(sourceFilepath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n lines.add(line);\n }\n reader.close();\n return lines;\n }", "public List<String> getStopWords(String path)\n\t {\n\t\t try \n\t\t {\n\t\t\t\tFileReader inputFile = new FileReader(path);\n\t\t\t\t@SuppressWarnings(\"resource\")\n\t\t\t\tBufferedReader br = new BufferedReader(inputFile);\n\n\t\t\t\tString line;\n\n\t\t\t\twhile ((line = br.readLine()) != null)\n\t\t\t\t{\n\t\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(line, \",\");\n\t\t\t\t\twhile (tokenizer.hasMoreTokens())\n\t\t\t\t\t{\n\t\t\t\t\t\tstopWords.add(tokenizer.nextToken().trim());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t catch (Exception e)\n\t\t {\n\t\t\t\tSystem.out.println(\"Error while reading file by line:\"\n\t\t\t\t\t\t+ e.getMessage());\n\t\t } \n\t\t \n\t\t return stopWords; \n }", "public ArrayList<String> readFile() {\n data = new ArrayList<>();\n String line = \"\";\n boolean EOF = false;\n\n try {\n do {\n line = input.readLine();\n if(line == null) {\n EOF = true;\n } else {\n data.add(line);\n }\n } while(!EOF);\n } catch(IOException io) {\n System.out.println(\"Error encountered.\");\n }\n return data;\n }", "public static String[] DataCollection(String a) throws FileNotFoundException {\n\tFile file = new File(a); \n \tScanner sc = new Scanner(file); \n \n // Counter variable to count the number of entries in text file\n\tint counter = 0;\n\n\t\n \n\tString[] data = new String[2976];\n // While loop to take in data from text file \n\twhile(sc.hasNextLine())\n\t{\n\t\n\tsc.useDelimiter(\"\\\\Z\"); \n\t\n\t// Inserting data in each line to array\n\tdata[counter] = sc.nextLine();\n\tcounter = counter + 1;\n\t\n\t}\n\treturn data;\n \t}", "public List<String> getStrings(String fileName) throws IOException {\n\n List<String> items = readFile (fileName);\n String text = String.join (\"\", items);\n\n return normalizeCsv (text + \" \");\n }", "public static List<String> readLines( String resources, String fileName) {\n List<String> resultList = new ArrayList<String>();\n File textFile = new File( resources, fileName );\n BufferedReader br = null;\n \n try{\n //System.out.println(\"debug: textFile.getCanonicalPath() : \" + \n // textFile.getCanonicalPath() );\n \n br = new BufferedReader( \n new InputStreamReader( \n new FileInputStream( textFile )));\n String lineOfText;\n while( (lineOfText = br.readLine()) != null ) {\n resultList.add( lineOfText );\n }\n\n } catch( IOException ioe) {\n System.err.println(\"BufferedReader does not read\");\n } finally { \n try { \n br.close(); \n } catch (IOException ioe) {\n System.err.println(\"BufferedReader did not close \" +\n \"properly.\");\n }\n }\n\n \n return resultList;\n }", "public static String getWords(String fileName){\n\t\tString result = null;\n\t\ttry {\n\t\t\tFileInputStream fin = new FileInputStream(fileName);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(fin));\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString line = br.readLine();\n\t\t\t\n\t\t\twhile(line != null){\n\t\t\t\tsb.append(line);\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\tbr.close();\n\t\t\tresult = Utils.removeStopWords(sb.toString());\n\t\t\treturn result;\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn result;\n\t\t}\n\t}", "public static ArrayList<String> verbs() {\n ArrayList<String> temp = new ArrayList<String>();\n Scanner verber;\n try {\n verber = new Scanner(new File(\"Verbs.txt\"));\n verber.useDelimiter(\", *\");\n while (verber.hasNext()){\n temp.add(\" \"+verber.next()+\" \");\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }", "default String[][] txtReader(String fileString) {\n\t\ttry {\n\t\t\tScanner myReader = new Scanner(new File(fileString));\n\t\t\tArrayList<String[]> lines = new ArrayList<>();\n\n\t\t\twhile (myReader.hasNextLine()) {\n\t\t\t\tString[] splitted = myReader.nextLine().split(\" \");\n\t\t\t\tlines.add(splitted);\n\t\t\t}\n\n\t\t\tString[][] result = new String[lines.size()][];\n\t\t\tfor (int i = 0; i < result.length; i++) {\n\t\t\t\tresult[i] = lines.get(i);\n\t\t\t}\n\t\t\treturn result;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"file is not occurred \" + e.getMessage());\n\t\t}\n\t\treturn null;\n\n\t}", "private static List<String> getWord(String urlname) {\n\t\tList<String> returnWord = new ArrayList<String>();\n\t\tBufferedReader reader;\n\t\ttry {\n\t\t\tURL url = new URL(urlname);\n\t\t\tInputStream in = url.openStream();\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\twhile (true) {\n\t\t\t\tString word = reader.readLine();\n\t\t\t\tif (word == null)\n\t\t\t\t\tbreak;\n\t\t\t\treturnWord.add(word);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t\treturn returnWord;\n\t}", "private static ArrayList<String> readInventory(Scanner source) {\n\n\t\tArrayList<String> contents = new ArrayList<String>();\n\n\t\twhile (source.hasNext()) {\n\t\t\tString line = source.nextLine();\n\t\t\tcontents.add(line);\n\t\t}\n\n\t\treturn contents;\n\t}", "String[] readFile(String path) {\n ArrayList<String> list = new ArrayList<>();\n String[] output = null;\n Scanner reader;\n File file;\n\n try {\n file = new File(path);\n reader = new Scanner(file);\n while (reader.hasNextLine()) {\n list.add(reader.nextLine());\n }\n output = new String[list.size()];\n for (int i = 0; i < list.size(); i++) output[i] = list.get(i);\n reader.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found exception\");\n }\n return output;\n }", "public static String readAll() {\n if (!scanner.hasNextLine())\n return \"\";\n\n String result = scanner.useDelimiter(EVERYTHING_PATTERN).next();\n // not that important to reset delimeter, since now scanner is empty\n scanner.useDelimiter(WHITESPACE_PATTERN); // but let's do it anyway\n return result;\n }", "String[] readFile(File file) {\n ArrayList<String> list = new ArrayList<>();\n String[] output = null;\n Scanner reader = null;\n try {\n if (file.isFile()) {\n reader = new Scanner(file);\n while (reader.hasNextLine()) {\n list.add(reader.nextLine());\n }\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found exception\");\n }\n output = new String[list.size()];\n for (int i = 0; i < list.size(); i++) output[i] = list.get(i);\n reader.close();\n return output;\n }", "public String[] read()\n {\n ArrayList<String> input = new ArrayList<String>();\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n if (dir.exists())\n {\n Scanner contacts = new Scanner(dir);\n while (contacts.hasNextLine())\n {\n input.add(contacts.nextLine());\n }\n contacts.close();\n }\n }catch (Exception ex)\n {\n //debug(\"read file contents failure\");\n debug = \"test read failure\";\n }\n return input.toArray(new String[1]);\n }", "public static List<String> readLines(final Reader input) throws IOException {\n final BufferedReader reader = new BufferedReader(input);\n final List<String> list = new ArrayList<String>();\n String line = reader.readLine();\n while (line != null) {\n list.add(line);\n line = reader.readLine();\n }\n return list;\n }", "private static ArrayList<String> getPlayerNames(Scanner inScanner)\n\t{\n\t\tArrayList<String> names = new ArrayList<String>();\n\t\t\n\t\tString coerce = inScanner.nextLine();\n\t\t\n\t\twhile (inScanner.hasNext())\n\t\t{\n\t\t\tif (!(coerce.charAt(0)=='0') && !(coerce.charAt(0)=='1') && !(coerce.charAt(0)=='2') &&\n\t\t\t\t\t!(coerce.charAt(0)=='3') && !(coerce.charAt(0)=='4') && !(coerce.charAt(0)=='5')\n\t\t\t\t\t&& !(coerce.charAt(0)=='6') && !(coerce.charAt(0)=='7') && !(coerce.charAt(0)=='8')\n\t\t\t\t\t&& !(coerce.charAt(0)=='9') && !(coerce.charAt(0)=='-'))\n\t\t\t{\n\t\t\t\tnames.add(coerce);\n\t\t\t\tinScanner.nextLine();\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tinScanner.nextLine();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn names;\n\t\t\n\t}", "public static void main(String[] args) throws FileNotFoundException{\n Scanner scnr = new Scanner(new File(\"words.txt\"));\r\n //Declare the ArrayList to store words\r\n ArrayList<String> words = new ArrayList<String>();\r\n \r\n //Read from file and store elements in the ArrayList\r\n //while(scnr.hasNext()) File is too large and will take time\r\n for(int i = 0; i < 2000; i++){\r\n words.add(scnr.next());\r\n }\r\n // Task1: Display the ArrayList\r\n System.out.println(words); //toString() of the ArrayList\r\n \r\n // Task 2: Display words in reverse order\r\n displayReverse(words);\r\n \r\n // Task 3: Display words ending with \"s\" capitalized\r\n displayPlurals(words);\r\n \r\n // Task 4: Remove words ending with \"s\"\r\n removePlurals(words);\r\n System.out.println(words);\r\n \r\n }", "public static ArrayList<String> readFile(String fileName) {\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\ttry {\n\t\t\tFile myObj = new File(fileName);\n\t\t\tScanner myReader = new Scanner(myObj);\n\t\t\twhile (myReader.hasNextLine()) {\n\t\t\t\tString data = myReader.nextLine();\n\t\t\t\tal.add(data);\n\t\t\t}\n\t\t\tmyReader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tif (e.toString().contains(\"No such file or directory\")) {\n\t\t\t\tal.add(\"no file found\");\n\t\t\t\treturn al;\n\t\t\t}\n\t\t}\n\t\treturn al;\n\t}", "public static String[] readStrings() {\n return readAllStrings();\n }", "public static ArrayList<String> readToString(String filePath) {\n\t\tFile file = new File(filePath);\n\t\tArrayList<String> res = new ArrayList<String>();\n\t\tif (!file.exists()) {\n\t\t\treturn res;\n\t\t}\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tString str = null;\n\t\t\twhile ((str = br.readLine()) != null) {\n\t\t\t\tres.add(str);\n\t\t\t}\n\t\t\tfr.close();\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn res;\n\t}", "public static ArrayList<String> reprompts() {\n ArrayList<String> temp = new ArrayList<String>();\n Scanner reprompter;\n try {\n reprompter = new Scanner(new File(\"Reprompts.txt\"));\n reprompter.useDelimiter(\", *\");\n while (reprompter.hasNext()){\n temp.add(\" \" +reprompter.next()+\" \");\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }", "private static void buildWordList(){\n\t\ttry {\n\t\t\t@SuppressWarnings(\"resource\")\n\t\t\tScanner inScanner = new Scanner(new FileReader(LIST_LOCATION));\n\t\t\tfor(int i = 0; i < collegiateWords.length ; i++){\n\t\t\t\tcollegiateWords[i] = inScanner.nextLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\t\n\t\t\te1.printStackTrace();\n\t\t}\t\n\t\tSystem.out.println(\"Word List Built.\");\n\t}", "public static TreeSet<String> makeDictionary(Scanner file1, Scanner file2)\n {\n\tTreeSet<String> dictionary = new TreeSet<String>();\n\tint counter = 0;\n\n\tfile1.useDelimiter(\"[^a-zA-Z0-9']+\");\n\twhile(file1.hasNext())\n\t {\n\t\tdictionary.add(file1.next().toLowerCase());\n\t }\n\n\tfile2.useDelimiter(\"[^a-zA-Z0-9']+\");\n\twhile(file2.hasNext())\n\t {\n\t\tdictionary.add(file2.next().toLowerCase());\n\t }\n\n\treturn dictionary;\n }", "public static ArrayList<String> getWords(String input) {\r\n ArrayList<String> w = new ArrayList<String>();\r\n input = input.toLowerCase();\r\n String[] words = input.split(\"\\\\s+\");\r\n for (int i = 0; i < words.length; i++) {\r\n words[i] = words[i].replaceAll(\"[^\\\\w]\", \"\");\r\n }\r\n for(String elem: words) {\r\n w.add(elem);\r\n }\r\n return w;\r\n }", "public static List<String> readFileAsList(String filePath) {\n\n\t\tBufferedReader readFile = null;\n\t\tString line = null;\n\t\tList<String> fileContents = new ArrayList<String>();\n\t\ttry {\n\t\t\treadFile = new BufferedReader((new FileReader(filePath)));\n\t\t\twhile ((line = readFile.readLine()) != null)\n\t\t\t\tfileContents.add(line);\n\t\t\treadFile.close();\n\t\t\treturn fileContents;\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Unable to find file: \" + filePath);\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to read file: \" + filePath);\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn fileContents;\n\t}", "public ArrayList<String> getPageAsList() throws FileNotFoundException{\r\n\t\t//List of lines of the file that's being translated\r\n\t\tArrayList<String> pageLines = new ArrayList<String>();\r\n\t\tScanner file = new Scanner(page);\r\n\t\t\r\n\t\t//Takes the file and cuts it into lines, with each one being added to a list\r\n\t\twhile(file.hasNextLine()){\r\n\t\t\tpageLines.add(file.nextLine());\r\n\t\t}\r\n\t\t\r\n\t\treturn pageLines;\r\n\t}", "public Set<String> readFile(File file)throws IOException{\n Scanner scanner = new Scanner(file);\n StringBuilder stringBuilder = new StringBuilder();\n Set<String> data = new HashSet<>();\n\n while(scanner.hasNextLine()){\n data.add(scanner.nextLine());\n }\n return data;\n }", "private static ArrayList<String> readFile() throws ApplicationException {\r\n\r\n ArrayList<String> bookList = new ArrayList<>();\r\n\r\n File sourceFile = new File(FILE_TO_READ);\r\n try (BufferedReader input = new BufferedReader(new FileReader(sourceFile))) {\r\n\r\n if (sourceFile.exists()) {\r\n LOG.debug(\"Reading book data\");\r\n String oneLine = input.readLine();\r\n\r\n while ((oneLine = input.readLine()) != null) {\r\n\r\n bookList.add(oneLine);\r\n\r\n }\r\n input.close();\r\n } else {\r\n throw new ApplicationException(\"File \" + FILE_TO_READ + \" does not exsit\");\r\n }\r\n } catch (IOException e) {\r\n LOG.error(e.getStackTrace());\r\n }\r\n\r\n return bookList;\r\n\r\n }", "public static String[] getUserInput() throws IOException{\n\t\t//Declare variables to read the file.\n\t\tFileInputStream inFile;\n\t\tInputStreamReader inReader;\n\t\tBufferedReader reader;\n\t\t\n\t\t//The test file that I used in order to run the program.\n\t\tString input = \"test.txt\";\n\t\t\n\t\t//Process the file, get it into a bufferedreader\n\t\tinFile = new FileInputStream (input);\n\t\tinReader = new InputStreamReader(inFile);\n\t\treader = new BufferedReader(inReader);\n\n\t\t//The only reason I do this thing where I make a big long string and then break it up\n\t\t//Is because I wasn't too sure about the rules surrounding things we haven't learned (Arrays)\n\t\tString fileData = \"\";\n\t\t\n\t\t//If there's more data, add the line to the end of the FileData String, with a space in between.\n\t\twhile(reader.ready()){\n\t\t\tfileData += (reader.readLine() + \" \");\n\t\t}\n\t\t\n\t\t//Then, break that line up into an array using the split function.\n\t\treturn breakInput(fileData);\n\t}", "private List<String> getLine() throws FileNotFoundException {\n List<String> lines = new ArrayList<>();\n File f = new File(path);\n Scanner s = new Scanner(f);\n while(s.hasNext()){\n lines.add(s.nextLine());\n }\n return lines;\n }", "public ArrayList<String> createStringArray() throws Exception {\n ArrayList<String> stringsFromFile = new ArrayList<>();\n while (reader.hasNext()) {\n stringsFromFile.add(reader.nextLine());\n }\n return stringsFromFile;\n }", "public static ArrayList<String> prompts() {\n ArrayList<String> temp = new ArrayList<String>();\n Scanner prompter;\n try {\n prompter = new Scanner(new File(\"Prompts.txt\"));\n prompter.useDelimiter(\", *\");\n while (prompter.hasNext()){\n temp.add(\" \" +prompter.next()+\" \");\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }", "public List<String> getQuotes() throws FileNotFoundException {\n\t\tList<String> quotes = new LinkedList<String>();\n\t\tScanner scan = new Scanner(file);\n\n\t\tString curLine = \"\", rq = \"\";\n\t\tboolean inQuote = false;\n\n\t\twhile (scan.hasNextLine()) {\n\t\t\tcurLine = scan.nextLine();\n\t\t\tif (inQuote)\n\t\t\t\trq += \"\\n\";\n\t\t\twhile (!curLine.isEmpty()) {\n\t\t\t\tString ch = Character.toString(curLine.charAt(0));\n\t\t\t\tcurLine = curLine.substring(1);\n\t\t\t\tif (quote.equals(ch)) {\n\t\t\t\t\tif (inQuote) {\n\t\t\t\t\t\tquotes.add(rq);\n\t\t\t\t\t\trq = \"\";\n\t\t\t\t\t}\n\t\t\t\t\tinQuote = !inQuote;\n\t\t\t\t} else if (inQuote) {\n\t\t\t\t\trq += ch;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn quotes;\n\t}", "public static ArrayList<Word> getMisspelledWords(Scanner lineReader,\n\t\t\t\t\t\t\t TreeSet<String> \n\t\t\t\t\t\t\t dictionary)\n {\n\tArrayList<Word> misspelledWords = new ArrayList<Word>();\n\n\tlineReader.useDelimiter(\"[^a-zA-Z0-9']+\");\n\tScanner wordReader;\n\tint lineCount = 0;\n\tString thisLine, word;\n\n\twhile(lineReader.hasNext())\n\t {\n\t\tlineCount ++;\n\t\tthisLine = lineReader.nextLine();\n\t\twordReader = new Scanner(thisLine);\n\t\twordReader.useDelimiter(\"[^a-zA-Z0-9']+\");\n\t\t\n\t\twhile(wordReader.hasNext())\n\t\t {\n\t\t\tword = wordReader.next().toLowerCase();\n\t\t\tif(!dictionary.contains(word))\n\t\t\t {\n\t\t\t\tmisspelledWords.add\n\t\t\t\t (new Word(word, lineCount));\n\t\t\t }\n\t\t }\n\t }\n\n\treturn misspelledWords;\n }", "public void readWordList() {\n try {\n wordList = XmlStringArrayParser.parse(getAssets().open(Constant.WORDLISTFILE),\n settings.getInt(\"wordMaxLength\", 7));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static void populateWordList(Scanner dictScan) {\n\t\tfor(int i=2; i<wordList.length; i++) {\n\t\t\tif(dictScan.hasNext()) {\n\t\t\t\twordList[i] = dictScan.nextLine();\n\t\t\t}\n\t\t}\n\t}", "public String[] readAllStrings(){\n\t\tString[] tokens=WHITESPACE_PATTERN.split(readAll());\n\t\tif (tokens.length==0||tokens[0].length()>0)\n\t\t\treturn tokens;\n\t\tString[] decapitokens=new String[tokens.length-1];\n\t\tfor (int i=0;i<tokens.length-1;i++){\n\t\t\tdecapitokens[i]=tokens[i+1];\n\t\t}\n\t\treturn decapitokens;\n\t}", "public List<Task> readFile() throws FileNotFoundException, DukeException {\n List<Task> output = new ArrayList<>();\n Scanner sc = new Scanner(file);\n while (sc.hasNext()) {\n output.add(readTask(sc.nextLine()));\n }\n return output;\n }", "public ArrayList<Files> parseInput(String input){\r\n\t\tScanner parse = new Scanner(input);\r\n\t\tparse.useDelimiter(\";\");\r\n\t\tArrayList<Files> output = new ArrayList<Files>();\r\n\t\twhile(parse.hasNext())output.add(new Files(parse.next()));\r\n\t\tparse.close();\r\n\t\treturn output;\r\n\t}", "private ArrayList<String> load(String fileName, String initialWord)\n\t{\n\t\tArrayList<String> words = new ArrayList<String>();\n\t\ttry{\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(fileName));\n\t\t\tString word = reader.readLine();\n\t\t\twhile(word != null){\n\t\t\tif(word.length()==initialWord.length())\n\t\t\t\twords.add(word);\n\t\t\tword = reader.readLine();\n\t\t\t}\n\t\t\treader.close();\n\t\t}catch(IOException e){\n\t\t\tSystem.err.println(\"Can't find a file '\"+fileName+\"'!\");\n\t\t\tJOptionPane.showMessageDialog(null,\"Can't find a file '\"+fileName+\"'!\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t\treturn words;\n\t}" ]
[ "0.7006206", "0.67089236", "0.6565143", "0.6545659", "0.6326068", "0.62791395", "0.6269301", "0.6262719", "0.6248671", "0.6235163", "0.6198403", "0.6120566", "0.6110715", "0.610993", "0.6082487", "0.6008463", "0.6002227", "0.599896", "0.5984683", "0.5966679", "0.5962765", "0.5959116", "0.5925167", "0.5922692", "0.5888833", "0.58549106", "0.581514", "0.5807184", "0.57925355", "0.57762414", "0.5769923", "0.57242453", "0.5697242", "0.5693576", "0.5680346", "0.56708336", "0.5643405", "0.5621765", "0.5589242", "0.5578988", "0.5578554", "0.55721956", "0.5552313", "0.554065", "0.5539725", "0.55389285", "0.5537377", "0.5537181", "0.5499059", "0.54880947", "0.5485574", "0.5476849", "0.5472091", "0.54700357", "0.5432396", "0.54255825", "0.5416389", "0.54122937", "0.5402893", "0.5401771", "0.5400475", "0.53999436", "0.5390464", "0.53748345", "0.5368655", "0.5341645", "0.53326124", "0.53303665", "0.5311442", "0.52969307", "0.528842", "0.52831304", "0.5278993", "0.52750653", "0.5264759", "0.52561307", "0.52510804", "0.5235686", "0.5224604", "0.5224314", "0.5218597", "0.52119356", "0.5211706", "0.5208436", "0.52046144", "0.5204424", "0.51966774", "0.5196019", "0.51929915", "0.5185014", "0.51790017", "0.51748186", "0.5172343", "0.51718515", "0.5158663", "0.51541036", "0.5152772", "0.51500034", "0.51466733", "0.5137271" ]
0.62474376
9
Given two strings as input, compares if the first string (guess) equals the second string (solution). If the two strings are not exactly the same, return false. Otherwise return true.
public static boolean checkWord(String guess, String solution) { if(guess.equals(solution)) { return true; }else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Boolean solution(String s1, String s2){\n\t\t\n\t\tint k = s1.length();\n\t\tchar[] input1 = s1.toCharArray();\n\t\t\n\t\tint m =0 ,count=0;\n\t\t\n\t\twhile(m < s2.length()-1){\n\t\t\t\n\t\tchar[] temp1 = s2.substring(m, m+k).toCharArray();\n\t\t\t\n\t\t\tfor(int i=0; i<s1.length(); i++){\n\t\t\t\tfor(int j=0; j<s1.length(); j++){\n\t\t\t\t\tif(input1[i] == temp1[j] ){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tif(count == s1.length())\n\t\t\t\treturn true;\n\t\tcount =0;\n\t\tm++;\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "static Boolean isOneAway(String s1, String s2) {\r\n\t\tboolean results = false;\r\n\t\tchar[] chars1 = s1.toCharArray();\r\n\t\tchar[] chars2 = s2.toCharArray();\r\n\t\tif(s1.equals(s2)) {\r\n\t\t\tresults = true;\r\n\t\t}else if(chars1.length==chars2.length) {\r\n\t\t\tint mismatches = 0;\r\n\t\t\tfor(int i = 0; i < chars1.length; i++ ) {\r\n\t\t\t\tif(chars1[i]!=chars2[i]) {\r\n\t\t\t\t\tmismatches++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(mismatches <= 1) results = true;\r\n\t\t}else if(Math.abs(s1.length() - s2.length())==1) {\r\n\t\t\tif(s1.length() > s2.length()) {\r\n\t\t\t\tchars1 = s1.toCharArray();\r\n\t\t\t\tchars2 = s2.toCharArray();\r\n\t\t\t}else {\r\n\t\t\t\tchars1 = s2.toCharArray();\r\n\t\t\t\tchars2 = s1.toCharArray();\r\n\t\t\t}\r\n\t\t\tint mismatches = 0;\r\n\t\t\tint cursor1 = 0;\r\n\t\t\tint cursor2 = 0;\r\n\t\t\twhile((cursor1 < chars1.length) && (cursor2 < chars2.length)) {\r\n\t\t\t\tif(chars1[cursor1] != chars2[cursor2]) {\r\n\t\t\t\t\tmismatches++;\r\n\t\t\t\t\tcursor1++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tcursor1++;\r\n\t\t\t\t\tcursor2++;\r\n\t\t\t\t}\t\t\t\t \r\n\t\t\t}\r\n\t\t\tif(mismatches <= 1) results = true;\r\n\t\t}else {\r\n\t\t\tresults = false;\r\n\t\t}\r\n\t\r\n\t\treturn results;\r\n\t}", "private boolean equals(String str1, String str2)\n\t{\n\t\tif (str1.length() != str2.length()) // Easiest to check is if they are the same to potentially avoid running remaining code\n\t\t\treturn false;\n\t\tfor(int i = 0; i < str1.length(); i++)\n\t\t{\n\t\t\tif (str1.charAt(i) != str2.charAt(i)) // If at any point one char is not equal to the same char at a given index then they are disimilar\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true; // If no discrepancies are found then the strings must be equal\n\t}", "public static boolean isEqual(String s1, String s2) {\r\tif(s1.length() != s2.length()){\r\t return false;\r\t}\r\tfor(int i = 0; i< s1.length();i++){\r\t if (s1.charAt(i) != s2.charAt(i)){\r\t\treturn false;\r\t }\r\t}\r\treturn true;\r }", "public static boolean isOneAway(String string1, String string2) {\n int lengthDifference = Math.abs(string1.length() - string2.length());\n if (lengthDifference > 1) {\n return false;\n }\n\n String shorterString;\n String longerString;\n\n if (string1.length() < string2.length()) {\n shorterString = string1;\n longerString = string2;\n } else {\n shorterString = string2;\n longerString = string1;\n }\n\n int index1 = 0;\n int index2 = 0;\n\n boolean foundDifference = false;\n\n while (index1 < shorterString.length() && index2 < longerString.length()) {\n if (shorterString.charAt(index1) != longerString.charAt(index2)) {\n if (foundDifference) {\n return false;\n }\n\n foundDifference = true;\n\n if (shorterString.length() == longerString.length()) {\n // Replace edit\n index1++;\n } // Else -> insert or delete edit -> do not move index 1\n } else {\n index1++;\n }\n\n index2++;\n }\n\n return true;\n }", "private static boolean diffOne(String s1, String s2) {\n int count = 0;\n for (int i = 0; i < s1.length(); i++) {\n if (s1.charAt(i) != s2.charAt(i)) count++;\n if (count > 1) return false;\n }\n return count == 1;\n }", "public static boolean isOneAway2(String string1, String string2) {\n int lengthDifference = Math.abs(string1.length() - string2.length());\n if (lengthDifference > 1) {\n return false;\n }\n\n int[][] dp = new int[string1.length() + 1][string2.length() + 1];\n\n for (int i = 1; i <= string1.length(); i++) {\n for (int j = 1; j <= string2.length(); j++) {\n int smallestEditDistance = Math.min(dp[i - 1][j - 1], dp[i][j - 1]);\n smallestEditDistance = Math.min(smallestEditDistance, dp[i - 1][j]);\n\n if (string1.charAt(i - 1) == string2.charAt(j - 1)) {\n dp[i][j] = smallestEditDistance;\n } else {\n dp[i][j] = smallestEditDistance + 1;\n }\n }\n }\n\n return dp[string1.length()][string2.length()] <= 1;\n }", "private boolean translateWith2ExchangedChars(String input1, String input2) {\n if (StringUtils.isBlank(input1) || StringUtils.isBlank(input2) || input1.length() != input2.length()) {\n return false;\n }\n if (input1.equals(input2)) {\n for (int i = 0; i < input1.length(); i++) {\n char current = input1.charAt(i);\n if (input1.lastIndexOf(current) != i) {\n return true;\n }\n }\n return false;\n } else {\n int first = -1, second = -1;\n for (int i = 0; i < input1.length(); i++) {\n if (input1.charAt(i) != input2.charAt(i)) {\n if (first == -1) {\n first = i;\n } else if (second == -1) {\n second = i;\n } else {\n return false;\n }\n }\n }\n return input1.charAt(first) == input2.charAt(second)\n && input1.charAt(second) == input2.charAt(first);\n }\n }", "public boolean compare_same(String x, String y) {\n\t\tint fuzzy = 0;\n\t\tif (x.length() != y.length()) return false;\n\t\tfor (int i = 0, j = 0; i<x.length() && j<y.length();) {\n\t\t\tif (i>0 && x.charAt(i-1)=='_' && '0'<=x.charAt(i) && x.charAt(i)<='9') {\n\t\t\t\twhile (i<x.length() && '0'<=x.charAt(i) && x.charAt(i)<='9') i++;\n\t\t\t}\n\t\t\tif (j>0 && y.charAt(j-1)=='_' && '0'<=y.charAt(j) && y.charAt(j)<='9') {\n\t\t\t\twhile (j<y.length() && '0'<=y.charAt(j) && y.charAt(j)<='9') j++;\n\t\t\t}\n\t\t\tif (i<x.length() && j<y.length() && x.charAt(i) != y.charAt(j)) {\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ti++; j++;\n\t\t}\n\t\treturn true;\n\t}", "public abstract boolean isGuessCorrect(String guess);", "static String twoStrings(String s1, String s2){\n // Complete this function\n String letters = \"abcdefghijklmnopqrstuvwxyz\";\n for(int i=0;i<letters.length();i++){\n char lettersChar = letters.charAt(i); \n if(s1.indexOf(lettersChar) > -1 && s2.indexOf(lettersChar) > -1){\n return \"YES\";\n }\n }\n \n return \"NO\";\n }", "private static boolean equalityTest4(String a, String b)\n {\n if(a.length() == 0 && b.length() == 0)\n {\n return true;\n }\n else\n {\n if(a.length() == 0 || b.length() == 0)\n {\n return false;\n }\n if(a.charAt(0) == b.charAt(0))\n {\n return equalityTest4(a.substring(1), b.substring(1));\n }\n else\n {\n return false;\n }\n }\n }", "public boolean isCorrect(String theguess){\n\t\treturn (correctA.contains(theguess));\n\t}", "boolean equal(String s1, String s2) {\n return compareStrings(s1, s2) == 0;\n }", "private boolean compareActualAndExpectedOutputs(String string,\r\n\t\t\tString string2) {\r\n\t\treturn string.equals(string2);\r\n\t}", "public static boolean timingSafeEquals(String first, String second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n char[] firstChars = first.toCharArray();\n char[] secondChars = second.toCharArray();\n char result = (char) ((firstChars.length == secondChars.length) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstChars.length; ++i) {\n result |= firstChars[i] ^ secondChars[j];\n j = (j + 1) % secondChars.length;\n }\n return result == 0;\n }", "public boolean match(String string1, String string2) {\n\t\tMap<Character, Character>hash_map = new HashMap<Character, Character>();\n\n\t\t//If string length is not same, then it will return false\n\t\tif(string1.length()>string2.length() || string1.length()<string2.length()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<string1.length(); i++) {\t\n\t\t\tif(!hash_map.containsKey(string1.charAt(i))) {\n\t\t\t\thash_map.put(string1.charAt(i), string2.charAt(i));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(!hash_map.get(string1.charAt(i)).equals(string2.charAt(i))) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static boolean oneAway(String str1, String str2) {\n\t\t\n\t\t// If lengths make impossible to be one away\n\t\tif (Math.abs(str1.length()-str2.length()) > 1) return false;\n\t\t\n\t\t// if length of one of the strings is 0 (meaning other is 1 and\n\t\t// there by statisfies the one away add/delete edits\n\t\tif(str1.length() == 0 || str2.length() == 0) return true;\n\t\t\n\t\t// If strings are identical, return true\n\t\tif (str1.equals(str2)) return true;\n\t\t\n\t\t// Else determine if these strings are one away\n\t\t\n\t\t// check for one away by change: O(n)\n\t\tif(str1.length() == str2.length()) {\n\t\t\tint numDiff = 0;\n\t\t\t// for each character in string 1\n\t\t\tfor (int i = 0; i < str1.length(); i++) {\n\t\t\t\t// check for equality by index\n\t\t\t\tif (str1.charAt(i) != str2.charAt(i)) ++numDiff;\n\t\t\t\t// If exceeded 1 difference, return false\n\t\t\t\tif (numDiff > 1) return false;\n\t\t\t}\n\t\t\t// There was 1 difference, strings are off by one\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// check for off by one by delete: O(n)\n\t\telse if(str1.length() > str2.length()) {\n\t\t\tint p2 = 0; // pointer for string 2\n\t\t\tint numDiff = 0;\n\t\t\t\n\t\t\tfor (int i = 0; i < str1.length(); i++) {\n\t\t\t\tif (str2.charAt(p2) != str1.charAt(i)) {\n\t\t\t\t\t++numDiff;\n\t\t\t\t} else {\n\t\t\t\t\t++p2;\n\t\t\t\t}\n\t\t\t\t// If exceeded 1 difference, return false\n\t\t\t\tif (numDiff > 1) return false;\n\t\t\t}\n\t\t\t// There was 1 difference, strings are off by one\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// check for off by one by addition O(n)\n\t\telse {\n\t\t\tint p1 = 0; // pointer for string 1\n\t\t\tint numDiff = 0;\n\t\t\tfor (int i = 0; i < str2.length(); i++) {\n\t\t\t\tif (str1.charAt(p1) != str2.charAt(i)) {\n\t\t\t\t\t++numDiff;\n\t\t\t\t} else {\n\t\t\t\t\t++p1;\n\t\t\t\t}\n\t\t\t\t// If exceeded 1 difference, return false\n\t\t\t\tif (numDiff > 1) return false;\n\t\t\t}\n\t\t\t// There was 1 difference, strings are off by one\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "public boolean isCorrect(String str);", "public boolean checkSam(String stringA, String stringB) {\r\n\t\tString[] s1 = stringA.split(\" \");\r\n\t\tString[] s2 = stringB.split(\" \");\r\n\t\tif(s1.length == s2.length){\r\n\t\t\tint count = 0;\r\n\t\t\tfor (String sB : s2) {\r\n\t\t\t\tfor (String sA : s1) {\r\n\t\t\t\t\tif(sA.equals(sB)){\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(count == s2.length){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n }", "public boolean compare2StringsIgnoringCasses(String s1, String s2)\r\n {\r\n String a=s1.toLowerCase();\r\n String b=s2.toLowerCase();\r\n if(a.length()!= b.length())\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n for(int i=0; i<a.length(); i++)\r\n {\r\n if(!comparet2Chars(a.charAt(i),b.charAt(i)))\r\n {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "boolean sameName(String a, String b){\n\t\tif(a.length()!=b.length()){\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tif(a.charAt(i)!=b.charAt(i)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isScramble(String s1, String s2) {\n if (s1.length() != s2.length())\n return false;\n \n if (hash.containsKey(s1 + \"#\" + s2))\n return hash.get(s1 + \"#\" + s2);\n \n int n = s1.length();\n if (n == 1) {\n return s1.charAt(0) == s2.charAt(0);\n }\n for (int k = 1; k < n; ++k) {\n if (isScramble(s1.substring(0, k), s2.substring(0, k)) &&\n isScramble(s1.substring(k, n), s2.substring(k, n)) ||\n isScramble(s1.substring(0, k), s2.substring(n - k, n)) &&\n isScramble(s1.substring(k, n), s2.substring(0, n - k))\n ) {\n hash.put(s1 + \"#\" + s2, true);\n return true;\n }\n }\n hash.put(s1 + \"#\" + s2, false);\n return false;\n }", "public static boolean matchesChoice(String choice, String answer){\r\n //creating test variables\r\n boolean test = false;\r\n boolean test2 = false;\r\n //setting input to all lowercase, also getting first letter of input\r\n String lower = choice.toLowerCase( );\r\n String firstchoice = lower.substring(0,1);\r\n String firstanswer = answer.substring(0,1);\r\n //test both options\r\n test = lower.equals(answer);\r\n test2 = firstanswer.equals(firstchoice);\r\n //returns ture if either test is true\r\n if (test){\r\n return false;\r\n } if (test2){\r\n return false;\r\n }\r\n return true;\r\n }", "static String twoStrings(String s1, String s2) {\n String bigstr = s1.length() > s2.length() ? s1 : s2;\n String smallstr = s1.length() > s2.length() ? s2 : s1;\n int bigstrSize = bigstr.length();\n int smallstrSize = smallstr.length();\n\n boolean string_check[] = new boolean[1000];\n\n for (int i = 0; i < bigstrSize; i++) {\n string_check[bigstr.charAt(i) - 'A'] = true;\n }\n // if at least one char is present in boolean array\n for (int i = 0; i < smallstrSize; i++) {\n if (string_check[smallstr.charAt(i) - 'A'] == true) {\n return \"YES\";\n }\n }\n return \"NO\";\n }", "public static boolean testStrings(String expected, String actual) {\n System.out.println(\"Expected: \" + expected + \"\\nActual: \" + actual);\n if(expected.equals(actual)) {\n System.out.println(\"Test case passed\\n\");\n } else {\n System.out.println(\"Test case failed\\n\");\n }\n return expected.equals(actual);\n }", "public static boolean replace(String s1, String s2){\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < s1.length(); i++){\n\t\t\tif (s1.charAt(i) != s2.charAt(i)){\n\t\t\t\tif (flag){\n\t\t\t\t\treturn false;\n\t\t\t\t}else{\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean checkPalindromeFormation(String a, String b) {\n int n = a.length();\n return findCommonSubstring(a.toCharArray(), b.toCharArray(), 0, n - 1) ||\n findCommonSubstring(b.toCharArray(), a.toCharArray(), 0, n - 1);\n }", "public boolean isScramble(String s1, String s2) {\n int lena = s1.length();\n int lenb = s2.length();\n if(lena != lenb) return false;\n if(lena == 0||s1.equals(s2)) return true;\n char[] crr1 = s1.toCharArray();\n char[] crr2 = s2.toCharArray();\n Arrays.sort(crr1);\n Arrays.sort(crr2);\n if(!Arrays.equals(crr1,crr2)) return false;\n \n int i = 1; \n while(i< lena){\n String a1 = s1.substring(0,i);\n String b1 = s1.substring(i);\n String a2 = s2.substring(0,i);\n String b2 = s2.substring(i);\n if(isScramble(a1,a2) && isScramble(b1,b2)) return true;\n String a3 = s2.substring(lenb - i);\n String b3 = s2.substring(0, lenb-i);\n if(isScramble(a1,a3) && isScramble(b1,b3)) return true;\n i++;\n }\n return false;\n }", "public boolean isIsomorphic(String str1, String str2) {\r\n if(str1.length() != str2.length()) return false;\r\n \r\n int[] arr1 = new int[256];\r\n int[] arr2 = new int[256];\r\n \r\n Arrays.fill(arr1, -1);\r\n Arrays.fill(arr2, -1);\r\n \r\n for(int i=0;i<str1.length();i++){\r\n int value1 = str1.charAt(i);\r\n int value2 = str2.charAt(i);\r\n if(arr1[value1]== -1){\r\n arr1[value1] = value2;\r\n } else {\r\n if(arr1[value1] != value2) return false;\r\n }\r\n \r\n if(arr2[value2]== -1){\r\n arr2[value2] = value1;\r\n } else {\r\n if(arr2[value2] != value1) return false;\r\n }\r\n \r\n }\r\n return true;\r\n \r\n}", "public static boolean isAnagramFuncApproach(String str1, String str2) {\n List<String> list1 = str1.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null))\n .collect(Collectors.toList());\n\n List<String> list2 = str2.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null))\n .collect(Collectors.toList());\n\n return list1.equals(list2);\n }", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nString a=sc.nextLine();\r\nString b=sc.nextLine();\r\nchar ch1[]=a.toCharArray();\r\nchar ch2[]=b.toCharArray();\r\nint l1=ch1.length;\r\nint l2=ch2.length;\r\nint n=0;\r\nif(l1==l2)\r\n{\r\n\tfor(int i=0;i<l1;i++)\r\n\t{\r\n\t\tif(ch1[i]!=ch2[i])\r\n\t\t{\r\n\t\t\tn=n+1;\r\n\t\t}\r\n\t}\r\n\tif(n==1)\r\n\t\tSystem.out.println(\"yes\");\r\n\telse\r\n\t\tSystem.out.println(\"no\");\r\n}\r\nelse\r\n\tSystem.out.println(\"no\");\r\n\t}", "public boolean isScramble(String s1, String s2) {\n if (s1.equals(s2)) return true;\n\n int[] letters = new int[26];\n for (int i = 0; i < s1.length(); i++) {\n letters[s1.charAt(i) - 'a']++;\n letters[s2.charAt(i) - 'a']--;\n }\n for (int i = 0; i < 26; i++) if (letters[i] != 0) return false;\n\n for (int i = 1; i < s1.length(); i++) {\n if (isScramble(s1.substring(0, i), s2.substring(0, i))\n && isScramble(s1.substring(i), s2.substring(i))) return true;\n if (isScramble(s1.substring(0, i), s2.substring(s2.length() - i))\n && isScramble(s1.substring(i), s2.substring(0, s2.length() - i))) return true;\n }\n return false;\n }", "public boolean checkAnagram(String s1, String s2) {\n if (s1.length() != s2.length()) {\n return false;\n }\n char[] stringArr1 = s1.toCharArray();\n char[] stringArr2 = s2.toCharArray();\n Arrays.sort(stringArr1);\n Arrays.sort(stringArr2);\n\n for (int i = 0; i < stringArr1.length; i++) {\n if (stringArr1[i] != stringArr1[i]) {\n return false;\n }\n }\n return true;\n }", "public static boolean stringRotation(String str1, String str2) {\n String temp = str2 + str2;\n return temp.contains(str1);\n }", "public boolean matches(String proposition, String answer) {\n\t\ttry {\r\n\t\t\tdouble p = Double.parseDouble(proposition.replace(\" \", \"\"));\r\n\t\t\tdouble a = Double.parseDouble(answer.replace(\" \", \"\"));\r\n\t\t\tif (p == a) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t// not numbers, continue\r\n\t\t}\r\n\r\n\t\tproposition = normalize(proposition);\r\n\t\tanswer = normalize(answer);\r\n\r\n\t\t// check if we have an exact match after normalization\r\n\t\tif (StringUtils.equals(proposition, answer)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// be permissive regarding the answer (experimental). Seems to work\r\n\t\t// quite well\r\n\t\tif (answer.length() >= 4) {\r\n\t\t\tint diff = (answer.length() / 4);\r\n\t\t\tif (StringUtils.getLevenshteinDistance(proposition, answer) <= diff) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\r\n\t}", "public static void main(String[] args) {\n String str1 = \"listen\";\n String str2 = \"silent\";\n for (int i = 0; i < str1.length(); i++) {\n str2 = str2.replaceFirst(\"\" + str1.charAt(i), \"\");\n }\n System.out.println(str2.isEmpty() ? \"Anagram\" : \"NOT Anagram\");\n\n/*\n //Approach Two:\n String str1 = \"listen\";\n String str2 = \"silent\";\n String str11 = \"\";\n String str22 = \"\";\n char[] ch1 = str1.toCharArray();\n char[] ch2 = str2.toCharArray();\n Arrays.sort(ch1);\n Arrays.sort(ch2);\n for (char each:ch1) {\n str11+=each;\n }\n for (char each:ch2) {\n str22+=each;\n }\n System.out.println(str11.equalsTo(str22)? \"Anagram\" : \"NOT Anagram\");\n\n */\n/*\n\n //Approach Three:\n public static boolean Same(String str12, String str2) {\n str1 = new TreeSet<String>(Arrays.asList( str1.split(\"\") ) ).toString( );\n str2 = new TreeSet<String>(Arrays.asList( str2.split(\"\") ) ).toString( );\n return str1.equals(str2); }\n*/\n }", "private static boolean equalityTest1(String a, String b)\n {\n return a == b;\n }", "public boolean checkPermutaionOfStr(String str1, String str2){\n\tArrayList<Integer> word_cnt1 = new ArrayList<Integer>();\n\tArrayList<Integer> word_cnt2 = new ArrayList<Integer>();\n\t\n\tif(str1.length() != str2.length())\n\t\treturn false;\n\tfor(int i = 0; i< 256; i++){\n\t\tword_cnt1.add(0);\n\t\tword_cnt2.add(0);\n\t}\n\t\n\tfor(int i = 0; i< str1.length(); i++){\n\t\tcntStrChar(str1, word_cnt1, i);\n\t\tcntStrChar(str2, word_cnt2, i);\n\t}\n\t\n\tfor(int i = 0; i< 256; i++){\n\t\tif (word_cnt1.get(i) != word_cnt2.get(i) )\n\t\t\treturn false;\n\t}\n\treturn true;\n}", "private boolean m81840a(String str, String str2) {\n boolean isEmpty = TextUtils.isEmpty(str);\n boolean isEmpty2 = TextUtils.isEmpty(str2);\n if (isEmpty && isEmpty2) {\n return true;\n }\n if (!isEmpty && isEmpty2) {\n return false;\n }\n if (!isEmpty || isEmpty2) {\n return str.equals(str2);\n }\n return false;\n }", "public static boolean matchExact(String word1, String word2) {\n return word1.equals(word2);\n }", "public static boolean isSame(String str1, String str2)\r\n {\r\n if (str1 == null && str2 == null) return true;\r\n if (str1 == null || str2 == null) return false;\r\n return str1.equals(str2);\r\n }", "private static boolean letterDifferByOne(String word1, String word2) {\n if (word1.length() != word2.length()) {\n return false;\n }\n\n int differenceCount = 0;\n for (int i = 0; i < word1.length(); i++) {\n if (word1.charAt(i) != word2.charAt(i)) {\n differenceCount++;\n }\n }\n return (differenceCount == 1);\n }", "public static boolean anagram() {\n\t\tboolean isAnagram = false;\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter first string\");\n\t\tString string1 = scanner.nextLine();\n\t\tSystem.out.println(\"enter second string\");\n\t\tString string2 = scanner.nextLine();\n\t\tString space1 = string1.replaceAll(\" \",\"\");\n\t\tString space2 = string2.replaceAll(\" \",\"\");\n\t\tString lower1 = string1.toLowerCase();\n\t\tString lower2 = string2.toLowerCase();\n\t\tchar[] array1 = space1.toCharArray();\n\t\tchar[] array2 = space2.toCharArray();\n\t\t\n\t\t\n\t\tif (array1.length == array2.length) \n\t\t{\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i+1; j < array1.length; j++) {\n\t\t\t\t\tif (array1[i] > array1[j]) {\n\t\t\t\t\t\tchar temp = array1[i];\n\t\t\t\t\t\tarray1[i] = array1[j];\n\t\t\t\t\t\tarray1[j] = temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i+1; j < array1.length; j++) {\n\t\t\t\t\tif (array2[i] > array2[j]) {\n\t\t\t\t\t\tchar temp = array2[i];\n\t\t\t\t\t\tarray2[i] = array2[j];\n\t\t\t\t\t\tarray2[j] = temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i; j <=i; j++) {\n\t\t\t\t\tif (array1[i] == array2[j]) {\n\t\t\t\t\t\tcount++;\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\tif (count == array1.length) {\n\t\t\t\tisAnagram=true;\n\n\t\t\t} \n\t\t\telse {\n\t\t\t\tisAnagram = false;\n\n\t\t\t}\n\t\t} \n\t\telse \n\t\t{\n\t\t\tisAnagram = false;\n\t\t}\n\t\treturn isAnagram;\n\t}", "private boolean equalsChars(char[] first, char[] second) {\n for (int i = 0; i < second.length; i++)\n if (first[i] != second[i])\n return false;\n return true;\n }", "public static boolean isCorrectGuess( List<Character> selectedChars, \n \t char guess ) {\n boolean correctGuess = false;\n for( char c : selectedChars ) {\n if( guess == c ) {\n correctGuess = true;\n break;\n }\n }\n return correctGuess;\n }", "public abstract boolean guess(String guess);", "public static boolean fuzzyEquals(String a, String b) {\n return levenshteinDistance(a, b, EDIT_DISTANCE_THRESHOLD) != INVALID_EDIT_DISTANCE;\n }", "@Override\n\tpublic boolean checkAnagram(String firstString, String secondString) {\n\t\tchar[] characters = firstString.toCharArray();\n\t\tStringBuilder sbSecond = new StringBuilder(secondString);\n\n\t\tfor(char ch : characters){\n\t\t\tint index = sbSecond.indexOf(\"\" + ch);\n\t\t\tif(index != -1){\n\t\t\t\tsbSecond.deleteCharAt(index);\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean permuteCompare(String strA, String strB) {\n\t\tif(strA == null || strB == null)\n\t\t\treturn false;\n\t\t\n\t\t/*\n\t\t * Step 2: Check if the length of both strings is not equal, then they will not match\n\t\t */\n\t\tif(strA.length() != strB.length()) \n\t\t\treturn false;\n\t\t\n\t\t/*\n\t\t * Step 3: Convert both strings to ArrayList (split method looks like not a elegant way, but works)\n\t\t */\n\t\tList<String> strAList = new ArrayList<String>(Arrays.asList(strA.split(\"\")));\n\t\tList<String> strBList = new ArrayList<String>(Arrays.asList(strB.split(\"\")));\n\t\t\n\t\t/*\n\t\t * Step 4: Sort both ArrayList using Collections\n\t\t */\n\t\tCollections.sort(strAList);\n\t\tCollections.sort(strBList);\n\t\t\n\t\t/*\n\t\t * Step 5: Compare them using equals that will compare size and each element value (Ref: https://docs.oracle.com/javase/8/docs/api/java/util/AbstractList.html#equals-java.lang.Object-)\n\t\t */\n\t\tif(!strAList.equals(strBList))\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "public void testCompareStrings() {\n\t\tString one = \"Hello\";\n\t\tString two = \"in the house\";\n\t\t//Gro▀schreibung vor Kleinschreibung\n\t\tassertTrue(comp.compareStrings(one, two) < 0);\n\t\tassertEquals(0, comp.compareStrings(one, one));\n\t\tassertTrue(comp.compareStrings(two, one) > 0);\n\t}", "public boolean isMatch(String str1, String str2) {\n \r\n if( str1 == null || str2 == null)\r\n return false;\r\n \r\n int i = 0;\r\n int j = 0;\r\n char preChar = ' ';\r\n \r\n while( i < str1.length() && j < str2.length() ){\r\n char c1 = str1.charAt(i);\r\n char c2 = str2.charAt(j);\r\n \r\n if( c1 == c2 || c2 == '.' ){\r\n i++;\r\n \r\n preChar = c2;\r\n j++;\r\n }\r\n else{\r\n if( c2 == '*' ){\r\n if( c1 == preChar || preChar == '.' ){\r\n i++;\r\n }\r\n else if( j+1 < str2.length() ){\r\n if( c1 == str2.charAt(j+1) || str2.charAt(j+1) == '.' ){\r\n i++;\r\n \r\n preChar = str2.charAt(j+1);\r\n j = j+2;\r\n }\r\n else\r\n return false;\r\n }\r\n else\r\n return false;\r\n }\r\n else{\r\n if( j+1 < str2.length() && str2.charAt(j+1) == '*' ){\r\n i++;\r\n \r\n preChar = c2;\r\n j = j+2;\r\n } \r\n else\r\n return false;\r\n }\r\n }\r\n }\r\n \r\n if( i == str1.length() ){\r\n if( j == str2.length() )\r\n return true;\r\n else if( str2.charAt(j)=='*' ){\r\n \r\n int countStr1 = 0;\r\n for(int k = str1.length()-1; k >= 0; k--){\r\n if( str1.charAt(k) == preChar )\r\n countStr1++;\r\n else\r\n break;\r\n }\r\n \r\n int countStr2 = 0;\r\n int countStarInStr2 = 0;\r\n for(int k = str2.length()-1; k >= 0; k--){\r\n if( str2.charAt(k) == preChar || str2.charAt(k) == '.' )\r\n countStr2++;\r\n else if( str2.charAt(k) == '*' )\r\n countStarInStr2++;\r\n else\r\n break;\r\n } \r\n \r\n if( countStr2 - countStarInStr2 <= countStr1 )\r\n return true;\r\n else\r\n return false;\r\n }\r\n else\r\n }\r\n else \r\n return false;\r\n }", "public Boolean stringScramble(String str1, String str2) {\n // code goes here\n return null;\n }", "public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str1=sc.nextLine();\n\t\tString str2=sc.nextLine();\n\t\tstr1=str1.toLowerCase();\n\t\tstr2=str2.toLowerCase();\n\t\tif(str1.length()!=str2.length()){\n\t\tSystem.out.println(\"no\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tboolean flg=true;\n\t\tfor(int i=0; i<str1.length();i++){\n\t\t\tif(str1.charAt(i)!=str2.charAt(i)){\n\t\t\t\tflg=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flg){\n\t\t\tSystem.out.println(\"yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"no\");\n\t\t}\n\n\t}", "private static boolean equalityTest2(String a, String b)\n {\n return a.equals(b);\n }", "public static boolean isAnagramImperApproach(char[] str1, char[] str2) {\n int n1 = str1.length;\n int n2 = str2.length;\n\n if (n1 != n2) return false;\n\n Arrays.sort(str1);\n Arrays.sort(str2);\n\n for (int i = 0; i < n1; i++) {\n if (str1[i] != str2[i]) {\n return false;\n }\n }\n return true;\n }", "private boolean isIn(String s1, String s2) {\n\t for(int i = 0; i <= s2.length() - s1.length(); i++) {\n\t \n\t if(s2.substring(i, i+s1.length()).equals(s1) ) {\n\t // System.out.println(\"+ \" + s2.substring(i, i+s1.length()) + \" \" + s1);\n\t return true;\n\t }\n\t }\n\t return false;\n\t}", "public boolean isScramble(String s1, String s2) {\n if(s1 == null || s2 == null) return false;\n if(s1.length() != s2.length()) return false;\n this.s1 = s1;\n this.s2 = s2;\n int len = s1.length();\n sol = new boolean[len + 3][len + 3][len + 3];\n cal = new boolean[len + 3][len + 3][len + 3];\n return isScramble(0, 0, s1.length());\n }", "static String twoStrings(String s1, String s2) {\n Hashtable<Character, Integer> shortDict = null;\n Hashtable<Character, Integer> longDict = null;\n \n boolean isCommonSubset = false;\n \n String longerString = s1.length() >= s2.length() ? s1 : s2;\n String shorterString = s1.length() < s2.length() ? s1 : s2;\n \n longDict = prepareHashtable(longerString);\n shortDict = prepareHashtable(shorterString);\n \n for (char ch: shortDict.keySet()) {\n if (longDict.containsKey(ch)) {\n isCommonSubset = true;\n break;\n }\n }\n \n return isCommonSubset ? \"YES\" : \"NO\";\n }", "private boolean inSameSuit() {\n for (int i = 0; i < cards.length-2; i++) {\n if (cards[i].charAt(1) != cards[i + 1].charAt(1)) {\n return false;\n }\n }\n \n return true;\n }", "private boolean oneCharOff( String word1, String word2 )\n {\n if( word1.length( ) != word2.length( ) )\n return false;\n int diffs = 0;\n for( int i = 0; i < word1.length( ); i++ )\n if( word1.charAt( i ) != word2.charAt( i ) )\n if( ++diffs > 1 )\n return false;\n return diffs == 1;\n }", "public boolean compareStrings(String A, String B) {\n if(A.length()<B.length())\n \treturn false;\n char[] a=A.toCharArray();\n char[] b=B.toCharArray();\n ArrayList<Character> aa=new ArrayList<>();\n ArrayList<Character> bb=new ArrayList<>();\n for(int i=0;i<a.length;i++){\n \taa.add(a[i]);\n }\n for(int i=0;i<b.length;i++){\n \tbb.add(b[i]);\n }\n while(bb.size()!=0){\n \tint flag=0;\n \tfor(int i=0;i<aa.size();i++){\n \t\tif(bb.get(0).equals(aa.get(i))){\n \t\t\tbb.remove(0);\n \t\t\taa.remove(i);\n \t\t\tSystem.out.println(bb);\n \t\t\tSystem.out.println(aa);\n \t\t\tflag=1;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif (flag==0)\n \t\treturn false;\n }\n return true; \n }", "public static boolean isNeighbor(String a, String b) {\n assert a.length() == b.length();\n int differ = 0;\n for (int i = 0; i < a.length(); i++) {\n if (a.charAt(i) != b.charAt(i))\n differ++;\n if (differ > 1)\n return false;\n }\n return true;\n }", "public static boolean is_rotation_of_another_string(String word1, String word2) {\n\n String s3 = word1 + word1;\n\n if (s3.contains(word2))\n return true;\n else\n return false;\n }", "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tString s1=s.nextLine();\r\n\t\tString s2=s.nextLine();\r\n\t\tint c=0;\r\n\t\tfor (int i=0;i<s2.length();i++) {\r\n\t\t\tchar c1=s2.charAt(i);\r\n\t\t\tfor(int j=0;j<s1.length();j++) {\r\n\t\t\t\tif (c1==s1.charAt(j) && s1.charAt(j)!=' ')\r\n\t\t\t\t\tc++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tif (c==s1.length())\r\n\t\t\tSystem.out.print(\"yes\");\r\n\r\n\t}", "public static Boolean compare(String prevGuess[], String currGuess) {\r\n for(int x = 0; x<correctCounter; x++) {\r\n if(prevGuess[x].equalsIgnoreCase(currGuess) == true) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n \r\n //returns false if the currGuess isnt in prevGuess list\r\n }", "public static void main(String args[])\n {\n Scanner s=new Scanner(System.in);\n String str1=s.nextLine();\n String str2=s.nextLine();\n String temp=\"\";\n temp=str1+str2;\n String ss=\"ytqwer\";\n if(str2.equals(ss))\n System.out.print(\"No\");\n \n else\n System.out.print(\"Yes\");\n \n \n }", "public static boolean isStringPermutation(String s1, String s2)\n\t{\n\t\tif(s1.length()==s2.length())\n\t\t{\n\t\t\t//convert string to character array\n\t\t\tchar [] name1 = s1.toCharArray();\n\t\t\tchar [] name2 = s2.toCharArray();\n\t\t\t\n\t\t\t//sort new character arrays from smallest to greatest\n\t\t\tArrays.sort(name1);\n\t\t\tArrays.sort(name2);\n\t\t\t\n\t\t\t//compare if it's the same\n\t\t\tboolean checker = Arrays.equals(name1,name2);\n\t\t\tSystem.out.println(\"Is \" + s2 + \" a permutation of \" + s1 + \"?\");\n\t\t\t\tif (checker)\n\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"True\");\n\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"False\");\n\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\t//string lengths are not the same\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Sorry, Strings are not equal\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "public static boolean checkPermutation(String input1, String input2) {\n\n\t\tchar[] inputArray1 = input1.toCharArray();\n\t\tchar[] inputArray2 = input2.toCharArray();\n\n\t\tArrays.sort(inputArray1);\n\t\tArrays.sort(inputArray2);\n\n\t\tSystem.out.println(inputArray1);\n\t\tSystem.out.println(inputArray2);\n\n\t\treturn new String(inputArray1).equals(new String(inputArray2));\n\t}", "public static void main(String[] args) {\n\t\t String s1=new String(\"great\");\n\t\t String s2=new String(\"rgtae\");\n\t\t if(isScrableString(s1, s2)){\n\t\t\t System.out.println(\"two string is scramble string!\");\n\t\t }else{\n\t\t\t System.out.println(\"two string is not scramble string!\");\n\t\t }\n\t}", "private static boolean permutation(String string, String string2) {\n\t\tif (string.length() != string2.length()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn sort(string).equals(sort(string2));\r\n\t}", "public static void main(String[] args) {\n\n\t\tString a = \"aabbbc\", b =\"cbad\";\n\t\t// a=abc\t\t\t\tb=cab\n\t\t\n\t\t\n\t\tString a1 =\"\" , b1 = \"\"; // to store all the non duplicated values from a\n\t\t\n\t\tfor(int i=0; i<a.length();i++) {\n\t\t\tif(!a1.contains(a.substring(i,i+1)))\n\t\t\t\ta1 += a.substring(i,i+1);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<b.length();i++) {\n\t\t\tif(!b1.contains(b.substring(i,i+1)))\n\t\t\t\tb1 += b.substring(i,i+1);\n\t\t}\n\t\t\t\t\n\t\tchar[] ch1 = a1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\t\n\t\tchar[] ch2 = b1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tArrays.sort(ch1);\n\t\tArrays.sort(ch2);\n\t\t\n\t\tSystem.out.println(\"=====================================================\");\n\t\t\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tString str1 = Arrays.toString(ch1);\n\t\tString str2 = Arrays.toString(ch2);\n\t\t\n\t\tif(str1.contentEquals(str2)) {\n\t\t\tSystem.out.println(\"true, they build out of same letters\");\n\t\t}else { \n\t\t\tSystem.out.println(\"fasle, there is something different\");\n\t\t}\n\t\t\n\n\t\t\n\t\t// SHORTER SOLUTION !!!!!!!!!!!!!!!!!!!!\n\t\t\n//\t\tString Str1 = \"aaaabbbcc\", Str2 = \"cccaabbb\";\n//\t\t\n//\t\tStr1 = new TreeSet<String>( Arrays.asList(Str1.split(\"\"))).toString();\n//\t\tStr2 = new TreeSet<String>( Arrays.asList(Str2.split(\"\"))).toString();\n//\t\tSystem.out.println(Str1.equals(Str2));\n//\t\t\n//\t\t\n\t\t\n}", "public static boolean isEqual(final String string1, final String string2)\n\t{\n\t\tif ((string1 == null) && (string2 == null))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tif (isEmpty(string1) && isEmpty(string2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tif (string1 == null || string2 == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn string1.equals(string2);\n\t}", "static boolean equal (String s1, String s2) {\r\n if (s1==errorSignature) return true;\r\n if (s2==errorSignature) return true;\r\n if (s1==null || s1.length()==0)\r\n return s2==null || s2.length()==0;\r\n return s1.equals (s2);\r\n }", "public static boolean timingSafeEquals(CharSequence first, CharSequence second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n int firstLength = first.length();\n int secondLength = second.length();\n char result = (char) ((firstLength == secondLength) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstLength; ++i) {\n result |= first.charAt(i) ^ second.charAt(j);\n j = (j + 1) % secondLength;\n }\n return result == 0;\n }", "public boolean checkAnswer(String userInput) {\n\n\t\tList<String> possibleAnswers = getAnswersAsList();\n\n\t\t// check if the first word is a or the and remove it from their answer.\n\t\tString output = \"\";\n\t\tString[] data = userInput.split(\" \");\n\t\tint length = data.length;\n\t\tif (data[0].contentEquals(\"the\") || data[0].equals(\"a\")) {\n\t\t\tfor (int i = 1; i < length; i++) {\n\t\t\t\toutput = output + data[i];\n\t\t\t}\n\t\t} else {\n\t\t\toutput = userInput;\n\t\t}\n\n\t\tuserInput = output.toLowerCase().trim();\n\n\t\tfor (String answer : possibleAnswers) {\n\t\t\tif (userInput.equals(answer.toLowerCase().trim())) {\n\t\t\t\t_attempted = true;\n\t\t\t\t_result = true;\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t_attempted = true;\n\t\t_result = false;\n\t\treturn false;\n\t}", "protected int stringCompare(String s1,String s2)\r\n\t{\r\n\t\tint shortLength=Math.min(s1.length(), s2.length());\r\n\t\tfor(int i=0;i<shortLength;i++)\r\n\t\t{\r\n\t\t\tif(s1.charAt(i)<s2.charAt(i))\r\n\t\t\t\treturn 0;\r\n\t\t\telse if(s1.charAt(i)>s2.charAt(i))\r\n\t\t\t\treturn 1;\t\r\n\t\t}\r\n\t\t//if the first shrotLenghtTH characters of s1 and s2 are same \r\n\t\tif(s1.length()<=s2.length()) //it's a close situation. \r\n\t\t\treturn 0;\r\n\t\telse \r\n\t\t\treturn 1; \r\n\t\t\r\n\t}", "public boolean typeStringsEqual(String uti1, String uti2);", "private static boolean equalityTest5(String a, String b)\n {\n return a.hashCode() == b.hashCode();\n }", "public static String contains(String input1, String input2){\n\t\tif((input1 == null && input2 ==null)){\n\t\t\treturn \"yes\";\n\t\t}else if (input1 == null || input2 == null){\n\t\t\treturn \"no\";\n\t\t}\n\t\tchar []input1Arr = input1.toCharArray();\n\t\tchar []input2Arr = input2.toCharArray();\n\t\tint []charMap = new int [256];\n\t\tfor (char ch:input1Arr){\n\t\t\tcharMap[ch] ++;\n\t\t}\n\t\tfor (char ch:input2Arr){\n\t\t\tif(charMap[ch]>=1){\n\t\t\t\tcharMap[ch]--;\n\t\t\t}else {\n\t\t\t\treturn \"no\";\n\t\t\t}\n\t\t}\n\t\treturn \"yes\";\n\t}", "private boolean isAnagrams(String s1, String s2) {\n char[] ss1 = s1.toCharArray();\n \n char[] ss2 = s2.toCharArray();\n \n Arrays.sort(ss1);\n Arrays.sort(ss2);\n return ss1.equals(ss2);\n\n }", "public static void main(String[] args) {\n\r\n\t\tString s1=\"abcd\";\r\n\t\tString s2=\"vbvabcdqwe\";\r\n\t\tchar arr1[]=s1.toCharArray();\r\n\t\tchar arr2[]=s2.toCharArray();\r\n\r\n\t\tint flag=0;\r\n\t\tfor(int i=0;i<arr1.length;i++)\r\n\t\t{\r\n\t\t\tfor(int j=i;j<arr2.length;j++)\r\n\t\t\t{\r\n\t\t\t\tif(arr1[i]==arr2[j])\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t}\t\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public boolean equals(String that);", "public boolean isARotation(String s1, String s2) {\n\t\tif(s1.length() != s2.length()) return false;\n\t\t\n\t\tStringBuilder stb = new StringBuilder();\n\t\tint i = 0;\n\t\twhile(i < s1.length()) {\n\t\t\tif(s1.charAt(i) == s1.charAt(i)) {\n\t\t\t\treturn subString(s1.substring(0, i), s2) \n\t\t\t\t\t\t&& stb.toString().compareTo(s2.substring(i, s2.length()-1)) == 0;\n\t\t\t}\n\t\t\ti++;\n\t\t\tstb.append(s1.charAt(i));\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isPermuted(String str1, String str2) {\n if (str1.length() != str2.length())\n return false;\n\n Map<Character, Integer> str1CountMap = new HashMap<>();\n for (char c : str1.toCharArray()) {\n str1CountMap.put(c, str1CountMap.getOrDefault(c, 0) + 1);\n }\n\n for (char c : str2.toCharArray()) {\n if (!str1CountMap.containsKey(c) || str1CountMap.get(c) <= 0)\n return false;\n str1CountMap.put(c, str1CountMap.get(c) - 1);\n }\n\n return true;\n }", "static boolean isPermutation_1(String a, String b){\n //get the sorted format of a string\n String sorted_A = sortString(a);\n String sorted_B = sortString(b);\n return sorted_A.equals(sorted_B);\n }", "private static boolean checkPermutationSorting(String s1, String s2) {\n // Strings are of unequal length. Cannot be permutations.\n if (s1.length() != s2.length()) {\n return false;\n }\n\n // Since strings are immutable, we wrote a simple sort function that returns the sorted string.\n String sortedS1 = sort(s1);\n String sortedS2 = sort(s2);\n\n return sortedS1.equals(sortedS2);\n }", "public static boolean checkIfPermutations(String str1, String str2) {\n\n if(str1.length() != str2.length())\n return false;\n\n char chars1[] = str1.toCharArray();\n char chars2[] = str2.toCharArray();\n\n Arrays.sort(chars1);\n Arrays.sort(chars2);\n\n for(int i=0; i<str1.length(); i++) {\n if(chars1[i] != chars2[i])\n return false;\n }\n\n return true;\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String str1 = Exercise1.getString(scanner);\n String str2 = Exercise1.getString(scanner);\n\n int[] rangeStr1 = getRange(scanner, str1);\n int[] rangeStr2 = getRange(scanner, str2);\n\n// Arrays.stream(range)\n// .forEach(System.out::println);\n\n boolean value = checkStringRangeEquality(str1, str2, rangeStr1, rangeStr2);\n System.out.println(\"Strings are equal: \" + value);\n\n\n }", "public static boolean checkPalaindrome(String s) {\n if (s == null) return false;\n String refinedString = s.toLowerCase()\n .replaceAll(\" \",\"\")\n .replaceAll(\"[^a-z]\", \"\");\n int i =0;\n int j = refinedString.length() -1;\n while (i < j) {\n if (refinedString.charAt(i) != refinedString.charAt(j)) {\n return false;\n }\n i++ ; j--;\n }\n return true;\n }", "public static void main(String[] args) {\n\t\t\n\t\tString str1 = \"snow\";\n\t\tString str2 = \"wons\";\n\t\tint count = 0;\t\t\n\t\tfor(int i=0; i<str1.length() && i<str2.length(); i++){\n\t\t\tif(str1.toLowerCase().charAt(i) != str2.toLowerCase().charAt(i)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif(count >1) System.out.println(\"fasle==>>\"+count);\n\t\telse System.out.println(\"true\");\n\t}", "public static boolean isRotation(String str1, String str2) {\n if ((str1.length() != str2.length()) || str1.isEmpty() || str2.isEmpty()\n || str1 == null || str2 == null) {\n return false;\n }\n return isSubString(str1, str2 + str2);\n // return (str2 + str2).contains(str1);\n // return ((str2 + str2).indexOf(str1) > -1);\n }", "private boolean checkString(){\n createString();\n char[] charsJoinedString=this.joinedTextPalindrome.toCharArray();\n int lengthString=charsJoinedString.length-1;\n for(int i=0;i<charsJoinedString.length;i++){\n if(charsJoinedString[i]!=charsJoinedString[lengthString]){\n return false;\n }\n lengthString--;\n }\n return true;\n \n }", "public static boolean isSimilar(String compared, String match) {\n\t\tif (compared.isEmpty() || match.isEmpty()) return false;\n\t\tif (compared.length() == 1) return compared.equalsIgnoreCase(match);\n\t\tString comparedLC = compared.toLowerCase().replaceFirst(\"[^\\\\p{L}]\", \"\").replace(\" \", \"\");\n\t\tString matchLC = match.toLowerCase().replaceFirst(\"[^\\\\p{L}]\", \"\").replace(\" \", \"\");\n\t\treturn comparedLC.contains(matchLC);\n\t}", "public static void srofanother(String s1,String s2){\r\n\t\tString s3=s2+s2;\r\n\t\tSystem.out.println(s3);\r\n\t\tif(s3.contains(s1)){\r\n\t\t\tSystem.out.println(\"reverseof another\");\r\n\t\t}else\r\n\t\t\tSystem.out.println(\"not reverse\");\r\n\t}", "boolean isUniqueUsingBruteForce(String str) {\n\t\t// If at any time we encounter 2 same\n\t\t// characters, return false\n\t\tfor (int i = 0; i < str.length(); i++)\n\t\t\tfor (int j = i + 1; j < str.length(); j++)\n\t\t\t\tif (str.charAt(i) == str.charAt(j))\n\t\t\t\t\treturn false;\n\t\t// If no duplicate characters encountered,\n\t\t// return true\n\t\treturn true;\n\t}", "public static boolean isPermutation(String s1, String s2) {\n if (s1 == null || s2 == null) {\n return false;\n }\n\n if (s1.length() != s2.length()) {\n return false;\n }\n\n int[] charCounterArr = new int[256];\n\n char[] s1CharArr = s1.toCharArray();\n char[] s2CharArr = s2.toCharArray();\n\n // counting the characters in s1;\n for (int i = 0; i < s1CharArr.length; i++) {\n int index = s1CharArr[i];\n charCounterArr[index] = charCounterArr[index] + 1;\n }\n\n // now check whether characters in s2 are in s1\n // pay attention to characters that appear more than once\n for (int i = 0; i < s2CharArr.length; i++) {\n int index = s2CharArr[i];\n // expecting the value to be 1 or more.\n // if see 0, means that there was a mismatch\n int value = charCounterArr[index];\n if (value == 0) {\n return false;\n }\n value--;\n // now update the value\n charCounterArr[index] = value;\n }\n return true;\n\n }", "@Override\n public boolean isCorrect() {\n //if we're ignoring spaces, remove them from the accepted answers as well when checking\n for(String correctAnswer: correctAnswers) {\n if(ignoreSpace) {\n //create a regex based on this possible correct answer.\n final StringBuilder regexBuilder = new StringBuilder();\n //split up the answer between the 'words'\n String[] splitAnswer = correctAnswer.split(\"\\\\s+\"); //split on spaces (on ignorable spaces)\n for(String part: splitAnswer) {\n regexBuilder.append(Pattern.quote(part)).append(\" *\");\n }\n regexBuilder.setLength(regexBuilder.length()-2); //cut last unnecessary \" *\"\n String answerRegexString = regexBuilder.toString().replaceAll(DO_NOT_IGNORE_SPACE, \" \");\n //compile regex pattern\n Pattern answerRegex;\n if(ignoreCase) {\n answerRegex = Pattern.compile(answerRegexString, Pattern.CASE_INSENSITIVE);\n } else {\n answerRegex = Pattern.compile(answerRegexString);\n }\n //possible case insensitivity is taken care of\n if(answerRegex.matcher(enteredAnswer).matches()) return true;\n } else {\n if(ignoreCase) {\n if(correctAnswer.equalsIgnoreCase(enteredAnswer)) return true;\n } else {\n if(correctAnswer.equals(enteredAnswer)) return true;\n }\n }\n }\n return false;\n }", "static String doit(final String string1, final String string2) {\n String shorterString; // a\n String longerString; // b\n if (string1.length() > string2.length()) {\n shorterString = string2;\n longerString = string1;\n } else {\n longerString = string2;\n shorterString = string1;\n }\n String r = \"\";\n\n for (int i = 0; i < shorterString.length(); i++) {\n for (int j = shorterString.length() - i; j > 0; j--) {\n for (int k = 0; k < longerString.length() - j; k++) {\n if (shorterString.regionMatches(i, longerString, k, j) && j > r.length()) {\n r = shorterString.substring(i, i + j);\n }\n }\n } // Ah yeah\n }\n return r;\n\n }", "private static boolean checkIfCanBreak( String s1, String s2 ) {\n\n if (s1.length() != s2.length())\n return false;\n\n Map<Character, Integer> map = new HashMap<>();\n for (Character ch : s2.toCharArray()) {\n map.put(ch, map.getOrDefault(ch, 0) + 1);\n }\n\n for (Character ch : s1.toCharArray()) {\n\n char c = ch;\n while ((int) (c) <= 122 && !map.containsKey(c)) {\n c++;\n }\n\n if (map.containsKey(c)) {\n map.put(c, map.getOrDefault(c, 0) - 1);\n\n if (map.get(c) <= 0)\n map.remove(c);\n }\n }\n\n return map.size() == 0;\n }" ]
[ "0.7386728", "0.72108305", "0.69548005", "0.6884903", "0.6884799", "0.6772059", "0.67182106", "0.6694599", "0.6647175", "0.66400564", "0.65090203", "0.64873177", "0.64521575", "0.6433111", "0.6396158", "0.6395247", "0.63885325", "0.63866156", "0.63835716", "0.62856674", "0.62831455", "0.6265738", "0.6245907", "0.61776936", "0.6134055", "0.6095029", "0.60926455", "0.6054974", "0.60531694", "0.6042392", "0.60414034", "0.6030305", "0.60175234", "0.6016828", "0.6007503", "0.6003171", "0.5998893", "0.59943205", "0.5988612", "0.59774137", "0.5973628", "0.59703046", "0.59657586", "0.59617597", "0.59589", "0.5957113", "0.595548", "0.59537876", "0.59494233", "0.59490097", "0.5936553", "0.5931845", "0.5925172", "0.5920197", "0.59163547", "0.59088093", "0.59046334", "0.58869094", "0.5886006", "0.587232", "0.5864441", "0.5843631", "0.5804616", "0.5794738", "0.5787777", "0.57842135", "0.5761488", "0.5760901", "0.5745295", "0.57446903", "0.5737704", "0.57376885", "0.5736903", "0.5730994", "0.573096", "0.57304573", "0.5727118", "0.5716251", "0.57120585", "0.57079524", "0.5698904", "0.56983334", "0.56980705", "0.5692671", "0.569205", "0.5687908", "0.5684295", "0.56827307", "0.5678247", "0.5675744", "0.56662005", "0.56544113", "0.5646202", "0.564298", "0.56372535", "0.5636497", "0.5635113", "0.5631274", "0.5613641", "0.5603175" ]
0.6368507
19
Given a String[] of strings as input, randomly selects one of the strings in the list and returns it to the calling program.
public static String getRandomWord(String[][] inList, int level) { Random generator = new Random(); int cols = generator.nextInt(inList[level].length); return inList[level][cols]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String pickRandom(String[] stringArray) {\n\n Random random = new Random();\n int nameIndex = random.nextInt(stringArray.length);\n return stringArray[nameIndex];\n }", "protected String random(String array[]) {\n\t\tRandom generator = new Random();\n\t\tint randomIndex = generator.nextInt(array.length);\n\t\treturn array[randomIndex];\n\t}", "public static String chooseWord( List<String> words ) {\n int randIndex = rand( 0, getNumWords( words ) - 1);\n return words.get( randIndex );\n }", "public String chooseWord(){\n\t\tRandom a = new Random();\t\t\r\n\t\t\r\n\t\tint randomNumber = a.nextInt(words.length);\r\n\t\t\r\n\t\tString gameWord = words[randomNumber];\r\n\t\t\r\n\t\treturn gameWord;\r\n\t\t\t\t\r\n\t}", "private synchronized String pickRandomPokemonName(List<String> pokemonNames) {\n String pokemonName;\n do {\n int randomIndex = RANDOM.nextInt(pokemonNames.size());\n pokemonName = pokemonNames.get(randomIndex);\n } while (pokemonName.equals(lastPokemonName));\n\n return lastPokemonName = pokemonName;\n }", "public static String selectResponse(Random rand, ArrayList<String> responseList) {\n if( responseList == null || responseList.size() == 0 )\n\t\t\treturn null;\n\t\tint rdm = rand.nextInt( responseList.size() );\n\t\treturn responseList.get(rdm);\n }", "static void random(String[]array) {\n\t\tRandom ran=new Random();\n\tfor (int i = 0; i < array.length; i++) {\n\t\tSystem.out.println(array[ran.nextInt(array.length)]);\n\t}\n\t}", "public static String pickWord(String f) throws IOException {\n \n //read in number of words in file\n Scanner read = new Scanner(new File(f));\n int wordCount = read.nextInt();\n read.next();\n \n //read each word as an element of a string array\n String[] words = new String[wordCount];\n for(int wordsIndex = 0; wordsIndex < wordCount; wordsIndex++) {\n words[wordsIndex] = read.nextLine();\n }\n \n Random rand = new Random();\n int num = rand.nextInt(wordCount);\n //String word = words[rand];\n //return a randomly chosen word from the string array\n return words[num];\n \n }", "public static String getRandomWord(String[] words) {\n Random randomizer = new Random();\n int randInt = randomizer.nextInt(words.length);\n return words[randInt];\n }", "public void chooseWord() {\n int length = words.size();\n int index = (int) ((length - 1) * Math.random());\n word = words.get(index);\n }", "String selectRandomSecretWord();", "public static void pickWinner(List<String> contestants){\n int random = rand.nextInt(contestants.size());\n System.out.printf(\"The winner is... %s\", contestants.get(random));\n }", "public String getRandom() {\n\t return word.get(new Random().nextInt(word.size()));}", "private String getQuote(String[] i_StringArray) {\n Random random = new Random();\n int randomNumber = random.nextInt(i_StringArray.length + 1); // a random number indicating some index in the array.\n String randomString = i_StringArray[randomNumber]; // a string corresponding to the random index chosen.\n\n return randomString;\n }", "@Test\n public void testGetRandomString() {\n Chat rnd = mock(Chat.class);\n String[] valueArrayString = {\"1\", \"2\", \"3\", \"4\", \"5\"};\n when(rnd.getRandomString(valueArrayString)).thenReturn(\"1\");\n String valueString = \"1\";\n\n String result = rnd.getRandomString(valueArrayString);\n\n assertThat(valueString, is(result));\n\n }", "private String getRandomName(){\n return rndString.nextString();\n }", "@Override\n public String next() {\n Random random = new Random();\n return fruits[random.nextInt(3)];\n }", "public static Fruit getRandom(List<Fruit> fruits) {\r\n return fruits.get(new Random().nextInt(fruits.size()));\r\n }", "public void randomlyChooseWord()\n {\n Random random = new Random();\n int randomIndex = random.nextInt(POSSIBLE_WORDS.length);\n System.out.println(randomIndex);\n word = POSSIBLE_WORDS[randomIndex].toUpperCase();\n showChar = new boolean[word.length()];\n }", "private Player randomlySelectFirstPlayer(Player[] players) {\n Random rand = new Random();\n Player firstPlayer = players[rand.nextInt(players.length)];\n return firstPlayer;\n }", "public String randArrayTitle(String[] jobTitles){\n\n int size = jobTitles.length - 1; // size of array\n\n\n int randomNum = (int)(Math.random() * ((size) + 1));\n return jobTitles[randomNum];\n\n }", "public static String itemNameForSearch(){\n\n String[] itemNameArr = new String[3];\n itemNameArr[0] = \"nivea\";\n itemNameArr[1] = \"dove\";\n itemNameArr[2] = \"ricci\";\n\n return itemNameArr[CommonMethods.getRandomValue(0,2)];\n }", "public static char casillaRandom() {\r\n char pool[] = {'b', 'p', 's', 'd'};\r\n\r\n int indiceRandom = (int) (Math.random() * 4);\r\n\r\n char selected = pool[indiceRandom];\r\n\r\n return selected;\r\n }", "private String RandomGoal() {\n\t\tList<String> list = Arrays.asList(\"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"t\", \"t\");\n\t\tRandom rand = new Random();\n\t\tString randomgoal = list.get(rand.nextInt(list.size()));\n\n\t\treturn randomgoal;\n\t}", "private <T> T getRandomElement(List<T> list) {\n return list.get(randomInt(0, list.size()));\n }", "public static String RandomSelectMethod(Random random){\n String[] methodArray = new String[] {\"isValid\",\"setDescription\"};// The list of the of methods to be tested in the Appt class\n\n int n = random.nextInt(methodArray.length);// get a random number between 0 (inclusive) and methodArray.length (exclusive)\n\n return methodArray[n] ; // return the method name \n }", "private Direction selectRandomDirection(List<Direction> possibleDirections) {\n\t\tint random = (int) (Math.random() * possibleDirections.size());\n\t\treturn possibleDirections.get(random);\n\t}", "private void chooseSprite()\r\n\t{\r\n\t\t//Ensure pedestrian sprites exist\r\n\t\tif (sprites.isEmpty()) {\r\n\t\t\tSystem.err.println(\"ERROR: No pedestrian sprites have been loaded\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//Select a random sprite\r\n\t\tint index = (int) Math.floor( Math.random()*sprites.size() );\r\n\t\tspriteName = sprites.get(index);\r\n\t\tsetSprite(\"pedestrians/\"+spriteName);\r\n\t}", "public static void main(String[] args) {\n final int N = Integer.parseInt(args[0]);\n final int L = Integer.parseInt(args[1]);\n final String chars = args[2];\n final String[] randomStrings = randomStrings(N, L, chars);\n for (String randomString : randomStrings) {\n System.out.println(randomString);\n }\n }", "public static String randomize(char[] list) {\n for (int j = 0; j < list.length; j++) {\n int index = (int) (Math.random() * list.length);\n char temp = list[j];\n list[j] = list[index];\n list[index] = temp;\n }\n String randomKey = \"\";\n for (int x = 0; x < list.length; x++) {\n randomKey += (list[x]);\n } \n return randomKey;\n }", "public String getRandomWord() {\r\n Random rand = new Random();\r\n return possibleWords[rand.nextInt(possibleWords.length)]; // Word from a random index\r\n }", "static String getRandomAgentName() {\n\n if (_names.isEmpty() && count == 0) {\n initializeNames();\n count++;\n }\n int i = (int) (Math.random() * _names.size());\n String name = \"\";\n try {\n name = _names.remove(i);\n } catch (Exception e) {\n System.out.println(\"NS Error: No more names to hand out.\");\n }\n\n return name;\n }", "public String getNewWord(){\n\t\tint randomWord = generator.nextInt(wordList.length);\n\t\tString temp = wordList[randomWord];\n\t\treturn temp;\n\t}", "public static void shuffle(String[] arrayList){\n int num=arrayList.length; \n for(int j=0;j<60;j++){ // the number of shuffling>50 times, so I choose 60 times\n for(int i=0;i<num;i++){ \n int index=(int)(Math.random()*num);\n //Swap the position of elements in the array at that index with the first element\n String temp=arrayList[i]; \n arrayList[i]=arrayList[index];\n arrayList[index]=temp;\n }}}", "public String readARandomWord() {\r\n\r\n\t\tString inputFileName = \"dictionary.txt\";\r\n\t\tString[] wordsArray = null;\r\n\r\n\t\tScanner textFileScanner = new Scanner(BackToTheFutureClient.class.getResourceAsStream(inputFileName));\r\n\t\tArrayList<String> wordsList = new ArrayList<String>();\r\n\r\n\t\t// Reading all the lines from the file into array list\r\n\t\twhile (textFileScanner.hasNextLine()) {\r\n\t\t\tString w = textFileScanner.next();\r\n\t\t\twordsList.add(w);\r\n\t\t}\r\n\t\ttextFileScanner.close();\r\n\r\n\t\t// Convert words list to words array\r\n\t\twordsArray = wordsList.toArray(new String[wordsList.size()]);\r\n\r\n\r\n\t\tString randomWord = \"\";\r\n\r\n\t\t// Choose a random word from the array list of words\r\n\t\tif (wordsArray != null) {\r\n\t\t\tint index = new Random().nextInt(wordsArray.length);\r\n\t\t\trandomWord = (wordsArray[index]);\r\n\t\t}\r\n\t\treturn randomWord;\r\n\t}", "public Item sample() {\n if (N == 0) throw new NoSuchElementException();\n int idx = StdRandom.uniform(N);\n return s[first + idx];\n }", "@Override\n public <T> T getRandomElement(List<T> list) {\n return super.getRandomElement(list);\n }", "private static String getRandomType(){\r\n int index = r.nextInt(typeOfRooms.length);\r\n return typeOfRooms[index];\r\n }", "private String pickWord() {\n \thangmanWords = new HangmanLexicon();\n \tint randomWord = rgen.nextInt(0, (hangmanWords.getWordCount() - 1)); \n \tString pickedWord = hangmanWords.getWord(randomWord);\n \treturn pickedWord;\n }", "private PickServiceResult pickRandomService(GraphNode node, Graph graph, List<ServiceNode> services, Set<String> input, RandomNumberGenerator random, ForbiddenNodes fn) {\n\t\tNode selected = null;\n\t\tList<GraphNode> path = null;\n\n\t\tIterator<String> it = input.iterator();\n\t\tGraphNode origin = graph.nodeMap.get(node.getName());\n\t\tif (origin == null) {\n\t\t\tSystem.err.println(\"Origin node should not be null.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\twhile (selected == null && it.hasNext()) {\n\t\t\tString next = it.next();\n\t\t\tList<Node> sList = new ArrayList<Node>(taxonomyMap.get(next).getServicesWithOutput());\n\n\t\t\tif (!sList.isEmpty()) {\n\t\t\t\tCollections.shuffle(sList, ((MyRand)random).getRandom());\n\t\t\t\tList<ServiceNode> forbiddenList = fn.getForbiddenNodes(node.node);\n\n\t\t\t\tfor (int i = 0; i < sList.size(); i++) {\n\t\t\t\t\tNode s = sList.get(i);\n\t\t\t\t\tif (s.getIdentifier().equals(node.getName()))\n\t\t\t\t\t continue;\n\t\t\t\t\tGraphNode destination = graph.nodeMap.get(s.getIdentifier());\n // If service is either in our list of allowed services, or it is the input service...\n\t\t\t\t\tif (services.contains(s) || s.getIdentifier().equals(inputNode.getName())) {\n\t\t\t\t\t\tif (destination == null) {\n\t\t\t\t\t\t if (forbiddenList == null || !forbiddenList.contains(s)) {\n\t\t\t\t\t\t selected = s;\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n List<GraphNode> list = findPath(origin, destination);\n\n\t\t\t\t\t\t\tif (list == null) {\n\t\t\t\t\t\t\t if (forbiddenList == null || !forbiddenList.contains(s)) {\n\t\t\t\t\t\t\t selected = s;\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t path = list;\n\t\t\t\t\t\t\t break;\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\treturn new PickServiceResult(selected, path);\n\t}", "private static Option pickRandom() {\n\t\treturn Option.values()[rand.nextInt(3)];\n\t}", "public Vector<String> getRandom(){\n\t\t\n\t\tAssert.pre(size()>0, \"data must be initialized\");\n\t\t\n\t\tint n = r.nextInt(size());\n\t\t\n\t\treturn get(n);\n\t}", "public static <T> T getRandomElement(List<T> list) {\n \tint index = (int) (Math.random() * list.size());\n \treturn list.get(index);\n }", "private void selectRandom() {\n\n\t\tRandom randomise;\n\n\t\t// Select random char from Spinner only if it is enabled\n\t\tif (solo.getCurrentSpinners().get(0).isEnabled()) {\n\t\t\trandomise = new Random();\n\t\t\trandomCharPos = randomise.nextInt(solo.getCurrentSpinners().get(1)\n\t\t\t\t\t.getCount());\n\n\t\t\tsolo.pressSpinnerItem(0, randomCharPos);\n\t\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\t\trandomChar = solo.getCurrentSpinners().get(0).getSelectedItem()\n\t\t\t\t\t.toString();\n\t\t}\n\n\t\t// Select random act from Spinner\n\t\trandomise = new Random();\n\t\trandomActPos = randomise.nextInt(solo.getCurrentSpinners().get(1)\n\t\t\t\t.getCount());\n\n\t\tsolo.pressSpinnerItem(1, randomActPos);\n\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\trandomAct = solo.getCurrentSpinners().get(1).getSelectedItem()\n\t\t\t\t.toString();\n\n\t\t// Select random page from Spinner\n\t\trandomise = new Random();\n\t\trandomPagePos = randomise.nextInt(solo.getCurrentSpinners().get(2)\n\t\t\t\t.getCount());\n\n\t\tsolo.pressSpinnerItem(2, randomPagePos);\n\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\trandomPage = solo.getCurrentSpinners().get(2).getSelectedItem()\n\t\t\t\t.toString();\n\t}", "public static void main(String[] args) {\n\n// Random randomizer = new Random();\n// //grab a random noun and adj\n// int randInt = randomizer.nextInt(11);\n// System.out.println(\" random adjective is : \" + adj[randInt]);\n// System.out.println( \" random noun is : \" + noun[randInt]);\n// String randAdj = adj[randInt];\n// String randNoun = noun[randInt];\n// System.out.println();\n// System.out.println(\"Here is your server name: \" + randAdj + \"-\" + randNoun);\n\n //another method\n String nouns = getRandomWord(noun);\n String adjs = getRandomWord(adj);\n System.out.println(adjs + \"-\" + nouns);\n }", "public final <T> T random(T[] array) {\n return array[random(0, array.length)];\n }", "private void selectRandomPlayer() {\n Random rand = new Random();\n // Restrict random number range to available indexes in the players list.\n // - 1 to offset zero-based index numbering.\n int random = rand.nextInt(players.size());\n activePlayer = players.get(random);\n }", "private V arbitraryApex(List<V> Sstar){\n\t\tint i = rand.nextInt(Sstar.size());\n\t\treturn Sstar.get(i);\n\n\t}", "public String getRandomNextWord(Random generator) {\n int rand = generator.nextInt(this.nextWords.size());\r\n //System.out.println(\"rand = \" + rand);\r\n return nextWords.get(rand);\r\n }", "@Override\r\n\tpublic Item sample() {\r\n\t\tint index = StdRandom.uniform(count);\r\n\t\tItem item = arr[index];\r\n\t\treturn item;\r\n\t}", "public static String randomIdentifier() {\r\n\t\tfinal String lexicon = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\r\n\t\tfinal java.util.Random rand = new java.util.Random();\r\n\t\t// consider using a Map<String,Boolean> to say whether the identifier is\r\n\t\t// being used or not\r\n\t\tfinal Set<String> identifiers = new HashSet<String>();\r\n\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\twhile (builder.toString().length() == 0) {\r\n\t\t\tint length = rand.nextInt(5) + 5;\r\n\t\t\tfor (int i = 0; i < length; i++)\r\n\t\t\t\tbuilder.append(lexicon.charAt(rand.nextInt(lexicon.length())));\r\n\t\t\tif (identifiers.contains(builder.toString()))\r\n\t\t\t\tbuilder = new StringBuilder();\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}", "public <T> T of(List<T> list) {\n return list.get(random.nextInt(list.size() - 1));\n }", "public String getRandomName() {\n\t\t\n\t\tRandom r = new Random();\n\t\t\n\t\t//pick a firstname and surname based on length of array\n\t\tString fname = firstName[r.nextInt(firstName.length)];\n\t\tString sname = surName[r.nextInt(surName.length)];\n\t\t\n\t\treturn ( fname + \" \" + sname);\n\t\t\n\t}", "public static void main(String[] args) {\n System.out.println(GetRandom.getRandomString(15, 5));\n }", "public static char[] getWord() {\n\t\t\n\t\tString[] words = {\"cookie\", \"bacon\", \"steak\", \"apple\", \"doughnut\"};\n\t\tString choice = words[(int)(Math.random() * words.length)];\n\t\tchar[] word = new char[choice.length()];\n\n\t\tfor (int i = 0; i < word.length; i++) {\n\t\t\tword[i] = choice.charAt(i); // Convert Word into charArray\n\t\t}\n\t\treturn word;\n\t}", "public int getRandom() {\n return lst.get(rand.nextInt(lst.size()));\n }", "public Item sample() {\n if(isEmpty()) throw new NoSuchElementException();\n int idx = StdRandom.uniform(size);\n return arr[idx];\n }", "public String next() {\n return words[rng.nextInt(words.length)];\n }", "public static String[] getRandomElements(ArrayList<String> list, \n int totalItems) \n { \n Random rand = new Random(); \n \n ArrayList<String> oldList = new ArrayList<>();\n for (int i = 0; i < list.size(); i++) {\n \toldList.add(list.get(i));\n }\n \n String[] out = new String[totalItems];\n for (int i = 0; i < totalItems; i++) { \n \n // take a random index between 0 to size \n // of given List \n int randomIndex = rand.nextInt(oldList.size()); \n \n // add element in temporary list \n out[i] = oldList.get(randomIndex); \n \n // Remove selected element from original list \n oldList.remove(randomIndex); \n } \n \n return out; \n }", "public String randWeapon() {\n\n\t\t// Generates a random number.\n\t\tRandom rand = new Random();\n\n\t\t// A random number between 0 and 2 is generated, and the value at that index in\n\t\t// the Choice array is then saved to the variable compChoice\n\t\tString compChoice = weapArray[rand.nextInt(3)];\n\n\t\t// Makes the users weapon equal to whichever weapon they inputed\n\t\tswitch (compChoice) {\n\n\t\tcase \"Rock\":\n\t\t\tweapon = new Rock();\n\t\t\tbreak;\n\t\tcase \"Paper\":\n\t\t\tweapon = new Paper();\n\t\t\tbreak;\n\t\tcase \"Scissors\":\n\t\t\tweapon = new Scissors();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn compChoice;\n\t}", "public static Ally getRandomRep () {\n return republican[(int) (Math.random() * republican.length)];\n }", "public Item sample() {\n if (size == 0) throw new NoSuchElementException();\n return array[StdRandom.uniform(size)];\n }", "public String randomQuote() {//gets a random quote from the listofQuotes\r\n\t\tint randomNumber = random.nextInt(listofQuotes.size());\r\n\t\tString randomQuote = listofQuotes.get(randomNumber);\r\n\t\treturn randomQuote;\r\n\t}", "public String getJoke(){\n Random rand = new Random();\n int number=rand.nextInt(jokeList.size());\n\n return jokeList.get(number);\n }", "@SafeVarargs\n public final <T> T of(T... array) {\n return array[random.nextInt(array.length - 1)];\n }", "public static PickupType random(){\n Array<PickupType> types = new Array<PickupType>(PickupType.values());\n types.shuffle();\n return types.random();\n }", "public static void randomize(List<String> list) {\n\t\tfor (int i = list.size() - 1; i > 0; i--) {\n\t\t\tint rand = (int)( Math.random() * i );\n\t\t\tString temp = list.get(i);\n\t\t\tlist.set(i, list.get(rand));\n\t\t\tlist.set(rand, temp);\n\t\t}\n\t}", "public static String [] randomizeArray(String[] array){\n Random rgen = new Random(); // Random number generator\n\n for (int i=0; i<array.length; i++) {\n int randomPosition = rgen.nextInt(array.length);\n String temp = array[i];\n array[i] = array[randomPosition];\n array[randomPosition] = temp;\n }\n\n return array;\n }", "public int getRandom() {\n int idx;\n Random rand;\n \n rand = new Random();\n idx = rand.nextInt(set.size());\n return set.get(idx);\n }", "@Override\n public <T> T getRandomElement(T[] array) {\n return super.getRandomElement(array);\n }", "public static String[] randomizeHand(String[] arrayShuffle){\n String[] combine=new String[5];\n int k=-1;\n for(int i=0;i<5;i++){\n int j=(int)(Math.random()*52);\n if(j==k){continue;} // use if statements to avoid from picking up the same item twice\n else{combine[i]=arrayShuffle[j];k=j;\n }}\n return combine;}", "String userChosen();", "public String generateRandomString(){\n \n StringBuffer randStr = new StringBuffer();\n for(int i=0; i<RANDOM_STRING_LENGTH; i++){\n int number = getRandomNumber();\n char ch = CHAR_LIST.charAt(number);\n randStr.append(ch);\n }\n return randStr.toString();\n }", "public Item sample() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n double rand = Math.random() * N;\n int idx = (int) Math.floor(rand);\n Item item = s[idx];\n return item;\n }", "private ActorProfile selectRandomActorProfile(List<ActorProfile> list,\n ActorProfile actorSender)\n throws CannotSelectARandomActorException {\n if(randomSelectorIndex>=MAX_LOOPS_ON_RANDOM_ACTORS){\n throw new CannotSelectARandomActorException(\"The number of tries, \"+randomSelectorIndex+\" is upper than the limit\");\n }\n int randomIndex = (int) (((double)list.size())*Math.random());\n ActorProfile actorSelected = list.get(randomIndex);\n if(actorSelected.getIdentityPublicKey().equals(actorSender.getIdentityPublicKey())){\n randomSelectorIndex++;\n actorSelected = selectRandomActorProfile(list, actorSender);\n }\n /*if(actorSelected.getNsIdentityPublicKey().equals(actorSender.getNsIdentityPublicKey())){\n randomSelectorIndex++;\n actorSelected = selectRandomActorProfile(list, actorSender);\n }*/\n return actorSelected;\n }", "public String chooseNamesAtRandom(List<Integer> indexes, ChoosingSettings settings) {\n StringBuilder chosenNames = new StringBuilder();\n for (int i = 0; i < indexes.size(); i++) {\n if (i != 0) {\n chosenNames.append(\"\\n\");\n }\n if (settings.getShowAsList()) {\n chosenNames.append(NameUtils.getPrefix(i));\n }\n chosenNames.append(names.get(indexes.get(i)));\n alreadyChosenNames.add(names.get(indexes.get(i)));\n }\n // If without replacement, remove the names\n if (!settings.getWithReplacement()) {\n removeNamesAtPositions(indexes);\n }\n return chosenNames.toString();\n }", "public static String randomSelection() {\n int min = 1;\n int max = 3;\n String randomSelection;\n Random random = new Random(System.currentTimeMillis());\n int randomNumber = random.nextInt((max - min) +1) +min;\n if(randomNumber == 1) {\n randomSelection = \"rock\";\n } else if (randomNumber == 2) {\n randomSelection = \"paper\";\n } else {\n randomSelection = \"scissors\";\n }\n return randomSelection;\n }", "public void randomGenre(View view) {\r\n String[] randomGenre = {\"Rock\", \"Funk\", \"Hip hop\", \"Country\", \"Pop\", \"Blues\", \"K-pop\", \"Punk\", \"House\", \"Soul\"};\r\n int index = (int) (Math.random() * 10);\r\n displayMessage(\"Your random genre is: \" + randomGenre[index]);\r\n }", "@Override\n\tpublic String pickAndSendViewID(final boolean randomOnce,\n\t\t\tfinal String viewIds) {\n\t\tfinal String[] viewIdArray = viewIds.split(\",\");\n\t\tif (randomOnce) {\n\t\t\tfinal String previouslyPickedViewId = this.surveyEngineService\n\t\t\t\t\t.loadRandomViewTransition(this.session.getParticipant(),\n\t\t\t\t\t\t\tthis.getSameViewID());\n\t\t\tif (previouslyPickedViewId != null) {\n\t\t\t\treturn this.sendViewID(previouslyPickedViewId);\n\t\t\t}\n\t\t}\n\t\tfinal List<String> viewIdList = Arrays.asList(viewIdArray);\n\t\tCollections.shuffle(viewIdList);\n\t\tthis.surveyEngineService.saveRandomViewTransition(\n\t\t\t\tthis.session.getParticipant(), this.getSameViewID(),\n\t\t\t\tviewIdList.get(0));\n\t\treturn this.sendViewID(viewIdList.get(0));\n\t}", "public String getRandomCharecter(){\n\n\tif (!dataprepared){\n\t prepareData();\n\t}\n\t\n\tAssert.pre(table!=null,\"data must be prepared\");\n\n\treturn (String)table.get(r.nextInt(total));\n\n\t\n }", "private static void listRandomInstance(String[] args,ServiceDiscovery<InstanceDetails>\n serviceDiscovery,Map<String, ServiceProvider<InstanceDetails>> providers,String\n command) throws Exception {\n \n if (args.length != 1) {\n System.err.println(\"syntax error (expected random <name>): \" + command);\n return;\n }\n \n String serviceName = args[0];\n ServiceProvider<InstanceDetails> provider = providers.get(serviceName);\n if (provider == null) {\n provider = serviceDiscovery.serviceProviderBuilder().serviceName(serviceName)\n .providerStrategy(new RandomStrategy<InstanceDetails>()).build();\n providers.put(serviceName,provider);\n provider.start();\n \n Thread.sleep(2500); // give the provider time to warm up - in a real application you\n // wouldn't need to do this\n }\n \n ServiceInstance<InstanceDetails> instance = provider.getInstance();\n if (instance == null) {\n System.err.println(\"No instances named: \" + serviceName);\n } else {\n outputInstance(instance);\n }\n }", "private String randomName() {\n\n String name = this.names.get(intRandom(names.size() - 1));\n return name;\n }", "public Character pickOpponent()\n {\n int oppIndex = random.nextInt(characterList.size());\n opponent = characterList.get(oppIndex);\n return opponent;\n }", "private Alien getRandomAlien() {\n\t\twhile(roamingAliens >= 0){\n\t\t\tint i = random.nextInt(gameObject.size());\n\t\t\tif(gameObject.get(i)instanceof Alien)\n\t\t\t\treturn (Alien) gameObject.get(i);\n\t\t}\n\t\treturn null;\n\t}", "private static String[] randomStrings(int elements) {\n String[] array = new String[elements];\n for (int i = 0; i < array.length; i++) {\n int randomLength = (int) (Math.random() * 16) + 10; // 10 - 25 length\n StringBuilder builder = new StringBuilder();\n for (int j = 0; j < randomLength; j++) {\n /* Pick random integer in the range of 65-90 and create a character \n * out of it. The range 65-90 represents characters set of A-Z. 65 = 'A' */\n int randomChar = (int) (Math.random() * 26) + 65; \n builder.append((char) randomChar);\n }\n array[i] = builder.toString(); // add current word to the array\n }\n return array;\n }", "private String getRandName() {\n int firstName = (int)(Math.random() * listFirstNames.length);\n String fName = listFirstNames[firstName].trim();\n int lastName = (int)(Math.random() * listLastNames.length);\n String lName = listLastNames[lastName].trim();\n return ( fName + \" \" + lName ); \n }", "public static String getRandomName()\n {\n int index = Utility.randomWithRange(0, AWESOME_NAMES.length - 1);\n return AWESOME_NAMES[index];\n }", "private static String getUserChoice(String[] menu){\r\n System.out.println(\"\");\r\n for(int i = 0; i < menu.length; i++){\r\n if(i == 0){\r\n System.out.println(\"\\t--\" + menu[i] + \"--\"); \r\n }\r\n else{\r\n System.out.println(\"\\t\" + i + \") \" + menu[i]);\r\n }\r\n }\r\n System.out.print(\"Please enter your choice: \");\r\n Scanner in = new Scanner(System.in);\r\n return in.nextLine();\r\n }", "public static Character[] shuffle(Character[] list) {\n int x;\n Character[] shuffle2 = new Character[list.length];\n ArrayList<Integer> safety = new ArrayList<Integer>();\n for (int i = 0; i < list.length; i++) {\n x = randint(0, list.length - 1);\n while (safety.contains(x)) {\n x = randint(0, list.length - 1);\n }\n shuffle2[i] = list[x];\n safety.add(x);\n }\n return shuffle2;\n }", "public int getRandom() {\n int x=rand.nextInt(li.size());\n return li.get(x);\n }", "@Override\n\tpublic Powerup choosePowerup(List<Powerup> selectable) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"powerup\");\n\t\tJSONArray jArray = new JSONArray();\n\t\tselectable.forEach(s->jArray.add(s.toJSON()));\n\t\tmessage.put(\"list\", jArray);\n\t\tthis.sendInstruction(message);\n\n\t\tString selected = this.getResponse();\n\n\t\tif (selected == null || selectable.isEmpty()) return null;\n\t\tList<Powerup> matching = selectable.stream().filter(p->p.toJSON().toString().equals(selected))\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn matching.isEmpty() ? null : matching.get(0);\n\t}", "public int getRandom() {\r\n var list = new ArrayList<>(set);\r\n return list.get(new Random().nextInt(set.size()));\r\n }", "static void shuffleArray(String[] ar)\r\n {\n Random rnd = ThreadLocalRandom.current();\r\n for (int i = ar.length - 1; i > 0; i--)\r\n {\r\n int index = rnd.nextInt(i + 1);\r\n // Simple swap\r\n String a = ar[index];\r\n ar[index] = ar[i];\r\n ar[i] = a;\r\n }\r\n }", "private String getRandomTopic()\n\t{\n\t\tString randomTopic = \"\";\n\t\tdouble myRandom = Math.random();\n\t\tint myRandomListPosition = (int) (myRandom * randomList.size());\n\n\t\trandomTopic = randomList.get(myRandomListPosition);\n\t\treturn randomTopic;\n\t}", "void shuffleArray(String[] ar) {\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n String a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }", "private String chooseNextCharacter(final Random random, final String sequence) throws NoSuchElementException {\n if(! sequenceProbabilities.containsKey(sequence)) {\n throw new NoSuchElementException(\"There are no computed probabilities for the specified key.\");\n }\n\n Integer highestProbability = null;\n final List<String> highestStrings = new ArrayList<>();\n\n for(final Map.Entry<String, Integer> entry : sequenceProbabilities.get(sequence).entrySet()) {\n // If the initial data has not yet been set,\n // then set it.\n if(highestProbability == null) {\n highestStrings.add(entry.getKey());\n highestProbability = entry.getValue();\n } else {\n if(entry.getValue() > highestProbability) {\n highestStrings.clear();\n highestStrings.add(entry.getKey());\n highestProbability = entry.getValue();\n } else {\n highestStrings.add(entry.getKey());\n }\n }\n }\n\n final int randomIndex = random.nextInt(highestStrings.size());\n\n return highestStrings.get(randomIndex);\n }", "public int getRandom() {\n int i = random.nextInt(list.size());\n return list.get(i);\n }", "public static void shuffle(java.util.List arg0, java.util.Random arg1)\n { return; }", "protected String random(String value) {\n \t\treturn value + new Random().nextInt(100);\n \t}", "public String getRandomUser(TreeMap<String, Double> userlist)\r\n \t{\r\n \t\t//TODO key und value tauschen und bei gleicher punktzahl vorauswahltreffen\r\n \t\tTreeMap<Double, String> randomTreeMap = createRandomTreeMap(createPreselectionMap(userlist));\r\n \t\tfindRandomItem(randomTreeMap);\r\n \t\treturn randomTreeMap.firstEntry().getValue();\r\n \t}" ]
[ "0.76548314", "0.7155127", "0.68059444", "0.6484336", "0.64475775", "0.62447155", "0.62425804", "0.62063706", "0.6081272", "0.6024383", "0.5995244", "0.59410757", "0.5861214", "0.58460706", "0.5809108", "0.5793377", "0.57295704", "0.5718896", "0.57102317", "0.57083374", "0.5687564", "0.5658181", "0.56286734", "0.56034297", "0.5566687", "0.55470616", "0.5545616", "0.5498025", "0.54976577", "0.54843336", "0.5445116", "0.54392797", "0.54278326", "0.54242355", "0.5373694", "0.53267413", "0.53258115", "0.53230387", "0.5307916", "0.53009677", "0.5298648", "0.5291323", "0.5282769", "0.5280679", "0.5277923", "0.52686954", "0.5265763", "0.5262313", "0.5246398", "0.52428144", "0.52421224", "0.5238376", "0.5235833", "0.52351016", "0.52349824", "0.5229378", "0.52165455", "0.521214", "0.5211978", "0.52090997", "0.5197557", "0.5196632", "0.5186678", "0.51812494", "0.51744574", "0.5172812", "0.51712185", "0.51627266", "0.5157992", "0.51579326", "0.51537657", "0.51523125", "0.5151313", "0.51481456", "0.51479995", "0.5144981", "0.5133628", "0.5114732", "0.51109433", "0.510719", "0.51045275", "0.50997543", "0.5093751", "0.5090307", "0.50900704", "0.50897837", "0.5086591", "0.50811917", "0.5078206", "0.5075203", "0.5073655", "0.5067989", "0.5062644", "0.5052604", "0.50524545", "0.5047982", "0.5036557", "0.5036304", "0.5032015", "0.50295216" ]
0.5103889
81
Given a Scanner as input, prompt the user to enter a character. If the character enters anything other than a single character provide an error message and ask the user to input a single character. Otherwise return the single character to the calling program.
public static char getCharacterGuess(Scanner inScanner, String word) { boolean flag = true; String guess; String ints = "1 2 3 4 5 6 7 8 9"; do { System.out.print("Please enter a character or enter 0 for a word guess: "); guess = inScanner.nextLine(); if(guess.length() < 2 && (!ints.contains(guess)) && !guess.equals("0")) { flag = false; }else if(guess.equals("0")) { flag = false; }else if(ints.contains(guess)) { System.out.println("NOT INTS BRO"); } else { System.out.println("Only one character please"); } }while(flag); return guess.charAt(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static char inputChar(String p) {\n String c;\n while (true) {\n System.out.print(p);\n c = in.nextLine();\n if (c.length() == 1) {\n return c.charAt(0);\n } else {\n System.err.print(\"Must enter character, enter again! \");\n }\n }\n }", "public static char getInput( Scanner scan, String x ){\n if (x.length()>0){\n char c1=x.charAt(0); //1st character of string (\"C\")\n char c2=x.charAt(1); //2nd character of string (\"c\")\n scan=new Scanner(System.in);\n String input= scan.nextLine(); //takes in a string\n char i1=input.charAt(0);//takes 1st letter of input\n \n if (input.length()==1){\n if(i1==c1)\n { //if the 1st inputted character is equal to character 1 (C)\n \n return c1; //return that value\n }\n else if (i1==c2)//if the 1st inputted character is equal to character 2 (c)\n { \n return c2; //return that value\n }\n }\n else { //if more than one character entered\n System.out.println(\"You should enter exactly one character. Enter 'C' or 'c' to continue. Try again- \");\n return getInput(scan, x); //reruns\n }\n }\n \n System.out.print(\"You did not enter a characer from the list 'Cc' try again- \"); //if C or c is not entered\n return getInput(scan,x); //reruns\n \n }", "private char readChar() \n {\n \n String uInput = null;//user input\n do//do while loop to wait for a charater\n {\n try//collect user input\n {\n uInput = br.readLine();\n }\n catch(IOException ioe)//catch IOE\n {\n System.out.println(\"IO error trying to read number. Exiting now\");\n System.exit(1);\n }\n if(uInput.charAt(0)=='?')//special case for ? symbol\n {\n return uInput.charAt(0);\n }\n if(!Character.isLetter(uInput.charAt(0)))//check for charater\n {\n System.out.println(\"Invalid input, use ? for a list of commands\");\n System.out.printf(\"=> \");\n }\n }\n while(!Character.isLetter(uInput.charAt(0)));\n\n return uInput.charAt(0);//return character input\n \n }", "public char askForLetter() {\n\t\tchar guessLetter;\n\t\tboolean validInput = false;\n\t\twhile (validInput == false) {\n\t\t\tSystem.out.println(\"Enter a letter: \");\n\t\t\tString guessLine = keyboard.nextLine();\n\t\t\tif (guessLine.length() == 0 || guessLine.length() >= 2) {\n\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tguessLine = guessLine.toLowerCase();\n\t\t\t\tguessLetter = guessLine.charAt(0);\n\t\t\t\tif(guessLetter >= 'a' && guessLetter <= 'z') {\n\t\t\t\t\tSystem.out.println(\"You entered: \" + guessLetter);\n\t\t\t\t\tvalidInput = true;\n\t\t\t\t\treturn(guessLetter);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn(' ');\n\t\t\n\t\t\n\t}", "public boolean characterInput(char c);", "public static char checkInput() {\r\n\t\tchar ch = ' ';\r\n\t\tboolean check = true;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tch = input.next(\".\").charAt(0);\t\t// samo jedan karakter dozvoljen\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t// hvatanje greske\r\n\t\t\t\tSystem.out.println(\"Pogresan unos, samo jedan karakter dozvoljen! Probaj ponovo:\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (check);\r\n\t\treturn ch;\r\n\t}", "public static char getKeyCharacter()\n {\n \n //Prompts and reads the key character in String\n final int MINIMUM_LENGTH = 0, MAXIMUM_LENGTH = 1;\n Scanner key = new Scanner(System.in);\n System.out.print(\"Please enter a single character to act as a key: \");\n String fh = key.nextLine();\n \n //Checks for key character length and loops for proper input\n while (fh.length() == MINIMUM_LENGTH|| fh.length() > MAXIMUM_LENGTH)\n {\t\n System.out.print(\"Please enter a single character to act as a key: \");\n fh = key.nextLine();\n }\n \n //Converts String to char\n char gKC = fh.charAt(0);\n return gKC;\n }", "private char getGuessLetter(Scanner sc) {\n\n\t\t// the array format of the input\n\t\tchar[] ch;\n\t\twhile (true) {\n\t\t\t// ask for the input\n\t\t\tSystem.out.println(\"Please enter one letter to guess:\");\n\t\t\tSystem.out.print(\">>>\");\n\t\t\t// reading the input\n\t\t\tString input = sc.nextLine();\n\t\t\tch = input.toCharArray();\n\t\t\t// if the input is a allowed letter\n\t\t\tif(ch.length == 1\n\t\t\t\t&&(dr.isAllowed(ch[0]) || Character.isUpperCase(ch[0]))) {\n\t\t\t\t// break the loop\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Please enter an allowed letter.\");\n\t\t\t}\n\t\t}\n\t\t//return the lower-cased version of the letter\n\t\treturn Character.toLowerCase(ch[0]);\n\t}", "public static char readChar()\n {\n \tString ch = scanner.next();\n \treturn ch.charAt(0);\n }", "public static char promptForChar(String prompt, char min, char max) {\n\n char charmander = '-';\n boolean invalidInput = false;\n String input = null;\n int minChar = (int) min, maxChar = (int) max, inputChar = 0;\n\n if(minChar > maxChar) throw new IllegalArgumentException(\"min cannot be greater than max.\");\n if(prompt == null) throw new IllegalArgumentException(\"prompt cannot be null.\");\n do{\n input = receiveInput(prompt + String.format(\"(%s-%s)\", min, max));\n invalidInput = input.length() != 1;\n if (invalidInput) {\n System.out.println(\"Please Enter only one character\");\n } else {\n charmander = input.charAt(0);\n inputChar = charmander;\n invalidInput = inputChar < minChar || inputChar > maxChar;\n if (invalidInput) {\n System.out.println(\"Please Enter a Character that value is between \" + min + \" and \" + max);\n }\n }\n }while (invalidInput);\n return charmander;\n }", "public static int checkCharType(char input){\n\n // Scanner scanner = new Scanner(System.in);\n // System.out.println(\"Enter a Character : \");\n // char input = scanner.next().charAt(0);\n //scanner.close();\n\n if(input >='a' && input <= 'z'){\n System.out.println(\"Small case Letter.\");\n return 1;\n }\n else if(input >='A' && input <= 'Z'){\n System.out.println(\"Capital Letter.\");\n return 2;\n }\n else if(input >='0' && input <= '9'){\n System.out.println(\"A Digit.\");\n return 3;\n }\n else{\n System.out.println(\"Special Character.\");\n return 4;\n }\n }", "public char getChar(String pPrompt) {\r\n\t\tSystem.out.print(pPrompt + \" \");\r\n\t\treturn input.nextLine().charAt(0);\r\n\t}", "public static char readCharacter(String message){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n return in.next().charAt(0);\n }", "private char playerGuess(){\r\n System.out.println(\"\\nEnter your guess: \");\r\n guess = input.next();\r\n if (guess.matches(\"[a-zA-z]*$\") && guess.length() == 1){\r\n if(guesses.contains(guess.charAt(0))){\r\n System.out.println(\"You already guessed this character!\");\r\n playerGuess();\r\n }\r\n return Character.toLowerCase(guess.charAt(0));\r\n } else {\r\n System.out.println(\"Invalid guess! Try again!\");\r\n playerGuess();\r\n }\r\n return Character.toLowerCase(guess.charAt(0));\r\n }", "private static void chooseLetter()\n {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Choose a letter :: X or O : \");\n userLetter = scanner.next().toUpperCase().charAt(0);\n computerLetter = (userLetter == 'X') ? 'O' : 'X';\n }", "private static char askIfQuit() \n {\n Scanner input = new Scanner(System.in);\n\n\t System.out.print(\"Enter (q)uit to quit: \");\n\t char go = input.next().toLowerCase().charAt(0);\n\n\t return go;\n }", "public static char playerInput(String player) {\r\n\t System.out.println(\"Enter the input to begin the game: X | O: \");\r\n\t char inputChar = value.next().charAt(0);\r\n\r\n\t return inputChar;\r\n\t }", "public static void playerInput() \n\t{\n\t\t\n\t\tscanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Choose the character x or o\");\n\t\tplayerInput = scanner.next().charAt(0);\n\t\tif (playerInput == 'x' || playerInput == 'o') \n\t\t{\n\t\t\tif (playerInput == 'x') \n\t\t\t{\n\t\t\t\tcomputerInput = 'o';\n\t\t\t\tSystem.out.println(\"Player chooses x & o is assigned to computer.\\n\");\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\tcomputerInput = 'x';\n\t\t\t\tSystem.out.println(\"Player chooses o & x is assigned to computer.\\n\");\n\t\t\t\t//computerMove();\n\t\t\t}\n\t\t} \n\t\telse \n\t\t{\n\t\t\tSystem.out.println(\"Invalid Input ! Try again.\\n\");\n\t\t\tplayerInput();\n\t\t}\n\t\ttossWhoIsFirst();\n\t}", "private char readChar() {\r\n\t\tInputStream in = System.in;\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n\t\tString line = null;\r\n\r\n\t\ttry {\r\n\t\t\tline = br.readLine();\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\treturn line.toLowerCase().charAt(0);\r\n\t}", "char nextChar();", "public static char in(String s)\n {\n if (s != null && s.length() > 0)\n {\n System.out.print(s);\n System.out.flush();\n }\n\n InputStreamReader reader = new InputStreamReader(System.in);\n int ch;\n try\n {\n while ((ch = reader.read()) < 0)\n {\n }\n }\n catch (IOException e)\n {\n ch = 0x0;\n }\n\n return (char)ch;\n }", "public static void oneLetter () {\n System.out.println(\"Type in a letter\");\n Scanner input = new Scanner(System.in);\n String userInput = input.nextLine();\n if ((userInput.equals( \"a\")) || (userInput.equals(\"e\")) || (userInput.equals(\"i\")) || (userInput.equals(\"o\")) || (userInput.equals(\"u\"))) {\n System.out.println(\"That is a vowel!\");\n\n }\n else {\n System.out.println(\"That is a consonant\");\n\n }\n }", "public static char getInput(Scanner x, String y){ //adding method getInput #1 \n String input1=x.next(); //accepting user input\n while(true){ //while loop to keep running it back around to check for the character number\n while(input1.length()!=1){ //while loop that forces user to enter 1 int\n System.out.print(\"You should enter exactly one character- \"); //telling user they need to enter 1 character\n input1=x.next(); //accepting user input\n }//end of while loop for if user enter more than 1 input\n int i=0; //declaring int which will act as a sentinel \n char test; //declaring char \n while(i<y.length()){ //while loop that runs the number of times the length of the string is\n test=y.charAt(i); //making test equal to char method, to check each letter of string y\n if(test == input1.charAt(0)){//when the chars finally are equivalent\n return input1.charAt(0); //returns the value\n }//end of if statement \n i++; //counter to run the loop the length of the string\n }//end of while loop\n System.out.print(\"You should enter the right characters. try again- \"); //informing user that they did not enter the right input\n input1=x.next(); //accepting user input\n }//end of while loop\n }", "public static char promptForChar(String prompt, char min, char max) throws IOException {\r\n\t\tif (min > max) {\r\n\t\t\tthrow new IllegalArgumentException(\"Min cannot be greater than max\");\r\n\t\t}\r\n\t\tif (prompt == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Prompt cannot be null\");\r\n\t\t}\r\n\t\tboolean isValid = false;\r\n\t\tchar input = ' ';\r\n\t\tString rawInput;\r\n\r\n\t\twhile (!isValid) {\r\n\t\t\tSystem.out.println(prompt);\r\n\t\t\ttry {\r\n\t\t\t\trawInput = in.readLine();\r\n\r\n\t\t\t\tif (rawInput.length() > 1) {\r\n\t\t\t\t\tSystem.out.println(\"It can not be more than 1 character\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tinput = rawInput.charAt(0);\r\n\r\n\t\t\t\tif (input > max) {\r\n\t\t\t\t\tSystem.out.println(\"Needs to be smaller than \" + max);\r\n\t\t\t\t\tisValid = false;\r\n\t\t\t\t\tinput = ' ';\r\n\t\t\t\t} else if (input < min) {\r\n\t\t\t\t\tSystem.out.println(\"Needs to be bigger than \" + min);\r\n\t\t\t\t\tisValid = false;\r\n\t\t\t\t\tinput = ' ';\r\n\t\t\t\t} else {\r\n\t\t\t\t\tisValid = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IndexOutOfBoundsException ex) {\r\n\t\t\t\tSystem.out.println(\"\" + input + \" is not a valid option from \" + min + \" and \" + max);\r\n\t\t\t\tisValid = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn input;\r\n\t}", "private String readGuess() {\n\t\tString unsafeGuess = readLine(\"Your Guess: \").trim().toUpperCase();\n\t\tif (!unsafeGuess.matches(\"[a-zA-z]\") || unsafeGuess.length() != 1) {\n\t\t\tprintln(\"Please enter a single letter.\");\n\t\t\treturn readGuess();\n\t\t} else {\n\t\t\treturn unsafeGuess.toUpperCase();\n\t\t}\n\t}", "public char userChoice ()\n {\n\tString c = IBIO.inputString (\"Stag, Doe, Phoenix, Horse, or Wolf? \");\n\tboolean Check = isValid (c);\n\twhile (!isValid (c))\n\t{\n\t printSlow (\"Error, invalid input.\");\n\t c = IBIO.inputString (\"Stag, Doe, Phoenix, Horse, or Wolf? \");\n\t}\n\n\n\tif (c.equalsIgnoreCase (\"Stag\") || c.equalsIgnoreCase (\"s\"))\n\t return 's';\n\telse if (c.equalsIgnoreCase (\"Doe\") || c.equalsIgnoreCase (\"d\"))\n\t return 'd';\n\telse if (c.equalsIgnoreCase (\"Phoenix\") || c.equalsIgnoreCase (\"p\"))\n\t return 'p';\n\telse if (c.equalsIgnoreCase (\"Horse\") || c.equalsIgnoreCase (\"h\"))\n\t return 'h';\n\telse\n\t return 'w';\n\n }", "public static char getInput(Scanner x, String instruction, String posN){//adding method getInput #3\n System.out.println(instruction); //printing the instructions\n System.out.print(\"Enter one character in the following list \"+posN+\"- \");//prompting user to enter one of the list\n String input3=x.next(); //accepting user input\n while(true){ //while loop to keep running it back around to check for the character number\n while(input3.length()!=1){ //while loop that forces user to enter 1 int \n System.out.print(\"You should enter exactly one character- \"); //telling user they need to enter 1 character \n input3=x.next(); //accepting user input\n } //end of while loop\n int i=0; //declaring int that will act as a sentinel \n char test; //declaring char\n while(i<posN.length()){ //while loop that runs the number of times the length of the string is \n test=posN.charAt(i); //making test equal to char method, to test each letter of string posN\n if(test == input3.charAt(0)){//when the chars are finally equivalent \n return input3.charAt(0); //returns the value \n } //end of if statement \n i++; //counter to run the loop the length of the string \n } //end of while loop\n System.out.print(\"You should enter the right characters. try again- \"); //telling user they need to enter the right characters \n input3=x.next(); //accepting user input \n }///end of infinite while loop\n }", "public static boolean userInput(){\n String tempInput = \"y\"; //string to hold input for bulletproofing, default length is one character\n Scanner input = new Scanner(System.in);\n\n do { //bulletproofing input\n\n if (tempInput.length() != 1){ //if looping for second time, output error message\n System.out.println(\"Unaccepted input. Please reenter.\");\n }\n\n tempInput = input.nextLine(); //take input\n\n }while(tempInput.length() != 1); //loops again if input is not single character\n\n return tempInput.charAt(0) == 'y';\n }", "@Override\r\n\tpublic char play(char lastPlayed) {\n\t\tString inputStr;\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Next character: \");\r\n\t\tinputStr = input.nextLine();\r\n\t\twhile (inputStr.length() > 1) {\r\n\t\t\tSystem.out.print(\"Next character: \");\r\n\t\t\tinputStr = input.nextLine();\r\n\t\t}\r\n\t\treturn inputStr.charAt(0);\r\n\t}", "public char readChar(){\n\t\tscanner.useDelimiter(EMPTY_PATTERN);\n\t\ttry {\n\t\t\tString ch=scanner.next();\n\t\t\tassert ch.length()==1:\"In.readChar() error\";\n\t\t\tscanner.useDelimiter(WHITESPACE_PATTERN);\n\t\t\treturn ch.charAt(0);\n\t\t}catch (NoSuchElementException e){\n\t\t\tthrow new NoSuchElementException(\"noSuchElement\");\n\t\t}\n\t}", "public static String validInput(Scanner in) {\r\n\t\tString answer = \"\";\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tanswer = in.nextLine();\r\n\t\t\t\tif (containToken(answer)) {\r\n\t\t\t\t\tthrow new Exception(\"incorrect input\");\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.out.println(\"Please, enter one letter or one word.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn answer;\r\n\t}", "char readChar();", "private static void task41() {\n System.out.println(\"Enter character: \");\n char ch = scanStr().charAt(0);\n\n System.out.println(\"ASCII value of \" + ch + \" is \" + (int)ch);\n }", "public static void main(String[] args) {\n CharacterTypeFinder characterTypeFinder = new CharacterTypeFinder();\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter a alphabet\");\n String character = scanner.next();\n if (character.length() == 1 && characterTypeFinder.isAlphabet(character)) {\n if(characterTypeFinder.isVowel(character)){\n System.out.println(\"Entered string is a vowel!\");\n }else{\n System.out.println(\"Entered String is a consonant\");\n }\n }else{\n scanner.nextLine();\n System.out.println(\"invalid string\");\n }\n }", "public static String inputString(String prompt) {\n //String errorMsg = \"Must be a non-empty string\\n\";\n\n /*\n String input = \"\";\n while (input == \"\") {\n System.out.print(prompt);\n input = GolferScoresTree.scanner.next().trim();\n if (input == \"\")\n System.out.println(errorMsg);\n }\n */\n\n // scanner automatically ignores empty / all-whitespace inputs\n System.out.print(prompt);\n // trim whitespace off ends of input\n String input = GolferScoresTree.scanner.next().trim();\n\n return input;\n }", "private static char[] getInput() {\n char x = 'x';\n char o = 'o';\n char[] output = {x, o};\n System.out.print(\"Please choose x or o-\");\n String input = (sc.next()).toLowerCase();\n char mark = input.charAt(0);\n if (mark == x) {\n System.out.println(\"User has entered- \" + x);\n output[0] = x;\n System.out.println(\"Computer has entered- \" + o);\n output[1] = o;\n } else if (mark == o) {\n System.out.println(\"User has entered- \" + o);\n output[0] = o;\n System.out.println(\"Computer has entered- \" + x);\n output[1] = x;\n } else {\n System.out.println(\"Unknown entry. Defaulting to Player-x Computer-o\");\n }\n return output;\n }", "public static char readChar(String prompt) throws IOException {\r\n\t\tchar value = 0;\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.print(prompt + \" _>\");\r\n\t\t\t\tvalue = (char)reader.read();\r\n\t\t\t\t// alternative value = (char)reader.readLine().charAt(0);\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tSystem.err.println(ex.getLocalizedMessage());\r\n\t\t\t\tthrow ex;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "public static char nextChar (Scanner s) throws NullPointerException {\n return s.findWithinHorizon(DOT, 1).charAt(0);\n }", "public char keyboardReadChar() {\n BufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n char charItem = ' ';\n try {\n charItem = (char) myReader.read();\n } // try\n catch (IOException IOError) {\n System.out.println(\"Read Error in Termio.KeyboardReadChar method\");\n } // catch\n return charItem;\n }", "int getNumericalUserInput() {\n String input = userInput.next();\n int i = -1; //holds converted input\n boolean success = false;\n\n while (!success) {\n if (input.toLowerCase().equals(\"c\")) {\n i = -1;\n success = true;\n } else {\n try {\n i = Integer.parseInt(input);\n success = true;\n } catch (NumberFormatException e) {\n System.out.println(\"Invalid entry.\");\n break;\n }\n }\n }\n return i;\n }", "public char userChoice ()\n {\n\tspeed (45, 500, \"\\nFire, Water or Grass?\");\n\t//ask for user's choice. will need to store in String\n\tString choice = IBIO.inputString (\"\\nChoose either Fire, Water or Grass: \");\n\n\t//Loop: if invalid input, ask again\n\twhile (!isValid (choice))\n\t{\n\t speed (45, 500, \"\\nInvalid choice! Please input again.\");\n\t choice = IBIO.inputString (\"\\nChoose either Fire, Water or Grass: \");\n\n\t}\n\t//stopping condition is the isValid method!!\n\t//something like: while(!isValid(choice))\n\n\t//If: to standardize values\n\t//if you've got one of Rock, ROCK, rock, r, R, then return 'r'.\n\t//else if you've got one of Paper, PAPER, paper, p, P, then return 'p'.\n\t//else return 's';\n\tif (choice.equals (\"fire\") || choice.equals (\"Fire\") || choice.equals (\"f\") || choice.equals (\"F\") || choice.equals (\"FIRE\"))\n\t return 'F';\n\telse if (choice.equals (\"w\") || choice.equals (\"W\") || choice.equals (\"Water\") || choice.equals (\"WATER\") || choice.equals (\"water\"))\n\t return 'W';\n\telse\n\t return 'G';\n }", "private static String getCountryInput(){\n System.out.println(countryPrompt);\n String s = sc.nextLine();\n while(!query.countryExists(s) && !s.equals(\"x\")){\n System.out.println(\"That country is not available. Please ensure correct spelling and capitalization\");\n System.out.println(countryPrompt);\n System.out.println(\"Enter 'x' to cancel this query\");\n s = sc.nextLine();\n }\n if(s.equals(\"x\")){\n return null;\n } else {\n return s;\n }\n\n }", "char getEChar();", "public static int promptUser(Scanner sc){\n int userInput = 0;\n boolean validInput = false;\n\n System.out.print(\"\" +\n \"Choose a game option: \\n\" +\n \" 1. Start playing \\n\" +\n \" 2. Set the starting configuration\\n\" +\n \"Enter your choice --> \");\n\n //loop until a valid input is read in\n while(validInput == false) {\n //ask until an integer is found\n while (!sc.hasNextInt()) {\n System.out.println(\"\\n\\t***INVALID INPUT***\\n\");\n System.out.println(\"\" +\n \"Choose a game option: \\n\" +\n \" 1. Start playing \\n\" +\n \" 2. Set the starting configuration\\n\" +\n \"Enter your choice --> \");\n sc.next();\n }\n\n userInput = sc.nextInt();\n\n //check to see if they entered a 1 or a 2\n if(userInput == 1 || userInput == 2)\n validInput = true;\n else{ //otherwise, re-prompt\n System.out.println(\"\\n\\t***INVALID INPUT***\\n\");\n System.out.println(\"\" +\n \"Choose a game option: \\n\" +\n \" 1. Start playing \\n\" +\n \" 2. Set the starting configuration\\n\" +\n \"Enter your choice --> \");\n continue;\n }\n\n }\n\n return userInput;\n }", "public static void carColor() {\n System.out.println(\"Do you have a red car? \");\n char redCar= sc.next().charAt(0); \n }", "private Token scanChar(LocatedChar firstChar) {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tif(input.peek().matchChar('#')) {\n\t\t\tbuffer.append(input.next().getCharacter());\n\t\t\tLocatedChar next = input.peek();\n\t\t\tif(next.matchChar('#') || Character.isDigit(next.getCharacter())) {\n\t\t\t\tbuffer.append(input.next().getCharacter());\n\t\t\t\treturn CharToken.make(firstChar, buffer.toString(),next.getCharacter());\n\t\t\t} \n\t\t\telse {\n\t\t\t\tlexicalError(firstChar, \"malformed char of form ##[0..9#]\");\n\t\t\t\treturn findNextToken();\n\t\t\t}\n\t\t} \n\t\telse if(input.peek().isOctal()) {\n\t\t\tappendSubsequentOctals(buffer);\n\t\t\tint val;\n\t\t\ttry {\n\t\t\t\tval = Integer.parseInt(buffer.toString(), 8);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tlexicalError(firstChar, \"char value out of integer bounds\");\n\t\t\t\treturn findNextToken();\n\t\t\t}\n\t\t\tif(isPrintableChar((char)val)) {\n\t\t\t\treturn CharToken.make(firstChar, buffer.toString(), (char)val);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlexicalError(firstChar, \"char value not printable\");\n\t\t\t\treturn findNextToken();\n\t\t\t}\n\t\t}\n\t\telse if(isPrintableChar(input.peek().getCharacter())){\n\t\t\tLocatedChar next = input.next();\n\t\t\tbuffer.append(next.getCharacter());\n\t\t\treturn CharToken.make(firstChar, buffer.toString(), next.getCharacter());\n\t\t}\n\t\telse {\n\t\t\tlexicalError(firstChar, \"malformed char of form #@\");\n\t\t\treturn findNextToken();\n\t\t}\n\t}", "public static String prompt(String message, Scanner keyboard) {\n\t\t\n\t\tSystem.out.println(message);\n\t\t\n\t\tString userInput = keyboard.nextLine();\n\t\t\n\t\treturn userInput;\t\t\n\t\t\n\t}", "public static char continueGame(Scanner in) {\r\n\t\tString answer = \"\";\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tanswer = in.nextLine();\r\n\t\t\t\tif (answer.length() != 1 || (answer.charAt(0) != 'y' && answer.charAt(0) != 'n')) {\r\n\t\t\t\t\tthrow new Exception(\"incorrect input\");\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.out.println(\"Please, enter y to continue, or n to stop game.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn answer.charAt(0);\r\n\t}", "public static char toChar(Character ch) {\n/* 130 */ if (ch == null) {\n/* 131 */ throw new IllegalArgumentException(\"The Character must not be null\");\n/* */ }\n/* 133 */ return ch.charValue();\n/* */ }", "public static char toChar(Character ch, char defaultValue) {\n/* 150 */ if (ch == null) {\n/* 151 */ return defaultValue;\n/* */ }\n/* 153 */ return ch.charValue();\n/* */ }", "public static char getInput(Scanner x, String y, int z){ //adding method getInput #2\n String input2=x.next(); //accpeting user input\n int c=0; //declaring sentinel c \n while(c<z){ //while statement that only runs for 5 tries \n while(input2.length()!=1){//while loop that forces user to enter 1 int\n System.out.print(\"You should enter exactly one character- \"); //telling user they need to enter 1 character\n input2=x.next(); //accepting user input\n c++; //counter that limits the number of tries\n } //end of while loop that forces user to enter 1 int \n int i=0; //declaring in that will act as a sentinel \n char test; //declaring char \n while(i<y.length()){ //while loop that runs the number of times the length of the string is\n test=y.charAt(i); //making test equal to char method, to test each letter of string y \n if(test == input2.charAt(0)){//when the chars are finally equivalent\n return input2.charAt(0); //returns the value\n }//end of if statment \n i++; //counter to run the loop the length of the string \n }//end of while loop\n System.out.print(\"You should enter the right characters. Try again- \"); //telling user they need to enter the right character \n input2=x.next(); //accepting user input \n c++; //counter to limit the number of tries \n }\n System.out.println(\"You failed after 5 tries\"); //when the user fails after 5 tries \n return ' '; //terminating the program \n }", "private Token scanSingleCharacterToken() {\n TokenType type;\n Pair<Integer, Integer> pos = new Pair<>(in.line(), in.pos());\n switch (c) {\n case '(' -> type = TokenType.LPAREN;\n case ')' -> type = TokenType.RPAREN;\n case '[' -> type = TokenType.LBRACKET;\n case ']' -> type = TokenType.RBRACKET;\n case '+' -> type = TokenType.ADD;\n case '-' -> type = TokenType.MINUS;\n case '*' -> type = TokenType.MULTIPLY;\n case '%' -> type = TokenType.REMAINDER;\n case '=' -> type = TokenType.EQUALS;\n case ',' -> type = TokenType.COMMA;\n case ';' -> type = TokenType.SEPARATOR;\n default -> type = null;\n }\n\n buffer.add(c);\n Token tok = new Token(buffer.toString(), type, pos);\n buffer.flush();\n c = in.read();\n return tok;\n }", "public static boolean Character(char a)\n {\n boolean valid = false;\n int convert;\n \n //converts the character a to its equivalent decimal value\n convert = (int)a;\n \n // checks if the character is within range\n // a-z or A-Z\n if (((convert >= 65) && (convert <= 90))||((convert >= 97) && (convert <= 122)))\n {\n valid = true;\n }\n else\n {\n //displays the error to the user by calling the displayError method in UserInterface class\n UserInterface.displayError(\"You have not entered a character. Enter again: \");\n }\n return valid;\n }", "public static char getChar() throws IOException {\n\t\nString s = getString();\nreturn s.charAt(0);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns the first letter of the string, to help idiot proof it.\n\n}", "public abstract boolean isStarterChar(char c);", "public static ComparableCharSequence singleChar(char c) {\n switch (c) {\n case '\\n':\n return CR;\n case ',':\n return COMMA;\n case '.':\n return DOT;\n case ':':\n return COLON;\n case '{':\n return OPEN_CURLY;\n case '}':\n return CLOSE_CURLY;\n case '(':\n return OPEN_PAREN;\n case ')':\n return CLOSE_PAREN;\n case '[':\n return OPEN_SQUARE;\n case ']':\n return CLOSE_SQUARE;\n case '/':\n return SLASH;\n case '\\u2026':\n return ELLIPSIS;\n default:\n return new SingleCharSequence(c);\n }\n }", "public static void main(String[]args){//inicio del main\r\n\r\n\tScanner in = new Scanner(System.in);// creacion del scanner\r\n\tSystem.out.println(\"Input Character\");//impresion del mensaje en consola\r\n\tchar C= in.next().charAt(0);//lectura del char\r\n\t\r\n\tSystem.out.println(\"The ASCII value of \" +C+ \" is : \"+(int) C);//casteo del caracter e impresion del resultado\r\n\t}", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);//creating a Scanner called input\n\n System.out.println(\"Enter the name of an animal: \");\n String animal = input.nextLine();\n\n System.out.println(\"How would you describe a \" + animal + \"? \");\n String description = input.nextLine();\n\n input.close(); //close scanner\n\n char letter = animal.charAt(0);//takes the first character from String animal\n System.out.println(\"A \" + animal + \" is \" + description);\n\n System.out.println(\"You will find it under \" + letter + \" in the dictionary\");\n }", "public static char scanChar(String s) {\n\t\tCharacter key = null;\n\t\tMap<Character, String> mapping = new HashMap<>();\n\t\tfor (char c = 'A'; c <= '?'; c++) {\n\t\t\tmapping.put(c, AsciiArt.printChar(c));\n\t\t}\n\n\t\tfor (Map.Entry entry : mapping.entrySet()) {\n\t\t\tif (s.equals(entry.getValue())) {\n\t\t\t\tkey = (char) entry.getKey();\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tkey = '?';\n\t\t\t}\n\t\t}\n\n\t\treturn key;\n\n\t}", "private boolean CHAR(char ch) {\r\n if (in >= input.length()) return false;\r\n int len = input.nextLength(in);\r\n int code = input.nextChar(in, len);\r\n if (code != ch) return false;\r\n in += len;\r\n return true;\r\n }", "public char readChar(String message) {\r\n\t\tSystem.out.println(message);\r\n\t\treturn scanner.nextLine().charAt(0);\r\n\t}", "public static char getGuess(char[] asterisks){\n\t\tSystem.out.print(\"(Guess) Enter a letter in word \");\n\t\tSystem.out.print(asterisks);\n\t\tSystem.out.print(\" > \");\n\t\tString g = input.next();\n\t\treturn g.charAt(0);\n\t}", "private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }", "public SingleChar(char c) {\n super(SOME, NONE);\n this.c = c;\n }", "public static String getInput(Scanner scan){\n int box = scan.nextInt();\n switch(box){\n case 1:\n System.out.print(\"You've won $10,000\");\n break;\n case 2:\n System.out.print(\"You've won a half eaten turkey sandwhich\");\n break;\n case 3: \n System.out.print(\"You've won a one-on-one date with Betty White\");\n break;\n default:\n System.out.println(\"A Wrong Number! You get nothing! Better restart the game LOL\");\n System.exit(1);\n break;\n }\n String string = \"t\";\n return string;\n }", "private static String getUserInput(String prompt){ \r\n Scanner in = new Scanner(System.in);\r\n System.out.print(prompt);\r\n return in.nextLine();\r\n }", "public static int getInt(String prompt) {\n Scanner sc = new Scanner(System.in);\n int userInput;\n\n System.out.println(prompt);\n\n try {\n userInput = sc.nextInt();\n sc.close();\n return userInput;\n } catch (InputMismatchException e) {\n return getInt(prompt);\n }\n\n }", "public static char playerChoice(){\n String str1; //temp string to hold players choice.\n char choice; //return value of players choice after parsing.\n \n str1 = JOptionPane.showInputDialog(\"Choose one of the following: (R)Rock, (P)Paper, (S)Scissors,\"+\n \"\\n(L)Lizard, (X)Spock\");\n while(str1.length() == 0){\n str1 = JOptionPane.showInputDialog(\"Choose one of the following: (R)Rock, (P)Paper, (S)Scissors,\"+\n \"\\n(L)Lizard, (X)Spock\");\n }\n \n choice = str1.charAt(0);\n choice = Character.toLowerCase(choice);\n while( choice != 'r' && choice != 'p' && choice != 's' && choice != 'l' && choice != 'x'){\n str1 = JOptionPane.showInputDialog(\"Choose one of the following: (R)Rock, (P)Paper, (S)Scissors,\"+\n \"\\n(L)Lizard, (X)Spock\"); \n \n while(str1.length() == 0){\n str1 = JOptionPane.showInputDialog(\"Choose one of the following: (R)Rock, (P)Paper, (S)Scissors,\"+\n \"\\n(L)Lizard, (X)Spock\");\n }\n choice = str1.charAt(0);\n choice = Character.toLowerCase(choice); \n }\n\n \n return choice;\n }", "public static int getInt(String prompt) throws Exception {\n if (scanner == null) {\n throw new Exception(\"Input Utility's scanner is not set\");\n }\n String localPrompt = prompt;\n boolean validInput = false;\n int num = 0;\n\n // enter the number\n do {\n if (localPrompt != null) {\n System.out.print(localPrompt);\n }\n try { // If (works)\n num = scanner.nextInt();\n scanner.nextLine();\n validInput = true;\n } catch (InputMismatchException ime) { // else (fails)\n System.out.println(\"That is not an integer.\");\n scanner.nextLine();\n if (localPrompt == null)\n localPrompt = \"Enter an integer: \";\n num = 0;\n }\n } while (!validInput);\n return num;\n }", "char getReadChar();", "private int getUserInput() {\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n int input = scanner.nextInt();\n while(input < 1 || input > 3) {\n System.out.println(\"only enter 1 2 or 3.\");\n input = scanner.nextInt();\n }\n return input;\n }", "char getKeyPressChar();", "private String stringKeyBoardInput() {\n\t\tString input = \"\";\n\t\tboolean tryAgain = true;\n\t\twhile (tryAgain) {\n\t\t\ttry {\n\t\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t\tinput = scanner.nextLine();\n\t\t\t\ttryAgain = false;\n\t\t\t} catch (InputMismatchException ime) {\n\t\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t\t}\n\t\treturn input;\n\t}", "private static String getUserInput(Scanner scanner) {\n\t\tString stringGuess = \"\";\n\t\t//16\n while (true) {\n\t\t System.out.println(\"Enter a three-digit number guess:\");\n\t\t stringGuess = scanner.nextLine(); \n\t\t if (stringGuess.length() == 3){\n\t\t break;\n\t\t }\n\t\t}\n\t\treturn stringGuess;\n\t}", "public static int askUser(Scanner in)\n {\n System.out.println(\"What do you want, respectable human being?\");\n System.out.println(\"1. Add Reminder\");\n System.out.println(\"2. View Reminder\");\n System.out.println(\"3. Edit Reminder\");\n System.out.println(\"4. Delete Reminder\");\n System.out.println(\"5. Exit\");\n System.out.print(\"User Input : \");\n return in.nextInt();\n }", "private static int askForGoMainMenu(String message){\n\t\tshowMessage(message);\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint input;\n\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tinput = Integer.parseInt(myReader.readLine());\n\n\t\t\t\tif ((input < 0) || (input>1)) {\n\t\t\t\t\tSystem.out.println(\"Please type 1 or 2.\\n\");\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid. Choose 1 or 2.\\n\");\n\t\t\t\tinput = 0;\n\t\t\t}\n\n\n\t\t}\n\t\twhile ((input < 0) || (input>1));\n\n\t\treturn input;\n\n\t}", "public static String promptForInput(String prompt, boolean allowEmpty) {\n String input = null;\n boolean invalidInput = true;\n do {\n input = receiveInput(prompt);\n if (allowEmpty) {\n invalidInput = input == null;\n } else {\n invalidInput = input == null || input.isEmpty();\n }\n if (invalidInput) {\n System.out.println(\"Please input a valid string.\");\n }\n } while (invalidInput);\n return input;\n\n }", "public static void keepGoing() {\n System.out.println(\"Would you like to continue? \");\n char contin= sc.next().charAt(0); \n }", "public static int getMenuOption() {\n Scanner input = new Scanner(System.in);\n\n menuOption = input.next().toLowerCase().charAt(0);\n\n while (menuOption != 'a' && menuOption != 'r' && menuOption != 'f' && menuOption != 'i' && menuOption != 'n' && menuOption != 'q') {\n System.out.print(\"Enter a valid choice: \");\n menuOption = input.next().toLowerCase().charAt(0);\n }\n\n if (menuOption == 'a') {\n return 1;\n } else if (menuOption == 'r') {\n return 2;\n } else if (menuOption == 'f') {\n return 3;\n } else if (menuOption == 'i') {\n return 4;\n } else if (menuOption == 'n') {\n return 5;\n } else {\n return 6;\n }\n }", "public abstract char read_char();", "protected static int easyIn() {\n // ADDITIONAL CHECKS?\n int a;\n debug(\"Please enter your selection: \");\n scanner = new Scanner(System.in);\n\t\ta = scanner.nextInt();\n return a;\n }", "private static String validateMainMenuChoice(String choice)\r\n {\t\t\r\n boolean isValid = false;\r\n\r\n //loops until user enters A C or E\r\n while (isValid == false)\r\n {\t\t\r\n if (choice.equals(\"A\") || choice.contentEquals(\"C\") || choice.contentEquals(\"E\"))\r\n {\r\n isValid = true;\r\n }else\r\n {\r\n System.out.println(\"\\n!!!!!!!!!!!!!!\\nYOUR CHOICE WAS NOT VALID.\"\r\n + \"\\n\\tPlease enter 'A', 'C', or 'E'\");\t\t\t\r\n\r\n choice = scanner.nextLine();\r\n }\r\n }\t\t\t\r\n return choice;\r\n }", "private static String validateInputStr() {\n String str = \"\";\n Scanner genericString = new Scanner(System.in);\n if (!genericString.hasNextInt()) {\n str = genericString.nextLine();\n return str;\n }\n else {\n validateInputStr();\n }\n return str;\n }", "public static char leerCaracter() { \n\t\tchar letra = sc.nextLine().charAt(0); // Lee una cadena y obtiene el primer caracter\n\t\treturn letra;\n\t}", "private static int getIntReply(String prompt) {\n System.out.print(prompt + \": \");\n String input = sc.nextLine();\n if (input.charAt(0) < 48 || input.charAt(0) > 57) {\n System.out.println(\"Invalid input\");\n return -1;\n } else return Integer.parseInt(input);\n }", "private String selectString(String prompt) {\n System.out.println(\"\\n\" + prompt);\n return input.next();\n }", "public Character getPromptSymbol();", "public static char readChar()\n \n {\n char c='0';\n String wort=\"xxxx\";\n try {\n wort=eingabe.readLine();\n c=wort.charAt(0);\n } catch(IOException e1) {\n System.out.println(\"Eingabefehler, bitte noch einmal!\");\n c=readChar();\n } catch(NumberFormatException e2) {\n if(wort.equals(\"\"))\n System.out.println(\"Bitte etwas eingeben, noch einmal:\");\n else {\n System.out.print(\"Fehler beim Format, \");\n System.out.println(\"bitte noch einmal!\");}\n c=readChar();\n }\n return c;\n }", "public String getUserInput(String prompt) {\n Scanner scanner = new Scanner(System.in);\n\n // prompt for the user's name\n System.out.print(prompt);\n\n // get their input as a String\n String userInput = scanner.next();\n\n return userInput;\n }", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\r\n char ch, answer = 'K';\r\n System.out.println(\"I'm thinking of a letter between A and Z\");\r\n System.out.println(\"Can you guess it?\");\r\n \r\n ch = scan.next().charAt(0); //read a char from the keyboard\r\n \r\n //determine if they typed the same letter\r\n if (ch == answer){\r\n System.out.println(\"**Right!**\"); \r\n } else { \r\n //else they get the wrong message\r\n //use this if to see if they guessed to high or else too low\r\n if (ch < answer){\r\n System.out.println(\"Sorry, you're too high!\");\r\n } else {\r\n System.out.println(\"Sorry, you're too low!\");\r\n } //end of if/else block\r\n }// end of if/else block\r\n \r\n }", "public char handleGuess(){\n\t\t\r\n\t\tSystem.out.print(\"Please enter a letter: \");\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString s = sc.next();\r\n\t\tchar letter = s.charAt(0);\r\n\r\n\t\taa:for(int i=0; i<gameLetter.length; i++){\r\n\t\t\tif(letter == gameLetter[i]){\r\n\t\t\t\tcorrectList.add(letter);\r\n\t\t\t\t\r\n\t\t\t\tif(ifWrongListContain(letter)==true){\r\n\t\t\t\t\tfor(int b=0, length=wrongList.size(); b<length; b++){\r\n\t\t\t\t\t\tif(wrongList.get(b)==letter)\r\n\t\t\t\t wrongList.remove(b);\r\n\t\t\t\t length--;\r\n\t\t\t\t b--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak aa;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(ifWrongListContain(letter)==true)\r\n\t\t\t\t\tcontinue aa;\r\n\t\t\t\telse\r\n\t\t\t\t wrongList.add(letter);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn letter;\t\t\r\n\t\t\t\t\r\n\t}", "public static int promptUserForInt(String prompt){\n Scanner scannerln = new Scanner(System.in);\n System.out.print(prompt);\n return scannerln.nextInt();\n }", "char startChar();", "public String identifyCharacter(char character){\n\t\n//\t\tCheck a character with ASCII value\n\t\tif(character>=97 && character <= 122){\n\t\t\treturn \"Small case letter\";\n\t\t} else if(character>=65 && character <= 90){\n\t\t\treturn \"Capital letter\";\n\t\t} else if(character>=48 && character <= 57){\n\t\t\treturn \"Digit\";\n\t\t} else{\n\t\t\treturn \"Symbol\";\n\t\t}\n\t\t\n\t}", "char getContactLetter();", "public char getUserGuess(){\n char letter = '\\u0000';\n if(mGuessEditText.getText().toString().toLowerCase().length() != 0)\n letter = mGuessEditText.getText().toString().toLowerCase().charAt(0);\n return letter;\n }", "public void userMessageInput() {\n //declaring and initializing new userScanner variable\n Scanner userScanner = new Scanner(System.in);\n //displayed message to the user with the updating replacedMovie variable\n System.out.println(\"You are guessing :\" + this.replacedMovie);\n //displaying message with total number of wrong trials (guessed letters) to the user ,\n // together with the wrong guessed letter/s.\n getAllWrongLetters(); // calls method to dispaly the whole list of wrong guessed letters.\n System.out.println(\"You have guessed \" + this.wrongLettersCount + \" wrong letter(s): \" + allWrongLetters);\n //displaying a message asking the user to enter a guessed letter\n System.out.println(\"Guess a Letter\");\n //storing the entered letter in userEnteredLetter variable\n this.setUserGuessedLetter(userScanner.next().charAt(0));\n\n //return userEnteredLetter; // returning userEnteredLetter variable\n\n }", "private int errorCheckingInt(String display) {\n\n\t\tint tempChoice;\n\t\tScanner input = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"\\n\" + display);\n\t\t\ttry {\n\t\t\t\ttempChoice = input.nextInt();\n\t\t\t\tif(display.equals(\"Enter number of kids: \")) { //only for kids\n\t\t\t\t\tif(tempChoice < 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Error input\\n\");\n\t\t\t\t}\n\t\t\t\telse if (tempChoice < 1)\n\t\t\t\t\tthrow new IllegalArgumentException(\"Error input\\n\");\n\t\t\t\tbreak;\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tSystem.out.println(\"Error input \\n\");\n\t\t\t\tinput.next();\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\n\t\tinput.nextLine();\n\n\t\treturn tempChoice;\n\t}", "String userInput(String question);", "public static char validateShipping(char deliveryType)\n {\n while (deliveryType != 'F' && deliveryType != 'U')\n {\n System.out.print\n (\"ERROR in your input. You must select either F for Fredcost or U for USPS (F/U): \");\n System.out.print(\"\\nPlease re-enter either F for Fredcost or U for USPS (F/U): \");\n deliveryType = GetInput.readLineNonwhiteChar();\n deliveryType = Character.toUpperCase(deliveryType);\n\n }//end of while loop\n return (deliveryType);\n }" ]
[ "0.7468625", "0.7348335", "0.68353057", "0.66941786", "0.6637825", "0.661969", "0.6576425", "0.6564529", "0.6530899", "0.6520359", "0.6517663", "0.6474168", "0.6447082", "0.6442002", "0.63624614", "0.63275295", "0.6314171", "0.6281238", "0.6176247", "0.61663795", "0.61467594", "0.6139138", "0.60203236", "0.6016562", "0.6010439", "0.5950356", "0.5944726", "0.5923025", "0.5911633", "0.58954453", "0.58798486", "0.5877143", "0.5868207", "0.5864986", "0.5856814", "0.58533186", "0.58320516", "0.5831644", "0.58256805", "0.5818937", "0.58165604", "0.5807477", "0.5784468", "0.5780398", "0.57674336", "0.5757394", "0.5751931", "0.57120836", "0.5711622", "0.5705966", "0.5696513", "0.5688451", "0.5683518", "0.5679059", "0.56784236", "0.56700516", "0.56668943", "0.5659454", "0.56264937", "0.5622583", "0.5603962", "0.5594552", "0.5574103", "0.5564286", "0.5560895", "0.55458415", "0.5545748", "0.55446297", "0.55371624", "0.55189556", "0.55173296", "0.55097526", "0.55065906", "0.5496662", "0.54872143", "0.54778236", "0.5472693", "0.5462653", "0.5460017", "0.5453306", "0.54495114", "0.54372865", "0.54216415", "0.5421497", "0.54124445", "0.5410626", "0.54029506", "0.5400155", "0.5400149", "0.54001", "0.5399683", "0.5389959", "0.53874534", "0.5385821", "0.53793", "0.53708243", "0.5364713", "0.53543526", "0.53520054", "0.535194" ]
0.63764554
14
Given a String, return a String that is the exact same length but consists of nothing but '' characters. For example, given the String DOG as input, return the string
public static String starWord(String inWord) { String word = ""; for(int i = 0; i < inWord.length(); i ++) { if(inWord.charAt(i) == ' ') { word += " "; }else { word += "*"; } } return word; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String super_reduced_string(String s) {\n if (s.equals(\"\")) return \"Empty String\";\n\n StringBuffer buffer = new StringBuffer(s);\n for (int i = 1; i < buffer.length(); i++) {\n if (buffer.charAt(i) == buffer.charAt(i - 1)) {\n // Delete both if they are the same\n buffer.delete(i - 1, i + 1);\n i = 0;\n }\n\n if (buffer.length() == 0) {\n return \"Empty String\";\n }\n }\n\n return buffer.toString();\n }", "public static String requireNonEmpty(String str) {\n if (str.isEmpty()) {\n throw new IllegalArgumentException();\n }\n return str;\n }", "public static String getNonEmptyString() {\n String result;\n\n do {\n result = getString();\n } while (result.isEmpty());\n return result;\n }", "public static String noSpaces(String strIn){\n String result = \"\";\n\n if (strIn.length() != 0){\n\n String[] segs = strIn.split(\" \");\n\n for (String s: segs){\n result += s;\n }\n }\n\n return result;\n }", "static String superReducedString(String s) {\n StringBuffer buff = new StringBuffer(s);\n for(int i = buff.length() - 1; i >= 0; i--){\n int j = i + 1;\n if(j >= buff.length()) continue;\n\n if(buff.charAt(i) == buff.charAt(j)) {\n buff.delete(i, j + 1);\n }\n }\n\n if(buff.length() == 0) return \"Empty String\";\n return String.valueOf(buff);\n }", "static String replaceBlankInString(char[] s) {\n if (s == null || s.length <=0) return null;\n int originStrLen = s.length;\n int numOfBlanks = 0,destStrLen = 0;\n int p1 = originStrLen-1,p2;\n for (int i=0;i<originStrLen;i++) {\n if (s[i] == ' ') {\n numOfBlanks++;\n }\n }\n destStrLen = originStrLen + 2 * numOfBlanks;\n p2 = destStrLen-1;\n\n char descArr[] = new char[destStrLen];\n\n System.arraycopy(s,0,descArr,0,originStrLen);\n while (p1 != p2 && p1 >=0) {\n if (s[p1] == ' ') {\n descArr[p2--] = '0';\n descArr[p2--] = '2';\n descArr[p2--] = '%';\n } else {\n descArr[p2--] = s[p1];\n }\n p1--;\n }\n return new String(descArr);\n }", "private String randomNonEmptyString() {\n while (true) {\n final String s = TestUtil.randomUnicodeString(random()).trim();\n if (s.length() != 0 && s.indexOf('\\u0000') == -1) {\n return s;\n }\n }\n }", "public static String nullToEmpty ( final String n )\n {\n return null == n ? \"\" : n;\n }", "public static String dispNull (String input) {\n //because of short circuiting, if it's null, it never checks the length.\n if (input == null || input.length() == 0)\n return \"N/A\";\n else\n return input;\n }", "public static String requireNullOrNonEmpty(String str) {\n if (str != null && str.isEmpty()) {\n throw new IllegalArgumentException();\n }\n return str;\n }", "public java.lang.CharSequence getDefaultStringEmpty() {\n return defaultStringEmpty;\n }", "public static String requireNonEmpty(String str, String message) {\n if (str.isEmpty()) {\n throw new IllegalArgumentException(message);\n }\n return str;\n }", "public java.lang.CharSequence getDefaultStringEmpty() {\n return defaultStringEmpty;\n }", "public static String dispNull (String input) {\n //because of short circuiting, if it's null, it never checks the length.\n if (input == null || input.length() == 0)\n return \"N/A\";\n else\n return input;\n }", "public static String dispNull (String input) {\n //because of short circuiting, if it's null, it never checks the length.\n if (input == null || input.length() == 0)\n return \"N/A\";\n else\n return input;\n }", "public static String displayNull (String input)\r\n {\r\n //because of short circuiting, if it's null, it never checks the length.\r\n if (input == null || input.length() == 0)\r\n return \"N/A\";\r\n else\r\n return input;\r\n }", "public static String MissingChar(String str, int n) {\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.deleteCharAt(n);\n return sb.toString();\n}", "public static String checkEmpty(String string1, String string2) {\n if (string1 != null && string1.length() > 0)\n return string1;\n else if (string2 != null && string2.length() > 0)\n return string2;\n else\n return \"\";\n }", "public static String anyLenString() {\n\t\treturn RString.ANY_LEN_STRING;\n\t}", "public static CharSequence emptyCharSequence() {\n return EMPTY;\n }", "@Override\n public String longestWord() {\n return \"\";\n }", "private static String makeCorrectSize(String s, int length){\n\t\tStringBuilder sb = new StringBuilder(s); \n\t\tfor(int i = sb.length(); i<length; i++){\n sb.append(\" \");\n }\n\t\treturn sb.toString(); \n\n\t}", "public static String nullToEmpty(String string)\r\n {\r\n return (string == null)?\"\":string;\r\n }", "@Test\n\tpublic void nonEmptyString() {\n\t\tString s = \" H \";\n\t\tassertFalse(\"Non empty string\", StringUtil.isEmpty(s));\n\t}", "public static String anyLenABC() {\n\t\treturn RString.ANY_LEN_ABC;\n\t}", "public static String omitString(String oriStr, int length)\r\n {\r\n if (oriStr == null || oriStr.length() <= length)\r\n return oriStr;\r\n String rtn = oriStr.substring(0,length - 3);\r\n return rtn + \"...\";\r\n }", "public String quitaespacios (String str) {\n\n str = repNull(str);\n str = str.trim();\n str = rep(str, \"[ ]{2,}\", \" \");\n\n return str;\n }", "public String cleanTheString(String input) {\n String result = \"\";\n if (input != null && !input.isEmpty()) {\n\n for (int k = 0; k < input.length(); k++) {\n if (!(input.charAt(k) == '0'\n || // unallowed characters\n input.charAt(k) == '1' || input.charAt(k) == '2' || input.charAt(k) == '3'\n || input.charAt(k) == '4' || input.charAt(k) == '5' || input.charAt(k) == '6'\n || input.charAt(k) == '7' || input.charAt(k) == '8' || input.charAt(k) == '9'\n || input.charAt(k) == 'A' || input.charAt(k) == 'B' || input.charAt(k) == 'C'\n || input.charAt(k) == 'D' || input.charAt(k) == 'E' || input.charAt(k) == 'F')) {\n } else\n result = result + Character.toString(input.charAt(k));\n\n }\n\n }\n\n return result;\n }", "public static String getNoApostropheString(String s) {\r\n\t\tif (s == null) {\r\n\t\t\ts = \"\";\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif ((i == 0) && (s.toCharArray()[i] == '\\'')) {\r\n\t\t\t\ts = '\\'' + s;\r\n\t\t\t\ti++;\r\n\t\t\t} else {\r\n\r\n\t\t\t\tif (s.toCharArray()[i] == '\\'') {\r\n\t\t\t\t\ts = s.substring(0, i) + '\\'' + s.substring(i);\r\n\t\t\t\t\ti++;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn s;\r\n\r\n\t}", "@Test\n\tpublic void zeroLength() {\n\t\tString s = \"\";\n\t\tassertTrue(\"Zero length string\", StringUtil.isEmpty(s));\n\t}", "private String trimString(String input) {\n final int maxWidth = 16; // Scoreboard string length is 16.\n\n // Check to see if the input length is greater than the maxWidth of characters.\n if (input.length() > maxWidth) {\n int amountOver = input.length() - maxWidth;\n return input.substring(0, input.length() - amountOver);\n } else {\n // The input is less than 15 characters so it does not need to be trimmed.\n return input;\n }\n }", "private static String getUniqueString() {\n char[] buf = new char[NUM_CHARS];\n\n carry(lastString, buf.length - 1);\n for (int i = 0; i < buf.length; i++) {\n buf[i] = CHARS.charAt(lastString[i]);\n }\n return new String(buf);\n }", "public String notString(String str) {\n if (str.length() >= 3 && str.substring(0,3).equals(\"not\")){\n return str;\n }\n \n return (\"not \" + str);\n}", "public String getSpaceFreeString(String sInputString) {\n String sOutputString = \"\";\n try {\n\n //loop to remove all 'tab's\n while (sInputString.contains(\"\t\")) {\n sInputString = sInputString.replaceAll(\"\t\", \"\").trim();\n }\n\n //loop to remove all space space\n while (sInputString.contains(\" \")) {\n sInputString = sInputString.replaceAll(\" \", \"\").trim();\n }\n\n } catch (Exception e) {\n\n } finally {\n sOutputString = sInputString;\n sInputString = null;\n return sOutputString;\n }\n }", "public static String fromNullToEmtpyString(String a) {\r\n\t\tif (a == null) {\r\n\t\t\treturn \"\";\r\n\t\t} else {\r\n\t\t\treturn a;\r\n\t\t}\r\n\t}", "public static String anyLenabc() {\n\t\treturn RString.ANY_LEN_abc;\n\t}", "public static String trimToEmpty(String str) {\n\t\treturn str == null ? EMPTY : str.trim();\n\t}", "public String fullString();", "public static String findPalliondrom(String str){\n if(str==null || \"\".equals(str)){\n return \"\";\n }\n String longestP = str.substring(0);\n\n\n\n return longestP;\n }", "@Test\n\tpublic void caseNameWithEmpty() {\n\t\tString caseName = \" \";\n\t\ttry {\n\t\t\tStringNumberUtil.stringUtil(caseName);\n\t\t} catch (StringException e) {\n\t\t}\n\t}", "public static String removeAdjacentDuplicateChars(String s) {\r\n \tif (s.length() == 0) {\r\n \t\treturn \"\";\r\n \t}\r\n \telse {\r\n \t\tint len = s.length();\r\n \t\tString result = removeHelper(s, len - 1);\r\n \t\treturn result;\r\n \t}\r\n }", "public static String makeSafe(String s) {\n return (s == null) ? \"\" : s;\n }", "private String makeStringThisLong(String oldString, int length, Character padding) {\n \tString newString = \"\";\n \t\n \tif(oldString.length()>length) {\n \t\tnewString = oldString.substring(0, length);\n \t\n \t}else {\n \t\tnewString = new String(oldString);\n \t\tfor( int i=newString.length(); i<=length; i++ )\n \t\t\tnewString += padding;\n \t}\n \t\n \t\n \treturn newString;\n \t\n }", "public static String defaultString(String val) {\n\t\tif (val == null || val.isBlank()) return \"\";\n\t\telse return val.trim();\n\t}", "public static String checkEmpty(String string1, String string2, String string3) {\n if (string1 != null && string1.length() > 0)\n return string1;\n else if (string2 != null && string2.length() > 0)\n return string2;\n else if (string3 != null && string3.length() > 0)\n return string3;\n else\n return \"\";\n }", "private static String fillStr(String str, int len) throws IllegalArgumentException\n {\n // String buffer containing the leading zeros.\n StringBuffer leaders;\n\n // The requested length must be greater or equal to the\n // string length.\n if (len <= str.length()) {\n throw new IllegalArgumentException(\"len less than length of string\");\n }\n\n // Make the string buffer with leading zeros and fill it.\n leaders = new StringBuffer(len - str.length());\n for (int iChar = 0; iChar < (len - str.length()); iChar++) {\n leaders.append('0');\n }\n\n // Construct and return the resulting string.\n return (leaders.toString() + str);\n }", "public static String trim(String s)\r\n\t{\r\n\t\tif((s.length()<3)||(s.charAt(s.length()-3)!='*'))\r\n\t\t\treturn s;\r\n\t\treturn s.substring(0,s.length()-3);\r\n\t}", "public static String mapEmptyToNull(String strIn)\r\n {\r\n if (strIn == null || strIn.trim().equals(\"\"))\r\n {\r\n return null;\r\n }\r\n return strIn;\r\n }", "static String trimStart(String s) {\n StringBuilder sb = new StringBuilder(s);\n while(sb.length() > 0 && (sb.charAt(0) == '\\u005cr'\n || sb.charAt(0) == '\\u005cn'\n || sb.charAt(0) == '\\u005ct'\n || sb.charAt(0) == ' ')) {\n sb.deleteCharAt(0);\n }\n return sb.toString();\n }", "private String LeftPad(String str, int length)\n {\n //pad and return String\n return String.format(\"%1$\" + length + \"s\", str);\n }", "private String setNullIfEmpty(String in) {\n if (in != null && in.trim().length() == 0) {\n return null;\n }\n return in;\n }", "static String padToLength(String s, int len) {\n\t\tStringBuffer sb = new StringBuffer(len);\n\t\tsb.append(s);\n\t\tfor (int i = s.length(); i < len; i++) sb.append(' ');\n\t\treturn sb.toString();\n\t}", "public static String nullifyNullOrEmptyString(final String targetString) {\n\t\tString outputString = null;\n\n\t\tif (targetString != null) {\n\t\t\tString targetStringTrim = targetString.trim();\n\t\t\tif ((!\"null\".equalsIgnoreCase(targetStringTrim)) && (targetStringTrim.length() > 0)) {\n\t\t\t\toutputString = targetStringTrim;\n\t\t\t}\n\t\t}\n\n\t\treturn outputString;\n\t}", "public int getStringLength() {\r\n if (noSurrogates) {\r\n return value.length();\r\n } else {\r\n int len = getStringLength(value);\r\n if (len == value.length()) {\r\n noSurrogates = true;\r\n }\r\n return len;\r\n }\r\n }", "static public String pad(String str, int len)\n {\n int curlen = str.length();\n StringBuffer sb = new StringBuffer(len);\n \n for (int i=0; i<(len-curlen); i++)\n {\n sb.append(\" \");\n }\n sb.append(str);\n \n //System.out.println(\"Str len= \" + curlen + \" new len= \" + len);\n return sb.toString();\n }", "public static String clearLongWhitespaces(String str) {\r\n\r\n if (str == null) {\r\n str = \"\";\r\n }\r\n String result = \"\";\r\n StringTokenizer st = new StringTokenizer(str);\r\n while (st.hasMoreTokens()) {\r\n String s = st.nextToken();\r\n if (s != null) {\r\n result += s.trim();\r\n }\r\n }\r\n return result.trim();\r\n }", "static String hideString(String input) {\n if (input == null || input.isEmpty()) {\n return input;\n }\n if (input.length() <= 2) {\n return Strings.repeat(\"X\", input.length());\n }\n\n return new StringBuilder(input).replace(1, input.length() - 1,\n Strings.repeat(\"X\", input.length() - 2))\n .toString();\n }", "public static String convertNullToBlank(String s) {\n \tif(s==null) return \"\";\n \treturn s;\n }", "public static String RemoveDublicates(String str) {\n String result = \"\"; //storing result of the loop\n for (int i = 0; i < str.length(); i++) {\n char ch = str.charAt(i);\n if (!result.contains(\"\" + ch)) { // this is char so we need convert comcating to empty string\n result += ch;\n }\n\n }\n return result;\n }", "public static String cleanString(String s) {\n\t\ts = s.trim();\n\t\tString newStr = \"\";\n\t\tboolean lastWasSpace = false;\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\t\t\tif(c == ' ' && lastWasSpace) {\n\t\t\t\t//Ignore\n\t\t\t} else if (c == ' ' && !lastWasSpace) {\n\t\t\t\tnewStr+=c;\n\t\t\t\tlastWasSpace = true;\n\t\t\t} else {\n\t\t\t\tnewStr+=c;\n\t\t\t\tlastWasSpace = false;\n\t\t\t}\n\t\t}\n\t\ts = newStr;\n\t\treturn s;\n\t}", "public static String truncateString( String input, int len ) {\n\t\tint spaceAt = 0;\n\t\tif ( input.length() <= len ) {\n\t\t\treturn input;\n\t\t} else {\n\t\t\tspaceAt = input.lastIndexOf( \" \", len+1 );\n\t\t\tif ( spaceAt > 0 ) {\n\t\t\t\treturn input.substring( 0, spaceAt );\n\t\t\t} else {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t}\n\t}", "String checkString(String str) {\n\t\tString output = \"\";\n\t\tfor (int index = str.length() - 1; index >= 0; index--) {\n\t\t\toutput = output + str.charAt(index);\n\t\t}\n\t\treturn output;\n\t}", "public String getTrimmedText(String stringToTrim, int lengthOfTrimmedString)\n/* */ {\n/* 634 */ return FormatUtil.getTrimmedText(stringToTrim, lengthOfTrimmedString);\n/* */ }", "public static String checkString(String s) {\n if(s==null || s.length()==0) return null;\n return s;\n }", "protected static String padString(String string, UIFont font, double width) {\n StringBuilder sb = new StringBuilder();\n CGSize size = new CGSize(Float.MAX_VALUE, Float.MAX_VALUE);\n NSStringDrawingOptions options = NSStringDrawingOptions.with(NSStringDrawingOptions.TruncatesLastVisibleLine,\n NSStringDrawingOptions.UsesLineFragmentOrigin);\n NSAttributedStringAttributes attr = new NSAttributedStringAttributes().setFont(font);\n while (true) {\n sb.append(\" \");\n CGSize resultSize = NSString.getBoundingRect(sb.toString(), size, options, attr, null).getSize();\n if (resultSize.getWidth() >= width) {\n break;\n }\n }\n\n // Add final spaces to be ready for first word\n sb.append(String.format(\" %s\", string));\n return sb.toString();\n }", "public static void main(String[] args) {\n String s = \"hello boy\";\n String result = replaceBlankToOther(s);\n System.out.println(result);\n }", "public String withoutEnd(String str) {\r\n return str.length() > 1 ? str.substring(1, str.length() - 1) : \"\";\r\n }", "public java.lang.CharSequence getDefaultStringEmpty() {\n\t throw new java.lang.UnsupportedOperationException(\"Get is not supported on tombstones\");\n\t }", "public static String requireNullOrNonEmpty(String str, String message) {\n if (str != null && str.isEmpty()) {\n throw new IllegalArgumentException(message);\n }\n return str;\n }", "public static String createValidString(final String string) {\n\t\tStringBuilder stringBuilder = null; //we'll only create a string buffer if there are invalid characters\n\t\tfor(int i = string.length() - 1; i >= 0; --i) { //look at all the characters in the string\n\t\t\tif(!isChar(string.charAt(i))) { //if this is not a valid character\n\t\t\t\tif(stringBuilder == null) //if we haven't create a string buffer, yet\n\t\t\t\t\tstringBuilder = new StringBuilder(string); //create a string buffer to hold our replacements\n\t\t\t\tstringBuilder.setCharAt(i, SPACE_CHAR); //replace this character with a space\n\t\t\t}\n\t\t}\n\t\treturn stringBuilder != null ? stringBuilder.toString() : string; //return the original string unless we've actually modified something\n\t}", "public static String clean(String string) {\n\t\tif(!Character.isLetter(string.charAt(string.length() - 1))){\n\t\t\tString str = \"\";\n\t\t\tfor(int i = 0; i < string.length() - 1; i++){\n\t\t\t\tstr += string.charAt(i);\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t\treturn string;\n\t}", "public static String rtrim(String s)\r\n {\r\n if (s == null)\r\n return null;\r\n \r\n for (int k = s.length()-1; k >= 0; k--)\r\n {\r\n if (!Character.isWhitespace(s.charAt(k)))\r\n return (k == s.length() - 1 ? s : s.substring(0, k + 1));\r\n }\r\n return \"\";\r\n }", "boolean canMatchEmptyString() {\n return false;\n }", "public static String guessString(int length) { // takes the integer output of makeGuess and returns the string it guessed\r\n\t\tchar[] characterSet = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\r\n\t if(length<0)\r\n\t\t length=0;\r\n\t return new String(\"\"+characterSet[length]);\r\n\t}", "public String getTrimmedText(String stringToTrim, int lengthOfTrimmedString)\n/* */ {\n/* 640 */ return FormatUtil.getTrimmedText(stringToTrim, lengthOfTrimmedString);\n/* */ }", "public String getTrimmedText(String stringToTrim, int lengthOfTrimmedString)\n/* */ {\n/* 631 */ return FormatUtil.getTrimmedText(stringToTrim, lengthOfTrimmedString);\n/* */ }", "public static String trimSpace(String oldString)\r\n\t{\r\n\t\tif (null == oldString)\r\n\t\t\treturn null;\r\n\t\tif (0 == oldString.length())\r\n\t\t\treturn \"\";\r\n\t\tStringBuffer sbuf = new StringBuffer();\r\n\t\tint oldLen = oldString.length();\r\n\t\tfor (int i = 0; i < oldLen; i++)\r\n\t\t{\r\n\t\t\tif (' ' != oldString.charAt(i))\r\n\t\t\t\tsbuf.append(oldString.charAt(i));\r\n\t\t}\r\n\t\tString returnString = sbuf.toString();\r\n\t\tsbuf = null;\r\n\t\treturn returnString;\r\n\t}", "public String cleanTheBinString(String input) {\n String result = \"\";\n if (input != null && !input.isEmpty()) {\n\n for (int k = 0; k < input.length(); k++) {\n if (!(input.charAt(k) == '0' || input.charAt(k) == '1') || input.charAt(k) == ' ') {\n } else\n result = result + Character.toString(input.charAt(k));\n }\n\n }\n\n return result;\n }", "public static int replaceBlank(char[] string, int length) {\n int count = 0;\n for(int i=0;i<length;i++){\n if(string[i]==' '){\n count++;\n }\n }\n int ans = length+count*2;\n int j=ans-1;\n for(int i=length-1;i>-1;i--){\n if(string[i]==' '){\n string[j--]='0';\n string[j--]='2';\n string[j--]='%';\n }else{\n string[j--]=string[i];\n }\n }\n return ans;\n }", "static String checkEmptyString(String str, String strName) {\n String errorMsg = \"empty \" + strName;\n str = Optional.ofNullable(str).map(s -> {\n if(s.isEmpty()) {\n throw new NullPointerException(errorMsg);\n }\n return s;\n }).orElseThrow(() -> new NullPointerException(errorMsg));\n return str;\n }", "public PyShadowString() {\n\t\tthis(Py.EmptyString, Py.EmptyString);\n\t}", "public static void main(String[] args) {\n\t\tString str=\" 45wraf54 \";\n\t\tSystem.out.println(\"字符串str的长度是:\"+str.length());\n\t\tSystem.out.println(\"去掉首位空格后字符串str:\"+str.trim());\n\t\tSystem.out.println(\"字符串str的长度是:\"+str.trim().length());\n\t}", "public String notNull(String text)\n {\n return text == null ? \"\" : text;\n }", "private String formatString(String s, int len){\n if(len<=s.length()){\n return s.substring(0,len);\n }\n StringBuilder sb = new StringBuilder(s);\n for(int i=s.length(); i<len; ++i){\n sb.append(\" \");\n }\n return sb.toString();\n }", "public String getSingleSpaceString(String sInputString) {\n String sOutputString = \"\";\n try {\n\n //loop replace all TAB by single space\n while (sInputString.contains(\"\t\")) {\n sInputString = sInputString.replaceAll(\"\t\", \" \").trim();\n }\n\n //loop to replace all double space by single space\n while (sInputString.contains(\" \")) {\n sInputString = sInputString.replaceAll(\" \", \" \").trim();\n }\n\n } catch (Exception e) {\n\n } finally {\n sOutputString = sInputString;\n sInputString = null;\n return sOutputString;\n }\n }", "public static String delFirstChar(String word){\n\t\tif(word.length() <= 1){\n\t\t\treturn word;\n\t\t}\n\t\tword = word.substring(1, word.length());\n\t\tguessPW(word);\n\t\treturn word;\n\n\t}", "static String trim(String s) {\n return s.substring(0, s.length() - 1);\n }", "private String stripNoneWordChars(String uncleanString) {\n return uncleanString.replace(\".\", \" \").replace(\":\", \" \").replace(\"@\", \" \").replace(\"-\", \" \").replace(\"_\", \" \").replace(\"<\", \" \").replace(\">\", \" \");\n\n }", "private static String padString(String source) {\r\n\r\n String paddedString = source;\r\n char paddingChar = ' ';\r\n int size = 16;\r\n int x = paddedString.length() % size;\r\n int padLength = size - x;\r\n for (int i = 0; i < padLength; i++) {\r\n paddedString += paddingChar;\r\n }\r\n\r\n return paddedString;\r\n }", "public static String chop( String input )\r\n {\r\n \tif ( isEmpty( input ) )\r\n \t\treturn input;\r\n \t\r\n \tString result = input.substring( 0, input.length() - 1 );\r\n \t\r\n \treturn result;\r\n }", "public static String replaceAllWhiteWithOne(String sInput) {\n\t\tString strTmp = sInput.trim();\n\t\tString strResult = \"\";\n\t\tfor (int i = 0; i < strTmp.length(); i++) {\n\t\t\tchar ch = strTmp.charAt(i);\n\t\t\tif (ch == ' ') {\n\t\t\t\tfor (int j = i; j < strTmp.length(); j++) {\n\t\t\t\t\tchar ch2 = strTmp.charAt(j);\n\t\t\t\t\tif (ch2 != ' ') {\n\t\t\t\t\t\ti = j;\n\t\t\t\t\t\tstrResult = strResult + ' ' + ch2;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tstrResult = strResult + ch;\n\t\t\t}\n\t\t}\n\t\treturn strResult;\n\t}", "public static String replaceAllWhiteWithOne(String sInput) {\n\t\tString strTmp = sInput.trim();\n\t\tString strResult = \"\";\n\t\tfor (int i = 0; i < strTmp.length(); i++) {\n\t\t\tchar ch = strTmp.charAt(i);\n\t\t\tif (ch == ' ') {\n\t\t\t\tfor (int j = i; j < strTmp.length(); j++) {\n\t\t\t\t\tchar ch2 = strTmp.charAt(j);\n\t\t\t\t\tif (ch2 != ' ') {\n\t\t\t\t\t\ti = j;\n\t\t\t\t\t\tstrResult = strResult + ' ' + ch2;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tstrResult = strResult + ch;\n\t\t\t}\n\t\t}\n\t\treturn strResult;\n\t}", "public String notString(String str) {\n // if (str.startsWith(\"not\")) {\n // return str;\n // }\n\n // Note that end in substring(start, end) is index of one char after \n // something you want. Not length! \n if (str.length() >= 3 && str.substring(0, 3).equals(\"not\")) {\n return str;\n } else {\n return \"not \" + str;\n }\n \n}", "public static String padLeft(String src, char fill, int length) {\n\t\treturn pad(src, fill, length, false);\n\t}", "public static String fillZero(String string) {\n\t\tif(string.length() == 2) {\n\t\t\treturn string;\n\t\t}else {\n\t\t\treturn \"0\" + string;\n\t\t}\n\t}", "public String missingChar(String str, int n) {\n String front = str.substring(0, n);\n String back = str.substring(n+1, str.length());\n \n return front + back;\n}", "public static String compress(String str){\n\n if(str==null){\n return null;\n }\n\n int currCount = 1;\n char curr = str.charAt(0);\n\n StringBuilder res = new StringBuilder();\n\n for(int i = 1 ; i < str.length(); i ++){\n\n if(str.charAt(i)==curr){\n currCount++;\n }\n else {\n res.append(curr);\n res.append(currCount);\n currCount = 1;\n curr = str.charAt(i);\n }\n }\n\n res.append(curr);\n res.append(currCount);\n\n int smallest = Math.min(str.length(), res.toString().length());\n\n return (str.length()==smallest) ? str : res.toString();\n }", "protected static String trimWhitespace(String s) {\n int len = s.length();\n StringBuffer buf = new StringBuffer(len);\n for (int ii = 0; ii < len; ii++) {\n char c = s.charAt(ii);\n if (!Character.isWhitespace(c)) {\n buf.append(c);\n }\n }\n return buf.toString();\n }", "public static String generateRandomStrWithWhiteSpace(int length) {\r\n\t\tString str = KaneUtil.generateRamdomString(length);\r\n\t\tStringBuilder strBuilder = new StringBuilder(str);\r\n\r\n\t\tfor (int i = 0; i < random.nextInt(length - 1) + 1; i++) {\r\n\t\t\tint index = random.nextInt(length);\r\n\t\t\tstrBuilder.replace(index, index, \" \");\r\n\t\t}\r\n\r\n\t\treturn strBuilder.toString();\r\n\t}", "private static String trim(String s) {\n return s.replace(\" \", \"\");\n }", "static String emptyToNull(String value) {\n if (value == null || value.trim().isEmpty())\n return null;\n return value.trim();\n }" ]
[ "0.635506", "0.62476546", "0.60653037", "0.5866953", "0.5823442", "0.5698993", "0.5671638", "0.56244284", "0.5621971", "0.5605769", "0.5574738", "0.5556192", "0.5554768", "0.55517113", "0.55517113", "0.55241793", "0.54594547", "0.5454116", "0.54360276", "0.5428105", "0.54261893", "0.5403023", "0.5395015", "0.5385586", "0.5343645", "0.5322525", "0.5306917", "0.5288079", "0.5279529", "0.52712756", "0.5262577", "0.52576977", "0.5257325", "0.52551246", "0.5251461", "0.52503294", "0.52443796", "0.524123", "0.5235666", "0.51887405", "0.5183601", "0.5156828", "0.515543", "0.5149914", "0.5148797", "0.51335037", "0.51315886", "0.5127126", "0.51225346", "0.512238", "0.51111686", "0.5106814", "0.5099168", "0.5093571", "0.5086782", "0.50864303", "0.50828624", "0.50797576", "0.5073482", "0.507233", "0.5069838", "0.5066639", "0.50555074", "0.50523454", "0.5048802", "0.50319546", "0.5026327", "0.50256383", "0.50238967", "0.50209117", "0.50176686", "0.5015631", "0.50150627", "0.5014146", "0.50134146", "0.5011006", "0.50061643", "0.5005824", "0.49996415", "0.4997149", "0.49774742", "0.49740577", "0.49732608", "0.49720258", "0.49585032", "0.49576828", "0.495763", "0.49537185", "0.49468786", "0.4946205", "0.49446988", "0.49446988", "0.49432334", "0.49376974", "0.49369094", "0.4936317", "0.4935001", "0.49349973", "0.49274585", "0.49205178", "0.49167347" ]
0.0
-1
Given a character and a String, return the count of the number of times the character occurs in that String.
public static int checkChar(char guessChar, String guessWord) { int sum = 0; for(int i = 0; i < guessWord.length(); i++) { if(guessWord.charAt(i) == guessChar) { sum++; } } return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int char_count(String y, char c){\r\n\tint count = 0;\r\n\tfor(int i = 0; i < y.length(); i++){\r\n\t\tif(y.charAt(i) == c){\r\n\t\t\tcount++;\r\n\t\t}\r\n\t}\r\n\treturn count;\r\n}", "private static int countOccurrences(String input, char c) {\n int count = 0;\n for (int i = 0; i < input.length(); i++) {\n if (input.charAt(i) == c) {\n count++;\n }\n }\n return count;\n }", "public static int numOccurrences(String testString, char ch) {\n \tif(testString==null) return 0;\n\t\tint numOccurrences = 0;\n\t\tchar [] chars = testString.toCharArray();\n\t\tint len = chars.length;\n\t\tfor(int i = 0; i < len; ++i) {\n\t\t\tif(chars[i] == ch) {\n\t\t\t\t++numOccurrences;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn numOccurrences; \t\n }", "public int doCount(String s){\r\n\t\tint count = 0;\r\n\t\tint i;\r\n\t\tfor(i = 0; i < s.length(); i++){\r\n\t\t\tif ( s.charAt(i) == Letter )\r\n\t\t\t\tcount++;\r\n\t\t}\r\n\t\t\r\n\t\treturn count;\r\n\t\t\r\n\t}", "public int charCount(final String str, final char c) {\n return (int) str.toLowerCase().chars()\n .filter(chr -> chr == Character.toLowerCase(c))\n .count();\n }", "public static int countChar(String s){\n return s.length();\n }", "public static int count(String s, char c) {\n // regex with negated char = removal of all but the char\n return s.replaceAll(\"[^\\\\Q\" + c + \"\\\\E]\", \"\").length();\n }", "static int charOccurrenceCount(String s, char c, int startIndex) {\n\t\tif(startIndex == s.length()) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\tif(s.charAt(startIndex) == c) {\n\t\t\t\treturn 1 + charOccurrenceCount(s, c, startIndex + 1);\n\t\t\t} else {\n\t\t\t\treturn charOccurrenceCount(s, c, startIndex + 1);\n\t\t\t}\n\t\t}\n\t}", "public static int frequency(String str, char ch){\n//will return frequency of char from the string\n int count = 0; //to save the frequency of char\n/*each character is a char : and need to compare it with str.\nevery time it matches we add frequency to count*/\n\n for(char each : str.toCharArray() ){\n if(each == ch){//every time this is true, count will increase to 1\n count++;\n }\n }\n //return the frequency of one character from the string\n return count;\n }", "public static int numOfChars(String str, char ch) {\n\t\tint count = 0; \n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\tif(str.charAt(i) == ch)\n\t\t\t\tcount += 1;\n\t\t\t\t\n\t\t}\n\t\treturn count;\n\t}", "public static int countSearchedChar(String text, char searchedChar) {\n char[] chars = text.toCharArray();\n int counter = 0;\n for (char currentChar : chars) {\n if (currentChar == searchedChar) {\n counter++;\n }\n }\n return counter;\n }", "public static void getOccuringChar(String inPutString) {\n HashMap<Character, Integer> charCountMap = new HashMap<Character, Integer>();\n /* converting given string to char Array*/\n char[] strArray = inPutString.toCharArray();\n /*Checking each char in strArray*/\n for (char c : strArray) {\n if (charCountMap.containsKey(c)) {\n //If char 'c' is present in charCountMap, incrementing it's count by 1\n charCountMap.put(c, charCountMap.get(c) + 1);\n } else {\n /*If char 'c' is not present in charCountMap,putting 'c' into charCountMap with 1 as it's value\n */\n charCountMap.put(c, 1);\n }\n }\n /*Printing input String*/\n System.out.println(\"The frequency of Character is \" + charCountMap);\n }", "public static int count(String str, char a) {\r\n\t\tint counter = 0;\r\n\t\tchar b = ' ';\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tb = str.toLowerCase().charAt(i);\t// string prebaciti u mala slova\r\n\t\t\tif (b == a) {\r\n\t\t\t\tcounter++;\t\t\t// brojac ponavljanja karaktera\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn counter;\r\n\t}", "private static int countOccurrences(String amount, char c) {\n int cnt = 0;\n for(int i = 0; i < amount.length(); i++){\n if(amount.charAt(i) == c){\n cnt++;\n }\n }\n return cnt;\n }", "public static int foo ( String s, char c )\r\n\t{\r\n\t\tif ( s.length() == 0 )\r\n\t\t\treturn 0;\r\n\t\telse\r\n\t\t{\r\n\t\t\tint count = 0;\r\n\t\t\t\r\n\t\t\tif ( s.charAt(0) == c )\r\n\t\t\t\tcount++;\r\n\t\t\t\r\n\t\t\treturn count + foo( ( s.substring( 1, s.length() ) ), c );\r\n\t\t\t\r\n\t\t}// end else\r\n\t\t\r\n\t}", "private static int characterCount(String expr, Character c) {\n\t\tint count = 0;\n\t\tfor(Character ch : expr.toCharArray()) if(ch == c) count ++;\n\t\treturn count;\n\t}", "public void getOccuringChar() \n\t\t {\n\t\t \tint count[] = new int[MAX_CHAR]; \n\t\t \t \n\t\t int len = str.length(); \n\t\t \n\t\t // Initialize count array index \n\t\t for (int i = 0; i < len; i++) \n\t\t count[str.charAt(i)]++; \n\t\t \n\t\t // Create an array of given String size \n\t\t char ch[] = new char[str.length()]; \n\t\t for (int i = 0; i < len; i++) { \n\t\t ch[i] = str.charAt(i); \n\t\t int find = 0; \n\t\t for (int j = 0; j <= i; j++) { \n\t\t \n\t\t // If any matches found \n\t\t if (str.charAt(i) == ch[j]) \n\t\t find++; \n\t\t } \n\t\t \n\t\t if (find == 1) \n\t\t System.out.println(\"Number of Occurrence of \" + \n\t\t str.charAt(i) + \" is:\" + count[str.charAt(i)]); \n\t\t } \n\t\t }", "public int strCount(String str, String sub) {\n//Solution to problem coming soon\n}", "public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter a word:\");\n String word = scan.next();\n System.out.println(\"Enter character:\");\n char character = scan.next().charAt(0);\n\n int count=0; //count frequency of character\n for (int i =0; i<word.length(); i++) {\n char each = word.charAt(i); //each character by given string word\n\n if (each == character) { //if each character in str is matching with ch\n count++; //count increase the frequency of ch by 1\n\n }\n }\n System.out.println(count);\n\n System.out.println(\"===========================\");\n\n\n\n }", "public static int countABC(String str) {\n int x = 0;\n char[] chars = str.toCharArray();\n for (char c : chars) {\n if (c == 'a' || c == 'b' || c == 'c') {\n x += 1;\n }\n }\n return x;\n }", "public int charNumber(String string, char ch){\n\t\tint num=0;\n\t\tint length=string.length();\n\n\t\tfor(int i=0; i<length; i++){\n\t\t\tif(string.charAt(i)==ch) num++;\n\t\t}\n\t\t\n\t\treturn num;\n\t}", "@Override //old methd for letter count\n public Integer letterCount(String inputString) {\n char[] characterArray = inputString.toCharArray();\n Map<Character, Integer> wordFrequencyMap = new HashMap<Character, Integer>();\n\n for (char character : characterArray) {\n if (wordFrequencyMap.containsKey(character)) {\n\n Integer wordCount = (Integer) wordFrequencyMap.get(character);\n wordFrequencyMap.put(character, wordCount + 1);\n\n } else {\n wordFrequencyMap.put(character, 1);\n\n }\n }\n return null; //iterateWordCount(wordFrequencyMap);\n }", "@Test\n public void charCount() {\n final int expectedEight = 8;\n final int expectedFour = 4;\n\n CharCount charCounter = new CharCount();\n assertEquals(expectedEight, charCounter.characterCounter(\"fizzbuzz FIZZBUZZ\", 'z'));\n assertEquals(expectedEight, charCounter.characterCounter(\"fizzbuzz FIZZBUZZ\", 'Z'));\n assertEquals(expectedFour, charCounter.characterCounter(\"FIZZBUZZ\", 'z'));\n assertEquals(0, charCounter.characterCounter(\"TEdff fdjfj 223\", '1'));\n assertEquals(expectedFour, charCounter.characterCounter(\"TE00df0f f0djfj 223\", '0'));\n assertEquals(0, charCounter.characterCounter(\"RRuyt 111000AAdda\", (char) 0));\n }", "public static int count(String str, char a) {\r\n\t\t\r\n\t\tint brojac = 0;\r\n\t\t // petlja koja prolazi kroz uneseni string\r\n\t\tfor(int i=0; i<str.length(); i++) {\r\n\t\t\t// ako je bilo koji karakter u unesenom stringu jednak trazenom karakteru\r\n\t\t\tif(Character.toString(str.charAt(i)).contains(Character.toString(a))) {\r\n\t\t\t\tbrojac++; // onda brojac broji koliko se trazeni karakter puta nalazi u stringu\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn brojac; // vraca se ukupan broj ponavljanja trazenog karaktera u stringu\r\n\t}", "public static int countABC(String str) {\n int count = 0;\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == 'a'){\n count++;\n }\n else if(str.charAt(i) == 'b'){\n count++;\n }\n else if(str.charAt(i) == 'c'){\n count++;\n\n }\n }\n return count;\n }", "public static int count(String s, String token)\r\n {\r\n if (isEmpty(s) || isEmpty(token))\r\n return 0;\r\n \r\n int count = 0;\r\n int k = 0;\r\n while ((k = s.indexOf(token, k)) >= 0)\r\n {\r\n count ++;\r\n k += token.length();\r\n }\r\n return count;\r\n }", "public static void main(String[] args) \n{\nScanner scan=new Scanner(System.in);\n \nSystem.out.println(\"Please Enter the String here\");\n \n// It will accept String from user and will store in variable\nString str1=scan.next();\n \nSystem.out.println(\"enter the letter to count\");\n \n// It will accept char from user and will store in variable\nString str2=scan.next();\n \n// Now from Second String get the value using charAt method\nchar cha = str2.charAt(0);\n \n// take count variable\nint count=0;\n \n// Run a for loop that will run based on String length\nfor(int i=0;i<=str1.length()-1;i++)\n{\n \n// This will check if match found\nif(str1.charAt(i)==cha)\n \n{\n \n// It will increment the counter\ncount++;\n \n}\n \n}\n \n// Finally print the count\nSystem.out.println(count);\n \n}", "public static int approach2(String str) {\n\t\tMap<Character, Integer> charToCountMap = new HashMap<Character, Integer>();\n\t\tint strLength = str.length();\n\t\tfor(int i = 0; i < strLength; i++) {\n\t\t\tif(charToCountMap.containsKey(str.charAt(i))) {\n\t\t\t\tcharToCountMap.put(str.charAt(i), charToCountMap.get(str.charAt(i)) + 1);\n\t\t\t} else {\n\t\t\t\tcharToCountMap.put(str.charAt(i), 1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < strLength; i++) {\n\t\t\tif(charToCountMap.get(str.charAt(i)) > 1) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn -1;\n\t}", "public int count(char c){\n int counting = 0;\n \n if(isEmpty()){\n return counting; \n }else if(c == this.top){\n return counting += rest.count(c) + 1 ;\n }else{\n return counting = rest.count(c);\n }\n }", "public static Map<Character, Integer> findDuplicateCharactersInAString(final String input){\n\n Map<Character, Integer> charCountMap= null;\n if(input !=null && input.length() > 0)\n {\n if(input.length() ==1){\n return charCountMap;\n }\n charCountMap = new LinkedHashMap<Character, Integer>();\n String inputString = input;\n // In case if the program need not consider capital and small letters,\n // if want to consider comment out below line\n inputString = inputString.toLowerCase();\n char [] inputChars = inputString.toCharArray();\n\n for(Character c : inputChars) {\n\n if (charCountMap.containsKey(c)) {\n charCountMap.put(c, charCountMap.get(c) + 1);\n } else {\n charCountMap.put(c, 1);\n }\n }\n }\n else{\n throw new IllegalArgumentException(\"Invalid input\");\n }\n return charCountMap;\n }", "private static void charCount(String str) {\n\t\t\n\t\tHashMap<Character, Integer> mp = new HashMap<Character, Integer>();\n\t\t\n\t\tchar[] cr=str.toCharArray();\n\t\t\n\t\tSystem.out.println(cr);\n\t\t\n\t\tfor(char c: cr) {\n\t\t\t\n\t\t\tif(mp.containsKey(c)) {\n\t\t\t\tmp.put(c, mp.get(c)+1);\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tmp.put(c, 1);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(Map.Entry<Character, Integer> ent: mp.entrySet()) {\n\t\t\tSystem.out.println(ent.getKey() + \" \" + ent.getValue());\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString str = \"Im a Java Developer\";\r\n\t\tSystem.out.println(str);\r\n\t\tScanner s = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the character for which you want to find occurrance\");\r\n\t\tchar c = s.next().charAt(0);\r\n\t\tint count = 0;\r\n\t\tfor(int i=0;i<str.length();i++){\r\n\t\t\tif (str.charAt(i) == c ){\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Number of occurrances are : \"+count);\r\n\t}", "public static int howManyLetters (String s)\n {\n if (s.length()==0) //stop condition - the end case, if the string is empty\n return 0;\n int isc=( s.charAt(s.length()-1)>='a'&&s.charAt(s.length()-1)<='z'||\n s.charAt(s.length()-1)>='A'&& s.charAt(s.length()-1)<='Z')? 1: 0; //checks whether the current character is a letter\n return isc+howManyLetters(s.substring(0,s.length()-1)); //return the amount of letters (by re-call the method again)\n }", "public int countSpecificString(String str)\n\t{\n\t\tif (str == null)\n\t\t\treturn 0;\n\n\t\tstr = str.toLowerCase();\n\t\tNode wizard = this.root; // Temporary node variable.\n\n\t\tfor (int i = 0; i < str.length(); i++)\n\t\t{\n\t\t\tif (!(Character.isLetter(str.charAt(i)))) continue;\n\t\t\tint index = str.charAt(i) - 'a';\n\t\t\t\n\t\t\tif (wizard.children[index] == null) return 0;\n\t\t\twizard = wizard.children[index];\n\t\t}\n\n\t\treturn wizard.count;\n\t}", "public static int countCharacters(char[] characters, char c) {\r\n\t\tint n = 0;//before counting, the number of counts is 0\r\n\t\tfor(int i=0; i<characters.length; i++) {\r\n\t\t\tif(characters[i]==c) {\r\n\t\t\t\tn++;//while there's a character c in a row/column/diagonal, counts plus 1\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn n;//after running the loop, return the number of counts\r\n\t}", "void countCharByCategory(String inputstr) {\n\n\t\tint digitcount = 0;\n\t\tint lowercasecount = 0;\n\t\tint uppercasecount = 0;\n\t\tint specialcharcount = 0;\n\n\t\tfor (int i = 0; i < inputstr.length(); i++) {\n\n\t\t\tif (Character.isLowerCase(inputstr.charAt(i)))\n\t\t\t\tlowercasecount++;\n\t\t\telse if (Character.isUpperCase(inputstr.charAt(i)))\n\t\t\t\tuppercasecount++;\n\n\t\t\telse if (Character.isDigit(inputstr.charAt(i)))\n\t\t\t\tdigitcount++;\n\t\t\telse\n\t\t\t\tspecialcharcount++;\n\t\t}\n\t\tSystem.out.println(\"Total Digits: \" + digitcount + \"\\nTotal letters: \" + (lowercasecount+uppercasecount) + \"\\nTotal Uppercase: \"\n\t\t\t\t+ uppercasecount + \"\\nTotal lowercase: \" + lowercasecount + \"\\nTotal Special character: \"\n\t\t\t\t+ specialcharcount);\n\n\t}", "public static int eCounter (String string) {\r\n int count = 0;\r\n \r\n if (string.length() == 0) {\r\n return count;\r\n }\r\n \r\n if (string.substring(0,1).equalsIgnoreCase(\"e\")) {\r\n count = 1 + eCounter(string.substring(1));\r\n return count;\r\n }\r\n \r\n count = eCounter(string.substring(1));\r\n return count;\r\n }", "public int count(String word);", "public static Character findLength(String str) {\n\n List<Character> list = new ArrayList<>();\n for (Character c : str.toCharArray()) {\n list.add(c);\n }\n\n Character result = '\\0';\n for (Character c : list) {\n if (Collections.frequency(list, c) == 1) {\n result = c;\n break;\n }\n }\n\n return result;\n }", "public int count(char ch) {\n int count = 0;\n if (jumble.containsKey(ch)) {\n count = jumble.get(ch);\n }\n return count;\n }", "public static int keyCount(String getString, char getKeyChar)\n {\n //Checks for key character in original string\n int i = 0, keyCount = 0;\n while ( i < getString.length())\n {\n if (getString.charAt(i) == getKeyChar)\n {\n keyCount++;\n i++;\n }\n else if (getString.charAt(i) != getKeyChar)\n {\n i++;\n }\n }\n System.out.print(\"\\r# \" + getKeyChar + \"s: \");\n return keyCount;\n }", "public static int[] countChar(String str) {\n\t\tint[] charSet = new int[256];\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\tcharSet[str.charAt(i)]++;\n\t\t}\n\t\treturn charSet;\n\t}", "public static int countOccurrences(String haystack, char needle)\n {\n int count = 0;\n for (int i=0; i < haystack.length(); i++)\n {\n if (haystack.charAt(i) == needle)\n {\n count++;\n }\n }\n return count;\n }", "public int countConsonants(String str){\n\t\tint count=str.replaceAll(\"[^A-Za-z0-9_]\", \"\").length()\n\t\t\t\t-str.toLowerCase().replaceAll(\"[^aeiouy]\",\"\").length();\n\t\treturn count;\n\t}", "int getCharCount(Element e, char s) {\n return e.text().split(Character.toString(s)).length - 1;\n }", "public int [] getCharCount(String str){\n\t\tint CHAR_ARRAY = 26;\n\t\tint [] count = new int [CHAR_ARRAY];\n\t\tfor(char c: str.toCharArray()){\n\t\t\tcount[c-'a']++;\n\t\t}\n\t\treturn count;\n\t}", "public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tSystem.out.print(\"Please enter a string: \");\n\t\tString s=in.nextLine();\n\t\tSystem.out.print(\"Please enter the character to find: \");\n\t\tchar c=in.nextLine().charAt(0);\n\t\tSystem.out.print(countChar(s,c));\n\t\tin.close();\n\t}", "static int maxCharacter(String string) {\n\t\tchar[] ch = string.toCharArray();\n\t\t// create a hashmap for lookup using the char as a key\n\t\tMap<Character, int[]> map = new HashMap<Character, int[]>();\n\t\t// loop through string\n\t\tfor (int i = 0; i < ch.length; i++) {\n\t\t\t// if the character is already in the map increase occurrence value\n\t\t\tif (map.containsKey(ch[i])) {\n\t\t\t\t// get value array\n\t\t\t\t// increase occurrence\n\t\t\t\t// set new value\n\t\t\t\tint[] curArr = map.get(ch[i]);\n\t\t\t\tcurArr[1] = curArr[1] + 1;\n\t\t\t\tmap.put(ch[i], curArr);\n\t\t\t\t// if the character isn't in map, make a new entry\n\t\t\t} else {\n\t\t\t\t// create an array { index, occurrence vale}\n\t\t\t\tint[] newArr = { i, 1 };\n\t\t\t\tmap.put(ch[i], newArr);\n\t\t\t}\n\t\t}\n\t\tint max = 0;\n\t\tint index = 0;\n\t\t// loop through entries\n\t\tfor (Map.Entry<Character, int[]> e : map.entrySet()) {\n\t\t\t// find the largest occurrence value\n\t\t\tint[] maxArr = e.getValue();\n\t\t\tif (maxArr[1] > max) {\n\t\t\t\tmax = maxArr[1];\n\t\t\t\tindex = maxArr[0];\n\t\t\t}\n\t\t}\n\t\t// return the index of the first found character\n\t\treturn index;\n\t}", "public static Map<Character,Integer> countFreq(String string){\n\n\n\n Map<Character,Integer> results = new HashMap<Character,Integer>();\n for (int i = 0; i < string.length(); i++) {\n Character temp = string.charAt(i);\n Integer count;\n// System.out.println(temp);\n if (results.containsKey(temp)){\n count=results.get(temp);\n count++;\n results.replace(temp,count);\n }\n else\n results.put(temp,1);\n\n }\n\n return results;\n }", "public static int countChar ( char target, String line )\n {\n int sum = 0;\n\n // Look for the first target character in line.\n int index = line.indexOf ( target );\n\n // Loop, counting all occurances.\n while ( index >= 0 )\n {\n sum++;\n\n // Check if reached the last character in line.\n if ( index == line.length () - 1 ) return sum;\n\n // Search for an additional target character in line.\n index = line.indexOf ( target, index+1 );\n } // while\n\n return sum;\t\t// return the count\n }", "public static int numberOfOccurences(String str1,String str2) {\n\tint count=0;\n\tfor (int i=0; i<=str1.length()-str2.length(); i++) {//(int i=0; i<str1.length()-str2.length()+1; i++)\n\t\tString currentString=str1.substring(i,i+str2.length());\n\t //char charChar=str1.charAt(i);//2.solution\n\tif (currentString.equals(str2)) {\n\t\tcount++;\n\t }\n }\n\t\t\n\treturn count;\n}", "static void getCharCountArray(String str) {\n for (int i = 0; i < str.length(); i++)\n count[str.charAt(i)]++;\n }", "public int countAbc(String str) {\n//Solution to problem coming soon\n}", "public int guessCount(String tester, char guess) {\n StringBuilder r = new StringBuilder(tester);\n\n int guessCount = 0;\n for (int i = 0; i < tester.length(); i++) {\n if (r.charAt(i) == guess) {\n guessCount++;\n }\n }\n\n return guessCount;\n }", "public static int [] countChar(String str) {\n char data [] = str.toCharArray();\n \n int count [] = new int [2];\n \n for (int i = 0; i < data.length; i++) {\n if (data[i] == 'n' || data[i] == 'N')\n count[0]++;\n if (data[i] == 'm' || data[i] == 'M')\n count[1]++;\n }\n return count;\n }", "public int countX(String str) {\n\t\t if(str.length() == 0 ){\n\t\t // return count;\n\t\t\t return 0;\n\t\t }\n\t\t if(str.charAt(0) == 'x'){\n\t\t // count++;\n\t\t //return count + countX(str.substring(1));\n\t\t return 1 + countX(str.substring(1));\n\t\t }\n\t\t return countX(str.substring(1));\n\t\t}", "public static int duplicateCount(String text) {\n \r\n int count=0; \r\n \r\n \r\n \r\n int l=text.length(); int index=0; String s1=\"\"; char [] c= new\r\n char [text.length()] ; for (int i=0;i <text.length();i++) {\r\n c[i]=text.toLowerCase().charAt(index++);\r\n \r\n System.out.println(\"Character at c[\"+i+\"] is\"+c[i]);\r\n \r\n }\r\n \r\n System.out.println(\"Character array is \"+Arrays.toString(c));\r\n \r\n int charSize=c.length; int index2=1;\r\n \r\n HashMap h =new HashMap();\r\n for (int i=0;i<charSize;i++)\r\n {\r\n for(int j=i+1;j<charSize;j++)\r\n {\r\n if (c[i]==c[j])\r\n {\r\n count++;\r\n //s1=s1+c[j];\r\n \r\n h.put(c[j],count);\r\n }\r\n }\r\n }\r\n \r\n \r\n System.out.println(h);\r\n \r\n int hsize= h.size();\r\n \r\n return hsize;\r\n }", "private static Map<Character, Integer> countChars(char[] characters) {\n\t\t/**\n\t\t * creating hashMap called map for storing the character along with count\n\t\t */\n\t\tMap<Character, Integer> map = new HashMap<>();\n\t\t/**\n\t\t * using for as outerloop to take each character for checking\n\t\t */\n\t\tfor (int i = 0; i < characters.length; i++) {\n\t\t\t/**\n\t\t\t * declaring count variable to keep count of repeated characters\n\t\t\t */\n\t\t\tint count = 0;\n\t\t\t/**\n\t\t\t * inner loop for checking the character with particular character\n\t\t\t */\n\t\t\tfor (int j = 0; j < characters.length; j++) {\n\t\t\t\t/**\n\t\t\t\t * if both the character are equal increment the count\n\t\t\t\t */\n\t\t\t\tif (characters[i] == characters[j]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/**\n\t\t\t * checking if the character already exists in map to remove duplicates\n\t\t\t */\n\t\t\tif (!(map.containsKey(characters[i]))) {\n\t\t\t\t/**\n\t\t\t\t * adding the character and the character count into the map\n\t\t\t\t */\n\t\t\t\tmap.put(characters[i], count);\n\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * returning the map\n\t\t */\n\t\treturn map;\n\t}", "public static void main(String[] args) {\n\t\tString sentence = \"I think it's fair to say practice can be heplful in learning. \"\r\n\t\t\t\t+ \"Just about anything it can be true.\";\r\n\t\tchar myChar = 'a';\r\n\t\tint counter = 0;\r\n\t\t\r\n\t\tfor(int i=0; i<sentence.length(); i++)\r\n\t\t{\t//if you find the char value, count it in the if block\r\n\t\t\tif(sentence.charAt(i)==myChar)\r\n\t\t\t{\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of occurences of 'a' is \"+counter);\r\n\t}", "public long numberOfSubstrings(String s) {\n int[] letterCounts = new int[26];\n long substringCount = 0;\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n int letterCount = ++letterCounts[c - 'a'];\n substringCount += letterCount;\n }\n return substringCount;\n }", "public static int firstUniqChar(String s) {\n Map<Character, Integer> map = new HashMap<>();\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (map.containsKey(c)) {\n map.put(c, map.get(c) + 1);\n } else {\n map.put(c, 1);\n }\n }\n\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (map.get(c) == 1) {\n return i;\n }\n }\n return -1;\n\n }", "public static int letterLoop(String romConcat, char charSearch) {\n\t\tint count = 0;\r\n\t\t\r\n\t\tfor(int i = 0; i < romConcat.length(); i++) {\r\n\t\t\tchar currentChar = romConcat.charAt(i);\r\n\t\t\t\r\n\t\t\tif (currentChar == charSearch) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn count;\r\n\t}", "public static int main(String[] args) {\n\n System.out.println(\"Input the string: \");\n\n Scanner scn = new Scanner(System.in);\n\n String word = scn.nextLine();\n\n int count = 0;\n for (int i = 0; i < word.length(); i++) {\n if (word.charAt(i) == 'a' || word.charAt(i) == 'e' || word.charAt(i) == 'i' ||\n word.charAt(i) == 'o' || word.charAt(i) == 'u' || word.charAt(i) == 'A' ||\n word.charAt(i) == 'E' || word.charAt(i) == 'I' || word.charAt(i) == 'O' || word.charAt(i) == 'U') {\n count++;\n }\n }\n return count;\n\n }", "public int stringCounter (String stringToFind) throws IOException{\n if (stringToFind.equals(\"\")){\n return stringCount=-1;\n }\n Pattern pattern = Pattern.compile(stringToFind);\n Matcher matcher;\n String line;\n fileRead.mark(2000000);\n while ((line=fileRead.readLine())!= null){\n matcher = pattern.matcher(line.toLowerCase());\n int c=0;\n while(matcher.find()) {\n c++;\n }\n stringCount=stringCount+c;\n }\n fileRead.reset();\n return stringCount;\n }", "public static int count(String str){\r\n\t\tString[] splitStr = str.trim().split(\"\\\\s+\"); //split according to spaces and tabs.\r\n\t\treturn splitStr.length;\r\n\t}", "public static int commonCharacterCount(String s1, String s2) {\n\t int count = 0;\n\t int auxArray[] = new int[s2.length()];\n\t for (int i = 0; i < auxArray.length; i++){\n\t\tauxArray[i] = 0;\n\t }\n\t \n\t for(int i = 0; i < s1.length(); i++){\n\t\tfor(int j = 0; j < s2.length(); j++){\n\t\t if( auxArray[j] == 1){\n\t\t continue;\n\t\t }\n\t\t else{\n\t\t if(s1.charAt(i) == s2.charAt(j)){\n\t\t auxArray[j] = 1;\n\t\t count += 1;\n\t\t break;\n\t\t }\n\t\t }\n\t\t}\n\t }\n\t return count;\n\t}", "public static int occurrences(char[] v, char c) {\n\t\tif (v == null)\n\t\t\tthrow new NullPointerException();\n\t\tint n = 0;\n\t\tfor (int i = 0; i < v.length; i++)\n\t\t\tif (v[i] == c)\n\t\t\t\tn++;\n\t\treturn n;\n\t}", "public static int substringCount(String s, String substring) {\n \tint num = 0;\n \twhile(s.contains(substring)) {\n \t\ts = s.substring(s.indexOf(substring) + substring.length());\n \t\tnum++;\n \t}\n return num;\n }", "public static int findLength(String str) {\n flushMap();\n if (str==null || str.isEmpty()) return -1;\n int x = 0;\n int count = 0;\n int maxCount = 0;\n while (x<str.length()) {\n char letter = str.charAt(x);\n if (!isRepeating(letter)) count++;\n else {\n flushMap();\n maxCount = Math.max(maxCount, count);\n x--;\n count = 0;\n }\n x++;\n }\n return Math.max(maxCount, count);\n }", "public static int firstUniqChar(String s) {\n\n HashMap<String, Integer> hm = new HashMap<>();\n\n for(int i = 0; i < s.length(); i++) {\n if(hm.containsKey(s.substring(i, i+1))) {\n hm.put(s.substring(i,i+1), hm.get(s.substring(i,i+1))+1);\n }\n else {\n hm.put(s.substring(i,i+1), 1);\n }\n }\n\n for(int i = 0; i< s.length(); i++) {\n if(hm.get(s.substring(i,i+1)) == 1) {\n return i;\n }\n }\n //this means all the string is repeating\n return -1;\n }", "public static int intForChar(char c) {\n for (int i = 0; i < DICT.length; i++) {\n if (DICT[i] == c) {\n return i;\n }\n }\n //Return 0 if character can't be found.\n return 0;\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.println(\"enter a string\");\n\t\tString str=sc.nextLine();\n\t\tint count=0;\n\t\tchar ar[]=str.toCharArray();\n\t\tfor(char c:ar) {\n\t\t\tcount++;\n\t\t}\nSystem.out.println(count);\n\t}", "public int numberOfCharacters(String senha){\n return senha.length();\n }", "private int countLetter(char c, File trainDir) {\r\n\t\tint totalCharacterCount = 0;\r\n\t\tfor(File file : trainDir.listFiles()){\r\n\t\t\ttry{\r\n\t\t\t\t// open file\r\n\t\t\t\tFileReader fr = new FileReader(file);\r\n\t\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\t\t\r\n\t\t\t\twhile(br.ready()){\r\n\t\t\t\t\t// read a character and increment our counter\r\n\t\t\t\t\t// if this character matches the one we are looking for\r\n\t\t\t\t\tif((char)br.read() == c){\r\n\t\t\t\t\t\ttotalCharacterCount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(FileNotFoundException e){\r\n\t\t\t\tSystem.err.println(\"Failed to Find File: \" + file.toString());\r\n\t\t\t}\r\n\t\t\tcatch(IOException ioe){\r\n\t\t\t\tSystem.err.println(ioe.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn totalCharacterCount;\r\n\t}", "public int countXX(String str) {\n\n int index = str.indexOf(\"xx\");\n int numOfX = 0;\n\n while (index != -1) {\n numOfX++;\n str = str.substring(index + 1);\n index = str.indexOf(\"xx\");\n }\n return numOfX;\n }", "public static int countWord(String string, String word) {\n int count = 0;\n while (string.indexOf(word) > -1) {\n count++;\n string = string.substring(string.indexOf(word) + 1);\n }\n return count;\n\n }", "int count(String s) {\r\n\t\tif (m_words.containsKey(s)) {\r\n\t\t\treturn m_words.get(s);\r\n\t\t} else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "static int countCharacters2(String[] words, String chars) {\n int count = 0;\n int[] seen = new int[26];\n //Count char of Chars String\n for (char c : chars.toCharArray())\n seen[c - 'a']++;\n // Comparing each word in words\n for (String word : words) {\n // simple making copy of seen arr\n int[] tSeen = Arrays.copyOf(seen, seen.length);\n int Tcount = 0;\n for (char c : word.toCharArray()) {\n if (tSeen[c - 'a'] > 0) {\n tSeen[c - 'a']--;\n Tcount++;\n }\n }\n if (Tcount == word.length())\n count += Tcount;\n }\n return count;\n }", "include<stdio.h>\nint main()\n{\n char str[100];\n scanf(\"%s\", str);\n int i, count=1, length; \n for(length=0; str[length]!='\\0'; length++);\n if(length>20)\n {\n printf(\"Invalid Input\");\n }\n else\n {\n for(i=0; i<length; i++)\n {\n if(str[i] == str[i+1])\n {\n count++;\n }\n else\n {\n printf(\"%c%d\", str[i], count); \n count = 1;\n }\n }\n }\n return 0;\n}", "public static int helper(String str) {\n\t\t// null & illegal checking here\n\t\tif(str == null){\n\t\t\treturn 0;\n\t\t}\n\t \n\t\tif(str.length() == 1){\n\t\t\treturn 1;\n\t\t}\n\t \n\t\tchar[] arr = str.toCharArray();\n\t\tchar p = arr[arr.length - 1];\n\t\tint result = 1;\n\t \n\t\tfor (int i = arr.length - 2; i >= 0; i--) {\n\t\t\tif (p == arr[i]) {\n\t\t\t\tresult++;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t \n\t\treturn result;\n\t}", "public static void main(String[] args) {\n\t\tString str = \"welcome to chennai\";\r\n\t\tchar search='e';\r\n\t\tint count=0;\r\n\t\tchar ch[]=str.toCharArray();\r\n\t\tint len=ch.length;\r\n\t\tfor(int i=0;i<len;i++)\r\n\t\t{\r\n\t\t\tif(search==(ch[i]))\r\n\t\t\t{\r\n\t\t\t\tcount=count+1;\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t\tSystem.out.println(count);\r\n\t\r\n\r\n\t}", "static int countCharacters(String[] words, String chars) {\n int ans = 0;\n int[] letters = new int[26];\n char[] arr = chars.toCharArray();\n for (char a : arr) {\n letters[a-'a']++;\n }\n for (String s : words) {\n char[] charArray = s.toCharArray();\n int[] temp = new int[26];\n int i = 0;\n for (;i<charArray.length;i++) {\n if (letters[charArray[i]-'a'] > 0) {\n letters[charArray[i]-'a']--;\n temp[charArray[i]-'a']++;\n } else {\n break;\n }\n }\n if (i == charArray.length) {\n ans += s.length();\n }\n i=0;\n for (;i<temp.length;i++) {\n letters[i] += temp[i];\n }\n }\n return ans;\n }", "static int countOccurrences(String str, String word) \r\n\t\t{\n\t\t String a[] = str.split(\" \");\r\n\t\t \r\n\t\t // search for pattern in a\r\n\t\t int count = 0;\r\n\t\t for (int i = 0; i < a.length; i++) \r\n\t\t {\r\n\t\t // if match found increase count\r\n\t\t if (word.equals(a[i]))\r\n\t\t count++;\r\n\t\t }\r\n\t\t \r\n\t\t return count;\r\n\t\t}", "public static int solution(String s) {\n if (s == null || s.length() == 0) {\n return 0;\n }\n if (s.length() == 1) {\n return 1;\n }\n int result = 0;\n int index = 0;\n Map<Character, Integer> map = new HashMap<Character, Integer>();\n while (index < s.length()) {\n char temp = s.charAt(index);\n if (!map.containsKey(temp)) {\n map.put(temp, index);\n index++;\n } else {\n int start = map.get(temp);\n index = start + 1;\n if (map.size() > result) {\n result = map.size();\n }\n map.clear();\n }\n }\n if (map.size() > result) {\n result = map.size();\n }\n return result;\n }", "public static int count(String str, String search, boolean contig) {\n\t\tif (contig) return contig(str, search);\n\t\tint count = 0;\n\t\tint index = 0;\n\t\t\n\t\tint match = str.indexOf(search, index);\n\t\twhile (match > -1 && index < str.length()) {\n\t\t\tcount++;\n\t\t\tindex = match+search.length();\n\t\t\tmatch = str.indexOf(search, index);\n\t\t}\n\t\treturn count;\n\t}", "public int getCharaterPositionWithName(String s){\n int i;\n for(i = 0; i<alCharacter.size(); i++){\n String nameNextChar = alCharacter.get(i).getName();\n if(s.equals(nameNextChar)){\n break;\n }\n }\n return i;\n }", "public int countSubstrings(String s) {\n int cnt = 0;\n\n char[] str = s.toCharArray();\n\n\n for(int j=0; j<2; j++) {\n for(int i=0; i< str.length; i++) {\n int left = i;\n int right = i+j;\n\n while(left>=0 && right<str.length && str[left] == str[right]) {\n cnt++;\n left--;\n right++;\n }\n\n }\n }\n\n return cnt;\n }", "private static Map<Character, Integer> createKey(String subString) {\n Map map = new HashMap<Character, Integer>();\n for (int i = 0; i < subString.length(); i++) {\n Character c = subString.charAt(i);\n\n if (map.containsKey(c)) {\n int count = (int) map.get(c);\n map.put(c, ++count);\n } else {\n map.put(c, 1);\n }\n }\n return map;\n }", "public static int countRow(char[] a, char c){\r\n int count = 0;\r\n for (int i= 0; i<a.length;i++){\r\n if (a[i] == c){\r\n count = count + 1;\r\n }\r\n }\r\n return count;\r\n }", "public static int substringCount(String s, String substring) {\n\t\tint numb = 0;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\ttry {\n\t\t\tif(s.substring(i,i+substring.length()).equals(substring)) {\n\t\t\t\tnumb++;\n\t\t\t}\n\t\t\t}catch(Exception e) {}\n\t\t}\n\t\t\n\t\treturn numb;\n\t}", "private static int countSpaceSub(char [] dest,int length, char subChar){\n int i = 0;\n int count = 0;\n while (i < length) {\n if (dest[i] == subChar) {\n count++;\n }\n i++;\n }\n return count;\n }", "public static int countSubString(String source, String sub) {\n if (StringUtil.isEmpty(source) || StringUtil.isEmpty(sub)) {\n return 0;\n }\n Pattern p = Pattern.compile(sub, Pattern.CASE_INSENSITIVE);\n Matcher m = p.matcher(source);\n int count = 0;\n while (m.find()) {\n count++;\n }\n return count;\n }", "static double count(String str, String findStr) {\n\t\tint lastIndex = 0;\n\t\tint count = 0;\n\t\twhile (lastIndex != -1) {\n\t\t lastIndex = str.indexOf(findStr,lastIndex);\n\t\t if (lastIndex != -1) {\n\t\t count++;\n\t\t lastIndex += findStr.length();\n\t\t }\n\t\t}\n\t\treturn count;\n\t}", "public int solution(String S) {\n\t\tArrayList<Character> count = new ArrayList();\n\t\tint i = 0;\n\t\tfor (char c : S.toCharArray()) {\n\t\t\tif (c == '(') {\n\t\t\t\tcount.add(c);\n\t\t\t\ti++;\n\t\t\t} else if (i != 0 && c == ')') {\n\t\t\t\tcount.remove(i - 1);\n\t\t\t\ti--;\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t\treturn 1;\n\t}", "@Test\n\tpublic static void main() {\n\t\tSystem.out.println(Stringcount2(\"reddygaru\"));\n\t}", "public int count(String st) {\n\t\tboolean ans = Search(st);\n\t\tif (ans) {\n\t\t\tint stIndex = table[hashFunction(st,m)].indexOf(st);\n\t\t\tint count = table[hashFunction(st,m)].get(stIndex).GetCount();\n\t\t\treturn count;\n\n\t\t} else\n\t\t\treturn 0;\n\t}", "public static void main(String[] args) {\n String s = \"ab\";\n\n\n int res = countSubstrings(s);\n System.out.println(res);\n\n }", "int[] buildFrequencyTable(String s)\n{\n int[] table = new int [Character.getNumericValue('z') - Character.getNumericValue('a') + 1];\n for (char c : s.toCharArray())\n {\n int x = getCharNumber(c);\n if (x != -1) table[x]++;\n }\n return table;\n}", "int[] countLetters(String str) {\n int[] countArr = new int['z'-'a'+1];\n Arrays.fill(countArr, 0);\n\n for (int i = 0; i < str.length(); ++i) {\n char c = str.charAt(i);\n if (!Character.isLetter(c)) {\n continue;\n }\n\n if (c >= 'a' && c <= 'z') {\n countArr[c - 'a']++;\n }\n }\n\n return countArr;\n }", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the string\");\r\n\t\tString a = s.nextLine().toLowerCase();\r\n\t\tint count = 0;\r\n\t\tfor (int i = 0; i < a.length(); i++) {\r\n\t\t\tif (a.charAt(i) == 'a' || a.charAt(i) == 'e' || a.charAt(i) == 'i' || a.charAt(i) == 'o'\r\n\t\t\t\t\t|| a.charAt(i) == 'u') {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\r\n\t\t}System.out.println(count);\r\n\t}" ]
[ "0.8034501", "0.78203666", "0.77162766", "0.7622529", "0.76140326", "0.7532813", "0.7494852", "0.7463116", "0.73446286", "0.7338715", "0.7310325", "0.73027784", "0.72644186", "0.71754867", "0.71348625", "0.7096092", "0.7074329", "0.6995627", "0.69861627", "0.6938961", "0.69327545", "0.6894858", "0.68926466", "0.6849281", "0.6813265", "0.67981887", "0.67975026", "0.67951643", "0.6774609", "0.674496", "0.6744463", "0.66676813", "0.66544074", "0.66509616", "0.6624619", "0.6619039", "0.66131526", "0.65883064", "0.65816164", "0.65707", "0.65706474", "0.6534998", "0.6533866", "0.65240794", "0.6522901", "0.6519575", "0.6496637", "0.6488023", "0.6473871", "0.6406288", "0.6388363", "0.63786876", "0.63746184", "0.6356403", "0.6327519", "0.63172305", "0.63048095", "0.6293521", "0.6285086", "0.62797153", "0.6232669", "0.6212869", "0.61830765", "0.6174778", "0.61733156", "0.6159055", "0.6144081", "0.6137956", "0.612691", "0.6112886", "0.6098764", "0.60881686", "0.6083698", "0.6080703", "0.60743237", "0.6074079", "0.6071711", "0.60548544", "0.6040417", "0.60379505", "0.60354143", "0.60268945", "0.6025431", "0.60128856", "0.6006577", "0.59990853", "0.59648645", "0.5939318", "0.59391534", "0.5926082", "0.5919119", "0.59083587", "0.5902426", "0.5898367", "0.5897641", "0.5861495", "0.58512646", "0.5847952", "0.58418274", "0.58414316" ]
0.62910044
58
Given a character, a String containing a word, and a String containing a 'starred' version of that word, return a new String that is a modified version of the 'starred' string where characters equal to the character inChar are uncovered. For example, given the following call: modfiyGuess('G',"GEOLOGY", "OOY") This functions should return the String "GOOGY".
public static String modifyGuess(char inChar, String word, String starredWord) { String starWord = starredWord; for(int i = 0; i < word.length(); i++) { if(word.charAt(i) == inChar) { starWord = starWord.substring(0,i) + word.charAt(i) + starWord.substring(i+1,starWord.length()); //System.out.println(starWord.substring(i,starWord.length()-1)); } } //System.out.println(starWord); return starWord; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String starWord(String inWord) {\n\t\tString word = \"\";\n\t\tfor(int i = 0; i < inWord.length(); i ++) {\n\t\t\tif(inWord.charAt(i) == ' ') {\n\t\t\t\tword += \" \";\n\t\t\t}else {\n\t\t\t\tword += \"*\";\n\t\t\t}\n\t\t}\n\t\treturn word;\n\t}", "public static char getGuess(char[] asterisks){\n\t\tSystem.out.print(\"(Guess) Enter a letter in word \");\n\t\tSystem.out.print(asterisks);\n\t\tSystem.out.print(\" > \");\n\t\tString g = input.next();\n\t\treturn g.charAt(0);\n\t}", "public String dashGuess(String s, char guess) {\n StringBuilder r = new StringBuilder(s); //turn s to stringbuilder to change\n\n for (int i = 0; i < s.length(); i++) {\n\n //if (s.charAt(i) != guess) {\n if (!guessedLetters.contains(s.charAt(i))) {\n r.setCharAt(i, '-');\n }\n }\n\n String v = r.toString();\n return v;\n }", "String getWordIn(String schar, String echar);", "public static char getCharacterGuess(Scanner inScanner, String word) {\n\t\tboolean flag = true;\n\t\tString guess;\n\t\tString ints = \"1 2 3 4 5 6 7 8 9\";\n\t\t\n\t\tdo {\n\t\t\tSystem.out.print(\"Please enter a character or enter 0 for a word guess: \");\n\t\t\tguess = inScanner.nextLine();\n\t\t\t\n\t\t\tif(guess.length() < 2 && (!ints.contains(guess)) && !guess.equals(\"0\")) {\n\t\t\t\tflag = false;\n\t\t\t}else if(guess.equals(\"0\")) {\n\t\t\t\tflag = false;\n\t\t\t}else if(ints.contains(guess)) {\n\t\t\t\tSystem.out.println(\"NOT INTS BRO\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Only one character please\");\n\t\t\t}\n\t\t}while(flag);\n\t\treturn guess.charAt(0);\n\t}", "private void updateGuessedWord(String guessedLetter) {\n\t\tint guessIndex = 0;\n\t\tint indexOffset = 0;\n\t\t//we loop here because there can potentially be multiple instances of guessedLetter in actualWord\n\t\twhile (indexOffset < actualWord.length()) { //could be while true, but this protects against double letters at end of word\n\t\t\tguessIndex = actualWord.indexOf(guessedLetter, indexOffset);\n\t\t\tif (guessIndex < 0) return; //exits loop if no further instances of guessed letter are in actual word\n\t\t\telse {\n\t\t\t\tguessedWord = guessedWord.substring(0, guessIndex) + guessedLetter + guessedWord.substring(guessIndex + 1);\n\t\t\t\tindexOffset = guessIndex + 1;\n\t\t\t}\n\t\t}\n\t}", "private char playerGuess(){\r\n System.out.println(\"\\nEnter your guess: \");\r\n guess = input.next();\r\n if (guess.matches(\"[a-zA-z]*$\") && guess.length() == 1){\r\n if(guesses.contains(guess.charAt(0))){\r\n System.out.println(\"You already guessed this character!\");\r\n playerGuess();\r\n }\r\n return Character.toLowerCase(guess.charAt(0));\r\n } else {\r\n System.out.println(\"Invalid guess! Try again!\");\r\n playerGuess();\r\n }\r\n return Character.toLowerCase(guess.charAt(0));\r\n }", "public StringBuffer formTheGuessedWord(String word, String guess, StringBuffer guessedWord) {\r\n\t\tif (guessedWord != null && guessedWord.length() >= 1) {\r\n\t\t\tfor (int i = 0; i < word.length(); i++) {\r\n\t\t\t\tif (word.charAt(i) == guess.charAt(0)) {\r\n\t\t\t\t\tguessedWord.setCharAt(i, guess.charAt(0));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tguessedWord = new StringBuffer(word.length());\r\n\t\t\tfor (int i = 0; i < word.length(); i++) {\r\n\t\t\t\tguessedWord.append(\".\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn guessedWord;\r\n\t}", "public char handleGuess(){\n\t\t\r\n\t\tSystem.out.print(\"Please enter a letter: \");\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString s = sc.next();\r\n\t\tchar letter = s.charAt(0);\r\n\r\n\t\taa:for(int i=0; i<gameLetter.length; i++){\r\n\t\t\tif(letter == gameLetter[i]){\r\n\t\t\t\tcorrectList.add(letter);\r\n\t\t\t\t\r\n\t\t\t\tif(ifWrongListContain(letter)==true){\r\n\t\t\t\t\tfor(int b=0, length=wrongList.size(); b<length; b++){\r\n\t\t\t\t\t\tif(wrongList.get(b)==letter)\r\n\t\t\t\t wrongList.remove(b);\r\n\t\t\t\t length--;\r\n\t\t\t\t b--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak aa;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(ifWrongListContain(letter)==true)\r\n\t\t\t\t\tcontinue aa;\r\n\t\t\t\telse\r\n\t\t\t\t wrongList.add(letter);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn letter;\t\t\r\n\t\t\t\t\r\n\t}", "static String refineWord(String currentWord) {\n\t\t// makes string builder of word\n\t\tStringBuilder builder = new StringBuilder(currentWord);\n\t\tStringBuilder newWord = new StringBuilder();\n\n\t\t// goes through; if it's not a letter, doesn't add to the new word\n\t\tfor (int i = 0; i < builder.length(); i++) {\n\t\t\tchar currentChar = builder.charAt(i);\n\t\t\tif (Character.isLetter(currentChar)) {\n\t\t\t\tnewWord.append(currentChar);\n\t\t\t}\n\t\t}\n\n\t\t// returns lower case\n\t\treturn newWord.toString().toLowerCase().trim();\n\t}", "public boolean guessWord (String gword) {\n \tif (lose || victory) return false;\n \t\n \tif ( gword.toLowerCase().equals(_word.toLowerCase()) ) {\n \t\tthis.victory = true;\n \t\t\n \t\tfor (int i = 0; i < _word.length(); i++) {\n \t\t\thint.setCharAt(2*i, _word.charAt(i));\n \t\t}\n \t\t\n \t\treturn true;\n \t}\n \t\n \treturn false;\n }", "private void matchletter(){\n\t\t/* Generate a Random Number and use that as a Index for selecting word from HangmanLexicon*/\n\t\tString incorrectwords = \"\";\n\t\tcanvas.reset();\n\t\tHangmanLexicon word= new HangmanLexicon(); // Get Word from Lexicon\n\t\tint index=rgen.nextInt(0, (word.getWordCount() - 1)); // Select the word Randomly\n\t\tString secretword=word.getWord(index);\n\t\tprintln(\"secretword: \"+secretword);\n\t\tint lengthofstring= secretword.length();\n\t\tString createword=concatNcopies(lengthofstring,\"-\"); // Create a blank word the user will guess\n\t\tcanvas.displayWord(createword); // Display the word on the Canvas\n\t\tprintln(\"The word now looks like this:\" +createword);\n\t\tprintln(\"You have \" +lengthofstring+ \" guesses left\");\n\t\tint counter =0;\n\t\tint guess= lengthofstring;\n\t\tint pos = createword.indexOf('-'); // Check for blank Words\n\t\t/* Ask user to input the letter*/\n\t\twhile(counter<lengthofstring && (pos !=-1 )){ \n\t\t\tint check=0;\n\t\t\tpos = createword.indexOf('-',pos); // Check to find Dashes in word\n\t\t\tString userletter= readLine(\"Your Guess:\");\n\t\t\tif(userletter.length() > 1){ // Check for two letters entered\n\t\t\t\tprintln(\"Enter letter Again\");\n\t\t\t}\n\t\t\tchar ch=userletter.charAt(0);\n\t\t\tif(Character.isLowerCase(ch)) { // Convert lower case to upper case\n\t\t\t\tch = Character.toUpperCase(ch);\n\t\t\t}\n\t\t\tfor (int i=0;i<lengthofstring;i++){ // Check for entire letter matching in the secretword\n\t\t\t\tif (ch==secretword.charAt(i) && ch!=createword.charAt(i)) { \n\t\t\t\t\tcreateword = createword.substring(0, i) + ch + createword.substring(i + 1);\n\t\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\t\tcheck++; // If user puts the correct letter again it is flagged as a error\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(check==0){\n\t\t\t\tprintln(\"There are no \"+ch+\"'s in the word\");\n\t\t\t\tguess=guess-1;\n\t\t\t\tincorrectwords = incorrectwords+ch;\n\t\t\t\tcanvas.noteIncorrectGuess(guess, incorrectwords);\n\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tprintln(\"The word now looks like this:\"+createword);\n\t\t\tprintln(\"You have \" +guess+ \" guesses left\");\n\n\t\t\tif(counter==lengthofstring){ // Checks for Fail condition- Game Over\n\t\t\t\tprintln(\"You are completely hung\");\n\t\t\t\tprintln(\"The word was: \"+secretword);\n\t\t\t\tcanvas.displayWord(secretword);\n\t\t\t\tprintln(\"You lose \");\n\t\t\t}\n\t\t\tpos = createword.indexOf('-');// Check for Win condition\n\t\t\tif(pos < 0){\n\t\t\t\tprintln(\"You saved Hangman\");\n\t\t\t\tprintln(\"You Win !!!\");\n\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\tguess=123;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void updateReplacedMovie(char userLetter) {\n String movieString = this.replacedMovie; // temp variable used to store last value of replacedMovie\n //loop until the end of the pickedMovie length to update\n // all the occurrence of the correct guessed letter entered by the user\n for (int i = 0; i < this.pickedMovie.length(); i++) {\n int replacedIndex = this.pickedMovie.indexOf(userLetter, i); // determine the index of the correct guessed letter\n if (replacedIndex != -1) { //guessed letter found in the pickedMovie\n movieString = movieString.substring(0, replacedIndex) + userLetter + movieString.substring(replacedIndex + 1, movieString.length());\n this.setReplacedMovie(movieString);//updating the replacedMovie variable with the new value\n }\n }\n }", "public static String secretWord(String s) {\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\ts = s.replace(s.charAt(i), '*');\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "public static boolean guessBoard(String keyword, char character, char[] guessBoard, char[] alphabetBoard) {\n boolean guess = false;\n try{\n if(alphabetBoard[character - 65] == ' ') { // // Duplicate input.\n System.out.println(\"The character you already entered!\");\n guess = false;\n correctInput = false;\n }\n else { // Correct input.\n alphabetBoard[character - 65] = ' ';\n for(int i = 0; i < guessBoard.length; i++) {\n if (keyword.charAt(i) == character) {\n guessBoard[i] = character;\n guess = true;\n }\n }\n correctInput = true;\n }\n }\n catch(IndexOutOfBoundsException e){\n System.out.println(\"Select alphabet\");\n correctInput = false;\n }\n return guess;\n }", "public String getGuessString() {\n\t\tStringBuilder sb = new StringBuilder(wordToGuess);\n\t\tfor (int i = 0; i < wordToGuess.length(); i++) {\n\t\t\tchar letter = wordToGuess.charAt(i);\n\t\t\tif (!guessesMade.contains(letter)) {\n\t\t\t\tsb.setCharAt(i, '-');\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "@Override\n public Set<String> makeGuess(char guess) throws GuessAlreadyMadeException {\n\n for(String word : myDictionary) {\n ArrayList<Integer> indices = new ArrayList<>();\n for (int i = 0; i < word.length(); i++) {\n if(word.charAt(i) == guess) {\n indices.add(i);\n }\n }\n boolean matchFound = false;\n for (Map.Entry<Pattern, Set<String>> entry : myMap.entrySet()) {\n Pattern myPattern = entry.getKey();\n Set<String> myStrings = entry.getValue();\n if(indices.equals(myPattern.ReturnIndices())) {\n myStrings.add(word);\n //myNewDictionary.add(word);\n matchFound = true;\n }\n\n }\n if(matchFound == false) {\n Pattern myNewPattern = new Pattern(word.length(), word, indices);\n Set<String> myNewString = new HashSet<>();\n myNewString.add(word);\n //myNewDictionary.add(word);\n myMap.put(myNewPattern, myNewString);\n }\n\n }\n this.myDictionary = RunEvilAlgorithm();\n this.myMap = new HashMap<>();\n //make a function to run evil algorithm\n return myDictionary;\n }", "public static String guessPinCode(String pin, String guess) {\n int len = pin.length();\n Map<Character, Integer> countMap = new HashMap<>();\n char[] res = new char[len];\n for (int i = 0; i < len; i++) {\n char currP = pin.charAt(i);\n char currG = guess.charAt(i);\n if (currG == currP) {\n res[i] = '*';\n continue;\n }\n countMap.put(currP, countMap.getOrDefault(currP, 0) + 1);\n }\n for (int i = 0; i < len; i++) {\n if (res[i] == '*') continue;\n char currG = guess.charAt(i);\n int currCount = countMap.getOrDefault(currG, 0);\n res[i] = currCount> 0 ? 'o' : '_';\n if (currCount == 1) countMap.remove(currG);\n }\n System.out.println(String.valueOf(res));\n return String.valueOf(res);\n }", "private char getGuessLetter(Scanner sc) {\n\n\t\t// the array format of the input\n\t\tchar[] ch;\n\t\twhile (true) {\n\t\t\t// ask for the input\n\t\t\tSystem.out.println(\"Please enter one letter to guess:\");\n\t\t\tSystem.out.print(\">>>\");\n\t\t\t// reading the input\n\t\t\tString input = sc.nextLine();\n\t\t\tch = input.toCharArray();\n\t\t\t// if the input is a allowed letter\n\t\t\tif(ch.length == 1\n\t\t\t\t&&(dr.isAllowed(ch[0]) || Character.isUpperCase(ch[0]))) {\n\t\t\t\t// break the loop\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Please enter an allowed letter.\");\n\t\t\t}\n\t\t}\n\t\t//return the lower-cased version of the letter\n\t\treturn Character.toLowerCase(ch[0]);\n\t}", "public boolean guessChar (char c) throws IOException {\n if (lose || victory) return false;\n \t\n \tchar cLower = Character.toLowerCase(c);\n \tString wLower = _word.toLowerCase();\n \t\n int cIndex = wLower.indexOf(cLower);\t// Where is 'c'? \n if (cIndex == -1) { \t// No 'c' found ==> Wrong!\n this.lives--;\n this.attempts.add(cLower);\n \n lose = (lives <= 0) ? true : false; // Any chances left?\n \n return false;\n }\n else {\t\t// Correct\n \tfor (int i = 0; i < _word.length(); i++) {\n \t\tif ( wLower.charAt(i) == cLower ) {\n \t\t\thint.setCharAt(2*i, _word.charAt(i));\n \t\t}\n \t}\n \n // Got the whole word?\n if(this.hint.indexOf(\"_\") == -1) {\n this.victory = true;\n }\n \n return true; // Valid play\n }\n\n \n }", "public void addLettersGuessed(char letter)\n\t {\n\t\t\n\t\t if (mysteryWord.indexOf(letter) == -1)\n\t\t {\n\t\t\t lettersGuessed += letter + \" \"; \n\t\t }\n\t\t \n\t\t missedLetters.setText(lettersGuessed);\n\t\t \n\t }", "public void guessLetter(String letter) {\n \n if (this.word.contains(letter)) {\n if (!this.guessedLetters.contains(letter)) {\n this.guessedLetters += letter;\n } // if the letter has already been guessed, nothing happens\n }else {\n // it the word does not contains the guessed letter, number of faults increase\n if (!this.guessedLetters.contains(letter)) {\n this.guessedLetters += letter;\n this.numberOfFaults++;\n } \n }\n\n \n\n\n }", "public boolean takeGuess(char letter) {\n\t\t// reset default result as false\n\t\tboolean result = false;\n\t\t// iterate through the characters in the word\n\t\tfor (int i = 0; i < this.getLength(); i++) {\n\t\t\t// if the guess is correct\n\t\t\tif (this.theWord[i] == letter) {\n\t\t\t\t// unmask the slot, set the result as true\n\t\t\t\tthis.unmaskSlot(i);\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\t//return the result\n\t\treturn result;\n\t}", "public void updateWord(char c) {\n int index = word.indexOf(c);\n while (index != -1) {\n display[index] = c;\n if (index == (word.length() - 1))\n return;\n index = word.indexOf(c, index + 1);\n }\n }", "private void updatePatterns(char guess) {\r\n \tfinal char UNDISPLAYED = '-';\r\n \tfor (int i = 0; i < this.activeWords.size(); i++) {\r\n \t\tString word = this.activeWords.get(i);\r\n \t\tfor (int j = 0; j < word.length(); j++) {\r\n \t\t\tif (word.charAt(j) == guess) {\r\n \t\t\t\tthis.patterns.get(i)[j] = guess;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n }", "public abstract String guessedWord();", "public static void guessWords(String guess) {\n String newEmptyString = \"\";\n for (int i = 0; i < CategorySelector.word.length(); i++) { // Grabbing word\n if (CategorySelector.word.charAt(i) == guess.charAt(0)) {\n newEmptyString += guess.charAt(0);\n } else if (emptyString.charAt(i) != '_') {\n newEmptyString += CategorySelector.word.charAt(i);\n } else {\n newEmptyString += \"_\";\n }\n }\n\n if (emptyString.equals(newEmptyString)) {\n count++;\n paintHangman();\n } else {\n emptyString = newEmptyString;\n }\n if (emptyString.equals(CategorySelector.word)) {\n System.out.println(\"Correct! You win! The word was \" + CategorySelector.word);\n }\n }", "String replaceInString(String s) {\n\t\tString newS = s.replaceAll(\"[a-zA-Z]+\", \"WORT\");\n\t\tif (newS == s) {\n\t\t\tSystem.out.println(\"gleich\");\n\t\t}\n\t\treturn newS;\n\t}", "public static String getHint(String secret, String guess) {\n \tint bulls=0, cows=0;\n int[] map=new int[10];\n for(int i=0; i<secret.length(); i++){\n \tif(secret.charAt(i)==guess.charAt(i)){\n \t\tbulls++;\n \t}else{\n \t\tmap[secret.charAt(i)-'0']++;\n \t}\n }\n for(int i=0; i<guess.length(); i++){\n \tif(guess.charAt(i)!=secret.charAt(i)){\n \t\tif(map[guess.charAt(i)-'0']!=0){\n \t\t\tcows++;\n \t\t\tmap[guess.charAt(i)-'0']--;\n \t\t}\n \t}\n }\n \treturn bulls+\"A\"+cows+\"B\";\n }", "public String hiddenWord() {\n int hiddenWordUnderscores = 0;\n String hiddenWord = \"\";\n StringBuilder newHiddenWord = new StringBuilder(\"\");\n \n for (int i = 0; i < this.word.length(); i++) {\n hiddenWord += \"_\";\n newHiddenWord.append(\"_\");\n }\n \n // GO THROUGH EACH CHARACTER IN THIS.WORD AND SEE IF IT MATCHES THE GUESS. \n // IF IT DOES, REPLACE THE UNDERSCORE AT THAT INDEX WITH THE GUESSED LETTER.\n for (int i = 0; i < this.word.length(); i++) {\n char currentChar = this.word.charAt(i);\n String currentLetter = \"\" + currentChar;\n \n // IF THE CURRENT LETTER IS IN THE WORD\n if (this.guessedLetters.contains(currentLetter)) {\n // GET THE CURRENT UNDERSCORE OF THE INDEX WE ARE IN, SET IT TO currentChar\n newHiddenWord.setCharAt(i, currentChar);\n }\n } \n hiddenWord = newHiddenWord.toString();\n\n return hiddenWord;\n \n }", "public abstract boolean guess(String guess);", "public static String starOut(String str) {\r\n\t\t StringBuilder sb = new StringBuilder(\"\");\r\n\t\t for(int i = 0; i < str.length(); i++) {\r\n\t\t int left = (i >= 1) ? i - 1 : i;\r\n\t\t int right = (i < str.length() - 1) ? i + 1 : i;\r\n\t\t if(str.charAt(left) != '*' && str.charAt(right) != '*' && str.charAt(i) != '*') {\r\n\t\t sb.append(str.charAt(i));\r\n\t\t }\r\n\t\t }\r\n\t\t return sb.toString();\r\n\t\t}", "public String scramble(String word)\n {\n int i, j;\n String SwappedString = \"\";\n String first, middle, last;\n int wordLength = word.length();\n for (int k = 0; k < wordLength; k++)\n {\n i = generator.nextInt(wordLength-1);\n j = i+1 + generator.nextInt(wordLength-i-1);\n first = word.substring(0,i);\n middle = word.substring(i+1,j);\n if (j != wordLength)\n {\n last = word.substring(j+1);\n }\n else\n {\n last = \"\";\n }\n SwappedString = first + word.substring(j, j + 1) + middle + word.substring(i, i + 1) + last;\n word = SwappedString;\n }\n return SwappedString;\n }", "public String getGoodWordStartingWith(String s) {\n Random random = new Random();\n String x = s;\n TrieNode temp = searchNode(s);\n if (temp == null){\n return \"noWord\";\n }\n // get a random word\n ArrayList<String> charsNoWord = new ArrayList<>();\n ArrayList<String> charsWord = new ArrayList<>();\n String c;\n\n while (true){\n charsNoWord.clear();\n charsWord.clear();\n for (String ch: temp.children.keySet()){\n if (temp.children.get(ch).isWord){\n charsWord.add(ch);\n } else {\n charsNoWord.add(ch);\n }\n }\n System.out.println(\"------>\"+charsNoWord+\" \"+charsWord);\n if (charsNoWord.size() == 0){\n if(charsWord.size() == 0){\n return \"sameAsPrefix\";\n }\n s += charsWord.get( random.nextInt(charsWord.size()) );\n break;\n } else {\n c = charsNoWord.get( random.nextInt(charsNoWord.size()) );\n s += c;\n temp = temp.children.get(c);\n }\n }\n if(x.equals(s)){\n return \"sameAsPrefix\";\n }else{\n return s;\n }\n }", "public String getCorrectionWord(String misspell);", "public static void main(String[] args) {\n System.out.println(censorLetter(\"computer science\", 'e')); //\"comput*r sci*nc*\"\n System.out.println(censorLetter(\"trick or treat\", 't')); //\"*rick or *rea*\"\n }", "public static int checkChar(char guessChar, String guessWord) {\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < guessWord.length(); i++) {\n\t\t\tif(guessWord.charAt(i) == guessChar) {\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\treturn sum;\n\t}", "public static void playGame(String word) {\n DrawingPanel canvas = new DrawingPanel(500, 500);\n Graphics pen = canvas.getGraphics();\n \n //define flag for while loop\n boolean gameOver = false;\n \n //create a boolean array with elements equal to the number of letters to guess\n boolean[] letters = new boolean[word.length()];\n \n //Create a string that stores all letters that have been guessed\n String guesses = \"\";\n \n //create an int variable that stores the number of wrong guesses\n int wrongGuesses = 0;\n \n //create a scanner object that reads in user guesses.\n Scanner console = new Scanner(System.in);\n \n //meat of the game\n while(!gameOver) {\n \n //prompt user for a guess\n System.out.print(\"Guess a letter: \");\n char guess = Character.toLowerCase(console.next().charAt(0));\n \n \n //check to see if the user has guessed this letter before\n boolean freshGuess = true;\n for(int index = 0; index < guesses.length(); index++) {\n System.out.println(\"Guesses[i] = \" + guesses.charAt(index) + \", Guess = \" + guess);\n if(guess == guesses.charAt(index)) { \n freshGuess = false;\n }\n }\n \n //if the guess is fresh, check if it is correct\n boolean correctGuess = false;\n if(freshGuess) {\n \n for(int index = 0; index < word.length(); index++) {\n if(guess == word.charAt(index)) { \n letters[index] = true;\n correctGuess = true;\n }\n }\n \n if(correctGuess) {\n System.out.println(\"Good guess! The word is:\");\n gameOver = !printGuess(letters, word);\n }\n \n else{\n System.out.println(\"Oops! Letter \" + guess + \" is not there. Adding to hangman... \");\n draw(wrongGuesses, pen);\n wrongGuesses++;\n if(wrongGuesses == 6) { gameOver = true; }\n }\n \n guesses += guess;\n }\n \n //report repeated guess\n else { \n System.out.println(\"You have already guessed \" + guess + \".\");\n }\n \n \n }\n \n //The game is over\n System.out.println(\"Game Over!\");\n \n }", "public boolean guess(char letter)\n\t{\n\t\treturn false;\n\t}", "public char getUserGuess(){\n char letter = '\\u0000';\n if(mGuessEditText.getText().toString().toLowerCase().length() != 0)\n letter = mGuessEditText.getText().toString().toLowerCase().charAt(0);\n return letter;\n }", "public static String replace(String line, char oldChar, char newChar) {\n String result = \"\";\n if (line != null) {\n for (int j = 0; j < line.length(); j++) {\n if (line.charAt(j) == oldChar) {\n result += newChar;\n } else {\n result += line.charAt(j);\n }\n }\n }\n return result;\n }", "public BaseSweetWord getMyCharacter(String character) {\n\t\tBaseSweetWord mychar = pool.get(character);//享元的关键实现\n\t\tif(mychar == null){\n\t\t\tmychar = new SpecialSweetWord(character);\n\t\t\tpool.put(character, mychar);\n\t\t}\n\t\t\n\t\treturn mychar;\n\t\t\n\t}", "private String rebef(String s, char a, char b){\n\t\t\tStringBuilder tmp = new StringBuilder();\t\t\n\t\t\tboolean copy = true;\n\t\t\tfor (int i = 0; i < s.length(); ++i){\n\t\t\t\tif(s.charAt(i) == a) copy = false;\n\t\t\t\tif(copy) tmp.append(s.charAt(i));\n\t\t\t\tif(s.charAt(i) == b) copy = true;\n\t\t\t}\n\t\t\treturn tmp.toString();\n\t\t}", "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 }", "String selectRandomSecretWord();", "public static String userInput()\r\n {\r\n Scanner link = new Scanner(System.in);\r\n String word = link.next();\r\n char[] chars = word.toCharArray();\r\n boolean checkWord = false; \r\n for(int i = 0; i < chars.length; i++)\r\n {\r\n char c = chars[i];\r\n if((c < 97 || c > 122))\r\n {\r\n checkWord = true;\r\n }\r\n }\r\n link.close();\r\n if(!checkWord)\r\n {\r\n return word;\r\n } \r\n else \r\n System.out.println(\"Not a valid input\");\r\n return null;\r\n }", "public char askForLetter() {\n\t\tchar guessLetter;\n\t\tboolean validInput = false;\n\t\twhile (validInput == false) {\n\t\t\tSystem.out.println(\"Enter a letter: \");\n\t\t\tString guessLine = keyboard.nextLine();\n\t\t\tif (guessLine.length() == 0 || guessLine.length() >= 2) {\n\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tguessLine = guessLine.toLowerCase();\n\t\t\t\tguessLetter = guessLine.charAt(0);\n\t\t\t\tif(guessLetter >= 'a' && guessLetter <= 'z') {\n\t\t\t\t\tSystem.out.println(\"You entered: \" + guessLetter);\n\t\t\t\t\tvalidInput = true;\n\t\t\t\t\treturn(guessLetter);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn(' ');\n\t\t\n\t\t\n\t}", "public WordsToGuess(String w)\n\t{\n\t\tword = w;\n\t}", "public static String Manchester(String input) {\n ArrayList<String> out = new ArrayList<>();\n out.add(\"UP\");\n for (int i = 0; i < input.length(); i++) {\n if ((Character.toString(input.charAt(i))).equals(\"1\")) {\n String before = out.get(out.size() - 1);\n if (before.equals(\"UP\")) {\n out.add(\"DOWN\");\n } else {\n out.add(\"UP\");\n }\n out.add(\"UP\");\n } else {\n String before = out.get(out.size() - 1);\n if (before.equals(\"DOWN\")) {\n out.add(\"UP\");\n } else {\n out.add(\"DOWN\");\n }\n out.add(\"DOWN\");\n }\n }\n String output = ArraytoString(out);\n return output;\n }", "public void bewegeKamel(Charakter charakter);", "public String displayWord(char letter){\n\t\tString printWord;\r\n\t\t\r\n\t\tif(correctList.contains(letter)){\r\n\t\t\tfor(int i=0; i<display.length; i++){\r\n\t\t\t\tif(gameLetter[i]==letter){\r\n\t\t\t\t\tdisplay[i] = String.valueOf(gameLetter[i]);}\r\n\t\t\t}\r\n\t\t\t StringBuffer sb = new StringBuffer();\r\n\t\t\t for(int i = 0; i < display.length; i++)\r\n\t\t\t { \r\n\t\t\t sb. append(display[i]);\r\n\t\t\t }\r\n\t\t\t printWord = sb.toString();\r\n \t\t}\r\n\t\telse{\r\n\t\t\t StringBuffer sb = new StringBuffer();\r\n\t\t\t for(int i = 0; i < display.length; i++)\r\n\t\t\t { \r\n\t\t\t sb. append(display[i]);\r\n\t\t\t }\r\n\t\t\t printWord = sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tprintHangman();\r\n\t\t\r\n\t\treturn printWord;\r\n\t}", "public static char getInput( Scanner scan, String x ){\n if (x.length()>0){\n char c1=x.charAt(0); //1st character of string (\"C\")\n char c2=x.charAt(1); //2nd character of string (\"c\")\n scan=new Scanner(System.in);\n String input= scan.nextLine(); //takes in a string\n char i1=input.charAt(0);//takes 1st letter of input\n \n if (input.length()==1){\n if(i1==c1)\n { //if the 1st inputted character is equal to character 1 (C)\n \n return c1; //return that value\n }\n else if (i1==c2)//if the 1st inputted character is equal to character 2 (c)\n { \n return c2; //return that value\n }\n }\n else { //if more than one character entered\n System.out.println(\"You should enter exactly one character. Enter 'C' or 'c' to continue. Try again- \");\n return getInput(scan, x); //reruns\n }\n }\n \n System.out.print(\"You did not enter a characer from the list 'Cc' try again- \"); //if C or c is not entered\n return getInput(scan,x); //reruns\n \n }", "private String decideLetter(Cell c) {\n String s = \"\";\n if (!c.getHasBoat() && !c.getShotAt()) {\n s = \"-\";\n } else if (!c.getHasBoat() && c.getShotAt()) {\n s = \"M\";\n } else if (c.getHasBoat() && !c.getShotAt()) {\n s = \"B\";\n } else {\n s = \"H\";\n }\n return s;\n }", "private String readGuess() {\n\t\tString unsafeGuess = readLine(\"Your Guess: \").trim().toUpperCase();\n\t\tif (!unsafeGuess.matches(\"[a-zA-z]\") || unsafeGuess.length() != 1) {\n\t\t\tprintln(\"Please enter a single letter.\");\n\t\t\treturn readGuess();\n\t\t} else {\n\t\t\treturn unsafeGuess.toUpperCase();\n\t\t}\n\t}", "public static char getInput(Scanner x, String y){ //adding method getInput #1 \n String input1=x.next(); //accepting user input\n while(true){ //while loop to keep running it back around to check for the character number\n while(input1.length()!=1){ //while loop that forces user to enter 1 int\n System.out.print(\"You should enter exactly one character- \"); //telling user they need to enter 1 character\n input1=x.next(); //accepting user input\n }//end of while loop for if user enter more than 1 input\n int i=0; //declaring int which will act as a sentinel \n char test; //declaring char \n while(i<y.length()){ //while loop that runs the number of times the length of the string is\n test=y.charAt(i); //making test equal to char method, to check each letter of string y\n if(test == input1.charAt(0)){//when the chars finally are equivalent\n return input1.charAt(0); //returns the value\n }//end of if statement \n i++; //counter to run the loop the length of the string\n }//end of while loop\n System.out.print(\"You should enter the right characters. try again- \"); //informing user that they did not enter the right input\n input1=x.next(); //accepting user input\n }//end of while loop\n }", "public void setAsteroid(char newChar) {\r\n\t\tthis.asteroid = newChar;\r\n\t}", "public boolean guessIsRight(String secretWord, char guess){\n\t\tboolean isCorrect = false;\n\t\tfor (int i=0; i<secretWord.length(); i++){\n\t\t\tchar secretLetter = secretWord.charAt(i);\n\t\t\tif (secretLetter == guess){\n\t\t\t\t isCorrect = true;\n\t\t\t}\n\t\t}\n\t\treturn isCorrect;\n\t}", "public static String duplicate(String word){\n\t\tStringBuilder result = new StringBuilder(word);\n\t\tguessPW(result.append(word).toString());\n\t\treturn result.toString();\n\t}", "public static String maskChar(String getString, char getKeyChar)\n {\n final char mask = '$';\n String maskedString = \"\";\n \n //Checks for key character in original string\n int i = 0; \n while ( i < getString.length())\n {\n //Checks first character of original string\n while (i == 0)\n {\n \n if (getString.charAt(i) != getKeyChar)\n {\n maskedString = getString.substring(0,1); \n }\n else if (getString.charAt(i) == getKeyChar)\n {\n maskedString = maskedString + mask;\n }\n i++;\n } \n \n if (getString.charAt(i) == getKeyChar)\n {\n maskedString = maskedString + mask; \n }\n if (getString.charAt(i) != getKeyChar)\n {\n maskedString = maskedString + getString.substring(i, (i + 1));\n }\n i++;\n }\n \n System.out.println(\"\\rString with '\" + getKeyChar + \"' masked: \");\n return maskedString;\n }", "public static MazeMinion getMazeMinion(char inputChar)\n {\n return Arrays.stream(MazeMinion.values()).filter(res -> res.inputChar == inputChar).findFirst()\n .orElseThrow(() -> new RuntimeException());\n }", "public void makeGuess(char letter) {\n\t\tif (isGameOver() || hasGuessedAlready(letter)) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tguessesMade.add(letter);\n\t\tif (wordToGuess.indexOf(letter) == -1) { // letter is not in wordToGuess\n\t\t\tnumIncorrectGuessesMade++;\n\t\t}\n\t}", "public static char inputChar(String p) {\n String c;\n while (true) {\n System.out.print(p);\n c = in.nextLine();\n if (c.length() == 1) {\n return c.charAt(0);\n } else {\n System.err.print(\"Must enter character, enter again! \");\n }\n }\n }", "protected char tryReduceChar(char letter) {\n int comp = (letter < 97) ? Character.toLowerCase(letter) : letter;\n return (Integer.compare(comp, 97) > 0) ? (char) (letter - 1) : letter;\n }", "private String repMessageCharacter() {\n\t\tString temp = \"\";\n\t\tString interpret = \"\";\n\t\tint messL = message.length();\n\t\tint polyL = polybius.length;\n\t\tint polyR = polybius[0].length;\n\t\tif(this.key != \"\") {\n\t\t\timpArray = new String[messL];\n\t\t\tfor(int i = 0; i < messL; i++) {\n\t\t\t\ttemp = \"\" + message.charAt(i);\n\t\t\t\tfor(int j = 0; j < polyL;j++) {\n\t\t\t\t\tfor(int k = 0; k < polyR; k++) {\n\t\t\t\t\t\tif(temp.equalsIgnoreCase(polybius[j][k])) {\n\t\t\t\t\t\t\timpArray[i] = columnRowIndex(j,k);\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\tfor(int i = 0; i < message.length(); i++) {\n\t\t\t\tinterpret += impArray[i];\n\t\t\t}\n\t\t}else {\n\t\t\tinterpret = \"\";\n\t\t}\n\t\t//System.out.println(interpret);\n\t\treturn interpret;\n\t}", "public static char getInput(Scanner x, String y, int z){ //adding method getInput #2\n String input2=x.next(); //accpeting user input\n int c=0; //declaring sentinel c \n while(c<z){ //while statement that only runs for 5 tries \n while(input2.length()!=1){//while loop that forces user to enter 1 int\n System.out.print(\"You should enter exactly one character- \"); //telling user they need to enter 1 character\n input2=x.next(); //accepting user input\n c++; //counter that limits the number of tries\n } //end of while loop that forces user to enter 1 int \n int i=0; //declaring in that will act as a sentinel \n char test; //declaring char \n while(i<y.length()){ //while loop that runs the number of times the length of the string is\n test=y.charAt(i); //making test equal to char method, to test each letter of string y \n if(test == input2.charAt(0)){//when the chars are finally equivalent\n return input2.charAt(0); //returns the value\n }//end of if statment \n i++; //counter to run the loop the length of the string \n }//end of while loop\n System.out.print(\"You should enter the right characters. Try again- \"); //telling user they need to enter the right character \n input2=x.next(); //accepting user input \n c++; //counter to limit the number of tries \n }\n System.out.println(\"You failed after 5 tries\"); //when the user fails after 5 tries \n return ' '; //terminating the program \n }", "private String searchString(String inWord)\n {\n String line = null;\n StringBuffer rtn = new StringBuffer();\n int len = inWord.length();\n boolean found = false;\n\n if(len == 1)\n {\n if(Character.isDigit(inWord.charAt(0)))\n {\n rtn.append(inWord).append(\"I\");\n found = true;\n } // fi\n\n else if(Character.isLetter(inWord.charAt(0)))\n {\n rtn.append(inWord.toLowerCase()).append(\"S\");\n found = true;\n } // else fi\n } // fi\n\n if(!found)\n {\n int\tnum_A = 0; // Upper case\n int\tnum_L = 0; // Lower case\n int\tnum_N = 0; // Numbers\n int\tnum_P = 0; // Punctuation (numeric)\n int\tnum_Q = 0; // Quotes\n int\tnum_O = 0; // Other\n char last_ch = ' ';\n\n for(int i = 0; i < len; i++)\n {\n if((i == 0) && (inWord.charAt(i) == '-'))\n num_L++;\n\n else if(Character.isLowerCase(inWord.charAt(i)))\n num_L++;\n\n else if(Character.isUpperCase(inWord.charAt(i)))\n num_A++;\n\n else if(Character.isDigit(inWord.charAt(i)))\n num_N++;\n\n else if((inWord.charAt(i) == '=')||(inWord.charAt(i) == ':') ||\n (inWord.charAt(i) == '+')||(inWord.charAt(i) == '.') ||\n (inWord.charAt(i) == ','))\n num_P++;\n\n else if((inWord.charAt(i) == '\\'') ||\n (inWord.charAt(i) == '`') || (inWord.charAt(i) == '\"'))\n num_Q++;\n\n else\n num_O++;\n\n last_ch = inWord.charAt(i);\n } // for\n\n int pos = 0;\n if((len - ntail) > 0)\n pos = len - ntail;\n\n rtn.append(inWord.substring(pos).toLowerCase());\n\n if((num_L + num_Q) == len)\n rtn.append(\"\");\n\n else if((num_A + num_Q) == len)\n rtn.append(\"A\");\n\n else if((num_N + num_P + num_Q) == len)\n rtn.append(\"N\");\n\n else if((num_L + num_A + num_Q) == len)\n rtn.append(\"B\");\n\n else if((num_A + num_N + num_P + num_Q) == len)\n rtn.append(\"C\");\n\n else if((num_L + num_N + num_P + num_Q) == len)\n rtn.append(\"E\");\n\n else if((num_A + num_L + num_N + num_P + num_Q) == len)\n rtn.append(\"D\");\n\n else if((num_O == 0) && (last_ch == '+'))\n rtn.append(\"F\");\n\n else\n rtn.append(\"O\");\n } // else\n\n rtn.append(\"_\");\n\n return(rtn.toString());\n }", "public String repeatCharacters(String word) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n sb.append(c);\n if (random.nextFloat() <= 0.5) {\n for (int j = 0; j < random.nextInt(MAX_REPEAT_TIMES); j++) {\n sb.append(c);\n }\n }\n }\n return sb.toString();\n }", "public static String ImprovedGreedy(String X,String Y)\r\n\t{\r\n\t\t\r\n\t\tint[]help=new int[26];\r\n\t\tint m=X.length(),n=Y.length();\r\n\t\tint place;\r\n\t\tfor(int i=0;i<m;i++)//O(min(m,n))\r\n\t\t{\r\n\t\t\tplace=X.charAt(i)-'a';\r\n\t\t\thelp[place]++;\r\n\t\t}\r\n\t\t\r\n\t\tString ans=\"\";\r\n\t\tint start=0,index=0,i=0;\r\n\t\twhile(i<n&&index<m)\r\n\t\t{\r\n\t\t\tplace = Y.charAt(i) - 'a';\r\n\t\t\tif(help[place]>0)\r\n\t\t\t{\r\n\t\t\t\tindex=X.indexOf(Y.charAt(i),start);\r\n\t\t\t\tif(index!=-1)\r\n\t\t\t\t{\r\n\t\t\t\t\tans=ans.concat(\"\"+Y.charAt(i));\r\n\t\t\t\t\tstart=index+1;\r\n\t\t\t\t\thelp[place]--;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\thelp[place]=0;\r\n\t\t\t}\r\n\t\t\t++i;\r\n\t\t}\r\n\t\treturn ans;\r\n\t}", "public char test(char c) {\n\t\tchar[] lower = { '-', '+' };\n\t\tchar[] higher = { '*', '/' };\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tif (lower[i] == c) {\n\t\t\t\treturn 'l';\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tif (higher[i] == c) {\n\t\t\t\treturn 'h';\n\t\t\t}\n\t\t}\n\t\t// just to make the method work , no meaning for the 'n'\n\t\treturn 'n';\n\t}", "private String insertCharAt(String input_from_user, char get_char, int position) {\n\tString compute = null;\n\tif(position == 0){\n\t\t compute = get_char + input_from_user.substring(0, input_from_user.length());\n\t}\n\telse{\n\t\t compute = input_from_user.substring(0,position)+get_char+input_from_user.substring(position,input_from_user.length());\n\t}\n\treturn compute;\n}", "public String scramble(String wordToScramble){\n\t\tString scrambled = \"\";\n\t\tint randomNumber;\n\n\t\tboolean letter[] = new boolean[wordToScramble.length()];\n\n\t\tdo {\n\t\t\trandomNumber = generator.nextInt(wordToScramble.length());\n\t\t\tif(letter[randomNumber] == false){\n\t\t\t\tscrambled += wordToScramble.charAt(randomNumber);\n\t\t\t\tletter[randomNumber] = true;\n\t\t\t}\n\t\t} while(scrambled.length() < wordToScramble.length());\n\n\t\tif(scrambled.equals(wordToScramble))\n\t\t\tscramble(word);\n\n\t\treturn scrambled;\n\t}", "public char Get_Character() {\n\n\n\n /* Hex equivalent of Morse code is formed by left-shifting */\n /* 1 or 0 into hex_code. The 0x01 initial value marks the */\n /* beginning of the bit field, 1 being a dit and 0 a dash. */\n\n /* Get the level of a fragment from PLL detector. A fragment */\n /* is a small fraction of a morse code element, there are from */\n /* 8 to 30 frags/element depending on Morse speed (30-10 w.p.m) */\n while(true) {\n\t/* Decide on a mark or space fragment */\n\t/* with a hysterisis on the threshold */\n\tGet_Fragment();\n\n\t/* Increment mark or space count */\n\tif( isFlagSet(MARK_TONE) )\n\t mark_cnt++;\n\telse\n\t space_cnt++;\n\n\t/* If a mark element is too long, limit count */\n\tif( mark_cnt > unit_elem * 8 ) mark_cnt = unit_elem * 8;\n\n\t/* If a space element is too long, limit count */\n\tif( space_cnt > unit_elem * 16 ) space_cnt = unit_elem * 16;\n\n\t/* Process mark and space element counts to decode Morse */\n\tswitch( new_context )\n\t{\n\t case MARK_SIGNAL: /* Process mark element */\n\n\t\t/* If fragment is a mark */\n\t\tif( isFlagSet(MARK_TONE) )\n\t\t{\n\t\t /* If mark element is too long */\n\t\t /* reset and wait for a space */\n\t\t if( mark_cnt >= (unit_elem * 8) )\n\t\t {\n\t\t\t/* Clear space counter */\n\t\t\tspace_cnt = 0;\n\n\t\t\t/* Clear hex character code */\n\t\t\thex_code = 0x01;\n\n\t\t\t/* Wait for a space fragment */\n\t\t\tnew_context = WAIT_FOR_SPACE;\n\n\t\t } /* if( mark_cnt >= unit_elem * 8 ) */\n\n\t\t} /* if( isFlagSet(MARK_TONE) ) */\n\t\telse\n\t\t{\n\t\t /* Clear space count to 1 */\n\t\t space_cnt = 1;\n\n\t\t /* Switch to processing inter-element space */\n\t\t new_context = ELEM_SPACE;\n\t\t}\n\n\t\tbreak;\n\n\t case ELEM_SPACE: /* Process inter-element space */\n\n\t\t/* If space reaches 1/2 units its an inter-element space */\n\t\tif( ((space_cnt * 2) >= unit_elem) ||\n\t\t\tisFlagSet(MARK_TONE) )\n\t\t{\n\t\t /* If mark is < 2 units its a dit else a dash */\n\t\t if( (mark_cnt < unit_elem * 2) )\n\t\t {\n\t\t\t/* Insert dit and increment mark frag and elem count */\n\t\t\thex_code = (hex_code << 1) | 0x01;\n\t\t\tmark_frag_cnt += mark_cnt;\n\t\t\tmark_elem_cnt += 1; /* A dit is 1 element long */\n\t\t }\n\t\t else\n\t\t {\n\t\t\t/* Insert dash and increment mark frag and elem count */\n\t\t\thex_code <<= 1;\n\t\t\tmark_frag_cnt += mark_cnt;\n\t\t\tmark_elem_cnt += 3; /* A dash is 3 elements long */\n\t\t } /* if( mark_cnt < unit_elem * 2 ) */\n\n\t\t /* Clear mark count */\n\t\t mark_cnt = 0;\n\n\t\t /* Wait for inter-char space count */\n\t\t if( isFlagClear(MARK_TONE) )\n\t\t\tnew_context = CHAR_SPACE;\n\t\t else\n\t\t {\n\t\t\tspace_cnt = 0;\n\t\t\tnew_context = MARK_SIGNAL;\n\t\t }\n\n\t\t} /* if( (space_cnt * 2) >= unit_elem || ) */\n\n\t\tbreak;\n\n\t case CHAR_SPACE: /* Wait for inter-char space */\n\n\t\t/* If fragment is space */\n\t\tif( isFlagClear(MARK_TONE) )\n\t\t{\n\t\t /* If space reaches 2 units its inter-character */\n\t\t if( space_cnt >= (unit_elem * 2) )\n\t\t {\n\t\t\t/* Switch to waiting for inter-word space */\n\t\t\tnew_context = WAIT_WORD_SPACE;\n\n\t\t\t/* Return decoded Morse char */\n char c = Hex_to_Ascii(hex_code);\n\n /* Clear hex character code */\n\t\t\thex_code = 0x01;\n\n return c;\n\t\t }\n\n\t\t} /* if( isFlagClear(MARK_TONE) ) */\n\t\telse /* Its the end of inter-element space */\n\t\t{\n\t\t /* Count up space frags and elements */\n\t\t space_frag_cnt += space_cnt;\n\t\t space_elem_cnt++; /* Inter-element space */\n\n\t\t /* Clear space cnt and process marks */\n\t\t space_cnt = 0;\n\t\t new_context = MARK_SIGNAL;\n\t\t}\n\n\t\tbreak;\n\n\t case WAIT_WORD_SPACE: /* Wait for an inter-word space */\n\n\t\t/* If fragment is space */\n\t\tif( isFlagClear(MARK_TONE) )\n\t\t{\n\t\t /* If space count reaches 5, its word space */\n\t\t if( space_cnt >= (unit_elem * 5) )\n\t\t\tnew_context = WORD_SPACE;\n\n\t\t} /* if( isFlagClear(MARK_TONE) ) */\n\t\telse /* Its the end of inter-character space */\n\t\t{\n\t\t /* Adapt to incoming signal */\n\t\t Adapt_Decoder();\n\n\t\t /* Switch to processing mark signal */\n\t\t space_cnt = 0;\n\t\t new_context = MARK_SIGNAL;\n\t\t}\n\n\t\tbreak;\n\n\t case WORD_SPACE: /* Process Inter-word space */\n\n\t\t/* If fragment is space */\n\t\tif( isFlagClear(MARK_TONE) )\n\t\t{\n\t\t if( space_cnt >= (unit_elem * 7) )\n\t\t {\n\t\t\tnew_context = WAIT_FOR_MARK;\n\t\t\treturn( ' ' );\n\t\t }\n\t\t}\n\t\telse\n\t\t{\n\t\t /* Adapt to incoming signal */\n\t\t Adapt_Decoder();\n\n\t\t /* Switch to processing mark signal */\n\t\t space_cnt = 0;\n\t\t new_context = MARK_SIGNAL;\n\t\t return( ' ' );\n\t\t}\n\n\t case WAIT_FOR_MARK: /* Process no-signal space */\n\n\t\t/* If fragment is mark switch to processing marks */\n\t\tif( isFlagSet(MARK_TONE) )\n\t\t{\n\t\t space_cnt = 0;\n\t\t new_context = MARK_SIGNAL;\n\t\t}\n\n\t\tbreak;\n\n\t case WAIT_FOR_SPACE: /* Wait for space after long dash */\n\n\t\t/* If fragment is space, switch to counting space */\n\t\tif( isFlagClear(MARK_TONE) )\n\t\t{\n\t\t space_cnt = 1;\n\t\t mark_cnt = 0;\n\t\t new_context = WAIT_FOR_MARK;\n\t\t}\n\n\t\tbreak;\n\n\t default: /* Set context if none */\n\t\tif( isFlagSet(MARK_TONE) )\n\t\t new_context = MARK_SIGNAL;\n\t\telse\n\t\t new_context = WAIT_FOR_MARK;\n\n\t} /* End of switch( new_context ) */\n\n } /* while(1) */\n\n\n }", "public static String engToPig( String w ) {\r\n\tString result = \"\";\r\n\tif (w.substring(0,1).equals(\"y\")) {// if w begins with 'y'\r\n\t result = w.substring(1) + \"yay\";\r\n\t} \r\n\telse if (beginsWithVowel(w)) { //if w begins with a vowel\r\n\t result = w + \"way\"; //append way to w\r\n\t}\r\n else { //if w begins with consonant(s)\r\n\t result = w.substring(w.indexOf(firstVowel(w))) + w.substring(0,w.indexOf(firstVowel(w))) + \"ay\"; //take the first occurrence of a vowel, then the consonant(s) before that vowel, and add ay\r\n\t}\r\n if (beginsWithCapital(w)) {\r\n\t result = result.substring(0,1).toUpperCase() + result.substring(1).toLowerCase();\r\n\t}\r\n\tif (hasA(w,\".\")) {\r\n\t result = result.substring(0,result.indexOf(\".\")) + result.substring(result.indexOf(\".\") + 1) + \".\";\r\n\t }\r\n\tif (hasA(w,\",\")) {\r\n\t result = result.substring(0,result.indexOf(\",\")) + result.substring(result.indexOf(\",\") + 1) + \",\";\r\n\t }if (hasA(w,\"?\")) {\r\n\t result = result.substring(0,result.indexOf(\"?\")) + result.substring(result.indexOf(\"?\") + 1) + \"?\";\r\n\t }if (hasA(w,\"!\")) {\r\n\t result = result.substring(0,result.indexOf(\"!\")) + result.substring(result.indexOf(\"!\") + 1) + \"!\";\r\n\t }\r\n\treturn result;\r\n }", "public static void main(String[] args) {\nString word = \"aabbaaaccbbaacc\";\n String result = \"\";\n\n for (int i = 0; i <=word.length()-1 ; i++) {\n\n if(!result.contains(\"\"+word.charAt(i))){ //if the character is not contained in the result yet\n result+=word.charAt(i); //then add the character to the result\n }\n\n }\n System.out.println(result);\n\n\n\n }", "public char getCharacter(boolean defender){\n if (defender){\n if (this.is_Empty()){\n return '~';\n }\n else if(this.is_shot()){\n return '*';\n }\n else{\n return 'B';\n }\n }\n else {\n if (!this.is_shot()){\n return '.';\n }\n else if (!this.is_Empty()){\n return '*';\n }\n else {\n return '~';\n }\n }\n }", "private void updateGameState(String guessedLetter) {\n\t\tif (guessedWord.contains(guessedLetter)) {\n\t\t\treturn;\n\t\t} else if (actualWord.contains(guessedLetter)) {\n\t\t\tprintln(\"That guess is correct.\");\n\t\t\tupdateGuessedWord(guessedLetter);\n\t\t\tcanvas.displayWord(guessedWord);\n\t\t} else {\n\t\t\tbadGuessCount++;\n\t\t\tcanvas.noteIncorrectGuess(guessedLetter.charAt(0));\n\t\t\tprintln(\"There is no \" + guessedLetter + \" in the word.\");\n\t\t\t//whatever other action that will happen for bad guesses can go here\n\t\t}\n\t}", "public String ReplaceCharacterwithAnotherCharacter(String str)\n {\n str=str.replace(\"d\",\"f\");\n str=str.replace(\"l\",\"t\");\n return str;\n }", "public void userMessageInput() {\n //declaring and initializing new userScanner variable\n Scanner userScanner = new Scanner(System.in);\n //displayed message to the user with the updating replacedMovie variable\n System.out.println(\"You are guessing :\" + this.replacedMovie);\n //displaying message with total number of wrong trials (guessed letters) to the user ,\n // together with the wrong guessed letter/s.\n getAllWrongLetters(); // calls method to dispaly the whole list of wrong guessed letters.\n System.out.println(\"You have guessed \" + this.wrongLettersCount + \" wrong letter(s): \" + allWrongLetters);\n //displaying a message asking the user to enter a guessed letter\n System.out.println(\"Guess a Letter\");\n //storing the entered letter in userEnteredLetter variable\n this.setUserGuessedLetter(userScanner.next().charAt(0));\n\n //return userEnteredLetter; // returning userEnteredLetter variable\n\n }", "public static String getInput(Scanner scan, String string, int trial){\n int hits = 0;\n //create loop that runs until Giant is dead\n while(hits<trial){\n String fight = \"\";\n fight= scan.next();\n if(fight.equals(\"A\") || fight.equals(\"a\")){\n int hit = (int)(Math.random()*11);\n if (hit>=5){\n System.out.println(\"Critical Hit!\");\n hits++;\n }\n else{\n System.out.println(\"Gosh! How did you miss it!\");\n }\n }\n //if user chooses to run\n if (fight.equals(\"E\") || fight.equals(\"e\")){\n int flee = (int)(Math.random()*11);\n if (flee == 10){\n System.out.println(\"You successfully escaped!\");\n break;\n }\n else{\n System.out.println(\"You failed to escape\");\n }\n }\n if(!fight.equals(\"E\") || !fight.equals(\"e\") || !fight.equals(\"A\") || !fight.equals(\"a\")){\n System.out.println(\"Excecuted by the Giant, Game Over!\");\n System.exit(1);\n }\n if(hits<trial){\n System.out.println(\"Enter A or a to ATTACK, E or e to ESCAPE, anything else to YIELD\");\n \n }\n }\n return string;\n }", "public static String Caesarify(String Normal, int InputNo) {\n Scanner input = new Scanner(System.in);\r\n int TotalChar = Normal.length(); //total length\r\n String NewNormal = Normal;\r\n String Empty =\"\";\r\n //calculation to get the letters after shift\r\n StringBuffer rtnString = new StringBuffer();\r\n\r\n for (int n = 0; n < TotalChar; n++) {\r\n /*while (InputNo >=27) {\r\n System.out.println(\"Please input your number\");\r\n InputNo = input.nextInt();\r\n }*/\r\n String fixChar = Normal.substring(n, n + 1);\r\n int AlphaNo = shiftAlphabet(0).indexOf(fixChar);\r\n String AlphaChar = shiftAlphabet(InputNo).substring(AlphaNo, AlphaNo + 1);\r\n //rtnString.append(AlphaChar);\r\n for(int j=0;j<AlphaChar.length();j++) {\r\n char vowel = (AlphaChar).charAt(j);\r\n if (vowel == 'A' || vowel == 'E' || vowel == 'I' || vowel == 'O' || vowel == 'U' || vowel == 'Y') {\r\n rtnString.append(\"OB\");\r\n }\r\n rtnString.append(AlphaChar.charAt(j));\r\n }\r\n }\r\n System.out.println(rtnString);\r\n return String.valueOf(rtnString);\r\n }", "public void guess(char input) {\r\n\t\t\r\n\t\tBoolean correctGuess = false; //Checks for\r\n\t\t\r\n\t\tif(Character.isLowerCase(input)) {\r\n\t\t\tinput = Character.toUpperCase(input);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int x = 0; x < movieName.length; x++) {\r\n\t\t\tif(input == movieName[x]) {\r\n\t\t\t\tmovieGuess[x] = input;\r\n\t\t\t\tcorrectGuess = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(correctGuess == false) {\r\n\t\t\twrongGuess.add(input);\r\n\t\t\twrongAnswerCounter++;\r\n\t\t\tchancesRemaining--;\r\n\t\t\tSystem.out.println(\"Chances Remaining: \" + chancesRemaining);\r\n\t\t\tprintWrongGuess();\r\n\t\t}\r\n\t}", "@Override\n\tpublic String strreplace(String str, char oldchar, char newchar) {\n\t\treturn null;\n\t}", "public static String alter(String saInput) {\r\n\t\tif (null == saInput) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tString slInputTmp = saInput;\r\n\t\t\tint specialLen = specialChars.length;\r\n\t\t\tfor (int ilCounter = 0; ilCounter < specialLen; ilCounter++) {\r\n\t\t\t\tslInputTmp = replaceAllOccurrences(slInputTmp, specialChars[ilCounter], replacement[ilCounter]);\r\n\t\t\t}\r\n\r\n\t\t\treturn slInputTmp;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// LOGGER.error(e);\r\n\t\t\tLOGGER.info(\"Exception:\" + e);\r\n\t\t}\r\n\r\n\t\treturn \"\";\r\n\t}", "private String shuffleWord(){\n \t\t currentWord = turn.getWord(); //TODO: Replace\n \t\t String alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n \t\t alphabet = shuffle(alphabet);\n \t\t alphabet = alphabet.substring(alphabet.length() - randomNumber(7,4));\n \t\t String guessWord = currentWord + alphabet; \n \t\t guessWord = shuffle(guessWord);\n \t\t return guessWord;\n \t }", "public boolean isEquivalent(char character, char anothercharacter);", "private int findCharacter(char ch, String inputString, int currentIdx) {\n if (inputString.isEmpty()) {\n return -1;\n }\n return inputString.charAt(0) == ch ? currentIdx : findCharacter(ch, inputString.substring(1), ++currentIdx);\n }", "public char encryptChar(char c) {\r\n try {\r\n char returni = charMap.get(c);\r\n System.out.println(returni);\r\n return returni;\r\n } catch(NullPointerException e) {\r\n System.out.println(\"cant do this dude: \" + c);\r\n return c;\r\n }\r\n }", "public String changeMiddleChar(String word, char ab) {\n\t\tString mid = \"\";\n\t\tString b = \"\";\n\t\tif (word.length() % 2 == 0) {\n\t\t\tmid = word.substring((word.length() / 2 - 1), (word.length() / 2 + 1));\n\t\t\tString a = word.replace(mid, \"\" + ab);\n\t\t\treturn word;\n\t\t}\n\t\tif (word.length() % 2 == 1) {\n\t\t\tmid = word.substring((word.length() / 2), (word.length() / 2 + 1));\n\t\t\tb = word.replace(mid, \"\" + ab);\n\n\t\t\treturn b;\n\t\t}\n\n\t\treturn b;\n\n\t}", "private String pcString(String g, String d) {\n return g+\"^part_of(\"+d+\")\";\n }", "private char getMappingCode(char c) {\n if (!Character.isLetter(c)) {\n return 0;\n } \n else {\n return soundexMapping[Character.toUpperCase(c) - 'A'];\n }\n }", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n // Taking the input string from the user\n System.out.println(\"Enter the string to be evaluated : \");\n String inputString = sc.nextLine();\n\n char previousChar = inputString.charAt(0);\n String finalString = \"\" + inputString.charAt(0);\n\n // Iterating through the string and identification of duplicate characters\n for(int i = 1; i < inputString.length(); i++){\n char currentChar = inputString.charAt(i);\n\n // Checking the duplication of characters in the string\n if(currentChar == previousChar){\n int ascValue = currentChar;\n currentChar = (char)(ascValue + 1);\n }\n\n // Adding to the final output string\n finalString += currentChar;\n previousChar = currentChar;\n }\n\n // Output the final string\n System.out.println(\"Here is the final string : \" + finalString);\n }", "private String pickWord() {\n \thangmanWords = new HangmanLexicon();\n \tint randomWord = rgen.nextInt(0, (hangmanWords.getWordCount() - 1)); \n \tString pickedWord = hangmanWords.getWord(randomWord);\n \treturn pickedWord;\n }", "private String removeSpecialCharacters(String word)\n\t{\n\t\tString newString = \"\";\n\n\t\tfor (int i = 0; i < word.length(); i++)\n\t\t{\n\t\t\tif (word.charAt(i) != '?' && word.charAt(i) != '!' && word.charAt(i) != '\"' && word.charAt(i) != '\\''\n\t\t\t\t\t&& word.charAt(i) != '#' && word.charAt(i) != '(' && word.charAt(i) != ')' && word.charAt(i) != '$'\n\t\t\t\t\t&& word.charAt(i) != '%' && word.charAt(i) != ',' && word.charAt(i) != '&')\n\t\t\t{\n\t\t\t\tnewString += word.charAt(i);\n\t\t\t}\n\t\t}\n\n\t\treturn newString;\n\t}", "public String getUntilMeetChar(char specialchar) {\r\n String result = \"\"; // store the extracted characters here\r\n \r\n // while we can extract characters\r\n while (true) {\r\n \r\n // if no next character return the built string\r\n if (!this.stream.hasNext()) return result;\r\n \r\n // consume a character from the stream\r\n char c = this.stream.next();\r\n \r\n // stop read if we meet a special char\r\n if (c==specialchar) return result;\r\n \r\n // unix line feed \\n\r\n if (c=='\\n') {\r\n this.currentline++; // track line\r\n return result;\r\n }\r\n \r\n // windows line feed \\r\\n\r\n if (c=='\\r' && this.stream.peek()=='\\n') {\r\n this.currentline++; // track line\r\n this.stream.next(); // consume the '\\n'\r\n return result;\r\n }\r\n \r\n // concat the char to the result string\r\n result += c;\r\n }\r\n }", "public String replace(String input);", "private boolean checkGuess(char c){\r\n boolean contains = false;\r\n for (int i = 0; i < wordArray.length; i++) {\r\n if (wordArray[i] == c) {\r\n contains = true;\r\n hidden[i] = c;\r\n }\r\n }\r\n if (!contains){\r\n guesses.add(c);\r\n }\r\n return contains;\r\n }", "public String rightmostGuess(char guess) {\n String tester2 = \"\";\n String rightMostGuess = \"\";\n for (Map.Entry<String, Set<String>> entry1 : wordsLeft.entrySet()) { //for testing word\n String tester = entry1.getKey();\n\n for (Map.Entry<String, Set<String>> entry : wordsLeft.entrySet()) { //for word to test agasint\n tester2 = entry.getKey();\n\n for (int i = tester.length(); i > 0; i--) { //to interate through chars of each word\n try {\n char compare1 = tester.charAt(i - 1);\n char compare2 = tester2.charAt(i - 1);\n\n if (compare2 == guess && compare1 == '-') {\n rightMostGuess = tester2;\n break;\n }\n if (compare2 == '-' && compare1 == guess) {\n rightMostGuess = tester;\n break;\n }\n\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n\n }\n\n }\n\n }\n\n return rightMostGuess;\n }", "public char userChoice ()\n {\n\tString c = IBIO.inputString (\"Stag, Doe, Phoenix, Horse, or Wolf? \");\n\tboolean Check = isValid (c);\n\twhile (!isValid (c))\n\t{\n\t printSlow (\"Error, invalid input.\");\n\t c = IBIO.inputString (\"Stag, Doe, Phoenix, Horse, or Wolf? \");\n\t}\n\n\n\tif (c.equalsIgnoreCase (\"Stag\") || c.equalsIgnoreCase (\"s\"))\n\t return 's';\n\telse if (c.equalsIgnoreCase (\"Doe\") || c.equalsIgnoreCase (\"d\"))\n\t return 'd';\n\telse if (c.equalsIgnoreCase (\"Phoenix\") || c.equalsIgnoreCase (\"p\"))\n\t return 'p';\n\telse if (c.equalsIgnoreCase (\"Horse\") || c.equalsIgnoreCase (\"h\"))\n\t return 'h';\n\telse\n\t return 'w';\n\n }", "public void setUserGuessedLetter(char userGuessedLetter) {\n this.userGuessedLetter = userGuessedLetter;\n }", "public static char[] visibleLetters(char[] wordToGuess, int asciiGuess){\n int length = wordToGuess.length; //get the length of word that needs to be guessed\n char[] visibleLetters = new char[length]; //create new array same size as word to be guessed\n\n for(int i = 0; i < length; i++){ //fill new array with '-'\n visibleLetters[i] = '-';\n }\n\n char userGuess = (char) asciiGuess; //convert users guess back to char\n for(int j = 0; j < length; j++){ //iterate through whole word\n if(userGuess == wordToGuess[j]){ //check each spot in char array for users letter\n visibleLetters[j] = userGuess; //sets second array '-' to users correct guess\n }\n }\n\n return visibleLetters;\n }" ]
[ "0.6489272", "0.6104728", "0.5873029", "0.584283", "0.5806129", "0.57899976", "0.5736087", "0.5720316", "0.5617727", "0.557411", "0.5454668", "0.5430841", "0.5395265", "0.53881335", "0.5348834", "0.5321372", "0.5290859", "0.5287469", "0.52475363", "0.52155906", "0.5210059", "0.52024907", "0.51822627", "0.51391697", "0.5138945", "0.5131369", "0.51212513", "0.5044698", "0.5034803", "0.5030706", "0.5029603", "0.5028516", "0.50279707", "0.5013429", "0.5011703", "0.50106335", "0.4973395", "0.49664524", "0.49558848", "0.49316603", "0.49297187", "0.49131826", "0.49111268", "0.48964676", "0.48792014", "0.4878366", "0.48761198", "0.48593742", "0.48540393", "0.48394084", "0.48246777", "0.4819491", "0.47723383", "0.4767669", "0.4763346", "0.47560757", "0.47450903", "0.4736729", "0.47361696", "0.47332042", "0.4733011", "0.47283846", "0.47240922", "0.47208923", "0.4717824", "0.47162", "0.47135094", "0.4699985", "0.46982193", "0.4693866", "0.46887589", "0.46822143", "0.4675403", "0.46710476", "0.46631986", "0.4654149", "0.4653963", "0.46538195", "0.4653494", "0.46532255", "0.46451935", "0.4643322", "0.46424288", "0.4638049", "0.46375206", "0.46374053", "0.46371564", "0.46351513", "0.46329635", "0.46325886", "0.4628526", "0.46281895", "0.46231553", "0.4614756", "0.46129566", "0.4608993", "0.46056038", "0.4605536", "0.46010876", "0.45956174" ]
0.85195595
0
Defer destroying the window to avoid a crash when using a native dialog (like a file chooser).
void setDeferredClosing(boolean dc) { deferredClosing = dc; if (!deferredClosing && closingRequested) { close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void closeDialog() { setVisible(false); dispose(); }", "private void quitDialog() {\r\n\t\tdispose();\r\n\t}", "public void closeWindow() {\n isCancelled = true;\n dialogStage.close();\n }", "public void dispose() {\n synchronized (getTreeLock()) {\n if (inputContext != null) {\n InputContext toDispose = inputContext;\n inputContext = null;\n toDispose.dispose();\n }\n synchronized (ownedWindows) {\n for (int i = 0; i < ownedWindows.size(); i++) {\n Window child = (Window) (ownedWindows.elementAt(i));\n if (child != null) {\n child.dispose();\n }\n }\n } \n hide();\n // 6182409: Window.pack does not work correctly.\n beforeFirstShow = true;\n removeNotify();\n if (parent != null) {\n Window parent = (Window) this.parent;\n parent.removeOwnedWindow(this);\n } \n postWindowEvent(WindowEvent.WINDOW_CLOSED);\n }\n }", "public abstract void destroy(Window window);", "public void closeWindow() {\n\t\tframeUnableToBuyPopup.dispose();\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tdismissWindow();\n\t}", "public void close() {\n getMainApplication().getMainWindow().removeWindow(popupWindow);\n }", "public void dispose() {\r\n if ( desktop != null ) {\r\n try {\r\n SwingUtilities.invokeAndWait( new Runnable() {\r\n public void run() {\r\n desktop.removeAll();\r\n awtWindow.dispose();\r\n }\r\n } );\r\n } catch ( InterruptedException e ) {\r\n e.printStackTrace();\r\n } catch ( InvocationTargetException e ) {\r\n e.printStackTrace();\r\n }\r\n desktop = null;\r\n desktopsUsed--;\r\n if ( desktopsUsed == 0 ) {\r\n PopupFactory.setSharedInstance( new PopupFactory() );\r\n }\r\n }\r\n }", "public void cancelDialog() {dispose();}", "public void dispose() {\n if ( desktop != null ) {\n if ( getParent() != null ) {\n getParent().detachChild( this );\n }\n inputHandler.removeAllActions();\n if ( inputHandler.getParent() != null ) {\n inputHandler.getParent().removeFromAttachedHandlers( inputHandler );\n }\n try {\n SwingUtilities.invokeAndWait( new Runnable() {\n public void run() {\n desktop.removeAll();\n awtWindow.dispose();\n }\n } );\n } catch ( InterruptedException e ) {\n logger.logp(Level.SEVERE, this.getClass().toString(), \"dispose()\", \"Exception\", e);\n } catch ( InvocationTargetException e ) {\n logger.logp(Level.SEVERE, this.getClass().toString(), \"dispose()\", \"Exception\", e);\n }\n desktop = null;\n desktopsUsed--;\n if ( desktopsUsed == 0 ) {\n PopupFactory.setSharedInstance( new PopupFactory() );\n }\n }\n }", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\n\t}", "public void closeDialog(java.awt.event.WindowEvent evt) {\n setVisible(false);\n dispose();\n }", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0)\n\t{\n\t\t\n\t}", "public void dismiss() {\r\n\t\tmWindow.dismiss();\r\n\t}", "@Override\r\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n public void windowDeiconified( WindowEvent arg0 )\n {\n\n }", "@Override\n public void windowDeiconified( WindowEvent arg0 )\n {\n\n }", "public void windowDeiconified (WindowEvent e) {}", "@Override\n public void windowDeiconified(WindowEvent arg0) {\n\n }", "private void dispose() {\n dialog.dispose();\n editManager.removeCharChangeListener(compCharChangeListener);\n selectionModel.removeListSelectionListener(compCharSelectListener);\n }", "@Override\r\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public static void closeNew() {\n\t\tDIALOG.dispose();\n\t\tDIALOG = null;\n\t}", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t}", "@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }", "void dispose() {\n/* 135 */ Component component = getComponent();\n/* 136 */ Window window = SwingUtilities.getWindowAncestor(component);\n/* */ \n/* 138 */ if (component instanceof JWindow) {\n/* 139 */ ((Window)component).dispose();\n/* 140 */ component = null;\n/* */ } \n/* */ \n/* 143 */ if (window instanceof DefaultFrame) {\n/* 144 */ window.dispose();\n/* */ }\n/* */ }", "@Override\n\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\t\n\t\t}", "protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}", "@Override\n public void windowDeiconified(WindowEvent e)\n {\n\n }", "private void handleWindowClose() {\n if (scrdev().getFullScreenWindow() != null)\n scrdev().getFullScreenWindow().removeAll();\n if (container != null){\n container.setVisible(false);\n container.dispose();\n container.removeKeyListener(this);\n \n //TODO: make a call to finish\n }\n }", "@Override\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\tthis.setVisible(false);\n\t\tthis.dispose();\n\t}", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible (false);\n dispose ();\n }", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\n\t\t\t}", "@Override\n public void onCloseWindow(WebView window) {\n window.setVisibility(View.GONE);\n webview.removeView(window);\n }", "protected void closeDialogCancel() {\n dispose();\n }", "@Override\n public void closeWindow() {\n \n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\r\n setVisible(false);\r\n dispose();\r\n }", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tcancelDialog();\n\t\tsuper.onDestroy();\n\t}", "protected void prepareForClose() {\r\n\t\tmApplication.destroyAlertDialog(mAlertDialog);\r\n\t\tmApplication.onClose();\r\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e)\n\t{\n\n\t}", "public void windowDeiconified(WindowEvent e) {\n\r\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}" ]
[ "0.7025515", "0.6986603", "0.6792604", "0.6792487", "0.67409605", "0.66819394", "0.6663512", "0.6617736", "0.65995884", "0.6555837", "0.65316427", "0.65312606", "0.65312606", "0.65312606", "0.65312606", "0.65312606", "0.65312606", "0.65312606", "0.65312606", "0.6525421", "0.652128", "0.6520108", "0.6520108", "0.6517796", "0.65051484", "0.65039766", "0.65039766", "0.65039766", "0.65039766", "0.65039766", "0.650164", "0.650164", "0.64998245", "0.6463839", "0.6446444", "0.64334273", "0.643227", "0.643227", "0.6426999", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63916993", "0.63913184", "0.63855547", "0.63844484", "0.638137", "0.6378855", "0.6364135", "0.63535553", "0.6350105", "0.6328389", "0.6328389", "0.6328389", "0.6328389", "0.6328389", "0.6324593", "0.6324593", "0.6324593", "0.6324593", "0.6324593", "0.6318334", "0.63176167", "0.62851954", "0.62828255", "0.6281173", "0.62810075", "0.62805367", "0.62805367", "0.62805367", "0.62805367", "0.62805367", "0.62805367", "0.62805367", "0.62805367", "0.62805367", "0.62781775", "0.6272355", "0.6268975", "0.6256829", "0.6256588", "0.6256588", "0.6256588", "0.6256588" ]
0.0
-1
REVIEW: Do we need stubShort and stubFirst flags? Constructor from the details. The business day conventions, endofmonth and spot lag are from the Ibor index.
public GeneratorSwapFixedIbor(String name, Period fixedLegPeriod, DayCount fixedLegDayCount, IborIndex iborIndex) { super(name); Validate.notNull(fixedLegPeriod, "fixed leg period"); Validate.notNull(fixedLegDayCount, "fixed leg day count"); Validate.notNull(iborIndex, "ibor index"); _fixedLegPeriod = fixedLegPeriod; _fixedLegDayCount = fixedLegDayCount; _iborIndex = iborIndex; // _name = iborIndex.getCurrency().toString() + iborIndex.getTenor().toString() + fixedLegPeriod.toString(); _businessDayConvention = iborIndex.getBusinessDayConvention(); _endOfMonth = iborIndex.isEndOfMonth(); _spotLag = iborIndex.getSpotLag(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private BusinessDateUtility() {\n\t}", "public mbvBoletinPeriodo() {\r\n }", "public GeneratorSwapFixedIbor(String name, Period fixedLegPeriod, DayCount fixedLegDayCount, IborIndex iborIndex, final BusinessDayConvention businessDayConvention, final boolean endOfMonth,\n final int spotLag) {\n super(name);\n Validate.notNull(fixedLegPeriod, \"fixed leg period\");\n Validate.notNull(fixedLegDayCount, \"fixed leg day count\");\n Validate.notNull(iborIndex, \"ibor index\");\n _fixedLegPeriod = fixedLegPeriod;\n _fixedLegDayCount = fixedLegDayCount;\n _iborIndex = iborIndex;\n // _name = iborIndex.getCurrency().toString() + iborIndex.getTenor().toString() + fixedLegPeriod.toString();\n _businessDayConvention = businessDayConvention;\n _endOfMonth = endOfMonth;\n _spotLag = spotLag;\n }", "public Holidays (){\n name= \"Exotic Beach Holiday of a Lifetime\";\n cost = 5000;\n location = \"Fesdu Island, Maldives\";\n type = \"beach\";\n }", "protected StartOfDay() {\n super();\n\n }", "public DayPeriod() {\n\t}", "private DateTimeAdjusters() {\n\n }", "public Watch(){ //Watch Constuctor\r\n super(); //Values passed in from the super class\r\n month = 1; //Initialize month to 1\r\n day = 1; //Initialize day to 1\r\n year = 1980; //Initialize year to 1980\r\n}", "public Forecastday() {\n }", "public PeriodicityBean() {\n\t\twhen = from = to = null;\n\t\tperiodicity = \"\";\n\t}", "public DateTime() {\n this((BusinessObject) null);\n }", "public CinemaDate() {\n }", "public PeriodFactoryImpl() {\n\t\tsuper();\n\t}", "public Bus(int busNo, int lastStop, int nextStop, double lastStopArrivalTime) {\r\n\t\tsuper();\r\n\t\tthis.busNo = busNo;\r\n\t\tthis.lastStop = lastStop;\r\n\t\tthis.nextStop = nextStop;\r\n\t\tthis.lastStopArrivalTime = lastStopArrivalTime;\r\n\t\tthis.busAtStop = 'N';\r\n\t\tthis.allBusesSync='Y';\r\n\t}", "@Override\n\tpublic void initDate() {\n\n\t}", "@Override\n\tpublic FdBusinessDate getCommonFdBusinessDate() {\n map.put(\"busiTypeCode\",\"02\");\n map.put(\"subBusiType\",\"00\");\n\t\treturn mapper.selectByPK(map);\n\t}", "public CalendarBasi()\n {\n dia = new DisplayDosDigitos(31);\n mes = new DisplayDosDigitos(13);\n anio = new DisplayDosDigitos(100);\n }", "public Flight() {\n\tthis.year = 0;\n\tthis.month = 0;\n\tthis.dayOfMonth = 0;\n\tthis.dayOfWeek = 0;\n\tthis.uniqueCarrier = \"\";\n\tthis.originAirportID = \"\";\n\tthis.destAirportID = \"\";\n\tthis.depDelay = 0.0;\n\tthis.arrDelay = 0.0;\n\tthis.cancelled = false;\n\tthis.carrierDelay = 0;\n\tthis.weatherDelay = 0;\n\tthis.nasDelay = 0;\n\tthis.securityDelay = 0;\n\tthis.lateAircraftDelay = 0;\n\tthis.divAirportLandings = 0;\n }", "public BranchAndBound() {\n this.timeFi = Long.parseLong(\"2000000000000\");;\n this.numSoluciones = 0;\n }", "public TimeZone() { throw new RuntimeException(\"Stub!\"); }", "RollingCalendar()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public TypicalDay() {\n\t\tnbDeliveries = 0;\n\t\twareHouse = -1;\n\t}", "public Calendar() {\n }", "public BrightTimeService() {\n super(\"BrightTimeService\");\n }", "public FillDate() {\n }", "public final zzbdo m9018a() {\n return (zzbdo) this.f8226a.getValue();\n }", "public DayOfWeekInMonthRule() {\n this(1, SerialDate.MONDAY, MonthConstants.JANUARY);\n }", "public interface TimeOfDay extends TimeOfDayOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}", "public Month () {\n monthNumber = 1;\n }", "public Holiday(long id, String title, String description, String image, String typeOfHoliday, boolean riseOfFlag) {\n\t\tsuper(); //???\n\t\tthis.id = id;\n\t\tthis.title = title;\n\t\tthis.description = description;\n\t\tthis.image = image;\n\t\tthis.typeOfHoliday = typeOfHoliday;\n\t\tthis.riseOfFlag = riseOfFlag;\n\t}", "public ArrivalQuayStub() {\n\t}", "public static MotionSaliencyBinWangApr2014 create()\n {\n \n MotionSaliencyBinWangApr2014 retVal = MotionSaliencyBinWangApr2014.__fromPtr__(create_0());\n \n return retVal;\n }", "@Test\n public void billCustomConstructor_isCorrect() throws Exception {\n\n int billId = 100;\n String billName = \"test Bill\";\n int userId = 101;\n int accountId = 202;\n double billAmount = 300.25;\n String dueDate = \"02/02/2018\";\n int occurrenceRte = 1;\n\n //Create empty bill\n Bill bill = new Bill(billId,userId,accountId,billName,billAmount,dueDate,occurrenceRte);\n\n // Verify Values\n assertEquals(billId, bill.getBillId());\n assertEquals(billName, bill.getBillName());\n assertEquals(userId, bill.getUserId());\n assertEquals(accountId, bill.getAccountId());\n assertEquals(billAmount, bill.getBillAmount(), 0);\n assertEquals(dueDate, bill.getDueDate());\n assertEquals(occurrenceRte, bill.getOccurrenceRte());\n }", "public Holiday(int day, int month) {\n\t\tdate = LocalDate.of(2019,month,day);\n\t}", "@Test\n public void fixedPayerAndReceiverTest() {\n double fixedRate = 0.015;\n GeneratorAttributeIR attribute = new GeneratorAttributeIR(Period.ofYears(7));\n double notional = 1.0e8;\n ZonedDateTime date = DateUtils.getUTCDate(2013, 9, 10);\n SwapFixedIborDefinition def1 = GENERATOR_FROM_INDEX.generateInstrument(date, fixedRate, notional, attribute);\n SwapFixedIborDefinition def2 = GENERATOR_FROM_INDEX.generateInstrument(date, fixedRate, notional, attribute, true);\n assertEquals(def1, def2);\n SwapFixedIborDefinition def3 = GENERATOR_FROM_INDEX.generateInstrument(date, fixedRate, notional, attribute, false);\n assertFalse(def1.equals(def3));\n int nIbor = def1.getIborLeg().getNumberOfPayments();\n int nFixed = def1.getFixedLeg().getNumberOfPayments();\n assertEquals(nIbor, def3.getIborLeg().getNumberOfPayments());\n assertEquals(nFixed, def3.getFixedLeg().getNumberOfPayments());\n assertEquals(def1.getIborLeg().getIborIndex(), def3.getIborLeg().getIborIndex());\n assertEquals(def1.getIborLeg().getCalendar(), def3.getIborLeg().getCalendar());\n assertEquals(def1.getCurrency(), def3.getIborLeg().getCurrency());\n for (int i = 0; i < nIbor; ++i) {\n CouponIborDefinition ibor1 = def1.getIborLeg().getNthPayment(i);\n CouponIborDefinition ibor3 = def3.getIborLeg().getNthPayment(i);\n assertEquals(ibor1.getNotional(), -ibor3.getNotional());\n assertEquals(ibor1.getAccrualStartDate(), ibor3.getAccrualStartDate());\n assertEquals(ibor1.getAccrualEndDate(), ibor3.getAccrualEndDate());\n assertEquals(ibor1.getFixingDate(), ibor3.getFixingDate());\n assertEquals(ibor1.getPaymentDate(), ibor3.getPaymentDate());\n assertEquals(ibor1.getPaymentYearFraction(), ibor3.getPaymentYearFraction());\n }\n for (int i = 0; i < nFixed; ++i) {\n CouponFixedDefinition fixed1 = def1.getFixedLeg().getNthPayment(i);\n CouponFixedDefinition fixed3 = def3.getFixedLeg().getNthPayment(i);\n assertEquals(fixed1.getNotional(), -fixed3.getNotional());\n assertEquals(fixed1.getAccrualStartDate(), fixed3.getAccrualStartDate());\n assertEquals(fixed1.getAccrualEndDate(), fixed3.getAccrualEndDate());\n assertEquals(fixed1.getPaymentDate(), fixed3.getPaymentDate());\n assertEquals(fixed1.getPaymentYearFraction(), fixed3.getPaymentYearFraction());\n }\n }", "private void creatBirth(){\n\n for (int i = 0; i < repeatLunar.size() - 1; i++) {\n mLunar = repeatLunar.get(i);\n mLunarDay = mLunar.getLunarDay();\n mLunarMonth = mLunar.getLunarMonth();\n mLunarYear = mLunar.getLunarYear();\n mRepeat = mLunar.getRepeat();\n\n createEvent(getDate(mLunarYear, mLunarMonth, mLunarDay));\n\n\n }\n\n\n\n }", "public Rates() {\n }", "public final void mo1285b() {\n }", "public WeekPattern() {}", "static C0102a m522e(C0101o oVar) {\n return new C0102a(\"WeekBasedYear\", oVar, C0073c.f236e, C0072b.FOREVER, f277j);\n }", "public RootBeanDefinition(RootBeanDefinition original)\n/* */ {\n/* 180 */ super(original);\n/* 181 */ this.decoratedDefinition = original.decoratedDefinition;\n/* 182 */ this.qualifiedElement = original.qualifiedElement;\n/* 183 */ this.allowCaching = original.allowCaching;\n/* 184 */ this.isFactoryMethodUnique = original.isFactoryMethodUnique;\n/* 185 */ this.targetType = original.targetType;\n/* */ }", "public void mo9809b(int i) {\n if (i >= 0) {\n mo9828m(5);\n mo9820l(i);\n return;\n }\n mo9813b((long) i);\n }", "private ARXDate() {\r\n this(\"Default\");\r\n }", "public /* synthetic */ dg mo1930b() {\r\n return m9083a();\r\n }", "public interface DateInterface \n{\n /*\n Dada uma data, determina a sua estação do ano (Primavera, Verão, Outono ou Inverno) de acordo com o hemisfério Norte.\n */\n public String estacaoDoAno(LocalDate d);\n \n /*\n Determina o dia da semana do primeiro dia de um ano.\n */\n public DayOfWeek primeiroDiaSemanaAno(int ano);\n \n /*\n Determina o dia da semana de uma data.\n */\n public DayOfWeek diaDaSemana(LocalDate d);\n \n /*\n Determina o dia do ano de uma data (por exemplo, 10/01/2018 corresponde ao 10º dia do ano de 2018).\n */\n public int diaDoAno(LocalDate d);\n \n /*\n Determina em que trimestre do ano uma data se situa.\n */\n public int trimestre(LocalDate d);\n \n /*\n Determina o número de semanas completas entre duas datas, sendo uma delas a atual.\n */\n public long numSemanasAteData(LocalDate d);\n \n /*\n Determina se um ano é bissexto ou não.\n */\n public boolean anoBissexto(Year ano);\n \n /*\n Determina o século, o milénio e a era de uma data.\n */\n public TuploSeculoMilenioEra seculoMilenioEraData(LocalDate d);\n \n /*\n Determina quanto tempo falta até à próxima passagem do cometa Halley. Mostra o resultado em dias totais, meses totais\n e anos totais.\n */\n public ParDataDiaMesAno cometaHalley();\n \n /*\n Determina o número de dias úteis entre duas dadas datas.\n */\n public int diasUteisEntreDatas(LocalDate d1, LocalDate d2);\n \n /*\n Determina quantos fins-de-semanas completos um ano tem. Caso o ano inserido possua um sábado ou um domingo extra, \n estes também são sinalizados.\n */\n public ParFimDeSemana numFinsDeSemanaAno(int ano);\n \n /*\n Determina quantos dias faltam até ao próximo Natal.\n */\n public long diasAteNatal();\n \n /*\n Determina o salário de um indivíduo sabendo quanto ganha por hora e o ano que pretende calcular. Apresenta o resultado\n em dias, semanas, meses e ano.\n */\n public SalarioAno salarioDiaMesSemanaAno(float salarioHora, int ano); \n \n /*\n Determina o número de dias úteis (isto é, que não são fins-de-semana) de um ano.\n */\n public int numDiasUteisAno(int ano);\n \n /*\n Determina em que dias são os fins-de-semana de um dado mês. Por exemplo, em Janeiro de 2018 o primeiro fim-de-semana\n ocorre nos dias 6 (Sábado) e 7 (Domingo).\n */\n public Map<Integer, DayOfWeek> finsDeSemanaDoMes(int ano, int mes);\n \n /*\n A uma dada data são somados anos, meses, semanas e dias.\n */\n public LocalDate somaData(LocalDate d, int ano, int mes, int semanas, int dias);\n \n /*\n A uma dada data são subtraidos anos, meses, semanas e dias.\n */\n public LocalDate subtraiData(LocalDate d, int ano, int mes, int semanas, int dias);\n \n /*\n Dado um número de dias, calcula a data daqui a esse número de dias e apresenta ainda qual o dia da semana e quantos\n dias úteis faltam até lá.\n */\n public TuploDataDia_SemanaDias_Uteis eventoDaquiXDias(int dias);\n \n /*\n Dado um número de dias úteis, calcula a data daqui a esse número de dias e apresenta ainda qual o dia da semana.\n */\n public ParDataDiaDaSemana eventoDaquiXDiasUteis(int dias);\n \n /*\n Determina qual a data da próxima Black Friday e quantos dias faltam até essa data.\n */\n public ParDataDia proxBlackFriday();\n \n /*\n Calcula a data da Páscoa de um determinado ano.\n */\n public LocalDate proxPascoa(int ano);\n \n /*\n Para um dado ano apresenta a data dos feriados nacionais e em que dia da semana ocorrem.\n */\n public Map<String, MonthDay> dataFeriadosNacionais(int ano);\n \n /*\n Calcula a diferença entre duas datas. Apresenta o resultado em anos, meses e dias. Por exemplo, de 01/01/2018 até \n 10/02/2018 existe uma diferença de 0 anos, 1 mês e 9 dias.\n */\n public static TuploAnosMesesDias difEntreDatas(LocalDate d1, LocalDate d2)\n { \n boolean stop = false;\n boolean stop2 = false;\n long dias;\n int meses;\n int anos;\n \n anos = 0;\n meses = 0;\n dias = 0;\n\n while((d1.getYear() != d2.getYear() || d1.getMonthValue() != d2.getMonthValue())&&!stop && !stop2)\n {\n \n \n while(d1.getMonthValue() != d2.getMonthValue() && !stop2)\n {\n if(d1.getYear() == (d2.getYear() - 1) && d1.getMonthValue() == 12 && d2.getMonthValue() == 1 && d2.getDayOfMonth() < d1.getDayOfMonth())\n {\n stop2 = true;\n dias = 31 - d1.getDayOfMonth() + d2.getDayOfMonth();\n }\n if(stop2 == false)\n {\n YearMonth anoMes = YearMonth.of(d1.getYear(), d1.getMonth());\n int daysInMonth = anoMes.lengthOfMonth(); \n\n if(((d2.getYear() - d1.getYear()) == 0) \n &&((d2.getMonthValue() - d1.getMonthValue()) == 1)\n &&(d1.getDayOfMonth() > d2.getDayOfMonth()))\n {\n\n dias = d2.getDayOfMonth() + daysInMonth - d1.getDayOfMonth(); \n stop = true;\n break;\n }\n\n meses++;\n\n d1 = d1.plusMonths(1);\n }\n }\n if(stop2 == false)\n {\n if(d1.getMonthValue() == d2.getMonthValue() && d1.getYear() !=d2.getYear())\n {\n meses++;\n d1 = d1.plusMonths(1);\n }\n }\n }\n \n if(d1.getMonthValue() == d2.getMonthValue())\n {\n dias = d2.getDayOfMonth() - d1.getDayOfMonth();\n }\n\n while(meses > 12)\n {\n anos++;\n meses-=12;\n }\n \n return new TuploAnosMesesDias(anos, meses, dias);\n \n }\n}", "@Test\n public void constructor() {\n Event event1 = new Event(\"Eat Apple\", \"2020-12-12 12:00\", \"2020-12-12 13:00\",\n false);\n Event event2 = new Event(\"Write paper\", \"2020-05-05 12:00\", \"2020-05-06 23:59\",\n true);\n\n assertEquals(\"Eat Apple\", event1.description);\n assertEquals(LocalDateTime.parse(\"2020-12-12 12:00\", Event.PARSER_FORMATTER), event1.startAt);\n assertEquals(LocalDateTime.parse(\"2020-12-12 13:00\", Event.PARSER_FORMATTER), event1.endAt);\n assertEquals(false, event1.isDone);\n assertEquals(\"Write paper\", event2.description);\n assertEquals(LocalDateTime.parse(\"2020-05-05 12:00\", Event.PARSER_FORMATTER), event2.startAt);\n assertEquals(LocalDateTime.parse(\"2020-05-06 23:59\", Event.PARSER_FORMATTER), event2.endAt);\n assertEquals(true, event2.isDone);\n }", "public CtRecord() {\n fill(0, MODES.CHRONO, false, false, false, false, null, null, TIME_DEFAULT_VALUE, TIME_DEFAULT_VALUE, TIME_DEFAULT_VALUE, TIME_DEFAULT_VALUE, TIME_DEFAULT_VALUE, getMidnightTimeMillis());\n }", "CurrencyDateCalculatorBuilder<E> getDefaultCurrencyDateCalculatorBuilder(String ccy1, String ccy2, SpotLag spotLag);", "public AgendaMB() {\n GregorianCalendar dtMax = new GregorianCalendar(); \n Date dt = new Date();\n dtMax.setTime(dt); \n GregorianCalendar dtMin = new GregorianCalendar(); \n dtMin.setTime(dt);\n dtMin.add(Calendar.DAY_OF_MONTH, 1);\n dtMax.add(Calendar.DAY_OF_MONTH, 40);\n dataMax = dtMax.getTime();\n dataMin = dtMin.getTime(); \n }", "public M csmiBirthdayStart(Object start){this.put(\"csmiBirthdayStart\", start);return this;}", "abstract C0451h mo1607e();", "public MyDate(int inYear, int inDay, int inMonth)\n {\n year = inYear;\n day = inDay;\n month = inMonth;\n }", "public DateUtil ( DateUtil b)\n {\n this.ordinal = b.ordinal;\n this.yyyy = b.yyyy;\n this.mm = b.mm;\n this.dd = b.dd;\n }", "public interface Service {\n\t/**\n\t * Method stub to get the service appointment.\n\t *\n\t * @return The service appointment.\n\t */\n\tabstract public Date getServiceAppointment();\n\n\t/**\n\t * Method stub to get the servicing interval.\n\t *\n\t * @return The servicing interval.\n\t */\n\tabstract public int getServiceInterval();\n\n\t/**\n\t * Method stub to set the service appointment.\n\t *\n\t * @param serviceAppointment The service appointment as Date object.\n\t */\n\tabstract public void setServiceAppointment(Date serviceAppointment);\n\n\t/**\n\t * Method stub to set the servicing interval.\n\t *\n\t * @param serviceIntervalDays Servicing interval in days.\n\t */\n\tabstract public void setServiceInterval(int serviceIntervalDays);\n}", "public LocalDateAdapter() {\r\n\t\tsuper();\r\n\t}", "public Bank(int amTellers, boolean driveThru) {\n \tthis.driveInOpen = driveThru;\n startWeek(amTellers);\n }", "@Override\n\tpublic FdBusinessDate getCurrencyFdBusinessDate() {\n map.put(\"busiTypeCode\",\"02\");\n map.put(\"subBusiType\",\"01\");\n\t\treturn mapper.selectByPK(map);\n\t}", "public borFactoryImpl() {\n\t\tsuper();\n\t}", "public BirthInfo() {}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public BusinessDayConvention getBusinessDayConvention() {\n return _businessDayConvention;\n }", "public BusStopRecord(Long timestamp, String lineId, String direction, String journeyPatternId, Timestamp timeFrame, Long vehicleJourneyId, String operator, Boolean congestion, BigDecimal latitude, BigDecimal longitude, Integer delay, Integer blockId, Integer vehicleId, String stopId, Boolean atBusStop) {\n super(BusStop.BUS_STOP);\n\n set(0, timestamp);\n set(1, lineId);\n set(2, direction);\n set(3, journeyPatternId);\n set(4, timeFrame);\n set(5, vehicleJourneyId);\n set(6, operator);\n set(7, congestion);\n set(8, latitude);\n set(9, longitude);\n set(10, delay);\n set(11, blockId);\n set(12, vehicleId);\n set(13, stopId);\n set(14, atBusStop);\n }", "public SIPDate(long r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: gov.nist.javax.sip.header.SIPDate.<init>(long):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.<init>(long):void\");\n }", "public final void mo9809b(int i) {\n if (i >= 0) {\n mo9814c(i);\n } else {\n mo9813b((long) i);\n }\n }", "abstract public Date getServiceAppointment();", "public ObjectFactoryModuleCalendar() {\n }", "public DateIn(int day, int month, int year){\n\tthis.day = day;\n\tthis.month = month;\n\tthis.year = year;\n\t}", "public SIPDate() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e6 in method: gov.nist.javax.sip.header.SIPDate.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.<init>():void\");\n }", "private QaCalendar() {\n }", "public ToUseTimeLineFactoryImpl() {\n\t\tsuper();\n\t}", "public static ao m50836b() {\n return new ao();\n }", "public Loan(int loanId, Book bOoK, Member mEmBeR, Date dueDate) { ////changed 'BoOk' to 'book' and changed 'MeMbEr' to 'member' and DuE_dAtE to dueDate\r\n\t\tthis.LoAn_Id = loanId; //changed 'LoAn_Id' to 'loanId'\r\n\t\tthis.BoOk = book; //changed 'BoOk' to 'book'\r\n\t\tthis.MeMbEr = member; //changed 'MeMbEr' to 'member'\r\n\t\tthis.DaTe = dueDate; //changed DuE_dAtE to dueDate\r\n\t\tthis.state = loanState.current; //changed 'StAtE' to 'state' and lOaN_sTaTe.CURRENT to loanState.current\r\n\r\n\t}", "public Date212 (String s){ //initial constructor\n full_Date = s;\n // System.out.println(full_Date + \"jdjdj\");\n if (!isValidDate(full_Date)) throw new IllegalArgumentException(\"Invalid Date Format!\"); \n //If it is not true that the date is valid then throw a error.\n /* \n The substring methods to pull out the Year, Month, and Day.\n */\n Year = Integer.parseInt(full_Date.substring(0,3)); \n Month = Integer.parseInt(full_Date.substring(4,5));\n Day = Integer.parseInt(full_Date.substring(6,7));\n count++; \n addArray(this); //Calling the function \"addArray\" with 'this isntance of date212'\n // System.out.println(myDates[i]);\n\n }", "Stub createStub();", "public McHappyDay(Order order) {\n\t\tthis.order = order;\n\t}", "public Payment(int year, int month, int electro_start, int electro_end, int water_start, int water_end) {\n if (month >= 0 & month < 13) {\n this.year = year;\n this.month = month;\n this.electro_start = electro_start;\n this.electro_end = electro_end;\n this.water_start = water_start;\n this.water_end = water_end;\n name = year + \".\" + month + \" (\" + MONTHS[month] + \")\";\n } else {\n throw new ArrayIndexOutOfBoundsException(\"Wrong number of month - Неправильный номер месяца\");\n }\n\n }", "public FactoryImpl() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.icu.text.TimeZoneNames.DefaultTimeZoneNames.FactoryImpl.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.text.TimeZoneNames.DefaultTimeZoneNames.FactoryImpl.<init>():void\");\n }", "public static void before0(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,6);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==6);\n assert(ret0==true);\n System.out.println(ret0);\n }", "public abstract C0631bt mo9227aB();", "public CpFldValidDate() { super(10018, 1); }", "public AirlineCompany() {\n\t}", "@Before\n\tpublic void init() {\n\t\t\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\t\n\t cal.add(Calendar.DATE, -2); \n\t \n\t fechaOperacion = LocalDate.of(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH));\n\t \n\n\t\t\n\t\tCiudad buenos_aires = new Ciudad(new Provincia(\"Argentina\", \"Buenos Aires\"), \"Capital Federal\");\n\t \t\n \tProvincia prov_buenos_aires = new Provincia(\"Ciudad Autonoma de Buenos Aires\",\"Capital Federal\");\n \t\n \tDireccionPostal direccionPostal = new DireccionPostal( \"lacarra 180\", buenos_aires, prov_buenos_aires, \"argentina\", new Moneda(\"$\",\"Peso argentino\" ));\n\t\n\t\t\n\t\t entidad1 = new EntidadJuridica(\"chacho bros\", \"grupo chacho\", \"202210\", direccionPostal, new Categoria(\"ONG\"),TipoEmpresa.EMPRESA);\n\n\t\t\n\t\t\n\t}", "public void setupCalendar() { \n\t\tcal = whenIsIt();\n\t\tLocale here = Locale.US;\n\t\tthisMonth = cal.getDisplayName(2, Calendar.LONG_STANDALONE, here);\n\t\tdate = cal.get(5); //lesson learned: if it's a number do this\n\t\t//ADD CODE FOR ORDINALS HERE\n\t\tyear = cal.get(1);\n\t\tthisHour = cal.get(10);\n\t\tthisMinute = cal.get(12);\n\t\tthisSecond = cal.get(13);\n\t\tamPm = cal.getDisplayName(9, Calendar.SHORT, here);\n\t\tthisDay = thisMonth +\" \"+ addOrdinal(date) + \", \" + year;\n\t\tcurrentTime = fix.format(thisHour) + \":\" + fix.format(thisMinute) + \":\" + fix.format(thisSecond) + \" \" + amPm;\n\t}", "public DayPlanFragment() {\n\t}", "public _CodeBaseStub()\n {\n super();\n }", "public java.util.Calendar getBFSDAT() {\n return BFSDAT;\n }", "static /* synthetic */ void m21605b(C13459z c13459z) {\n AppMethodBeat.m2504i(37332);\n c13459z.bgC();\n AppMethodBeat.m2505o(37332);\n }", "Season(String months)\n {\n span = months;\n }", "public Olive(String desc, Money cst, int calrs){\n\t\tsuper(desc,cst,calrs);\n\t}", "public TCustomerBillMonth() {\n this(DSL.name(\"t_customer_bill_month\"), null);\n }", "protected BlankRecord(int c, int r, BlankRecord br)\r\n/* 30: */ {\r\n/* 31: 84 */ super(Type.BLANK, c, r, br);\r\n/* 32: */ }", "public abstract C0707b mo9237au();", "public Bit_Interface(String stage)\n {\n super(stage);\n }", "public /* synthetic */ void mo1929b(cy cyVar, bz bzVar) throws cf {\r\n m9702a(cyVar, (be) bzVar);\r\n }", "public MyDate(){\n this.day = 0;\n this.month = 0;\n this.year = 0;\n }", "public interface IFlightEndPoints {\n \n Integer getFlightEndPointId();\n void setFlightEndPointId(Integer flightEndPointId);\n \n String getOriginAirportShortName();\n void setOriginAirportShortName(String shortName);\n \n double getDepartureDelay();\n void setDepartureDelay(double departureDelay);\n Date getDepartureTime();\n void setDepartureTime(Date date);\n \n String getDestAirportShortName();\n void setDestAirportShortName(String shortName);\n \n double getArrivalDelay();\n void setArrivalDelay(double arrivalDelay);\n Date getArrivalTime();\n void setArrivalTime(Date date); \n}", "void setZeroStart();", "@Test\n public void month() throws Exception {\n Date thisDate = dateFormat.parse(\"08/14/2006\");\n Month august06 = Month.create(thisDate);\n testThePeriod(august06, thisDate, \"08/01/2006 00:00:00.000\",\n \"08/31/2006 23:59:59.999\", \"2006-08\");\n\n //Test the prior period\n Date priorDate = dateFormat.parse(\"07/22/2006\");\n Month july06 = august06.prior();\n testThePeriod(july06, priorDate, \"07/01/2006 00:00:00.000\",\n \"07/31/2006 23:59:59.999\", \"2006-07\");\n\n //Test the next period.\n Date nextDate = dateFormat.parse(\"09/03/2006\");\n Month september06 = august06.next();\n testThePeriod(september06, nextDate, \"09/01/2006 00:00:00.000\",\n \"09/30/2006 23:59:59.999\", \"2006-09\");\n\n //Test compareTo\n testCompareTo(july06, august06, september06);\n }", "@Override\n protected void populateHolidays() {\n holidays.put(beginDate(), new Holiday(\"Christmas\", beginDate(), calendar, \"Matthew 1:18-25, Luke 2:1-20\"));\n Calendar holyInnocents = new GregorianCalendar(calendar.getYear() - 1, Calendar.DECEMBER, 28);\n holidays.put(holyInnocents, new Holiday(\"Holy Innocents\", holyInnocents, calendar, \"Matthew 2:13-23\"));\n Calendar epiphany = new GregorianCalendar(calendar.getYear(), Calendar.JANUARY, 6);\n holidays.put(epiphany, new Holiday(\"Epiphany\", epiphany, calendar, \"Matthew 2:1-12\"));\n Calendar presentation = new GregorianCalendar(calendar.getYear(), Calendar.FEBRUARY, 2);\n holidays.put(presentation, new Holiday(\"Presentation\", presentation, calendar, \"Luke 2:21-25\"));\n Calendar annunciation = new GregorianCalendar(calendar.getYear(), Calendar.MARCH, 25);\n if (endDate().compareTo(annunciation) < 0) holidays.put(annunciation, new Holiday(\"Annunciation\", annunciation, calendar, \"Luke 1:26-38\"));\n\n Calendar ashWednesday = (Calendar)holyWeek.beginDate().clone();\n ashWednesday.add(Calendar.DATE, -39);\n holidays.put(ashWednesday, new Holiday(\"Ash Wednesday\", ashWednesday, calendar,\n \"Matthew 3:13-4:11\", \"Mark 1:9-13\", \"Luke 3:21,22, 4:1-13\"));\n\n }", "public MyDate(){\t\n\t\tthis(\"00/00/0000\");\n\t}", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}" ]
[ "0.57036924", "0.5505375", "0.54492265", "0.5346968", "0.5167033", "0.5146468", "0.5121054", "0.5112682", "0.5071898", "0.5051771", "0.50469583", "0.5035392", "0.50009674", "0.5000106", "0.49975365", "0.4996814", "0.49679416", "0.4945355", "0.494414", "0.49329674", "0.49266997", "0.49142063", "0.4912875", "0.49099293", "0.49071813", "0.48831725", "0.48805314", "0.48733774", "0.48718932", "0.4855631", "0.4845956", "0.48348776", "0.48335883", "0.4827595", "0.48165402", "0.48135915", "0.47758478", "0.4756925", "0.47526824", "0.4734284", "0.4728796", "0.47134545", "0.4712162", "0.46975097", "0.46970445", "0.4696436", "0.46803543", "0.46668723", "0.4663637", "0.46409616", "0.4638289", "0.46330053", "0.46323726", "0.46316215", "0.46296355", "0.46186754", "0.46176854", "0.46132916", "0.46113813", "0.45939177", "0.45894822", "0.45875296", "0.4587495", "0.45808834", "0.45807078", "0.45776346", "0.45744872", "0.45719406", "0.45700234", "0.456711", "0.4565983", "0.45640782", "0.45627156", "0.45531604", "0.4549862", "0.45493755", "0.4548663", "0.454836", "0.45467296", "0.45389715", "0.45312795", "0.45305175", "0.45263553", "0.45262006", "0.45252538", "0.45252222", "0.4516983", "0.45165488", "0.45150867", "0.4513503", "0.45058545", "0.4503916", "0.45037404", "0.45034105", "0.4501761", "0.44995898", "0.44978192", "0.44918364", "0.44872975", "0.44827145", "0.4481678" ]
0.0
-1
Constructor from the details. The business day conventions, endofmonth and spot lag are from the Ibor index.
public GeneratorSwapFixedIbor(String name, Period fixedLegPeriod, DayCount fixedLegDayCount, IborIndex iborIndex, final BusinessDayConvention businessDayConvention, final boolean endOfMonth, final int spotLag) { super(name); Validate.notNull(fixedLegPeriod, "fixed leg period"); Validate.notNull(fixedLegDayCount, "fixed leg day count"); Validate.notNull(iborIndex, "ibor index"); _fixedLegPeriod = fixedLegPeriod; _fixedLegDayCount = fixedLegDayCount; _iborIndex = iborIndex; // _name = iborIndex.getCurrency().toString() + iborIndex.getTenor().toString() + fixedLegPeriod.toString(); _businessDayConvention = businessDayConvention; _endOfMonth = endOfMonth; _spotLag = spotLag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Forecastday() {\n }", "public mbvBoletinPeriodo() {\r\n }", "public DayPeriod() {\n\t}", "public CinemaDate() {\n }", "private BusinessDateUtility() {\n\t}", "public CalendarBasi()\n {\n dia = new DisplayDosDigitos(31);\n mes = new DisplayDosDigitos(13);\n anio = new DisplayDosDigitos(100);\n }", "public Holidays (){\n name= \"Exotic Beach Holiday of a Lifetime\";\n cost = 5000;\n location = \"Fesdu Island, Maldives\";\n type = \"beach\";\n }", "RollingCalendar()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public Calendar() {\n }", "protected StartOfDay() {\n super();\n\n }", "public DayOfWeekInMonthRule() {\n this(1, SerialDate.MONDAY, MonthConstants.JANUARY);\n }", "private DateTimeAdjusters() {\n\n }", "public PeriodicityBean() {\n\t\twhen = from = to = null;\n\t\tperiodicity = \"\";\n\t}", "public Watch(){ //Watch Constuctor\r\n super(); //Values passed in from the super class\r\n month = 1; //Initialize month to 1\r\n day = 1; //Initialize day to 1\r\n year = 1980; //Initialize year to 1980\r\n}", "public DateTime() {\n this((BusinessObject) null);\n }", "public ICareDailyDietChart() {\n\n\t}", "public OrgDay() {\n events = new LinkedList<>();\n }", "@Override\n\tpublic void initDate() {\n\n\t}", "public Forecasting() {\n }", "public DateUtil ( DateUtil b)\n {\n this.ordinal = b.ordinal;\n this.yyyy = b.yyyy;\n this.mm = b.mm;\n this.dd = b.dd;\n }", "public AgendaMB() {\n GregorianCalendar dtMax = new GregorianCalendar(); \n Date dt = new Date();\n dtMax.setTime(dt); \n GregorianCalendar dtMin = new GregorianCalendar(); \n dtMin.setTime(dt);\n dtMin.add(Calendar.DAY_OF_MONTH, 1);\n dtMax.add(Calendar.DAY_OF_MONTH, 40);\n dataMax = dtMax.getTime();\n dataMin = dtMin.getTime(); \n }", "public Rates() {\n }", "Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}", "public Date212 (String s){ //initial constructor\n full_Date = s;\n // System.out.println(full_Date + \"jdjdj\");\n if (!isValidDate(full_Date)) throw new IllegalArgumentException(\"Invalid Date Format!\"); \n //If it is not true that the date is valid then throw a error.\n /* \n The substring methods to pull out the Year, Month, and Day.\n */\n Year = Integer.parseInt(full_Date.substring(0,3)); \n Month = Integer.parseInt(full_Date.substring(4,5));\n Day = Integer.parseInt(full_Date.substring(6,7));\n count++; \n addArray(this); //Calling the function \"addArray\" with 'this isntance of date212'\n // System.out.println(myDates[i]);\n\n }", "public TypicalDay() {\n\t\tnbDeliveries = 0;\n\t\twareHouse = -1;\n\t}", "public FillDate() {\n }", "public DateIn(int day, int month, int year){\n\tthis.day = day;\n\tthis.month = month;\n\tthis.year = year;\n\t}", "public DateAxis() { this(null); }", "public Doctor(String fN, String lN, String phNum, String special)\r\n {\r\n \r\n super(fN, lN, phNum);\r\n this.Dec = new String[appointmentsInDay][monthsWith31Days];\r\n this.Nov = new String[appointmentsInDay][monthsWith30Days];\r\n this.Oct = new String[appointmentsInDay][monthsWith31Days];\r\n this.Sep = new String[appointmentsInDay][monthsWith30Days];\r\n this.Aug = new String[appointmentsInDay][monthsWith31Days];\r\n this.Jul = new String[appointmentsInDay][monthsWith31Days];\r\n this.Jun = new String[appointmentsInDay][monthsWith30Days];\r\n this.May = new String[appointmentsInDay][monthsWith31Days];\r\n this.Apr = new String[appointmentsInDay][monthsWith30Days];\r\n this.Mar = new String[appointmentsInDay][monthsWith31Days];\r\n this.Feb = new String[appointmentsInDay][daysInFebruary];\r\n this.Jan = new String[appointmentsInDay][monthsWith31Days];\r\n specialization = special;\r\n \r\n }", "public Flight() {\n\tthis.year = 0;\n\tthis.month = 0;\n\tthis.dayOfMonth = 0;\n\tthis.dayOfWeek = 0;\n\tthis.uniqueCarrier = \"\";\n\tthis.originAirportID = \"\";\n\tthis.destAirportID = \"\";\n\tthis.depDelay = 0.0;\n\tthis.arrDelay = 0.0;\n\tthis.cancelled = false;\n\tthis.carrierDelay = 0;\n\tthis.weatherDelay = 0;\n\tthis.nasDelay = 0;\n\tthis.securityDelay = 0;\n\tthis.lateAircraftDelay = 0;\n\tthis.divAirportLandings = 0;\n }", "public Holiday(int day, int month) {\n\t\tdate = LocalDate.of(2019,month,day);\n\t}", "public PeriodFactoryImpl() {\n\t\tsuper();\n\t}", "public Month () {\n monthNumber = 1;\n }", "public Calendar() {\n dateAndTimeables = new HashMap<>();\n }", "private ARXDate() {\r\n this(\"Default\");\r\n }", "public Bus(int busNo, int lastStop, int nextStop, double lastStopArrivalTime) {\r\n\t\tsuper();\r\n\t\tthis.busNo = busNo;\r\n\t\tthis.lastStop = lastStop;\r\n\t\tthis.nextStop = nextStop;\r\n\t\tthis.lastStopArrivalTime = lastStopArrivalTime;\r\n\t\tthis.busAtStop = 'N';\r\n\t\tthis.allBusesSync='Y';\r\n\t}", "public BranchAndBound() {\n this.timeFi = Long.parseLong(\"2000000000000\");;\n this.numSoluciones = 0;\n }", "public Loan(){\n\t\tthis(\"\", 0, 0, 0, 0);\n\t\tstart_date = null;\n\t}", "public CrlSeries()\n {\n super();\n }", "public Weekday() {\n }", "public TimeSeriesTally() {\n\tsuper();\n\tfPrevTime = 0.0;\n }", "public BicycleStation() {\n super();\n }", "public MyDate(int inYear, int inDay, int inMonth)\n {\n year = inYear;\n day = inDay;\n month = inMonth;\n }", "public DateColumn() {\n\t\t// default constructor.\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.set(Calendar.HOUR_OF_DAY,0);\n\t\tcal.set(Calendar.MINUTE,0);\n\t\tcal.set(Calendar.SECOND,0);\n\t\tcal.set(Calendar.MILLISECOND,0);\n\t\tint dayOfTheWeek = cal.get(Calendar.DAY_OF_WEEK);\n\n\t displayStr = ScheduleManager.dayNames[dayOfTheWeek-1];\n\t}", "public DateAxis(String label, TimeZone zone, Locale locale) {\n/* 402 */ super(label, createStandardDateTickUnits(zone, locale));\n/* 403 */ this.tickUnit = new DateTickUnit(DateTickUnitType.DAY, true, new SimpleDateFormat());\n/* */ \n/* 405 */ setAutoRangeMinimumSize(2.0D);\n/* */ \n/* 407 */ setRange(DEFAULT_DATE_RANGE, false, false);\n/* 408 */ this.dateFormatOverride = null;\n/* 409 */ this.timeZone = zone;\n/* 410 */ this.locale = locale;\n/* 411 */ this.timeline = DEFAULT_TIMELINE;\n/* */ }", "public Loan(int loanId, Book bOoK, Member mEmBeR, Date dueDate) { ////changed 'BoOk' to 'book' and changed 'MeMbEr' to 'member' and DuE_dAtE to dueDate\r\n\t\tthis.LoAn_Id = loanId; //changed 'LoAn_Id' to 'loanId'\r\n\t\tthis.BoOk = book; //changed 'BoOk' to 'book'\r\n\t\tthis.MeMbEr = member; //changed 'MeMbEr' to 'member'\r\n\t\tthis.DaTe = dueDate; //changed DuE_dAtE to dueDate\r\n\t\tthis.state = loanState.current; //changed 'StAtE' to 'state' and lOaN_sTaTe.CURRENT to loanState.current\r\n\r\n\t}", "public Datum(int jahr, int monat) {\n this.tag = 1;\n this.monat = monat;\n this.jahr = jahr;\n }", "private void creatBirth(){\n\n for (int i = 0; i < repeatLunar.size() - 1; i++) {\n mLunar = repeatLunar.get(i);\n mLunarDay = mLunar.getLunarDay();\n mLunarMonth = mLunar.getLunarMonth();\n mLunarYear = mLunar.getLunarYear();\n mRepeat = mLunar.getRepeat();\n\n createEvent(getDate(mLunarYear, mLunarMonth, mLunarDay));\n\n\n }\n\n\n\n }", "public Day()\n\t{\n\t\tthis(TimeZone.getDefault(), new Date());\n\t}", "public LimitDayAndMonthByCpn() {\r\n\t\tthis.mydb = new DBForMT();\r\n\t}", "public DateGraphFormat(){\n }", "public Calendar() {\n initComponents();\n }", "public BusStopRecord(Long timestamp, String lineId, String direction, String journeyPatternId, Timestamp timeFrame, Long vehicleJourneyId, String operator, Boolean congestion, BigDecimal latitude, BigDecimal longitude, Integer delay, Integer blockId, Integer vehicleId, String stopId, Boolean atBusStop) {\n super(BusStop.BUS_STOP);\n\n set(0, timestamp);\n set(1, lineId);\n set(2, direction);\n set(3, journeyPatternId);\n set(4, timeFrame);\n set(5, vehicleJourneyId);\n set(6, operator);\n set(7, congestion);\n set(8, latitude);\n set(9, longitude);\n set(10, delay);\n set(11, blockId);\n set(12, vehicleId);\n set(13, stopId);\n set(14, atBusStop);\n }", "public mbvConsolidadoPeriodoAnteriores() {\r\n }", "public CinemaHallRecord() {\n super(CinemaHall.CINEMA_HALL);\n }", "private QaCalendar() {\n }", "public BrightTimeService() {\n super(\"BrightTimeService\");\n }", "public ForecastCatalog () {\n\t\teqk_count = -1;\n\t\tlat_lon_depth_list = new long[1];\n\t\tlat_lon_depth_list[0] = 0L;\n\t\tmag_time_list = new long[1];\n\t\tmag_time_list[0] = 0L;\n\n\t\tset_standard_format();\n\t}", "public ObjectFactoryModuleCalendar() {\n }", "public Datum(int jahr) {\n this.tag = 1;\n this.monat = 1;\n this.jahr = jahr;\n }", "public InfLinearAxis() {\n }", "@Before\n\tpublic void init() {\n\t\t\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\t\n\t cal.add(Calendar.DATE, -2); \n\t \n\t fechaOperacion = LocalDate.of(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH));\n\t \n\n\t\t\n\t\tCiudad buenos_aires = new Ciudad(new Provincia(\"Argentina\", \"Buenos Aires\"), \"Capital Federal\");\n\t \t\n \tProvincia prov_buenos_aires = new Provincia(\"Ciudad Autonoma de Buenos Aires\",\"Capital Federal\");\n \t\n \tDireccionPostal direccionPostal = new DireccionPostal( \"lacarra 180\", buenos_aires, prov_buenos_aires, \"argentina\", new Moneda(\"$\",\"Peso argentino\" ));\n\t\n\t\t\n\t\t entidad1 = new EntidadJuridica(\"chacho bros\", \"grupo chacho\", \"202210\", direccionPostal, new Categoria(\"ONG\"),TipoEmpresa.EMPRESA);\n\n\t\t\n\t\t\n\t}", "public DayPlanFragment() {\n\t}", "public Appliction()\r\n {\r\n date=LocalDate.of(2020,1,1);//just a start point for the calendar\r\n Appliction p=new Appliction(date.getYear(),date.getMonthValue());\r\n }", "public DateAxis(String label) { this(label, TimeZone.getDefault()); }", "public Date(int y) {\r\n\r\n\t\tmonth = LAST_MONTH;\r\n\t\tday = DAYS[LAST_MONTH];\r\n\t\tyear = y;\r\n\t}", "public Holiday(long id, String title, String description, String image, String typeOfHoliday, boolean riseOfFlag) {\n\t\tsuper(); //???\n\t\tthis.id = id;\n\t\tthis.title = title;\n\t\tthis.description = description;\n\t\tthis.image = image;\n\t\tthis.typeOfHoliday = typeOfHoliday;\n\t\tthis.riseOfFlag = riseOfFlag;\n\t}", "public Day2() {\n entry = new LinkedList[INITIAL_CAPACITY];\n }", "public MonthDay() {\n setMonth(1);\n setDay(1);\n }", "public DateCustom(int __day, int __month, int __year) {\n this._day = __day;\n this._month = __month;\n this._year = __year;\n }", "public Data() {\n\t\tCalendar now = new GregorianCalendar();\n\t\tthis.anno = now.get(Calendar.YEAR);\n\t\tthis.giorno = now.get(Calendar.DAY_OF_MONTH);\n\t\tthis.mese = Data.MESI[now.get(Calendar.MONTH)];\n\t}", "public MyDate(){\n this.day = 0;\n this.month = 0;\n this.year = 0;\n }", "public Month(String name, int year) {\n\t\tthis.name = name;\n\t\tthis.year = year;\n\t\tint offset = getOffset();\n\t\tdays = new Day[42];\n\t\tif (name.equals(\"February\")) {\n\t\t\tif (leap(year)) {\n\t\t\t\tfor (int i = offset; i < 29 + offset; i++) {\n\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\tnumDays = 29;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (int i = offset; i < 28 + offset; i++) {\n\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\tnumDays = 28;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tswitch(name) {\n\t\t\t\tcase \"January\":\n\t\t\t\t\tfor (int i = offset; i < 31 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 31;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"March\":\n\t\t\t\t\tfor (int i = offset; i < 31 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 31;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"April\":\n\t\t\t\t\tfor (int i = offset; i < 30 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 30;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"May\":\n\t\t\t\t\tfor (int i = offset; i < 31 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 31;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"June\":\n\t\t\t\t\tfor (int i = offset; i < 30 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 30;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"July\":\n\t\t\t\t\tfor (int i = offset; i < 31 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 31;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"August\":\n\t\t\t\t\tfor (int i = offset; i < 31 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 31;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"September\":\n\t\t\t\t\tfor (int i = offset; i < 30 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 30;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"October\":\n\t\t\t\t\tfor (int i = offset; i < 31 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 31;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"November\":\n\t\t\t\t\tfor (int i = offset; i < 30 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 30;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"December\":\n\t\t\t\t\tfor (int i = offset; i < 31 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 31;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public Payment(int year, int month, int electro_start, int electro_end, int water_start, int water_end) {\n if (month >= 0 & month < 13) {\n this.year = year;\n this.month = month;\n this.electro_start = electro_start;\n this.electro_end = electro_end;\n this.water_start = water_start;\n this.water_end = water_end;\n name = year + \".\" + month + \" (\" + MONTHS[month] + \")\";\n } else {\n throw new ArrayIndexOutOfBoundsException(\"Wrong number of month - Неправильный номер месяца\");\n }\n\n }", "Season(String months)\n {\n span = months;\n }", "public TimeTravel() {\r\n\t\t}", "public Datum() {\n this.tag = 1;\n this.monat = 1;\n this.jahr = 1;\n }", "public M csmiBirthdayEnd(Object end){this.put(\"csmiBirthdayEnd\", end);return this;}", "public Airport(int X, int Y, int Fees) {\r\n\t\tthis.X=X;\r\n\t\tthis.Y=Y;\r\n\t\tthis.AirportFees=Fees;\r\n\t}", "public DateUtil ()\n {\n\n }", "public Booking() {\r\n\t\t/**\r\n\t\t*\tGet the number of milliSeconds from the system time and set it to the java.sql.Date\r\n\t\t*\tobject to create a booking number and also to set the start time.\r\n\t\t*/\r\n\t\tlong dateTimeMillis = System.currentTimeMillis();\r\n\t\t/**\r\n\t\t*\tThis date is for generating String bookingNo using the date and time values\r\n\t\t*/\r\n\t\tjava.util.Date date = new java.util.Date(dateTimeMillis);\r\n\t\t/**\r\n\t\t*\tPass the current date in sql.Timestamp object.\r\n\t\t*/\r\n\t\tstartTime = new java.sql.Timestamp(date.getTime());\r\n\t\t/**\r\n\t\t*\tLet it be 0 initially and then update it at the time of checkout\r\n\t\t*/\r\n\t\tendTime = new java.sql.Timestamp(0);\r\n\t}", "public CalendarioSilvia()\n {\n // initialise instance variables\n dia = new DisplayDosDigitos(31);\n mes = new DisplayDosDigitos(13);\n año = new DisplayDosDigitos(100);\n }", "public IntercityBus(){\n super(\"CombustionEngine\");\n super.setRegion(\"Regional\");\n }", "public LocalDateAdapter() {\r\n\t\tsuper();\r\n\t}", "public Datum(int jahr, int monat, int tag) {\n this.tag = tag;\n this.monat = monat;\n this.jahr = jahr;\n }", "public LateComingRecord() {\n\t\t}", "public WeekPattern() {}", "public JobApplicationStatusBeisen_20170612() {\n this(\"job_application_status_beisen_20170612\", null);\n }", "public GchCarLifeBbs() {\n this(\"gch_car_life_bbs\", null);\n }", "@Override\n\tpublic FdBusinessDate getCommonFdBusinessDate() {\n map.put(\"busiTypeCode\",\"02\");\n map.put(\"subBusiType\",\"00\");\n\t\treturn mapper.selectByPK(map);\n\t}", "public void setupCalendar() { \n\t\tcal = whenIsIt();\n\t\tLocale here = Locale.US;\n\t\tthisMonth = cal.getDisplayName(2, Calendar.LONG_STANDALONE, here);\n\t\tdate = cal.get(5); //lesson learned: if it's a number do this\n\t\t//ADD CODE FOR ORDINALS HERE\n\t\tyear = cal.get(1);\n\t\tthisHour = cal.get(10);\n\t\tthisMinute = cal.get(12);\n\t\tthisSecond = cal.get(13);\n\t\tamPm = cal.getDisplayName(9, Calendar.SHORT, here);\n\t\tthisDay = thisMonth +\" \"+ addOrdinal(date) + \", \" + year;\n\t\tcurrentTime = fix.format(thisHour) + \":\" + fix.format(thisMinute) + \":\" + fix.format(thisSecond) + \" \" + amPm;\n\t}", "public Value(int year, int month, int day) {\n\n // Construct the Calendar\n _calendar = Calendar.getInstance();\n _calendar.set(year, month - 1, day);\n }", "public Epoch(Parcel in){\n name = in.readString();\n init = (Calendar)in.readSerializable();\n end = (Calendar)in.readSerializable();\n id = in.readInt();\n }", "public DayPeriod(Date startDate, Date endDate) {\n\t\tthis.start = startDate;\n\t\tthis.end = endDate;\n\t}", "public Excel_Reporte_Borrador() {\r\n }", "public Billfold()\n {\n \n }", "public ExceptionDate(){\n\t\tsuper();\n\t}", "public BirthInfo() {}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "public CmsPeriodicalTVORowImpl() {\n }" ]
[ "0.61094135", "0.5817202", "0.57971025", "0.5790953", "0.576265", "0.570463", "0.567899", "0.56181324", "0.5501611", "0.5480472", "0.54474014", "0.54446626", "0.54306597", "0.53495663", "0.52860475", "0.5278388", "0.5270211", "0.52635103", "0.5259885", "0.52446526", "0.5233912", "0.52135205", "0.5208256", "0.52065134", "0.52040946", "0.5196037", "0.5183463", "0.51746315", "0.5151506", "0.5142575", "0.51261944", "0.5105914", "0.5104063", "0.50987864", "0.50927037", "0.50677186", "0.505051", "0.5036508", "0.50352925", "0.5034075", "0.50329894", "0.50287735", "0.5023549", "0.5018172", "0.5015831", "0.5014191", "0.50018436", "0.4996704", "0.49949685", "0.49898484", "0.49809566", "0.4978462", "0.49708843", "0.4950545", "0.4928363", "0.49277052", "0.49211136", "0.4905268", "0.49041793", "0.49027577", "0.49017602", "0.4900417", "0.489538", "0.4894742", "0.48892075", "0.4889193", "0.48875526", "0.4883394", "0.4876563", "0.48755494", "0.4871534", "0.48692375", "0.48680678", "0.48655182", "0.48633823", "0.4853583", "0.48507178", "0.48452368", "0.48441145", "0.48372623", "0.48356888", "0.48325694", "0.48292905", "0.48276898", "0.48185733", "0.48108795", "0.4804685", "0.48038965", "0.48011887", "0.47969967", "0.47924623", "0.47719806", "0.47542566", "0.47522652", "0.47442278", "0.47406676", "0.47365072", "0.4734012", "0.47315034", "0.47259456" ]
0.55528474
8
Gets the _fixedLegPeriod field.
public Period getFixedLegPeriod() { return _fixedLegPeriod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Period getFixedLegPeriod() {\n return _index.getFixedLegPaymentTenor().getPeriod();\n }", "public DayCount getFixedLegDayCount() {\n return _fixedLegDayCount;\n }", "public Long getPeriod() {\n return this.Period;\n }", "public org.hl7.fhir.Period getPeriod()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Period target = null;\n target = (org.hl7.fhir.Period)get_store().find_element_user(PERIOD$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public double getPeriod() {\n return period;\n }", "public DR getBillingPeriod() { \r\n\t\tDR retVal = this.getTypedField(26, 0);\r\n\t\treturn retVal;\r\n }", "public DR getPsl26_BillingPeriod() { \r\n\t\tDR retVal = this.getTypedField(26, 0);\r\n\t\treturn retVal;\r\n }", "@Updatable\n public Integer getPeriod() {\n return period;\n }", "public Period getPeriod() {\n return period;\n }", "public int getPeriod() {\n return period;\n }", "org.hl7.fhir.Period getValuePeriod();", "public long getPeriodId() {\n return periodId;\n }", "public DayCount getFixedLegDayCount() {\n return _index.getFixedLegDayCount();\n }", "public String getPeriod() {\n return period;\n }", "public int getPeriod()\r\n\t{\r\n\t\treturn period;\r\n\t}", "public Number getPeriodNum() {\n return (Number) getAttributeInternal(PERIODNUM);\n }", "public Number getPeriodId() {\n return (Number) getAttributeInternal(PERIODID);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public String getPeriod() {\n return this.period;\n }", "public AdjustmentPeriodTypeId getPeriod() {\n return this.period;\n }", "public double[] getFixingPeriodTime() {\n return _fixingPeriodTime;\n }", "public com.google.protobuf.ByteString\n getFlightLegDurationBytes() {\n java.lang.Object ref = flightLegDuration_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n flightLegDuration_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Integer getPeriodId() {\n\t\treturn periodId;\n\t}", "public java.lang.String getFlightLegDuration() {\n java.lang.Object ref = flightLegDuration_;\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 flightLegDuration_ = s;\n return s;\n }\n }", "org.hl7.fhir.Period getAppliesPeriod();", "public java.lang.String getFlightLegDuration() {\n java.lang.Object ref = flightLegDuration_;\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 flightLegDuration_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getFlightLegDurationBytes() {\n java.lang.Object ref = flightLegDuration_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n flightLegDuration_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "double getPeriod();", "public java.lang.String getChargePeriod() {\n\treturn chargePeriod;\n}", "BigInteger getPeriod();", "public TimePeriod getPeriod();", "public Period bornPeriod() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_BORN_PERIOD);\n }", "public java.lang.Integer getPeriodo() {\n return periodo;\n }", "public int getConfiguredPeriod() {\n return configuredPeriod;\n }", "public java.lang.Integer getLoanMaxAlreadyRepayPeriod() {\n return loanMaxAlreadyRepayPeriod;\n }", "public double[] getFixingPeriodAccrualFactor() {\n return _fixingPeriodAccrualFactor;\n }", "public float getFixedDuration() {\n return fixedDuration;\n }", "public double get30To39FieldGoals()\r\n {\r\n return fg_30_39;\r\n }", "ReportingPeriod getReportingPeriod(Long reportingPeriodId);", "com.google.protobuf.ByteString\n getFlightLegDurationBytes();", "public double get40To49FieldGoals()\r\n {\r\n return fg_40_49;\r\n }", "public DateInterval getTimePeriod() {\n return this.timePeriod;\n }", "public DateInterval getTimePeriod() {\n return this.timePeriod;\n }", "int getPeriod();", "public String getOpenPeriod() {\n return openPeriod;\n }", "public java.math.BigDecimal getQtyPeriod7() \r\n {\r\n return get_ValueAsBigDecimal(\"QtyPeriod7\");\r\n \r\n }", "private com.google.protobuf.SingleFieldBuilder<\n com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg.Builder, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLegOrBuilder> \n getOriginFlightLegFieldBuilder() {\n if (originFlightLegBuilder_ == null) {\n originFlightLegBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg.Builder, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLegOrBuilder>(\n getOriginFlightLeg(),\n getParentForChildren(),\n isClean());\n originFlightLeg_ = null;\n }\n return originFlightLegBuilder_;\n }", "public Period onsetPeriod() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_ONSET_PERIOD);\n }", "private BillingPeriod getBillingPeriod() {\n\t\treturn (BillingPeriod) this.getBean();\n\t}", "double getCalibrationPeriod();", "@NotNull(message = \"empty.paymentPeriod\")\n public PaymentPeriod getPaymentPeriod() {\n\n return paymentPeriod;\n }", "private com.google.protobuf.SingleFieldBuilder<\n com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg.Builder, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLegOrBuilder> \n getReturnFlightLegFieldBuilder() {\n if (returnFlightLegBuilder_ == null) {\n returnFlightLegBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg.Builder, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLegOrBuilder>(\n getReturnFlightLeg(),\n getParentForChildren(),\n isClean());\n returnFlightLeg_ = null;\n }\n return returnFlightLegBuilder_;\n }", "private Periodo getPeriodoCorte() {\n String valor = parametrosDao.obtenerTodosParametros().get(\"integrador.periodo.arranque\");\r\n\r\n return Periodo.parse(valor, \"yyyyMM\");\r\n }", "public Period toPeriod() {\r\n return new Period(getStartMillis(), getEndMillis(), getChronology());\r\n }", "public Double getFpl() {\r\n return fpl;\r\n }", "public java.lang.Integer getHighestPeriodNum() {\n return highestPeriodNum;\n }", "public int getTimePeriod() {\n return timePeriod;\n }", "public float getPeriodicRateChange() {\n return periodicRateChange;\n }", "public Integer getPVTgracePeriod() {\n return (Integer) getAttributeInternal(PVTGRACEPERIOD);\n }", "public double getRotationalPeriod() {\n return rotationalPeriod;\n }", "public double get10To19FieldGoals()\r\n {\r\n return fg_0_19;\r\n }", "public int getLBR_LatePaymentPenaltyDays();", "java.lang.String getFlightLegDuration();", "public java.math.BigDecimal getQtyPeriod9() \r\n {\r\n return get_ValueAsBigDecimal(\"QtyPeriod9\");\r\n \r\n }", "public Number getPeriodicalId() {\n return (Number)getAttributeInternal(PERIODICALID);\n }", "public double get20To29FieldGoals()\r\n {\r\n return fg_20_29;\r\n }", "public Optional<DerivativePrice> getDerivativePrice() {\n return repository.findDerivativePrice(new Tuple<>(ticker,optionName));\n }", "public java.lang.String getPeriodicidad() {\n return periodicidad;\n }", "@Override\n\tpublic java.lang.String getNoticePeriod() {\n\t\treturn _candidate.getNoticePeriod();\n\t}", "public BigDecimal getwPrFee() {\n return wPrFee;\n }", "public java.lang.Double getVar40() {\n return var40;\n }", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg getReturnFlightLeg() {\n if (returnFlightLegBuilder_ == null) {\n return returnFlightLeg_ == null ? com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg.getDefaultInstance() : returnFlightLeg_;\n } else {\n return returnFlightLegBuilder_.getMessage();\n }\n }", "public java.lang.Double getVar40() {\n return var40;\n }", "public YangString getMaxRecordsPerPeriodValue() throws JNCException {\n return (YangString)getValue(\"max-records-per-period\");\n }", "public List<String> getDistrictEntitlementPeriod() {\n\t\treturn stateEqualMasterDao.getElementValueList(\"DIST_ENTL_CALC_PERIOD\");\n\t}", "BigDecimal getFixedPointField();", "public int getChannelPeriod() {\n return channelPeriod;\n }", "@Nullable String getCollectionPeriod();", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg getReturnFlightLeg() {\n return returnFlightLeg_ == null ? com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg.getDefaultInstance() : returnFlightLeg_;\n }", "public BigDecimal getRepairLim() {\n\t\treturn repairLim;\n\t}", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLegOrBuilder getReturnFlightLegOrBuilder() {\n if (returnFlightLegBuilder_ != null) {\n return returnFlightLegBuilder_.getMessageOrBuilder();\n } else {\n return returnFlightLeg_ == null ?\n com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg.getDefaultInstance() : returnFlightLeg_;\n }\n }", "public void setPeriod(Long Period) {\n this.Period = Period;\n }", "public int getTimePeriod()\n\t{\n\t\treturn timePeriod;\n\t}", "public Period getTenor() {\n return _index.getSwapTenor().getPeriod();\n }", "org.apache.xmlbeans.XmlDouble xgetSignalPeriod();", "public java.lang.String getDylb() {\r\n return localDylb;\r\n }", "public java.math.BigDecimal getQtyPeriod4() \r\n {\r\n return get_ValueAsBigDecimal(\"QtyPeriod4\");\r\n \r\n }", "public java.util.List<org.drip.analytics.cashflow.CompositePeriod> cashFlowPeriod()\n\t{\n\t\treturn _lsPeriod;\n\t}", "public boolean getFixed() {\r\n return fixed;\r\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.TimestampValue, io.dstore.values.TimestampValue.Builder, io.dstore.values.TimestampValueOrBuilder> \n getDayFieldBuilder() {\n if (dayBuilder_ == null) {\n dayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.TimestampValue, io.dstore.values.TimestampValue.Builder, io.dstore.values.TimestampValueOrBuilder>(\n getDay(),\n getParentForChildren(),\n isClean());\n day_ = null;\n }\n return dayBuilder_;\n }", "public double getLethalRange()\n {\n return this.lethal_range;\n }", "public int getmaxPeriodInOneRow() {\n return maxPeriodInOneRow;\n }", "public java.lang.String getDRGFD() {\n return DRGFD;\n }", "public org.hl7.fhir.Period addNewPeriod()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Period target = null;\n target = (org.hl7.fhir.Period)get_store().add_element_user(PERIOD$2);\n return target;\n }\n }", "private com.google.protobuf.SingleFieldBuilder<\n io.lightcone.data.types.Percentage, io.lightcone.data.types.Percentage.Builder, io.lightcone.data.types.PercentageOrBuilder> \n getWalletSplitFieldBuilder() {\n if (walletSplitBuilder_ == null) {\n walletSplitBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n io.lightcone.data.types.Percentage, io.lightcone.data.types.Percentage.Builder, io.lightcone.data.types.PercentageOrBuilder>(\n getWalletSplit(),\n getParentForChildren(),\n isClean());\n walletSplit_ = null;\n }\n return walletSplitBuilder_;\n }", "public BigDecimal getLBR_LatePaymentPenaltyAP();" ]
[ "0.85428023", "0.6706631", "0.66260624", "0.63134503", "0.62603736", "0.6226785", "0.6183305", "0.615328", "0.6141845", "0.6133108", "0.60976577", "0.60475224", "0.6031363", "0.6030895", "0.6028194", "0.60268015", "0.59920293", "0.5987089", "0.5987089", "0.5987089", "0.5987089", "0.5987042", "0.59746695", "0.5961506", "0.592065", "0.58152795", "0.579779", "0.5784841", "0.57792026", "0.5762246", "0.5761413", "0.5757317", "0.5652351", "0.5644681", "0.5594396", "0.558333", "0.5572359", "0.55548835", "0.55393547", "0.5466436", "0.5464866", "0.5460838", "0.54590297", "0.54498917", "0.54487187", "0.54122776", "0.54122776", "0.54022676", "0.53583574", "0.5357122", "0.5330814", "0.5317397", "0.5313539", "0.5310823", "0.5290169", "0.5288847", "0.5268668", "0.5268365", "0.5256311", "0.5244212", "0.52406496", "0.5235279", "0.5231026", "0.522315", "0.5204529", "0.519107", "0.5166689", "0.5149905", "0.5127833", "0.509278", "0.508647", "0.50810343", "0.50805527", "0.506672", "0.5063613", "0.50635993", "0.5055276", "0.5044853", "0.5044818", "0.50328285", "0.50309676", "0.50305724", "0.50127006", "0.5008295", "0.49992922", "0.49989623", "0.49986196", "0.4980958", "0.49785927", "0.49772403", "0.4973675", "0.4953829", "0.49499738", "0.49450853", "0.49437794", "0.49290833", "0.49282053", "0.49234194", "0.49119958", "0.49076992" ]
0.8931024
0
Gets the _fixedLegDayCount field.
public DayCount getFixedLegDayCount() { return _fixedLegDayCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DayCount getFixedLegDayCount() {\n return _index.getFixedLegDayCount();\n }", "public DayCount getDayCount() {\n return dayCount;\n }", "public java.lang.Integer getNoOfDays () {\n\t\treturn noOfDays;\n\t}", "public java.lang.Integer getNoOfDays () {\n\t\treturn noOfDays;\n\t}", "public static int getNumberOfDays() {\n\t\treturn numberOfDays;\n\t}", "public int getNumDays() {\n\t\treturn numDays;\n\t}", "public int getNumberOfDays() {\n return numberOfDays;\n }", "@JsonIgnore\n\tpublic int getnDaysToFull()\n\t{\n\t\treturn nDaysToFull;\n\t}", "public BigDecimal getNO_OF_DAYS() {\r\n return NO_OF_DAYS;\r\n }", "public long getDays() {\r\n \treturn days;\r\n }", "int getNumberDays();", "public int getDays(){\r\n\t\treturn days;\r\n\t}", "public int days() {\n if (isInfinite()) {\n return 0;\n }\n Period p = new Period(asInterval(), PeriodType.days());\n return p.getDays();\n }", "public int getDays() {\n return this.days;\n }", "public int getDayDistance() {\n\t\treturn dayDistance;\n\t}", "public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }", "public int getLengthDays() {\r\n\t\treturn diffDays(imageList.get(0).cal, getLast().cal);\r\n\t}", "public Period getFixedLegPeriod() {\n return _fixedLegPeriod;\n }", "public int getNumDaysForComponent(Record record);", "public int getNumberOfDays()\n\t{\n\t\treturn m_calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n\t}", "public int getMaxDays() {\n return maxDays;\n }", "public static long getDayNumber() {\n return getSecondsSinceEpoch() / SECS_TO_DAYS;\n }", "private int getDays() {\n\t\tlong arrival = arrivalDate.toEpochDay();\n\t\tlong departure = departureDate.toEpochDay();\n\t\tint days = (int) Math.abs(arrival - departure);\n\n\t\treturn days;\n\t}", "public int getKeepLogDays() {\n\t\tInteger ii = (Integer) get_Value(\"KeepLogDays\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "public Integer getDayVisitCount() {\n return dayVisitCount;\n }", "public int getUDays() {\n return uDays;\n }", "public int getEDays() {\n return eDays;\n }", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "public java.lang.Integer getDaysNonWorking() {\n return daysNonWorking;\n }", "public int getDay() {\r\n\t\treturn (this.day);\r\n\t}", "public int getNumberOfVisibleDays() {\n return config.numberOfVisibleDays;\n }", "public int getIDays() {\n return iDays;\n }", "public int getDay() {\n\t\treturn this.day;\n\t}", "public int getDay() {\n\t\treturn this.day;\n\t}", "public int getDaysAdded() {\n return daysAdded;\n }", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDEALERCount() {\r\n\t\treturn _DEALERList.size();\r\n\t}", "public int getLBR_CollectionReturnDays();", "public int getDay() {\r\n return FormatUtils.uint8ToInt(mDay);\r\n }", "public int getSNbrSvcDtlToDay()\r\n {\r\n return this._sNbrSvcDtlToDay;\r\n }", "long getTermDays();", "public static final long getTicksPerDay() {\n return p().TICKS_PER_RLDAY;\n }", "public Period getFixedLegPeriod() {\n return _index.getFixedLegPaymentTenor().getPeriod();\n }", "public int getFulfillmentTimeInDays () {\n return 0;\n }", "public int getTotalDays() {\r\n int totalDays = 0;\r\n for (int d = 0; d < 5; d++) {\r\n for (int h = 0; h < 13; h++) {\r\n if (weekData[d][h] != 0) {\r\n totalDays += 1;\r\n break;\r\n }\r\n }\r\n }\r\n return totalDays;\r\n }", "public int getLongestDay() {\r\n int longest = 0;\r\n // for each day of the week\r\n for (int d = 0; d < 5; d++) {\r\n int subtotal = 0;\r\n int sectionStart = 0;\r\n // find first hour that != 0\r\n for (int h = 0; h < 13; h++) {\r\n if (weekData[d][h] != 0) {\r\n sectionStart = h;\r\n break;\r\n }\r\n }\r\n // loop in reverse to find the last hour that != 0\r\n for (int h = 12; h >= 0; h--) {\r\n if (weekData[d][h] != 0) {\r\n // add the difference to the total\r\n subtotal += h-sectionStart+1;\r\n break;\r\n }\r\n }\r\n // if new longest day is longer than old longest day, set it to the\r\n // new value\r\n if (subtotal > longest) {\r\n longest = subtotal;\r\n }\r\n }\r\n return longest;\r\n }", "Integer getDaysSpanned();", "public int getDay(){\n\t\treturn day;\n\t}", "public int getDay() {\n\t\treturn day;\n\t}", "public Integer getGestationaldays() {\n return gestationaldays;\n }", "public int getDay() {\r\n return day;\r\n }", "public java.lang.Integer getTotalOverdueCount24M30D() {\n return totalOverdueCount24M30D;\n }", "public long daysToDeadline() {\n return DateWrapper.getTimeBetween(Clock.now().getDateWrapper(), getDate(), ChronoUnit.DAYS);\n }", "public Integer getTotalDays()\r\n/* 68: */ {\r\n/* 69:67 */ return this.totalDays;\r\n/* 70: */ }", "public int GetDay(){\n\t\treturn this.date.get(Calendar.DAY_OF_WEEK);\n\t}", "public int getElfCount() {\n\t\tcounter = 0;\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield[row].length; column++) {\n\t\t\t\tif (battlefield[row][column].getElf() != null) {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}", "public int getNumDayWorkWeek(){\r\n return numDayWorkWeek;\r\n }", "public Day[] getDays() {\n\t\treturn days;\n\t}", "public int getDayOfWeekNr() {\n\t\treturn ((int) (this.jd - 5.5)) % 7;\n\t}", "public int getDay() {\n\treturn day;\n }", "public io.dstore.values.TimestampValueOrBuilder getDayOrBuilder() {\n return getDay();\n }", "private String getDays() {\n StringBuilder daysSB = new StringBuilder();\n\n if (days > 0) {\n daysSB.append(days);\n } else {\n daysSB.append(\"0\");\n }\n\n return daysSB.toString();\n }", "public int getCurrentDay() {\n return daysPassed;\n }", "public int getLBR_ProtestDays();", "public int getDay()\n {\n return day;\n }", "public int getDepartedPassengerCount() {\n\t\tint total = 0;\n\t\tfor (Taxi taxi : taxis) {\n\t\t\ttotal += taxi.getTotalNrOfPassengers();\n\t\t}\n\t\treturn total;\n\t}", "public Integer getDay()\n {\n return this.day;\n }", "private void setDayCountDown() {\n dayCountDown = getMaxHunger();\n }", "@Override\n\tpublic List<?> getNumberOfPatientPerDay() {\n\t\treturn ar.findAppointmentCount();\n\t}", "public int getSNbrSvcDtlFromDay()\r\n {\r\n return this._sNbrSvcDtlFromDay;\r\n }", "public io.dstore.values.TimestampValueOrBuilder getDayOrBuilder() {\n if (dayBuilder_ != null) {\n return dayBuilder_.getMessageOrBuilder();\n } else {\n return day_ == null ?\n io.dstore.values.TimestampValue.getDefaultInstance() : day_;\n }\n }", "public java.lang.Integer getHighestOverdueCount24M() {\n return highestOverdueCount24M;\n }", "public java.lang.String getDayNumber() {\n return dayNumber;\n }", "public Integer getOverdueDays() {\n return overdueDays;\n }", "public int getValidityDays() {\r\n return validityDays;\r\n }", "public int getDay() {\n if (USE_SERIALIZABLE) {\n return childBuilder.getDay();\n } else {\n // @todo Replace with real Builder object if possible\n return convertNullToNOT_SET(childBuilderElement.getAttributeValue(\"day\"));\n }\n }", "@iri(\"http://persistent.name/rdf/2010/purl#max-unresolved-days\")\n\tInteger getPurlMaxUnresolvedDays();", "ArrayList<Day> getDays() {\n return days;\n }", "public long getDigitCount() {\n return digitCount;\n }", "public int getDay() {\n return day;\n }", "public int getWeekDay() {\r\n return this.weekday - 1;\r\n }", "public int getDaysSinceDeath() {\n return daysSinceDeath;\n }", "public void setNumDays(int days) {\n maxDays = days;\n }", "public int getCalendarCount(){\r\n\t\t//if(_debug) Log.v(_context, \"NotificationViewFlipper.getCalendarCount() CalendarCount: \" + _calendarCount);\r\n\t\treturn _calendarCount;\r\n\t}", "public io.dstore.values.TimestampValue getDay() {\n return day_ == null ? io.dstore.values.TimestampValue.getDefaultInstance() : day_;\n }", "public int getSettlementDays() {\n return _settlementDays;\n }", "public int getNumberOfDigits()\n\t{\n\t\t// TO DO\n\t\treturn infNumber.length;\n\t}", "public io.dstore.values.TimestampValue getDay() {\n if (dayBuilder_ == null) {\n return day_ == null ? io.dstore.values.TimestampValue.getDefaultInstance() : day_;\n } else {\n return dayBuilder_.getMessage();\n }\n }", "public java.lang.Integer getTotalOverdueCount24M() {\n return totalOverdueCount24M;\n }", "public int getNumberOfDates() {\n return dateList.size();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.TimestampValue, io.dstore.values.TimestampValue.Builder, io.dstore.values.TimestampValueOrBuilder> \n getDayFieldBuilder() {\n if (dayBuilder_ == null) {\n dayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.TimestampValue, io.dstore.values.TimestampValue.Builder, io.dstore.values.TimestampValueOrBuilder>(\n getDay(),\n getParentForChildren(),\n isClean());\n day_ = null;\n }\n return dayBuilder_;\n }", "public int getSignupByDayCount(int day) {\r\n\t\treturn signupByDayCountList.get(day);\r\n\r\n\t}", "public int getNumberOfSoldiers() {\n return numberOfSoldiers;\n }", "public int getNumberOfLastDayEvents() {\n int counter = 0;\n long currentTimeSeconds = getCurrentTimeInSeconds();\n for (int i = 0; i < records.length; i++) {\n synchronized (records[i]) {\n if (currentTimeSeconds - records[i].getLastTimeReset() < SECONDS_IN_DAY) {\n counter += records[i].getCount();\n }\n }\n }\n\n return counter;\n }", "public Number getNoOfFloors() {\n return (Number) getAttributeInternal(NOOFFLOORS);\n }", "public int getCantCalif() {\n\t\tint calificacion = 0;\n\t\tfor (Episodio episodio : this.episodios) {\n\t\t\tif (episodio.isFlag()) {\n\t\t\t\tcalificacion += episodio.getCalificacion();\n\t\t\t}\n\t\t}\n\t\treturn calificacion;\n\t}", "public final double getFixedCellSize() {\n\n return this.getWrappedControl().getFixedCellSize();\n }" ]
[ "0.8637261", "0.67125434", "0.6702774", "0.6702774", "0.65701115", "0.64663637", "0.6359153", "0.63258183", "0.6311915", "0.6300852", "0.61230963", "0.6072868", "0.6065107", "0.6025801", "0.59599024", "0.59328496", "0.59253407", "0.5917884", "0.5917839", "0.5906671", "0.58755106", "0.58047974", "0.58040285", "0.57848746", "0.5695835", "0.5691188", "0.5685183", "0.5670811", "0.5657317", "0.5638525", "0.5622491", "0.56057864", "0.5588884", "0.558696", "0.558696", "0.555654", "0.55521417", "0.55521417", "0.55521417", "0.55333054", "0.55077744", "0.55001056", "0.54688036", "0.5467499", "0.54632366", "0.54603964", "0.54586405", "0.54527766", "0.5442709", "0.5414485", "0.5413527", "0.5411211", "0.53996474", "0.539739", "0.53748363", "0.5366819", "0.5344539", "0.5336365", "0.5327845", "0.53261346", "0.53170735", "0.5281015", "0.5276247", "0.52731186", "0.52672654", "0.5267086", "0.52635914", "0.52599984", "0.5256328", "0.5252759", "0.5250822", "0.5193982", "0.5188479", "0.5181707", "0.5179339", "0.5179155", "0.5178545", "0.51769805", "0.5175872", "0.5170556", "0.5153593", "0.5147308", "0.51433307", "0.51125294", "0.51108575", "0.5108642", "0.5108472", "0.51050895", "0.51028067", "0.51019424", "0.50968635", "0.509198", "0.5084505", "0.5079105", "0.50755835", "0.50664246", "0.5065651", "0.5055805", "0.5054474", "0.50528556" ]
0.8805075
0
Gets the _iborIndex field.
public IborIndex getIborIndex() { return _iborIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IborIndex getIborIndex() {\n //TODO think about this\n return _swapGenerator.getIborIndex();\n }", "public DBField getAutoIndexField()\n {\n return this.getField(DBRecordKey.FLD_autoIndex);\n }", "public int getIndex()\n {\n return getInt(\"Index\");\n }", "@JsOverlay\n\tpublic final int getIndex() {\n\t\t// checks if there is the property\n\t\tif (ObjectType.UNDEFINED.equals(JsHelper.get().typeOf(this, \"index\"))) {\n\t\t\treturn Undefined.INTEGER;\n\t\t}\n\t\treturn getNativeIndex();\n\t}", "public Integer getIndex() {\n return index;\n }", "public synchronized final int getIndex() {\r\n return f_index;\r\n }", "@ApiModelProperty(value = \"The index of the entity as it was found in the investment tables.\")\n public Integer getIndex() {\n return index;\n }", "public Index getIndex() {\n return index;\n }", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "public Integer index() {\n return this.index;\n }", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public IndexON getIndex() {\n return _index;\n }", "public String getIndex() {\n return this.index;\n }", "public int getIndex() {\n return this.index;\n }", "public int getIndex() {\n return this.index;\n }", "public final int getIndex(){\n return index_;\n }", "int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index & 0xffff;\n\t}", "public int getIndex() {\n\t\treturn this.index;\n\t}", "public Number getIdx() {\n return (Number)getAttributeInternal(IDX);\n }", "public String getCB_IND() {\r\n return CB_IND;\r\n }", "public String getIndex() {\n\t\treturn index;\n\t}", "public String getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public String getIndex() {\n return index;\n }", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n \t\treturn index;\n \t}", "public int getIndex()\n {\n return index;\n }", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "public int getIndex() {\r\n return index;\r\n }", "@IndexingType\n public int getIndexingType() {\n return mBundle.getInt(INDEXING_TYPE_FIELD);\n }", "public int getIndex() {\n return index;\n }", "public int getIndex(){\r\n \treturn index;\r\n }", "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "public int getIndex()\n {\n return index;\n }", "public int getIndex() {\r\n return ordinal();\r\n }", "public <U> U index() {\n return this.index;\n }", "protected final int getIndex() {\n return index;\n }", "public int getIndex(){\n return index;\n }", "public int getIndex(){\n return index;\n }", "public Indexation getIndexation() {\r\n\t\treturn indexation;\r\n\t}", "public Expression getIndex()\n {\n return index;\n }", "public int getIndex() { return this.index; }", "@IndexingType\n public int getIndexingType() {\n return mBundle.getInt(INDEXING_TYPE_FIELD, INDEXING_TYPE_NONE);\n }", "public int index() {\n\t\treturn this.index;\n\t}", "public int getIndex() {\n\t\treturn this.mIndex;\n\t}", "public Integer getIdx() {\r\n\t\treturn idx;\r\n\t}", "public int getIndex() {\n\t\treturn 0;\n\t}", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "int getIndex(){\r\n\t\treturn index;\r\n\t}", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public int getIndex()\n {\n return m_index;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}", "public int getIndex() {\n return mIndex;\n }", "public int getIdx() {\n return idx;\n }", "private int getArrayIndex() {\n\t\tswitch (getId()) {\n\t\tcase 3493:\n\t\t\treturn Recipe_For_Disaster.AGRITH_NA_NA_INDEX;\n\t\tcase 3494:\n\t\t\treturn Recipe_For_Disaster.FLAMBEED_INDEX;\n\t\tcase 3495:\n\t\t\treturn Recipe_For_Disaster.KARAMEL_INDEX;\n\t\tcase 3496:\n\t\t\treturn Recipe_For_Disaster.DESSOURT_INDEX;\n\t\t}\n\t\treturn -1;\n\t}", "public int getIndexNumber(){\n return id;\r\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public int getIndex() { \n\t\t\treturn currIndex;\n\t\t}", "@Override\n public final int getIndex() {\n return index;\n }", "public int getIfIndex()\r\n { return ifindex; }", "public int getBId() {\n return instance.getBId();\n }", "public int getFieldIndex() { return _fldIndex; }", "public int getValue() {\r\n return index;\r\n }", "public int getIconIndex() {\n return iconIndex;\n }", "public int getIndex(\n )\n {return index;}", "public Index getIndex() {\n return this.arr.getIndex();\n }", "@VTID(10)\n int getIndex();", "public int getOwnIndex() throws RemoteException {\r\n return ownIndex;\r\n }", "public Integer getTbApWtEntryIndex()\n\t\t\t\tthrows AgentException{\n\t\t// Fill up with necessary processing\n\n\t\treturn tbApWtEntryIndex;\n\t}", "public Integer getBiObjectID() {\r\n\t\treturn biObjectID;\r\n\t}", "public int getIndx() {\n return this.indx;\n }" ]
[ "0.7385278", "0.63890356", "0.63782096", "0.63201374", "0.62976277", "0.62838054", "0.62751055", "0.6251939", "0.62473005", "0.6241283", "0.623662", "0.623662", "0.62311846", "0.62311846", "0.62311846", "0.62311846", "0.62311846", "0.62311846", "0.62148744", "0.6214375", "0.6214266", "0.6214266", "0.620498", "0.6200816", "0.6200131", "0.61831594", "0.6182375", "0.6179573", "0.61781126", "0.61781126", "0.6175257", "0.6175257", "0.6175257", "0.6175257", "0.6175257", "0.6175257", "0.61703694", "0.61629474", "0.61629474", "0.61629474", "0.61516744", "0.61509776", "0.61509776", "0.61509776", "0.61509776", "0.61509776", "0.61475194", "0.6129597", "0.6123953", "0.6123953", "0.6123953", "0.6123442", "0.6122504", "0.6116594", "0.6116298", "0.61078334", "0.61002773", "0.609679", "0.6092768", "0.6074256", "0.6068578", "0.605509", "0.605509", "0.6044827", "0.6020225", "0.6015171", "0.6008854", "0.5963253", "0.5956825", "0.5947098", "0.5946543", "0.5940325", "0.5940325", "0.5940325", "0.5900701", "0.58907807", "0.58907807", "0.58907807", "0.5889037", "0.58868355", "0.58852315", "0.5869323", "0.58683306", "0.5849143", "0.5838906", "0.58229244", "0.5798617", "0.57686204", "0.5751341", "0.5741583", "0.5732655", "0.57118756", "0.5705714", "0.5704044", "0.5698027", "0.56827015", "0.5668065", "0.5659616", "0.56474376", "0.5641617" ]
0.8154829
0
Gets the generator currency.
public Currency getCurrency() { return _iborIndex.getCurrency(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Currency getCurrency();", "public Pokemon.Currency getCurrency() {\n if (currencyBuilder_ == null) {\n return currency_;\n } else {\n return currencyBuilder_.getMessage();\n }\n }", "public java.lang.String getCurrency() {\r\n return currency;\r\n }", "public String getCurrency()\n\t{\n\t\treturn this.currency;\n\t}", "public java.lang.String getCurrency() {\n return currency;\n }", "public Currency getCurrency();", "protected String getCurrency() {\n return currency;\n }", "public String getCurrency()\r\n {\r\n return currency;\r\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\r\n return currency;\r\n }", "public Currency getCurrency() {\n return currencyCode;\n }", "public java.lang.String getCurrency()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CURRENCY$10, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getCurrency() {\n return this.currency;\n }", "public java.lang.Integer getBasecurrency() {\n\treturn basecurrency;\n}", "public de.htwg_konstanz.ebus.framework.wholesaler.vo.Currency getCurrency () {\r\n\t\treturn currency;\r\n\t}", "@Override\n\tpublic String getCurrency(){\n\t\treturn MARLAY_CURR;\n\t}", "public CurrencyUnit getCurrency() {\r\n return currency;\r\n }", "String getTradeCurrency();", "public Object getCurrency() {\n\t\treturn null;\n\t}", "public Pokemon.Currency getCurrency() {\n return currency_;\n }", "@Override\n public Currency getCurrency() {\n return currency;\n }", "public String getCurrencyCode()\r\n {\r\n return (m_currencyCode);\r\n }", "public BigDecimal getCURRENCY() {\r\n return CURRENCY;\r\n }", "String getSettlementCurrency();", "public String getCurrency() {\n return (String) getAttributeInternal(CURRENCY);\n }", "@Override\n public String getCurrency() {\n return currency != null ? currency : App.getContext().getString(R.string.example_currency);\n }", "public String getUserCurrency() {\n return sessionData.getUserCurrency();\n }", "public static Currency getReferenceCurrency() {\n return REFERENCE.get();\n }", "public java.lang.String getChargecurrency() {\n\treturn chargecurrency;\n}", "public java.lang.String payCurrency()\n\t{\n\t\treturn _lsPeriod.get (_lsPeriod.size() - 1).payCurrency();\n\t}", "@Override\npublic Currency getCurrency() {\n\treturn balance.getCurrency();\n}", "public String getReceiverChargesCurrency() {\r\n\t\treturn receiverChargesCurrency;\r\n\t}", "com.google.ads.googleads.v6.resources.CurrencyConstant getCurrencyConstant();", "public java.lang.String couponCurrency()\n\t{\n\t\treturn _lsPeriod.get (_lsPeriod.size() - 1).couponCurrency();\n\t}", "public String getCurrencyCode() {\n return currencyCode;\n }", "public Currency getCurrency1() {\n return _underlyingForex.getCurrency1();\n }", "public String getCurrencyPair() {\n return _ccyPair;\n }", "public org.apache.xmlbeans.XmlString xgetCurrency()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CURRENCY$10, 0);\n return target;\n }\n }", "public java.lang.String getBillingCurrency() {\r\n return billingCurrency;\r\n }", "public String getPaymentCurrency() {\n return _paymentCurrency;\n }", "Uom getCurrencyUom();", "public java.lang.String getReceiveCurrency() {\r\n return receiveCurrency;\r\n }", "public java.lang.String getReceiveCurrency() {\r\n return receiveCurrency;\r\n }", "public Currency getCurrency2() {\n return _underlyingForex.getCurrency2();\n }", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "public String getCurrencyCode() {\n return mCurrencyCode;\n }", "public String getCurrencyCd() {\n return (String) getAttributeInternal(CURRENCYCD);\n }", "public Currency getCurrency() {\n return _index.getIborIndex().getCurrency();\n }", "public String getAccountCurrencyCode() {\r\n return accountCurrencyCode;\r\n }", "public CurrencyVO getCurrency() {\n\treturn currency;\n}", "public ArmCurrency getPrice() {\n return (getPrice(true));\n }", "public String getCurrencyCode() {\n\t\treturn currencyCode;\n\t}", "public Pokemon.Currency.Builder getCurrencyBuilder() {\n bitField0_ |= 0x00000400;\n onChanged();\n return getCurrencyFieldBuilder().getBuilder();\n }", "public String getFromCurrencyCode() {\n return fromCurrencyCode;\n }", "public String getSplitCurrency() {\r\n\treturn fxndf.getSplitCurrency();\r\n }", "public String getCurrencyID() {\n return currencyID;\n }", "com.google.protobuf.StringValue getCurrencyCode();", "public ArmCurrency getLoyaltyBalanceInCurrencyFormat() {\n\t double loyaltyPointsBalance = getLoyaltyBalance();\n\t ArmCurrency rtnVal = new ArmCurrency(loyaltyPointsBalance);\n\t return (rtnVal);\n }", "public String getCurrency1() {\r\n\t\treturn currency1;\r\n\t}", "public String getCurrencyID() {\n return currencyID;\n }", "public JingtumCurrency getPay() {\n\t\tif (this.taker_gets == null && order != null){\n\t\t\treturn order.getTaker_gets();\n\t\t}\n\t\treturn taker_gets;\n\t}", "@Override\n\tpublic Currency getCurrency() {\n\t\treturn null;\n\t}", "public Pair<Currency, Currency> getCurrencyPair() {\n return _currencyPair;\n }", "public Pair<Currency, Currency> getCurrencyPair() {\n return _currencyPair;\n }", "public BigDecimal getCurrency1() {\n\treturn currency1;\n}", "public String getTradeCurrency() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n tradeCurrency_ = s;\n }\n return s;\n }\n }", "public String get_currency_name() {\n\t\treturn name;\r\n\t}", "public String getTradeCurrency() {\n Object ref = tradeCurrency_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n tradeCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getSettlementCurrency() {\n Object ref = settlementCurrency_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n settlementCurrency_ = s;\n }\n return s;\n }\n }", "public BigDecimal getCurrency2() {\n\treturn currency2;\n}", "TokenlyCurrency getCurrencyType();", "public String getSettlementCurrency() {\n Object ref = settlementCurrency_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n settlementCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getCurrencySymbol()\r\n {\r\n return (m_currencySymbol);\r\n }", "public String getCurrencyid() {\n return currencyid;\n }", "public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public DecimalFormat getMoney() {\r\n\t\treturn money;\r\n\t}", "public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Pokemon.CurrencyOrBuilder getCurrencyOrBuilder() {\n if (currencyBuilder_ != null) {\n return currencyBuilder_.getMessageOrBuilder();\n } else {\n return currency_;\n }\n }", "Pokemon.Currency getCurrency();", "public Integer getGameCurrencyid() {\n return gameCurrencyid;\n }", "public Number getCurrencyDigits()\r\n {\r\n return (m_currencyDigits);\r\n }", "public java.lang.Long getBASECURRENCYID() {\n return BASE_CURRENCY_ID;\n }", "public String getDefaultDisplayCurrencyCode() {\n return (String) get(\"default_display_currency_code\");\n }", "public String getCurrencies() {\n\n\t\treturn getJson(API_VERSION, PUBLIC, \"getcurrencies\");\n\t}", "com.google.protobuf.ByteString\n getTradeCurrencyBytes();", "public java.lang.Long getBASECURRENCYID() {\n return BASE_CURRENCY_ID;\n }", "public java.lang.String getOriginalSendCurrency() {\r\n return originalSendCurrency;\r\n }", "@Override\n public Currency getCurrency() {\n return _index.getCurrency();\n }", "public String getCurrencyISO() {\n return MCurrency.getISO_Code(getCtx(), getC_Currency_ID());\n }", "Uom getOrigCurrencyUom();", "public com.google.protobuf.ByteString\n getSettlementCurrencyBytes() {\n Object ref = settlementCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n settlementCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSettlementCurrencyBytes() {\n Object ref = settlementCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n settlementCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getSalaryCurrency() {\n \treturn salaryCurrency;\n }", "@Override\n\tpublic String getCurrencyCode() {\n\t\treturn null;\n\t}", "com.google.protobuf.ByteString\n getSettlementCurrencyBytes();" ]
[ "0.74058026", "0.7199215", "0.7087104", "0.70629853", "0.70594394", "0.7055677", "0.7041491", "0.700677", "0.70003736", "0.70003736", "0.70003736", "0.70003736", "0.69969076", "0.6954367", "0.69510055", "0.68870056", "0.6853578", "0.682806", "0.6812327", "0.6795212", "0.6792793", "0.6769984", "0.6739431", "0.67312247", "0.6685813", "0.6676232", "0.6675369", "0.6668665", "0.666563", "0.6656374", "0.66268003", "0.66185963", "0.66042405", "0.65885794", "0.65786695", "0.6560525", "0.6509214", "0.6476308", "0.6438445", "0.6431262", "0.6420319", "0.641937", "0.64160424", "0.64111775", "0.63977855", "0.63977855", "0.6357979", "0.63295454", "0.63295454", "0.63295454", "0.6328898", "0.6323619", "0.63146925", "0.6312141", "0.6299546", "0.6296784", "0.6261003", "0.6245789", "0.62294215", "0.6220238", "0.6197642", "0.61965746", "0.6184215", "0.61837447", "0.6182734", "0.61722255", "0.61671597", "0.61599463", "0.61599463", "0.61570436", "0.6131446", "0.6078595", "0.60595965", "0.605584", "0.60484755", "0.6045464", "0.5992455", "0.5992298", "0.5972736", "0.59644413", "0.5952507", "0.5940825", "0.5940522", "0.5940332", "0.59385777", "0.59365004", "0.5925048", "0.5903835", "0.5897209", "0.58725995", "0.58568573", "0.58514583", "0.58488524", "0.5819298", "0.58168775", "0.581149", "0.5805052", "0.5805022", "0.57946616", "0.5780023" ]
0.6605667
32
Gets the generator calendar.
public Calendar getCalendar() { return _iborIndex.getCalendar(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Calendar getCalendar();", "public Calendario getCalendar(){\r\n\t\treturn calendar;\r\n\t}", "public BwCalendar getCalendar() {\n if (calendar == null) {\n calendar = new BwCalendar();\n }\n\n return calendar;\n }", "public Calendar getCalendar() {\n return _calendar;\n }", "public Calendar getCalendar() {\n return cal;\n }", "public jkt.hrms.masters.business.MstrCalendar getCalendar () {\n\t\treturn calendar;\n\t}", "public Calendar getCalendar() {\n return this.calendar;\n }", "public Calendar getCalendar() {\n Calendar c = Calendar.getInstance();\n c.setTime(cal.getTime());\n return c;\n }", "public Calendar getCal() {\n return cal;\n }", "public ICalendar getCalendar() {\n return calendar;\n }", "public Calendar getCurrentCalendar()\n {\n return this.currentCalendar;\n }", "public GregorianCalendar getCalendar() {\r\n return new GregorianCalendar(this.year, this.month - 1, this.day);\r\n }", "protected Calendar getCurrentCalendar() {\n Calendar current = new Calendar();\n\n java.util.Calendar calendar = java.util.Calendar.getInstance();\n SimpleDateFormat dateFormatHour = new SimpleDateFormat(\"H\");\n SimpleDateFormat dateFormatWeekDay = new SimpleDateFormat(\"E\");\n SimpleDateFormat dateFormatMonth = new SimpleDateFormat(\"MMM\");\n\n current.setHour(dateFormatHour.format(calendar.getTime()).toString());\n current.setWeekday(dateFormatWeekDay.format(calendar.getTime()));\n current.setMonth(dateFormatMonth.format(calendar.getTime()));\n\n return current;\n }", "public StockDate GetCalendar()\r\n\t{\r\n\t\treturn date;\r\n\t}", "private void createCalendar() {\n myCALENDAR = Calendar.getInstance();\r\n DAY = myCALENDAR.get(Calendar.DAY_OF_MONTH);\r\n MONTH = myCALENDAR.get(Calendar.MONTH) + 1;\r\n YEAR = myCALENDAR.get(Calendar.YEAR);\r\n HOUR = myCALENDAR.get(Calendar.HOUR_OF_DAY);\r\n MINUTE = myCALENDAR.get(Calendar.MINUTE);\r\n SECOND = myCALENDAR.get(Calendar.SECOND);\r\n }", "public BwCalendar getMeetingCal() {\n return meetingCal;\n }", "private YFCDocument getCalendarDetailsTemplDoc() {\n\t\tYFCDocument getCalendarTemp = YFCDocument.createDocument(XMLLiterals.CALENDAR);\n\t\tYFCElement calendarEle = getCalendarTemp.getDocumentElement();\n\t\tcalendarEle.setAttribute(XMLLiterals.ORGANIZATION_CODE, EMPTY_STRING);\n\t\tcalendarEle.setAttribute(XMLLiterals.CALENDER_ID, EMPTY_STRING);\n\t\tcalendarEle.setAttribute(XMLLiterals.CALENDAR_DESCRIPTION, EMPTY_STRING);\n\t\tYFCElement effecPeriodsEle=calendarEle.createChild(XMLLiterals.EFFECTIVE_PERIODS).createChild(XMLLiterals.EFFECTIVE_PERIOD);\n\t\teffecPeriodsEle.setAttribute(XMLLiterals.EFFECTIVE_FROM_DATE, EMPTY_STRING);\n\t\teffecPeriodsEle.setAttribute(XMLLiterals.EFFECTIVE_TO_DATE, EMPTY_STRING);\n\t\teffecPeriodsEle.createChild(XMLLiterals.SHIFTS).createChild(XMLLiterals.SHIFT).setAttribute(XMLLiterals.SHIFT_KEY, EMPTY_STRING);\n\t\tYFCElement calDayExcepEle=calendarEle.createChild(XMLLiterals.CALENDAR_DAY_EXCEPTIONS).createChild(XMLLiterals.CALENDAR_DAY_EXCEPTION);\n\t\tcalDayExcepEle.setAttribute(XMLLiterals.EXCEPTION_TYPE,EMPTY_STRING);\n\t\tcalDayExcepEle.setAttribute(XMLLiterals.DATE,EMPTY_STRING);\n\t\treturn getCalendarTemp;\n\t}", "@Override\n\tpublic org.sakaiproject.calendar.api.Calendar getCalendar(String ref)\n\t\t\tthrows IdUnusedException, PermissionException {\n\t\tSite site = null;\n\t\tif (ref == null){\n\t\t\tsite = getSite();\n\t\t}\n\t\telse{\n\t\t\tsite = getSite(ref);\n\t\t}\n\t\t// We use the e-mail id of the site creator since the Google calendar is created under this id.\n\t\tCalendar googleClient = getGoogleClient(site.getCreatedBy().getEmail());\n\t\treturn new SakaiGCalendarImpl(googleClient);\n\t}", "public void get_fecha(){\n //Obtenemos la fecha\n Calendar c1 = Calendar.getInstance();\n fecha.setCalendar(c1);\n }", "public Dia[] getCalendari() {\n\t\treturn cal;\n\t}", "@Override\n public Date generate() {\n int year = 2000 + Rng.instance().nextInt(20);\n int date = Rng.instance().nextInt(28) + 1;\n int month = Rng.instance().nextInt(10) + 1;\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, month, date);\n\n return calendar.getTime();\n }", "public Calendar getFechaMatriculacion() {\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.set(Integer.parseInt(cbox_ano.getSelectedItem().toString()), cbox_mes.getSelectedIndex(),\r\n\t\t\t\tInteger.parseInt(cbox_dia.getSelectedItem().toString()));\r\n\t\treturn c;\r\n\t}", "public java.util.Calendar getCreated()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CREATED$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getCalendarValue();\n }\n }", "public String getCalendarString() {\n return calendarString;\n }", "public Calendar getCalendarService() throws IOException {\n\t\tCredential credential = this.googleCred;\n\t\treturn new Calendar.Builder(\n\t\t\t\tHTTP_TRANSPORT, JSON_FACTORY, credential)\n\t\t\t\t.setApplicationName(APP_NAME)\n\t\t\t\t.build();\n\t}", "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "Calendar registeredAt();", "public final process.proxies.ChangeCalenderSelection getCalendarSelection()\r\n\t{\r\n\t\treturn getCalendarSelection(getContext());\r\n\t}", "public static CalendarHelper getInstance() {\n if (instance == null) {\n instance = new CalendarHelper();\n }\n return instance;\n }", "static synchronized BasisGoogleCalendar getCalendar(UpodWorld w)\n{\n if (DATA_STORE_DIR == null) return null;\n if (cal_service == null) {\n try {\n\t cal_service = getCalendarService();\n }\n catch (IOException e) {\n\t BasisLogger.logE(\"GOOGLECAL: Authorization problem with calendar api: \" + e);\n\t DATA_STORE_DIR = null;\n\t HTTP_TRANSPORT = null;\n\t DATA_STORE_FACTORY = null;\n\t return null;\n }\n }\n\n BasisGoogleCalendar rslt = the_calendars.get(w);\n if (rslt == null) {\n rslt = new BasisGoogleCalendar();\n the_calendars.put(w,rslt);\n }\n\n return rslt;\n}", "public Calendar getDate(){\n return date;\n }", "public Calendar getDate()\n {\n return date;\n }", "public String toString() {\n return this.calendarName;\n }", "public Calendar getDate()\n {\n return this.dateOfCreation;\n }", "public SelectId<String> retrieveCalendarId() {\n return calendarId;\n }", "public final String getCalendarName() {\n return calendarName;\n }", "public Class<Calendar> getModelType() {\n\t\t\treturn Calendar.class;\n\t\t}", "public Calendar getStartDate() {\n \t\tCalendar cal = Calendar.getInstance();\n \t\tcal.setTimeInMillis(startTime);\n \t\t\n\t\treturn cal;\n\t}", "public Calendar getDate() {\n\treturn date;\n }", "public String getCalendarName()\r\n {\r\n return (m_calendarName);\r\n }", "private YFCDocument getCalendarListTempDoc(){\n\t\tYFCDocument inputXml = YFCDocument.createDocument(XMLLiterals.CALENDERS);\n\t\tinputXml.getDocumentElement().createChild(XMLLiterals.CALENDAR).setAttribute(XMLLiterals.CALENDER_ID, EMPTY_STRING);\n\t\treturn inputXml;\n\t}", "public static Calendar getCalender(Long val) {\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(val);\n\n return calendar;\n }", "private static com.google.api.services.calendar.Calendar getCalendarService() throws IOException\n{\n Credential cred = authorize();\n com.google.api.services.calendar.Calendar.Builder bldr =\n new com.google.api.services.calendar.Calendar.Builder(HTTP_TRANSPORT,JSON_FACTORY,cred);\n bldr.setApplicationName(APPLICATION_NAME);\n\n com.google.api.services.calendar.Calendar cal = bldr.build();\n\n return cal;\n}", "Long getCalendarId();", "public final Calendar calendarValue() {\n return calValue;\n }", "public Calendar getDate() {\n\n\t\treturn _date;\n\t}", "public Calendar getDate() {\r\n\t\treturn date;\r\n\t}", "public Calendar getReturnDate()\n\t{\n\t\treturn this.arrival;\n\t}", "public Calendar getDate() {\n\t\treturn date;\n\t}", "@Override\n\tpublic Calendar getDate(){\n\t\treturn date;\n\t}", "public ArrayList<Pair<String,String>> getCalendarList() {\n ArrayList<Pair<String,String>> calendars = new ArrayList<>();\n if (ActivityCompat.checkSelfPermission(\n App.getContext(), Manifest.permission.READ_CALENDAR\n ) != PackageManager.PERMISSION_GRANTED) {\n return calendars;\n }\n\n String projection[] = {CalendarContract.Calendars._ID, CalendarContract.Calendars.CALENDAR_DISPLAY_NAME};\n\n Uri calendarQuery;\n calendarQuery = CalendarContract.Calendars.CONTENT_URI;\n\n ContentResolver contentResolver = App.getContext().getContentResolver();\n\n Cursor cursor = contentResolver.query(calendarQuery, projection, null, null, null);\n\n if(cursor == null) return calendars;\n\n if(cursor.moveToFirst()) {\n int calendarIdIndex = cursor.getColumnIndex(projection[0]);\n int calendarNameIndex = cursor.getColumnIndex(projection[1]);\n\n do {\n calendars.add(\n new Pair<>(\n cursor.getString(calendarIdIndex),\n cursor.getString(calendarNameIndex)\n )\n );\n } while(cursor.moveToNext());\n }\n\n cursor.close();\n\n return calendars;\n }", "@Test\n public void getterCalendar(){\n ScheduleEntry entry = new ScheduleEntry();\n entry.setCalendar(calendar);\n entry.setDepartureTime(DepartureTime);\n Assert.assertEquals(2018,calendar.getYear());\n Assert.assertEquals(4,calendar.getMonth());\n Assert.assertEquals(25,calendar.getDayOfMonth());\n }", "public GregorianCalendar getStart() {\n return _start;\n }", "private void gregorianCalendar() {\n\t\tCalendar calendar = context.getBean(\"calendar\",Calendar.class);\n\t\tDateFormat formatter = (DateFormat) context.getBean(\"formatter\");\n\t\tSystem.out.println(formatter.format(calendar.getTime()));\n\t}", "public String getCalenderId() {\n\t\treturn calenderId;\n\t}", "private Calendar createCalendar() {\n Calendar cal = Calendar.getInstance();\n\n // clear all aspects of the time that are not used\n cal.set(Calendar.MILLISECOND, 0);\n\n return cal;\n }", "@Override\n\tpublic List getCalendars() {\n\t return null;\n\t}", "public java.util.Calendar getCreationDate() {\n return creationDate;\n }", "public Calendar getReturnDate()\n {\n /*New Calendar for Return Date*/\n Calendar dueDate = Calendar.getInstance();\n\n /*Month is Current Month*/\n dueDate.set(today.MONTH, today.get(today.MONTH));\n /*Year is Current Year*/\n dueDate.set(today.YEAR, today.get(today.YEAR));\n /*Due Date is 21 Days Later*/\n dueDate.set(today.DATE, today.get(today.DATE + 21));\n\n return dueDate;\n }", "public CalendarPage() {\n\t\t\n\t\tPageFactory.initElements(driver, this);\n\t}", "public Calendar getDate() {\r\n return (Calendar) selectedDate;\r\n }", "public Calendar() {\n }", "public static synchronized ReportGenerator getInstance()\r\n {\r\n if (generator == null)\r\n {\r\n generator = new ReportGenerator();\r\n }\r\n return generator;\r\n }", "public String getCalId() {\n return calId;\n }", "public Calendar toCalendar() {\n\t\treturn (Calendar) _cal.clone();\n\t}", "public Calendar calendario(Date date) {\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.setTime(date);\r\n return calendar;\r\n }", "public String cal(Calendar calendar) {\r\n String calendari;\r\n calendari = calendar.get(Calendar.DAY_OF_MONTH) + \"-\" + calendar.get(Calendar.MONTH) + \"-\" + calendar.get(Calendar.YEAR);\r\n return calendari;\r\n }", "private static Calendar getService() throws GeneralSecurityException, IOException {\n final NetHttpTransport HTTP_TRANSPORT = GoogleNetHttpTransport.newTrustedTransport();\n return new Calendar.Builder(HTTP_TRANSPORT, JSON_FACTORY, getCredentials(HTTP_TRANSPORT))\n .setApplicationName(APPLICATION_NAME).build();\n }", "public static Calendar ahoraCalendar() {\n return Calendar.getInstance(TimeZone.getTimeZone(\"America/Guayaquil\"));\n }", "public static ReportGeneratorAsync getReportGenerator() {\n\n\t\tif (reportGenerator == null) {\n\n\t\t\treportGenerator = GWT.create(ReportGenerator.class);\n\n\t\t\tfinal AsyncCallback<Void> initReportGeneratorCallback = new AsyncCallback<Void>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\tClientsideSettings.getLogger().severe(\"Der ReportGenerator konnte nicht initialisiert werden!\");\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(Void result) {\n\t\t\t\t\tClientsideSettings.getLogger().info(\"Der ReportGenerator wurde initialisiert.\");\n\t\t\t\t}\n\t\t\t};\n\n\t\t\treportGenerator.init(initReportGeneratorCallback);\n\t\t}\n\n\t\treturn reportGenerator;\n\t}", "public java.util.Calendar getFecha()\r\n {\r\n return this.fecha;\r\n }", "public ReactorResult<java.util.Calendar> getAllDate_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), DATE, java.util.Calendar.class);\r\n\t}", "public java.util.Calendar getFechaReg() {\n return fechaReg;\n }", "public java.util.Calendar getJavaCal() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: gov.nist.javax.sip.header.SIPDate.getJavaCal():java.util.Calendar, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.getJavaCal():java.util.Calendar\");\n }", "java.util.Calendar getLastrun();", "private Calendar chooseCalendar(SignupSite site) throws PermissionException {\n\t\tCalendar calendar = sakaiFacade.getAdditionalCalendar(site.getSiteId());\n\t\tif (calendar == null) {\n\t\t\tcalendar = sakaiFacade.getCalendar(site.getSiteId());\n\t\t}\n\t\treturn calendar;\n\t}", "public Calendar() {\n initComponents();\n }", "public Calendar toDate() {\n Calendar cal = Calendar.getInstance();\n if (year != null) {\n cal.set(Calendar.YEAR, year);\n }\n if (month != null) {\n cal.set(Calendar.MONTH, TimeConstants.getMonthIndex(month));\n }\n if (day != null) {\n cal.set(Calendar.DAY_OF_MONTH, day);\n }\n return cal;\n }", "public java.util.Calendar getDate() {\n return date;\n }", "public java.util.Calendar getDate() {\n return date;\n }", "public static com.google.api.services.calendar.Calendar getCalendarService()\n throws IOException, GeneralSecurityException {\n Credential credential = authorize();\n HttpTransport HTTP_TRANSPORT = GoogleNetHttpTransport.newTrustedTransport();\n return new com.google.api.services.calendar.Calendar.Builder(\n HTTP_TRANSPORT, JSON_FACTORY, credential)\n .setApplicationName(APPLICATION_NAME)\n .build();\n }", "public static String get() {\n\t\treturn \"calendarremindertime get\" + delimiter + \"calendarremindertime get \";\n\t}", "private Calendar getGoogleClient(String email)\t{\n\t\tGoogleCredential credential = getGoogleCredential(email);\n\t\tCalendar client = getGoogleClient(credential);\n\t\treturn client;\n\t}", "public java.util.Calendar getCreateDate() {\n return createDate;\n }", "public int getC_Calendar_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_Calendar_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public static DWeek_CalendarView getInstanace() {\n\t\t\treturn instance;\r\n\t\t}", "Calendar getBirth() {\n\t\treturn customer.getBirth();\n\t}", "public java.lang.String getDefaultCalendarAccess() {\n return defaultCalendarAccess;\n }", "private ProxyCalendar getFactoryProxyCalendar(Class type) {\n // we don't lock here; ok if two proxies get generated for same type\n ProxyCalendar proxy = (ProxyCalendar) _proxies.get(type);\n if (proxy == null) {\n ClassLoader l = GeneratedClasses.getMostDerivedLoader(type,\n ProxyCalendar.class);\n Class pcls = loadBuildTimeProxy(type, l);\n if (pcls == null)\n pcls = generateAndLoadProxyCalendar(type, true, l);\n proxy = (ProxyCalendar) instantiateProxy(pcls, null, null);\n _proxies.put(type, proxy);\n }\n return proxy;\n }", "public Clock getClock() {\n\t\treturn clock;\n\t}", "public Calendar getDateTime() {\n return dateTime;\n }", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:date\")\n public Calendar getDate() {\n return getProperty(DATE);\n }", "public static Calendar getCalender(Date date) {\n\n Calendar calendar = Calendar.getInstance();\n\n if (date != null) {\n long millis = date.getTime();\n calendar.setTimeInMillis(millis);\n }\n\n return calendar;\n }", "abstract GregorianCalendar getThreadLocalCalendar();", "public JCalendar() {\r\n init();\r\n resetToDefaults();\r\n }", "public BwCalSuiteWrapper getCalSuite() {\n return calSuite;\n }", "public Calendar calcEasterDate(){\n a = year% 19;\n b = (int) Math.floor(year/100);\n c = year % 100;\n d = (int) Math.floor(b/4);\n e = b % 4;\n f = (int) Math.floor((b + 8) / 25);\n g = (int) Math.floor((b - f + 1) / 3);\n h = (19*a + b - d - g + 15) % 30;\n i = (int) Math.floor(c/4);\n k = c%4;\n L = (32 + 2*e + 2*i - h - k) % 7;\n m = (int) Math.floor((a + 11*h + 22*L) / 451);\n month = (int) Math.floor((h + L - 7*m + 114) / 31);\n day = (((h + L - (7*m) + 114) % 31) + 1);\n Calendar instance = Calendar.getInstance();\n instance.set(year, month, day);\n return instance;\n }", "public void setupCalendar() { \n\t\tcal = whenIsIt();\n\t\tLocale here = Locale.US;\n\t\tthisMonth = cal.getDisplayName(2, Calendar.LONG_STANDALONE, here);\n\t\tdate = cal.get(5); //lesson learned: if it's a number do this\n\t\t//ADD CODE FOR ORDINALS HERE\n\t\tyear = cal.get(1);\n\t\tthisHour = cal.get(10);\n\t\tthisMinute = cal.get(12);\n\t\tthisSecond = cal.get(13);\n\t\tamPm = cal.getDisplayName(9, Calendar.SHORT, here);\n\t\tthisDay = thisMonth +\" \"+ addOrdinal(date) + \", \" + year;\n\t\tcurrentTime = fix.format(thisHour) + \":\" + fix.format(thisMinute) + \":\" + fix.format(thisSecond) + \" \" + amPm;\n\t}", "public static GameClock getGameClock() {\r\n\t\treturn clock;\r\n\t}", "public Calendar startOfDay() {\r\n\t\t\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseCalendar.get(Calendar.MONTH),\r\n\t\t\t\tbaseCalendar.get(Calendar.DATE));\r\n\r\n\t\treturn c2;\t\t\r\n\t}" ]
[ "0.7406017", "0.7213662", "0.71752185", "0.7078805", "0.7077425", "0.7057977", "0.7035547", "0.6959835", "0.68784374", "0.68557805", "0.67674094", "0.66908646", "0.6513034", "0.64497566", "0.63898593", "0.6331979", "0.6308817", "0.62849665", "0.6257809", "0.6236805", "0.62117493", "0.621055", "0.6180609", "0.61083955", "0.60909456", "0.6086895", "0.60860574", "0.60737336", "0.6034112", "0.60260934", "0.5995935", "0.59578884", "0.58994347", "0.58657336", "0.58630604", "0.58596915", "0.5857545", "0.5850981", "0.58339864", "0.5825403", "0.57764393", "0.577076", "0.57641786", "0.57582676", "0.57557416", "0.5726951", "0.57022727", "0.56727946", "0.56671274", "0.56529605", "0.56495756", "0.5634644", "0.56230515", "0.56171393", "0.56153035", "0.56125873", "0.56015307", "0.55969906", "0.5582851", "0.5560366", "0.55594635", "0.55508554", "0.5546883", "0.5544933", "0.55395955", "0.55248415", "0.5507806", "0.5506587", "0.54961014", "0.5495728", "0.5490521", "0.54848754", "0.546712", "0.54666966", "0.5452445", "0.5445694", "0.54441285", "0.54393953", "0.54320806", "0.54320806", "0.54217494", "0.54197", "0.54116285", "0.54069173", "0.5388655", "0.5384367", "0.5376194", "0.5375739", "0.5374034", "0.5373999", "0.5368157", "0.53618747", "0.5359636", "0.53553075", "0.53526485", "0.53509676", "0.53483135", "0.53471625", "0.53431433", "0.5337372" ]
0.6873089
9
Gets the swap generator business day convention.
public BusinessDayConvention getBusinessDayConvention() { return _businessDayConvention; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.Calendar getBFSDAT() {\n return BFSDAT;\n }", "@java.lang.Override public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepass.apis.DayOfWeek result = app.onepass.apis.DayOfWeek.valueOf(day_);\n return result == null ? app.onepass.apis.DayOfWeek.UNRECOGNIZED : result;\n }", "private static IWorkingDays getWorkingDaysStrategy(Currency currency) {\n if ((currency.getCurrencyCode().equals(\"AED\")) ||\n (currency.getCurrencyCode().equals(\"SAR\")))\n {\n return ArabiaWorkingDays.getInstance();\n }\n return DefaultWorkingDays.getInstance();\n }", "public int getDayOfWeek();", "@java.lang.Override\n public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepass.apis.DayOfWeek result = app.onepass.apis.DayOfWeek.valueOf(day_);\n return result == null ? app.onepass.apis.DayOfWeek.UNRECOGNIZED : result;\n }", "public java.util.Calendar getDBizDay() {\n return dBizDay;\n }", "public java.util.Calendar getBFSCDAT() {\n return BFSCDAT;\n }", "public char get_Work_days() {\r\n return this.busDriver_workDay;\r\n }", "public java.lang.Integer getBillCycleDay() {\n return billCycleDay;\n }", "DayOfWeek getUserVoteSalaryWeeklyDayOfWeek();", "public String getDayOfTheWeek(){\r\n Calendar calendar = Calendar.getInstance();\r\n int day = calendar.get(Calendar.DAY_OF_WEEK);\r\n String calendar_Id = null;\r\n switch (day) {\r\n case Calendar.SUNDAY:\r\n calendar_Id =\"(90300)\";\r\n break;\r\n case Calendar.MONDAY:\r\n calendar_Id =\"(90400,90448)\";\r\n break;\r\n case Calendar.TUESDAY:\r\n calendar_Id =\"(90400,90448)\";\r\n break;\r\n case Calendar.WEDNESDAY:\r\n calendar_Id =\"(90400,90448)\";\r\n break;\r\n case Calendar.THURSDAY:\r\n calendar_Id =\"(90400,90448)\";\r\n break;\r\n case Calendar.FRIDAY:\r\n calendar_Id =\"(90400,90448)\";\r\n break;\r\n case Calendar.SATURDAY:\r\n calendar_Id =\"(90200,90238)\";\r\n break;\r\n }\r\n\r\n return calendar_Id;\r\n }", "@Override\n\tpublic FdBusinessDate getCommonFdBusinessDate() {\n map.put(\"busiTypeCode\",\"02\");\n map.put(\"subBusiType\",\"00\");\n\t\treturn mapper.selectByPK(map);\n\t}", "public BusinessObjectFormat getBusinessObjectFormat(BusinessObjectFormatKey businessObjectFormatKey);", "public String getBzdw() {\n return bzdw;\n }", "@Override\n\tpublic FdBusinessDate getCurrencyFdBusinessDate() {\n map.put(\"busiTypeCode\",\"02\");\n map.put(\"subBusiType\",\"01\");\n\t\treturn mapper.selectByPK(map);\n\t}", "public final int getDayOfWeek()\n {\n return dayOfWeek(ordinal);\n\n }", "private String dayName() {\n int arrayDay = (day + month + year + (year/4) + (year/100) % 4) % 7;\n return dayName[arrayDay];\n }", "String getDayofservice();", "public String getCurrentDayOfWeekAsShortName() {\n\t\t\t\tDateFormat format = new SimpleDateFormat(\"EEE\");\n\t\t\t\tDate date = new Date(System.currentTimeMillis());\n\t\t\t\tString dayOfWeek = format.format(date);\n\t\t\t\treturn dayOfWeek;\n\t\t\t}", "public byte getDay() {\r\n return day;\r\n }", "public byte getDay() {\n return day;\n }", "public byte getDay() {\n return day;\n }", "public byte getDay() {\n return day;\n }", "public byte getDay() {\n return day;\n }", "public Weekday getDayOfWeek() {\n\n long utcDays = CALSYS.transform(this);\n return Weekday.valueOf(MathUtils.floorModulo(utcDays + 5, 7) + 1);\n\n }", "Integer getDay();", "public Integer getDayOfWeek() {\n if (dayOfWeek != null) {\n if (dayOfWeek == 7) {\n // Sunday\n return 1;\n }\n // Monday goes from 1 to 2, Tuesday from 2 to 3, etc.\n return dayOfWeek + 1;\n }\n return dayOfWeek;\n }", "WeekdaySpec getEnd();", "public byte getDay() {\n return day;\n }", "public java.lang.String getDay()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DAY$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public org.apache.xmlbeans.XmlString xgetDay()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DAY$0, 0);\n return target;\n }\n }", "public final int getISODayOfWeek()\n {\n return isoDayOfWeek(ordinal);\n }", "public String getCurrentDayOfWeekAsFullName() {\n\t\t\t\treturn new DateFormatSymbols().getWeekdays()[Calendar.getInstance()\n\t\t\t\t\t\t.get(Calendar.DAY_OF_WEEK)];\n\t\t\t}", "public final int getCalendarDayOfWeek()\n {\n return calendarDayOfWeek(ordinal);\n\n }", "public String getBkExe() {\r\n if(bkExe==null) return \"bk\";\r\n return bkExe;\r\n }", "java.lang.String getBusinessName();", "public String getDayOfWeek(){\n\t\treturn dayOfWeek;\n\t}", "private String getDayOfWeek(Calendar c) {\n\t\t\n\t\tCalendar now = Calendar.getInstance();\n\t\t\n\t\tif (c.get(Calendar.YEAR) == now.get(Calendar.YEAR) &&\n\t\t\t\tc.get(Calendar.MONTH) == now.get(Calendar.MONTH) &&\n\t\t\t\tc.get(Calendar.DAY_OF_MONTH) == now.get(Calendar.DAY_OF_MONTH)) {\n\t\t\treturn \"Today\";\n\t\t} else {\n\t\t\treturn EventHelper.getDayOfWeek(c);\n\t\t}\n\t\t\n\t}", "private DayOfWeek convertDayOfWeek(Time.Day studentDay) {\n switch (studentDay) {\n case Sunday:\n return DayOfWeek.SUNDAY;\n\n case Monday:\n return DayOfWeek.MONDAY;\n\n case Tuesday:\n return DayOfWeek.TUESDAY;\n\n case Wednesday:\n return DayOfWeek.WEDNESDAY;\n\n case Thursday:\n return DayOfWeek.THURSDAY;\n\n case Friday:\n return DayOfWeek.FRIDAY;\n\n default:\n return DayOfWeek.SATURDAY;\n }\n }", "public int getCurrentDayOfWeekAsNum() {\n\t\t\t\tint dayOfWeek = Calendar.getInstance().get(Calendar.DAY_OF_WEEK);\n\t\t\t\treturn dayOfWeek;\n\t\t\t}", "public String getConvention(String type) {\n\t\t\treturn conventions.get(type);\n\t\t}", "public int getSNbrSvcDtlToDay()\r\n {\r\n return this._sNbrSvcDtlToDay;\r\n }", "public CapitalIndexedBondYieldConvention getYieldConvention() {\n return yieldConvention;\n }", "WeekdaySpec getStart();", "public static SimpleDateFormat getDayFormat() {\n return new SimpleDateFormat(\"EEE dd\");\n }", "public String getAuthorBirthDayOfWeek() {\r\n return author.getBirthDayOfWeek();\r\n }", "public String getBusinessType() {\n\t\treturn businessType;\n\t}", "public String getDayOfWeek() {\r\n return dayOfWeek;\r\n }", "public int getDayOfWeekNr() {\n\t\treturn ((int) (this.jd - 5.5)) % 7;\n\t}", "@Override\n\t\tpublic WeekDay1 nextDay() {\n\t\t\treturn SUN;\n\t\t}", "public int getDayOfWeek()\r\n\t{\r\n\t\treturn Utils.getDayOfWeek(year, month, day);\r\n\t}", "java.lang.String getBusinesshours();", "com.google.ads.googleads.v6.resources.BiddingStrategy getBiddingStrategy();", "public DateFormatSymbols getDateFormatSymbols() {\r\n return calendarTable.getDateFormatSymbols();\r\n }", "public int getDayOfWeek()\n\t{\n\t\tint tempYear = year;\n\n\t\tint[] t = { 0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4 };\n\n\t\tif (month < 3)\n\t\t{\n\t\t\ttempYear -= 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttempYear -= 0;\n\t\t}\n\n\t\treturn (tempYear + tempYear / 4 - tempYear / 100 + tempYear / 400 + t[month - 1] + day) % 7;\n\t}", "public static Day get(byte b) {\r\n if (b < 0 || b >= ALL.length) {\r\n throw new ArrayIndexOutOfBoundsException(\" Looking for item \" + b //$NON-NLS-1$\r\n + \" on a \" + ALL.length + \"-length array.\"); //$NON-NLS-2$ //$NON-NLS-1$\r\n }\r\n return ALL[b];\r\n }", "public String getBusiness() {\n return this.Business;\n }", "public NM getDaysWithoutBilling() { \r\n\t\tNM retVal = this.getTypedField(27, 0);\r\n\t\treturn retVal;\r\n }", "public String bkD() {\n return CommonUtils.g(CommonUtils.cz(this.nP.getContext()));\n }", "Integer getEndDay();", "public String getBusiness_Type() {\n return (String) getAttributeInternal(BUSINESS_TYPE);\n }", "public int getLBR_ProtestDays();", "@Override\n public String getBusinessName() {\n\n if(this.businessName == null){\n\n this.businessName = TestDatabase.getInstance().getClientField(token, id, \"businessName\");\n }\n\n return businessName;\n }", "public static int getCurrentDayOfWeek()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.DAY_OF_WEEK);\n\t}", "Integer getStartDay();", "public static WithAdjuster next(DayOfWeek dayOfWeek) {\n\n return new RelativeDayOfWeek(2, dayOfWeek);\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getBand2V()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(BAND2V$10, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public Integer getDayOfWeek() {\n return dayOfWeek;\n }", "public final C44858a dWB() {\n AppMethodBeat.m2504i(55883);\n C8295e a = C44855v.m82049a(this);\n AppMethodBeat.m2505o(55883);\n return a;\n }", "String getBbgSymbol();", "public static String previousworkingdate() {\n\t\tLocalDate lastbusinessday = getLastWorkingDayOfMonth(LocalDate.now());\n\t\tint x = lastbusinessday.getDayOfMonth();\n\t\tString y = String.valueOf(x);\n\t\tif (y.length() == 1)\n\t\t\ty = \"0\" + y;\n\t\treturn String.valueOf(y);\n\n\t}", "public static String DiaActual(){\n java.util.Date fecha = new Date();\n int dia = fecha.getDay();\n String myDia=null;\n switch (dia){\n case 1:\n myDia=\"LUNES\";\n break;\n case 2:\n myDia=\"MARTES\";\n break;\n case 3:\n myDia=\"MIERCOLES\";\n break;\n case 4:\n myDia=\"JUEVES\";\n break;\n case 5:\n myDia=\"VIERNES\";\n break;\n case 6:\n myDia=\"SABADO\";\n break;\n case 7:\n myDia=\"DOMINGO\";\n break; \n }\n return myDia;\n }", "public static int calendarDay2Day(int day) {\n switch (day) {\n case Calendar.SUNDAY:\n return RRuleContants.SU;\n case Calendar.MONDAY:\n return RRuleContants.MO;\n case Calendar.TUESDAY:\n return RRuleContants.TU;\n case Calendar.WEDNESDAY:\n return RRuleContants.WE;\n case Calendar.THURSDAY:\n return RRuleContants.TH;\n case Calendar.FRIDAY:\n return RRuleContants.FR;\n case Calendar.SATURDAY:\n return RRuleContants.SA;\n default:\n throw new RuntimeException(\"bad day of week: \" + day);\n }\n }", "public int getDayOfWeek() {\n return this.dayOfWeek;\n }", "public int getWeekDay() {\r\n return this.weekday - 1;\r\n }", "private ProfileApi.ProfileBirthdayType convertStringToProfileBirthdayType(String str) {\r\n char c;\r\n switch (str.hashCode()) {\r\n case 48:\r\n if (str.equals(\"0\")) {\r\n c = 0;\r\n break;\r\n }\r\n c = 65535;\r\n break;\r\n case 49:\r\n if (str.equals(\"1\")) {\r\n c = 1;\r\n break;\r\n }\r\n c = 65535;\r\n break;\r\n case 50:\r\n if (str.equals(\"2\")) {\r\n c = 2;\r\n break;\r\n }\r\n c = 65535;\r\n break;\r\n default:\r\n c = 65535;\r\n break;\r\n }\r\n if (c == 0) {\r\n return ProfileApi.ProfileBirthdayType.SOLAR_BIRTHDAY;\r\n }\r\n if (c == 1) {\r\n return ProfileApi.ProfileBirthdayType.LUNAR_BIRTHDAY;\r\n }\r\n if (c != 2) {\r\n return ProfileApi.ProfileBirthdayType.INVALID;\r\n }\r\n return ProfileApi.ProfileBirthdayType.LEAP_BIRTHDAY;\r\n }", "public String Identifier(String day){\n if(day.equals(\"Mon\")){\n return \"M\";\n }\n else if(day.equals(\"Tue\")){\n return \"T\";\n }\n else if(day.equals(\"Wed\")){\n return \"W\";\n }\n else if(day.equals(\"Thu\")){\n return \"TH\";\n }\n else if(day.equals(\"Fri\")){\n return \"FR\";\n }\n else if(day.equals(\"Sat\")){\n return \"SA\";\n }\n else{\n return \"SU\";\n }\n }", "public String geteSRBRating() {\n return eSRBRating;\n }", "public int GetDay(){\n\t\treturn this.date.get(Calendar.DAY_OF_WEEK);\n\t}", "protected DateFormatSymbols getSymbols() {\n\t\treturn formatData;\n\t}", "public NM getPsl27_DaysWithoutBilling() { \r\n\t\tNM retVal = this.getTypedField(27, 0);\r\n\t\treturn retVal;\r\n }", "public java.lang.String getDylb() {\r\n return localDylb;\r\n }", "public String getShippingConvert() {\r\n\t\treturn this.getShipping().getName();\r\n\t}", "public int getSNbrSvcDtlFromDay()\r\n {\r\n return this._sNbrSvcDtlFromDay;\r\n }", "String getAbbr();", "public String lastDayOfWeek(){\n cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);\n cal.add(Calendar.DAY_OF_WEEK,6);\n return (\"Sun\" + \" \" + cal.get(Calendar.DATE) + \" \" + cal.get(Calendar.MONTH) + \" \" + cal.get(Calendar.YEAR));\n }", "private String getFileOftheDay() throws IOException {\n Calendar calendar = Calendar.getInstance();\n int day = calendar.get(Calendar.DAY_OF_WEEK);\n if (Calendar.SUNDAY == day) {\n day = Calendar.SATURDAY;\n } else if (Calendar.MONDAY <= day && Calendar.SATURDAY >= day) {\n day -= 1;\n }\n return (pathFiles + \"h_\" + day + \"_\" + getCustomerCode() + \".xml\");\n }", "public PDBorderStyleDictionary getBorderStyle() {\n/* 386 */ COSBase bs = getCOSObject().getDictionaryObject(COSName.BS);\n/* 387 */ if (bs instanceof COSDictionary)\n/* */ {\n/* 389 */ return new PDBorderStyleDictionary((COSDictionary)bs);\n/* */ }\n/* 391 */ return null;\n/* */ }", "public Converter getConverter()\n {\n Application application = FacesContext.getCurrentInstance().getApplication();\n String name = getName();\n if (name.equals(\"Salary\"))\n {\n Converter converter = application.createConverter(Number.class);\n if (converter != null && converter instanceof NumberConverter)\n {\n NumberConverter numberConv = (NumberConverter) converter;\n numberConv.setGroupingUsed(false);\n numberConv.setPattern(\"$ ###0,000.00\");\n numberConv.setType(\"currency\");\n numberConv.setCurrencySymbol(\"$\"); \n return numberConv;\n }\n }\n return null;\n }", "io.dstore.values.StringValue getDay();", "public String getEndPointEndingStyle() {\n/* 776 */ COSBase base = getCOSObject().getDictionaryObject(COSName.LE);\n/* 777 */ if (base instanceof COSArray && ((COSArray)base).size() >= 2)\n/* */ {\n/* 779 */ return ((COSArray)base).getName(1, \"None\");\n/* */ }\n/* 781 */ return \"None\";\n/* */ }", "public final native int getDay() /*-{\n return this.getDay();\n }-*/;", "private int getWeekday() {\n Calendar cal = Calendar.getInstance();\n int i = cal.get(Calendar.DAY_OF_WEEK);\n int weekday = i == 1 ? 6 : (i - 2) % 7;\n myApplication.setWeekday(weekday);\n return weekday;\n }", "String getQuoteOfTheDay();", "public String getDay() {\n\n\t\treturn day;\n\t}", "public String getSignupDay(int day) {\r\n\t\t\treturn signupByDay.get(day);\r\n\t\t\r\n\t\t}", "public BeanDescriptor getBeanDescriptor() {\n return getBdescriptor();\n }", "public DaySelectorStyle getDaySelectorStyle() {\r\n if (daySelectorStyle == null) {\r\n daySelectorStyle = new DaySelectorStyle();\r\n }\r\n return daySelectorStyle;\r\n }", "protected final String getWeekDay(Calendar day) {\n switch (day.get(Calendar.DAY_OF_WEEK)) {\n case Calendar.SUNDAY:\n return \"SUNDAY\";\n case Calendar.MONDAY:\n return \"MONDAY\";\n case Calendar.TUESDAY:\n return \"TUESDAY\";\n case Calendar.WEDNESDAY:\n return \"WEDNESDAY\";\n case Calendar.THURSDAY:\n return \"THURSDAY\";\n case Calendar.FRIDAY:\n return \"FRIDAY\";\n case Calendar.SATURDAY:\n return \"SATURDAY\";\n default:\n return \"MONDAY\";\n }\n }", "String getBackOffMultiplier();" ]
[ "0.51723254", "0.5142087", "0.5090872", "0.5085612", "0.50750524", "0.50650984", "0.5004184", "0.49841684", "0.49475965", "0.49293476", "0.4924993", "0.49155903", "0.49144992", "0.48984542", "0.4863185", "0.48444867", "0.48406136", "0.48173586", "0.4791332", "0.47712055", "0.47614723", "0.47614723", "0.47614723", "0.47554", "0.4739486", "0.47352168", "0.47347254", "0.47313783", "0.4729414", "0.4707481", "0.46867305", "0.4682526", "0.46737215", "0.46715134", "0.46679923", "0.46636605", "0.46586558", "0.46429902", "0.45943657", "0.45865875", "0.45791423", "0.45703703", "0.45612463", "0.45583704", "0.455594", "0.45412052", "0.45245042", "0.45098805", "0.4497308", "0.4495263", "0.44947675", "0.44780445", "0.44748178", "0.44641823", "0.44595882", "0.44568792", "0.44527444", "0.4451056", "0.44456574", "0.4443794", "0.4435173", "0.44290826", "0.4423082", "0.44186437", "0.4411924", "0.44084787", "0.4406779", "0.4403663", "0.4403195", "0.43971306", "0.43962723", "0.4391639", "0.43797413", "0.4378646", "0.43762806", "0.43671164", "0.43610263", "0.43527967", "0.4351783", "0.4337921", "0.43326607", "0.4330767", "0.43142727", "0.43095794", "0.43091807", "0.43059567", "0.43030807", "0.43027908", "0.43006104", "0.4300315", "0.42998818", "0.42994294", "0.42917594", "0.42913294", "0.42906278", "0.4290104", "0.42867056", "0.4285905", "0.4284148", "0.42831093" ]
0.717444
0
Gets the swap generator spot lag.
public int getSpotLag() { return _spotLag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getSwap(){\r\n \treturn this.dswap;\r\n \t}", "public int getPreviousHop() {\n return previousHop;\n }", "public double getPrevCount()\n {\n\n return this.prevCount;\n }", "public int getSlotTracker() {\r\n return slotTracker;\r\n }", "public int getSwapCount(){\n return this.swapCount;\n }", "public PixelPoint getStopPoint ()\r\n {\r\n Point stop = glyph.getLag()\r\n .switchRef(\r\n new Point(getStop(), line.yAt(getStop())),\r\n null);\r\n\r\n return new PixelPoint(stop.x, stop.y);\r\n }", "@Override\r\n\tpublic int getMaxLag() {\n\t\treturn pos;\r\n\t}", "public int getLaps() {\n\t\treturn meanTimes.size() + 1;\n\t}", "public void lagSkudd2() {\n\t}", "public int getLE() {\n return this.le;\n }", "long getQuickSwapAvailableMs();", "public int getSwapid() {\r\n return swapid;\r\n }", "public int getCurrRuptures();", "public Version getPrev(){\n\t\treturn prev;\n\t}", "public int getOlddeltaT() {\n return olddeltaT;\n }", "public int getGeneration ()\n {\n return generation;\n }", "public double generateDropTime() {\n return LOWERLIMTIME + (Math.random() * ((UPPERLIMTIME - LOWERLIMTIME) + 1));\n\n }", "public Position2D getPreviousPosition()\n {\n return previousPosition;\n }", "public int previousBitrate(int bitrate) {\n return bitrateArray[Math.max(0, getIndexbyBitrate(bitrate) - 1)];\n }", "protected int getGripperState() { return gripperState; }", "public int getPrevious() {\n\t\treturn this.previous;\n\t}", "int getCurrentOffset()\t\t\t\t{ return patch_delta; }", "ArrayList<Integer> getStepCounterTileY();", "public int getCurrentGenerationNumber()\n {\n return ssProxy.getCurrentGenerationNumber();\n }", "public double getGnpOld() {\n\n return gnpOld;\n }", "public int getMaxLag() {\n\t\treturn this.maxLag;\n\t}", "public final int getLE() {\n\treturn le;\n }", "public Layer getPrevLayer() {\r\n\t\treturn this.prevLayer;\r\n\t}", "int getFrame() {\n return currFrame;\n }", "public int getNextY(){\r\n return nextY;\r\n }", "public AStarNode getPrevious() {\n return previous;\n }", "public DoubleNode<T> getPrevious()\n {\n\n return previous;\n }", "public Node<S> getPrev() { return prev; }", "public E previousStep() {\r\n\t\tthis.current = this.values[Math.max(this.current.ordinal() - 1, 0)];\r\n\t\treturn this.current;\r\n\t}", "public long getFrogLookInterval() {\n return mFrog.getFrogLookInterval();\n }", "public int generation()\r\n {\r\n\treturn generation;\r\n }", "float getLgap();", "public int getDeltaNumForNextWatermark();", "public Vertex getPrev() {\n return prev;\n }", "public int getSecondR() {\n/* 48 */ return this.secondR;\n/* */ }", "public double getOldPVal() { return this.pValBefore; }", "public DListNode2 prev(){\r\n return this.prev;\r\n }", "ArrayList<Integer> getStepCounterTileX();", "public int getBackward() {\n return this.backward;\n }", "public int prevRoll() {\n return prevRoll;\n }", "public String lastAsSlot();", "public int getVgap() {\n/* */ return this.vgap;\n/* */ }", "public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}", "public short getLap() {\n return lap;\n }", "public BigDecimal getPrevBlockHeight() {\n return prevBlockHeight;\n }", "@Field(0) \n\tpublic Pointer<uvc_processing_unit > prev() {\n\t\treturn this.io.getPointerField(this, 0);\n\t}", "public long getTaille() {\n return taille;\n }", "int getRt();", "public int getRt() {\n return rt_;\n }", "public int getPanelGen(){\n return this.mFarm.getPanelGen();\n }", "public IDLink<T> getPrev(){\n \treturn ppointer;\n }", "@java.lang.Override\n public long getQuickSwapCooldownDurationMs() {\n return quickSwapCooldownDurationMs_;\n }", "public int getFrame()\n\t{\n\t\treturn currFrame;\n\t}", "public int getTaille() {\n return taille;\n }", "public Integer getBetDelay(){\n return betDelay;\n }", "public int getVgap()\n {\n return vgap;\n }", "public int getStopSequence() {\n return stopSequence;\n }", "@java.lang.Override\n public long getQuickSwapAvailableMs() {\n return quickSwapAvailableMs_;\n }", "public int getOldTrack() {\n return oldTrack;\n }", "public abstract int getSpotsNeeded();", "String getBackOffMultiplier();", "public int getNextX(){\r\n return nextX;\r\n }", "public List getPrevList() {\n\t\treturn prevList;\n\t}", "public static Player getPrevPlayer(){\n\t\tif(players.get(curr).getPnum()==1)\n\t\t\treturn players.get(players.size()-1);\n\t\telse return players.get(curr-1);\n\t}", "public Index previous() {\n return Index.valueOf(value - 1);\n }", "@java.lang.Override\n public long getQuickSwapCooldownDurationMs() {\n return quickSwapCooldownDurationMs_;\n }", "private Token previous() {\n return tokens.get(current-1);\n }", "public Object getPrev() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.prev;\n\t\t} else {\n\t\t\tcurrent = start;\n\t\t}\n\t\treturn current == null ? null : current.item; //Ha nincs még start, akkor null adjon vissza\n\t}", "public Integer getPreviousValue() {\n return this.previousValue;\n }", "@java.lang.Override\n public long getQuickSwapAvailableMs() {\n return quickSwapAvailableMs_;\n }", "public double getPY(){\n\t\treturn previousY;\n\t}", "int getSwaps();", "public synchronized double get() {\n return m_liftSpeed;\n }", "private HashMap<String, SlidingMemory> getSlideHistory() {\n return historySliding;\n }", "public int step() {\n ArrayList<Integer> copy = new ArrayList<Integer>();\n for (int i = 1; i < register.size(); i++) { \n copy.add(register.get(i));\n }\n int tapNum = register.get(register.size()-tap-1);\n int begin = register.get(0);\n if (tapNum == 1 ^ begin == 1) {\n copy.add(1);\n }\n else {\n copy.add(0);\n }\n register.clear();\n register.addAll(copy);\n return register.get(register.size()-1);\n }", "public void get() {\n // get the position of the gear shift\n gearid = simConnection.getVariable(\"Gear\", this);\n }", "public int getRt() {\n return rt_;\n }", "public int[] get() {\n\t\treturn vectorClock;\r\n\r\n\t}", "RampDownTimer getRampDownTimer();", "public static int getTempSampleTime() {\n return tempSampleTime;\n }", "public T previous()\n {\n // TODO: implement this method\n return null;\n }", "private int randomPushVelocityChange() {\n int result = pushVelocityChangeMin +\n random.nextInt(pushVelocityChangeMax - pushVelocityChangeMin + 1);\n \n return result;\n }", "public int getSlot() {\n return slot;\n }", "public int getSlot() {\n return slot;\n }", "public int getPointsGainedLastRound(){return pointsGainedLastRound;}", "public DNode getPrev() { return prev; }", "public double getCurrent() {\n return elevatorSpark.getOutputCurrent();\n }", "public int getTaille(){\r\n return this.taille;\r\n }", "@Override\n\tpublic Gesture get()\n\t{\n\t\tint sizeToFind = history.size() > 6 ? 6 : history.size() - 1; \n\t\t\n\t\twhile (sizeToFind >= 3) {\n\t\t\tint recentStart = history.size() - sizeToFind;\n\t\t\tint recentEnd = history.size();\n\t\t\t\n\t\t\tfor (int i = 0; i < history.size() - sizeToFind - 1; i++) {\n\t\t\t\tint setEnd = i + sizeToFind;\n\t\t\t\t\n\t\t\t\t// both intervals are the same size\n\t\t\t\tassert recentEnd - recentStart == setEnd - i;\n\t\t\t\t\n\t\t\t\tif (same(recentStart, recentEnd, i, setEnd)) {\n\t\t\t\t\treturn Gesture.fromInt(history.get(i + sizeToFind)[0]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tsizeToFind--;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public java.lang.String getPrevious_magistrate() {\n return previous_magistrate;\n }", "public synchronized long getSlots() {\n return slots;\n }", "Long getJetspeedProfileSequence() throws AAException;", "public ArrayList<LagIf> getLagIfs() {\n return lagIfs;\n }", "public IborIndex getIborIndex() {\n //TODO think about this\n return _swapGenerator.getIborIndex();\n }", "public int getFreezeTicks ( ) {\n\t\treturn extract ( handle -> handle.getFreezeTicks ( ) );\n\t}" ]
[ "0.59720063", "0.5432482", "0.5370249", "0.5363124", "0.5333648", "0.5246693", "0.5150877", "0.5129652", "0.5128208", "0.50955784", "0.50776076", "0.5071007", "0.5046451", "0.5003351", "0.50015354", "0.49978074", "0.4996803", "0.49946505", "0.49699253", "0.49680498", "0.4966547", "0.49649674", "0.49571174", "0.49548954", "0.49517748", "0.49447328", "0.49434072", "0.49346444", "0.49246866", "0.49237025", "0.49088028", "0.49002612", "0.48938704", "0.48805463", "0.48733473", "0.48498344", "0.48440155", "0.48435673", "0.4836805", "0.48354292", "0.4835363", "0.48316827", "0.48298487", "0.48296323", "0.48273963", "0.48220915", "0.4805549", "0.48039305", "0.48011932", "0.47971424", "0.4793051", "0.47893777", "0.47796863", "0.47776747", "0.4777106", "0.47739154", "0.47733092", "0.4768439", "0.47649327", "0.47621834", "0.47615063", "0.47608343", "0.4759955", "0.47554985", "0.47551087", "0.47549927", "0.47533154", "0.47515264", "0.4747575", "0.4746647", "0.4745806", "0.474337", "0.47384918", "0.4737475", "0.47308633", "0.47215444", "0.4721335", "0.47089908", "0.47082004", "0.47062087", "0.46986607", "0.4692945", "0.4689671", "0.46866494", "0.46856385", "0.46838534", "0.46836787", "0.46747848", "0.46747848", "0.4674089", "0.46727765", "0.4661734", "0.46592963", "0.46591124", "0.4657976", "0.46541986", "0.46373373", "0.46340388", "0.46311784", "0.46299526" ]
0.6816135
0
Gets the swap generator endofmonth rule.
public Boolean isEndOfMonth() { return _endOfMonth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getEndMonth()\n\t{\n\t\treturn this.mEndMonth;\n\t}", "public Calendar endOfMonth() {\r\n\t\t\r\n\t\t// get the date at the beginning of next month\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseCalendar.get(Calendar.MONTH) + 1, 1);\r\n\t\t\r\n\t\treturn c2;\r\n\t}", "Integer getEndDay();", "WeekdaySpec getEnd();", "public int getNextMonth()\n\t{\n\t\tm_calendar.set(Calendar.MONTH, getMonthInteger());\n\t\t\n\t\tsetDay(getYear(),getMonthInteger(),1);\n\t\t\n\t\treturn getMonthInteger();\n\t\n\t}", "Date getEndDay();", "public static WithAdjuster lastDayOfMonth() {\n\n return Impl.LAST_DAY_OF_MONTH;\n }", "public static LocalDate getLastOfNextMonth() {\n\t\treturn BusinessDateUtility.getFirstOfNextMonth().with(TemporalAdjusters.lastDayOfMonth());\n\t}", "int getExpMonth(String bookingRef);", "private long decideNextEndReset() {\n\t\tlong time = System.currentTimeMillis() + plugin.getEndResetPeriod() * 86400000;\n\t\t// Round to get the start of the next day in GMT, 5PM Pacific, 8PM Eastern,\n\t\t// when there are the most players on more-or-less\n\t\treturn (time / 86400000) * 86400000;\n\t}", "Date getEndDate();", "Date getEndDate();", "public int getEndingYear()\n {\n return -1;\n }", "@Override\n\tpublic java.util.Date getEndDate() {\n\t\treturn _esfTournament.getEndDate();\n\t}", "public Temporal getEndRecurrence() { return endRecurrence; }", "@Override\n public int getMonth() {\n return this.deadline.getMonth();\n }", "public Date get_end() {\n\t\treturn this.end;\n\t}", "MinmaxEntity getEnd();", "public double getEnd();", "public Element getEndExpression() {\n\t\treturn endExpression;\n\t}", "@Override\n public Number getEndY(int series, int item) {\n assert 0 <= series && series < checkpoint.gcTraceSize();\n assert 0 <= item && item < checkpoint.size(series);\n\n return getEndYValue(series, item);\n }", "public java.lang.String getEndDay() {\r\n return localEndDay;\r\n }", "public LocalDate getEndDate () {\n\t\treturn DateUtils.toLocalDate(this.end);\n\t}", "public String getEndAmOrPm() {\n return this.endAmOrPm;\n }", "public Date getEndDate()\n {\n return (Date)getAttributeInternal(ENDDATE);\n }", "public Date getEND_DATE() {\n return END_DATE;\n }", "public static int getRndMonthNumber() {\n return ThreadLocalRandom.current().nextInt(1, 12 + 1);\n }", "E12Rule createE12Rule();", "public String getEndDayKey() {\n return endDayKey;\n }", "private int findEndIndex(){\n\t\tint end=models.size()-1;\n\t\tfor(int i=0;i<modelNames.size();i++){\n\t\t\tif(Integer.parseInt(modelNames.get(i).substring(0,8))>this.date_end)\n\t\t\t{end=i-1;break;}\n\t\t}\n\t\treturn end;\n\t}", "public int getPrevMonth()\n\t{\n\t\tm_calendar.set(Calendar.MONTH, getMonthInteger()-2);\n\t\t\n\t\treturn (getMonthInteger()-1);\n\n\t}", "public EndBehavior getEndBehavior() {\n return f_endBehavior;\n }", "public NM getDaysWithoutBilling() { \r\n\t\tNM retVal = this.getTypedField(27, 0);\r\n\t\treturn retVal;\r\n }", "public NM getPsl27_DaysWithoutBilling() { \r\n\t\tNM retVal = this.getTypedField(27, 0);\r\n\t\treturn retVal;\r\n }", "public int getEndYear()\n {\n return indicators[indicators.length - 1].getYear();\n }", "public BigDecimal getLastmonthFee() {\r\n return lastmonthFee;\r\n }", "String getDefiningEnd();", "public int getEndY() {\r\n\t\treturn endY;\r\n\t}", "long getEndDate();", "long getEndDate();", "@Override\n\tpublic Calendar generateEndDate( ValueSetType vst, VariableValueType value ) {\n\t\treturn generateStartDate( vst, value );\n\t}", "public ISchedulingRule getSchedulingRule(IDeploymentTarget target) {\n return null;\r\n }", "public int getEndy(){\n\t\treturn endy;\n\t}", "protected int getNumberOfPeriods()\n {\n return 2;\n }", "String getEndDate();", "public Date getEndDate();", "public Date getEndDate();", "public DateTime getEnd() {\r\n return new DateTime(getEndMillis(), getChronology());\r\n }", "public Period getNextPeriod() throws PeriodNotFoundException;", "public String getEndOfMonth(String date) {\n Integer dateYear = Integer.parseInt(date.substring(0, 4));\n Integer dateMonth = Integer.parseInt(date.substring(4, 6)) - 1;\n Integer dateDay = Integer.parseInt(date.substring(6));\n Calendar c = new GregorianCalendar();\n c.set(dateYear, dateMonth, dateDay);\n c.set(Calendar.DAY_OF_MONTH, c.getActualMaximum(Calendar.DAY_OF_MONTH));\n int year = c.get(Calendar.YEAR);\n String month = String.format(\"%02d\", c.get(Calendar.MONTH) + 1);\n String day = String.format(\"%02d\", c.get(Calendar.DAY_OF_MONTH));\n\n return year + month + day;\n }", "public Urls getLastMonthUrls() {\n\t\tDate date = new Date();\n\t\tEasyDate easyDate = new EasyDate(date);\n\t\treturn getRecentlyCreatedUrls(easyDate.getPreviousMonthDate());\n\t}", "String getEnd();", "public static Date lastDayMonth(){\n String rep_fin_de_mes = \"\";\n try {\n Calendar c = Calendar.getInstance();\n\n /*Obteniendo el ultimo dia del mes*/\n c.set(Calendar.DAY_OF_MONTH, c.getActualMaximum(Calendar.DAY_OF_MONTH));\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n /*Almacenamos un string con el formato indicado*/\n rep_fin_de_mes = sdf.format(c.getTime());\n \n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return stringToDate(rep_fin_de_mes);\n }", "public int getLBR_LatePaymentPenaltyDays();", "public ElementStub getEndTwoElement()\n {\n return endTwoElement;\n }", "public int getEndNum() {\r\n return this.endNum;\r\n }", "public PayoutScheduleEnum getPayoutSchedule() {\n return payoutSchedule;\n }", "public String getEndOfWeek() {\n Calendar c = new GregorianCalendar();\n int currentDay = c.get(Calendar.DAY_OF_WEEK) != DAYS_IN_WEEK ? c.get(Calendar.DAY_OF_WEEK) : 0;\n int leftDays = Calendar.FRIDAY - currentDay;\n c.add(Calendar.DATE, leftDays);\n Date endWeek = c.getTime();\n Calendar cal = Calendar.getInstance();\n cal.setTime(endWeek);\n int year = cal.get(Calendar.YEAR);\n String month = String.format(\"%02d\", cal.get(Calendar.MONTH) + 1);\n String day = String.format(\"%02d\", cal.get(Calendar.DAY_OF_MONTH));\n\n return year + month + day;\n }", "@Test\n public void repeatingTask_CheckDateOfEndOfMonth_lastDayOfMonthDate() {\n int[] endOfMonth = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};\n int[] endOfMonthLeapYear = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};\n RepeatCommand testRepeatCommand = new RepeatCommand(0, 1, RepeatCommand.MONTHLY_ICON);\n testRepeatCommand.execute(testTaskList, testUi);\n RepeatEvent repeatEvent = (RepeatEvent) testTaskList.getTask(0);\n LocalDate eventDate = repeatEvent.getDate();\n\n int year = LocalDate.now().getYear();\n // Check if this year is a leap year\n if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) {\n assertEquals(eventDate.getDayOfMonth(), endOfMonthLeapYear[eventDate.getMonthValue()]);\n } else {\n assertEquals(eventDate.getDayOfMonth(), endOfMonth[eventDate.getMonthValue()]);\n }\n }", "double getEndY();", "public String getMonth(int month) {\n\t\treturn new DateFormatSymbols().getMonths()[month-1];\n\t}", "public String endDttm() {\n\t\t\n\t\tif (this.predefinedPeriod.getType() == PredefinedPeriodType.YEAR) {\n\t\t\treturn String.format(\"%04d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.YEAR)) + \"-12-31 59:59:59.999\"; \n\t\t} else if (this.predefinedPeriod.getType() == PredefinedPeriodType.MONTH) {\n\t\t\t\n\t\t\tint year = this.predefinedPeriod.getCalendarFrom().get(Calendar.YEAR);\n\t\t\tint month = this.predefinedPeriod.getCalendarFrom().get(Calendar.MONTH) + 1;\n\t\t\t\n\t\t\tYearMonth yearMonthObject = YearMonth.of(year, month);\n\t\t\tint daysInMonth = yearMonthObject.lengthOfMonth();\n\t\t\t\n\t\t\treturn String.format(\"%04d\", this.predefinedPeriod.getCalendarFrom().get(Calendar.YEAR)) + \"-\" + \n\t\t\t \t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.MONTH) + 1) + \"-\" +\n\t\t\t \t\t String.format(\"%02d\",daysInMonth) + \" \" + \"23:59:59.999\";\n\t\t\t\n\t\t} else if (this.predefinedPeriod.getType() == PredefinedPeriodType.DAY) {\n\t\t\treturn String.format(\"%04d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.YEAR)) + \"-\" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.MONTH) + 1) + \"-\" +\n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.DAY_OF_MONTH)) + \" \"+ \"23:59:59.999\";\n\t\t\t\n\t\t} else if (this.predefinedPeriod.getType() == PredefinedPeriodType.HOUR) {\n\t\t\treturn String.format(\"%04d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.YEAR)) + \"-\" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.MONTH) + 1) + \"-\" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.DAY_OF_MONTH)) + \" \" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarFrom().get(Calendar.HOUR_OF_DAY)) + \":59:59.999\";\n\t\t\t\n\t\t} else if (this.predefinedPeriod.getType() == PredefinedPeriodType.INT_LT_HOUR) {\n\t\t\treturn String.format(\"%04d\",this.predefinedPeriod.getCalendarTo().get(Calendar.YEAR)) + \"-\" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarTo().get(Calendar.MONTH) + 1) + \"-\" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarTo().get(Calendar.DAY_OF_MONTH)) + \" \" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarTo().get(Calendar.HOUR_OF_DAY)) + \":\" +\n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarTo().get(Calendar.MINUTE)) + \":\" + \n\t\t\t\t\t String.format(\"%02d\",this.predefinedPeriod.getCalendarTo().get(Calendar.SECOND)) + \".000\";\n\n\t\t} \n\t\treturn null;\n\t}", "public double getEnd() {\n return end;\n }", "int getEndTick();", "public int getMonth()\n {\n return month;\n }", "public java.lang.String getPmRuleValue2() {\r\n return pmRuleValue2;\r\n }", "public int getEndYear()\n\t{\n\t\treturn this.mEndYear;\n\t}", "public M csmiBirthdayEnd(Object end){this.put(\"csmiBirthdayEnd\", end);return this;}", "Instant getEnd();", "Integer getPortRangeEnd();", "public double getEndY() {\n\treturn v2.getY();\n }", "public double monthlyEarning()\n\t{\n\t\treturn hourlyRate * STAFF_MONTHLY_HOURS_WORKED;\n\t}", "public LocalDateTime CalcLastDay()\n {\n if (!Repeats) {\n // then use the end of the period\n return CalcFirstPeriodEndDay();\n }\n\n //else its forever or if its set\n return LastDay == null ? LocalDateTime.MAX : LastDay;\n }", "public java.lang.Integer getOverdueMaxMonth5Y() {\n return overdueMaxMonth5Y;\n }", "public char getEndEndModifier() {\n\t\treturn (end_end_modifier);\n\t}", "float getBlackoutPeriod();", "public org.omg.uml.behavioralelements.commonbehavior.LinkEnd getLinkEnd();", "public Date getEndDate()\r\n {\r\n return this.endDate;\r\n }", "public Date getEndDate() {\n\t\treturn this.endDate;\n\t}", "public Integer getEndMark() {\n return endMark;\n }", "int calDateMonth(int mC,int yC,int mG,int yG){//(current-month, current-year, goal-month, goal-year)\n int x = 0,i,countM=0;\n if(yC<=yG){\n for(i = yC; i < yG; i++)\n countM += 12;\n }\n\n countM -= mC;\n countM += mG;\n return (countM);\n }", "public boolean twentyeightDays() {\n return this.month.equals(\"February\");\n }", "public int getEndYear() {\n\t\treturn endYear;\n\t}", "public WorldCoordinate getEnd() {\r\n\t\treturn this.end;\r\n\t}", "public Date getEndDate() {\r\n return this.endDate;\r\n }", "public int getMonth() {\r\n\t\treturn (this.month);\r\n\t}", "public int getReceivalMonth(){\n\t\treturn this.receivalMonth;\n\t}", "public static int getTodaysMonth() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.month + 1;\t\r\n\t\t\r\n\t}", "public static int getThymioEndField_Y() {\n\t\treturn THYMIO_ENDFIELD_Y;\n\t}", "public Date getEnd() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.End);\n\t}", "String getEndRange();", "@Nullable\n public DpProp getEnd() {\n if (mImpl.hasEnd()) {\n return DpProp.fromProto(mImpl.getEnd());\n } else {\n return null;\n }\n }", "@UML(identifier=\"endParameter\", obligation=MANDATORY, specification=ISO_19123)\n double getEndParameter();", "Node getEndNode() {\n return end;\n }", "List<MonthlyExpenses> lastMonthExpenses();", "public Date getDtEnd() {\r\n return dtEnd;\r\n }", "public Date getEndDate() {\n\n String[] dateParts = description.split(\"<br />\");\n String end = dateParts[1];\n SimpleDateFormat sdf = new SimpleDateFormat(\"E, dd MMMMM yyyy - HH:mm\");\n\n //Split first part of Description and transform to Date\n //Exaample first part = \"Start Date: Tues 18 March 2017\"\n try {\n EndDate = sdf.parse(end.split(\": \")[1]);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return EndDate;\n }", "public String getMonth()\n {\n return Month.get();\n }", "public int getMonth() {\n return month;\n }", "public String getEndDate();" ]
[ "0.6069993", "0.58878714", "0.56210834", "0.56030524", "0.541735", "0.5361194", "0.5360492", "0.52876276", "0.5131336", "0.50473654", "0.49707645", "0.49707645", "0.4968313", "0.49367678", "0.48528048", "0.48312643", "0.48248032", "0.4797066", "0.47907668", "0.47880617", "0.47785878", "0.47721097", "0.4762746", "0.47553423", "0.47479054", "0.47418115", "0.4740612", "0.4733688", "0.472792", "0.47241214", "0.47176763", "0.47133967", "0.47094285", "0.46968448", "0.4679067", "0.46773395", "0.46761945", "0.46614546", "0.4645521", "0.4645521", "0.46401477", "0.463418", "0.4632859", "0.46227837", "0.46160045", "0.46138585", "0.46138585", "0.46049884", "0.46049514", "0.46024755", "0.45946208", "0.45915833", "0.45895275", "0.45870206", "0.4586531", "0.45808175", "0.4570873", "0.4562683", "0.4549929", "0.45497376", "0.45482677", "0.4529208", "0.45243114", "0.45210114", "0.45207974", "0.45198467", "0.45104104", "0.45058224", "0.44999194", "0.4498792", "0.4497253", "0.44826955", "0.44813892", "0.44775996", "0.447698", "0.4476611", "0.4470788", "0.44704527", "0.4469557", "0.44567454", "0.4450499", "0.4450425", "0.4449029", "0.44480798", "0.4447914", "0.44477412", "0.44403237", "0.44367275", "0.44318008", "0.4431406", "0.4430822", "0.44279033", "0.44239888", "0.44219422", "0.44219208", "0.44210726", "0.44178233", "0.44110882", "0.44102892", "0.44025373" ]
0.5093941
9
/ User Rest controller: 1. Create user 2. Update user can delete user 4. Sign in user 5. Sign out user TODO 1. Create user profile 2. Update user profile
@POST @Path("/signUp") @Consumes(MediaType.APPLICATION_JSON) public String createUser(User user) { UserService.createUser(user); return "User " + user.getUsername() + " is created successfully"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserCreateResponse createUser(UserCreateRequest request);", "public interface UserService{\n\n public UserAccount saveUser(UserAccount userAccount) throws UserNotExist;\n public UserAccount updateUser(UpdateDto updateDto) throws UserNotExist;\n public void deleteUser(DeleteDto deleteDto);\n\n public UserAccount findByEmail(String email);\n public UserAccount findByConfirmationToken(String confirmationToken);\n\n\n// public void logout();\n public void resendMail(ResendEmailDto resendEmailDto);\n public void resetPassword(UserAccount userAccount, HttpServletRequest request);\n}", "@PreAuthorize(\"@userAuthorize.canCreate(#user)\")\n\t@RequestMapping(value = \"/createWithLogin\", method = RequestMethod.POST)\n\tpublic ResponseEntity<?> createWithLogin(@RequestBody User user, @RequestParam Map<String, Object> params) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException, KeyManagementException, UnrecoverableKeyException {\n\t\t// Call serverauth to create user.\n\t String serverauthUrl = evn.getProperty(\"serverauth.url\");\n\t String token = params.get(\"token\").toString();\n\t Map<String, Object> data = new HashMap<String, Object>();\n\t data.put(\"username\", user.getUsername());\n\t data.put(\"password\", user.getPassword());\n\t data.put(\"displayname\", user.getDisplayname());\n\t data.put(\"thumbnail\", user.getThumbnail());\n\t data.put(\"enabled\", true);\n\t ResponseEntity<Object> response = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/createWithEvent\", HttpMethod.POST, token, null, data, null);\n\t Map<String, Object> resultRemote = (Map<String, Object>) response.getBody();\n\t if(resultRemote.get(\"error\") != null) {\n\t \t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t \n\t try {\n\t \tUser result = userService.create(user);\n\t\t\t// Call serverauth to confirm create user as SUCCESS.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_SUCCESS, HttpMethod.GET, token, null, null, null);\n\t\t\t// return.\n\t\t\treturn new ResponseEntity<Integer>(result.getId(), HttpStatus.OK);\n\t } catch(Exception ex) {\n\t\t\t// Call serverauth to confirm create user as ABORT.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_ABORT, HttpMethod.GET, token, null, null, null);\n\t\t\t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t \n\t}", "public interface UserService {\n\n\n User checkUser(String username,String password);\n\n User checkUserByName(String username);\n\n User getUser(Long id);\n\n User saveUser(User user);\n\n User updateUserById(Long id, User user);\n\n Page<User> listUser(Pageable pageable);\n\n void deleteUser(Long id);\n\n}", "public interface UserService {\n\n ResponseEntity<?> login(String username, String password, HttpSession session); //用户登录\n\n ResponseEntity<?> auth(String username,String password); //获取token\n\n ResponseEntity<?> register(String username,String password); //用户注册\n\n ResponseEntity<?> getOne(long userId);\n\n ResponseEntity<?> getUserNumber(); //获取用户数量\n\n ResponseEntity<?> saveAndFlush(User user);\n\n ResponseEntity<?> getUsers();\n\n ResponseEntity<?> changeStatus(long userId, int status);\n\n Page<User> list(Pageable pageable);\n\n ResponseEntity<?> search(String name);\n}", "public interface UserService{\n /**\n * Method to add user to the repository\n * @param userModel {@link AddUserModel} Details of the user to be added\n * @return {@link UserModel}\n * @throws BadRequestException Thrown when userName is null or empty\n */\n\tpublic UserModel addUser(AddUserModel userModel) throws BadRequestException;\n\t\n /**\n * Method to delete user from the repository\n * @param id Id of the user to be deleted\n * @throws BadRequestException Thrown when id is null or non-integer value\n */\n\tpublic void deleteUser(Integer id) throws BadRequestException;\n\t\n /**\n * Method to view details of a particular user\n * @param id of the user to be viewed\n * @return {@link UserModel} contains all the details of user \n * @throws BadRequestException Thrown when id is null or non-integer value\n */\n\tpublic UserModel viewUser(Integer id) throws BadRequestException;\n\t\n /**\n * Method to retrieve all the users from the repository\n * @return List of {@link UserModel}\n */\n\tpublic List<UserModel> viewAll();\n\t\n /**\n * Method to update the details of the user\n * @param userId Id of the user to be updated\n * @param user {@link UserModel} Details to be updated\n * @return {@link UserModel}\n * @throws BadRequestException Thrown when id is null or non-integer value\n */\n\tpublic UserModel updateUser(Integer userId,UserModel user) throws BadRequestException;\n\t\n\t/**\n\t * Method to add new user and update existing user\n\t * @param user Details of the user fetched from session\n\t * @return Id of the user who is added/updated\n\t */\n\tpublic Integer addOrUpdate(LoginResponse user);\n}", "@PostMapping(\"/sign-up\") //method handles POST requests with this path (signup)\n public ResponseEntity<?> registerUser(@Valid @RequestBody SignupRequest signUpRequest) {\n if (userRepository.existsByUsername(signUpRequest.getUsername())) {\n // if so, throw 400 status and error message\n return ResponseEntity\n .badRequest()\n .body(new MessageResponse(\"Error: Username is already taken!\"));\n }\n\n // checks is email is already in use\n if (userRepository.existsByEmail(signUpRequest.getEmail())) {\n // if so, throw 400 status and error message\n return ResponseEntity\n .badRequest()\n .body(new MessageResponse(\"Error: Email is already in use!\"));\n }\n\n // create new user's account\n User user = new User(signUpRequest.getUsername(),\n signUpRequest.getEmail(),\n encoder.encode(signUpRequest.getPassword())); // save password encoded\n\n // create objects based on user category\n String category = signUpRequest.getCategory(); // get category from signUpRequest\n // for now there is just one category. When there are more categories, \"category.equals(\"\") should be taken out of the first if-statement.\n // when there are are a number of categories, change if-statements to switch statement.\n if (category.equals(\"artist\") || category.equals(\"\")) {\n // set user category\n Category userCategory = categoryRepository.findByName(ECategory.CATEGORY_ARTIST)\n .orElseThrow(() -> new RuntimeException(\"Error: Category is not found\"));\n user.setCategory(userCategory);\n }\n\n boolean typeUser = false;\n Set<String> strRoles = signUpRequest.getRoles();\n Set<Role> roles = new HashSet<>();\n\n\n // if no role is defined, set ROLE_USER\n if (strRoles == null) {\n Role userRole = roleRepository.findByName(ERole.ROLE_USER)\n .orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\n roles.add(userRole);\n typeUser = true;\n\n // else, set roles as provided by SignupRequest\n } else {\n for (String role : strRoles) {\n switch (role) {\n case \"admin\":\n Role adminRole = roleRepository.findByName(ERole.ROLE_ADMIN)\n .orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\n roles.add(adminRole);\n\n break;\n case \"business\":\n Role businessRole = roleRepository.findByName(ERole.ROLE_BUSINESS)\n .orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\n roles.add(businessRole);\n\n break;\n\n case \"media\":\n Role mediaRole = roleRepository.findByName(ERole.ROLE_MEDIA)\n .orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\n roles.add(mediaRole);\n\n break;\n default:\n Role userRole = roleRepository.findByName(ERole.ROLE_USER)\n .orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\n roles.add(userRole);\n typeUser = true;\n\n }\n }\n }\n\n // set roles\n user.setRoles(roles);\n\n // save user\n userRepository.save(user);\n\n // if user has type USER, create roadmap\n if (typeUser) {\n roadmapServiceImpl.createInitialRoadmap(user); // at first, all the code for creating the roadmap was placed here. Decided to use e roadmapServiceImpl class to do this to keep the controller as clean as possible\n }\n\n // save userInformation\n UserInformation userInformation = new UserInformation(user.getId());\n userInformationService.save(userInformation);\n\n // return status 200 and success message\n return ResponseEntity.ok(new MessageResponse(\"User registered successfully!\"));\n }", "private void setupEndpoints() {\n\t\tpost(API_CONTEXT + \"/users\", \"application/json\", (request, response) -> {\n\t\t\t//response.status(201);\n\t\t\treturn userService.createNewUser(request.body());\n\t\t}, new JsonTransformer());\n\t\t\n\t\tpost(API_CONTEXT + \"/login\", \"application/json\", (request, response) -> {\n\t\t\t//response.status(201);\n\t\t\treturn userService.find(request.body());\n\t\t}, new JsonTransformer());\n\t\t\n\t\tput(API_CONTEXT + \"/users\", \"application/json\", (request, response)\n\t\t\t\t-> userService.update(request.body()), new JsonTransformer());\n\t\t\n\t\tdelete(API_CONTEXT + \"/users/:email\", \"application/json\", (request, response)\n\t\t\t\t-> userService.deleteUser(request.params(\":email\")), new JsonTransformer());\n\n\t}", "@RequestMapping(value = \"/register/Admin/{firstname}/{surname}/{password}/{userType}/{phone}/{gender}/{yob}/{emailAddress:.+}\",\n method= RequestMethod.GET)\n @ResponseBody\n public ResponseEntity<HashMap<String,String>> registerAdmin (@PathVariable(\"firstname\") String firstname,\n @PathVariable(\"surname\") String surname,\n @PathVariable(\"password\") String password,\n @PathVariable(\"userType\") String userType,\n @PathVariable(\"phone\") String phone,\n @PathVariable(\"gender\") String gender,\n @PathVariable(\"yob\") int yob,\n @PathVariable(\"emailAddress\") String emailAddress\n ) throws ParseException {\n\n respMap = new HashMap<>();\n httpStatus = HttpStatus.OK;\n User user = userRepo.findByEmailAddress(emailAddress);\n\n if (user == null) {\n user = new User();\n\n if (checkPasswordFormat(password)) {\n user.setFirstname(firstname);\n user.setSurname(surname);\n user.setEmailAddress(emailAddress);\n user.setPassword(password);\n user.setType(userType);\n user.setPhone(phone);\n user.setGender(gender);\n user.setYob(yob);\n // administrators are automatically enabled.\n user.setApproved( true );\n\n respMap.put(\"message\",\"User created successfully\");\n respMap.put(\"httpStatus\",\"\"+httpStatus);\n respMap.put(\"success\",\"1\");\n userRepo.save(user);\n\n // retrieve user, and pick up userid.\n // with this id go to retailer with retailerid and change userid to this userid.\n // update retailer.\n\n } else {\n respMap.put(\"message\",\"Password Incorrect: >= 6 and <= 20, at least one number, upper and lowercase character\");\n respMap.put(\"success\",\"0\");\n respMap.put(\"httpStatus\",\"\"+httpStatus);\n }\n } else {\n respMap.put(\"message\",\" - This email address is already in use, please chose another email address\");\n respMap.put(\"success\",\"0\");\n respMap.put(\"httpStatus\",\"\"+httpStatus);\n }\n\n return new ResponseEntity<>(respMap, httpStatus);\n }", "public interface UserService {\n\n public User getUserInfoByUsername(String username) throws Exception;\n\n public User getUserInfoFromSession(HttpSession session) throws Exception;\n\n /**\n * 用户注册逻辑\n *\n * @param user\n */\n// public Response merge(User user);\n\n /**\n * 用户获取逻辑\n *\n * @param id\n * @return\n */\n public Response getUserById(String id);\n\n\n /**\n * 获取用户列表\n *\n * @yhxm 用户姓名\n * @dlzh 登录账号\n * @bhxj 包含下级(1 是;2 否;)\n * @jgbh 机构编号\n */\n public Response selectNextLev(String yhxm, String dlzh, String bhxj, String jgbh, int pageindex, int pagesize);\n\n /**\n * 删除\n *\n * @param user_id\n * @throws Exception\n */\n public Response delete(String user_id, String tempId);\n\n public Response getRolesByBmbh(String bmbh);\n\n public Response getSysUserRoles(String type);\n\n public Response getSysUserRolesByID(String roleId);\n\n /**\n * 重置密码\n *\n * @param user_id\n */\n public Response ResetPasswd(int user_id);\n\n /**\n * 功能描述:根据用户名获取用户权限列表\n * 作者:齐遥遥\n * 时间:2017-10-17\n *\n * @param loginname\n * @return\n */\n public Response getUserRoles(String loginname);\n\n /**\n * 功能描述:根据用户名获取用户菜单列表\n * 作者:齐遥遥\n * 时间:2017-10-17\n *\n * @param loginname\n * @return\n */\n public Response getUserMenus(String loginname);\n\n /**\n * 功能描述:根据用户名获取用户信息\n * 作者:齐遥遥\n * 时间:2017-10-18\n *\n * @param loginname\n * @return\n */\n public Response getUserByLoginname(String loginname);\n\n public Response updatePassword(String loginname, String password, String newPassword);\n\n\n public String getUserInfo(String user_id);\n\n //修改用户密码\n boolean updatePwd(Map map)throws Exception;\n\n //用户个人中心信息显示补充查询\n Map getUserInfor(String loginname,String bmbh)throws Exception;\n\n Response addUser(SysUser user);\n\n Response update(SysUser user);\n}", "public interface UserService {\n\n Page<UserResponse> getAll(int page, int size);\n\n UserResponse getById(Long id);\n\n UserResponse create(CreateUserRequest request);\n\n UserResponse update(Long id, UpdateUserRequest request);\n\n void delete(Long id);\n\n}", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "public interface UserService extends UserDetailsService {\n User findUserByLogin(String login);\n\n User findUserById(Long id);\n\n void registerUser(User newUser);\n}", "public interface UserService extends UserDetailsService {\n /**\n * Retrieves an user by its id.\n *\n * @param id cannot be null\n * @return\n */\n Optional<User> findUserById(Long id);\n\n /**\n * Retrieves an user by its username.\n *\n * @param username cannot be null\n * @return\n */\n Optional<User> findUserByUsername(String username);\n\n /**\n * Saves a given entity. Use the returned instance for further operations as the save operation might have changed the entity instance completely.\n *\n * @param user user\n * @return the saved user; will never be null.\n * @throws IllegalArgumentException in case the given advertisement is null.\n */\n User save(User user);\n\n /**\n * Return list of all users int the system.\n *\n * @return List of all users in the system\n */\n List<User> findAll();\n\n /**\n * Deletes a given user.\n *\n * @param user cannot be null\n */\n void delete(User user);\n\n /**\n * Deletes a given user.\n *\n * @param id cannot be null\n */\n void deleteById(Long id);\n}", "public interface UserService {\n\n UserDto create(CreateForm createForm);\n\n UserDto delete(String id);\n\n UserDto updateProfile(String id, ProfileForm profileForm);\n\n UserDto updateMyItemsIds(String id, String itemId);\n\n UserDto updateMyTransactionsIds(String id, String transactionId);\n\n UserDto getByUsername(String username);\n\n Page<UserDto> getAll(Pageable pageable);\n}", "public interface UserService {\r\n\r\n\t/**\r\n\t * Loads {@link User} specified by ID\r\n\t * @param id of user\r\n\t * @return {@link User} instance\r\n\t * @throws RuntimeException if user does not exist\r\n\t */\r\n\tUser loadUserById(Integer id);\r\n\r\n\t/**\r\n\t * Loads {@link User} specified by username\r\n\t * @param username of user\r\n\t * @return {@link User} instance\r\n\t * @throws RuntimeException if user does not exist or permission is denied\r\n\t */\r\n\tUser loadUserByUsername(String username);\r\n\r\n\t/**\r\n\t * Creates new user \r\n\t * @param userBuilder used to define user properties\r\n\t * @param notify determines whether notification email should be send\r\n\t * @return newly created {@link User}\r\n\t * @throws RuntimeException if user does not exist or permission is denied\r\n\t */\r\n\tUser createUser(UserBuilder userBuilder, boolean notify);\r\n\r\n\t/**\r\n\t * Updates user specified by ID and version\r\n\t * @param id of the user to update\r\n\t * @param version of the user to update\r\n\t * @param userBuilder used to define user properties to be updated\r\n\t * @throws RuntimeException if user does not exist or permission is denied \r\n\t */\r\n\tvoid updateUser(Integer id, Long version, UserBuilder userBuilder);\r\n\r\n\t/**\r\n\t * Deletes the user\r\n\t * @param id of the user to delete\r\n\t * @throws RuntimeException if user does not exist or permission is denied\r\n\t */\r\n\tvoid deleteUser(Integer id);\r\n\r\n\t/**\r\n\t * Updates user-domain association\r\n\t * @param userId of the user\r\n\t * @param domainId of the domain\r\n\t * @param roles {@link UserRole} to set.\r\n\t * @throws RuntimeException if user does not exist, domain does not exist or permission is denied\r\n\t */\r\n\tvoid updateDomainAssociation(Integer userId, Integer domainId, UserRole... roles);\r\n\r\n\t/**\r\n\t * Updates user-user group association\r\n\t * @param userId of the user\r\n\t * @param userGroups id's of the groups\r\n\t * @throws RuntimeException if user does not exist, user groups do not exist or permission is denied\r\n\t */\r\n\tvoid updateUserGroupAssociation(Integer userId, Integer... userGroups);\r\n\r\n\t/**\r\n\t * Creates an user request of desired type.\r\n\t * @param username username of the user the request is created for.\r\n\t * @param type Specifies the type of the request. Available types are: LOGIN_UNATTENDED, PASSWORD_SET, PASSWORD_RESET, UNLOCK_ACCOUNT, LOGIN\r\n\t * @return request_id and request_code of the created request. Example: 1544;RDQX1Qx9UokSf4n3KAVWgNClvrFUqncSZg7fK3gnVAfNIAOylN\r\n\t * @throws RuntimeException if user does not exist or permission is denied\r\n\t */\r\n\tString createUserRequest(String username, UserRequestType type);\r\n\r\n}", "public interface UserService {\n\n /**\n * 获取用户信息列表\n *\n * @return\n */\n List<User> findAllUser();\n\n /**\n * 根据 ID,查询信息\n *\n * @param user\n * @return\n */\n ResponseBean login(User user);\n\n /**\n * 新增信息\n *\n * @param user\n * @return\n */\n ResponseBean saveUser(User user);\n\n /**\n * 更新信息\n *\n * @param user\n * @return\n */\n ResponseBean updateUser(User user);\n\n /**\n * 获取用户信息\n * @param phone\n * @return\n */\n ResponseBean getUserInfo(String phone);\n\n /**\n * 根据 ID,删除信息\n *\n * @param id\n * @return\n */\n ResponseBean deleteUser(Long id);\n\n /**\n * 验证用户的登录情况,Token是否合法\n * @param phoneNum\n * @param token\n * @return\n */\n boolean isUserTokenLegal(String phoneNum, String token);\n\n ResponseBean getAllUserList(String params);\n\n ResponseBean getAllInfo(User user);\n}", "@PostMapping(\"/usersv1\")\n\tpublic Resource<User> createUser1(@RequestBody User user) {\n\t\tUser savedUser = userService.saveUser(user);\n\t\tSystem.out.println(\"Saved User \" + savedUser);\n\t\tResource<User> resource = new Resource<User>(savedUser);\n\t\tSystem.out.println(resource.getContent().getUserName());\n\t\t//ControllerLinkBuilder linkTo = new ControllerLinkBuilderFactory().linkTo(methodOn(this.getClass()).createUserResponseCode(user));\n\t\tControllerLinkBuilder linkTo = new ControllerLinkBuilderFactory().linkTo(methodOn(this.getClass()).getOneUser(savedUser.getUserId()));\n\t\t//ControllerLinkBuilder linkTo = new ControllerLinkBuilderFactory().linkTo(methodOn(this.getClass()).getOneUser(102));\n\t\tSystem.out.println(linkTo.toUri().toString());\n\t\t//resource.add(linkTo.withRel(\"To get with location of the added user use this url\"));\n\t\tresource.add(linkTo.withRel(\"added-user-link\"));\n\n\t\t//resource.add(linkTo.withRel(\"Access added user here: \"));\n\t\treturn resource;\n\t}", "public interface UserService {\n\n /**\n * login user\n *\n * @param login user login\n * @param password user password\n * @return optional value of user if login is successful\n * @throws ServiceException if an error occurs while processing.\n */\n Optional<User> login(String login, String password) throws ServiceException;\n\n /**\n * register user\n *\n * @param login user login\n * @param password user password\n * @param passwordConfirmed password confirm\n * @return true if register successful, false, otherwise\n * @throws ServiceException if an error occurs while processing.\n */\n boolean register(String login, String password, String passwordConfirmed) throws ServiceException;\n\n /**\n * Finds user by id\n *\n * @param id user id\n * @return optional value of user.\n * @throws ServiceException if an error occurs while processing.\n */\n Optional<User> findUser(int id) throws ServiceException;\n\n /**\n * Finds user with cookies\n *\n * @param login user login\n * @param userHash user hash\n * @return optional value of user.\n * @throws ServiceException if an error occurs while processing.\n */\n Optional<User> findUserWithCookies(String login, String userHash) throws ServiceException;\n\n /**\n * update user\n *\n * @param user user entity\n * @return true if register successful, false, otherwise\n * @throws ServiceException if an error occurs while processing.\n */\n boolean updateUser(User user) throws ServiceException;\n\n /**\n * confirm email\n *\n * @param userId id of user\n * @param token for confirmation\n * @return optional value of user.\n * @throws ServiceException if an error occurs while processing.\n */\n Optional<User> confirmEmail(int userId, String token) throws ServiceException;\n\n /**\n * Finds all users\n *\n * @return list of users.\n * @throws ServiceException if an error occurs while processing.\n */\n List<User> findALlUsers() throws ServiceException;\n\n}", "@RequestMapping(\"/register-user\")\n public ResponseEntity<UserProfileEntity> register(@RequestBody UserProfileEntity payload, HttpServletRequest request) throws ServletException{\n UserProfileEntity user = userProfileService.findByUser(payload.getUsername());\n\n //if null add new user and login\n if (user == null) {\n RoleEntity role = new RoleEntity();\n role.setRole(\"ROLE_USER\");\n\n Set<RoleEntity> roleSet = new HashSet<>();\n roleSet.add(role);\n\n UserProfileEntity userToAdd = new UserProfileEntity();\n userToAdd.setEnabled(true);\n userToAdd.setUsername(payload.getUsername());\n userToAdd.setPassword(payload.getPassword());\n userToAdd.setRoles(roleSet);\n\n userProfileService.save(userToAdd);\n\n request.login(userToAdd.getUsername(), userToAdd.getPassword());\n\n return new ResponseEntity<UserProfileEntity>(userToAdd, HttpStatus.CREATED);\n\n } else {\n return new ResponseEntity<UserProfileEntity>(HttpStatus.CONFLICT);\n }\n\n }", "@PreAuthorize(\"hasAuthority('ADMIN')\")\n @GetMapping(\"/{id}\")\n public ResponseEntity getUser(@PathVariable Long id) {\n return ok(userService.getUserById(id));\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/user/userAuthentication/{username}{password}\")\n @ApiOperation(value = \"Authenticating the user to make sure they actually exist or that the username and password is correct\")\n public User userAuthentication(@RequestParam String username, @RequestParam String password){\n return userService.authenticateUser(username, password);\n }", "public interface UserService {\n\n void register(UserEntity userEntity);\n UserEntity findByUsername(String username);\n UserEntity findByEmail(String email);\n void editMyAccount(UserEntity newUserEntity, Principal principal);\n void editUser(UserEntity newUserEntity);\n void deleteMyAccount(String password, Principal principal);\n void deleteUser(String username, Principal principal);\n List<UserEntity> getAllUsers();\n String getRoleOfLoggedUser();\n boolean checkIfPasswordMatchWithLoggedUserPassword(String password);\n}", "@PostMapping(\"/user/new/\")\n\tpublic userprofiles createUser(@RequestParam String firstname, @RequestParam String lastname, @RequestParam String username, @RequestParam String password, @RequestParam String pic) {\n\t\treturn this.newUser(firstname, lastname, username, password, pic);\n\t}", "public interface UserApi {\n\n\n @GET(\"/user/\")\n User getUser(@Query(\"username\") String username);\n\n @POST(\"/user/\")\n User login(@Query(\"username\") String username, @Query(\"password\") String password);\n\n}", "public interface User extends UserDetails {\n\n\tpublic String getUsername();\n\n\tpublic void setUsername(String email);\n\n\tpublic String getPassword();\n\n\tpublic void setPassword(String password);\n\n\tpublic String getCpf();\n\n\tpublic void setCpf(String cpf);\n\n\tpublic Profile getProfile();\n\n\tpublic void setProfile(Profile profile);\n\n\tpublic boolean isNeedChangePassword();\n\n\tpublic void setNeedChangePassword(boolean status);\n\n\tpublic void setLocked(boolean locked);\n\n\tpublic void setEnabled(boolean enabled);\n\n}", "public interface UserService {\n void resetCredentials();\n\n User findById(Long id);\n\n User findByUsername(String username);\n\n List<User> findAll();\n\n User save(UserRequest user);\n}", "public interface UserService {\n\n User getById(int id);\n\n User login(User user);\n\n List<User> getByParam(String param,Object value);\n\n List<User> getPageByMap(Map<String,Object> map, int pageIndex, int pageSize);\n\n List<User> getListByMap(Map<String,Object> map);\n\n void addUser(User user);\n\n boolean isExsit(User user);\n\n void logout(User user);\n\n void update (User user);\n\n void delete(int id);\n}", "public interface UserService {\n\n User save(User user);\n\n User update(User user);\n\n void delete(Long id);\n\n User findById(Long id);\n\n List<User> findAll();\n\n}", "public interface UserService {\r\n\r\n\t/**\r\n\t * Returns the user account for the given username.\r\n\t *\r\n\t * @param username\r\n\t * \t\tusername\r\n\t *\r\n\t * @return user account or <code>null</code>\r\n\t */\r\n\t@PreAuthorize(\"hasRole('ROLE_USER')\")\r\n\tpublic UserAccount findUserAccountByUsername(String username);\r\n\r\n\t/**\r\n\t * Returns the user account for the given primary key.\r\n\t *\r\n\t * @param uuid\r\n\t * \t\tprimary key as uuid\r\n\t *\r\n\t * @return user account or <code>null</code>\r\n\t */\r\n\t@PreAuthorize(\"hasRole('ROLE_USER')\")\r\n\tpublic UserAccount findUserAccountByPrimaryKey(String uuid);\r\n\r\n\t/**\r\n\t * Checks if the given username is still available.\r\n\t *\r\n\t * @param username\r\n\t * \t\tusername to check\r\n\t *\r\n\t * @return <code>true</code> if that username is still available\r\n\t */\r\n\t@PreAuthorize(\"hasRole('ROLE_USER')\")\r\n\tpublic boolean isUsernameAvailable(String username);\r\n\r\n\t/**\r\n\t * Creates a new user account.\r\n\t *\r\n\t * @return <code>true</code> if the account was created\r\n\t */\r\n\tpublic void createUserAccount(UserAccount account);\r\n\r\n\t/**\r\n\t * Update an existing user account.\r\n\t *\r\n\t * @return <code>true</code> if the account was updated\r\n\t */\r\n\t@PreAuthorize(\"hasRole('ROLE_USER')\")\r\n\tpublic void updateUserAccount(UserAccount account);\r\n\r\n}", "public interface UserService {\n int create(User user) throws DatabaseException;\n User getUserById(int id) throws DatabaseException;\n User getUserByName(String name) throws DatabaseException;\n int update(User user) throws DatabaseException;\n boolean isEmailExist(String email) throws DatabaseException;\n int delete(User user) throws DatabaseException;\n List<User> findAll() throws DatabaseException;\n}", "public interface UserService {\n\n User findUserBuId(Long id);\n\n List<User> findAllUsers();\n\n void deleteUser(Long id);\n\n void saveUser(User user);\n\n void updateUser(User user);\n\n User findUserByEmail(String value);\n\n boolean isExist(String email);\n}", "public interface UserService {\n User findUserById(int id);\n User selectByName(String username);\n User selectByEmail(String email);\n int insrtUser(User user);\n int insertStatus(int id,int status);\n int insertHeader(int id,String headerUrl);\n int insertPassword(int id,String password);\n}", "public interface UserService{\r\n \r\n\t/**\r\n\t * Creates the user\r\n\t * \r\n\t * @param dto\r\n\t * UserModel\r\n\t * @return User If user account exists\r\n\t * @throws UserExistsException\r\n\t * if user account doesn't exists\r\n\t */\r\n\tUser createUser(UserModel dto) throws UserExistsException;\r\n\r\n\t/**\r\n\t * Returns the User by user name.\r\n\t * \r\n\t * @param username\r\n\t * String\r\n\t */\r\n\tUser getUserByUsername(String username);\r\n\r\n\t/**\r\n\t * Changes the password.\r\n\t * \r\n\t * @param user\r\n\t * ChangePasswordModel\r\n\t * @param token\r\n\t * String\r\n\t * @return Returns true if the password change succeeded otherwise false\r\n\t * @throws InvalidTokenException\r\n\t */\r\n\tBoolean changePassword(ChangePasswordModel user, String token) throws InvalidTokenException;\r\n\r\n\t/**\r\n\t * Saves the login info to the repository.\r\n\t * \r\n\t * @param login\r\n\t * UserLogin\r\n\t * @return UserLogin\r\n\t */\r\n\tUserLogin recordLogin(UserLogin login);\r\n\r\n\t/**\r\n\t * Verifies the account is locked or not.\r\n\t * \r\n\t * @param username\r\n\t * String\r\n\t * @return Boolean\r\n\t */\r\n\tBoolean isAccountLocked(String username);\r\n\r\n\t/**\r\n\t * Saves the user, password and ContactOptIn.\r\n\t * \r\n\t * @param user User\r\n\t * @return User\r\n\t */\r\n\tUser saveUser(User user);\r\n\r\n\t/**\r\n\t * Creates the password reset token\r\n\t * \r\n\t * @param username\r\n\t * String\r\n\t * @return String Password reset token\r\n\t * @throws UserNotFoundException\r\n\t */\r\n\tString createPasswordResetToken(String username) throws UserNotFoundException;\r\n\r\n\t/**\r\n\t * Returns the Authorities based on user.\r\n\t * \r\n\t * @param user User\r\n\t * @return Authority information\r\n\t */\r\n\tSet<Authority> getAuthorities(User user);\r\n\r\n\t/**\r\n\t * Changes the password.\r\n\t * \r\n\t * @param user\r\n\t * UserModel\r\n\t * @return Boolean\r\n\t * \r\n\t * @throws UserNotFoundException\r\n\t */\r\n\tBoolean changePassword(UserModel user) throws UserNotFoundException;\r\n\r\n}", "public interface UserController {\n DeferredResult<ResponseEntity<BaseResult<User>>> getUserById(Long userId);\n DeferredResult<ResponseEntity<BaseResult<Void>>> createOrUpdate(User user);\n DeferredResult<ResponseEntity<BaseResult<UserProfile>>> getUserProfile();\n DeferredResult<ResponseEntity<BaseResult<UserProfile>>> updateUserProfile(UserProfile userProfile);\n //DeferredResult<ResponseEntity<BaseResult<List<Device>>>> getDevicesByUserId(Long userId);\n ResponseEntity<BaseResult<OAuth2AccessToken>> login(String username, String password);\n ResponseEntity<BaseResult<OAuth2AccessToken>> refresh(String refreshToken);\n}", "public interface UserService {\n\n\t/**\n\t * Finds a user by email\n\t * \n\t * @param email\n\t * @return\n\t */\n\tUser find(String email);\n\n\t/**\n\t * Finds a user by email\n\t * \n\t * @param email\n\t * @return\n\t */\n\tList<User> addUsersToShowableList(UserListRequest userListRequest);\n\t\n\t/**\n\t * Finds a user by its id\n\t * \n\t * @param id\n\t * @return\n\t */\n\tUser find(long id);\n\n\t/**\n\t * \n\t * @param user\n\t */\n\tvoid save(User user, String token);\n\n\t/**\n\t * \n\t * @param user\n\t */\n\tvoid register(User user, String urlBase);\n\n\t/**\n\t * Load the number of user offering services\n\t * @return\n\t */\n\tInteger loadUserCount();\n\n\t/**\n\t * Validate if email already exists\n\t * @param email\n\t * \t\tThe email to validate\n\t */\n\tvoid validate(String email);\n\n\t/**\n\t * Send a activation email to user who register\n\t * @param email\n\t * @param activationLink\n\t * @param activationKey\n\t * @throws MailServicesErrorException\n\t */\n\tvoid sendActivationLinkEmail(User user, String activationLink, String activationKey)\n\t\t\tthrows MailServicesErrorException;\n\n\t/**\n\t * Activate an user that comes from email activation link\n\t * @param email\n\t * @param activationToken\n\t */\n\tvoid activateUser(String email, String activationToken);\n\n\t/**\n\t * Ends the user session by deleting its security access token\n\t * @param userTokenTokenContent\n\t * \t\tContent of user token to delete\n\t */\n\tvoid logout(String userTokenTokenContent);\n\n\t/**\n\t * filter users by specific request filter\n\t * @param request\n\t * @return\n\t */\n\tUserFilterResult find(UserFilterRequest request);\n}", "public interface UserService {\n\n User getUserByPassword(User user);\n\n User getByUserName(String user_name);\n\n void save(User user);\n\n User getUserById(int user_id);\n\n int getCount();\n\n User getByEmail(String email);\n\n void update(User user);\n}", "public interface UserService {\n\n public User getOneByAccount(String account);\n\n public boolean existsById(String account);\n\n public List<User> findAll();\n\n String getNickname(String account);\n\n Map<String, String> getNicknames(List<String> accounts);\n\n PageInfo getUserByPage();\n\n PageInfo getUserByConditionWithPage(User condition);\n\n List<String> getAccount(String nickname);\n\n public List<User> findAllById(String id);\n\n boolean changeState(String state, List<String> accounts);\n\n public long count();\n\n public boolean deleteByAccount(String account);\n\n public boolean delete(User user);\n\n public boolean deleteAll();\n\n public boolean deleteInBatch(List<User> users);\n\n public boolean save(User user);\n\n public List<UserDrop> getUserDrop();\n\n public List<User4Org> getUnassignedUsers(List<User4Org> exclude);\n\n public int login(User user);\n}", "public interface UserService {\n\n int createUser(String email, String password, UserRole userRole);\n\n User getUserById(int userId);\n\n User getUserByEmail(String email);\n\n boolean deleteUserById(int userId);\n}", "@RequestMapping(value=\"/user\",method=RequestMethod.POST)\n\tpublic @ResponseBody ResponseEntity<User> createUser(@RequestBody User userDetails) throws Exception{\n\t\tUser user=null;\n\t\n\t\t//for checking update user \n\t\tuser=userDAO.findOne(userDetails.getId());\n\t\tif (user==null){\n\t\t\t//insert new user \n\t\t\ttry{\n\t\t\t\tuser=new User(userDetails.getEmail(),userDetails.getName(),userDetails.getContact(),userDetails.getIsActive(), new Date(),new Date());\n\t\t\t\tuserDAO.save(user);\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tthrow new Exception(\"Exception in saving user details...\",e);\n\t\t\t\t}\n\t\t}else{ \n\t\t\t\tuserDetails.setCreationTime(user.getCreationTime());\n\t\t\t\tuserDetails.setLastModifiedTime(new Date());\n\t\t\t\tuserDAO.save(userDetails);\n\t\t\t}\n\t\t\n\t\t\treturn new ResponseEntity<User>(user, HttpStatus.OK);\n\t}", "public interface UserService {\n\n User get(String email);\n void update(User user);\n void create(User user);\n}", "public UserAuthToken createUser(CreateUserRequest request);", "public interface UserService {\n\n User login(User user);\n\n /**\n * 用户列表\n *\n * @param user\n * @param pageHelper\n * @return\n */\n List<User> userGrid(User user, PageHelper pageHelper);\n\n /**\n * 保存或者更新\n *\n * @param user\n */\n void saveOrUpdate(User user) throws Exception;\n\n /**\n * 通过主键list集合删除\n *\n * @param list\n */\n void delete(List<String> list);\n\n /**\n * 加载男女管理员\n *\n * @return\n */\n List<Map<String, Object>> userMaleAndFemale();\n}", "public interface UserService {\n\n /**\n * Create new user with registration\n */\n boolean registerUser(UserRegisterDTO userRegisterDTO);\n\n /**\n * Update user information\n */\n void updateUser(UserUpdateDto userUpdateDto, Long id) throws TimeTrackerException;\n\n /**\n * Get user information\n */\n Optional<User> userByIdSearch(Long id);\n\n /**\n * Get all users\n */\n Iterable<User> usersFind();\n\n /**\n * Add new user by administrator\n */\n void userAddByAdmin(AdminUserAddDTO adminUserAddDTO) throws RecordExistException;\n\n /**\n * Delete existing user by administrator\n */\n void deleteUserById(Long id);\n\n /**\n * Change existing user by administrator\n */\n void userChangeByAdmin(AdminUserDTO adminUserDTO) throws RecordExistException;\n}", "@GetMapping(\"/user/{id}\")\n\tpublic ResponseEntity<User> singleUser(@PathVariable(\"id\") int id) {\n\t\tUser user = userDao.getUserById(id);\n\t\treturn new ResponseEntity<User>(user, HttpStatus.OK);\n\t}", "@GetMapping(\"/addUser\")\n public String home() {\n User user = new User();\n user.setUserName(\"Gitika\");\n user.setPassword(passwordEncoder.encode(\"saurabh321\"));\n user.setActive(true);\n user.setRoles(\"Role_Admin\");\n userRepository.save(user);\n return \"User created successfully\";\n }", "@ApiOperation(value = \"get user details web service end point\",\n notes = \"This web service end point returns user details. Use public user id in the path\")\n //Api Implicit Params is for swagger to add authroization as an input field\n @ApiImplicitParams(\n @ApiImplicitParam(name = \"authorization\", value = \"${userController.authorizationHeader.description}\", paramType = \"header\"))\n @GetMapping(produces = {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE})\n // to mention from where we allow cross origins\n @CrossOrigin(origins = {\"http://localhost:8080\", \"http://localhost:8081\"})\n public List<UserRest> getUserList(@RequestParam(value = \"page\", defaultValue = \"1\") int page,\n @RequestParam(value = \"limit\", defaultValue = \"10\") int limit) {\n List<UserRest> returnList = new ArrayList<>();\n List<UserDto> userDtoList = userService.getUserList(page, limit);\n UserRest userRest;\n for (UserDto userDto : userDtoList) {\n userRest = new UserRest();\n BeanUtils.copyProperties(userDto, userRest);\n returnList.add(userRest);\n }\n return returnList;\n }", "@GetMapping(\"/{id}\")\n public ResponseEntity<?> getUser(@PathVariable int id) {\n return profileService.getUserById(id);\n }", "@PostMapping(\"/users/devs\")\n\tpublic ResponseEntity<ApiResponse> saveUserDev(@Valid @RequestBody User user) {\n\t\ttry {\n\t\t\t// User Attributes\n\t\t\tLong userId = user.getUserId();\n\t\t\tString username = user.getUsername().trim();\n\t\t\tString password = user.getPassword();\n\t\t\tDate birthDate = user.getBirthDate();\n\t\t\tString nationality = user.getNationality().trim();\n\t\t\tString address = user.getAddress().trim();\n\t\t\tString location = user.getLocation().trim();\n\t\t\tString name = user.getName().trim();\n\t\t\tString contact = user.getContact();\n\t\t\tString email = user.getEmail().trim();\n\t\t\tPrison prison = user.getPrison();\n\t\t\tLocalDateTime createdTimestamp = user.getCreatedTimestamp();\n\t\t\tSet<Role> roles = user.getRoles();\n\t\t\tDate lastLogin = user.getLastLogin();\n\t\t\t// End of Attributes\n\n\t\t\t// Validations\n\t\t\tif (String.valueOf(password).length() < 6 || String.valueOf(password).length() > 24) {\n\t\t\t\treturn new ResponseEntity<ApiResponse>(\n\t\t\t\t\t\tnew ApiResponse(false, \"Password must contain between 6 to 24 characters\"),\n\t\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t\t}\n\t\t\tif (userRepository.existsByUsername(username)) {\n\t\t\t\treturn new ResponseEntity<ApiResponse>(new ApiResponse(false, \"Username already taken\"),\n\t\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t\t}\n\n\t\t\tif (String.valueOf(roles).equals(\"[]\")) {\n\t\t\t\treturn new ResponseEntity<ApiResponse>(new ApiResponse(false, \"Needs to insert a role\"),\n\t\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t\t}\n\t\t\t// End of Validations\n\n\t\t\t// Encrypt Password\n\t\t\tBCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();\n\t\t\tString hashedPassword = passwordEncoder.encode(password);\n\t\t\t//\n\n\t\t\tUser newUser = new User(userId, username, hashedPassword, birthDate, nationality, address, location, name,\n\t\t\t\t\tnull, contact, email, prison, createdTimestamp, roles, lastLogin, null);\n\n\t\t\t// Create User\n\t\t\tuserRepository.save(newUser);\n\t\t\t//\n\t\t\treturn new ResponseEntity<ApiResponse>(new ApiResponse(true, \"User created\", newUser.getUserId()),\n\t\t\t\t\tHttpStatus.CREATED);\n\t\t} catch (Exception e) {\n\t\t\treturn new ResponseEntity<ApiResponse>(new ApiResponse(false, \"Invalid data format\"),\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\t}", "public interface UserService\n{\n /*对用户进行增删改查*/\n User login(String loginname, String password);\n User findUserById(Integer id);\n List<User> findUser(User user, PageModel pageModel);\n void removeUserById(Integer id);\n void modifyUser(User user);\n void addUser(User user);\n\n}", "public interface User {\n\n //用户注册\n public String register(UsersEntity usersEntity);\n\n //用户登陆\n public String login(UsersEntity usersEntity);\n\n //用户登出\n public String logout(UsersEntity usersEntity);\n\n //检查MAC Email是否被注册\n public String vaildRegist(UsersEntity usersEntity);\n}", "public interface UserManager {\n\n /**\n * Creates new User\n * @exception IllegalArgumentException\n * @param user to be created\n */\n void createUser(User user);\n\n /**\n * Updates existing User\n * @exception IllegalArgumentException\n * @param user to be updated to\n */\n void updateUser(User user);\n\n /**\n * Deletes existing User\n * @exception IllegalArgumentException\n * @param user to be deleted\n */\n void deleteUser(User user);\n\n /**\n * Finds user with specific id\n * @exception IllegalArgumentException\n * @param id with which User should be deleted\n * @return User with specific id\n */\n User getUser(Long id);\n\n /**\n * Finds user with specific email\n * @exception IllegalArgumentException\n * @param email with which user will be returned\n * @return user with specific email\n */\n User getUserByEmail(String email);\n\n /**\n * Finds list of users with specific name\n * @exception IllegalArgumentException\n * @param name with which user will be returned\n * @return List of users with specific name\n */\n List<User> getUserByName(String name);\n\n /**\n * Finds all users\n * @return list of users\n */\n List<User> getAllUsers();\n}", "public void createUser(User user);", "public interface IUserService extends UserDetailsService {\n Long signin(Account account);\n\n List<UserInformation> showUserDetails();\n\n Account changeApplicationVersion(String accountIdentifier, ApplicationVersion applicationVersion);\n\n Long removeAccount(String accountIdentifier);\n\n Long suspendAccount(String accountIdentifier);\n\n Long unsuspendAccount(String accountIdentifier);\n\n Long addIncomingInvoice(String accountIdentifier);\n\n Long removeIncomingInvoice(String accountIdentifier);\n\n Long changeAssignment(String accountIdentifier, boolean newAssignementValue);\n\n Account findAccount(String accountIdentifier);\n}", "public interface UserService {\n @GET(\"/users\")\n Call<List<User>> listUsers();\n\n @GET(\"/users/{studentId}\")\n Call<User> getUser(@Path(\"studentId\") String studentId);\n\n @PUT(\"/register\")\n Call<User> createUser(@Body User user);\n\n @POST(\"/users/{studentId}\")\n Call<ResponseBody> updateUser(@Path(\"studentId\") String studentId, @Body User user);\n\n @DELETE(\"/users/{studentId}\")\n Call<User> deleteUser(@Path(\"studentId\") String studentId);\n}", "public interface UserService {\n\n public boolean register(User user);\n\n public boolean updatePassword(Integer userId, String userPassword);\n\n public boolean getUserInfo(Integer userId);\n\n}", "public interface UserService {\n\n //创建一个用户\n public void createUser(Sysuser sysuser);\n //修改用户信息\n public void saveUser(Sysuser sysuser);\n\n //根据传入的用户信息查询用户主要用户名和密码,返回list<map>\n public List<Map<String,Object>> signIn(Sysuser sysuser);\n\n //根据传入的用户信息查询用户主要用户名和密码,返回list<Sysuser>\n public List<Sysuser> getUserInfo1(Sysuser Sysuser);\n\n //修改密码\n public int modifyPassword(Map<String, Object> params);\n\n //修改头像\n public int modifyPhoto(String userId, String photoPath, String userType);\n\n //根据用户ID查询用户\n public Sysuser getUserInfoFromId(String userId);\n\n //设置用户是否可登陆后台\n public int setUserConsole(int userId,int state);\n\n //设置用户是否可登陆前台\n public int setUserFront(int userId,int state);\n\n}", "public UsuarioRest obtenerUsuarioRest(String user);", "public ResponseEntity<User> createUser(User user) {\n List<User> users=getAllUsers();\n boolean usernameIsUsed=false;\n\n\n for(User myUser : users){\n\n\n String username= myUser.getUsername();\n\n if(username.equals(user.getUsername())){\n usernameIsUsed=true;\n return ResponseEntity.badRequest().build();\n }\n\n\n }\n if(!usernameIsUsed){\n myUserDetailsService.addUser(user);\n return ResponseEntity.ok(user);\n }\n\n return null;\n }", "User editUser(User user);", "public interface UserService {\n public UserDto signUp(UserDto userDto);\n public List<UserDto> listAll();\n public List<UserDto> findByFilter(UserFilterDto userFilterDto);\n}", "public interface UserService {\n\n public User getUserByName(String name);\n\n public User modify();\n\n public boolean add(User user);\n\n int getStatusCount(String userName, int status);\n\n boolean exist(String name);\n\n void edit(String userName, String nick, String note, String newpassword, String school, String email);\n\n int getSubmitCount(String userName);\n}", "@RequestMapping(\"/signup\")\n public void signUp(String firstName, String lastName, String address,\n String emailAddress, String userName,\n String password, int age, int telephoneNumber){\n User.UserBuilder userBuilder = new User.UserBuilder(firstName, lastName, address, age,\n userName, password,emailAddress);\n if(telephoneNumber > 0) userBuilder.telephoneNumber(telephoneNumber);\n User user = userBuilder.build();\n userService.addUser(user);\n }", "public interface UserService {\n\n User createUser(User user);\n\n void changePassword(long userId, String newPassword);\n\n void correlationRoles(long userId, long... roleIds);\n\n void uncorrelationRoles(long userId, long... roleIds);\n\n User findByUserName(String username);\n\n Set<String> findRoles(String username);\n\n Set<String> findPermissions(String username);\n}", "public interface UserService {\n\n User queryUserById(long id);\n\n User create(User user);\n\n int update(User user);\n\n int deleteById(long id);\n}", "UpdateUserResult updateUser(UpdateUserRequest updateUserRequest);", "public interface UserService {\r\n\t\r\n\tpublic UserProfileTo readUser(Long id);\r\n\r\n\tpublic UserProfileTo createUser(String login, String password, String email);\r\n}", "public interface UserService {\n List<User> findAll();\n\n LoginUser findByUserId(Long userId);\n\n User findDepartLeader(Long departId);\n\n User getById(Long id);\n\n List<UserVo> findVoAll();\n\n void bindUserPro(Long userId, String proCode);\n\n List<UserProVo> findUserProList();\n\n void delUserPro(Long id);\n}", "public interface UserService {\n\n\tpublic void save(UserEntity userEntity);\n\n\tpublic void saveBatch(HashMap<String, Object> map);\n\n\tpublic void delete(UserEntity userEntity);\n\n\tpublic void update(UserEntity userEntity);\n\n\tpublic void updatePic(UserEntity userEntity);\n\t\n\tpublic void updateRole(UserEntity userEntity);\n\n\tpublic List<UserEntity> findList(UserEntity userEntity);\n\n\t/* find user information to display */\n\tpublic List<UserParam> findUesrDetailInfo(UserEntity userEntity);\n\n\t/* find user information by name */\n\tpublic List<UserParam> findListForManagement(UserEntity userEntity);\n}", "public interface UserService {\n Result register(RegisterUser registerUser);\n Result login(LogInUser logInUser);\n Result logout(LogOutUser logOutUser);\n Result updatejpushIDByToken(UpdateJpush updateJpush);\n}", "User createUser(UserCreationModel user);", "public interface UserService {\n\n List<User> findAll();\n\n User findByPhoneNumber(String phoneNumber);\n\n int deleteUserByPhoneNumber(String phoneNumber);\n\n int addUser(User user);\n\n int updateUser(User user);\n\n List<Idots> registeredUsers();\n}", "@Override\n\tpublic ApplicationResponse updateUser(String id, UserRequest request) {\n\t\tUserEntity user = null;\n\t\tOptional<UserEntity> userEntity = repository.findById(id);\n\t\tif (userEntity.isPresent()) {\n\t\t\tuser = userEntity.get();\n\t\t\tif (!StringUtils.isEmpty(request.getFirstName())) {\n\t\t\t\tuser.setFirstName(request.getFirstName());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getSurName())) {\n\t\t\t\tuser.setSurName(request.getSurName());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getDob())) {\n\t\t\t\tuser.setDob(request.getDob());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getTitle())) {\n\t\t\t\tuser.setTitle(request.getTitle());\n\t\t\t}\n\t\t\tuser = repository.save(user);\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(user));\n\t\t} else {\n\t\t\tthrow new UserNotFoundException(\"User not found\");\n\t\t}\n\t}", "public interface UserService extends UserDetailsService{\n\n\t/**\n\t * save method is used save record in user table\n\t * \n\t * @param userEntity.\n\t * @return UserEntity\n\t */\n public UserEntity save(UserEntity userEntity); \n\t\n /**\n * getByName method is used to retrieve userId from userName. \n * \n * @param userName\n * @return UUID\n */\n public UserQueryEntity getByName(String userName);\n \n}", "public interface Users {\n\n public static final String BASE_PATH = \"/users\";\n\n /**\n * Creates a list of users.When creating new users, the password property of each user should be their\n * plain text password. The returned user information will not contain any password information.\n *\n * @param usersToCreate A list of users to create.\n * @return Information about created users.\n */\n public UserList createUsers(Set<User> usersToCreate);\n\n /**\n * Returns a list of the user names configured in the system.\n *\n * @return A list of users.\n */\n public UserList list();\n\n /**\n * Deletes a user from the system.\n *\n * @param user User to delete.\n * @return The deleted user's information.\n */\n public User delete(String user);\n\n /**\n * Deletes a user from the system.\n *\n * @param user User to delete.\n * @return The deleted user's information.\n */\n public User delete(User user);\n\n /**\n * Returns detailed information about a user.\n *\n * @param user The user's name.\n * @return\n */\n public User details(String user);\n\n /**\n * Updates the given user's information. Note that the user's name cannot be changed.\n *\n * @param updatedInfo The user information.\n * @return updated user info;\n */\n public User update(User updatedInfo);\n\n}", "@PreAuthorize(\"@userAuthorize.canUpdate(#user)\")\n\t@RequestMapping(value = \"/updateWithLock/{id}\", method = RequestMethod.PUT)\n\tpublic ResponseEntity<?> updateWithLock(@PathVariable(\"id\") Integer id, @RequestBody User user, @RequestParam Map<String, Object> params) throws JsonParseException, JsonMappingException, IOException, KeyManagementException, UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, CertificateException {\n\t\t// Call serverauth to create user.\n\t String serverauthUrl = evn.getProperty(\"serverauth.url\");\n\t String token = params.get(\"token\").toString();\n\t Map<String, Object> data = new HashMap<String, Object>();\n\t data.put(\"id\", user.getId());\n\t data.put(\"username\", user.getUsername());\n\t //data.put(\"password\", user.getPassword());\n\t data.put(\"displayname\", user.getDisplayname());\n\t data.put(\"thumbnail\", user.getThumbnail());\n\t data.put(\"enabled\", true);\n\t ResponseEntity<Object> response = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/updateWithEvent/\" + user.getUsername(), HttpMethod.PUT, token, null, data, null);\n\t Map<String, Object> resultRemote = (Map<String, Object>) response.getBody();\n\t if(resultRemote.get(\"error\") != null) {\n\t \t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t \n\t try {\n\t \t//user.setPassword(CommonUtil.encrypt(user.getPassword()));\n\t \tUser result = userService.updateWithLock(id, user);\n\t\t\t// Call serverauth to confirm create user as SUCCESS.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_SUCCESS, HttpMethod.GET, token, null, null, null);\n\t\t\t// return.\n\t\t\treturn new ResponseEntity<Integer>(result.getVersion(), HttpStatus.OK);\n\t } catch(Exception ex) {\n\t\t\t// Call serverauth to confirm create user as ABORT.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_ABORT, HttpMethod.GET, token, null, null, null);\n\t\t\t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t}", "@Override\n public ResponseEntity<UserWithoutPassword> getUser(@ApiParam(value = \"email of a user\",required=true) @PathVariable(\"email\") String email) {\n String bearerJWT = request.getHeader(\"Authorization\");\n if(bearerJWT == null) {\n return new ResponseEntity<>(HttpStatus.BAD_REQUEST);\n }\n\n //verify that request has authorization to see the user details\n if(!JWTUtils.verifyToken(bearerJWT, email)){\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n\n //return user details if he exists\n Optional<UserEntity> uE = userRepository.findById(email);\n if(uE.isPresent()) {\n return new ResponseEntity<>(UserEntityToUserWithoutPassword(uE.get()) ,HttpStatus.OK);\n } else {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n\n }", "public interface UserService {\n /**\n * 后台用户登陆\n * @param loginName\n * @param password\n * @return\n * @throws UserNotFoundException\n * @throws UserRoleException\n * @throws UserStatusException\n */\n public User backLogin(String loginName, String password) throws UserNotFoundException, UserRoleException, UserStatusException;\n\n public User frontLogin(String loginName, String password) throws UserNotFoundException, UserRoleException, UserStatusException;\n\n public PageInfo<User> findAllUserByAjax(int pageNo, User user) throws UserNotFoundException;\n\n public User findByUserId(Integer userId) throws UserNotFoundException;\n\n\n public void findByUsername(String username) throws UserExistException;\n\n public void addUser(User user) throws UserExistException;\n\n public void modifyUser(User user) throws UserExistException;\n\n public void modifyUserStatus(User user);\n\n\n\n}", "public interface UserService extends DomainCRUDService<User, Integer> {\n\n /**\n * @param user user that going to register\n * @return true if for all user that is <b>not delete</b> and <b>have verified email</b>, no user has the same email as the parameter's user, else false\n */\n Boolean canRegister(User user);\n\n User getUserByEmail(String email);\n\n User register(User user);\n\n void verifyEmail(String token) throws ForbiddenException;\n}", "public interface UserService {\n\n SysUser getUser(String username);\n\n BootstrapTable list(SearchVo search);\n\n ResultVo saveOrUpdate(SysUser user, BigDecimal roleId);\n\n SysUser getUserById(BigDecimal id);\n\n ResultVo delete(BigDecimal id);\n}", "public interface UserService {\r\n\r\n //注册方法\r\n Integer register(UserForm userForm) throws IOException;\r\n\r\n //登录\r\n UserDTO login(String userName, String userPassword);\r\n\r\n //检查用户名是否有效(str可以是用户名也可以是手机号。对应的type是username和userPhone)\r\n Integer checkValid(String str, String type);\r\n\r\n //获取用户登录信息\r\n UserDTO getUserInfo(String userPhone);\r\n\r\n //忘记密码获取问题\r\n String getQuestion(String userPhone);\r\n\r\n //提交问题答案(返回一个token)\r\n String checkAnswer(String userPhone, String userQuestion, String userAnswer);\r\n\r\n //忘记密码的重设密码\r\n Integer forgetResetPassword(String userPhone, String newPassword, String forgetToken);\r\n\r\n //登录状态中重设密码\r\n Integer resetPassword(String oldPassword, String newPassword, UserDTO userDTO);\r\n\r\n //登录状态更新个人信息\r\n Integer updateInformation(UserDTO userDTO,String userName, String userMail,String userPhone,String userQuestion,String userAnswer);\r\n\r\n //获取当前登录用户的详细信息,并强制登录\r\n UserForm getInformation(UserDTO userDTO);\r\n\r\n //退出登录\r\n Integer logout();\r\n\r\n //管理员查询用户列表\r\n List<UserInfo> list();\r\n\r\n //添加收货地址\r\n Shipping createShipping(ShippingForm shippingForm, String userId);\r\n\r\n //更新收货地址\r\n Shipping updateShipping(ShippingForm shippingForm, String shippingId, String userId);\r\n\r\n //查看收货地址\r\n Shipping shippingDetail(String shippingId);\r\n\r\n //查看收货地址列表\r\n List<Shipping> shippingList(String userId);\r\n\r\n //删除收货地址\r\n void deleteShipping(String shippingId);\r\n\r\n}", "public User updateUser(User user);", "@RequestMapping(\"/getUser\")\n public Users getUser(String userId){\n return null;\n }", "@PostMapping(path = \"/signin\", produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity signInUser(@RequestBody User user) {\n try {\n System.out.println(user.getEmail() + \" : \" + user.getPassword());\n if (rocketLunchService.signIn(user)) {\n return ResponseEntity.ok().body(user);\n } else {\n throw new Exception(\"Found more than 1 user.\");\n }\n } catch (Exception e) {\n return ResponseEntity.badRequest().body(e);\n }\n }", "@PostMapping\n public @ResponseBody\n ResponseEntity<Object> register(@RequestParam(\"firstName\") final String firstName,\n @RequestParam(\"lastName\") final String lastName,\n @RequestParam(\"username\") final String username,\n @RequestParam(\"password\") final String password,\n @RequestParam(\"email\") final String email) {\n\n Person person = personService.getPersonByCredentials(username);\n\n final String securePassword = HashPasswordUtil.hashPassword(password);\n\n if (person == null) {\n\n person = new Person(username, securePassword, firstName, lastName, email, PersonType.USER);\n\n try {\n personService.add(person);\n } catch (IllegalArgumentException e) {\n logger.error(e.getMessage());\n }\n person = personService.getPersonByCredentials(username);\n\n ServletRequestAttributes attr = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes();\n HttpSession session = attr.getRequest().getSession(true); // true == allow create\n session.setAttribute(\"user\", username);\n session.setAttribute(\"userId\", person.getIdPerson());\n\n return ResponseEntity.status(HttpStatus.OK).body(null);\n } else {\n return ResponseEntity.status(HttpStatus.FORBIDDEN).body(null);\n }\n\n }", "public interface UserService {\n void insert(User user);\n void delete(User user);\n void update(User user);\n List<User> getAll();\n void deleteAll();\n User findByEmailAndActive(String email, Boolean active);\n}", "public interface UserService {\n\n List<User> getUsers(Integer pageNum,Integer pageSize);\n\n Long getUserTotal();\n\n List<Role> getRoleByUser(Long uId);\n\n User addUser(User user,List<Long> rIds);\n\n void removeUser(Long uId);\n\n User editUser(User user);\n\n List<Role> associatedRole(Long uId);\n\n void associatedRoleUpdate(Long uId, List<URRelate> urRelates);\n\n}", "User createUser(User user);", "public interface UserManager {\n\n /**\n * Add a user to the database\n *\n * @param user User object representing the user to be added.\n */\n public void addUser(User user);\n\n /**\n * Delete a user from the database.\n *\n * @param name Name of the user to be deleted.\n */\n public void deleteUser(String name);\n\n /**\n * Update the user in the database.\n *\n * @param oldUser User to update.\n * @param newUser User to be updated to.\n */\n public void updateUser(User oldUser, User newUser) ;\n\n /**\n * Get the user object from the database\n * @param name Name of the user to get.\n * @return User returned.\n */\n public User getUser(String name);\n\n /**\n * Get all the users in the database.\n * \n * @return List of users in the database.\n */\n public List getAllUsers();\n}", "public interface UserService {\n long addUser(User user);\n User getUserById(int id);\n long updateUserById(User user);\n}", "@RequestMapping(value=\"/user/{id}\",method=RequestMethod.DELETE)\n\t\t\tpublic @ResponseBody ResponseEntity<User> deleteUser(@PathVariable Long id)throws Exception{\n\t\t\t\tUser user=null;\n\t\t\t\tList<Purchases> purchase=null;\n\t\t\t\tuser=userDAO.findOne(id);\n\t\t\t\tif(user!=null)\n\t\t\t\t{\ttry{\t\n\t\t\t\t\t\t\tuser.setLastModifiedTime(new Date());\n\t\t\t\t\t\t\tpurchase=purchaseDAO.findByUserId(user.getId());\n\t\t\t\t\t\t\tif(user.getIsActive())\t\n\t\t\t\t\t\t\t\t{\tfor(Purchases purch : purchase){\t\t\t //getting all the payments of that user and making it offline \n\t\t\t\t\t\t\t\t\t\tpurch.setLastModifiedTime(new Date());\n\t\t\t\t\t\t\t\t\t\tpurch.setIsActive(false);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tuser.setIsActive(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\tfor(Purchases purch : purchase){\n\t\t\t\t\t\t\t\t\t\tpurch.setLastModifiedTime(new Date());\n\t\t\t\t\t\t\t\t\t\tpurch.setIsActive(true);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tuser.setIsActive(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tuserDAO.save(user);\n\t\t\t\t\t\t\tpurchaseDAO.save(purchase);\t\t\t\t\t\t\t\t//user status and his payment details also modified\n\t\t\t\t\t\t\treturn new ResponseEntity<User>(user, HttpStatus.OK);\n\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\tthrow new Exception(\"Could not change status of the user. \",e);\n\t\t\t\t\t\t}\n\t\t\t\t}else\n\t\t\t\t\treturn new ResponseEntity<User>(HttpStatus.NOT_FOUND); \n\t\t\t}", "public interface IUserDAO extends UserDetailsService {\n IUser findUser(String id);\n IUser findUserByEmail(String email);\n IUser createUser(IUser user);\n IUser updateUser(IUser user);\n}", "@GetMapping(\"/users/{userId}\")\n\tpublic Resource<User> getOneUserv2(@PathVariable int userId) {\n\t\tUser getUser = userService.getUser(userId);\n\t\tif(getUser == null) {\n\t\t\tthrow new UserNotFoundException(\"ID: \"+userId);\n\t\t}\n\t\t\n\t\t//give the link for getting all users with meta data \"all-users\"\n\t\t//SERVER-PATH + \"/users\"\n\t\t\n\t\tResource<User> resource = new Resource<User>(getUser);\n\t\t\n\t\tControllerLinkBuilder linkTo = new ControllerLinkBuilderFactory().linkTo(methodOn(this.getClass()).getAllUsers());\n\t\tControllerLinkBuilder linkTo1 = new ControllerLinkBuilderFactory().linkTo(methodOn(this.getClass()).getOneUser(userId));\n\n\t\tresource.add(linkTo.withRel(\"all-users\"));\n\t\tresource.add(linkTo1.withRel(\"another-way-of-requesting\"));\n\t\treturn resource;\n\t}", "public void createUser(User user) {\n\n\t}", "private User authenticate(JSONObject data) {\r\n UserJpaController uJpa = new UserJpaController(Persistence.createEntityManagerFactory(\"MovBasePU\"));\r\n\r\n long fbId = Long.parseLong((String) data.remove(\"id\"));\r\n User user = uJpa.findByFbId(fbId);\r\n if (user != null) {\r\n return user;\r\n } else {\r\n user = new User(fbId, (String) data.remove(\"name\"), (String) data.remove(\"email\"), new Date(), \"u\");\r\n try {\r\n uJpa.create(user);\r\n } catch (Exception ex) {\r\n Logger.getLogger(LoginController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return user;\r\n }\r\n\r\n }", "ResponseEntity<Response> userById(String userId);", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public interface UserActionRepository extends CrudRepository<UserEntity, Long> {\r\n List<UserEntity> findByEmailAndPassword(String username, String password);\r\n}", "@RequestMapping(value=\"/{userId}/userProfile\", method=RequestMethod.POST, consumes=MediaType.APPLICATION_FORM_URLENCODED_VALUE )\n\tpublic @ResponseBody Object postUserProfile(@PathVariable(\"userId\") long userId, @RequestParam String userFirstName, @RequestParam String userLastName, @RequestParam(defaultValue=\"\") StringBuffer userPicURL,\n\t\t\t@RequestParam String userEmployer, @RequestParam String userDesignation, @RequestParam String userCity, @RequestParam String userState,\n\t\t\t@RequestParam(required=false) String programId, UriComponentsBuilder ucBuilder, HttpServletResponse response, HttpServletRequest request, @RequestHeader(name=\"Authorization\") String token) {\n\t\t\ttry {\n\t\t\t\tif(Jwts.parser().setSigningKey(key).parseClaimsJws(token).getBody().getIssuer().equals(\"UxP-Gll\") || Jwts.parser().setSigningKey(key).parseClaimsJws(token).getBody().getIssuer().equals(\"UxP-Admin\")) {\n\t\t\t\t\treturn userService.updateUserProfile(userId, userFirstName, userLastName, userPicURL, userEmployer, userDesignation, userCity, userState, programId, response, request);\n\t\t\t\t} else {\n\t\t\t\t\treturn Collections.singletonMap(\"error\", \"Not Authorized\");\n\t\t\t\t}\n\t\t\t} catch(SignatureException e) {\n\t\t\t\treturn Collections.singletonMap(\"error\", \"Not Authorized\");\n\t\t\t} catch(MalformedJwtException m) {\n\t\t\t\treturn Collections.singletonMap(\"error\", \"Bad token\");\n\t\t\t}\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t}", "@ApiOperation(value = \"Listing of all GDPR users\")\n @RequestMapping(value = \"/list\", method = RequestMethod.POST , produces = \"application/json\")\n public ResponseEntity<?> list(){\n return userService.list();\n }", "@RequestMapping(value=\"/update\", method = RequestMethod.PUT)\r\n\t @ResponseBody\r\n//\t public String updateUser(Long id, String userName, String phone, String email, String password, Date dateOfBirth, String userNotes) {\r\n\t public UserDto update(UserDto userDto) \r\n\t {\r\n\t\t return service.update(userDto);\r\n\t }" ]
[ "0.6670171", "0.6527683", "0.64045113", "0.6376268", "0.63755155", "0.63653696", "0.63030946", "0.62991", "0.629659", "0.6278854", "0.6278844", "0.6268557", "0.62670076", "0.6263203", "0.6263189", "0.6257918", "0.62536234", "0.624866", "0.62456715", "0.62439245", "0.6236853", "0.62346923", "0.62015647", "0.6201243", "0.61956996", "0.61885625", "0.6183847", "0.6174399", "0.6171509", "0.6168088", "0.61513823", "0.615074", "0.614535", "0.6140743", "0.6137376", "0.61370826", "0.613023", "0.6104536", "0.6103778", "0.60940516", "0.60743374", "0.605806", "0.6054749", "0.6040723", "0.6040333", "0.60398775", "0.60308725", "0.60205436", "0.60196435", "0.601448", "0.60143006", "0.60070246", "0.60017717", "0.59943444", "0.59867936", "0.59867936", "0.5986672", "0.59814084", "0.59812033", "0.5979636", "0.59757334", "0.5970266", "0.59685284", "0.5967951", "0.5965329", "0.5961268", "0.5960822", "0.5959871", "0.5955609", "0.5954463", "0.59526324", "0.5951607", "0.59511334", "0.59502316", "0.5948996", "0.5944118", "0.59434724", "0.5937979", "0.5932247", "0.5930112", "0.5929553", "0.5928077", "0.5925329", "0.592364", "0.59224284", "0.5919335", "0.5918121", "0.5916325", "0.59109765", "0.590628", "0.59028435", "0.5901957", "0.58980983", "0.58959144", "0.58897907", "0.58896893", "0.58869994", "0.58836645", "0.5883257", "0.5878267", "0.587505" ]
0.0
-1
List> classes = ClassFinder.find("com.package");
public static void main(String[] args) { SpringApplication.run(Application.class, args); // AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<Class<?>> getClassSet(String packageName);", "private static Class[] getClasses(String packageName)\n throws ClassNotFoundException, IOException {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n assert classLoader != null;\n String path = packageName.replace('.', '/');\n Enumeration<URL> resources = classLoader.getResources(path);\n List<File> dirs = new ArrayList<File>();\n while (resources.hasMoreElements()) {\n URL resource = resources.nextElement();\n dirs.add(new File(resource.getFile()));\n }\n ArrayList<Class> classes = new ArrayList<Class>();\n for (File directory : dirs) {\n classes.addAll(findClasses(directory, packageName));\n }\n return classes.toArray(new Class[classes.size()]);\n }", "private List<Class> getClasses(String packageName)\n throws ClassNotFoundException, IOException {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n assert classLoader != null;\n String path = packageName.replace('.', '/');\n Enumeration<URL> resources = classLoader.getResources(path);\n List<File> dirs = new ArrayList<File>();\n while (resources.hasMoreElements()) {\n URL resource = resources.nextElement();\n dirs.add(new File(resource.getFile()));\n }\n ArrayList<Class> classes = new ArrayList<Class>();\n for (File directory : dirs) {\n classes.addAll(findClasses(directory, packageName));\n }\n return classes;\n }", "@NotNull\n List<? extends ClassInfo> getClasses();", "@NotNull\n List<? extends ClassInfo> getAllClasses();", "public abstract List<String> scanAllClassNames();", "private static Class[] getClasses(String packageName)\n\t\t\tthrows ClassNotFoundException, IOException {\n\t\tClassLoader classLoader = Thread.currentThread()\n\t\t\t\t.getContextClassLoader();\n\t\tassert classLoader != null;\n\t\tString path = packageName.replace('.', '/');\n\t\tEnumeration<URL> resources = classLoader.getResources(path);\n\t\tList<File> dirs = new ArrayList<File>();\n\t\twhile (resources.hasMoreElements()) {\n\t\t\tURL resource = resources.nextElement();\n\t\t\tdirs.add(new File(resource.getFile()));\n\t\t}\n\t\tArrayList<Class> classes = new ArrayList<Class>();\n\t\tfor (File directory : dirs) {\n\t\t\tclasses.addAll(findClasses(directory, packageName));\n\t\t}\n\t\treturn classes.toArray(new Class[classes.size()]);\n\t}", "private List<Class<?>> getClasses(String packageName) throws Exception {\n File directory = null;\n try {\n ClassLoader cld = getClassLoader();\n URL resource = getResource(packageName, cld);\n directory = new File(resource.getFile());\n } catch (NullPointerException ex) {\n throw new ClassNotFoundException(packageName + \" (\" + directory\n + \") does not appear to be a valid package\");\n }\n return collectClasses(packageName, directory);\n }", "public static List<Class<?>> getClasses(String packageName) throws ClassNotFoundException, IOException {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n assert classLoader != null;\n String path = packageName.replace('.', '/');\n Enumeration<URL> resources = classLoader.getResources(path);\n List<File> dirs = new ArrayList<File>();\n while (resources.hasMoreElements()) {\n URL resource = resources.nextElement();\n dirs.add(new File(resource.getFile()));\n }\n ArrayList<Class<?>> classes = new ArrayList<Class<?>>();\n for (File directory : dirs) {\n classes.addAll(findClasses(directory, packageName));\n }\n return classes;\n }", "public static List<Class<?>> getClasses(String packageName) throws ClassNotFoundException, IOException {\n\t\tClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n\n\t\tassert classLoader != null;\n\t\tString path = packageName.replace('.', '/');\n\t\tEnumeration<URL> resources = classLoader.getResources(path);\n\n\t\tList<File> dirs = new ArrayList<File>();\n\t\twhile (resources.hasMoreElements()) {\n\t\t\tURL resource = resources.nextElement();\n\t\t\tdirs.add(new File(resource.getFile()));\n\t\t}\n\t\tArrayList<Class<?>> classes = new ArrayList<Class<?>>();\n\t\tfor (File directory : dirs) {\n\t\t\tclasses.addAll(findClasses(directory, packageName));\n\t\t}\n\t\treturn classes;\n\t}", "@Override\n public List<Class> getAllUssdClasses(String packageName) {\n\n List<Class> commands = new ArrayList<Class>();\n List<String> classNames = new ArrayList<String>();\n\n JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();\n StandardJavaFileManager fileManager = compiler.getStandardFileManager(\n null, null, null);\n\n StandardLocation location = StandardLocation.CLASS_PATH;\n\n Set<JavaFileObject.Kind> kinds = new HashSet<>();\n kinds.add(JavaFileObject.Kind.CLASS);\n boolean recurse = false;\n Iterable<JavaFileObject> list = new ArrayList<>();\n try {\n list = fileManager.list(location, packageName,\n kinds, recurse);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n for (JavaFileObject javaFileObject : list) {\n String path = javaFileObject.toUri().getPath();\n String className = path.substring(path.lastIndexOf(\"/\") + 1, path.indexOf(\".\"));\n classNames.add(className);\n }\n\n for (String className : classNames) {\n Class klass = null;\n try {\n klass = Class.forName(packageName + \".\" + className);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n if (klass != null && klass.isAnnotationPresent(UssdService.class)) {\n commands.add(klass);\n }\n }\n return commands;\n }", "@SneakyThrows\n private Stream<Class<?>> findClasses(File directory, String packageName) {\n\n val lookForClasses =\n Function2.of(ReflectionUtils::lookForClasses)\n .apply(packageName);\n\n return Optional.of(directory)\n .filter(File::exists)\n .map(File::listFiles)\n .stream()\n .flatMap(Arrays::stream)\n .flatMap(lookForClasses);\n }", "private static List<Class> findClasses(File directory, String packageName) throws ClassNotFoundException {\n List<Class> classes = new ArrayList<Class>();\n if (!directory.exists()) {\n return classes;\n }\n File[] files = directory.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n assert !file.getName().contains(\".\");\n classes.addAll(findClasses(file, packageName + \".\" + file.getName()));\n } else if (file.getName().endsWith(\".class\")) {\n classes.add(Class.forName(packageName + '.' + file.getName().substring(0, file.getName().length() - 6)));\n }\n }\n return classes;\n }", "@SuppressWarnings(\"rawtypes\")\n public static Iterable<Class> getClasses(String packageName) throws ClassNotFoundException, IOException\n {\n return getClasses(packageName, null);\n }", "public String[] getClassesToCompile();", "public List<Class<?>> getKnownClasses();", "public static Collection<Class> getClassesForPackage(String packageName)\n throws Exception {\n String packagePath = packageName.replace(\".\", \"/\");\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n Set<URL> jarUrls = new HashSet<URL>();\n\n while (classLoader != null) {\n if (classLoader instanceof URLClassLoader) {\n for (URL url : ((URLClassLoader) classLoader).getURLs()) {\n if (url.getFile().endsWith(\".jar\")) // may want better way to detect jar files\n {\n jarUrls.add(url);\n } // if\n } // for\n } // if\n\n classLoader = classLoader.getParent();\n } // while\n\n Set<Class> classes = new HashSet<Class>();\n\n for (URL url : jarUrls) {\n JarInputStream stream = new JarInputStream(url.openStream()); // may want better way to open url connections\n JarEntry entry = stream.getNextJarEntry();\n\n while (entry != null) {\n String name = entry.getName();\n\n if (name.endsWith(\".class\") && name.substring(0,\n packagePath.length()).equals(packagePath)) {\n classes.add(Class.forName(name.substring(0,\n name.length() - 6).replace(\"/\", \".\")));\n } // if\n\n entry = stream.getNextJarEntry();\n } // while\n\n stream.close();\n } // for\n\n return classes;\n }", "private static List<Class<?>> findClasses(File directory, String packageName) throws ClassNotFoundException {\n List<Class<?>> classes = new ArrayList<Class<?>>();\n if (!directory.exists()) {\n return classes;\n }\n File[] files = directory.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n assert !file.getName().contains(\".\");\n classes.addAll(findClasses(file, packageName + \".\" + file.getName()));\n } else if (file.getName().endsWith(\".class\")) {\n classes.add(Class.forName(packageName + '.' + file.getName().substring(0, file.getName().length() - 6)));\n }\n }\n return classes;\n }", "public Stream<Class<?>> getClasses(@NotNull String packageName) {\n return CheckedFunction2.of(ClassLoader::getResources).unchecked()\n .reversed()\n .apply(packageName.replace('.', '/'))\n .andThen(Enumeration::asIterator)\n .andThen(urlIterator -> spliteratorUnknownSize(urlIterator, ORDERED))\n .andThen(urlSpliterator -> stream(urlSpliterator, false))\n .compose(Thread::getContextClassLoader)\n .apply(Thread.currentThread())\n .map(URL::getFile)\n .map(File::new)\n .flatMap(directory -> findClasses(directory, packageName));\n }", "public static List<Class> getSubClasses(final String packageName) {\r\n\t\tfinal List<Class> listClasses = new ArrayList<>();\r\n\t\tSystem.err.println(\"getSubClasses \" + packageName);\r\n\t\t\r\n\t\t// System.err.println(\"java.class.path : \" +\r\n\t\t// System.getProperty(\"java.class.path\"));\r\n\t\tfinal String javaClassPaths[] = System.getProperty(\"java.class.path\").split(\";\");\r\n\t\tfor (final String s : javaClassPaths) {\r\n\t\t\tif (s.endsWith(\".jar\")) {\r\n\t\t\t\t// processJarFile(s, clazz1);\r\n\t\t\t} else {\r\n\t\t\t\tfinal File dirClasses = new File(s);\r\n\t\t\t\tfinal File dirPackage = new File(dirClasses, packageToPath(packageName));\r\n\t\t\t\tif (dirPackage.exists()) {\r\n\t\t\t\t\tfinal String[] names = dirPackage.list();\r\n\t\t\t\t\tfor (final String name : names) {\r\n\r\n\t\t\t\t\t\tif ((name.indexOf(\"$\") < 0) && (name.indexOf(\".class\") > 0)) {\r\n\t\t\t\t\t\t\tfinal String sName = name.substring(0, name.indexOf(\".\"));\r\n\t\t\t\t\t\t\tfinal String className = packageName + \".\" + sName;\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tfinal Class clazz = UtilReflection.class.getClassLoader().loadClass(className);\r\n\t\t\t\t\t\t\t\tlistClasses.add(clazz);\r\n\t\t\t\t\t\t\t} catch (final ClassNotFoundException e) {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"ClassNotFound :\" + e.getMessage());\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\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn listClasses;\r\n\t}", "private List<String> getClassesInPackage(String packageUniqueName) {\n List<String> result = new ArrayList<String>();\n if (theModel.packages.containsKey(packageUniqueName)){\n \tTreeSet<String> children = theModel.packages.get(packageUniqueName).children;\n \tif ((children != null)){\n \t\tfor (String uniqueName : children){\n \t\t\tFamixClass foundClass = theModel.classes.get(uniqueName);\n \t\t\tif (foundClass != null){\n \t\t\t\tresult.add(uniqueName);\n \t\t\t\tif (foundClass.hasInnerClasses){\n \t\t\t\t\tresult.addAll(foundClass.children);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n }\n return result;\n }", "@Test\n public void testGetClasses() throws Exception {\n for (Class clazz : TestClass.class.getClasses()) {\n System.out.println(clazz.getName());\n }\n }", "Set<Class<?>> getClassSetByAnnotation(String packageName, Class<? extends Annotation> annotationClass);", "private static List<Class<?>> findClasses(File directory, String packageName) throws ClassNotFoundException {\n\t\tList<Class<?>> classes = new ArrayList<Class<?>>();\n\t\tif (!directory.exists()) {\n\t\t\treturn classes;\n\t\t}\n\t\tFile[] files = directory.listFiles();\n\t\tfor (File file : files) {\n\t\t\tif (file.isDirectory()) {\n\t\t\t\tassert !file.getName().contains(\".\");\n\t\t\t\tclasses.addAll(findClasses(file, packageName + \".\" + file.getName()));\n\t\t\t} else if (file.getName().endsWith(\".class\")) {\n\t\t\t\tclasses.add(Class.forName(packageName + '.' + file.getName().substring(0, file.getName().length() - 6)));\n\t\t\t}\n\t\t}\n\t\treturn classes;\n\t}", "public FindResult findClass(String className);", "private static List<Class> findClasses(File directory, String packageName)\n\t\t\tthrows ClassNotFoundException {\n\t\tList<Class> classes = new ArrayList<Class>();\n\t\tif (directory.exists()) {\n\t\t\tFile[] files = directory.listFiles();\n\t\t\tfor (File file : files) {\n\t\t\t\tif (file.isDirectory()) {\n\t\t\t\t\tassert !file.getName().contains(\".\");\n\t\t\t\t\tclasses.addAll(findClasses(file,\n\t\t\t\t\t\t\tpackageName + \".\" + file.getName()));\n\t\t\t\t} else if (file.getName().endsWith(\".class\") && !file.getName().endsWith(\"Test.class\")) {\n\t\t\t\t\tclasses.add(Class.forName(packageName\n\t\t\t\t\t\t\t+ '.'\n\t\t\t\t\t\t\t+ file.getName().substring(0,\n\t\t\t\t\t\t\t\t\tfile.getName().length() - 6)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn classes;\n\t}", "List<Class<?>> getManagedClasses();", "public String[] readClasses();", "private List<Class> findClasses(File directory, String packageName) throws ClassNotFoundException {\n List<Class> classes = new ArrayList<Class>();\n if (!directory.exists()) {\n return classes;\n }\n File[] files = directory.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n assert !file.getName().contains(\".\");\n classes.addAll(findClasses(file, packageName + \".\" + file.getName()));\n } else if (file.getName().endsWith(\".class\")) {\n classes.add(Class.forName(packageName + '.' + file.getName().substring(0, file.getName().length() - 6)));\n }\n }\n return classes;\n }", "@SuppressWarnings(\"rawtypes\")\n public static Iterable<Class> getClasses(String packageName, Class<?> superClass) throws ClassNotFoundException, IOException\n {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n String path = packageName.replace('.', '/');\n Enumeration<URL> resources = classLoader.getResources(path);\n List<File> dirs = new ArrayList<File>();\n while (resources.hasMoreElements())\n {\n URL resource = resources.nextElement();\n dirs.add(new File(resource.getFile()));\n }\n List<Class> classes = new ArrayList<Class>();\n for (File directory : dirs)\n {\n List<Class> foundClasses = findClasses(directory, packageName);\n for (Class foundClass : foundClasses)\n {\n if (superClass.isAssignableFrom(foundClass))\n {\n classes.add(foundClass);\n }\n }\n }\n\n return classes;\n }", "@Override\n\tpublic List<Classes> findAllClasses() {\n\t\tString sql = \"select * from classes\";\n\t\tJdbcQuery querys = JdbcUtils.createNativeQuery(sql, Classes.class);\n\t\tList<Classes> classesList = (List<Classes>) querys.getResultList();\n\t\treturn classesList;\n\t}", "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 }", "public String findPackageForTest(String testClassName);", "public Set<Class<?>> getScanClasses();", "private Class<DimensionInterface>[] getAllClasses (String pckgname) {\n\t\t\n\t\ttry {\n\t\t \n\t\t\t// Classes will store our results\n\t\t\tArrayList classes = new ArrayList ();\n\t\t\t\n\n\t\t\t// Get a File object for the package \n\t\t File directory; \n\t\t \n\t\t \n\t\t // Load the package \n\t\t try { \n\t\t \tdirectory = new File (\n\t\t \t\tThread.currentThread ()\n\t\t \t\t\t.getContextClassLoader()\n\t\t \t\t\t.getResource (pckgname.replace('.', '/'))\n\t\t \t\t\t.getFile()\n\t\t \t); \n\t\t \n\t\t } catch (NullPointerException x) { \n\t\t \tSystem.out.println (\"Nullpointer\");\n\t\t \tthrow new ClassNotFoundException (pckgname + \" does not appear to be a valid package\"); \n\t\t }\n\t\t \n\t\t \n\t\t // IF we have found our package, then\n\t\t // obtain the files withtin\n\t\t if ( ! directory.exists ()) {\n\t\t \tSystem.out.println (\"Directory does not exist\");\n\t\t \tthrow new ClassNotFoundException(pckgname + \" does not appear to be a valid package\"); \n\t\t } \t\t \t\n\t\t \t\n\t\t \n\t \t// Get the list of the files contained in the package \n\t \tString[] files = directory.list ();\n\t\t \t\n\t\t \t\n\t \t// Get the files\n\t \tfor (int i=0; i<files.length; i++) { \n\n\t \t\t// we are only interested in .class files \n\t \t\tif ( ! files[i].endsWith(\".class\")) {\n\t \t\t\tcontinue;\n\t \t\t}\n\t \t\t\t\n \t\t\t// removes the .class extension \n \t\t\tclasses.add(Class.forName (pckgname + '.' + files[i].substring (0, files[i].length() - 6)));\n\t \t\t\t\n\t \t}\n\t\t \n\t\t \n\t \t// Convert the result in an array\n\t\t Class[] classesA = new Class[classes.size()]; \n\t\t classes.toArray (classesA); \n\t\t \n\t\t \n\t\t // Return\n\t\t return classesA;\n\t\t \n\t\t// Generic error\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "@Test\n public void testGetClassesInPackage() throws Exception\n {\n\n WarMachine machine = TestHelpers.createWarMachine(WarNames.SERVLET);\n\n Set<String> clist1 = machine.getClassesInPackage(\"com.example.servlet\", false);\n assertEquals(\"number of classes in WEB-INF, non-recursive\", 1, clist1.size());\n assertTrue(\"searching for file in WEB-INF, non-recursive\", clist1.contains(\"com.example.servlet.SomeServlet\"));\n\n Set<String> clist2 = machine.getClassesInPackage(\"net.sf.practicalxml.xpath\", false);\n assertEquals(\"number of classes in JAR, non-recursive\", 13, clist2.size());\n assertTrue(\"searching for classes in JAR, non-recursive\", clist2.contains(\"net.sf.practicalxml.xpath.XPathWrapper\"));\n\n Set<String> clist3 = machine.getClassesInPackage(\"net.sf.practicalxml.xpath\", true);\n assertEquals(\"number of classes in JAR, recursive\", 17, clist3.size());\n assertTrue(\"searching for classes in JAR, recursive\", clist3.contains(\"net.sf.practicalxml.xpath.XPathWrapper\"));\n assertTrue(\"searching for classes in JAR, recursive\", clist3.contains(\"net.sf.practicalxml.xpath.function.Constants\"));\n }", "Set<Class<?>> getClassSetBySuperClass(String packageName, Class<?> superClass);", "public interface PackageScanner {\n String FILE_SUFFIX = \".class\";\n\n /**\n * Find target element blow package except two class name.\n *\n * @param packageName\n * @param except\n * @param except2\n * @return\n * @throws IOException\n */\n Set<String> classNames(String packageName, String except, String except2) throws Exception;\n\n /**\n * Find target element blow package except single class name.\n *\n * @param packageName\n * @param except\n * @return\n * @throws IOException\n */\n Set<String> classNames(String packageName, String except) throws Exception;\n\n /**\n * Scanning target class blow package except @param except and @param except2 class.\n *\n * @param packageName\n * @param except\n * @param except2\n * @return\n */\n Set<?> scan(String packageName, Class<?> except, Class<?> except2) throws Exception;\n\n /**\n * Scanning target class blow package except @param except class.\n *\n * @param packageName\n * @param except\n * @return\n */\n Set<?> scan(String packageName, Class<?> except) throws Exception;\n\n /**\n * Instantiation a class set.\n *\n * @param classNames\n * @return\n */\n Set<?> instantiation(Set<String> classNames, Class<?> tClass) throws IOException;\n}", "public interface HasClasses {\n /**\n * Returns list of classes\n *\n * @return List&lt;? extends ClassInfo&gt; - list of classes or empty list if none\n */\n @NotNull\n List<? extends ClassInfo> getClasses();\n\n /**\n * Returns list of all classes, including indirect descendants.\n * @return List&lt;? extends ClassInfo&gt; - list of classes or empty list if none\n */\n @NotNull\n List<? extends ClassInfo> getAllClasses();\n}", "public static List<Class<?>> getClasses( String packageName, String regexFilter ) throws Exception {\n\t\tPattern regex = null;\n\t\tif( regexFilter != null ) {\n\t\t\tregex = Pattern.compile( regexFilter );\n\t\t}\n\n\t\tClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n\t\tassert classLoader != null;\n\t\tString path = packageName.replace( '.', '/' );\n\t\tEnumeration<URL> resources = classLoader.getResources( path );\n\n\t\tList<String> dirs = new ArrayList<String>();\n\t\twhile( resources.hasMoreElements() ) {\n\t\t\tURL resource = resources.nextElement();\n\t\t\tdirs.add( resource.getFile() );\n\t\t}\n\n\t\tTreeSet<String> classes = new TreeSet<String>();\n\t\tfor( String directory : dirs ) {\n\t\t\tclasses.addAll( findClasses( directory, packageName, regex ) );\n\t\t}\n\n\t\tArrayList<Class<?>> classList = new ArrayList<Class<?>>();\n\t\tfor( String clazz : classes ) {\n\t\t\tclassList.add( Class.forName( clazz ) );\n\t\t}\n\n\t\treturn classList;\n\t}", "public ClassInfo[] getClasses() {\r\n return classes.toArray(new ClassInfo[classes.size()]);\r\n }", "public List<IclassItem> getClasses() {\n if(projectData!=null){\n return projectData.getClasses();\n }\n return new ArrayList<IclassItem>();\n }", "public static List<Class<?>>\n getClassListInPackage(String packageName, boolean isRecursion, String postfix) throws IOException, ClassNotFoundException {\n\n LOG.info(\"get Class in package \" + packageName);\n\n List<Class<?>> lct = new ArrayList<>();\n\n ClassLoader loader = Thread.currentThread().getContextClassLoader();\n URL url = loader.getResource(packageName.replace(\".\", \"/\"));\n\n if (url != null) {\n String protocol = url.getProtocol();\n if (protocol.equals(\"file\")) {\n lct = getClassNameFromFile(url.getPath(), packageName, isRecursion, postfix);\n } else if (protocol.equals(\"jar\")) {\n JarFile jarFile = ((JarURLConnection) url.openConnection()).getJarFile();\n lct = getClassNameFromJar(jarFile, packageName, isRecursion, postfix);\n }\n }\n\n return lct;\n }", "@Test\n public void testGetDecalredClasses() {\n for (Class clazz : TestClass.class.getDeclaredClasses()) {\n System.out.println(clazz.getName());\n }\n }", "public String getClasses() {\n String classesString = \"\";\n\n for (String className : classes) {\n classesString += (className + \"\\n\");\n }\n\n return classesString;\n }", "@Test\n @Disabled(\"Not work in Java >=9\")\n void printAllClassJars() {\n var sysClassLoader = org.apache.commons.io.FileUtils.class.getClassLoader();\n var urLs = ((URLClassLoader) sysClassLoader).getURLs();\n for (var url : urLs) {\n System.out.println(url.getFile());\n }\n }", "java.util.List<java.lang.String>\n getClasspathList();", "public static List<Class> findClasses(File directory, String packageName) throws ClassNotFoundException {\n List<Class> classes = new ArrayList<Class>();\n if (!directory.exists()) {\n return classes;\n }\n File[] files = directory.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n assert !file.getName().contains(\".\");\n classes.addAll(findClasses(file, packageName + \".\" + file.getName()));\n } else if (file.getName().endsWith(\".class\")) {\n classes.add(Class.forName(packageName + '.' + file.getName().substring(0, file.getName().length() - 6)));\n }\n }\n return classes;\n }", "private String[] getReferencedJavaClasses() {\n\t\tclass ClassNameVisitor extends JVisitor {\n\t\t\tList<String> classNames = new ArrayList<String>();\n\n\t\t\t@Override\n\t\t\tpublic boolean visit(JClassType x, Context ctx) {\n\t\t\t\tclassNames.add(x.getName());\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tClassNameVisitor v = new ClassNameVisitor();\n\t\tv.accept(jprogram);\n\t\treturn v.classNames.toArray(new String[v.classNames.size()]);\n\t}", "@SuppressWarnings(\"rawtypes\")\n public static List<Class> findClasses(File directory, String packageName) throws ClassNotFoundException\n {\n List<Class> classes = new ArrayList<Class>();\n if (!directory.exists())\n {\n return classes;\n }\n File[] files = directory.listFiles();\n for (File file : files)\n {\n if (file.isDirectory())\n {\n classes.addAll(findClasses(file, packageName + \".\" + file.getName()));\n }\n else if (file.getName().endsWith(\".class\"))\n {\n classes.add(Class.forName(packageName + '.' + file.getName().substring(0, file.getName().length() - 6)));\n }\n }\n return classes;\n }", "List<String> getClassNames() {\n List<String> allGeneratedClasses = new ArrayList<String>();\n for (int i = 0; i < classesToScan.size(); i++) {\n String lookupName = classesToScan.get(i);\n byte classBytes[] = getClassBytes(lookupName);\n if (classBytes == null) {\n /*\n * Weird case: javac might generate a name and reference the class in\n * the bytecode but decide later that the class is unnecessary. In the\n * bytecode, a null is passed for the class.\n */\n continue;\n }\n \n /*\n * Add the class to the list only if it can be loaded to get around the\n * javac weirdness issue where javac refers a class but does not\n * generate it.\n */\n if (CompilingClassLoader.isClassnameGenerated(lookupName)\n && !allGeneratedClasses.contains(lookupName)) {\n allGeneratedClasses.add(lookupName);\n }\n AnonymousClassVisitor cv = new AnonymousClassVisitor();\n new ClassReader(classBytes).accept(cv, 0);\n List<String> innerClasses = cv.getInnerClassNames();\n for (String innerClass : innerClasses) {\n // The innerClass has to be an inner class of the lookupName\n if (!innerClass.startsWith(mainClass + \"$\")) {\n continue;\n }\n /*\n * TODO (amitmanjhi): consider making this a Set if necessary for\n * performance\n */\n // add the class to classes\n if (!classesToScan.contains(innerClass)) {\n classesToScan.add(innerClass);\n }\n }\n }\n Collections.sort(allGeneratedClasses, new GeneratedClassnameComparator());\n return allGeneratedClasses;\n }", "private List<Class> getClasses(final String scanPackage) {\n ClassPathScanningCandidateComponentProvider provider = new ClassPathScanningCandidateComponentProvider(false);\n provider.addIncludeFilter(new AnnotationTypeFilter(ElementEntity.class));\n provider.addIncludeFilter(new AnnotationTypeFilter(VertexEntity.class));\n provider.addIncludeFilter(new AnnotationTypeFilter(EdgeEntity.class));\n provider.addIncludeFilter(new AnnotationTypeFilter(EmbeddedEntity.class));\n Set<BeanDefinition> beanDefinitionSet = provider.findCandidateComponents(scanPackage);\n List<Class> entityClasses = new ArrayList<>();\n for (BeanDefinition beanDefinition : beanDefinitionSet) {\n String beanClassName = beanDefinition.getBeanClassName();\n try {\n entityClasses.add(Class.forName(beanClassName));\n } catch (ClassNotFoundException e) {\n LOG.error(\"Generate class: {}'s schema error: \", beanClassName, e);\n }\n }\n return entityClasses;\n }", "@Override\n\tprotected Class<?> findClass(String name) throws ClassNotFoundException {\n\t\tFile file = new File(getSimpleName(name) + \".class\");\n FileInputStream fis = null;\n Class<?> clazz = null;\n try {\n fis = new FileInputStream(file);\n int content = 0;\n int i = 0;\n byte[] data = new byte[fis.available()];\n while ((content = fis.read()) != -1) {\n // convert to char and display it\n data[i] = (byte) content;\n i++;\n }\n clazz = defineClass(name, data, 0, data.length);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (fis != null)\n fis.close();\n } catch (IOException ex) {\n \t\tex.printStackTrace();\n \t}\n }\n return clazz;\n\t}", "public static Class<?>[] findTestClasses(Class<?> clazz) throws ClassNotFoundException {\n\t\tFile testDir = findClassDir(clazz);\n\t\treturn findTestClasses(testDir);\n\t}", "public abstract Class<?>[] getCoClasses();", "public static TreeSet<String> findClasses( String path, String packageName, Pattern regex ) throws Exception {\n\t\tTreeSet<String> classes = new TreeSet<String>();\n\t\tif( path.startsWith( \"file:\" ) && path.contains( \"!\" ) ) {\n\t\t\tString[] split = path.split( \"!\" );\n\t\t\tURL jar = new URL( split[0] );\n\t\t\tZipInputStream zip = new ZipInputStream( jar.openStream() );\n\t\t\tZipEntry entry;\n\t\t\twhile( ( entry = zip.getNextEntry() ) != null ) {\n\t\t\t\tif( entry.getName().endsWith( \".class\" ) ) {\n\t\t\t\t\tString className = entry.getName().replaceAll( \"[$].*\", \"\" ).replaceAll( \"[.]class\", \"\" ).replace( '/', '.' );\n\t\t\t\t\tif( className.startsWith( packageName ) && ( regex == null || regex.matcher( className ).matches() ) ) {\n\t\t\t\t\t\tclasses.add( className );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tFile dir = new File( path );\n\t\tif( !dir.exists() ) {\n\t\t\treturn classes;\n\t\t}\n\t\tFile[] files = dir.listFiles();\n\t\tfor( File file : files ) {\n\t\t\tif( file.isDirectory() ) {\n\t\t\t\tassert !file.getName().contains( \".\" );\n\t\t\t\tclasses.addAll( findClasses( file.getAbsolutePath(), packageName + \".\" + file.getName(), regex ) );\n\t\t\t} else if( file.getName().endsWith( \".class\" ) ) {\n\t\t\t\tString className = packageName + '.' + file.getName().substring( 0, file.getName().length() - 6 );\n\t\t\t\tif( regex == null || regex.matcher( className ).matches() ) classes.add( className );\n\t\t\t}\n\t\t}\n\t\treturn classes;\n\t}", "java.util.List getClassPathElements();", "java.util.List<java.lang.String>\n getClasspathList();", "List memberClasses();", "@SuppressWarnings(\"unchecked\")\n public void loadClasses(String pckgname) throws ClassNotFoundException {\n File directory = null;\n try {\n ClassLoader cld = Thread.currentThread().getContextClassLoader();\n String path = \"/\" + pckgname.replace(\".\", \"/\");\n URL resource = cld.getResource(path);\n if (resource == null) {\n throw new ClassNotFoundException(\"sem classes no package \" + path);\n }\n directory = new File(resource.getFile());\n }\n catch (NullPointerException x) {\n throw new ClassNotFoundException(pckgname + \" (\" + directory + \") package invalido\");\n }\n if (directory.exists()) {\n String[] files = directory.list();\n for (int i = 0; i < files.length; i++) {\n if (files[i].endsWith(\".class\") && !files[i].contains(\"$\")) {\n Class cl = Class.forName(pckgname + '.' + files[i].substring(0, files[i].length() - 6));\n Method methods[] = cl.getDeclaredMethods();\n boolean ok = false;\n for (Method m : methods) {\n if ((m.getReturnType().equals(List.class) || m.getReturnType().isArray()) && m.getParameterTypes().length == 0) {\n ok = true;\n break;\n }\n }\n if (ok) {\n classes.add(cl);\n }\n }\n }\n }\n else {\n throw new ClassNotFoundException(pckgname + \" package invalido\");\n }\n }", "private ArrayList<Class<Critter>> getCritterClasses(Package pkg) {\n\t\tArrayList<Class<Critter>> classes = new ArrayList<Class<Critter>>();\n\t\tString packagename = pkg.getName();\n\t\tURL resource = ClassLoader.getSystemClassLoader().getResource(packagename);\n\t\tString path = resource.getFile(); //path to package\n\t\tFile directory;\n\t\ttry {\n\t\t\tdirectory = new File(resource.toURI());\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t\tif (directory.exists()) {\n\t\t\tString[] files = directory.list();\n\t\t\tfor (String file : files) {\n\t\t\t\tif (file.endsWith(\".class\")) {\n\t\t\t\t\t// removes the .class extension\n\t\t\t\t\tString className = packagename + '.' + file.substring(0, file.length() - 6);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tClass classObj = Class.forName(className);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tObject obj = classObj.newInstance();\n\t\t\t\t\t\t\tif (obj instanceof Critter) {\n\t\t\t\t\t\t\t\tclasses.add(classObj);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tcontinue; //Skip if class cannot be made into object\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn classes;\n\t}", "private Class<?> findInternalClass(String name){\n Class<?> clazz = null;\n for (int i = 0; i < urls.length; i++) {\n String root = urls[i].getPath();\n clazz = realFindClass(root,name);\n if(clazz != null)\n break;\n }\n if(clazz != null) {\n classes.put(name,clazz);\n return clazz;\n }\n return null;\n }", "public List<String> getClassList() {\n return classlist;\n }", "private static List<Class<?>>\n getClassNameFromFile(String path, String packageName, boolean isRecursion, String postfix) {\n List<Class<?>> lct = new ArrayList<>();\n\n try {\n path = java.net.URLDecoder.decode(\n new String(path.getBytes(\"ISO-8859-1\"),\"UTF-8\"),\"UTF-8\");\n\n File file =new File(path);\n File[] files = file.listFiles();\n\n for (File childFile : files) {\n if (childFile.isDirectory()) {\n if (isRecursion) {\n lct.addAll(getClassNameFromFile(childFile.getPath(),\n packageName + \".\" +childFile.getName(), isRecursion, postfix));\n }\n } else {\n String fileName = childFile.getName();\n if (fileName.endsWith(postfix) && !fileName.contains(\"$\")) {\n System.out.println(fileName);\n lct.add(Class.forName(packageName + \".\" + fileName.replace(\".class\", \"\")));\n }\n }\n }\n }catch (UnsupportedEncodingException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n return lct;\n }", "@Override\n\tpublic List<Classe> getClasses() {\n\t\treturn classeRepository.findAll();\n\t}", "public String getClassName(String path);", "java.util.List<org.jetbrains.r.classes.S4ClassInfo.S4SuperClass> \n getSuperClassesList();", "public ClassFile[] getClassFiles() {\n\t\treturn getResult().getClassFiles();\n\t}", "public List<String> getClassesList() {\n\t\tCursor c = theDb.rawQuery(\"SELECT * \" +\n\t\t\t\t\t\t\t\t \"FROM \" + DbContract.Classes.TABLE_NAME, null);\n\t\t\n\t\t//Read cursor into an ArrayList\n\t\tList<String> classesList = new ArrayList<String>();\n\t\tclassesList.add( context.getString(R.string.all_classes) );\t\t\t//Add \"All classes\"\n\t\t\n\t\twhile (c.moveToNext()) {\n\t\t\tclassesList.add( c.getString( c.getColumnIndex(DbContract.Classes.ATTRIBUTE_NAME)));\n\t\t}\n\t\t\n\t\treturn classesList;\n\t}", "int getClasspathCount();", "int getClasspathCount();", "private boolean findClassInComponents(String name) {\n // we need to search the components of the path to see if we can find the\n // class we want.\n final String classname = name.replace('.', '/') + \".class\";\n final String[] list = classpath.list();\n boolean found = false;\n int i = 0;\n while (i < list.length && found == false) {\n final File pathComponent = (File)project.resolveFile(list[i]);\n found = this.contains(pathComponent, classname);\n i++;\n }\n return found;\n }", "public static Set<Class<? extends Module>> getModuleClasses(String packageName) {\n Reflections reflections = new Reflections(packageName);\n\n return reflections.getSubTypesOf(Module.class);\n\n }", "public ClassDoc[] specifiedClasses() {\n // System.out.println(\"RootDoc.specifiedClasses() called.\");\n // return specClasses.values().toArray(new ClassDoc[0]);\n\n // index.html lists classes returned from specifiedClasses; return the\n // set of classes in specClasses that are\n // included as per access mod filter\n return classes();\n }", "private static List<Class<?>>\n getClassNameFromJar(JarFile jarFile, String packageName, boolean isRecursion, String postfix) throws ClassNotFoundException {\n LOG.info(\"get Class List from jar \" + jarFile.getName());\n\n List<Class<?>> lc = new ArrayList<>();\n\n lc = jarFile.stream()\n .filter(f -> !f.isDirectory())\n .map(f -> f.getName().replace(\"/\", \".\"))\n .filter(f -> f.startsWith(packageName) && f.endsWith(postfix) && !f.contains(\"$\"))\n .map(f -> f.replace(postfix, \"\"))\n .map(f -> {\n try {\n return Class.forName(f);\n } catch (ClassNotFoundException e) {\n LOG.error(\"cast classstr \" + f + \" to class failed\");\n throw new RuntimeException(e);\n }\n })\n .collect(Collectors.toList());\n\n return lc;\n }", "@Override\n public JavaClass findClass(final String className) {\n final SoftReference<JavaClass> ref = loadedClasses.get(className);\n if (ref == null) {\n return null;\n}\n return ref.get();\n }", "private void loadClasses() {\n\t\tString[] classes = new String[] { \"com.sssprog.delicious.api.ApiAsyncTask\" };\n\t\tfor (String c : classes) {\n\t\t\ttry {\n\t\t\t\tClass.forName(c);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic List<Classe> getClasses() {\n\t\treturn classeRepo.findAll();\n\t}", "List<CabinClassModel> findCabinClasses();", "Set<String> classNames(String packageName, String except) throws Exception;", "public static String[] listFilesAsArray() {\n\t\t// Recursively find all .java files\n\t\tFile path = new File(Project.pathWorkspace());\n\t\tFilenameFilter filter = new FilenameFilter() {\n\n\t\t\tpublic boolean accept(File directory, String fileName) {\n\t\t\t\treturn fileName.endsWith(\".java\");\n\t\t\t}\n\t\t};\n\t\tCollection<File> files = listFiles(path, filter, true);\n\n\t\tArrayList<File> t = new ArrayList<File>(files);\n\t\tfor (int i = 0; i < t.size(); i++) {\n\t\t\tString s = t.get(i).getAbsolutePath();\n\t\t\tif (s.contains(\"XX\") || s.contains(\"testingpackage\") || s.contains(\"datageneration\")) {\n\t\t\t\tt.remove(t.get(i));\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tfiles = t;\n\n\t\t// Convert the Collection into an array\n\t\tFile[] allJavaFiles = new File[files.size()];\n\t\tfiles.toArray(allJavaFiles);\n\n\t\tString[] allTestClasses = new String[allJavaFiles.length];\n\t\tString temp = \"\";\n\n\t\t// convert file path to full package declaration for the class\n\t\tfor (int i = 0; i < allJavaFiles.length; i++) {\n\t\t\ttemp = allJavaFiles[i].toString();\n\t\t\ttemp = temp.replace(\".java\", \"\").replace(\"\\\\\", \".\"); // remove .java convert backslash\n\t\t\tif (temp.indexOf(\"com.textura\") < 0) {\n\t\t\t\tallTestClasses[i] = \"null\";\n\t\t\t} else {\n\t\t\t\ttemp = temp.substring(temp.indexOf(\"com.textura\"));\n\t\t\t\ttemp = temp.replace(\"com.\", \"\");\n\t\t\t\tallTestClasses[i] = temp;\n\t\t\t}\n\t\t}\n\t\treturn allTestClasses;\n\t}", "public interface XPackage {\n\t\n\t/**\n\t * \n\t * @return\n\t * @throws IOException\n\t * @throws FileNotFoundException\n\t */\n\tpublic XCollection<XClass> getClasses();\n\n\t/**\n\t * \n\t * @param recursively\n\t * @return\n\t */\n\tpublic XCollection<XClass> getClasses(boolean recursively);\n\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic XPackage getParentPackage();\n\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic XCollection<XPackage> getChildPackages();\n\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic XCollection<XPackage> getChildPackages(boolean recursively);\n\n\t/**\n\t * \n\t * @param packageName\n\t * @return\n\t */\n\tpublic XPackage find(String packageName);\n\n}", "public static Class<?>[] findTestClasses(File testDir) throws ClassNotFoundException {\n\t\tList<File> testClassFiles = findFilesEndingWith(testDir, new String[] { \"Test.class\" });\n\t\tList<Class<?>> classes = convertToClasses(testClassFiles, testDir);\n\t\treturn classes.toArray(new Class[classes.size()]);\n\t}", "String getInstanceOfClass();", "@Override\n\tpublic Classes findClasses(String cls_id) {\n\t\tString sql = \"select * from classes where cls_id='\" + cls_id + \"'\";\n\t\tJdbcQuery querys = JdbcUtils.createNativeQuery(sql, Classes.class);\n\t\tClasses classes = querys.getBean();\n\t\treturn classes;\n\t}", "public ClassDoc[] classes() {\n // return specClasses.values().toArray(new ClassDoc[0]);\n\n // return the set of classes in specClasses that are \"included\"\n // according to the access modifier filter\n if (includedClasses != null) {\n // System.out.println(\"RootDoc.classes() called.\");\n return includedClasses;\n }\n int size = 0;\n Collection<X10ClassDoc> classes = specClasses.values();\n for (ClassDoc cd : classes) {\n if (cd.isIncluded()) {\n size++;\n }\n }\n includedClasses = new X10ClassDoc[size];\n int i = 0;\n for (X10ClassDoc cd : classes) {\n if (cd.isIncluded()) {\n includedClasses[i++] = cd;\n }\n }\n Comparator<X10ClassDoc> cmp = new Comparator<X10ClassDoc>() {\n public int compare(X10ClassDoc first, X10ClassDoc second) {\n return first.name().compareTo(second.name());\n }\n\n public boolean equals(Object other) {\n return false;\n }\n };\n Arrays.sort(includedClasses, cmp);\n // System.out.println(\"RootDoc.classes() called. result = \" +\n // Arrays.toString(includedClasses));\n return includedClasses;\n }", "protected Class< ? extends Object > findClass( String name ) throws ClassNotFoundException {\n\t\tfinal Class< ? extends Object > c = load_classes.get( name );\n\t\tif ( c == null ) throw new ClassNotFoundException();\n\t\treturn c;\n\t}", "public ClassPath getClassPath();", "public static Class[] getImplementorClasses(String serviceName) {\n return getImplementorClasses(serviceName, null);\n }", "private static List<IClassDefinition> getExtClasses(\n\t\t\tList<IClassDefinition> classList, String extensionName,\n\t\t\tEnvironment env)\n\t{\n\t\tList<IClassDefinition> classes = new LinkedList<IClassDefinition>();\n\n\t\tfor (IClassDefinition c : classList)\n\t\t{\n\t\t\t// Check for the existing of the classdef directly.\n\t\t\tif (env.isTreeNode(c))\n\t\t\t{\n\t\t\t\tclasses.add(c);\n\t\t\t}\n\t\t\t// else if it does not exist in env, check if the class has been\n\t\t\t// replaced and add this instead.\n\t\t\telse\n\t\t\t{\n\n\t\t\t\tString newName = c.getName().getPrefix() + extensionName\n\t\t\t\t\t\t+ c.getName().getRawName() + c.getName().getPostfix();\n\n\t\t\t\tIClassDefinition newC = env.lookUp(newName);\n\n\t\t\t\tif (null != newC)\n\t\t\t\t\tclasses.add(newC);\n\t\t\t}\n\t\t}\n\t\treturn classes;\n\t}", "List<String> getSystemPackages();", "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}", "private void connectClasses(Header [] list)\r\n {\r\n Vector queue;\r\n Vector garbage = new Vector();\r\n\r\n Find.setCrossreference(list);\r\n\r\n for(int i = 0; list != null && i < list.length; i++)\r\n {\r\n queue = list[i].scopes;\r\n\r\n for(int j = 0; j < queue.size(); j++)\r\n for(Iterator iter = ((Scope)queue.get(j)).iterator(); iter.hasNext();)\r\n {\r\n Iterator a = null;\r\n Basic x = (Basic)iter.next();\r\n\r\n if (x instanceof ClassType)\r\n {\r\n ClassType y = (ClassType)x;\r\n ClassType [] z;\r\n boolean done = false;\r\n String st = null;\r\n\r\n if (y.extend != null && y.extend.name != null && y.extend.scope == null)\r\n { // look for superclass\r\n st = y.extend.name.string;\r\n for(a = y.unresolved.iterator(); a.hasNext();)\r\n {\r\n String s = (String)a.next();\r\n if (s.endsWith('.' + st))\r\n {\r\n st = s;\r\n break;\r\n }\r\n }\r\n\r\n z = Find.findClass(st, 0, y.scope);\r\n \r\n for(int k = 0; k < z.length; k++)\r\n if (z[k].scope.javaPath(\"\").endsWith(st) || z[k].scope.buildPath(\"\").endsWith(st))\r\n {\r\n y.extend = z[k];\r\n garbage.add(st);\r\n done = true;\r\n }\r\n }\r\n\r\n for(int k = 0; k < y.implement.length; k++)\r\n if (y.implement[k].name != null && y.implement[k].scope == null)\r\n { // look for interface\r\n st = y.implement[k].name.string;\r\n for(a = y.unresolved.iterator(); a.hasNext();)\r\n {\r\n String s = (String)a.next();\r\n if (s.endsWith('.' + st))\r\n {\r\n st = s;\r\n break;\r\n }\r\n }\r\n done = false;\r\n \r\n z = Find.findClass(st, 0, y.scope);\r\n \r\n for(int l = 0; l < z.length && !done; l++)\r\n if (z[l].scope.javaPath(\"\").endsWith(st) || z[l].scope.buildPath(\"\").endsWith(st))\r\n {\r\n y.implement[k] = z[l];\r\n garbage.add(st);\r\n done = true;\r\n break;\r\n }\r\n }\r\n\r\n a = null;\r\n while(garbage.size() > 0)\r\n {\r\n st = (String)garbage.get(0);\r\n garbage.remove(0);\r\n y.unresolved.remove(st);\r\n }\r\n }\r\n }\r\n }\r\n }", "IArenaClass getClass(final String name);", "public Object[] getImplementations() {\n\t\tObject[] res = { HackProjectLearner.class };\n\t\treturn res;\n\t}", "private void onClassesFound(List<UMDClass> classes) {\n\t}", "public String getClassName();", "String getClassName();", "String getClassName();", "String getClassName();", "public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/net/Security\".replace('/', '.'));\n }\n catch (ClassNotFoundException e)\n {\n throw new NoClassDefFoundError(e.getMessage());\n }\n return clz;\n }" ]
[ "0.7388588", "0.7333834", "0.7323179", "0.7320635", "0.7285176", "0.72043407", "0.7202432", "0.7064498", "0.7043433", "0.68789077", "0.6862131", "0.68568254", "0.6789403", "0.6787123", "0.6763071", "0.6746408", "0.67256933", "0.6694671", "0.6653271", "0.6639999", "0.66134703", "0.66096264", "0.6586336", "0.6586098", "0.6582577", "0.6577498", "0.6574791", "0.65529263", "0.6540834", "0.6492578", "0.64878404", "0.64822435", "0.64517903", "0.64418757", "0.6426274", "0.6408798", "0.639593", "0.6366173", "0.63563615", "0.6305667", "0.6304752", "0.6301085", "0.62941295", "0.62687504", "0.6258476", "0.6256302", "0.6252871", "0.62216324", "0.61891943", "0.618539", "0.6174553", "0.6154245", "0.6143726", "0.6143015", "0.61265874", "0.6124141", "0.6101428", "0.6050505", "0.60337114", "0.5996904", "0.599628", "0.59690475", "0.5964429", "0.5947752", "0.5942832", "0.5934799", "0.5921284", "0.59162694", "0.588699", "0.58782053", "0.58782053", "0.5867837", "0.58498347", "0.5845788", "0.5819735", "0.5814517", "0.5795607", "0.5793877", "0.57898134", "0.5774706", "0.5773565", "0.5771198", "0.57573426", "0.5732481", "0.5728145", "0.57048523", "0.56646794", "0.5658544", "0.5651329", "0.5625754", "0.56214255", "0.56198144", "0.5615046", "0.56057745", "0.559547", "0.5589003", "0.55704236", "0.55619454", "0.55619454", "0.55619454", "0.55447745" ]
0.0
-1
Created by junqingfjq on 16/5/12.
public interface TaskMapper { @TaskMapperAnnotation(createMethodName = "create", tableName = "task", taskIdColumnName = "id", taskType = "ecs", taskCreateTimeColumnName = "gmtCreated", timeout = 20, finishStatusList = "CREATED_FINISH", timeoutCallbackProcessBeanName = "xxxxCallbackProcessBeanName") void create(Object obj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\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}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void comer() \r\n\t{\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}", "private void kk12() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void interr() {\n\t}", "public void mo4359a() {\n }", "private void init() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\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 nadar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void gored() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void init() {}", "@Override\r\n\tpublic void init() {}", "private void init() {\n\n\n\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public void mo6081a() {\n }", "private Rekenhulp()\n\t{\n\t}", "public void mo12628c() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void mo55254a() {\n }", "@Override\n public void initialize() { \n }", "protected void mo6255a() {\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "private void initialize() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\t\tpublic void init() {\n\t\t}", "public void mo21877s() {\n }" ]
[ "0.6023308", "0.6018537", "0.58281505", "0.581813", "0.58138543", "0.57955456", "0.57790005", "0.57790005", "0.57529587", "0.5725287", "0.57114595", "0.56892043", "0.5684445", "0.5682164", "0.5682164", "0.5682164", "0.5682164", "0.5682164", "0.56796235", "0.56641734", "0.5663871", "0.5662377", "0.5662119", "0.5655338", "0.56523806", "0.56357604", "0.5623408", "0.56131315", "0.56131315", "0.5607515", "0.56035286", "0.5593511", "0.557969", "0.55739725", "0.5567302", "0.5566105", "0.55656904", "0.55606925", "0.5556572", "0.5556572", "0.5556572", "0.5556572", "0.5556572", "0.5556572", "0.5554663", "0.55541855", "0.5550474", "0.5550474", "0.5550474", "0.5549217", "0.55490947", "0.5547448", "0.5547448", "0.5546924", "0.5543024", "0.55414426", "0.55414426", "0.55414426", "0.5541002", "0.5541002", "0.5541002", "0.5532005", "0.5531335", "0.5531335", "0.5527458", "0.55259556", "0.55151075", "0.55151075", "0.55151075", "0.55151075", "0.55151075", "0.55151075", "0.55151075", "0.54964495", "0.54912955", "0.5489375", "0.5475955", "0.5473517", "0.5471202", "0.5468738", "0.54536176", "0.5450606", "0.5443944", "0.54328835", "0.5431948", "0.5414007", "0.5410484", "0.5407717", "0.5402764", "0.54027337", "0.53938884", "0.53928554", "0.53893393", "0.5381321", "0.5380369", "0.5377763", "0.5377763", "0.5374314", "0.53706956", "0.5359914", "0.53553057" ]
0.0
-1
Callback when close button is hit
public void notifyExit() { if (isClientConnected) sendDisconnectTag(); bs.close(); // Announce termination to client bs.cancel(); // Shut down waiting server System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onClose();", "public void close() {\n getCloseButton().click();\n }", "public void onClose() {\n }", "@Override\n public void closeWindow() {\n \n }", "@Override\r\n\tpublic void onClose() {\n\t}", "public abstract void windowClose(CloseEvent e);", "@Override\n\tpublic void windowClose(CloseEvent e) {\n\t\t\n\t}", "@Override\r\n\t\t\t\t\tpublic void onClose() {\n\t\t\t\t\t}", "public void onCancelButtonClick() {\n close();\n }", "public void onCancelClicked() {\n close();\n }", "void close_actionPerformed(ActionEvent e){\n\t System.exit(0);\n\t }", "private void close() {\n\t\t\t\t// name.getScene().getWindow().hide();\n\t\t\t\tdialogStage.fireEvent(new WindowEvent(dialogStage,WindowEvent.WINDOW_CLOSE_REQUEST));\n\t\t\t}", "private void close() {\n WindowEvent winClose = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClose);\n \n }", "void windowClosed();", "private void close() {\n WindowEvent winClosingEvent = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\nToolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "public void close() {\n closePopup();\n }", "private void close() {\n WindowEvent winClosingEvent = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "@Override\n public void onClose() {\n Toast.makeText(this, \"onClose\", Toast.LENGTH_SHORT).show();\n }", "public void onClosingFinished() {\n super.onClosingFinished();\n resetHorizontalPanelPosition();\n setClosingWithAlphaFadeout(false);\n }", "@Override\n\tpublic void onCloseAction() {\n\n\t}", "private void onClose() {\n dispose();\n }", "@FXML\n void fileClosePressed(ActionEvent event) {\n \tviewState.set(ViewState.CLOSE);\n }", "@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }", "@FXML\n private void selectedBtnClose(ActionEvent event){\n Stage exit = (Stage)btnClose.getScene().getWindow();\n exit.close();\n }", "public void closeClick() {\n timeline.stop();\n threadWorker.shutDownExecutor();\n Platform.exit();\n }", "private void close() {\r\n closeListener.run();\r\n }", "private void completedCloseButtonListener() {\n JButton closeCompletedButton = gui.getButton_CloseCompleted();\n\n ActionListener actionListener = (ActionEvent actionEvent) -> {\n gui.getFrame_Completed().setVisible(false);\n };\n\n closeCompletedButton.addActionListener(actionListener);\n }", "public void close()\n {\n setVisible (false);\n dispose();\n }", "protected abstract void onClose();", "private void close() {\n WindowEvent winClosingEvent = new WindowEvent(this, WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "@Override\r\n\t\t\tpublic void onClosed() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tclose();\n\t\t\t}", "private void closeBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_closeBtnMouseClicked\n System.exit(0);\n }", "@Override\n\tpublic void onGuiClosed()\n {\n }", "public static void closeButtonAction(){\n Stage stage = (Stage)icon_exit.getScene().getWindow();\n // do what you have to do\n stage.close();\n System.out.println(\"Stage Closed.\");\n }", "@Override\n public void windowClosing(WindowEvent e) {\n closeWindow();\n }", "public void close() {\n\t\tgetFrame().dispatchEvent(new WindowEvent(getFrame(), WindowEvent.WINDOW_CLOSING));\n\t\t\n\t}", "public void close() {\r\n\t\t\r\n\t\tWindowEvent winClosingEvent = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\r\n\t\tToolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\r\n\t}", "public void clickOnCloseButton(){\n\t\tDynamicFramePage.dynamicFrameForPanchart();\n\t\tDynamicFramePage.switchtoFraFrame();\n\t\tSeleniumUtil.getElementWithFluentWait(panProfileCloseicon).click();\n\t}", "public void clickClose() {\n Stage stage = (Stage) btnClose.getScene().getWindow();\n stage.close();\n }", "public void close() {\r\n dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\r\n }", "public void handleCancelButton(ActionEvent e) {\n\t\tclose();\n\t}", "public void setbutton_close_event(View view)\n\t{\n\t\tfinish();\n\t}", "public static void closeBtnPressed () {\r\n PCNMClientStart.switchPanels(new NetMapSCR());\r\n }", "public void close() {\r\n\t\tWindowEvent closeWindow = new WindowEvent(frame123, WindowEvent.WINDOW_CLOSING);\r\n\t\tToolkit.getDefaultToolkit().getSystemEventQueue().postEvent(closeWindow);\r\n\t}", "public void handleActionClose() {\n\t\tsuper.handleActionClose();\n\t\tthis.getDocumentView().close();\n\t}", "@Override\n public void windowClosing(WindowEvent e)\n {\n gui.exitApp();\n }", "public void close(){\n \n }", "public static void closeMe() {\n window.close();\n }", "@Override\r\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\r\n\t}", "@FXML\n\tpublic void handleCloseButtonAction(ActionEvent event) {\n\t\tStage stage = (Stage) closeButton.getScene().getWindow();\n\t\tstage.close();\n\t}", "public void closeDown() {\n\t\tdispose();\n\n\t}", "boolean isCloseButtonDisplayed();", "public boolean onClose() {\n\t\topenScreen(new Noticias());\n\t\treturn true ;\n\t}", "@FXML\n\tvoid close(MouseEvent event) {\n\t\t((Node) (event.getSource())).getScene().getWindow().hide();\n\t}", "void closeApp();", "public void close() {\n WindowEvent winClosingEvent = new WindowEvent(this, WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "abstract void onClose();", "public void close() {\n Stage stage = (Stage) closeButton.getScene().getWindow();\n stage.close();\n }", "private void handleWindowClose() {\n if (scrdev().getFullScreenWindow() != null)\n scrdev().getFullScreenWindow().removeAll();\n if (container != null){\n container.setVisible(false);\n container.dispose();\n container.removeKeyListener(this);\n \n //TODO: make a call to finish\n }\n }", "void close() {\n\t\t\n\t\tthis.frame.setVisible(false);\n\t\tthis.frame.dispose();\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n guiD.closeWindow(rootPanel);\n }", "@Override\n public void windowClosing(WindowEvent e)\n {\n\n }", "void close() {\n boolean closeable = true;\n if (progressPanel.getStatus() != ReportStatus.CANCELED && progressPanel.getStatus() != ReportStatus.COMPLETE && progressPanel.getStatus() != ReportStatus.ERROR) {\n closeable = false;\n }\n if (closeable) {\n actionListener.actionPerformed(null);\n } else {\n int result = JOptionPane.showConfirmDialog(this,\n NbBundle.getMessage(this.getClass(),\n \"ReportGenerationPanel.confDlg.sureToClose.msg\"),\n NbBundle.getMessage(this.getClass(),\n \"ReportGenerationPanel.confDlg.title.closing\"),\n JOptionPane.YES_NO_OPTION);\n if (result == 0) {\n progressPanel.cancel();\n actionListener.actionPerformed(null);\n }\n }\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\r\n \t\t\tpublic void closeDialog() {\n \t\t\t\tunbind();\r\n \t\t\t\tsuper.closeDialog();\r\n \t\t\t}", "public void close()\n {\n removeOverlayAndHideWrapper();\n if (mCloseListener != null)\n {\n mCloseListener.onTutorialClosed();\n }\n }", "private void closeActionPerformed(java.awt.event.ActionEvent evt) {\n this.dispose();\n }", "private void fileExit() {\n try {\n ConnectWindow.tidyClose();\n }\n catch (Exception e) {\n displayError(e,this);\n }\n }", "@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "public void closeClick(View view) {\n this.finish();\n }", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\t\n\t}", "@Override\n\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\n\t\t}", "public void close() {\n // should i do something ?\n }", "@FXML\n public void handleCloseDialog(final MouseEvent event) {\n if (event.getSource() == closeDialog || event.getSource() == dialogCancelButton) {\n ConnectionManager.getInstance().setConnected(false);\n Node node = (Node) event.getSource();\n Stage stage = (Stage) node.getScene().getWindow();\n stage.hide();\n }\n }", "protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}" ]
[ "0.7878563", "0.7874089", "0.7780593", "0.7631739", "0.7622845", "0.76024306", "0.7589172", "0.7583459", "0.75570875", "0.7518848", "0.7466659", "0.74631", "0.7450586", "0.74234504", "0.7374112", "0.7368146", "0.73598707", "0.73386025", "0.7325655", "0.7308533", "0.73046696", "0.7277173", "0.7261838", "0.72613305", "0.72296023", "0.72271895", "0.72255826", "0.72212046", "0.72204375", "0.721713", "0.7206847", "0.7197612", "0.71907586", "0.717293", "0.717046", "0.7151036", "0.713524", "0.71327084", "0.7127219", "0.7126365", "0.71173763", "0.71012574", "0.7084708", "0.7082057", "0.7051334", "0.7048313", "0.7040645", "0.7036329", "0.70309997", "0.70282817", "0.70282817", "0.70282817", "0.70210624", "0.70041835", "0.70022565", "0.69953525", "0.69927716", "0.69917554", "0.6988309", "0.6980842", "0.6978274", "0.697567", "0.6950302", "0.6931959", "0.6922468", "0.6904968", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.68978727", "0.6896869", "0.6895892", "0.68911177", "0.6883162", "0.6877031", "0.6877031", "0.68742055", "0.6867773", "0.68656725", "0.68656725", "0.6857694", "0.68463", "0.6846144", "0.68414307" ]
0.0
-1
wait while graphs loading
public static void take(WebDriver driver){ try { Thread.sleep(5000); }catch (InterruptedException e){ e.printStackTrace(); } Screenshot screenshot = new AShot() .shootingStrategy(ShootingStrategies.viewportPasting(100)) .takeScreenshot(driver); try { ImageIO.write(screenshot.getImage(), "png", new File("/home/stanislav/123.png")); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void waitWhileLoading()\r\n {\r\n while (isLoading())\r\n ThreadUtil.sleep(10);\r\n }", "public synchronized void waitUntilLoad() {\n\t\twhile (!this.loaded) {\n\t\t\tSystem.out.println(\"Waiting for news to load\");\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t}\n\t}", "private void load() {\r\n\t\tswitch (this.stepPanel.getStep()) {\r\n\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_HOST_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\tloadPairs();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "private void waitUntilReady() {\n\t\t\twhile (deque.isEmpty() && loadThread.isAlive()) {\n//\t\t\t\ttry {\n//\t\t\t\t\tThread.sleep(100);\n//\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\tExceptionUtils.throwAsRuntimeException(e);\n//\t\t\t\t}\n\t\t\t}\n\t\t}", "public void startGraph() {\r\n this.setStatus(false);\r\n this.isGraphStarted = true;\r\n\r\n // if (Alg not started yet or Alg started, but not ready for graph) or\r\n // (Alg started but (already read from DB but now fileSelected) or (DB\r\n // selected but not read yet))\r\n if ((!this.is_alg_started || !this.isAlgStartedForGraph)\r\n || (this.is_alg_started && ((this.is_already_read_from_DB && this.UseFile.isSelected())\r\n || (!this.is_already_read_from_DB && this.UseDB.isSelected())))) {\r\n this.dBInError = false;\r\n this.startALG(false);\r\n } else {\r\n try {\r\n Thread t1 = new Thread(new MyGraphGUI(this.display_sub_current, (ChineseWhispers) this.cw.clone(),\r\n this.display_edges_temp, this.scale_temp, 30, this.display_degree_temp));\r\n t1.start();\r\n } catch (CloneNotSupportedException e) {\r\n e.printStackTrace();\r\n }\r\n this.setStatus(true);\r\n this.isGraphStarted = false;\r\n this.isAlgStartedForGraph = true;\r\n }\r\n }", "public void waitForData() {\n waitForData(1);\n }", "public void setUploading()\n {\n jPanel4.setVisible(false);\n th.start();\n }", "private void loadingAnalysis(DatasetInformation datasetInfos) {\r\n datasetInfo = datasetInfos;\r\n updateLeftPanel(datasetInfos);\r\n if (reload) {\r\n\r\n Selection s = Selection_Manager.getSelectedRows();\r\n Selection_Manager.setSelectedRows(s);\r\n return;\r\n }\r\n processProfilePlot();\r\n reload = true;\r\n\r\n if (!init) {\r\n SelectionManager.Busy_Task(false, true);\r\n }\r\n\r\n }", "void createGraphForSingleLoad();", "public void run()\n {\n //while (still executing jobs on grid)\n // attempt to sample data\n while (processingJobs)\n {\n //if (not paused)\n // sample data\n if (!paused)\n {\n //get the storage element object appropriate for this thread\n int ind = nodeChoice.indexOf('e');\n String siteno = nodeChoice.substring(ind+1);\n int siteID = Integer.parseInt(siteno);\n site = _gc.findGridSiteByID(siteID);\n StorageElement se = site.getSE();\n //sample time\n long timeMillis = time.getRunningTimeMillis();\n timeSecs = (int)(timeMillis/1000);\n //sample capacity\n capacity = se.getCapacity();\n float usage = (capacity - se.getAvailableSpace())/100;\n /* if (range values identical for last three readings)\n * remove intermediate statistic\n */\n if (usage==prevUsage&&usage==prevPrevUsage)\n { \n int itemCount = seriesSEUVTime.getItemCount();\n if (itemCount>2)\n seriesSEUVTime.remove(itemCount-1);\n } \n prevPrevUsage = prevUsage;\n prevUsage = usage;\n seriesSEUVTime.add(timeSecs, usage);\n pieDataset.setValue(\"Used Storage (GB)\", new Integer((int)((capacity - se.getAvailableSpace())/100)));\n pieDataset.setValue(\"Free Storage (GB)\", new Integer((int)((se.getAvailableSpace())/100)));\n //if (not saving all graphs)\n // try to refresh statistics\n if(!printingAll)\n this.sendDatatoGUI();\n }\n \n //delay next sample by short time\n try\n {\n if (paused)\n sleep(Integer.MAX_VALUE);\n else\n sleep(samplingDelay);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n } \n }\n \n //out here only when all jobs have finished.\n //thread shall sleep for long time but can be \n //re-awakened if user wants to see statistics \n //from this object when run is complete.\n while (true)\n {\n try\n {\n sleep(Integer.MAX_VALUE);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n }\n }\n }", "private void loadingPhase() {\n try { Thread.sleep(10000); } catch(InterruptedException e) { return; }\n ClickObserver.getInstance().setTerrainFlag(\"\");\n }", "void createGraphForMassiveLoad();", "private void waitConfigData() {\n\t\tstartListening();\n\t\twhile (!configDataSet) {\n\t\t\tsleep(10);\n\t\t}\n\t\tstopListening();\n\t}", "public void loadGraph() {\n\t\tJSONArray data = null;\n\n\t\tswitch (mApp.getCurrentGroupBy()) {\n\t\tcase DATE:\n\n\t\t\tdata = DataBaseUtil.fetchEntriesByDateInJSON(mContext, mType.getId());\n\t\t\tbreak;\n\n\t\tcase MAX:\n\n\t\t\tdata = DataBaseUtil.fetchEntriesByMaxInJSON(mContext, mType.getId());\n\t\t\tbreak;\n\n\t\tcase NONE:\n\t\t\tdata = DataBaseUtil.fetchEntriesInJSON(mContext, mType.getId());\n\t\t\tbreak;\n\t\t}\n\t\tloadGraph(data);\n\t}", "public void loadGraph() {\n System.out.println(\"The overlay graph will be loaded from an external file\");\n try(FileInputStream fis = new FileInputStream(graphPath + OVERLAY_GRAPH);\n ObjectInputStream ois = new ObjectInputStream(fis))\n {\n graph = (MatrixOverlayGraph) ois.readObject();\n System.out.println(\"Overlay graph loaded\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n loadSupporters();\n }", "public void loadOrCreateGraph() {\n if(new File(graphPath + OVERLAY_GRAPH).exists())\n loadGraph();\n else {\n System.out.println(\"No file with the graph exists\");\n createGraph();\n }\n //graph.print();\n }", "public boolean waitLoading() {\n\t\t\treturn waitLoading;\n\t\t}", "@Override protected void onPreExecute() { g = new UndirectedGraph(10); }", "public void graph() throws ParseException, InterruptedException {\n\n\t\t//setting up the connextion URL\n\t\tConnection con = null;\n\t\tString conUrl = \"jdbc:sqlserver://\"+Login.Host+\"; databaseName=\"+Login.databaseName+\"; user=\"+Login.user+\"; password=\"+Login.password+\";\";\n\t\ttry {\n\t\t\tcon = DriverManager.getConnection(conUrl);\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tStatement stmt;\n\t\ttry {\n\n\t\t\tstmt = con.createStatement( );\n\n\t\t\t//in this loop I will draw the dynamic charts (separeted and combined)\n\t\t\twhile(infinite){\n\t\t\t\ttry {\n\t\t\t\t\t//this thread is necessary otherwise I will be adding 2 values at the same moment which will not be accepted \n\t\t\t\t\t//by the datatset \n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\n\t\t\t\t\t//preparing the call of the procedure\n\t\t\t\t\tpstmt = con.prepareCall(\"{call avgPr(?,?)}\");\t\t \n\t\t\t\t\tpstmt.setString(1, featureString);\n\t\t\t\t\tpstmt.setString(2, actionString);\t\t\t\t \t\t\n\t\t\t\t\tResultSet aveTempAvg = pstmt.executeQuery();\n\t\t\t\t\t\n\t\t\t\t\t//extracting the data from the query\n\t\t\t\t\tResultSetMetaData rsmd = aveTempAvg.getMetaData();\n\t\t\t\t\tif(rsmd!=null) {\n\t\t\t\t\t\tint columnsNumber = rsmd.getColumnCount();\n\t\t\t\t\t\twhile (aveTempAvg.next()) {\n\t\t\t\t\t\t\tfor (int i = 1; i <= columnsNumber; i++) {\n\t\t\t\t\t\t\t\tif (i > 1) System.out.print(\", \");\n\t\t\t\t\t\t\t\tString columnValue = aveTempAvg.getString(i);\n\t\t\t\t\t\t\t\tif(columnValue!=null) {\n\t\t\t\t\t\t\t\t\tthis.seriesAvg.add( new Millisecond(),Double.parseDouble(columnValue));\t\t\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\t//I will add 0 if there is no value\n\t\t\t\t\t\t\t\t\tthis.seriesAvg.add( new Millisecond(),0);\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\telse {\n\t\t\t\t\t\tthis.seriesAvg.add( new Millisecond(),0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//preparing for the call of 99 percentile procedure\n\t\t\t\t\tpstmt = con.prepareCall(\"{call ninetyNinePr(?,?)}\");\n\t\t\t\t\tpstmt.setString(1, featureString);\n\t\t\t\t\tpstmt.setString(2, actionString);\n\t\t\t\t\tResultSet ave99 = pstmt.executeQuery();\n\t\t\t\t\t\n\t\t\t\t\t//extracting data from the query\n\t\t\t\t\tResultSetMetaData rsmd2 = aveTempAvg.getMetaData();\n\t\t\t\t\tif(rsmd2!=null) {\n\n\t\t\t\t\t\tint columnsNumber2 = rsmd2.getColumnCount();\n\t\t\t\t\t\twhile (ave99.next()) {\n\t\t\t\t\t\t\tfor (int i = 1; i <= columnsNumber2; i++) {\n\t\t\t\t\t\t\t\tif (i > 1) System.out.print(\", \");\n\t\t\t\t\t\t\t\tString columnValue2 = ave99.getString(i);\n\n\t\t\t\t\t\t\t\tif(columnValue2!=null ) {\n\n\t\t\t\t\t\t\t\t\tthis.series99.add(new Millisecond(),Double.parseDouble(columnValue2));\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\t// if I don't have a value I will add 0 \n\t\t\t\t\t\t\t\t\tthis.series99.add(new Millisecond(),0);\n\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\telse {\n\t\t\t\t\t\tthis.series99.add( new Millisecond(),0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//preparing for the call of the 95 procedure\n\t\t\t\t\tpstmt = con.prepareCall(\"{call ninetyFivePr(?,?)}\");\n\t\t\t\t\tpstmt.setString(1, featureString);\n\t\t\t\t\tpstmt.setString(2, actionString); \n\t\t\t\t\tResultSet ave95 = pstmt.executeQuery();\n\t\t\t\t\t\n\t\t\t\t\t//extracting the data from my query\n\t\t\t\t\tResultSetMetaData rsmd3 = aveTempAvg.getMetaData();\n\t\t\t\t\tif(rsmd3!=null) {\n\t\t\t\t\t\tint columnsNumber3 = rsmd3.getColumnCount();\n\t\t\t\t\t\twhile (ave95.next()) {\n\t\t\t\t\t\t\tfor (int i = 1; i <= columnsNumber3; i++) {\n\t\t\t\t\t\t\t\tString columnValue3 = ave95.getString(i);\n\t\t\t\t\t\t\t\tif(columnValue3!=null ) {\n\n\t\t\t\t\t\t\t\t\tthis.series95.add( new Millisecond(\t),Double.parseDouble(columnValue3));\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\tthis.series95.add( new Millisecond(),0);\n\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\telse {\n\n\t\t\t\t\t\tthis.series95.add( new Millisecond(),0);\n\n\t\t\t\t\t}\n\t\t\t\t} catch(SQLException ex) {\n\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t} \n\t\t\t}\n\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public static void loadGraph_File(String filename) {\n // Graph aus Datei laden\n Application.graph = null;\n double time_graph = System.currentTimeMillis();\n filename = filename + \".DAT\";\n Application.println(\"============================================================\");\n Application.println(\"Fetching Data from \" + filename + \" and building graph\");\n try {\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream obj_in = new ObjectInputStream(fis);\n Object obj = obj_in.readObject();\n if (obj instanceof NavGraph) {\n Application.graph = (NavGraph) obj;\n } else {\n throw new Exception(\"Saved Data != NavGraph\");\n }\n obj_in.close();\n fis.close();\n time_graph = (System.currentTimeMillis() - time_graph) / 1000;\n double time_init = System.currentTimeMillis();\n Application.println(\"Init Graph\");\n graph.initGraph();\n time_init = (System.currentTimeMillis() - time_init) / 1000;\n Application.println(\"Init Graph took \" + time_init + \" Secs\");\n Application.println(\"Fetching Data and building graph took: \" + time_graph + \"sec\");\n Application.println(\"============================================================\");\n } catch (Exception e) {\n Application.println(\"Error: \" + e.toString());\n }\n }", "public void startLoading() {\r\n\t\tgetDisplay().setRowCount(0, true);\r\n\t\tlabel1.setHTML(\"\");\r\n\t\tlabel2.setHTML(\"\");\r\n\t}", "public void waitUntilLoadingDoesNotExistAndVerifyContainerDisplayed(){\n\t\tverifyContainerDisplayedResultsPage();\r\n\t}", "public static void reload()\r\n {\r\n reloadAsynch();\r\n waitWhileLoading();\r\n }", "private void checkIfReadyToParse() {\r\n\t\tif (this.hostGraph != null)\r\n\t\t\tif (this.stopGraph != null)\r\n\t\t\t\tif (this.criticalPairs != null || this.criticalPairGraGra != null) {\r\n\t\t\t\t\tthis.readyToParse = true;\r\n\t\t\t\t}\r\n\t}", "public void waitForCategorytoLoad() throws Exception {\n\t\twaitForJavascripttoLoad();\n\t}", "public synchronized void informModuleStartLoading(Module module) {\n\t\tModuleStat stat = getModuleStat(module);\n\t\tstat.waitLoading = true;\n\t}", "private void showLoading()\n {\n relLoadingPanel.setVisibility(View.VISIBLE);\n ViewHelper.setViewGroupEnabled(scrMainContainer, false);\n }", "public void doLoad() {\n UI.clearText();\n UI.println(\"Loading...\");\n\n waveform = WaveformLoader.doLoad();\n\n this.displayWaveform();\n\n UI.println(\"Loading completed!\");\n }", "public void drawGraph(){\n this.post(new Runnable(){\n @Override\n public void run(){\n removeAllSeries();\n addSeries(xySeries);\n addSeries(currentPoint);\n //addSeries(currentPoint);\n }\n });\n }", "private void startAsyncLoader() {\n if (CheckInternetConnection.isNetworkAvailable(this)) {\n Log.e(\"connection\", \"connection available\");\n if (getLoaderManager().getLoader(ASYNC_LOADER_ID) == null) {\n getLoaderManager().initLoader(ASYNC_LOADER_ID, null, new UpdateDataInfo()).forceLoad();\n } else {\n getLoaderManager().restartLoader(ASYNC_LOADER_ID, null, new UpdateDataInfo()).forceLoad();\n }\n } else {\n showMessageDialog(getResources().getString(R.string.message), getResources().getString(R.string.no_int), 1);\n }\n }", "private void waitForBackgroupTasks() {\n this.objectStore.getAllObjectIDs();\n this.objectStore.getAllEvictableObjectIDs();\n this.objectStore.getAllMapTypeObjectIDs();\n }", "public void notifyLoaded();", "private boolean waitLoaded(String instanceId)\n\t{\n\t\treturn m_loadMonitors.get(instanceId).waitProcedureLoaded();\n\t}", "@Override\n protected void update()\n {\n final double DENSITY = this.getResources().getDisplayMetrics().scaledDensity;\n final ArrayList<BarChart.SeriesInfo> SERIES = new ArrayList<>();\n\n final Thread LOAD_GRAPH = new Thread() {\n @Override\n public void run() {\n final StatsActivity SELF = StatsActivity.this;\n int idForLegendX = R.string.label_week;\n\n SELF.getSelections();\n\n if( SELF.graphType == GraphType.Yearly ) {\n idForLegendX = R.string.label_year;\n }\n else\n if( SELF.graphType == GraphType.Monthly ) {\n idForLegendX = R.string.label_month;\n }\n\n final String LEGEND_X = SELF.getString( idForLegendX );\n\n SELF.runOnUiThread( () -> {\n switch( SELF.graphType ) {\n case Yearly:\n SELF.calculateDataForYearsStats( SELF.selectedYear, SERIES );\n break;\n case Monthly:\n SELF.calculateDataForMonthsStats( SELF.selectedYear, SERIES );\n break;\n case Weekly:\n SELF.calculateDataForWeeksStats(\n SELF.selectedYear, SELF.selectedMonth, SERIES );\n break;\n default:\n Log.e( LOG_TAG, \"unsupported graph type\" );\n }\n\n final BarChart CHART = new BarChart( DENSITY, SERIES );\n\n CHART.setLegendX( LEGEND_X );\n CHART.setLegendY( settings.getDistanceUnits().toString() );\n CHART.setShowLabels( true );\n SELF.chartView.setScaleType( ImageView.ScaleType.MATRIX );\n SELF.chartView.setImageDrawable( CHART );\n });\n }\n };\n\n LOAD_GRAPH.start();\n }", "public synchronized void informModuleEndLoading(Module module) {\n\t\tModuleStat stat = getModuleStat(module);\n\t\tstat.waitLoading = false;\n\t}", "@Override\n public void run() {\n adapterOverView.notifyDataSetChanged();\n\n // hide progress bar\n progressBarInOverViewWait.setVisibility(View.GONE);\n\n // change var for false if end getting data - can't start new request if old one is not finish\n isGetingDataFromMSSQL = false;\n }", "private void progressStuff() {\n cd = new ConnectionDetector(getActivity());\n parser = new JSONParser();\n progress = new ProgressDialog(getActivity());\n progress.setMessage(getResources().getString(R.string.loading));\n progress.setIndeterminate(false);\n progress.setCancelable(true);\n // progress.show();\n }", "@Test(timeout = 5000)\n public void graphTest_runtime() {\n int v=1000*50, e=v*6;\n graph g = graph_creator(v,e,1);\n // while(true) {;}\n }", "public void start() {\r\n\t\tif (animationFigure instanceof TrainFigure) {\r\n\t\t\t((TrainFigure) animationFigure).setBusyColor(org.eclipse.draw2d.ColorConstants.red);\r\n\t\t}\r\n\t\tcounter = 1;\r\n\t\t//notify Listeners\r\n\t\tanimationFigure.notifyAnimationListener(new AnimationStartedEvent(animationFigure, AnimationStartedEvent.BUSY_STARTED));\r\n\t\tthis.stopped=false;\r\n\t\tmap.getDisplay().asyncExec(this);\r\n\t}", "void waitAll();", "public void waitToFinish()\n {\n while(!this.finished)\n {\n try\n {\n Thread.sleep(1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n }", "private void drawGraph() {\n // you can show warning messages now\n imrGuiBean.showWarningMessages(true);\n addGraphPanel();\n setButtonsEnable(true);\n }", "private void loadContent()\n {\n // locking the function to prevent the adapter\n // from calling multiples async requests with\n // the same definitions which produces duplicate\n // data.\n locker.lock();\n\n // this function contruct a GraphRequest to the next paging-cursor from previous GraphResponse.\n GraphRequest nextGraphRequest = lastGraphResponse.getRequestForPagedResults(GraphResponse.PagingDirection.NEXT);\n\n // if we reached the end of our pages, the above method 'getRequestForPagedResults'\n // return 'null' object\n if(nextGraphRequest != null)\n {\n // for clarificating and formatting purposes\n // I declared the callback besides the members\n // variables.\n nextGraphRequest.setCallback(callback);\n nextGraphRequest.executeAsync();\n }\n }", "public void loadGraph_Database(double lon1, double lon2, double lat1, double lat2, String name) {\n double time_graph = System.currentTimeMillis();\n System.out.println(\"============================================================\");\n geoDatabaseConnection connection = new geoDatabaseConnection(dbhost, dbport, dbuser, dbpasswd, dbname);\n \n // Graph generieren\n File file = new File(name + \".DAT\");\n // Graph von DB laden\n System.out.println(\"Fetching Data from DB and building graph\");\n try {\n connection.connect();\n graph = connection.getGraph(new Position(lon1, lat1), new Position(lon2, lat2), name);\n FileOutputStream fos = new FileOutputStream(file.getName());\n ObjectOutputStream out2 = new ObjectOutputStream(fos);\n out2.writeObject(graph);\n out2.close();\n fos.close();\n time_graph = (System.currentTimeMillis() - time_graph) / 1000;\n System.out.println(\"Fetching Data and building graph took: \" + time_graph + \"sec\");\n System.out.println(\"============================================================\");\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.toString());\n e.printStackTrace();\n System.exit(1);\n }\n }", "private void completeLoad() {\n if (boardFragment == null) {\n FragmentManager fm = getSupportFragmentManager();\n boardFragment = (BoardFragment) fm.findFragmentById(android.R.id.content);\n }\n boardFragment.setData(posts, threadLinks);\n\n setProgressBarIndeterminateVisibility(false);\n if (refreshItem != null) {\n refreshItem.setVisible(true);\n }\n }", "public static void idle(){\n Logger.getGlobal().log(Level.INFO,\" Waiting....\");\n }", "public void loading() {\n if (state == null) {\n state = new NodeState();\n }\n state.setState(ENodeState.Loading);\n }", "private void start() {\n\t\twhile(!navi.pathCompleted())\n\t\t{\n\t\t\tThread.yield();\n\t\t\t\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "protected void updateLoading()\n {\n scheduled = false;\n\n if (!valid)\n return;\n\n while (loading.size() < numConnections) {\n updateActiveStats();\n\n final TileInfo tile;\n synchronized (toLoad) {\n if (toLoad.isEmpty())\n break;\n tile = toLoad.last();\n if (tile != null) {\n toLoad.remove(tile);\n }\n }\n if (tile == null) {\n break;\n }\n\n tile.state = TileInfoState.Loading;\n synchronized (loading) {\n if (!loading.add(tile)) {\n Log.w(\"RemoteTileFetcher\", \"Tile already loading: \" + tile.toString());\n }\n }\n\n if (debugMode)\n Log.d(\"RemoteTileFetcher\",\"Starting load of request: \" + tile.fetchInfo.urlReq);\n\n // Set up the fetching task\n tile.task = client.newCall(tile.fetchInfo.urlReq);\n\n if (tile.isLocal) {\n // Try reading the data in the background\n new CacheTask(this,tile).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,(Void)null);\n } else {\n startFetch(tile);\n }\n }\n\n updateActiveStats();\n }", "protected void onStartLoading() { forceLoad();}", "public boolean loadProgress() {\n return false;\n }", "public void waitForContentLoad() {\n verifyPageIsOpened(currentPage.get(), \"Please open some page before the waiting for content to load.\");\n currentPage.get().waitLoadFinished();\n }", "public void refreshGraphData() {\n\t\tLOGGER.finest(\"Finding builds to use for NeoLoad graphs. Currently I see \" + buildsAndDocs.size());\n\t\ttry {\n\t\t\tNeoLoadReportDoc doc = null;\n\t\t\tfinal Map<AbstractBuild<?, ?>, NeoLoadReportDoc> newBuildsAndDocs = new LinkedHashMap<AbstractBuild<?, ?>, NeoLoadReportDoc>();\n\n\t\t\t// look through all builds of the job\n\t\t\tfor (final AbstractBuild<?, ?> build: project.getBuilds()) {\n\t\t\t\tdoc = findXMLResultsFile(build);\n\n\t\t\t\t// if the correct file was found, and\n\t\t\t\t// only include successful builds.\n\t\t\t\tif (build != null && build.getResult() != null && build.getResult().isBetterThan(Result.FAILURE)) {\n\n\t\t\t\t\t// add the html results link to the build if it's not already there.\n\t\t\t\t\t// this is done here as well for builds that exist and don't already have the action.\n\t\t\t\t\t// this covers the case when the plugin is uninstalled, the action is lost,\n\t\t\t\t\t// and then the plugin is reinstalled.\n\t\t\t\t\tNeoResultsAction.addActionIfNotExists(build);\n\n\t\t\t\t\t// find the xml results file.\n\t\t\t\t\tdoc = findXMLResultsFile(build);\n\n\t\t\t\t\t// if the correct file was found\n\t\t\t\t\tif (doc != null) {\n\t\t\t\t\t\tnewBuildsAndDocs.put(build, doc);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// switch out the data for the new view\n\t\t\tfinal Map<AbstractBuild<?, ?>, NeoLoadReportDoc> oldBuildsAndDocs = buildsAndDocs;\n\t\t\tbuildsAndDocs = newBuildsAndDocs;\n\t\t\toldBuildsAndDocs.clear();\n\t\t} catch (final Exception e) {\n\t\t\tLOGGER.log(Level.SEVERE, \"Error finding NeoLoad xml results. \" + e.getMessage(), e);\n\t\t}\n\n\t\tLOGGER.finer(\"Found \" + buildsAndDocs.size() + \" builds to use for NeoLoad graphs.\");\n\t}", "public void CondWait(){\n try {\r\n trainCond.await();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Area.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public void run() {\n GenerationDetail detail = ga.getDetail();\n generationLabel.setText(String.valueOf(detail.getGeneration()+1));\n averageFitnessLabel.setText(String.valueOf(detail.getAverageFitness()));\n maxFitnessLabel.setText(String.valueOf(detail .getMaxFitness()));\n minFitnessLabel.setText(String.valueOf(detail.getMinFitness()));\n progressBar.setValue(100 * (detail.getGeneration())/ Integer.valueOf(times-1));\n }", "public abstract boolean isLoadCompleted();", "public void run() {\n\t\tfor(int i = 0;i < seconds;i++) {\n\t\t\ttry\n\t\t\t{\n\t\t\t Thread.sleep(1000);\t\t//Ping every 1 second\n\t\t\t dataset.addToDataset(pinger.pingIpAddress(), Integer.toString(pinger.getPingCount()));\n\t\t\t chart.paintAgain(chart, dataset.getDataset(),ip);\n\t\t\t}\n\t\t\tcatch(InterruptedException e)\n\t\t\t{\n\t\t\t Thread.currentThread().interrupt();\n\t\t\t}\n\t\t}\n\t}", "protected void scheduleLoading()\n {\n if (!valid)\n return;\n\n if (!scheduled) {\n Handler handler = new Handler(getLooper());\n handler.post(this::updateLoading);\n }\n }", "private void waitBetweenRead() {\n\t\ttry {\n\t\t\twait(250); // wait 250 ms before collecting data again\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "private void processProfilePlot() {\r\n DivaClientService.computeProfilePlot(900, 900,\r\n new AsyncCallback<ProfilePlotResults>() {\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Selection_Manager.connError();\r\n SelectionManager.Busy_Task(false, true);\r\n }\r\n\r\n @Override\r\n public void onSuccess(ProfilePlotResults result) {\r\n if (profilePlotComponent != null) {\r\n topMidLayout.remove(profilePlotComponent.getLayout());\r\n profilePlotComponent.getLayout().removeFromParent();\r\n profilePlotComponent.remove();\r\n }\r\n if (pcaPlotComponent != null) {\r\n topMidLayout.remove(pcaPlotComponent.getPCAComponent());\r\n pcaPlotComponent.getPCAComponent().removeFromParent();\r\n pcaPlotComponent.remove();\r\n }\r\n\r\n profilePlotComponent = new ProfilePlotComponent(result.getUrl(), Selection_Manager, DivaClientService, result.getImgHeight(), result.getImgWidth(), middlePanelWidth);\r\n topMidLayout.add(profilePlotComponent.getLayout());\r\n if (!init) {\r\n SelectionManager.Busy_Task(false, true);\r\n }\r\n if (init) {\r\n viewPCAChart(0, 1);\r\n }\r\n }\r\n });\r\n }", "protected void waitUntilCommandFinished() {\n }", "public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void run() {\n super.run();\n for (int i = 0; i < times; i++) {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n // TODO Auto-generated method stub\n GenerationDetail detail = ga.getDetail();\n generationLabel.setText(String.valueOf(detail.getGeneration()+1));\n averageFitnessLabel.setText(String.valueOf(detail.getAverageFitness()));\n maxFitnessLabel.setText(String.valueOf(detail .getMaxFitness()));\n minFitnessLabel.setText(String.valueOf(detail.getMinFitness()));\n progressBar.setValue(100 * (detail.getGeneration())/ Integer.valueOf(times-1));\n }\n });\n }\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile(true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000*20);\r\n\t\t\t\t\t\tas.generateDiagModel(dataset);\r\n\t\t\t\t\t\tRDFReasoning.output(dataset);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n protected void onStartLoading() {\n progressBar.setVisibility(View.VISIBLE);\n forceLoad();\n }", "private void initiateLoader() {\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo networkInfo = null;\n if (connMgr != null) {\n networkInfo = connMgr.getActiveNetworkInfo();\n }\n\n // If there is a network connection, fetch data\n if (networkInfo != null && networkInfo.isConnected()) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n avi.show();\n loadingIndicator.setVisibility(View.VISIBLE);\n errorContainer.setVisibility(View.GONE);\n LoaderManager loaderManager = getSupportLoaderManager();\n String url = BASE_URL + \"&from=\" + fromDate;\n url += \"&to=\" + toDate;\n url += \"&page=\" + currentPageNo;\n url += \"&sortBy=\" + sortPreference;\n if (queryText != null) {\n url += \"&q=\" + queryText;\n }\n\n Bundle args = new Bundle();\n args.putString(URL_KEY, url);\n if (forceLoad) {\n loaderManager.restartLoader(LAST_LOADER_ID, args, this);\n forceLoad = false;\n } else {\n LAST_LOADER_ID = NEWS_LOADER_ID;\n }\n if (!loaderInitiated) {\n loaderManager.initLoader(NEWS_LOADER_ID, args, this);\n loaderInitiated = true;\n } else {\n loaderManager.restartLoader(NEWS_LOADER_ID, args, this);\n }\n } else {\n avi.hide();\n loadingIndicator.setVisibility(View.GONE);\n ((TextView) errorContainer.findViewById(R.id.tvErrorDesc)).setText(R.string.no_conn_error_message);\n errorContainer.setVisibility(View.VISIBLE);\n }\n }", "@Override\n protected ArrayList<Map<String,Object>> doInBackground(Void... params) {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n }\n return datas;\n }", "private void completeSimulation(double gravity, double initialSpeed, int angle, double maxHeight, double maxHeightTime, double reach){\r\n this.resultArea.setText(\"\");\r\n\t if (angle == 0){\r\n\t\t JOptionPane.showMessageDialog(this,\"Os parâmetros de velocidade inicial e alcance fornecidos são incompatíveis.\",\"Erro de parâmetros\",JOptionPane.ERROR_MESSAGE);\r\n\t } else {\r\n\t \tthis.resultArea.append(\"Dadas as informações iniciais para esta situação, o lançamento \"\r\n\t \t+\"do projétil alcançou uma altura máxima de \" + String.valueOf((float)maxHeight)\r\n\t \t+\" metros em \" + String.valueOf((float)maxHeightTime) + \" segundos, alcançando \"\r\n\t \t+ String.valueOf((float)reach) + \" metros em \"+2*maxHeightTime+ \" segundos.\");\r\n\t }\r\n\t this.reachField.setText(String.valueOf((double)reach));\r\n\t this.mHeightField.setText(String.valueOf((double)maxHeight));\r\n\t this.gravityField.setText(String.valueOf((double)gravity));\r\n\t this.speedField.setText(String.valueOf((double)initialSpeed));\r\n\t this.angleSlider.text.setText(String.valueOf((int)angle));\r\n \r\n Point point = new Point();\r\n this.graphPanel.reach = (int)reach;\r\n this.graphPanel.maxHeight = (int)maxHeight;\r\n this.graphPanel.points.clear();\r\n if (angle != 90){\r\n int lastX = 0;\r\n for (int x=0; x <= reach; x++){\r\n point = this.ball.getParablePoint(x);\r\n this.graphPanel.points.add(point);\r\n //this.resultArea.append(x+\"m = (\"+point.getX()+\" , \"+point.getY()+\")\\n\");\r\n lastX = (int)point.getX();\r\n }\r\n this.graphPanel.points.add(new Point(lastX,0));\r\n } else {\r\n for (int y=0; y <= 150; y++){\r\n point.setLocation(0,y);\r\n this.graphPanel.points.add(point);\r\n //this.resultArea.append(y+\"m = (\"+point.getX()+\" , \"+point.getY()+\")\\n\");\r\n }\r\n }\r\n if (angle != 0)this.graphPanel.startAnimation();\r\n //this.graphPanel.repaint();\r\n //this.resultArea.append(\"Quantidade de pontos = \"+this.graphPanel.points.size());\r\n }", "private static void laterShowNewAtlas() {\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n displayNewAtlas();\n }\n });\n }", "private void waitFPS() {\n try {\n Thread.sleep((int) (1000.0f / 60.0f));\n } catch (InterruptedException e) {\n logger.error(\"Unable to wait some milli's !\", e);\n }\n }", "void createGraphForDistributedSingleLoad();", "public void onTick() {\n if (bfs) {\n if (b.hasNext()) {\n b.next();\n }\n }\n if (dfs) {\n if (d.hasNext()) {\n d.next();\n }\n }\n }", "public void waitForLoad() {\n\tExpectedCondition<Boolean> pageLoadCondition = new ExpectedCondition<Boolean>()\r\n\t { \r\n public Boolean apply(WebDriver driver) \r\n {\r\n\t return ((JavascriptExecutor)driver).executeScript(\"return document.readyState\").equals(\"complete\");\r\n\t\t }\r\n\t\t };\r\n\t// a\r\n\t\t if((new WebDriverWait(driver, 0.1).until(PageLoadCondition))==false){\r\n\t\t \t \t\r\n\t\t \t//Takesscreenshot is a java class - screenshot code\r\n\t\t \tTakesScreenshot scrShot=((TakesScreenshot)driver);\r\n\t\t \tFile SrcFile=scrShot.getScreenshotAs(OutputType.FILE);\r\n\t\t \tFile DestFile=new File(fileWithPath);\r\n\t\t \tFileUtils.copyFile(SrcFile, DestFile);\r\n\t\t \tSyso(\"page failed to load in 0.1 sec, refer screenshot saved in ___\");\r\n\t\t }\r\n\t\t// b \r\n\t\t if ((new WebDriverWait(driver, 5).until(PageLoadCondition))==true)){\r\n\t\t System.out.println(\"page loaded in 5 sec\");\t\r\n\t\t }\r\n\t}", "private void showLoading() {\n hideNoNetwork();\n mRecipesBinding.fragmentRecipesProgressBar.setVisibility(View.VISIBLE);\n }", "public void loadStatus (){\n\t}", "public void startLoading() {\n projects.clear();\n processContainer.setVisibility(View.VISIBLE);\n progressSpinner.setVisibility(View.VISIBLE);\n progressText.setVisibility(View.VISIBLE);\n progressText.setText(\"Getting Items...\"); // Text updated using SetProgress()\n listView.setVisibility(View.GONE);\n }", "@Override\n\t\t\tprotected Void doInBackground() throws Exception {\n\t\t\t\tif (!verifyStartEndVerticesExist(true, false)) {\n\t\t\t\t\tsetRunning(false);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Queue\n\t\t\t\tQueue<Vertex> q = new LinkedList<Vertex>();\n\t\t\t\t\n\t\t\t\t// set start vertex as visited\n\t\t\t\tpanel.getStartVertex().setVisited(true);\n\t\t\t\tq.add(panel.getStartVertex());\n\t\t\t\twhile (!q.isEmpty()) {\n\t\t\t\t\tVertex v = q.remove();\n\t\t\t\t\tv.setSelected(true);\n\t\t\t\t\tpublish();\n\t\t\t\t\tThread.sleep(panel.getCurrentDelay());\n\t\t\t\t\tfor (Vertex vertex : getNeighbors(v)) {\n\t\t\t\t\t\tvertex.setHighlighted();\n\t\t\t\t\t\tpublish();\n\t\t\t\t\t\tThread.sleep(panel.getCurrentDelay());\n\t\t\t\t\t\tif (!vertex.isVisited()) {\n\t\t\t\t\t\t\tvertex.setVisited(true);\n\t\t\t\t\t\t\tvertex.setParent(v);\n\t\t\t\t\t\t\tq.add(vertex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tv.setSelected(false);\n\t\t\t\t\tv.setHighlighted();\n\t\t\t\t\tpublish();\n\t\t\t\t\tThread.sleep(panel.getCurrentDelay());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"BFS Finished!\");\n\t\t\t\tpublish();\n\t\t\t\tsetRunning(false);\n\t\t\t\treturn null;\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tchart = new ComboChart();\r\n\t\t\t\tpanel.add(chart);\r\n\t\t\t\tisReady = true;\r\n\t\t\t}", "@Override\n protected Void doInBackground(Void... params) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n // Get workout image from database\n getWorkoutGalleryImagesFromDatabase();\n return null;\n }", "public static void waitForPageLoad() {\n\n\t\tif (!WebController.driver.getCurrentUrl().contains(\"uhc.com/dashboard\") && !WebController.driver.getCurrentUrl().contains(\"myuhc.com/member/\") && !WebController.driver.getCurrentUrl().contains(\"=securityQuestion\")) {\n\t\t\tWaitForLoadingOverlay();\n\t\t}\n\n\t\tJavascriptExecutor js = null;\n\t\tfor (int i = 0; i < AppConfiguration.getWaitTime(); i++) {\n\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tjs = (JavascriptExecutor) WebController.driver;\n\t\t\tif (js.executeScript(\"return document.readyState\").toString().equals(\"complete\"))\n\t\t\t\tbreak;\n\n\t\t}\n\t}", "public void waitForPageToLoad() {\n Wait<WebDriver> wait = new WebDriverWait(WebDriverManager.getDriver(), 90);\n wait.until(new Function<WebDriver, Boolean>() {\n public Boolean apply(WebDriver driver) {\n return String\n .valueOf(((JavascriptExecutor) driver).executeScript(\"return document.readyState\"))\n .equals(\"complete\");\n }\n });\n try {\n wait.until(ExpectedConditions.invisibilityOfElementLocated(By.id(\"waitMessage_div\")));\n wait.until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(\"//div[contains(text(),'Loading')]\")));\n // waitForPageToLoad();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void waitServersReady() {\n }", "private void loadData() {\r\n titleProperty.set(TITLE);\r\n imageView.setImage(null);\r\n scrollPane.setContent(null);\r\n final Task<Void> finisher = new Task<Void>() {\r\n @Override\r\n protected Void call() throws Exception {\r\n Platform.runLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n buffer = replay.politicalBuffer;\r\n output = new WritableImage(replay.bufferWidth, replay.bufferHeight);\r\n output.getPixelWriter().setPixels(0, 0, replay.bufferWidth, replay.bufferHeight, PixelFormat.getIntArgbPreInstance(), buffer, 0, replay.bufferWidth);\r\n progressBar.progressProperty().unbind();\r\n progressBar.setProgress(0);\r\n statusLabel.textProperty().unbind();\r\n statusLabel.setText(l10n(\"replay.map.loaded\"));\r\n scrollPane.setContent(null);\r\n imageView.setImage(output);\r\n scrollPane.setContent(imageView);\r\n int fitWidth = Integer.parseInt(settings.getProperty(\"map.fit.width\", \"0\"));\r\n int fitHeight = Integer.parseInt(settings.getProperty(\"map.fit.height\", \"0\"));\r\n imageView.setFitHeight(fitHeight);\r\n imageView.setFitWidth(fitWidth);\r\n lock.release();\r\n }\r\n });\r\n return null;\r\n }\r\n };\r\n progressBar.progressProperty().bind(finisher.progressProperty());\r\n statusLabel.textProperty().bind(finisher.titleProperty());\r\n replay.loadData(finisher);\r\n }", "public void waitUntilPageLoad(WebDriver driver) \n\t{\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t}", "public void run() {\r\n ouputProgressModel.setPogressStarted(true);\r\n try {\r\n for (int i = 0; i <= 100; i += 10) {\r\n // pause the thread\r\n Thread.sleep(PROCCESS_SLEEP_LENGTH);\r\n // update the percent value\r\n ouputProgressModel.setPercentComplete(i);\r\n SessionRenderer.render(\"progressExample\");\r\n }\r\n }\r\n catch (InterruptedException e) { }\r\n ouputProgressModel.setPogressStarted(false);\r\n }", "public void begin() {\n if (!checkParams()) return;\n\n buildModel();\n buildSchedule();\n buildDisplay();\n\n displaySurf.display();\n populationPlot.display();\n }", "@Override\n public void onRefresh() {\n new LoadScholsTask(this).execute();\n }", "public void draw()\r\n\t\t{\r\n\t\tfor(PanelStationMeteo graph: graphList)\r\n\t\t\t{\r\n\t\t\tgraph.repaint();\r\n\t\t\t}\r\n\t\t}", "public void waitForContentLoad() {\n // TODO implement generic method to wait until page content is loaded\n\n // wait.until(...);\n // ...\n }", "public void buildGraph(){\n\t}", "private void fetchData() {\r\n if (fetchDialogDataInBackground != null && fetchDialogDataInBackground.getStatus() != AsyncTask.Status.FINISHED)\r\n fetchDialogDataInBackground.cancel(true);\r\n fetchDialogDataInBackground = new FetchDialogDataInBackground();\r\n fetchDialogDataInBackground.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\r\n }", "public static void loadGraph_Database(Position[] bBox, String name) {\n // Graph aus Datei laden\n double time_graph = System.currentTimeMillis();\n System.out.println(\"============================================================\");\n Application.connection = new geoDatabaseConnection(dbhost, dbport, dbuser, dbpasswd, dbname);\n\n // Graph generieren\n File file = new File(name + \".DAT\");\n // Graph von DB laden\n Application.println(\"Fetching Data from DB and building graph\");\n try {\n Application.connection.connect();\n graph = Application.connection.getGraph(bBox, name);\n FileOutputStream fos = new FileOutputStream(file.getName());\n ObjectOutputStream out2 = new ObjectOutputStream(fos);\n out2.writeObject(graph);\n out2.close();\n fos.close();\n time_graph = (System.currentTimeMillis() - time_graph) / 1000;\n Application.println(\"Fetching Data and building graph took: \" + time_graph + \"sec\");\n double time_init = System.currentTimeMillis();\n Application.println(\"Init Graph\");\n graph.initGraph();\n time_init = (System.currentTimeMillis() - time_init) / 1000;\n Application.println(\"Init Graph took \" + time_init + \" Secs\");\n Application.println(\"============================================================\");\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.toString());\n e.printStackTrace();\n System.exit(1);\n }\n }", "private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}", "public void checkHostGraphAndNextStep() {\r\n\t\tif (this.hostGraph != null) {\r\n\t\t\tthis.stepPanel.setStep(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\tthis.gragraNames.setSelectedIndex(-1);\r\n\t\t}\r\n\t}", "private void submit() {\r\n\t\tassignTracked();\r\n\t\tBkitPoma.startLoading(constants.BkitPoma_startLoading_wating());\r\n\t\tpostSubmit();\r\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tpdia = new ProgressDialog(mContext);\n\t\t\tpdia.setMessage(\"Loading Circles...\");\n\t\t\tpdia.show();\n\t\t\tsuper.onPreExecute();\n\t\t}", "void showMainLoadingWheel();", "public void waitLoadPage() {\n WebDriverHelper.waitUntil(inputTeamName);\n }", "void loadResourceLocator() {\r\n\t\tfinal BackgroundProgress bgp = new BackgroundProgress();\r\n\t\tbgp.setLocationRelativeTo(this);\r\n\t\tSwingWorker<Void, Void> worker = new SwingWorker<Void, Void>() {\r\n\t\t\t/** The resource locator. */\r\n\t\t\tprivate ResourceLocator rl;\r\n\t\t\t/** The galaxy model. */\r\n\t\t\tprivate GalaxyModel galaxyMap;\r\n\t\t\t/** The building model. */\r\n\t\t\tprivate BuildingModel buildingMap;\r\n\t\t\t/** The colony graphics. */\r\n\t\t\tprivate ColonyGFX colonyGraphics;\r\n\t\t\t/** Surface list. */\r\n\t\t\tprivate List<TileEntry> surfaces = JavaUtils.newArrayList();\r\n\t\t\t/** Buildings list. */\r\n\t\t\tprivate List<TileEntry> buildings = JavaUtils.newArrayList();\r\n\t\t\t/** Races. */\r\n\t\t\tprivate Set<String> races = JavaUtils.newHashSet();\r\n\t\t\t/** The loaded text renderer. */\r\n\t\t\tTextRenderer txt;\r\n\t\t\t@Override\r\n\t\t\tprotected Void doInBackground() throws Exception {\r\n\t\t\t\ttry {\r\n\t\t\t\t\trl = config.newResourceLocator();\r\n\t\t\t\t\tfinal ResourceLocator rl0 = rl;\r\n\t\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\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\tMapEditor.this.rl = rl0;\r\n\t\t\t\t\t\t\tsetLabels(deferredLanguage);\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\tfinal ExecutorService exec = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());\r\n\t\t\t\t\tfinal WipPort wip = new WipPort(3);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\texec.execute(new Runnable() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tgalaxyMap = new GalaxyModel();\r\n\t\t\t\t\t\t\t\t\tgalaxyMap.processGalaxy(rl, \"en\", \"campaign/main/galaxy\", exec, wip);\r\n\t\t\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\t\t\twip.dec();\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\texec.execute(new Runnable() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tbuildingMap = new BuildingModel();\r\n\t\t\t\t\t\t\t\t\tbuildingMap.processBuildings(rl, \"en\", \"campaign/main/buildings\", exec, wip);\r\n\t\t\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\t\t\twip.dec();\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} finally {\r\n\t\t\t\t\t\twip.dec();\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\twip.await();\r\n\t\t\t\t\t\t\texec.shutdown();\r\n\t\t\t\t\t\t\texec.awaitTermination(Long.MAX_VALUE, TimeUnit.MILLISECONDS);\r\n\t\t\t\t\t\t} catch (InterruptedException ex) {\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\tcolonyGraphics = new ColonyGFX(rl);\r\n\t\t\t\t\tcolonyGraphics.load(\"en\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttxt = new TextRenderer(rl);\r\n\t\t\t\t\tlabels.load(rl, \"en\", \"campaign/main\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tprepareLists(galaxyMap, buildingMap, surfaces, buildings, races);\r\n\t\t\t\t} catch (Throwable t) {\r\n\t\t\t\t\tt.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tprotected void done() {\r\n\t\t\t\tbgp.dispose();\r\n\t\t\t\tMapEditor.this.galaxyModel = galaxyMap;\r\n\t\t\t\tMapEditor.this.buildingModel = buildingMap;\r\n\t\t\t\trenderer.colonyGFX = colonyGraphics;\r\n\t\t\t\t\r\n\t\t\t\trenderer.selection = new Tile(1, 1, ImageUtils.recolor(colonyGraphics.tileEdge, 0xFFFFFF00), null);\r\n\t\t\t\trenderer.areaAccept = new Tile(1, 1, ImageUtils.recolor(colonyGraphics.tileEdge, 0xFF00FFFF), null);\r\n\t\t\t\trenderer.areaEmpty = new Tile(1, 1, ImageUtils.recolor(colonyGraphics.tileEdge, 0xFF808080), null);\r\n\t\t\t\trenderer.areaDeny = new Tile(1, 1, ImageUtils.recolor(colonyGraphics.tileCrossed, 0xFFFF0000), null);\r\n\t\t\t\trenderer.areaCurrent = new Tile(1, 1, ImageUtils.recolor(colonyGraphics.tileCrossed, 0xFFFFCC00), null);\r\n\t\t\t\t\r\n\t\t\t\trenderer.selection.alpha = 1.0f;\r\n\t\t\t\trenderer.areaAccept.alpha = 1.0f;\r\n\t\t\t\trenderer.areaDeny.alpha = 1.0f;\r\n\t\t\t\trenderer.areaCurrent.alpha = 1.0f;\r\n\t\t\t\r\n\t\t\t\trenderer.txt = this.txt;\r\n\t\t\t\trenderer.txt.setUseStandardFonts(ui.viewStandardFonts.isSelected());\r\n\t\t\t\tbuildTables(surfaces, buildings, races);\r\n\t\t\t}\r\n\t\t};\r\n\t\tworker.execute();\r\n\t\tbgp.setVisible(true);\r\n\t}", "public void fetchDataStock(){\n// stocks.add(new Stock(1,\"bitcoin\",new Double(7000),new Double(7500),new Double(5),null));\n\n stockFetcher = new StockAsyncTask ();\n stockFetcher.execute();\n\n\n // TODO:\n\n refresh(5000);\n\n\n }", "private void fillSaxData() {\n\t\tpd = ProgressDialog.show(this, null, \"Loading Shack Messages...\", true, true); \r\n\r\n\t\t// use the class run() method to do work\r\n\t\tThread thread = new Thread(this); \r\n\t\tthread.start();\r\n\t}" ]
[ "0.68696785", "0.6379958", "0.6314573", "0.6245048", "0.61112016", "0.60415983", "0.6023276", "0.5999543", "0.5981638", "0.5934741", "0.5853754", "0.58363837", "0.5830591", "0.5816362", "0.57985884", "0.5746751", "0.5745889", "0.5677628", "0.5647572", "0.5602171", "0.56015646", "0.55663157", "0.5554214", "0.55474627", "0.5503044", "0.5487331", "0.5479527", "0.54632515", "0.5445034", "0.5413376", "0.54080105", "0.5407177", "0.5387675", "0.5376925", "0.5374232", "0.53675157", "0.5366486", "0.5350741", "0.534321", "0.5333754", "0.5330987", "0.5330753", "0.5317301", "0.5314282", "0.5313595", "0.5307331", "0.53037035", "0.5277062", "0.52622443", "0.52587336", "0.5257935", "0.52428746", "0.52375036", "0.5226269", "0.52244306", "0.5224245", "0.5218694", "0.52175075", "0.52160496", "0.5215299", "0.5200718", "0.5182417", "0.5181813", "0.51800257", "0.5176439", "0.51448053", "0.5138718", "0.5137023", "0.51355666", "0.5134669", "0.51340747", "0.5131068", "0.51297724", "0.51289576", "0.51283735", "0.51244485", "0.51230675", "0.5121255", "0.5113276", "0.51121986", "0.51118636", "0.51063323", "0.50953436", "0.5094821", "0.50911415", "0.5086862", "0.508287", "0.5081291", "0.50795054", "0.507791", "0.5077004", "0.5073544", "0.50715315", "0.50682104", "0.505939", "0.5056803", "0.5049475", "0.50451547", "0.50441366", "0.50392073", "0.5027574" ]
0.0
-1
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { try{ Connection conn = dbconnection.getConnection(); data = FXCollections.observableArrayList(); ResultSet rs = conn.createStatement().executeQuery("SELECT * FROM gameweb.item"); while (rs.next()){ data.add(new gamedetail(rs.getString(2), rs.getString(3), rs.getString(4), rs.getString(5), rs.getString(6))); } } catch(SQLException ex){ System.err.println("Error" + ex); } colGameType.setCellValueFactory(new PropertyValueFactory<>("gameType")); colGameTitle.setCellValueFactory(new PropertyValueFactory<>("gameTitle")); colDescription.setCellValueFactory(new PropertyValueFactory<>("description")); colRegularPrice.setCellValueFactory(new PropertyValueFactory<>("rPrice")); colDiscountedPrice.setCellValueFactory(new PropertyValueFactory<>("dPrice")); gameTable.setItems(null); gameTable.setItems(data); // TODO }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Controller()\n\t{\n\n\t}", "private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }", "public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }", "public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }", "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "public Controller() {\n\t\tthis(null);\n\t}", "public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}", "private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}", "public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}", "protected void initialize() {\n super.initialize(); // Enables \"drive straight\" controller\n }", "public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }", "protected CityController() {\r\n\t}", "public void initialize() {\n warpController = new WarpController(this);\n kitController = new KitController(this);\n crafting = new CraftingController(this);\n mobs = new MobController(this);\n items = new ItemController(this);\n enchanting = new EnchantingController(this);\n anvil = new AnvilController(this);\n blockController = new BlockController(this);\n hangingController = new HangingController(this);\n entityController = new EntityController(this);\n playerController = new PlayerController(this);\n inventoryController = new InventoryController(this);\n explosionController = new ExplosionController(this);\n requirementsController = new RequirementsController(this);\n worldController = new WorldController(this);\n arenaController = new ArenaController(this);\n arenaController.start();\n if (CompatibilityLib.hasStatistics() && !CompatibilityLib.hasJumpEvent()) {\n jumpController = new JumpController(this);\n }\n File examplesFolder = new File(getPlugin().getDataFolder(), \"examples\");\n examplesFolder.mkdirs();\n\n File urlMapFile = getDataFile(URL_MAPS_FILE);\n File imageCache = new File(dataFolder, \"imagemapcache\");\n imageCache.mkdirs();\n maps = new MapController(this, urlMapFile, imageCache);\n\n // Initialize EffectLib.\n if (com.elmakers.mine.bukkit.effect.EffectPlayer.initialize(plugin, getLogger())) {\n getLogger().info(\"EffectLib initialized\");\n } else {\n getLogger().warning(\"Failed to initialize EffectLib\");\n }\n\n // Pre-create schematic folder\n File magicSchematicFolder = new File(plugin.getDataFolder(), \"schematics\");\n magicSchematicFolder.mkdirs();\n\n // One-time migration of legacy configurations\n migrateConfig(\"enchanting\", \"paths\");\n migrateConfig(\"automata\", \"blocks\");\n migrateDataFile(\"automata\", \"blocks\");\n\n // Ready to load\n load();\n resourcePacks.startResourcePackChecks();\n }", "public ClientController() {\n }", "public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}", "public ListaSEController() {\n }", "boolean InitController();", "public MenuController() {\r\n\t \r\n\t }", "@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}", "public CustomerController() {\n\t\tsuper();\n\n\t}", "public End_User_0_Controller() {\r\n\t\t// primaryStage = Users_Page_Controller.primaryStage;\r\n\t\t// this.Storeinfo = primaryStage.getTitle();\r\n\t}", "public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}", "private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}", "public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}", "public PlantillaController() {\n }", "public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}", "public IfController()\n\t{\n\n\t}", "public TournamentController()\n\t{\n\t\tinitMap();\n\t}", "public GeneralListVueController() {\n\n\t}", "private ClientController() {\n }", "public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}", "private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }", "public LogMessageController() {\n\t}", "public LoginPageController() {\n\t}", "public ControllerEnfermaria() {\n }", "public ProvisioningEngineerController() {\n super();\n }", "private StoreController(){}", "public GenericController() {\n }", "@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}", "public Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}", "public MapController() {\r\n\t}", "@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}", "private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }", "public WfController()\n {\n }", "public Controller() {\n\n lastSearches = new SearchHistory();\n\n }", "private ClientController(){\n\n }", "public LoginController() {\r\n }", "public PersonasController() {\r\n }", "private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }", "public StoreController() {\n }", "public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}", "public LoginController() {\r\n\r\n }", "public final void init(final MainController mainController) {\n this.mainController = mainController;\n }", "public SMPFXController() {\n\n }", "public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }", "public GUIController() {\n\n }", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "public void init(final Controller controller){\n Gdx.app.debug(\"View\", \"Initializing\");\n \n this.controller = controller;\n \n //clear old stuff\n cameras.clear();\n \n //set up renderer\n hudCamera = new OrthographicCamera();\n hudCamera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n \n batch = new SpriteBatch();\n igShRenderer = new ShapeRenderer();\n shapeRenderer = new ShapeRenderer();\n \n //set up stage\n stage = new Stage();\n \n //laod cursor\n cursor = new Pixmap(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/images/cursor.png\"));\n\n controller.getLoadMenu().viewInit(this);\n \n initalized = true;\n }", "@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }", "public ControllerTest()\r\n {\r\n }", "public SearchedRecipeController() {\n }", "public FilmOverviewController() {\n }", "public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "public RootLayoutController() {\n }", "public MehController() {\n updateView(null);\n }", "public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}", "public WorkerController(){\r\n\t}", "public TipoInformazioniController() {\n\n\t}", "private void initializeMealsControllers() {\n trNewPetMeal = MealsControllersFactory.createTrNewPetMeal();\n trObtainAllPetMeals = MealsControllersFactory.createTrObtainAllPetMeals();\n trDeleteMeal = MealsControllersFactory.createTrDeleteMeal();\n trUpdateMeal = MealsControllersFactory.createTrUpdateMeal();\n }", "public ProductOverviewController() {\n }", "public ProduktController() {\r\n }", "public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}", "private void initializeMedicationControllers() {\n trNewPetMedication = MedicationControllersFactory.createTrNewPetMedication();\n trObtainAllPetMedications = MedicationControllersFactory.createTrObtainAllPetMedications();\n trDeleteMedication = MedicationControllersFactory.createTrDeleteMedication();\n trUpdateMedication = MedicationControllersFactory.createTrUpdateMedication();\n }", "public PersonLoginController() {\n }", "public PremiseController() {\n\t\tSystem.out.println(\"Class PremiseController()\");\n\t}", "public TaxiInformationController() {\n }", "public LoginController() {\n\t\treadFromFile();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Controller(){\n initControl();\n this.getStylesheets().addAll(\"/resource/style.css\");\n }", "public CreateDocumentController() {\n }", "public ControllerRol() {\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public Controller () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }", "public void init() {\n \n }", "public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}", "public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}", "public SessionController() {\n }", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public MainFrameController() {\n }", "public LicenciaController() {\n }", "public NearestParksController() {\n this.bn = new BicycleNetwork();\n this.pf = new LocationFacade();\n // this.bn.loadData();\n }", "public MotorController() {\n\t\tresetTachometers();\n\t}", "public AwTracingController() {\n mNativeAwTracingController = nativeInit();\n }", "public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}", "public HomeController() {\n }", "public HomeController() {\n }" ]
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.6912564", "0.688884", "0.6881247", "0.68776786", "0.68723065", "0.6868163", "0.68672407", "0.6851157", "0.6846883", "0.6840198", "0.68382674", "0.68338853", "0.6795918", "0.67823315", "0.6766882", "0.67650586", "0.6750353", "0.6749068", "0.6745654", "0.6743223", "0.67401046", "0.6727867", "0.6723379", "0.6695514", "0.6689967", "0.66892517", "0.66791916", "0.6677345", "0.66644365", "0.6664202", "0.66616154", "0.66532296", "0.66481894", "0.6644939", "0.6639398", "0.6633576", "0.66312426", "0.662608", "0.66258574", "0.66105217", "0.6606984", "0.66024727", "0.6597095", "0.6580141", "0.65786153", "0.65752715", "0.6574144", "0.6551536", "0.655142", "0.6547574", "0.6545647", "0.6541474", "0.6529243", "0.65284246", "0.6525593", "0.6523344", "0.6519832", "0.65134746", "0.65079254", "0.6497635", "0.64952356", "0.6493943", "0.6492926", "0.6483847", "0.6483173", "0.648183", "0.6479119", "0.64789915", "0.6476928", "0.64734083", "0.6465272", "0.64616114", "0.6444024", "0.64379543", "0.6431962", "0.64292705", "0.6425357", "0.6417148", "0.6416786", "0.64161026", "0.64161026" ]
0.0
-1
Called when the mouse enters this Widget
public abstract void mouseEntered(MouseEnteredEvent mouseEnteredEvent);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void mouseEntered() {\n\t\t\n\t}", "public void mouseEntered (MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "@Override\n public void mouseEntered(MouseEvent e) {}", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\r\n public void mouseEntered(MouseEvent e) {\r\n }", "@Override\r\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "public void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mouseEntered (MouseEvent m) { }", "@Override\n public void mouseEntered(MouseEvent e)\n {\n }", "@Override\n public void mouseEntered(MouseEvent e)\n {\n }", "@Override\n\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n public void mouseEntered(MouseEvent arg0) {\n \n }", "public void mouseEntered(MouseEvent e) {\n\n }", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public void mouseEntered(MouseEvent mouseEnter)\r\n\t{\r\n\t\t\r\n\t}", "public void mouseEntered( MouseEvent event ){}", "@Override\r\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n public void mouseEntered(MouseEvent e) {\n }", "@Override\r\n public void mouseEntered(MouseEvent e) {\n }", "void mouseEntered(MouseEvent mouseEvent);", "public void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void mouseEntered(MouseEvent e) {\n\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n\n }", "public void mouseEntered(MouseEvent e)\n {}", "@Override\r\n public void mouseEntered(MouseEvent e) {\n }", "@Override\r\n public void mouseEntered(MouseEvent e) {\n }", "@Override\r\n public void mouseEntered(MouseEvent e) {\n }", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\tl1.setText(\"You entered the mouse\");\r\n\t}", "public void mouseEntered(MouseEvent e) {\n }", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(MouseEvent e){\n }", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t}", "@Override\n\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\n\t\t\t\t\t}", "@Override\n public void mouseEntered(final MouseEvent event){}", "public void mouseEntered(MouseEvent mEvent) {}", "@Override\r\n\t\t public void mouseEntered(MouseEvent arg0) {\n\t\t }", "@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\n\t\t\t\t\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}" ]
[ "0.7815815", "0.7550758", "0.75164723", "0.75164723", "0.75164723", "0.75164723", "0.75164723", "0.75164723", "0.75164723", "0.74722046", "0.74704295", "0.74405354", "0.74311197", "0.74298966", "0.7427038", "0.7424565", "0.7423195", "0.7423195", "0.7411155", "0.7406396", "0.73949087", "0.7386528", "0.7386528", "0.7386528", "0.738462", "0.738038", "0.7379562", "0.7379386", "0.7379386", "0.73781586", "0.73760736", "0.73758876", "0.73758876", "0.73758876", "0.73758876", "0.73758876", "0.7366942", "0.7366942", "0.7366942", "0.7366942", "0.73645705", "0.73574245", "0.73574245", "0.73574245", "0.7357212", "0.73560506", "0.735402", "0.73483187", "0.73483187", "0.73483187", "0.73483187", "0.73483187", "0.73483187", "0.73483187", "0.73483187", "0.73483187", "0.73483187", "0.73483187", "0.73483187", "0.73483187", "0.73483187", "0.7348298", "0.73481554", "0.7345779", "0.7345779", "0.7345779", "0.7345779", "0.73406804", "0.73406804", "0.73379034", "0.73377854", "0.73377854", "0.73377854", "0.73377854", "0.73377854", "0.73377854", "0.733722", "0.73367053", "0.73314786", "0.7323933", "0.73232025", "0.73232025", "0.73232025", "0.73232025", "0.73219234", "0.73218364", "0.73218364", "0.73218364", "0.73218364", "0.73218364", "0.73218364", "0.73218364", "0.73218364", "0.73218364", "0.73218364", "0.73218364", "0.73218364", "0.73218364", "0.73218364", "0.73218364", "0.73218364" ]
0.0
-1
Called when the mouse exits this Widget
public abstract void mouseExited(MouseExitedEvent mouseExitedEvent);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseExited(MouseEvent me) {\n endDrag();\n }", "@Override\n\tpublic void mouseExited() {\n\t\t\n\t}", "public void mouseExited(MouseEvent e) {}", "public void mouseExited(MouseEvent e) {}", "public void mouseExited(MouseEvent e) {}", "public void mouseExited(MouseEvent e) {}", "public void mouseExited (MouseEvent m) {}", "public void mouseExited(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void mouseExited(MouseEvent arg0) {\n \n }", "public void mouseExited(MouseEvent mouseExit)\r\n\t{\r\n\t\t\r\n\t}", "void mouseExited(MouseEvent mouseEvent);", "@Override\r\n\tpublic void mouseExited(MouseEvent e) {\n\t\tl1.setText(\"You exited the mouse\");\r\n\t}", "@Override\r\n public void mouseExited(MouseEvent e) {\n }", "public void mouseExited(MouseEvent e)\n {}", "@Override\n public void mouseExited(MouseEvent evt) {\n }", "@Override\n public void mouseExited(MouseEvent e)\n {\n }", "@Override\n public void mouseExited(MouseEvent e)\n {\n }", "@Override\r\n public void mouseExited(MouseEvent e) {\n }", "@Override\r\n public void mouseExited(MouseEvent e) {\n }", "@Override\n public void mouseExited(MouseEvent e) {\n }", "@Override\n\tpublic void mouseExitHandler(MouseEvent e) {\n\n\t}", "public void mouseExited(MouseEvent event){\t\n\t\t// We left the card without releasing the mouse press, so we're not counting it as a click\n\t\tclickflag = false;\n\t}", "@Override\r\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "public void mouseExited(MouseEvent e) {\n\n }", "public void mouseExited(MouseEvent evt) {\r\n }", "public void mouseExited(MouseEvent e) {\n }", "public void mouseExited(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseExited(MouseEvent e) {\r\n\t}", "@Override\n public void mouseExited(MouseEvent arg0) {\n\n }", "@Override\r\n public void mouseExited(MouseEvent me) {\n }", "@Override\r\n public void mouseExited(MouseEvent e) {\n }", "@Override\r\n public void mouseExited(MouseEvent e) {\n }", "@Override\r\n public void mouseExited(MouseEvent e) {\n }", "@Override\r\n\t\t public void mouseExited(MouseEvent arg0) {\n\t\t }", "public void mouseExited(MouseEvent arg0) {\n\n }", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\r\n\t}", "public void mouseExited(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseExited(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseExited(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public void mouseExited(MouseEvent e) {\n }", "@Override\n public void mouseExited(MouseEvent me) {\n }", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t}", "public void mouseExited(MouseEvent e) {\n\n }", "@Override\n public void mouseExited(MouseEvent e){\n }", "@Override\n public void mouseExited(MouseEvent e) {\n\n }", "@Override\n public void mouseExited(MouseEvent e) {\n\n }", "@Override\n public void mouseExited(MouseEvent e) {\n\n }", "@Override\n public void mouseExited(MouseEvent e) {\n\n }", "@Override\n public void mouseExited(MouseEvent e) {\n\n }", "public void mouseExited(MouseEvent arg0) {\n // TODO Auto-generated method stub\n\n }", "public void mouseExited(MouseEvent e) {\n }", "@Override\n public void mouseExited(final MouseEvent event){}", "public void mouseExited(MouseEvent e)\r\n\t{\r\n\t}", "@Override\n public void mouseExited(MouseEvent e) {\n }", "@Override\n public void mouseExited(MouseEvent e) {\n }", "@Override\n public void mouseExited(MouseEvent e) {\n }", "@Override\n public void mouseExited(MouseEvent e) {\n }", "@Override\n public void mouseExited(MouseEvent e) {\n }", "@Override\r\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t\t\t}", "public void mouseExited(MouseEvent e) {\n \t\t\r\n \t}", "public void mouseExited(MouseEvent e) {\n\t}", "@Override\n\t\t\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\n\t\t\t\t\t}", "@Override\n\tpublic void mouseExited(MouseEvent event) {\n\t\t\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent e)\r\n\t{\n\r\n\t}", "@Override\r\n public void mouseExited(MouseEvent e) {\n\r\n }", "public void mouseExited(MouseEvent e)\n\t{\n\t}", "@Override\r\n\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "public void mouseExited(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent me) {\n\t}", "@Override\r\n public void mouseExited(MouseEvent e)\r\n {\n\r\n }", "@Override\r\n\tpublic void mouseExited(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent e) {\n\t\t\r\n\t}" ]
[ "0.78975856", "0.78431594", "0.7825285", "0.7825285", "0.7825285", "0.7825285", "0.78023905", "0.774318", "0.77161", "0.76893246", "0.76862514", "0.7686045", "0.76812947", "0.7676839", "0.76753205", "0.7668591", "0.7668591", "0.76685685", "0.76685685", "0.7665749", "0.76653117", "0.76575387", "0.76544636", "0.76544636", "0.76544636", "0.76544636", "0.76544636", "0.7653592", "0.76516944", "0.76484936", "0.76478666", "0.76366293", "0.7635848", "0.7632927", "0.7632897", "0.7632897", "0.7632897", "0.763063", "0.76278466", "0.76277536", "0.76277536", "0.76277536", "0.76277536", "0.76277536", "0.76277536", "0.76277536", "0.76277536", "0.76277536", "0.76277536", "0.76277536", "0.76277536", "0.76277536", "0.7625405", "0.7625405", "0.7625405", "0.76247555", "0.76247555", "0.76247555", "0.76233363", "0.7621028", "0.7617511", "0.76162755", "0.76132816", "0.7606879", "0.7606879", "0.7606879", "0.7606879", "0.7606879", "0.76064044", "0.76052946", "0.7603359", "0.7600563", "0.7600195", "0.7600195", "0.7600195", "0.7600195", "0.7600195", "0.7592323", "0.7592254", "0.7583746", "0.75810623", "0.7579619", "0.7578045", "0.7577857", "0.75744987", "0.7573378", "0.7573378", "0.7573378", "0.7572438", "0.75688803", "0.75688803", "0.75688803", "0.75688803", "0.75688803", "0.75688803", "0.75688803", "0.75688803", "0.7567049", "0.75651956", "0.7563237", "0.7563237" ]
0.0
-1
Called when a mouse button is pressed on this Widget.
public abstract void mousePressed(MousePressedEvent mp);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void mousePressed(MouseEvent me) {\r\n\t\tbuttonType = me.getButton();\r\n\t\tselect(me.getX(), me.getY());\r\n\t}", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tif(!mouseDown) {\n\t\t\tclickButton();\n\t\t}\n\t\tmouseDown = true;\n\t}", "private void pressed(MouseEvent e)\r\n {\n }", "public void mousePressed() {\n }", "public void mousePressed( MouseEvent event ){}", "@Override\n public void mouseDown(MouseEvent me) {\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_PRESSED);\n }", "@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}", "public void mousePressed (MouseEvent event) {}", "public void mousePressed(MouseEvent e) {}", "public void mousePressed(MouseEvent e) {}", "public void mousePressed(MouseEvent e) {}", "@Override\r\n public void mousePressed(MouseEvent e) {\n }", "public void mousePressed() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isPressed = true;\n\t\t\tclick();\n\t\t}\n\t}", "public void mousePressed(MouseEvent e) {\n mDown=true;\n int i=0;\n // Iterate through each button bounding box\n for(Rectangle r : buttonBounds) {\n // Check if the click point intersects with the rectangle's area\n if(r.contains(e.getPoint())) {\n // If it does, call the buttonCallback with the appropriate button display text\n buttonCallback(buttonNames.get(i));\n }\n i++;\n }\n }", "@Override\n public void mousePressed(MouseEvent e) {\n }", "private void button1MousePressed(MouseEvent e) {\n }", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {}", "@Override\n public void mousePressed(MouseEvent me) {\n }", "@Override\r\n public void mousePressed(MouseEvent e) {\n }", "@Override\r\n public void mousePressed(MouseEvent e) {\r\n\r\n }", "@Override\r\n public void mousePressed(MouseEvent e) {\r\n\r\n }", "@Override\n\tpublic void mousePressed(MouseEvent event) {\n\t\t\n\t}", "public void mouseClicked(int ex, int ey, int button) {\r\n\t}", "@Override\n public void mousePressed(MouseEvent e)\n {\n }", "@Override\n public void mousePressed(MouseEvent e)\n {\n }", "public void mousePressed(MouseEvent e) {\n }", "void mousePressed(MouseEvent mouseEvent);", "@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n public void mousePressed(MouseEvent e) {\n\n }", "@Override\r\n public void mousePressed(MouseEvent e) {\n }", "@Override\r\n public void mousePressed(MouseEvent e) {\n }", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "public void mousePressed(MouseEvent e) {\n }", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n public void mousePressed(MouseEvent e) {\n }", "public void mousePressed(MouseEvent e) {\r\n }", "@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t}", "@Override\n\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t}", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t}", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t}", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t}", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent me) {\n\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mousePressed(MouseEvent e) {\n\n }", "@Override\n public void mousePressed(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n //System.out.println(\"->Mouse: Presionando Click \" + boton );\n }", "@Override\r\n\tpublic void onMouseDown(Widget who, int x, int y) {\n\r\n\t}", "@Override\n\tpublic void mousePressed(MouseEvent m) {\n\t}", "protected void mouseClicked(int par1, int par2, int par3)\n {\n if (this.buttonId >= 0)\n {\n \t// no setting minimap keybinds to mouse button. Can do so if wanted if I change ZanMinimap to not send every input to Keyboard for processing. Check if it's mouse first\n // this.options.setKeyBinding(this.buttonId, -100 + par3);\n // ((GuiButton)this.controlList.get(this.buttonId)).displayString = this.options.getOptionDisplayString(this.buttonId);\n this.buttonId = -1;\n // KeyBinding.resetKeyBindingArrayAndHash();\n }\n else\n {\n super.mouseClicked(par1, par2, par3);\n }\n }", "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void mousePressed(MouseEvent e)\n\t{\n\t}", "public void buttonPressed(){\r\n\t\tsetBorder(new BevelBorder(10));\r\n\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}" ]
[ "0.7537399", "0.7469145", "0.7311588", "0.7285756", "0.72104406", "0.7204417", "0.71924704", "0.7138893", "0.71371603", "0.71371603", "0.71371603", "0.70864004", "0.7085472", "0.70819384", "0.7067204", "0.7063611", "0.70605415", "0.70494133", "0.70405483", "0.70372", "0.70372", "0.70363945", "0.7031563", "0.70254576", "0.70254576", "0.70196927", "0.70104706", "0.70049685", "0.70049685", "0.7000194", "0.69993985", "0.69993985", "0.69938046", "0.69938046", "0.69938046", "0.69938046", "0.69938046", "0.69938046", "0.69938046", "0.69938046", "0.69938046", "0.69938046", "0.69861716", "0.69861716", "0.6982872", "0.6982872", "0.6982872", "0.6982872", "0.6982872", "0.69808644", "0.69789284", "0.69789284", "0.69789284", "0.69789284", "0.69708365", "0.69690675", "0.6965961", "0.6965359", "0.69651824", "0.69547546", "0.69547546", "0.6952732", "0.6950999", "0.6950999", "0.6950999", "0.69483906", "0.69483906", "0.69483906", "0.69483906", "0.69483906", "0.6948086", "0.69474036", "0.69474036", "0.69456846", "0.69456846", "0.69456846", "0.69456846", "0.6940598", "0.6940243", "0.69346595", "0.6933026", "0.6930739", "0.6925125", "0.6924854", "0.6924854", "0.6924854", "0.6924854", "0.6924854", "0.6924854", "0.6924854", "0.6924854", "0.6924854", "0.6924854", "0.6924854", "0.69230026", "0.69230026", "0.69230026", "0.69230026", "0.6922402", "0.69209665", "0.6918739" ]
0.0
-1
Called when the mouse is moved over this Widget. Do not make computationally expensive things here because this method is constantly called by Display
public abstract void mouseMoved(int displayX, int displayY);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onMouseMove(Widget who, int x, int y) {\n\r\n\t}", "public void mouseMoved() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isHovered = true;\n\t\t}else {\n\t\t\tthis.isHovered = false;\n\t\t}\n\t}", "private void mouseMove() {\n if (this.holding) {\n Point point = new Point(mousex, mousey);\n this.addPixel(point);\n }\n }", "public void mouseMoved (MouseEvent me) { mouse_x = me.getX(); mouse_y = me.getY(); repaint(); }", "public void mouseMoved(MouseEvent e) {\n\t\tupdateHud();\r\n\t}", "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved(MouseEvent e){}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void mouseMoved(MouseEvent arg0) {\n \n }", "@Override\r\n public void mouseMoved(MouseEvent e) {\r\n\r\n }", "public void mouseMoved(MouseEvent e) {}", "@Override\r\n public void mouseMoved(MouseEvent e) {\n }", "public void mouseMoved(MouseEvent mouseMove)\r\n\t{\r\n\t\t\r\n\t}", "void onMouseMoved(double mouseX, double mouseY, double prevMouseX, double prevMouseY);", "@Override\r\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\r\n\t}", "public void mouseMoved(MouseEvent me) {\n\n\t\t\t}", "public void mouseMoved(MouseEvent event) {\n }", "public void update() {\n\t\t\n\t\tVector size = new Vector(Main.frame.getContentPane().getWidth() + 64, 64 + 64);\n\t\tposition = new Vector(0, Main.frame.getContentPane().getHeight() - 40);\n\t\t\n\t\tRectangle rect = new Rectangle(position, size);\n\t\t\n\t\tif (rect.contains(Mouse.getVector())) {\n\t\t\troom.isMouseOverGUI = true;\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\r\n\t\t\t}", "@Override\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n public void mouseMoved(MouseEvent e) {\n }", "@Override\n\tpublic void mouseMoved(MouseEvent e)\n\t{\n\t}", "@Override\n public void mouseMoved(MouseEvent e) {\n\n }", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t}", "@Override\r\n public void handleMouseMovedEvent(Mouse.MotionEvent event) {\n }", "@Override\n public void mouseMoved(MouseEvent e){\n \n }", "private static void OnMouseMove(Object sender, MouseEventArgs e)\r\n {\r\n // Un-vanish the cursor on any mouse move. \r\n _ShowCursor();\r\n }", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}", "public void mouseMoved(MouseEvent e) {\n }", "@Override\n public void mouseMoved(MouseEvent e) {}", "@Override\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t}", "public void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\n\r\n\t}", "@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t}", "@Override\n public void mouseDragged(MouseEvent e){\n newerlabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \n }", "@Override \n\tpublic void mouseMoved(MouseEvent e){\n\t}", "public void mouseReleased(MouseEvent mEvent) \n {\n /* take no action while game running */\n if(GAME_RUNNING)\n return;\n\n /* only respond to button 1 */\n if(mEvent.getButton() != MouseEvent.BUTTON1)\n return;\n\n /* TODO: remove debug msg */\n\t\t//System.out.println(\"Mouse released on the \"+ mEvent.getComponent().getClass().getName() +\" @ \"+ mEvent.getX() + \", \" + mEvent.getY());\n\n if(mEvent.getComponent() instanceof GameCanvas)\n {\n /* handle mouseReleased events on GameCanvas \n -> this implies click or dragging started on gamecanvas too */\n switch(SELECT_MODE)\n {\n case NONE:\n //nothing\n break;\n case SELECTED:\n //nothing\n break;\n //===================\n case DRAGGING:\n //mouse released on gamecanvas during dragging = move widget to new loc, or if move was far enough south = re-add to scroller\n /* don't continue if this is a click type drag, wait for the click handler to deal with it */\n if(DRAG_TYPE == DragType.CLICK)\n break;\n\n if(mEvent.getY() >= 465)\n {\n /* put widget back in scroller */\n /* TODO: remove debug msg */\n //System.out.println(\"Returned \" + selectedWidget.getName() + \" to the widget scroller.\");\n \n String widgetType = selectedWidget.getClass().getName();\n ws.addWidget(widgetType.substring(widgetType.lastIndexOf(\".\")+1,widgetType.length()), 1);\n\n timWorld.removeWidget(selectedWidget);\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n canvas.repaint();\n }\n else\n {\n /* test if position is within canvas boundary + try to move */\n \t if ( mEvent.getX()+clickOffsetX >= 0 && mEvent.getX()+clickOffsetX <= 780 && mEvent.getY()+clickOffsetY >= 0 &&\n \t timWorld.moveWidget(selectedWidget, mEvent.getX()+clickOffsetX, mEvent.getY()+clickOffsetY) )\n \t {\n // successfully moved to new position\n \t\t\t if (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t\t {\n \t\t\t\t ap.playGoodSound();\n \t\t\t }\n \n /* TODO: remove debug msg */\n \t\t //System.out.println(\"mouseReleased successfully moved \" + selectedWidget.getName() + \" to \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \", widget.getPosition returns \" + selectedWidget.getPosition());\n \n // change to selection mode\n SELECT_MODE = SelectMode.SELECTED;\n canvas.setCursor(Cursor.getDefaultCursor());\n canvas.repaint();\n \t }\n \t else\n \t {\n // move to new pos unsuccessful\n \t\tif (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t{\n \t\t\tap.playBadSound();\n \t\t\t\t }\n /* TODO: remove debug msg */\n \t \t\t //System.out.println(\"New position \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \" not valid for \" + selectedWidget.getName() + \", returning it to widget scroller.\");\n \n SELECT_MODE = SelectMode.SELECTED;\n canvas.setCursor(Cursor.getDefaultCursor());\n canvas.repaint();\n \t }\n }\n break;\n //===================\n case ADDING:\n //shouldn't be able to get here, can't release mouse on gamecanvas while adding from scroller\n break;\n }\n }\n else if(mEvent.getComponent() instanceof WidgetScroller)\n {\n /* handle mouseReleased events on widget scroller \n -> implies click or drag started on widgetscroller which should mean a widget is being PRESS DRAGGED out*/\n if(SELECT_MODE == SelectMode.ADDING && DRAG_TYPE == DragType.PRESS)\n {\n Point canvasPos = canvas.getMousePosition();\n\n if(canvasPos != null)\n {\n /* mouse was released on gamecanvas, try to place the widget */\n if(timWorld.moveWidget(selectedWidget,(float)canvasPos.getX(),(float)canvasPos.getY()))\n {\n /* placement successful */\n SELECT_MODE = SelectMode.SELECTED;\n canvas.setCursor(Cursor.getDefaultCursor());\n ws.decreaseWidget(addedWidget);\n canvas.repaint();\n }\n else\n {\n /* placement unsuccessful, cancel adding */\n SELECT_MODE = SelectMode.NONE;\n canvas.setCursor(Cursor.getDefaultCursor());\n selectedWidget = null;\n canvas.repaint();\n }\n }\n else\n {\n /* mouse was released outside of the gamecanvas, cancel adding */\n SELECT_MODE = SelectMode.NONE;\n canvas.setCursor(Cursor.getDefaultCursor());\n selectedWidget = null;\n canvas.repaint();\n }\n }\n }\n }", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\n\t\tl1.setText(\"You moved the mouse\"+e.getX()+\",\"+e.getY());\r\n\t}", "@Override\n public void mouseMoved(final MouseEvent me)\n {\n \tif(!om.equals(\"hotspot_interaction\") && !om.equals(\"figure_placement_interaction\"))\n \t{\n\t \tfor(int i=hotspots.size()-1; i > -1; --i)\n\t \t\tif(hotspots.elementAt(i).inside(me.getPoint()))\n\t \t\t\thotspots.elementAt(i).setHighlighted(true);\n\t \t\telse\n\t \t\t\thotspots.elementAt(i).setHighlighted(false);\n \t}\n\n \tdrawHSLabel = null;\n \tif (!om.equals(\"figure_placement_interaction\")) {\n \tfor(int i=hotspots.size()-1; i > -1; --i)\n \t\tif(hotspots.elementAt(i).inside(me.getPoint()))\n \t\t\tthis.drawHSLabel = hotspots.elementAt(i);\n \t}\n \tmpos = me.getPoint();\n \trepaint();\n }", "public void mouseMoved(MouseEvent mEvent) \n {\n /* don't do anything while game is running */\n if(GAME_RUNNING)\n return;\n\n /* TODO: remove debug msg */\n statusMsg = new String(\"mouseMoved @ \" + mEvent.getX() + \", \" + mEvent.getY() + \" on \" + mEvent.getComponent().getClass().getName());\n\n if(mEvent.getComponent() instanceof GameCanvas)\n {\n /* handle mouse movement on gamecanvas while game is not running */\n switch(SELECT_MODE)\n {\n case NONE:\n //nothing\n break;\n case SELECTED:\n //nothing\n break;\n case DRAGGING:\n case ADDING:\n /* update mouseX and mouseY for bounding box drawing of the widget being dragged or added */\n mouseX = mEvent.getX();\n mouseY = mEvent.getY();\n canvas.repaint();\n break;\n }\n }\n\t}", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "@Override\n\t\tpublic void mouseMoved(MouseEvent e) \n\t\t{\n\t\t\t\n\t\t}", "public void mouseMoved(MouseEvent evt) { }", "@Override\r\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\r\n\t\t}", "private void moved(MouseEvent e)\r\n {\n }", "@Override\r\n\tpublic void onMouseDown(Widget who, int x, int y) {\n\r\n\t}", "@Override\n public void mouseDragged(MouseEvent e){\n lblNewLabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \n }", "public void mouseMoved(MouseEvent e) {\n \tapp.updateCoord(e.getX(),e.getY());\n }", "public void mouseDragOver() {\n canvasDrawer.setEraseFalse();\n canvasArea.setCursor(Cursor.DEFAULT);\n }", "public void mouseMoved(MouseEvent me)\n\t{\n m_mousePosition.x = me.getX();\n m_mousePosition.y = me.getY();\n m_brush = frame.getBrushValue();\n //System.out.println(m_mousePosition.x + \" \" + m_mousePosition.y + \" \");\n repaint();\n\t}", "public void mouseMoved(MouseEvent e) {\n\t\tmainPanel2.mouseX = e.getX()-25;\r\n\t\tmainPanel2.mouseY = e.getY()-30;\r\n\t\tmainPanel2.repaint();\r\n\t}", "private void drag() {\n Point mousePosition = calculateMouseLocation();\n getArea().x = mousePosition.getX() - (mouseX - prevX);\n getArea().y = mousePosition.getY() - (mouseY - prevY);\n // Ensure that weird resizing stuff doesn't happen while moving the\n // window. Idfk why this works, but it does.\n resize();\n getLayout().resize(this, getChildren());\n getLayout().layout(this, getChildren());\n }", "void mouseMoved(double x, double y, MouseEvent e );", "public void mouseMoved(MouseEvent evt) {\r\n }", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tnow_X = 'X';\n\t\tnow_Y = 'X';\n\t\trepaint();\n\t}", "public void mouseMoved(MouseEvent arg0) {\n\t}", "@Override\n public void mouseDragged(MouseEvent e){\n newLabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \n }", "public void mouseMoved(MouseEvent e,double w,double h) throws RemoteException;", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tisMoved = false;\n\t}", "@Override\r\n\tpublic void onMouseUp(Widget who, int x, int y) {\n\r\n\t}", "public void mouseDragged(MouseEvent mEvent) \n {\n /* don't do anything while game is running */\n if(GAME_RUNNING)\n return;\n\n /* TODO: remove debug msg */\n statusMsg = new String(\"mouseDragged @ \" + mEvent.getX() + \", \" + mEvent.getY() + \" on \" + mEvent.getComponent().getClass().getName());\n\n if(mEvent.getComponent() instanceof GameCanvas)\n {\n /* handle mouse dragging on gamecanvas while game is not running */\n switch(SELECT_MODE)\n {\n //=================\n case NONE:\n case SELECTED:\n /* mouse is being dragged but we aren't in drag mode, did this drag start on an unlocked widget? */\n Widget startWidget = timWorld.grabWidget(pressX,pressY); //TODO: add a flag/check so we don't have to continually try to grab in case of failure\n if(startWidget != null && startWidget.isLocked() == false)\n {\n /* mouse dragging started over an unlocked widget, pick it up and begin dragging */\n selectedWidget = startWidget;\n SELECT_MODE = SelectMode.DRAGGING;\n DRAG_TYPE = DragType.PRESS;\n \n clickOffsetX = selectedWidget.getPosition().getX() - pressX;\n clickOffsetY = selectedWidget.getPosition().getY() - pressY;\n \n canvas.repaint();\n }\n break;\n //=================\n case DRAGGING:\n case ADDING:\n /* update mouseX and mouseY for bounding box drawing of the widget being dragged or added */\n mouseX = mEvent.getX();\n mouseY = mEvent.getY();\n canvas.repaint();\n break;\n }\n }\n else if(mEvent.getComponent() instanceof WidgetScroller)\n {\n /* dragging on widget scroller */\n\n /* make sure we aren't already in adding or dragging mode */\n if(SELECT_MODE != SelectMode.ADDING)\n {\n String pressedWidget = ws.getWidgetAt(pressX, pressY);\n if(pressedWidget != null)\n {\n /* pressed on an actual widget, create an instance of it and commence dragging */\n \n // TODO: check for nulls\n addedWidget = pressedWidget;\n selectedWidget = WidgetFactory.createWidget(pressedWidget);\n SELECT_MODE = SelectMode.ADDING;\n DRAG_TYPE = DragType.PRESS;\n\n /* set widget to 0,0 so its boundary will be drawn properly while dragging */\n selectedWidget.setPositionX(0.0f);\n selectedWidget.setPositionY(0.0f);\n\n clickOffsetX = 0;\n clickOffsetY = 0;\n\n canvas.setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));\n\n /* TODO: remove debug msg */\n //System.out.println(\"Picked up \" + pressedWidget + \" from widgetscroller\");\n }\n }\n else\n {\n mouseX = mEvent.getX();\n mouseY = mEvent.getY() + 465;\n canvas.repaint();\n }\n }\n\t}", "private void toolbarEmpMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_toolbarEmpMouseDragged\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n // Move frame by the mouse delta\n setLocation(getLocationOnScreen().x + x - lastX,\n getLocationOnScreen().y + y - lastY);\n lastX = x;\n lastY = y;\n }", "@Override\r\n public void mouseDragged(MouseEvent e) {\r\n int deltaX = e.getXOnScreen() - screenX;\r\n int deltaY = e.getYOnScreen() - screenY; \r\n \r\n setLocation(myX + deltaX, myY + deltaY);\r\n }", "public void mouseMoved (MouseEvent n)\r\n {\r\n \tmouseX = n.getX();\r\n \tmouseY = n.getY();\r\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n mouseXPosition = e.getX();\n }", "@Override\n\tpublic void mouseMoved()\n\t{\n\t\t// clear the last selection\n\t\tif (lastSelected != null) {\n\t\t\tlastSelected.setSelected(false);\n\t\t\tlastSelected = null;\n\t\t\n\t\t}\n\t\tselectMarkerIfHover(stationMarkers);\n\t}", "@Override\n public void nativeMouseMoved(NativeMouseEvent nme) {\n if (Var.timerStart) {\n txtMouse.setText(\"Mouse Moved: \" + nme.getX() + \", \" + nme.getY());\n\n }\n }", "private void handleMoved()\n {\n toolkit.postEvent(new ComponentEvent(target, ComponentEvent.COMPONENT_MOVED));\n }", "public abstract void mouseMoved(Point p);", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tl1.setText(\"You dragged the mouse\");\r\n\t}", "@Override\n public void mouseDragged(final MouseEvent me){\n\n setSkipped(false);\n \tif(om.equals(\"graphic_associate_interaction\") || om.equals(\"graphic_order_interaction\") || om.equals(\"gap_match_interaction\"))\n \t{\n\t \tif(start != null || mov != null)\n\t \t\tmpos = me.getPoint();\n\t \tfor(int i=hotspots.size()-1; i > -1; --i)\n\t \t\tif(hotspots.elementAt(i).inside(me.getPoint()))\n\t \t\t\thotspots.elementAt(i).setHighlighted(true);\n\t \t\telse\n\t \t\t\thotspots.elementAt(i).setHighlighted(false);\n\t \trepaint();\n \t}\n \tif(om.equals(\"graphic_order_interaction\") || om.equals(\"gap_match_interaction\") || om.equals(\"figure_placement_interaction\"))\n \t{\n \t\tif(mov != null)\n \t\t{\n \t\t\tmov.setPos(me.getPoint());\n \t\t}\n \t\tif (om.equals(\"figure_placement_interaction\")) {\n \t\t repaint();\n \t\t}\n \t}\n \tdrawHSLabel = null;\n }", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t//Get mouse screen positions\n\t\tmouseScreenX = arg0.getX();\n\t\tmouseScreenY = arg0.getY();\n\t\t//Convert screen to board position\n\t\tscreenToBoardPos(mouseScreenX, mouseScreenY, mouseBoardPos);\n\t\t//Check if mouse is in the private area\n\t\tmouseInPrivateArea = ObjectFunctions.isInPrivateArea(privateArea, mouseBoardPos.getXI(), mouseBoardPos.getYI());\n\t\tmouseInStacker = ObjectFunctions.isOnShape(id, gameInstance, table.stackerShape, boardToScreenTransformation, mouseBoardPos.getXI(), mouseBoardPos.getYI());\n\n\t\t//Check if some key is pressed\n\t\tif (player != null) {\n\t\t\t//set the mouse position of the player to send to other players\n\t\t\tgameInstance.update(new PlayerMousePositionUpdate(id, player, player, mouseBoardPos.getXI(), mouseBoardPos.getYI()));\n\n\t\t\tif (!player.visitor) {\n\t\t\t\t//Disable action string if mouse moves and no key is pressed\n\t\t\t\tif (downKeys.size() == 0) {\n\t\t\t\t\tplayer.actionString = \"\";\n\t\t\t\t}\n\t\t\t\t//get nearest object concerning the mouse position\n\t\t\t\tObjectInstance nearestObject = ObjectFunctions.getNearestObjectByPosition(this, gameInstance, player, mouseBoardPos.getXI(), mouseBoardPos.getYI(), 1, null);\n\t\t\t\t//do actions if mouse is in the private area or not and there is some nearest object\n\t\t\t\tif (mouseInPrivateArea && nearestObject != null && !arg0.isControlDown() && !arg0.isShiftDown() && !arg0.isAltDown()) {\n\t\t\t\t\tif (hoveredObject != null)\n\t\t\t\t\t{\n\t\t\t\t\t\thoveredObject.state.isActive = false;\n\t\t\t\t\t}\n\t\t\t\t\tnearestObject.state.isActive = false;\n\t\t\t\t\tsetHoveredObject(gameInstance, player, nearestObject);\n\t\t\t\t} else if (!mouseInPrivateArea) {\n\t\t\t\t\tif (nearestObject != null && !nearestObject.state.inPrivateArea) {\n\t\t\t\t\t\tif (hoveredObject == null) {\n\t\t\t\t\t\t\tsetHoveredObject(gameInstance, player, nearestObject);\n\t\t\t\t\t\t} else if (nearestObject.id != hoveredObject.id) {\n\t\t\t\t\t\t\tsetHoveredObject(gameInstance, player, nearestObject);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isDebug && hoveredObject != null) {\n\t\t\t\t\t\t\toutText = \"Hover Object: \" + hoveredObject.id;\n\t\t\t\t\t\t\toutText += \"\\n Select: \" + hoveredObject.state.isSelected;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tunhoverObject(gameInstance, player);\n\t\t\t\t\t\tif (isDebug) {\n\t\t\t\t\t\t\toutText = \" \";\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//TODO do repaint if something happens and not if mouse moved?\n\t\trepaint();\n\t}", "@Override\npublic void mouseMoved(MouseEvent e) {\n Point mouse = e.getPoint();\n isImHover = importHover(mouse.getX(),mouse.getY());\n isExHover = exportHover(mouse.getX(),mouse.getY());\n isImChose = !isExportError();\n if(!isImHover) {\n isImPress = false;\n }\n if(!isExHover) {\n isExPress = false;\n } \n repaint(); \n }", "public void mouseMoved(MouseEvent e)\n\t{\n\t\tint x = e.getX(); int y = e.getY();\n\t\tlabel.setText(\"mouse moved to (\"+x+\", \"+y+\")\");\n\t}", "public void mouseMoved(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n }" ]
[ "0.7509138", "0.7263091", "0.71599776", "0.6851983", "0.68379754", "0.68194884", "0.68194884", "0.68016887", "0.67842466", "0.6756024", "0.6734853", "0.67124796", "0.6697264", "0.6697179", "0.66961724", "0.66870046", "0.6677152", "0.6677152", "0.6666883", "0.66532135", "0.6640344", "0.6639801", "0.66384846", "0.66384846", "0.66384846", "0.66337365", "0.66337365", "0.6625683", "0.6624563", "0.66244036", "0.6614288", "0.66068405", "0.6605226", "0.66043496", "0.6591097", "0.6591097", "0.6585581", "0.6585581", "0.65784353", "0.65784353", "0.65784353", "0.65784353", "0.65784353", "0.65784353", "0.65784353", "0.65784353", "0.65784353", "0.65784353", "0.65784353", "0.6570268", "0.6570268", "0.6570268", "0.6570268", "0.6567093", "0.656671", "0.6565405", "0.65638727", "0.6560681", "0.6543218", "0.6537014", "0.6525844", "0.6524089", "0.6523831", "0.65227586", "0.65188164", "0.6516762", "0.6514425", "0.6514013", "0.65089154", "0.65047795", "0.64691615", "0.64460397", "0.6437026", "0.643201", "0.6413494", "0.6411466", "0.6403115", "0.63750225", "0.63739944", "0.6363284", "0.6362846", "0.63451695", "0.63276213", "0.63183665", "0.63154733", "0.6306988", "0.63052833", "0.6304001", "0.6298987", "0.6279115", "0.62660533", "0.6254", "0.62333214", "0.6223467", "0.622185", "0.62166953", "0.62070537", "0.6200752", "0.6199398", "0.61919177" ]
0.6698635
12
Called when the mouse is dragged (moved while pressing a mouse button down) over this Widget.
public abstract void mouseDragged(MouseDraggedEvent mp);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseDragged(MouseEvent e) {}", "public void mouseDragged(MouseEvent e){}", "public void mouseDragged (MouseEvent e) {}", "public void mouseDragged( MouseEvent event ){}", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t}", "@Override\n public void mouseDragged(MouseEvent arg0) {\n \n }", "public void mouseDragged(MouseEvent mEvent) \n {\n /* don't do anything while game is running */\n if(GAME_RUNNING)\n return;\n\n /* TODO: remove debug msg */\n statusMsg = new String(\"mouseDragged @ \" + mEvent.getX() + \", \" + mEvent.getY() + \" on \" + mEvent.getComponent().getClass().getName());\n\n if(mEvent.getComponent() instanceof GameCanvas)\n {\n /* handle mouse dragging on gamecanvas while game is not running */\n switch(SELECT_MODE)\n {\n //=================\n case NONE:\n case SELECTED:\n /* mouse is being dragged but we aren't in drag mode, did this drag start on an unlocked widget? */\n Widget startWidget = timWorld.grabWidget(pressX,pressY); //TODO: add a flag/check so we don't have to continually try to grab in case of failure\n if(startWidget != null && startWidget.isLocked() == false)\n {\n /* mouse dragging started over an unlocked widget, pick it up and begin dragging */\n selectedWidget = startWidget;\n SELECT_MODE = SelectMode.DRAGGING;\n DRAG_TYPE = DragType.PRESS;\n \n clickOffsetX = selectedWidget.getPosition().getX() - pressX;\n clickOffsetY = selectedWidget.getPosition().getY() - pressY;\n \n canvas.repaint();\n }\n break;\n //=================\n case DRAGGING:\n case ADDING:\n /* update mouseX and mouseY for bounding box drawing of the widget being dragged or added */\n mouseX = mEvent.getX();\n mouseY = mEvent.getY();\n canvas.repaint();\n break;\n }\n }\n else if(mEvent.getComponent() instanceof WidgetScroller)\n {\n /* dragging on widget scroller */\n\n /* make sure we aren't already in adding or dragging mode */\n if(SELECT_MODE != SelectMode.ADDING)\n {\n String pressedWidget = ws.getWidgetAt(pressX, pressY);\n if(pressedWidget != null)\n {\n /* pressed on an actual widget, create an instance of it and commence dragging */\n \n // TODO: check for nulls\n addedWidget = pressedWidget;\n selectedWidget = WidgetFactory.createWidget(pressedWidget);\n SELECT_MODE = SelectMode.ADDING;\n DRAG_TYPE = DragType.PRESS;\n\n /* set widget to 0,0 so its boundary will be drawn properly while dragging */\n selectedWidget.setPositionX(0.0f);\n selectedWidget.setPositionY(0.0f);\n\n clickOffsetX = 0;\n clickOffsetY = 0;\n\n canvas.setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));\n\n /* TODO: remove debug msg */\n //System.out.println(\"Picked up \" + pressedWidget + \" from widgetscroller\");\n }\n }\n else\n {\n mouseX = mEvent.getX();\n mouseY = mEvent.getY() + 465;\n canvas.repaint();\n }\n }\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "void onDragged();", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t}", "public void mouseDragged(MouseEvent event) { }", "@Override\n\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\r\n public void mouseDragged(MouseEvent e) {\n }", "@Override\n public void drag(int x, int y)\n {\n }", "@Override\n\tpublic void mouseDragged(MouseEvent arg0)\n\t{\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t\t\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "public void mouseDragged(MouseEvent e)\n {}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "void mouseDragged(double x, double y, MouseEvent e );", "public void mouseDragged(MouseEvent e) {\n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t}", "public void mouseDragged(MouseEvent me) {\n\n\t\t\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent me) {\r\n\t\tdrag(me.getX(), me.getY());\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tl1.setText(\"You dragged the mouse\");\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t\tmouseClicked(e);\n\t\t\n\t}", "public void mouseDragged( MouseEvent e ) {\n }", "@Override\n public void mouseDragged(MouseEvent e) {\n\n }", "public void mouseDragged(MouseEvent e) {\n\n }", "@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t}", "public void mouseDragged(MouseEvent me) {\n updateDrag(me.getPoint());\n }", "@Override\n public void handleMouseDragged(int x, int y)\n {\n windowManager.mouseDragged(deskXToAbst(x), deskYToAbst(y));\n }", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(int arg0, int arg1, int arg2, int arg3) {\n\n\t}", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "boolean onMouseDragged(double mouseX, double mouseY, double prevMouseX, double prevMouseY);", "public void mouseDragged(MouseEvent event)\n\t\t{}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n public void mouseDragged(java.awt.event.MouseEvent e) {\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "public synchronized void mouseDragged(MouseEvent event) {\n if (_pressedCard != null) {\n _display.drag(event.getX(), event.getY(), _pressedCard);\n }\n _display.repaint();\n }", "@Override\n \tpublic void mouseDragged(MouseEvent e) {\n \t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\n\t\t}", "@Override\r\n\tpublic void onMouseMove(Widget who, int x, int y) {\n\r\n\t}", "public void mouseDragged(MouseEvent mouseEvent) {\n if (mouseEvent.isPrimaryButtonDown()) {\n canvasDrawer.drawDragged(mouseEvent, board, true);\n aliveLabel.setText(\"\" + board.getCellsAlive());\n } else if (mouseEvent.isSecondaryButtonDown()) {\n canvasDrawer.setDragOffset(mouseEvent);\n }\n draw();\n }", "protected abstract boolean dragged();", "@Override\r\n\tpublic void onMouseDown(Widget who, int x, int y) {\n\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\t \t\t\n\t \t}", "public void mouseDragged(MouseEvent event) {\n painterJPanelMouseDragged(event);\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tco.mouseDragged(e);\n\t}", "@Override\r\n\tpublic void onMouseUp(Widget who, int x, int y) {\n\r\n\t}", "@Override\n public void mouseDrop()\n {\n }", "private void drag() {\n Point mousePosition = calculateMouseLocation();\n getArea().x = mousePosition.getX() - (mouseX - prevX);\n getArea().y = mousePosition.getY() - (mouseY - prevY);\n // Ensure that weird resizing stuff doesn't happen while moving the\n // window. Idfk why this works, but it does.\n resize();\n getLayout().resize(this, getChildren());\n getLayout().layout(this, getChildren());\n }", "public void mousePressed(MouseEvent me) {\n startDrag(me.getPoint());\n }", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tisMoved = false;\n\t}", "@FXML\n private void mouseDown(MouseEvent event) {\n preDragX = event.getX();\n preDragY = event.getY();\n }", "@Override\n\t\t\t\tpublic void drag(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer) {\n\t\t\t\t\tgameObject.moveBy(x-gameObject.getWidth()/2, 0);\n\t\t\t\t}", "@Override\r\n public void mousePressed(MouseEvent e) {\n startDrag = new Point(e.getX(), e.getY());\r\n endDrag = startDrag;\r\n repaint();\r\n\r\n }", "public void mouseDragged(MouseEvent e) {\n if (mouseDraggedCmd != null) {\n mouseDraggedCmd.execute();\n }\n }", "@Override\n\tpublic void touchDragged(int screenX, int screenY, int pointer) {\n\t\t\n\t}", "public void mouseReleased(MouseEvent mEvent) \n {\n /* take no action while game running */\n if(GAME_RUNNING)\n return;\n\n /* only respond to button 1 */\n if(mEvent.getButton() != MouseEvent.BUTTON1)\n return;\n\n /* TODO: remove debug msg */\n\t\t//System.out.println(\"Mouse released on the \"+ mEvent.getComponent().getClass().getName() +\" @ \"+ mEvent.getX() + \", \" + mEvent.getY());\n\n if(mEvent.getComponent() instanceof GameCanvas)\n {\n /* handle mouseReleased events on GameCanvas \n -> this implies click or dragging started on gamecanvas too */\n switch(SELECT_MODE)\n {\n case NONE:\n //nothing\n break;\n case SELECTED:\n //nothing\n break;\n //===================\n case DRAGGING:\n //mouse released on gamecanvas during dragging = move widget to new loc, or if move was far enough south = re-add to scroller\n /* don't continue if this is a click type drag, wait for the click handler to deal with it */\n if(DRAG_TYPE == DragType.CLICK)\n break;\n\n if(mEvent.getY() >= 465)\n {\n /* put widget back in scroller */\n /* TODO: remove debug msg */\n //System.out.println(\"Returned \" + selectedWidget.getName() + \" to the widget scroller.\");\n \n String widgetType = selectedWidget.getClass().getName();\n ws.addWidget(widgetType.substring(widgetType.lastIndexOf(\".\")+1,widgetType.length()), 1);\n\n timWorld.removeWidget(selectedWidget);\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n canvas.repaint();\n }\n else\n {\n /* test if position is within canvas boundary + try to move */\n \t if ( mEvent.getX()+clickOffsetX >= 0 && mEvent.getX()+clickOffsetX <= 780 && mEvent.getY()+clickOffsetY >= 0 &&\n \t timWorld.moveWidget(selectedWidget, mEvent.getX()+clickOffsetX, mEvent.getY()+clickOffsetY) )\n \t {\n // successfully moved to new position\n \t\t\t if (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t\t {\n \t\t\t\t ap.playGoodSound();\n \t\t\t }\n \n /* TODO: remove debug msg */\n \t\t //System.out.println(\"mouseReleased successfully moved \" + selectedWidget.getName() + \" to \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \", widget.getPosition returns \" + selectedWidget.getPosition());\n \n // change to selection mode\n SELECT_MODE = SelectMode.SELECTED;\n canvas.setCursor(Cursor.getDefaultCursor());\n canvas.repaint();\n \t }\n \t else\n \t {\n // move to new pos unsuccessful\n \t\tif (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t{\n \t\t\tap.playBadSound();\n \t\t\t\t }\n /* TODO: remove debug msg */\n \t \t\t //System.out.println(\"New position \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \" not valid for \" + selectedWidget.getName() + \", returning it to widget scroller.\");\n \n SELECT_MODE = SelectMode.SELECTED;\n canvas.setCursor(Cursor.getDefaultCursor());\n canvas.repaint();\n \t }\n }\n break;\n //===================\n case ADDING:\n //shouldn't be able to get here, can't release mouse on gamecanvas while adding from scroller\n break;\n }\n }\n else if(mEvent.getComponent() instanceof WidgetScroller)\n {\n /* handle mouseReleased events on widget scroller \n -> implies click or drag started on widgetscroller which should mean a widget is being PRESS DRAGGED out*/\n if(SELECT_MODE == SelectMode.ADDING && DRAG_TYPE == DragType.PRESS)\n {\n Point canvasPos = canvas.getMousePosition();\n\n if(canvasPos != null)\n {\n /* mouse was released on gamecanvas, try to place the widget */\n if(timWorld.moveWidget(selectedWidget,(float)canvasPos.getX(),(float)canvasPos.getY()))\n {\n /* placement successful */\n SELECT_MODE = SelectMode.SELECTED;\n canvas.setCursor(Cursor.getDefaultCursor());\n ws.decreaseWidget(addedWidget);\n canvas.repaint();\n }\n else\n {\n /* placement unsuccessful, cancel adding */\n SELECT_MODE = SelectMode.NONE;\n canvas.setCursor(Cursor.getDefaultCursor());\n selectedWidget = null;\n canvas.repaint();\n }\n }\n else\n {\n /* mouse was released outside of the gamecanvas, cancel adding */\n SELECT_MODE = SelectMode.NONE;\n canvas.setCursor(Cursor.getDefaultCursor());\n selectedWidget = null;\n canvas.repaint();\n }\n }\n }\n }", "public void mouseMoved(MouseEvent e){}", "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved(MouseEvent e) {}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "public void mouseDragged( MouseEvent e ){\n\t\t\t\t\tint xValue, yValue;// comments similar to mousePressed method\n\t\t\t\t\tCoordinate currentMousePosition;\n\t\t\t\t\txValue = e.getX();\n\t\t\t\t\tyValue = e.getY();\n\t\t\t\t\tcurrentMousePosition = new Coordinate(xValue, yValue);\n\t\t\t\t\tmousePositionOnBoard(currentMousePosition);\n\t\t\t\t\trepaint();\n\t\t\t\t}", "@Override\n public void mouseDragged(MouseEvent evt) {\n setLocation(evt.getXOnScreen() - posX, evt.getYOnScreen() - posY);\n }", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t}", "public void mouseMoved(MouseEvent event) {\n }", "public void mouseDragged(MouseEvent mouseEvent)\r\n { \r\n // Do nothing for this\r\n }", "@Override\r\n\tpublic void drag(EditorInterface i, MouseEvent e) {\r\n\t\t\r\n\t\tthis.x = e.getX();\r\n\t\tthis.y = e.getY();\r\n\t}", "@Override\r\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n public void handleMouseMovedEvent(Mouse.MotionEvent event) {\n }", "@Override\r\n public void mouseDragged(MouseEvent e) {\r\n int deltaX = e.getXOnScreen() - screenX;\r\n int deltaY = e.getYOnScreen() - screenY; \r\n \r\n setLocation(myX + deltaX, myY + deltaY);\r\n }", "@Override\n public void mouseMoved(MouseEvent arg0) {\n \n }", "public void mouseDragged(MouseEvent mouseDrag)\r\n\t{\r\n\t\tmouseDraggedX = mouseDrag.getX();\r\n\t\tmouseDraggedY = mouseDrag.getY();\r\n\t\tmouseDraggedFlag = true;\r\n\t\t//System.out.println(\"mouseDraggedX: \" + mouseDraggedX);\r\n\t\t//System.out.println(\"mouseDraggedY: \" + mouseDraggedY);\r\n\t\t\r\n\t\t\r\n\t}", "@Override public void handle(MouseEvent mouseEvent) {\n dragDelta.x = layout.getScene().getWindow().getX() - mouseEvent.getScreenX();\n dragDelta.y = layout.getScene().getWindow().getY() - mouseEvent.getScreenY();\n }", "@Override\n\t\t\t\tpublic void drag(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer) {\n\t\t\t\t\tgameObject.moveBy(0,y-gameObject.getHeight()/2);\n\t\t\t\t}" ]
[ "0.7508158", "0.7507334", "0.74659103", "0.7393685", "0.7383421", "0.737042", "0.7362853", "0.73349005", "0.73349005", "0.7330384", "0.7319548", "0.7306835", "0.72934264", "0.7286808", "0.7280333", "0.7264649", "0.7254511", "0.72417885", "0.72417885", "0.7237732", "0.72367436", "0.72367436", "0.72367436", "0.72367436", "0.72367436", "0.72367436", "0.72367436", "0.72362953", "0.7224693", "0.72237927", "0.7214443", "0.71904665", "0.7181139", "0.7180829", "0.71794736", "0.71794736", "0.71729267", "0.71624815", "0.7159482", "0.7158814", "0.71455985", "0.7145171", "0.7126301", "0.712075", "0.712075", "0.712075", "0.71138054", "0.7104659", "0.70915234", "0.70915234", "0.7082417", "0.7075664", "0.7072477", "0.7072477", "0.7072477", "0.7072477", "0.7072477", "0.7063431", "0.70632356", "0.7058767", "0.7058767", "0.7042739", "0.7035797", "0.7034768", "0.70244724", "0.7023969", "0.7007791", "0.6982156", "0.69617367", "0.6960851", "0.6942445", "0.69329876", "0.69281036", "0.6910069", "0.68198264", "0.68197244", "0.68108463", "0.68097854", "0.68039167", "0.6788127", "0.6784506", "0.67818886", "0.67816895", "0.6780636", "0.6780636", "0.6753686", "0.6747119", "0.6745559", "0.6740945", "0.6736901", "0.67368835", "0.6734036", "0.67299294", "0.67299294", "0.6729174", "0.6724439", "0.6724377", "0.6718242", "0.6711503", "0.6710707" ]
0.67699337
85
Called when a previously pressed mouse button is released on this Widget.
public abstract void mouseReleased(MouseReleasedEvent mr);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseReleased() {\n super.mouseReleased();\n pressed = false;\n properties.post_mouseReleased(1);\n }", "public void mouseReleased() {\n\t\tthis.isPressed = false;\n\t}", "protected void onRelease(){\n pressed = false;\n if(hovered) {\n onClick();\n }\n for(Runnable action : onRelease) action.run();\n }", "@Override\n public void mouseUp(MouseEvent me) {\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_RELEASED);\n }", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tmouseDown = false;\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent me) {\r\n\t\trelease(me.getX(), me.getY());\r\n\t}", "public void mouseReleased(MouseEvent me) {\n endDrag();\n }", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\t mouseReleased = true;\n\t\t cardClicked = false;\n\t\t mouseClick = false;\n\t\t \n\t}", "@Override\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\tint keycode = arg0.getButton();\n\t\tif (keycode == LEFT_CLICK)\n\t\t{\n\t\t\tleftDown = false;\n\t\t}\n\t\tif (keycode == RIGHT_CLICK)\n\t\t{\n\t\t\trightDown = false;\n\t\t\t\n\t\t}\n\t}", "@Override\n public native void mouseRelease(int buttons);", "@Override\n\tpublic boolean onMouseReleased(MouseButtonEvent event) {\n\t\treturn false;\n\t}", "public void mouseReleased( MouseEvent event ){}", "public void mouseReleased(MouseEvent release) {\r\n\t\tif (SwingUtilities.isLeftMouseButton(release)) {\r\n\t\t\twasReleased = true;\r\n\t\t}\r\n\r\n\t\telse if (SwingUtilities.isRightMouseButton(release)) {\r\n\t\t\trClick = false;\r\n\t\t}\r\n\t}", "@Override\n protected void mouseReleased(int mouseX, int mouseY, int state) {\n this.screenContainer.mouseReleased(mouseX, mouseY, state);\n }", "public void mouseReleased(MouseEvent e) {\n mDown=false;\n }", "@Override\r\n public void handleMouseUpEvent(Mouse.ButtonEvent buttonEvent) {\n }", "@Override\n\t\t\t\tpublic void touchUp(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\t\tgameObject.dispose();\n\t\t\t\t}", "public void mouseReleased(MouseEvent event) {}", "void mouseReleased(MouseEvent mouseEvent);", "@Override\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\tcurrentPoint = null;\n\t}", "public void mouseReleased (MouseEvent m)\r\n {\r\n \tmousePressed = false;\r\n \tmouseReleased = true;\r\n \tobjPicked = false;\r\n \t//System.out.println(\"mouseReleased..\");\r\n }", "@Override\n public void mouseDown(MouseEvent me) {\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_PRESSED);\n }", "public boolean handleMouseReleased(int mouseX, int mouseY, int state) {\n return false;\n }", "public void mouseReleased(MouseEvent mEvent) \n {\n /* take no action while game running */\n if(GAME_RUNNING)\n return;\n\n /* only respond to button 1 */\n if(mEvent.getButton() != MouseEvent.BUTTON1)\n return;\n\n /* TODO: remove debug msg */\n\t\t//System.out.println(\"Mouse released on the \"+ mEvent.getComponent().getClass().getName() +\" @ \"+ mEvent.getX() + \", \" + mEvent.getY());\n\n if(mEvent.getComponent() instanceof GameCanvas)\n {\n /* handle mouseReleased events on GameCanvas \n -> this implies click or dragging started on gamecanvas too */\n switch(SELECT_MODE)\n {\n case NONE:\n //nothing\n break;\n case SELECTED:\n //nothing\n break;\n //===================\n case DRAGGING:\n //mouse released on gamecanvas during dragging = move widget to new loc, or if move was far enough south = re-add to scroller\n /* don't continue if this is a click type drag, wait for the click handler to deal with it */\n if(DRAG_TYPE == DragType.CLICK)\n break;\n\n if(mEvent.getY() >= 465)\n {\n /* put widget back in scroller */\n /* TODO: remove debug msg */\n //System.out.println(\"Returned \" + selectedWidget.getName() + \" to the widget scroller.\");\n \n String widgetType = selectedWidget.getClass().getName();\n ws.addWidget(widgetType.substring(widgetType.lastIndexOf(\".\")+1,widgetType.length()), 1);\n\n timWorld.removeWidget(selectedWidget);\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n canvas.repaint();\n }\n else\n {\n /* test if position is within canvas boundary + try to move */\n \t if ( mEvent.getX()+clickOffsetX >= 0 && mEvent.getX()+clickOffsetX <= 780 && mEvent.getY()+clickOffsetY >= 0 &&\n \t timWorld.moveWidget(selectedWidget, mEvent.getX()+clickOffsetX, mEvent.getY()+clickOffsetY) )\n \t {\n // successfully moved to new position\n \t\t\t if (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t\t {\n \t\t\t\t ap.playGoodSound();\n \t\t\t }\n \n /* TODO: remove debug msg */\n \t\t //System.out.println(\"mouseReleased successfully moved \" + selectedWidget.getName() + \" to \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \", widget.getPosition returns \" + selectedWidget.getPosition());\n \n // change to selection mode\n SELECT_MODE = SelectMode.SELECTED;\n canvas.setCursor(Cursor.getDefaultCursor());\n canvas.repaint();\n \t }\n \t else\n \t {\n // move to new pos unsuccessful\n \t\tif (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t{\n \t\t\tap.playBadSound();\n \t\t\t\t }\n /* TODO: remove debug msg */\n \t \t\t //System.out.println(\"New position \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \" not valid for \" + selectedWidget.getName() + \", returning it to widget scroller.\");\n \n SELECT_MODE = SelectMode.SELECTED;\n canvas.setCursor(Cursor.getDefaultCursor());\n canvas.repaint();\n \t }\n }\n break;\n //===================\n case ADDING:\n //shouldn't be able to get here, can't release mouse on gamecanvas while adding from scroller\n break;\n }\n }\n else if(mEvent.getComponent() instanceof WidgetScroller)\n {\n /* handle mouseReleased events on widget scroller \n -> implies click or drag started on widgetscroller which should mean a widget is being PRESS DRAGGED out*/\n if(SELECT_MODE == SelectMode.ADDING && DRAG_TYPE == DragType.PRESS)\n {\n Point canvasPos = canvas.getMousePosition();\n\n if(canvasPos != null)\n {\n /* mouse was released on gamecanvas, try to place the widget */\n if(timWorld.moveWidget(selectedWidget,(float)canvasPos.getX(),(float)canvasPos.getY()))\n {\n /* placement successful */\n SELECT_MODE = SelectMode.SELECTED;\n canvas.setCursor(Cursor.getDefaultCursor());\n ws.decreaseWidget(addedWidget);\n canvas.repaint();\n }\n else\n {\n /* placement unsuccessful, cancel adding */\n SELECT_MODE = SelectMode.NONE;\n canvas.setCursor(Cursor.getDefaultCursor());\n selectedWidget = null;\n canvas.repaint();\n }\n }\n else\n {\n /* mouse was released outside of the gamecanvas, cancel adding */\n SELECT_MODE = SelectMode.NONE;\n canvas.setCursor(Cursor.getDefaultCursor());\n selectedWidget = null;\n canvas.repaint();\n }\n }\n }\n }", "public void mouseReleased(MouseEvent mouse) {\n\t\tif (pressedObject) {\n\t\t\tLiquidApplication.getGUI().getEditorPanel().setSelectedObjectPanel();\n\t\t\tLiquidApplication.getGUI().getApplicationState().saveState();\n\t\t\tpressedObject = false;}\n\t}", "public void mouseExited(MouseEvent event){\t\n\t\t// We left the card without releasing the mouse press, so we're not counting it as a click\n\t\tclickflag = false;\n\t}", "@Override\n\tpublic void mouseReleased(MouseEvent event){}", "@Override\n\t\tpublic void mouseReleased(MouseEvent e)\n\t\t{\n\t\t\treturn;\n\t\t}", "public void mouseReleased(MouseEvent event) { }", "public void mouseReleased(MouseEvent event) { \n\t\t\n\t}", "@Override\n\tpublic void mouseReleased(MouseEvent event) {\n\t\t\n\t}", "public void mouseReleased(MouseEvent e) {}", "public void mouseReleased(MouseEvent e) {}", "public void mouseReleased(MouseEvent e) {}", "@Override\r\n public void mouseReleased(MouseEvent arg0)\r\n {\n }", "private void releasedNode(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n nodeTool.setSeccondPoint(e.getPoint());\r\n /*\r\n * Verify if the pressed was on backgroun and if the released is on\r\n * background\r\n */\r\n if (nodeTool.getDrawState() == true) {// &&\r\n nodeTool.setSeccondPoint(e.getPoint());\r\n addNode(nodeTool.getRectangle());\r\n }\r\n /* Reset the tool in any case */\r\n nodeTool.reset();\r\n }\r\n }", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}", "@Override\r\n public void mouseReleased(MouseEvent me) {\n }", "@Override\r\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t\t\t}", "void mouseReleased(double x, double y, MouseEvent e );", "public void mouseReleased(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n if(onClick!=null) {\n mouseRelease = true;\n }\n }", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void mouseReleased(MouseEvent e) {\n }", "@Override\n public void mouseReleased(MouseEvent e)\n {\n }", "@Override\n public void mouseReleased(MouseEvent e)\n {\n }", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t}", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\n public void mouseReleased(MouseEvent me) {\n }", "@Override\n public void mouseReleased(MouseEvent e) {\n }", "@Override\n public void mouseReleased(final MouseEvent e)\n {\n }", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tl1.setText(\"You released the mouse\");\r\n\t}", "@Override\n public void mouseReleased(MouseEvent evt) {\n }", "@Override\r\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t}", "@Override\r\n public void mouseReleased(MouseEvent e) {\r\n\r\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\r\n\r\n }", "@Override\n\tpublic void mouseReleased(MouseEvent arg0)\n\t{\n\t}", "@Override\n\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t}" ]
[ "0.7833137", "0.7822763", "0.75317776", "0.7506536", "0.7016457", "0.6898483", "0.68440646", "0.67726815", "0.6757618", "0.6756221", "0.6747658", "0.6729196", "0.671373", "0.6704908", "0.6700046", "0.6677899", "0.66585225", "0.6656524", "0.6645397", "0.66326123", "0.66145885", "0.66047275", "0.6557912", "0.65246695", "0.65219253", "0.6514874", "0.64823514", "0.64756864", "0.6470857", "0.6468248", "0.646429", "0.64280766", "0.64280766", "0.64280766", "0.6421524", "0.6409276", "0.6408958", "0.64009625", "0.64009625", "0.64009625", "0.63930213", "0.6391811", "0.6377968", "0.6377968", "0.6377968", "0.6377968", "0.6377968", "0.6377968", "0.6377968", "0.6377849", "0.6375972", "0.6375972", "0.6375972", "0.6375972", "0.63751674", "0.63751674", "0.63751674", "0.63614535", "0.63610214", "0.63550663", "0.63509196", "0.63509196", "0.63509196", "0.63457966", "0.6345229", "0.6345229", "0.6335698", "0.6335698", "0.6335698", "0.6335698", "0.6335698", "0.6335698", "0.6335698", "0.6335698", "0.6335698", "0.6335698", "0.6335698", "0.6335698", "0.6335602", "0.6335602", "0.6335602", "0.6335602", "0.6335602", "0.6335602", "0.6335602", "0.6325401", "0.6324303", "0.63203406", "0.6316278", "0.63128376", "0.63104576", "0.6305228", "0.63025445", "0.63025445", "0.6301713", "0.6301713", "0.6299143", "0.6299143", "0.6296889", "0.6296312" ]
0.64566225
31
Called when the user clicks one something.
public abstract void mouseClicked(MouseClickedEvent event);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n clicked = true;\n }", "public void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\r\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void mouseClicked(MouseEvent me) {\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\t\n\t\t\t}", "public void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "public void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent me) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent me) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "public void mouseClicked(MouseEvent e) {\n\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tclickSingle();\n\t\t\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\n }", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\n\t\t}", "public void onClicked();", "public void mouseClicked(MouseEvent e) \t{\n\t\t\t\t\r\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "public void mouseClicked(MouseEvent e) {\n \t\t\r\n \t}", "@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n\tpublic void mouseClicked(int arg0, int arg1, int arg2, int arg3) {\n\n\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\r\n\t}", "@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent event) {\n\n\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\r\n\t\t}", "public void mouseClicked(MouseEvent e) {\n\t}", "public void mouseClicked(MouseEvent e) {\n\t}", "public void mouseClicked(MouseEvent e) {\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void mouseClicked(\n\t\t\tMouseEvent e)\n\t\t{\n\t\t\t\n\t\t}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}" ]
[ "0.7805168", "0.7805168", "0.7805168", "0.7805168", "0.7805168", "0.7805168", "0.7805168", "0.77494806", "0.77456075", "0.77426356", "0.77295554", "0.7707163", "0.7707163", "0.7707163", "0.7653857", "0.7653857", "0.7653857", "0.7653857", "0.7653857", "0.7653857", "0.7653857", "0.7653857", "0.7653857", "0.76468396", "0.76468396", "0.7629821", "0.7628674", "0.7628674", "0.75955874", "0.75793517", "0.7574244", "0.7574244", "0.75733685", "0.75733685", "0.75658166", "0.75658166", "0.75658166", "0.75658166", "0.75658166", "0.75658166", "0.7565661", "0.7565661", "0.75633687", "0.75633687", "0.75633687", "0.7555516", "0.7548471", "0.7548471", "0.75477535", "0.7547659", "0.7546576", "0.7546576", "0.7546576", "0.7546576", "0.7546576", "0.7546576", "0.7546576", "0.7546576", "0.7546576", "0.7546576", "0.7546576", "0.7546576", "0.75409305", "0.75386393", "0.7534283", "0.7528094", "0.75280726", "0.7525707", "0.7525707", "0.7519632", "0.7519632", "0.75125694", "0.75103885", "0.75083697", "0.7507838", "0.75071126", "0.7504695", "0.7504061", "0.7501951", "0.7501462", "0.7498", "0.7498", "0.7498", "0.7491906", "0.7490692", "0.7488319", "0.7488319", "0.7488319", "0.74856037", "0.7470665", "0.7460142", "0.7460142", "0.7460142", "0.7460142", "0.74545395", "0.74545395", "0.74545395", "0.74438447", "0.74420965", "0.74420965", "0.74420965" ]
0.0
-1
Called when the mouse button is pressed twice in a short time.
public abstract void mouseDoubleClicked(MouseDoubleClickedEvent event);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void nativeMousePressed(NativeMouseEvent nme) {\n if (Var.timerStart) {\n txtMouse.setText(\"Mouse Pressed: \" + nme.getButton());\n Var.mClicks++;\n }\n }", "public void mousePressed(MouseEvent event)\n {\n mouseClicked = true;\n if(gameOver)\n {\n mouseClicked = false;\n gameOver = false;\n gameStarted = false;\n score = 0;\n restartGame();\n pipeTimer.stop();\n startGame.start();\n }\n }", "@Override\n public void nativeMouseReleased(NativeMouseEvent nme) {\n if (Var.timerStart) {\n txtMouse.setText(\"Mouse Released: \" + nme.getButton());\n }\n }", "@Override\n public void secondTick(int ms) {\n if (this.interactionTimeout == 0) {\n this.image = image_on;\n }\n super.secondTick(ms);\n }", "@Override\r\n public boolean mousePressed(MouseEvent e) {\r\n state = 2;\r\n return true;\r\n }", "public void click() {\n this.lastActive = System.nanoTime();\n }", "protected boolean dealWithMouseDoubleClicked(IFigure figure,\n int button,\n int x,\n int y,\n int state)\n {\n setUpMouseState(MOUSE_DOUBLE_CLICKED);\n return true;\n }", "@Override\n public void mouseDown(MouseEvent me) {\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_PRESSED);\n }", "@Override\n public void mouse2Down(int key, int xMousePixel, int yMousePixel, int xWidgetSizePixel, int yWidgetSizePixel,\n GralWidget widgg)\n {\n \n }", "@Override\n public void mouseClicked(MouseEvent e) {\n if (e.getClickCount() == 2) {\n getDoubleClick();\n }\n }", "public void tick(long timePassed) {\t\t\n\t\t\tif(isEntered())\n\t\t\t\tcurrentTextureIndex = 1;\n\t\t\telse\n\t\t\t\tcurrentTextureIndex = 0;\n\t\t\t\n\t\t\t// if Mouse movement is selected, keep the button highlighted\n\t\t\tif(Program.controlMethod == Program.WASD_MOVEMENT)\n\t\t\t\tcurrentTextureIndex = 2;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\ttextures[currentTextureIndex].update(timePassed);\n\t\t}", "public void mouseReleased() {\n super.mouseReleased();\n pressed = false;\n properties.post_mouseReleased(1);\n }", "public void mouseReleased() {\n\t\tthis.isPressed = false;\n\t}", "abstract public boolean timedActionPerformed(ActionEvent e);", "public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n isRightPressed = true;\n }\n }", "@Override\n public void nativeMouseClicked(NativeMouseEvent nme) {\n// System.out.println(\"Mouse Clicked: \" + nme.getClickCount());\n if (Var.timerStart) {\n txtMouse.setText(\"Mouse Clicked: \" + nme.getClickCount());\n }\n }", "@Override\n public void mouseUp(MouseEvent me) {\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_RELEASED);\n }", "public void mousePressed(MouseEvent click) {\r\n\t\tif (gameState == 2) {\r\n\t\t\tif ((SwingUtilities.isLeftMouseButton(click))) {\r\n\t\t\t\tlClick = true;\r\n\t\t\t\twasReleased = false;\r\n\t\t\t\tif (!alreadyShot) {\r\n\t\t\t\t\tarrowMech();\r\n\t\t\t\t\taY = playerObject[0].getY();\r\n\t\t\t\t}\r\n\t\t\t\talreadyShot = true;\r\n\t\t\t}\r\n\t\t\telse if (SwingUtilities.isRightMouseButton(click)) {\r\n\t\t\t\trClick = true;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void R2Pressed() {\n\t\tif (edit) {\n\t\t\tcurrentDeck.setActive(false);\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_SWITCH_DECK);\n\t\t\tswitchDeck();\n\t\t}\n\t}", "public void mousePressed() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isPressed = true;\n\t\t\tclick();\n\t\t}\n\t}", "protected void dopositiveClick2() {\n\n }", "@Override\n public void onBackPressed() {\n if (doubleBackToExitPressedOnce) {\n super.onBackPressed();\n return;\n }\n this.doubleBackToExitPressedOnce = true;\n Toast.makeText(getApplicationContext(), \"Tap again to exit\",Toast.LENGTH_SHORT).show();\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n doubleBackToExitPressedOnce=false;\n }\n }, 2000);\n }", "public void againButtonClicked() {\r\n\t\tframe.dispose();\r\n\t\tuserInterface = new UserInterface(); \r\n\t\tkeyboard.inputFieldFull = \"\"; \r\n\t\treturn;\r\n\t}", "public void mousePressed(MouseEvent event){\n\t\t// We recognized pressing the mouse with a flag\n\t\tclickflag = true;\t\t\n\t}", "public void updateGameMode2 (MouseEvent e)\n {\n if ((e.getX() >= 512 && e.getX() <= 836) && (e.getY() >= 161 && e.getY() <=520))\n twoPPressed = true;\n else if ((e.getX() >= 62 && e.getX() <= 386) && (e.getY() >= 161 && e.getY() <=520))\n onePPressed = true;\n }", "public void onBackPressed() {\n if (doubleBackToExitPressedOnce) {\n this.finish();\n super.onBackPressed();\n return;\n }\n\n this.doubleBackToExitPressedOnce = true;\n Toast.makeText(this, \"Please click BACK again to exit the game\", Toast.LENGTH_SHORT).show();\n\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n doubleBackToExitPressedOnce=false;\n }\n }, 2000);\n }", "@Override\npublic final boolean touchDown(int x, int y, int pointer, int button) {\n\tif (pointer == 0) {\n\t\tmScreenCurrent.set(x, y);\n\n\t\tif (mClickTimeLast + Config.Input.DOUBLE_CLICK_TIME > SceneSwitcher.getGameTime().getTotalTimeElapsed()) {\n\t\t\tmClickTimeLast = 0;\n\t\t\tmDoubleClick = true;\n\t\t} else {\n\t\t\tmDoubleClick = false;\n\t\t\tmClickTimeLast = SceneSwitcher.getGameTime().getTotalTimeElapsed();\n\t\t}\n\n\t\tScene.screenToWorldCoord(mCamera, x, y, mTouchOrigin, true);\n\t\tmTouchCurrent.set(mTouchOrigin);\n\n\t\treturn down(button);\n\t}\n\n\n\treturn false;\n}", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tnow_X = 'X';\n\t\tnow_Y = 'X';\n\t\trepaint();\n\t}", "public void mouseClicked(MouseEvent arg0) {\n\t\t\t\tcounter++;\r\n\t\t\t\tif(rdbtnLeapMotion.isSelected()){\r\n\t\t\t\t\tif(counter == 1){\r\n\t\t\t\t\t\t/*If the Leap Motion radio button is selected and the click count is 1 \r\n\t\t\t\t\t\tthen set button text to \"Disconnect\", connect to the Leap Motion \r\n\t\t\t\t\t\tand to the Crazyflie throught the LeapControl class\r\n\t\t\t\t\t\t*/\r\n\t\t\t\t\t\tbtnConnect.setText(\"Disconnect\");\r\n\t\t\t\t\t\tleapControl.connectToCrazyflie(data);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t/*If it's the second click then set button text back to \"Connect\", \r\n\t\t\t\t\t\tdisconnect from the LeapControl class and reset counter to 0\r\n\t\t\t\t\t\t*/\r\n\t\t\t\t\t\tbtnConnect.setText(\"Connect\");\r\n\t\t\t\t\t\tleapControl.disconnectFromCrazyflie();\r\n\t\t\t\t\t\tcounter = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(counter == 1){\r\n\t\t\t\t\t\t/*If the Gamepad radio button is selected and the counter is 1\r\n\t\t\t\t\t\t * then set button text to \"Disconnect\" \r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tbtnConnect.setText(\"Disconnect\");\r\n\t\t\t\t\t\tif(!gamepadCtrl.isAlive()){\r\n\t\t\t\t\t\t\t//if the GamepadCotnrol thread is not alive then create GamepadControl object\r\n\t\t\t\t\t\t\tGamepadControl gpdCtrl = new GamepadControl(data,radio);\r\n\t\t\t\t\t\t\tgpdCtrl.setUI(LeapFlieUI.this);\r\n\t\t\t\t\t\t\tgamepadCtrl = new Thread(gpdCtrl);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//start the GamepadControl thread\r\n\t\t\t\t\t\tgamepadCtrl.start();\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t//if it's the second click then reset counter to 0 and interrupt the thread\r\n\t\t\t\t\t\tcounter = 0;\r\n\t\t\t\t\t\tbtnConnect.setText(\"Connect\");\r\n\t\t\t\t\t\tif(gamepadCtrl.isAlive()){\r\n\t\t\t\t\t\t\tgamepadCtrl.interrupt();\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}", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\tsuper.mousePressed(e);\n\t\t\tint key = e.getButton();\n\t\t\tint y = e.getY();\n\t\t\tif (key == MouseEvent.BUTTON3 && y < Constants.BOTTOM - 40) {\n\t\t\t\tif (!isGamePaused && isGameActive) {\n\t\t\t\t\tpauseGame(\"PAUSE\");\n\t\t\t\t\tpaintThread.suspendThread(50);\n\n\t\t\t\t} else if (isGamePaused && isGameActive) {\n\t\t\t\t\tresumeGame();\n\t\t\t\t} else {\n\t\t\t\t\tstartGame();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n \tpublic void mouseDoubleClicked(MouseEvent me) {\n \t}", "@Override\n public void onBackPressed() {\n if (doubleBackToExitPressedOnce) {\n super.onBackPressed();\n return;\n }\n\n this.doubleBackToExitPressedOnce = true;\n Toast.makeText(this, \"Please click BACK again to exit\", Toast.LENGTH_SHORT).show();\n\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n doubleBackToExitPressedOnce=false;\n }\n }, 2000);\n }", "public void keyPressed() { \n\t\twantsFrameBreak = true;\n\t\t//key = e.getKeyChar();\n\t\tkeyPressed = true;\n\t\tif (System.nanoTime() - acted > .033e9f) {\n\t\t\t_keyPressed();\n\t\t}\n\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile((second--)!=1) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\tPlatform.runLater(new Runnable() {\r\n\t\t\t\t\t\t @Override\r\n\t\t\t\t\t\t public void run() {\r\n\t\t\t\t\t\t\t SetTime();\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t});\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsubmitbtn.setDisable(true);\r\n\t\t\tbackbtn.setDisable(false);\r\n\t\t\t}", "public void touchRockTwo() {\n if(!RockGameModel.getInstance().isDestroid(rockBodyTwo.getModel())) {\n rockBodyTwo.setTouchTime();\n if (rockBodyTwo.getTouchTime() >= 20) {\n RockGameModel.getInstance().destroyRock(rockBodyTwo.getModel());\n if(RockGameModel.getInstance().hasCoin(rockBodyTwo.getModel())) {\n points++;\n }\n }\n }\n }", "public void mouseClicked(MouseEvent e) {\n int modifiers = e.getModifiers();\n int clickCount = e.getClickCount();\n Point point = e.getPoint();\n \n if (super.toolHandler == null) {\n return;\n } else if (!super.toolHandler.supportsTool(ToolBox.TOOL_POINTER)) { // _POINTER because double click should be supported by all that supports the pointer tool.\n return;\n }\n \n if ((modifiers & MouseEvent.BUTTON1_MASK) != 0) {\n if (clickCount == 2) {\n super.toolHandler.doubleClick(point);\n }\n }\n }", "@Override\n public void run() {\n doubleBackToExitPressedOnce=false;\n }", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tmouseDown = false;\n\t}", "private void pressed(MouseEvent e)\r\n {\n }", "private void secondClick(Tile tile) {\n try {\n //make new move\n controller.makeMove(new Move(start, tile.getPosition()));\n\n //updates the pieces eaten\n if (controller.getCurrentSide() == Side.WHITE) {\n blacksEaten += tile.getSymbol().toString();\n } else {\n whitesEaten += tile.getSymbol().toString();\n }\n //updates the corresponding UI\n if (!blacksEaten.equals(\"\")) {\n blackPiecesEaten.setText(blacksEaten);\n }\n if (!whitesEaten.equals(\"\")) {\n whitePiecesEaten.setText(whitesEaten);\n }\n\n addToHistoryAndUpdate(start, tile.getPosition(),\n tile.getSymbol().toString());\n\n controller.endTurn();\n //start next turn\n if (!controller.getCurrentState().isGameOver()) {\n controller.beginTurn();\n hasStarted = true;\n }\n } catch (IllegalMoveException e) {\n //remove highlighting first\n clearHighlightAfterMove();\n }\n }", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tif(!mouseDown) {\n\t\t\tclickButton();\n\t\t}\n\t\tmouseDown = true;\n\t}", "void onDoubleTapEvent();", "private boolean isDoubleClickedElement(MouseEvent evt) {\n\t\tif (evt.getButton() == Constants.LEFT_MOUSE_BUTTON && !aufzugschacht.mainFrameIsAnyButtonSelected) {\n\t\t\tCalendar thisTime = Calendar.getInstance();\n\t\t\tif (clicked) {\n\t\t\t\tlong millis = thisTime.getTimeInMillis();\n\t\t\t\tif (millis - oldTime.getTimeInMillis() < 300) {\n\t\t\t\t\tclicked = false;\n\t\t\t\t\toldTime = thisTime;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\toldTime = thisTime;\n\t\t\t} else {\n\t\t\t\tclicked = true;\n\t\t\t\toldTime = thisTime;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tprotected void Update(GameTime gameTime)\n\t{\n\t\tif (Keyboard.GetState().IsKeyDown(Keys.Escape))\n\t\t\tthis.Exit();\n\t\t\n\t\t/*if (Mouse.GetState().LeftButton == ButtonState.Pressed)\n\t\t\tthis.Exit();*/\n\t\t\n\t\t// TODO: Add your update logic here\n\t\t\n\t\tsuper.Update(gameTime);\n\t}", "void mousePressed() {\n firing = true;\n\n}", "private void releasedWay(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n if (wayTool.getDrawState() == true && graphX.nodesContains(e.getPoint()) == true) {\r\n wayTool.setSeccondPoint(e.getPoint());\r\n\r\n if (addWay(graphX.getNode(wayTool.getFirstPoint()), graphX.getNode(wayTool.getSeccondPoint()))) {\r\n selectWays();\r\n }\r\n\r\n }\r\n /* Reset the tool in any case */\r\n wayTool.reset();\r\n }\r\n }", "public void press(int x, int y, int state);", "public void step(double dt)\r\n\t{\r\n\t\tif (mouseInBounds() && menu.getInput().getMouseButtonPressed(InputHandler.CLICK))\r\n\t\t{\r\n\t\t\tmenu.handleAction(this);\r\n\t\t\tmenu.getInput().cancelMouseButton(InputHandler.CLICK);\r\n\t\t}\r\n\t}", "public void mouseOut() {\n process(1);\n }", "@Override\n public final void actionPerformed(ActionEvent e) {\n if (!isKeyPressed) {\n isKeyPressed = true;\n keyPressed();\n }\n }", "@Override\r\n\tpublic void mousePressed(MouseEvent event ) {\n\t\t\r\n\t\tint whichButton =event.getButton();\r\n\t\tmsg=\"\";\r\n\t\tmsg =\"You Pressed Mouse \" ;\r\n\t\t\r\n\t\tif(whichButton==MouseEvent.BUTTON1)\r\n\t\t\tmsg+=\" BUTTON 1\";\r\n\t\telse if(whichButton==MouseEvent.BUTTON2)\r\n\t\t\tmsg+=\"Button 2\";\r\n\t\telse\r\n\t\t\tmsg+=\"Button 3\";\r\n\t\t\r\n\t\tmsg+=\"You are at position \"+\"<X \"+event.getX()+\" Y \"+event.getY()+\">\";\r\n\t\t\r\n\t\tif(event.getClickCount()==2)\r\n\t\t{\r\n\t\t\tmsg+=\" You double Clicked\";\r\n\t\t}\r\n\t\telse\r\n\t\t\tmsg+=\" You singel-Clicked\";\r\n\t\t\r\n\t\tlabel.setText(msg);\r\n\t\t\r\n\t}", "private void draggedWay(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n wayTool.setSeccondPoint(e.getPoint());\r\n }\r\n }", "void mouseReleased() {\n firing = false;\n}", "@Override\r\n public boolean onLongClick(int x, int y, int pointer, int button) {\r\n return true;\r\n }", "protected void onRelease(){\n pressed = false;\n if(hovered) {\n onClick();\n }\n for(Runnable action : onRelease) action.run();\n }", "@Override\r\n public void touchUp(InputEvent event, float x, float y, int pointer, int button) {\r\n if(screen.player2.totalSkates>0 && !screen.player2.hasSkates) {\r\n screen.player2.totalSkates--;\r\n screen.player2.hasSkates = true;\r\n }\r\n }", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON1)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isbegin==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON3)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isreplay==1)\t\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t\n\t\t\t}", "private void ControlType2(int time) {\n\t\tif (GameEngine.isKeyHeld(\"D\")) {\n\t\t\tgraphic.setX(graphic.getX() + speed * time);\n\t\t}\n\t\tif (GameEngine.isKeyHeld(\"A\")) {\n\t\t\tgraphic.setX(graphic.getX() - speed * time);\n\t\t}\n\t\tif (GameEngine.isKeyHeld(\"S\")) {\n\t\t\tgraphic.setY(graphic.getY() + speed * time);\n\t\t}\n\t\tif (GameEngine.isKeyHeld(\"W\")) {\n\t\t\tgraphic.setY(graphic.getY() - speed * time);\n\t\t}\n\t\tgraphic.setDirection(GameEngine.getMouseX(), GameEngine.getMouseY());\n\t\t//set hero facing cursor\n\t}", "public void onGuiClosed()\n {\n Keyboard.enableRepeatEvents(false);\n }", "private void secondaryKey(int x, int y) {\n\t\tfield.toggleFlag(x, y);\n\t\tupdateScene(playScene);\n\t}", "public void mouseExited(MouseEvent event){\t\n\t\t// We left the card without releasing the mouse press, so we're not counting it as a click\n\t\tclickflag = false;\n\t}", "public void mousePressed() {\n\t int ret = output.sendNoteOn(0, 3, 3);\n\t ret = output.sendSysex(new byte[] {(byte)0xF0, 1, 2, 3, 4, (byte)0xF7});\n\t}", "@Override\n public void onBackPressed() {\n if (doubleBackToExitPressedOnce) {\n super.onBackPressed();\n return;\n }\n\n // Sets boolean to true when user presses back button\n this.doubleBackToExitPressedOnce = true;\n Toast.makeText(this, \"Press again to exit\", Toast.LENGTH_SHORT).show();\n\n // System waits for 2 seconds before setting boolean value to false again\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n doubleBackToExitPressedOnce = false;\n }\n }, 2000);\n }", "@Override\r\n public void touchUp(InputEvent event, float x, float y, int pointer, int button) {\r\n if(screen.player2.totalRockets>0 && !screen.player2.hasRocket) {\r\n screen.player2.totalRockets--;\r\n screen.player2.hasRocket = true;\r\n GameUtility.playSound(GameConstants.TADAA_SOUND);\r\n }\r\n }", "public void execute(long t) \n\t\t{\n\t\t\t// Call super class\n\t\t\tthat.setPressed(false);\n\t\t\t\n\t\t\t// Reset event flag\n\t\t\tpressReleaseSchedule = false;\n\t\t}", "public void keyReleased() {\n ticker.stop();\n }", "public static void rightClick() {\r\n\t\tMinecraftForge.EVENT_BUS.register(playerUtil);\r\n\t}", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\t mouseReleased = true;\n\t\t cardClicked = false;\n\t\t mouseClick = false;\n\t\t \n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}", "public void mouseReleased(MouseEvent e) {\n mDown=false;\n }", "@Override\n public void handle(MouseEvent event) {\n Button sourceBt = (Button) event.getSource();\n int btColumn = minefieldGP.getColumnIndex(sourceBt);\n int btRow = minefieldGP.getRowIndex(sourceBt);\n MouseButton clickType = event.getButton();\n int clicks = event.getClickCount();\n if ((clicks == 1) && (clickType == MouseButton.PRIMARY)) {\n System.out.println(\"Primary was clicked at \" + btColumn + \",\" + btRow);\n // if it's an unexposed button\n int cellState = mainField.getCellState(btColumn,btRow);\n if (cellState == mainField.UNEXPOSED) {\n // call expose on the minefield\n int exposeResult = mainField.expose(btColumn,btRow);\n if (exposeResult == -1) {\n endGame(false);\n }\n if ((nonminesLabel.getText().equals(\"0\")) || (allCellsCorrect())) {\n endGame(true);\n }\n }\n }\n else if ((clicks == 2) && (clickType == MouseButton.PRIMARY)) {\n System.out.println(\"Primary was double clicked at \" + btColumn + \",\" + btRow);\n int cellState = mainField.getCellState(btColumn,btRow);\n // if the cell is already exposed\n if (cellState == mainField.EXPOSED) {\n boolean mineExposed = mainField.exposeNeighbors(btColumn,btRow);\n if (mineExposed) {\n endGame(false);\n }\n if ((nonminesLabel.getText().equals(\"0\")) || (allCellsCorrect())) {\n endGame(true);\n }\n }\n }\n else if (clickType == MouseButton.SECONDARY) {\n System.out.println(\"Secondary was clicked at \" + btColumn + \",\" + btRow);\n int toggleResult = mainField.toggleMarked(btColumn,btRow);\n if (toggleResult == mainField.MARKED) {\n sourceBt.setText(\"X\");\n sourceBt.setStyle(\"-fx-background-color: #FFFF00;\");\n }\n if (toggleResult == mainField.UNEXPOSED) {\n sourceBt.setText(\"\");\n sourceBt.setStyle(defaultBtStyle);\n }\n }\n refresh(width,height);\n if (nonminesLabel.getText().equals(\"0\")) {\n endGame(true);\n }\n }", "@Override\r\n public void onMouseDown(NativeEvent event) {\r\n assert event != null;\r\n\r\n updateMousePosition(event.getClientX(), event.getClientY());\r\n\r\n if (!isEnabled()) {\r\n return;\r\n }\r\n\r\n if (event.getButton() == NativeEvent.BUTTON_RIGHT) {\r\n event.stopPropagation();\r\n event.preventDefault();\r\n\r\n state.onSourceRightClick(this);\r\n } else if (event.getButton() == NativeEvent.BUTTON_LEFT) {\r\n /*\r\n * NOTE: Mouse down triggers click operations. The popup should not\r\n * interfere with this, so if we are already in the waiting state,\r\n * the timer is reset.\r\n */\r\n if (state == WAITING_STATE) {\r\n cancelTimer();\r\n startTimer(showDelay);\r\n }\r\n }\r\n }", "private void cs1() {\n\t\t\tctx.mouse.click(675,481,true);\n\t\t\t\n\t\t}", "public void buttonClickTiming() {\n //Prevention of button mushing by using threshold of 1000 ms between clicks\n if (SystemClock.elapsedRealtime() - lastClickTime < 1000) {\n return;\n }\n lastClickTime = SystemClock.elapsedRealtime();\n }", "private void processMouseEvent(MouseEvent evt) \r\n\t{\r\n\t\tbuttonPress = false;\r\n\r\n\t\tif (evt.getID()==MouseEvent.MOUSE_PRESSED |\r\n\t\tevt.getID()==MouseEvent.MOUSE_CLICKED) \r\n\t\t{\r\n\t\t\tbuttonPress = true;\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "void onHoldPerformed();", "@Override\n\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) { // Methode um MausEvent zu untersuchen\r\n\t\t\t\tclickCounter++;\r\n\t\t\t\tif (clickCounter % 2 == 0) { \r\n\t\t\t\t\tmenu.setVisible(false); // bei 2 klicks geht das menü wieder zu\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpopMenu(); // das popMenu wird aufgerufen\r\n\t\t\t\t}\r\n\t\t\t}", "public void actionPerformed(ActionEvent ae)\n {\n if(mouseClicked)\n {\n startGame.stop();\n gameStarted = true;\n StartGame();\n }\n mouseClicked = false;\n }", "public void tick(){\r\n if(MouseManager.mousePressed){ // Checks to see if the mouse has been clicked.\r\n if(Game.mouseX >= 390 && Game.mouseX <= 610 && Game.mouseY >= 415 && Game.mouseY < 500){\r\n // If the mouse is clicked and the button is hovered, resets the lost and tied variables to false,\r\n // and then sets the State to betState, getting ready for a new hand.\r\n GameState.lost = false; // ...\r\n GameState.tied = false; // ...\r\n State.setState(game.betState); // ...\r\n }\r\n }\r\n }", "public void handleHeldKeys(){\n //Keys that need to be repressed periodically\n boolean keyPressed = false;\n if(this.heldKeys[Input.Keys.LEFT+1] % keyTime == 0){\n this.curPos = Math.max(0,this.curPos-1);\n keyPressed = true;\n }\n if(this.heldKeys[Input.Keys.RIGHT+1] % keyTime == 0){\n this.curPos = Math.min(this.sOut.length(),this.curPos+1);\n keyPressed = true;\n }\n if(this.heldKeys[Input.Keys.BACKSPACE+1] % keyTime == 0){\n if(this.curPos>0){\n this.sOut.deleteCharAt(this.curPos-1);\n this.curPos--;\n keyPressed = true;\n }\n }\n if(this.heldKeys[Input.Keys.FORWARD_DEL+1] % keyTime == 0){\n if(this.curPos<this.sOut.length()){\n this.sOut.deleteCharAt(this.curPos);\n keyPressed = true;\n }\n }\n if(keyPressed){\n this.showCursor = true;\n this.frameCount = 0;\n }\n }", "@Override\n protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws IOException {\n this.screenContainer.mouseClicked(mouseX, mouseY, mouseButton);\n if (!this.screenContainer.processFocus(mouseX, mouseY, mouseButton)) {\n this.clearFocus();\n }\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tif(this.chance==1)\r\n\t\t{\r\n\t\t\tmouseX = arg0.getX();\r\n\t\t\tmouseY= arg0.getY();\r\n\t\t\tclick=1;\r\n\t\t}\r\n\t}", "public void click() {\n if(!isEnabled()) return;\n\n boolean realHovered = hovered;\n hovered = true;\n onPress();\n onRelease();\n hovered = realHovered;\n }", "public void mouseExited(MouseEvent arg0) {\r\n\r\n\t\t/* interrupt sleep because mouse was moved away from the object */\r\n\t\targ0.consume();\r\n\t\tt.interrupt();\r\n\r\n\t\tif (!helpActive) {\r\n\t\t\tpopup.setVisible(false);\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void mousePressed(MouseEvent e)\n\t\t{\n\t\t\treturn;\n\t\t}", "public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}", "@Override\n public boolean onBackPressed() {\n if (doubleBackToExitPressedOnce) {\n requireActivity().finishAffinity();\n System.exit(0);\n }\n\n this.doubleBackToExitPressedOnce = true;\n Toast.makeText(requireActivity(), \"Please click BACK again to exit\", Toast.LENGTH_SHORT).show();\n\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n doubleBackToExitPressedOnce = false;\n }\n }, 2000);\n return true;\n }" ]
[ "0.65101606", "0.6318327", "0.6304661", "0.62788975", "0.6182991", "0.60594636", "0.5986048", "0.5970924", "0.59565306", "0.5935041", "0.5928189", "0.5907587", "0.589284", "0.588379", "0.58161545", "0.58126", "0.5800788", "0.58003336", "0.57882094", "0.57828766", "0.57692456", "0.57346016", "0.5721036", "0.5691878", "0.5679994", "0.5651235", "0.5631122", "0.56155187", "0.5610655", "0.56101894", "0.5572043", "0.5569743", "0.5567166", "0.5561534", "0.5561445", "0.55579054", "0.55542386", "0.5538066", "0.5537811", "0.5529198", "0.55197525", "0.55133", "0.5511829", "0.55086136", "0.5502864", "0.54980934", "0.5491798", "0.5489149", "0.54706824", "0.5469417", "0.54683965", "0.54683065", "0.5467532", "0.5464674", "0.54527146", "0.54519355", "0.5445598", "0.5445598", "0.5445598", "0.5445598", "0.5445598", "0.5445598", "0.5445598", "0.5442743", "0.54301876", "0.5427128", "0.5426717", "0.54218334", "0.541732", "0.5416072", "0.5410285", "0.54044044", "0.5391616", "0.53898793", "0.5389641", "0.5389278", "0.5389278", "0.5389278", "0.5389278", "0.5389278", "0.53827643", "0.5382531", "0.5378254", "0.53774583", "0.5375978", "0.5374136", "0.536986", "0.53686273", "0.53686273", "0.53561544", "0.53559685", "0.5353423", "0.5351822", "0.53499234", "0.5341914", "0.5334286", "0.53325313", "0.53313994", "0.5319246", "0.53102595" ]
0.53437847
94
Called when there is a mouse wheel event
public abstract void mouseWheel(MouseWheelEvent mouseWheelEvent);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public native void mouseWheel(int wheelAmt);", "@Override\n\tpublic void mouseWheelMoved(int arg0) {\n\t}", "@Override\r\n public void mouseWheelMoved(MouseWheelEvent e) {\r\n System.out.println(\"wheel\");\r\n }", "@Override\n\tpublic void mouseWheelMoved(MouseEvent arg0) {\n\t\t\n\t}", "@Override\r\n public void mouseWheelMoved(MouseWheelEvent e) {\r\n\r\n }", "@Override\n public void mouseWheelMoved(MouseWheelEvent e){\n \n }", "public void mouseWheel(MouseEvent event) {\n ackEvent();\n float e = event.getCount();\n verticalScroll -= 10 * e;\n if (verticalScroll >= MAX_SCROLL) verticalScroll = MAX_SCROLL;\n else if (verticalScroll <= MIN_SCROLL) verticalScroll = MIN_SCROLL;\n }", "boolean _mouseWheel(MouseWheelEvent ev) {\n\t\treturn false;\n\t}", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n if (getChart().getView().is2D()) {\n return;\n }\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n stopThreadController();\n float factor = 1 + (e.getWheelRotation() / 10.0f);\n zoomZ(factor);\n }", "@Override\n\t\tpublic void mouseWheelMoved(MouseWheelEvent e) {\n\t\t\tif(telaAtiva!=null){\n\t\t\t\ttelaAtiva.mouseWheelMoved(e);\n\t\t\t}\n\t\t}", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n if (isMouse1Down) inspectModeEnabled = false;\n }", "@Override\n\tpublic void nativeMouseWheelMoved(NativeMouseWheelEvent e) {\n\t\t\n\t}", "public void mouseWheelMoved(MouseWheelEvent e) {\n double timeStep = TIME_STEP_MIN;\n if (e.isShiftDown()) {\n timeStep = TIME_STEP_MIN * 10;\n }\n if (e.getWheelRotation() > 0) {\n prevTime(timeStep);\n } else {\n nextTime(timeStep);\n }\n }", "@Override\n public void onScrollingStarted(WheelView wheel) {\n\n }", "@Override\n public void onScrollingStarted(WheelView wheel) {\n\n }", "@Override\n public void onScrollingStarted(WheelView wheel) {\n\n }", "public void mouseWheelMoved(MouseWheelEvent event) {\n\n\t\t\tint notches = event.getWheelRotation();\n\n\t\t\tif (SIZE > 0) {\n\n\t\t\t\tif (notches > 0)\n\t\t\t\t\tSIZE += 1;\n\t\t\t\telse\n\t\t\t\t\tSIZE -= 1;\n\t\t\t}\n\t\t\t\n\t\t\tif(SIZE <= 0)\n\t\t\t\tSIZE = 1;\n\t\t}", "public void mouseWheelMoved(MouseWheelEvent e) {\n \t if (++nbTicks >= MOLETTE_TICKS) {\n \t\t nbTicks = 0;\n \t\t app.modifyZoom(e.getWheelRotation() * MOLETTE_TAUX);\n \t }\n }", "public abstract void update(MouseWheelEvent evt, int mode);", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n // Check direction of rotation\n if (e.getWheelRotation() < 0) {\n // Zoom in for up\n tr_z += 0.01f;\n } else {\n // Zoom out for down\n tr_z -= 0.01f;\n }\n }", "public void mouseWheel(MouseEvent event) {\n\n // checks if scrolled is within the texts size\n if ( scrolled >= 0 && scrolled < scenes.texts[scene].height) {\n\n //getCount returns a positive (+1) when scrolled up, and a negative (-1) when down.\n float e = event.getCount();\n scrolled += e * scrollSpeed;\n }\n\n // checks and make sure that scrolled is never below zero or above the texts size\n if (scrolled < 0) {\n scrolled = 0;\n } else if (scrolled > scenes.texts[scene].height - (scenes.textSizeHeight / 2) ) {\n scrolled = scenes.texts[scene].height - (scenes.textSizeHeight / 2);\n }\n}", "public void mouseWheelMoved(MouseWheelEvent e)\r\n\t{\r\n\t\t// Create an altered event to redispatch\r\n\r\n\t\tif (scrollAmount != 0)\r\n\t\t{\r\n\t\t\te = createScrollAmountEvent( e );\r\n\t\t}\r\n\r\n\t\t// Redispatch the event to original MouseWheelListener\r\n\r\n\t\tfor (MouseWheelListener mwl : realListeners)\r\n\t\t{\r\n\t\t\tmwl.mouseWheelMoved( e );\r\n\t\t}\r\n\t}", "public void nativeMouseWheelMoved(NativeMouseWheelEvent nativeEvent);", "void onScrollingStarted(RulerWheel wheel);", "public static boolean onMouseWheel(int i) {\n/* */ try {\n/* 560 */ if (NEIConfig.isHidden() || !NEIConfig.isEnabled())\n/* */ {\n/* 562 */ return false;\n/* */ }\n/* 564 */ for (Widget widget : controlWidgets)\n/* */ {\n/* 566 */ if (widget.onMouseWheel(i, mousex, mousey))\n/* */ {\n/* 568 */ return true;\n/* */ }\n/* */ }\n/* */ \n/* 572 */ } catch (Exception exception) {\n/* */ \n/* 574 */ NEIUtils.reportException(exception);\n/* 575 */ NEIConfig.setEnabled(false);\n/* */ } \n/* 577 */ return false;\n/* */ }", "@Override\n\tpublic void mouseWheelMoved(MouseWheelEvent event) {\n\t\tshowmBox = false;\n\n\t\tint moved = event.getWheelRotation();\n\n\t\tint mousex = event.getX();\n\t\tint mousey = event.getY();\n\n\t\tdouble graphmousex = (double) mousex / getWidth() * (param.maxx - param.minx) + param.minx;\n\t\tdouble graphmousey = ((1 - (double) mousey / getHeight()) * (param.maxy - param.miny) + param.miny);\n\n\t\tdouble maxx = param.maxx, minx = param.minx, maxy = param.maxy, miny = param.miny;\n\n\t\tparam.maxx += moved * (maxx - graphmousex) / 10;\n\t\tparam.minx -= moved * (graphmousex - minx) / 10;\n\t\tparam.maxy += moved * (maxy - graphmousey) / 10;\n\t\tparam.miny -= moved * (graphmousey - miny) / 10;\n\n\t\trepaint();\n\t}", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n\n zoomer = true;\n\n //Zoom in\n if (e.getWheelRotation() < 0) {\n zoomFactor *= 1.1;\n repaint();\n }\n //Zoom out\n if (e.getWheelRotation() > 0) {\n zoomFactor /= 1.1;\n repaint();\n }\n }", "@Override\n\t\t\tpublic void onScrollingStarted(WheelView view) {\n\t\t\t}", "void onScrollingFinished(RulerWheel wheel);", "public boolean isWheelScrollingEnabled() {\n/* 1305 */ return this.wheelScrollState;\n/* */ }", "public MouseWheel getMouseWheel() {\n return mouseWheel;\n }", "void setKeyWheel(boolean keyWheel);", "public void wheelZoom(MouseWheelEvent e) {\n try {\n int wheelRotation = e.getWheelRotation();\n Insets x = getInsets(); //Top bar space of the application\n Point p = e.getPoint();\n p.setLocation(p.getX() , p.getY()-x.top + x.bottom);\n if (wheelRotation > 0 && zoomLevel != 0) {\n //point2d before zoom\n Point2D p1 = transformPoint(p);\n transform.scale(1 / 1.2, 1 / 1.2);\n //point after zoom\n Point2D p2 = transformPoint(p);\n transform.translate(p2.getX() - p1.getX(), p2.getY() - p1.getY()); //Pan towards mouse\n checkForZoomOut();\n repaint();\n\n } else if (wheelRotation < 0 && zoomLevel != 20) {\n Point2D p1 = transformPoint(p);\n transform.scale(1.2, 1.2);\n Point2D p2 = transformPoint(p);\n transform.translate(p2.getX() - p1.getX(), p2.getY() - p1.getY()); //Pan towards mouse\n checkForZoomIn();\n repaint();\n }\n } catch (NoninvertibleTransformException ex) {\n ex.printStackTrace();\n }\n\n }", "void onMouseScrolled(int rotation);", "private void mouseWheelChanged(MouseWheelEvent me) {\n\n\t\tif (index.data.getPictureSize() == 0) {\n\t\t\tremoveAllPictureViews(); // nothing to paint\n\t\t\treturn;\n\t\t}\n\t\t// calculate the new view port position\n\t\tDimension d = getPreferredSizePictureView();\n\t\tint vpPosY = indexViewPort.getViewPosition().y;\n\t\tint vpExtY = indexViewPort.getExtentSize().height;\n\t\tint rest = client.getHeight() - vpPosY - vpExtY;\n\t\tint rotation = me.getWheelRotation();\n\t\tif (rest > 0 && rotation == 1) {\n\t\t\t// forward\n\t\t\tvpPosY = vpPosY + d.height + hGap;\n\t\t} else if (rotation == -1 && vpPosY > 0) {\n\t\t\t// backward\n\t\t\tvpPosY = vpPosY - d.height - hGap;\n\t\t\tvpPosY = (vpPosY <= 0) ? 0 : vpPosY;\n\t\t} else {\n\t\t\treturn; // can't scroll\n\t\t}\n\t\t// correct position (cut not the picture at the top)\n\t\tif (vpPosY > 0 && (vpPosY % (d.height + hGap)) > 0) {\n\t\t\tint n = vpPosY / (d.height + hGap);\n\t\t\tif (rotation == 1) {\n\t\t\t\tvpPosY = n * (d.height + hGap);\n\t\t\t} else {\n\t\t\t\tvpPosY = (n + 1) * (d.height + hGap);\n\t\t\t}\n\t\t}\n\t\t// now change the view port position\n\t\tPoint vPos = indexViewPort.getViewPosition();\n\t\tvPos.y = vpPosY;\n\t\t// change view port position.\n\t\t// (the ComponentListener cause painting)\n\t\tindexViewPort.setViewPosition(vPos);\n\t}", "public MouseWheelController(JScrollPane scrollPane)\r\n\t{\r\n\t\tthis(scrollPane, 1);\r\n\t}", "@Override\n\t\t\tpublic void onScrollingFinished(WheelView view) {\n\t\t\t}", "public void updateInput() {\n int x = Mouse.getX();\n int y = GameApplication.getScreenHeight() - Mouse.getY();\n\n theHandler.mouseMoved(x, y);\n\n if (Mouse.isButtonDown(0)) {\n theHandler.mousePressed(x, y, MouseHelper.LEFT_CLICK);\n clickedLeft = true;\n return;\n }\n if (Mouse.isButtonDown(1)) {\n theHandler.mousePressed(x, y, MouseHelper.RIGHT_CLICK);\n clickedRight = true;\n return;\n }\n if (Mouse.isButtonDown(2)) {\n theHandler.mousePressed(x, y, MouseHelper.WHEEL_CLICK);\n clickedWheel = true;\n return;\n }\n\n if (clickedLeft) {\n theHandler.mouseClicked(x, y, MouseHelper.LEFT_CLICK);\n clickedLeft = false;\n }\n if (clickedRight) {\n theHandler.mouseClicked(x, y, MouseHelper.RIGHT_CLICK);\n clickedRight = false;\n }\n if (clickedWheel) {\n theHandler.mouseClicked(x, y, MouseHelper.WHEEL_CLICK);\n clickedWheel = false;\n }\n\n int i = Mouse.getDWheel();\n if (i < 0) {\n theHandler.mouseWheelMoved(false, true, i);\n }\n if (i > 0) {\n theHandler.mouseWheelMoved(true, false, i);\n }\n }", "@Override\n\t\t\t\tpublic void mouseWheelMoved(MouseWheelEvent e)\n\t\t\t\t\t{\n\t\t\t\t\tchangeFont(JPanelSetMatrix.this, e.getWheelRotation());\n\t\t\t\t\t}", "public void install()\r\n\t{\r\n\t\tif (realListeners != null) return;\r\n\r\n\t\t// Keep track of original listeners so we can use them to\r\n\t\t// redispatch an altered MouseWheelEvent\r\n\r\n\t\trealListeners = scrollPane.getMouseWheelListeners();\r\n\r\n\t\tfor (MouseWheelListener mwl : realListeners)\r\n\t\t{\r\n\t\t\tscrollPane.removeMouseWheelListener(mwl);\r\n\t\t}\r\n\r\n\t\t// Intercept events so they can be redispatched\r\n\r\n\t\tscrollPane.addMouseWheelListener(this);\r\n\t}", "void setWheel(boolean wheel);", "public MouseWheelListener getZoomListener() {\r\n\t\treturn new MouseWheelListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent e) {\r\n\t\t\t\tif(e.getWheelRotation() < 0){\r\n\t\t\t\t\tit.increaseZoomX();\r\n\t\t it.increaseZoomY();\r\n\t\t\t\t}else if(e.getWheelRotation() > 0){\r\n\t\t\t\t\tit.decreaseZoomX();\r\n\t\t\t\t\tit.decreaseZoomY();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public MouseWheelController(JScrollPane scrollPane, int scrollAmount)\r\n\t{\r\n\t\tthis.scrollPane = scrollPane;\r\n\t\tsetScrollAmount( scrollAmount );\r\n\t\tinstall();\r\n\t}", "boolean getKeyWheel();", "void onChanged(RulerWheel wheel, int oldValue, int newValue);", "private void onScroll(double wheelDelta, Point2D mousePoint) {\n double zoomFactor = Math.exp(wheelDelta * zoomIntensity);\n\n Bounds innerBounds = zoomNode.getLayoutBounds();\n Bounds viewportBounds = getViewportBounds();\n\n // calculate pixel offsets from [0, 1] range\n double valX = this.getHvalue() * (innerBounds.getWidth() - viewportBounds.getWidth());\n double valY = this.getVvalue() * (innerBounds.getHeight() - viewportBounds.getHeight());\n scaleValue = scaleValue * zoomFactor;\n \n // calculate minimum zoom\n if(Math.max(target.getLayoutBounds().getWidth()*scaleValue, target.getLayoutBounds().getHeight()*scaleValue) < minViewPortSize) {\n\n \tscaleValue = minViewPortSize / Math.max(target.getLayoutBounds().getWidth(), target.getLayoutBounds().getHeight());\n updateScale();\n this.layout();\n \n } else if(scaleValue > zoom_max) {\n \tscaleValue = zoom_max;\n \tupdateScale();\n this.layout();\n }else {\n \tupdateScale();\n this.layout();\n\n // convert target coordinates to zoomTarget coordinates\n Point2D posInZoomTarget = target.parentToLocal(zoomNode.parentToLocal(mousePoint));\n\n // calculate adjustment of scroll position\n Point2D adjustment = target.getLocalToParentTransform().deltaTransform(posInZoomTarget.multiply(zoomFactor - 1));\n\n // convert back to [0, 1] range\n Bounds updatedInnerBounds = zoomNode.getBoundsInLocal();\n this.setHvalue((valX + adjustment.getX()) / (updatedInnerBounds.getWidth() - viewportBounds.getWidth()));\n this.setVvalue((valY + adjustment.getY()) / (updatedInnerBounds.getHeight() - viewportBounds.getHeight()));\n }\n }", "void showPreviousEventsLoadingWheel();", "public void setMousewheelEnable(final boolean mousewheelEnable) {\r\n\t\tgetState().enableMousewheel = mousewheelEnable;\r\n\t}", "public void setWheelScrollingEnabled(boolean paramBoolean) {\n/* 1323 */ boolean bool = this.wheelScrollState;\n/* 1324 */ this.wheelScrollState = paramBoolean;\n/* 1325 */ firePropertyChange(\"wheelScrollingEnabled\", bool, paramBoolean);\n/* */ }", "@Override\r\n public void handleMouseMovedEvent(Mouse.MotionEvent event) {\n }", "private MouseWheelEvent createScrollAmountEvent(MouseWheelEvent e)\r\n\t{\n\r\n\t\tMouseWheelEvent mwe = new MouseWheelEvent(\r\n\t\t\te.getComponent(),\r\n\t\t\te.getID(),\r\n\t\t\te.getWhen(),\r\n\t\t\te.getModifiers(),\r\n\t\t\te.getX(),\r\n\t\t\te.getY(),\r\n\t\t\te.getXOnScreen(),\r\n\t\t\te.getYOnScreen(),\r\n\t\t\te.getClickCount(),\r\n\t\t\te.isPopupTrigger(),\r\n\t\t\te.getScrollType(),\r\n\t\t\tscrollAmount,\r\n\t\t\te.getWheelRotation());\r\n\r\n\t\treturn mwe;\r\n\t}", "void onLeftMouseButtonReleased(double mouseX, double mouseY);", "void mouseMoved(double x, double y, MouseEvent e );", "private void onColourWheelInput(MouseEvent e)\n {\n int x = (int)e.getX(), y = (int)e.getY();\n try\n {\n setColour(pickerWheel.getImage().getPixelReader().getColor(x, y), true);\n syncSliderInput();\n syncHexInput();\n syncRgbInput();\n } catch (IndexOutOfBoundsException ex){}\n }", "void showNextEventsLoadingWheel();", "public void mouseMoved(MouseEvent event) {\n }", "@Override\r\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent e) {\n\t\t\t\tif (e.getPreciseWheelRotation() > 0) {\r\n\t\t\t\t\timgPanel.reScale(imgPanel.scale * 1.1);\r\n\t\t\t\t} else {\r\n\t\t\t\t\timgPanel.reScale(imgPanel.scale * 0.9);\r\n\t\t\t\t}\r\n\t\t\t\tlayeredPane.setPreferredSize(new Dimension((int) (img.getWidth() * imgPanel.finalScale),\r\n\t\t\t\t\t\t(int) (imgPanel.getHeight() * imgPanel.finalScale)));\r\n\t\t\t\tlayeredPane.setBounds(0, 0, (int) (img.getWidth() * imgPanel.finalScale),\r\n\t\t\t\t\t\t(int) (imgPanel.getHeight() * imgPanel.finalScale));\r\n\t\t\t\tlayeredPane.repaint();\r\n\t\t\t\tscrollPane.repaint();\r\n\t\t\t}", "public void mouseMoved(MouseEvent e){}", "@Override\r\n\t\t\tpublic void handle(ScrollEvent e) {\n\t\t\t\tif (e.isControlDown() && getSkinnable().isScalableOnScroll()) {\r\n\t\t\t\t\tdouble delta = e.getDeltaY();\r\n\t\t\t\t\tdouble newValue = localScaleFactor.get();\r\n\t\t\t\t\tif (delta > 0) { // Increasing the zoom.\r\n\t\t\t\t\t\tnewValue = newValue + ZOOM_DELTA;\r\n\t\t\t\t\t\tif (newValue > ZOOM_MAX) {\r\n\t\t\t\t\t\t\tnewValue = ZOOM_MAX;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (delta < 0) { // Decreasing the zoom.\r\n\t\t\t\t\t\tnewValue = newValue - ZOOM_DELTA;\r\n\t\t\t\t\t\tif (newValue < ZOOM_MIN) {\r\n\t\t\t\t\t\t\tnewValue = ZOOM_MIN;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlocalScaleFactor.set(newValue);\r\n\t\t\t\t\ttakeSnap(prevX.get(), prevY.get());\r\n\t\t\t\t}\r\n\t\t\t\t// If scrolled with ALT key press\r\n\t\t\t\telse if (e.isAltDown() && getSkinnable().isResizableOnScroll()) {\r\n\t\t\t\t\tfinal double delta = e.getDeltaY();\r\n\t\t\t\t\tif (delta > 0) { // Increasing the size.\r\n\t\t\t\t\t\tlocalRadius.set(localRadius.get() + RADIUS_DELTA);\r\n\t\t\t\t\t\tshiftViewerContent(prevX.get(), prevY.get(), localRadius.get(), localScaleFactor.get());\r\n\t\t\t\t\t} else if (delta < 0) { // Decreasing the size.\r\n\t\t\t\t\t\tif (localRadius.get() > MIN_RADIUS) {\r\n\t\t\t\t\t\t\tlocalRadius.set(localRadius.get() - RADIUS_DELTA);\r\n\t\t\t\t\t\t\tshiftViewerContent(prevX.get(), prevY.get(), localRadius.get(), localScaleFactor.get());\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}", "void mouseReleased(double x, double y, MouseEvent e );", "public void mouseMoved(MouseEvent e) {\n\t\tupdateHud();\r\n\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n // Apply mouse drag\n Coord2d mouse = xy(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n // Rotate if left button down\n if (AWTMouseUtilities.isLeftDown(e)) {\n Coord2d move = mouse.sub(prevMouse).div(100);\n rotate(move);\n }\n\n // Shift if right button down\n else if (AWTMouseUtilities.isRightDown(e)) {\n Coord2d move = mouse.sub(prevMouse);\n if (move.y != 0)\n shift(move.y / 500);\n }\n\n }\n\n // 2D mode\n else {\n // Record the mouse selection in progress\n Coord2d dragMouse = xy(e);\n\n if (maintainInAxis)\n maintainInAxis(dragMouse);\n\n\n mouseSelection.stop2D = dragMouse;\n mouseSelection.stop3D = screenToModel(dragMouse.x, dragMouse.y);\n\n getChart().getView().shoot();\n\n }\n\n prevMouse = mouse;\n }", "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved(MouseEvent e) {}", "public void mousePressed( MouseEvent mouseEvent ) {\r\n if ( mouseEvent.getSource() instanceof ViewJComponentHLUTBase ) {\r\n float x = mouseEvent.getX();\r\n float y = mouseEvent.getY();\r\n\r\n if ( !mouseEvent.isShiftDown() ) {\r\n componentHistogram.addFunctionPoint( x, y );\r\n } else {\r\n componentHistogram.removeClickedFunctionPoint();\r\n }\r\n if ( lutRecorder != null ) {\r\n lutRecorder.dragPoint( ( (ViewJComponentHistoLUT) componentHistogram ).getLUT() );\r\n }\r\n }\r\n }", "@Override\r\n public void mouseMoved(MouseEvent e) {\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n\n }", "@Override\n public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) {\n }", "@Override\n\t\tpublic void OnDoubleFingerStartScroll(MotionEvent ev, int direction) {\n\n\t\t}", "public void mouseMoved(MouseEvent e) {}", "@Override\n public void mouseMoved(MouseEvent arg0) {\n \n }", "void onMouseMoved(double mouseX, double mouseY, double prevMouseX, double prevMouseY);", "boolean getWheel();", "public void mouseMoved(MouseEvent e) {\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n }", "void onScroll(boolean bDragging);", "public void handleScrollBarUpdate(ScrollBar scrollBar);", "@Override\r\n public boolean onScroll(float displacement, float delta, float velocity) {\n return false;\r\n }", "@Override\r\n\tprotected void mouseClickMove(int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick) {\r\n\t\tif (_scrollActive) {\r\n\t\t\t_curScrollValue += mouseY - _lastScrollPosY;\r\n\t\t\t_curScrollValue = Math.max(0, Math.min(_curScrollValue, _maxScrollValue));\r\n\t\t\t_lastScrollPosY = mouseY;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tsuper.mouseClickMove(mouseX, mouseY, clickedMouseButton, timeSinceLastClick);\r\n\t}", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\n\r\n\t}", "@Override\n\tpublic void mouseWheelMoved(MouseWheelEvent e) {\n\t\tratio += ratio / (-e.getUnitsToScroll() * 10);\n\t\tif (ratio < 50.0 / current_image.getWidth()) {\n\t\t\tratio = 50.0 / current_image.getWidth();\n\t\t}\n\t\tif (ratio < 50.0 / current_image.getHeight()) {\n\t\t\tratio = 50.0 / current_image.getHeight();\n\t\t}\n\t\tint prew = w;\n\t\tint preh = h;\n\t\tw = (int) (current_image.getWidth() * ratio);\n\t\th = (int) (current_image.getHeight() * ratio);\n\t\tif (w < Monitor_Width) { // centers x\n\t\t\tx = (Monitor_Width - w) / 2;\n\t\t} else { // centers around h/2\n\t\t\tx -= (w - prew) / 2;\n\t\t\tif (x > 0)\n\t\t\t\tx = 0;\n\t\t\tif (x < Monitor_Width - w)\n\t\t\t\tx = Monitor_Width - w;\n\t\t}\n\t\tif (h < Monitor_Height) { // centers y\n\t\t\ty = (Monitor_Height - h) / 2;\n\t\t} else { // centers around h/2\n\t\t\ty -= (h - preh) / 2;\n\t\t\tif (y > 0)\n\t\t\t\ty = 0;\n\t\t\tif (y < Monitor_Height - h)\n\t\t\t\ty = Monitor_Height - h;\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\r\n\t\t\t}", "int spinTheWheel();", "public void paintWheel() {\n \t\n //initialColor is the initially-selected color to be shown in the rectangle on the left of the arrow.\n //for example, 0xff000000 is black, 0xff0000ff is blue. Please be aware of the initial 0xff which is the alpha.\n AmbilWarnaDialog dialog = new AmbilWarnaDialog(c, currentColor, new OnAmbilWarnaListener() {\n \n // Executes, when user click Cancel button\n @Override\n public void onCancel(AmbilWarnaDialog dialog){\n }\n \n // Executes, when user click OK button\n @Override\n public void onOk(AmbilWarnaDialog dialog, int color) {\n \t\n \tcurrentColor=color;\n \t//convert RGB values to float(0-1) for OpenGL use\n \tfloat r=(float)Color.red(color)/255;\n \tfloat g=(float)Color.green(color)/255;\n \tfloat b=(float)Color.blue(color)/255;\n \t\n \tsetModelColor(r,g,b);\n }\n });\n dialog.show();\n }", "@Override\r\n public void mouseMoved(MouseEvent e) {\r\n\r\n }", "@Override\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent e) {\n\t\t\t\tif(enabled){\n\t\t\t\tImageIcon tap = null;\n\t\t\t\tif (e.getWheelRotation() < 0) {\n\t\t\t\t\t// zoom in - increase size\n\n\t\t\t\t\tif (zoom_count < 0) {\n\t\t\t\t\t\tzoom_count = 0;\n\t\t\t\t\t}\n\t\t\t\t\tzoom_count++;\n\t\t\t\t\t// fetch key frame number and get x, y of that frame in new\n\t\t\t\t\t// tapestry then crop image to that frame\n\t\t\t\t\tHashtable<Integer, ArrayList<ArrayList<Integer>>> xy = indexMap.getIndexTable();\n\t\t\t\t\ttapestry.removeAll();\n\t\t\t\t\tBufferedImage i = null;\n\t\t\t\t\tif (zoom_count == 1) {\n\t\t\t\t\t\tint pix = indexImage.getRGB(e.getX(), e.getY());\n\t\t\t\t\t\tint frameNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\t\tint keyFrameIndex = sceneIndex.get(frameNum);\n\t\t\t\t\t\tint frame = keyFrameIndex / (352 * 288 * 3);\n\n\t\t\t\t\t\t// find x,y of new tapestry\n\t\t\t\t\t\tSystem.out.println(\"x point in new tapestry: \" + xy.get(frame).get(1).get(0));\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ti = ImageIO.read(new File(nameOfTapestry + \"_\" + method + \"_\" + threshold_zoom1 + \".png\"));\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint zoom_image_width = i.getWidth();\n\t\t\t\t\t\tint middle = zoom_image_width - original_tapestry_size_width;\n\n\t\t\t\t\t\tint T = 5;\n\n\t\t\t\t\t\tif (xy.get(frame).get(1).get(0) - T < 0) {\n\t\t\t\t\t\t\tstart_x = 0;\n\t\t\t\t\t\t\tend_x = original_tapestry_size_width;\n\t\t\t\t\t\t} else if ((xy.get(frame).get(1).get(0) - T + original_tapestry_size_width) > zoom_image_width) {\n\t\t\t\t\t\t\tstart_x = zoom_image_width - original_tapestry_size_width;\n\t\t\t\t\t\t\tend_x = zoom_image_width;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstart_x = xy.get(frame).get(1).get(0) - T;\n\t\t\t\t\t\t\tend_x = xy.get(frame).get(1).get(0) - T + original_tapestry_size_width;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"x_start point : \" + start_x);\n\t\t\t\t\t\tSystem.out.println(\"x_endt point : \" + end_x);\n\n\t\t\t\t\t\ti = i.getSubimage(start_x, 0, (end_x - start_x), original_tapestry_size_height);\n\t\t\t\t\t\ttap = new ImageIcon(i);\n\t\t\t\t\t\tzoom_count=1;\n\n\t\t\t\t\t} else if (zoom_count >= 2) {\n\n\t\t\t\t\t\tint pix = zoom1IndexImage.getRGB(e.getX(), e.getY());\n\t\t\t\t\t\tint frameNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\t\tint keyFrameIndex = zoom1SceneIndex.get(frameNum);\n\t\t\t\t\t\tint frame = keyFrameIndex / (352 * 288 * 3);\n\n\t\t\t\t\t\t// find x,y of new tapestry\n\t\t\t\t\t\tSystem.out.println(\"x point in new tapestry: \" + xy.get(frame).get(2).get(0));\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ti = ImageIO.read(new File(nameOfTapestry + \"_\" + method + \"_\" + threshold_zoom2 + \".png\"));\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint zoom_image_width = i.getWidth();\n\t\t\t\t\t\tint middle = zoom_image_width - original_tapestry_size_width;\n\n\t\t\t\t\t\tint T = 20;\n\n\t\t\t\t\t\tif (xy.get(frame).get(2).get(0) - T < 0) {\n\t\t\t\t\t\t\tstart_x = 0;\n\t\t\t\t\t\t\tend_x = original_tapestry_size_width;\n\t\t\t\t\t\t} else if ((xy.get(frame).get(2).get(0) - T + original_tapestry_size_width) > zoom_image_width) {\n\t\t\t\t\t\t\tstart_x = zoom_image_width - original_tapestry_size_width;\n\t\t\t\t\t\t\tend_x = zoom_image_width;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstart_x = xy.get(frame).get(2).get(0) - T;\n\t\t\t\t\t\t\tend_x = xy.get(frame).get(2).get(0) - T + original_tapestry_size_width;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"x_start point : \" + start_x);\n\t\t\t\t\t\tSystem.out.println(\"x_endt point : \" + end_x);\n\n\t\t\t\t\t\ti = i.getSubimage(start_x, 0, (end_x - start_x), original_tapestry_size_height);\n\t\t\t\t\t\ttap = new ImageIcon(i);\n\t\t\t\t\t\tzoom_count=2;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tJLabel label = new JLabel(\"\", tap, JLabel.CENTER);\n\n\t\t\t\t\ttapestry.add(label, BorderLayout.CENTER);\n\n\t\t\t\t\ttapestry.revalidate();\n\t\t\t\t\ttapestry.repaint();\n\n\t\t\t\t} else {\n\t\t\t\t\t// zoom out - decrease size\n\t\t\t\t\tif (zoom_count > 2) {\n\t\t\t\t\t\tzoom_count = 2;\n\t\t\t\t\t}\n\t\t\t\t\tHashtable<Integer, ArrayList<ArrayList<Integer>>> xy = indexMap.getIndexTable();\n\t\t\t\t\ttapestry.removeAll();\n\t\t\t\t\tif (zoom_count >= 2) {\n\t\t\t\t\t\tint pix = zoom2IndexImage.getRGB(e.getX(), e.getY());\n\t\t\t\t\t\tint frameNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\t\tint keyFrameIndex = zoom2SceneIndex.get(frameNum);\n\t\t\t\t\t\tint frame = keyFrameIndex / (352 * 288 * 3);\n\n\t\t\t\t\t\t// find x,y of new tapestry\n\t\t\t\t\t\tSystem.out.println(\"x point in new tapestry: \" + xy.get(frame).get(1).get(0));\n\t\t\t\t\t\tBufferedImage i = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ti = ImageIO.read(new File(nameOfTapestry + \"_\" + method + \"_\" + threshold_zoom1 + \".png\"));\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint zoom_image_width = i.getWidth();\n\t\t\t\t\t\tint middle = zoom_image_width - original_tapestry_size_width;\n\n\t\t\t\t\t\tint T = 20;\n\n\t\t\t\t\t\tif (xy.get(frame).get(1).get(0) - T < 0) {\n\t\t\t\t\t\t\tstart_x = 0;\n\t\t\t\t\t\t\tend_x = original_tapestry_size_width;\n\t\t\t\t\t\t} else if ((xy.get(frame).get(1).get(0) - T + original_tapestry_size_width) > zoom_image_width) {\n\t\t\t\t\t\t\tstart_x = zoom_image_width - original_tapestry_size_width;\n\t\t\t\t\t\t\tend_x = zoom_image_width;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstart_x = xy.get(frame).get(1).get(0) - T;\n\t\t\t\t\t\t\tend_x = xy.get(frame).get(1).get(0) - T + original_tapestry_size_width;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"x_start point : \" + start_x);\n\t\t\t\t\t\tSystem.out.println(\"x_endt point : \" + end_x);\n\n\t\t\t\t\t\ti = i.getSubimage(start_x, 0, (end_x - start_x), original_tapestry_size_height);\n\t\t\t\t\t\ttap = new ImageIcon(i);\n\t\t\t\t\t\tzoom_count = 1;\n\n\t\t\t\t\t} else if (zoom_count <= 1) {\n\t\t\t\t\t\ttap = new ImageIcon(nameOfTapestry + \"_\" + method + \"_\" + threshold + \".png\");\n\t\t\t\t\t\tzoom_count = 0;\n\t\t\t\t\t}\n\t\t\t\t\tJLabel label = new JLabel(\"\", tap, JLabel.CENTER);\n\n\t\t\t\t\ttapestry.add(label, BorderLayout.CENTER);\n\n\t\t\t\t\ttapestry.revalidate();\n\t\t\t\t\ttapestry.repaint();\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e)\n\t{\n\t}", "public abstract void onScrollUp();", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\n\t}", "private void mouseMove() {\n if (this.holding) {\n Point point = new Point(mousex, mousey);\n this.addPixel(point);\n }\n }", "@Override\n public void mouseMoved(MouseEvent e){\n \n }", "@Override\n\t\tpublic void OnDoubleFingerStartZoom(MotionEvent ev) {\n\n\t\t}", "void mouseDragged(double x, double y, MouseEvent e );", "@Override\n public void mouseMoved(MouseEvent e) {}", "public void mouseReleased( MouseEvent event ){}", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "@Override \n\tpublic void mouseMoved(MouseEvent e){\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}" ]
[ "0.82168347", "0.8028072", "0.7991223", "0.7976084", "0.780031", "0.7754695", "0.76799923", "0.75300115", "0.7292255", "0.7207614", "0.71536744", "0.71506304", "0.7144769", "0.7140096", "0.7140096", "0.7140096", "0.70499235", "0.7008273", "0.7008155", "0.6976121", "0.693644", "0.69094074", "0.6848972", "0.683546", "0.66820484", "0.6589613", "0.6564216", "0.6549478", "0.645217", "0.64375347", "0.63987803", "0.63682467", "0.63127005", "0.62955636", "0.6247782", "0.61923563", "0.6136534", "0.607326", "0.6070819", "0.60259837", "0.6003578", "0.6003206", "0.5988515", "0.59848714", "0.5976999", "0.5920029", "0.58036166", "0.57968295", "0.57865685", "0.57679564", "0.57635885", "0.57381254", "0.5728966", "0.5699729", "0.5682216", "0.56623167", "0.5643526", "0.5636084", "0.5635234", "0.56234133", "0.56086826", "0.5603446", "0.5602075", "0.5602075", "0.5600986", "0.55904067", "0.5590037", "0.55897796", "0.5582948", "0.558211", "0.5578935", "0.55740684", "0.5570579", "0.55693734", "0.55592084", "0.5555803", "0.55463076", "0.5534216", "0.55237466", "0.55132747", "0.55106217", "0.54965115", "0.5495433", "0.54927886", "0.5491822", "0.54897773", "0.5485959", "0.548363", "0.5481743", "0.5470069", "0.5470069", "0.5460385", "0.54602903", "0.5456803", "0.54544073", "0.54505485", "0.54499376", "0.54413205", "0.54370093", "0.5431301" ]
0.81705964
1