blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
332
content_id
stringlengths
40
40
detected_licenses
listlengths
0
50
license_type
stringclasses
2 values
repo_name
stringlengths
7
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
557 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
684M
star_events_count
int64
0
77.7k
fork_events_count
int64
0
48k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
82 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
7
5.41M
extension
stringclasses
11 values
content
stringlengths
7
5.41M
authors
listlengths
1
1
author
stringlengths
0
161
f3dd290f56f5af82cfd5fca62da717dcd4234778
fbfcb88a9bfdc2868077a7035a74c98dc3eb25a0
/src/combiz/ui/common/lookup/FindClassificationEqTree.java
bb5c9106cc8006e5055f77d6a755dab899f5e073
[]
no_license
jackwysxw/combiz
817af9399251ff286d2a4c1d525953e8f66c8e06
9a84f3b4e8866a5030462eafa683bf5d7ad4bf40
refs/heads/master
2020-04-25T14:46:23.301900
2016-09-26T07:04:16
2016-09-26T07:04:16
null
0
0
null
null
null
null
GB18030
Java
false
false
8,017
java
package combiz.ui.common.lookup; import combiz.business.classattr.ClassificationSrv; import combiz.domain.classattr.Classification; import combiz.system.IBOSrvUtil; import combiz.system.ui.common.LookupTree; import combiz.system.util.Util; import java.util.List; import com.inbasis.zul.Treecell; import com.inbasis.zul.Treechildren; import com.inbasis.zul.Treeitem; import com.inbasis.zul.Treerow; public class FindClassificationEqTree extends LookupTree { private String type; ClassificationSrv classificationSrv; public FindClassificationEqTree() { super(); } public void onCreate() throws Exception { this.setHeight("300px"); this.setVflex(true); classificationSrv = (ClassificationSrv)IBOSrvUtil.getSrv("classification"); } public void setType(String type){ this.type=type; } public String getType(){ return this.type; } /** * 创建初始树 * @throws Exception * 作者:洪小林 日期:2007-4-25 */ public void createRoot() throws Exception { //清除树,重新构建 this.getChildren().clear(); /**************************************************** * 如果是选择树,如部门选择树,那么在过滤条件上必须加上this.getQueryString() * 如果是中间树,比如人员选择的时候的部门树,那么在过滤条件上必须加上this.getTreeQueryString("树的主表名-大写") */ String whereStr = "parent is null and classtype='资产' "; if(this.getQueryString()!=null) whereStr = whereStr + " and " + this.getQueryString(); List list = classificationSrv.findWithQuery(whereStr,"orderby"); if(list==null || list.isEmpty()) { Treechildren tc = new Treechildren(); tc.appendChild(new Treeitem("没有分类数据!")); this.appendChild(tc); return; } //Treecols tcols = new Treecols(); //Treecol tcol = new Treecol(); //tcol.setMaxlength(10);//设置列显示的最大字符数 //tcols.appendChild(tcol); //this.appendChild(tcols); Treechildren tc = new Treechildren(); Treeitem ti; for(int i=0;i<list.size();i++) { Classification classification = (Classification)list.get(i); ti = new Treeitem(classification.getDescription()+":"+classification.getClassid()); ti.setValue(classification); ti.setImage("/images/img_location.gif"); ti.setOpen(true); //很重要!这段不加上,树的自动滚动就出不来。 Treerow treerow = (Treerow)ti.getChildren().get(0); Treecell treecell = (Treecell)treerow.getChildren().get(0); treecell.setStyle("white-space:nowrap;"); ////////////////////////////////////////////// if(Util.getBoolean(classification.getHaschild())) { Treechildren nextChild = new Treechildren(); ti.appendChild(nextChild); ti.addEventListener("onOpen", new openNode()); this.expand(ti); } tc.appendChild(ti); } this.appendChild(tc); if(this.getItemCount()>0) { Treeitem treeitem = (Treeitem)this.getItems().iterator().next(); this.selectItem(treeitem); } } /** * 创建带有原始值的树 * @throws Exception * 作者:洪小林 日期:2007-4-25 */ public void createRoot(String value) throws Exception { this.getChildren().clear(); List list = classificationSrv.findWithQuery("classid='"+value+"' and classtype='资产'"); if(list.size()<=0) { Treechildren tc = new Treechildren(); tc.appendChild(new Treeitem("不存在分类["+value+"]!")); this.appendChild(tc); return; } Classification classification = (Classification) list.get(0); Treeitem ti = new Treeitem(classification.getDescription()+"["+classification.getClassid()+"]"); ti.setValue(classification); ti.setImage("/images/img_location.gif"); ti.setOpen(true); //很重要!这段不加上,树的自动滚动就出不来。 Treerow treerow = (Treerow)ti.getChildren().get(0); Treecell treecell = (Treecell)treerow.getChildren().get(0); treecell.setStyle("white-space:nowrap;"); ////////////////////////////////////////////// if(Util.getBoolean(classification.getHaschild())) { Treechildren nextChild = new Treechildren(); ti.appendChild(nextChild); ti.addEventListener("onOpen", new openNode()); this.expand(ti); } //最底层的tc Treechildren bottomTc = new Treechildren(); bottomTc.appendChild(ti); //递归调用创建父级 Treechildren topTc = null; Classification parent = this.getParent(classification); while(parent!=null) { topTc = this.createUpItem(parent, bottomTc); parent = this.getParent(parent); bottomTc = topTc; } //最顶层的tc if(topTc==null) topTc = bottomTc; this.appendChild(topTc); this.selectItem(ti); } /** * 获取位置父级 * @return 作者:洪小林 日期:2007-5-4 */ private Classification getParent(Classification classification) throws Exception { List parentList = classificationSrv.findWithQuery("classid = '" + classification.getParent() + "' and classtype='资产'"); if (parentList.size() > 0) { Classification parent = (Classification) parentList.get(0); return parent; } return null; } //由createRoot方法调用递归 private Treechildren createUpItem(Classification classification, Treechildren childTc) throws Exception { Treechildren tc = new Treechildren(); Treeitem ti = new Treeitem(classification.getDescription()+"["+classification.getClassid()+"]"); ti.setValue(classification); ti.setImage("/images/img_location.gif"); ti.setOpen(true); //很重要!这段不加上,树的自动滚动就出不来。 Treerow treerow = (Treerow)ti.getChildren().get(0); Treecell treecell = (Treecell)treerow.getChildren().get(0); treecell.setStyle("white-space:nowrap;"); ////////////////////////////////////////////// ti.addEventListener("onOpen", new openNode()); ti.appendChild(childTc); tc.appendChild(ti); return tc; } /** * 展开树节点 * @param parentitem * 作者:洪小林 日期:2007-4-25 */ public void expand(Treeitem parentitem) throws Exception { if(parentitem!=null && parentitem.getValue() != null) //如果没有父级 { //*********第一种:每次都删除后重新从数据库中取数 Treechildren tc = parentitem.getTreechildren(); if(tc!=null && tc.getChildren().size()>0) tc.getChildren().clear(); //*********第二种:第一次点击是从数据库中取数据,以后就不删除也不取了 //if(tc.getChildren().size()>0) // return; Classification parentClass = (Classification)parentitem.getValue(); /**************************************************** * 如果是选择树,如部门选择树,那么在过滤条件上必须加上this.getQueryString() * 如果是中间树,比如人员选择的时候的部门树,那么在过滤条件上必须加上this.getTreeQueryString("树的主表名-大写") */ String whereStr = "parent = '"+parentClass.getClassid()+"' and classtype='资产'"; if(this.getQueryString()!=null) whereStr = whereStr + " and " + this.getQueryString(); List list = classificationSrv.findWithQuery(whereStr,"orderby"); Treeitem ti; for(int i=0;i<list.size();i++) { Classification classification = (Classification)list.get(i); ti = new Treeitem(classification.getDescription()+":"+classification.getClassid()); // ti.setValue(classification); ti.setImage("/images/img_location.gif"); ti.setOpen(false); //很重要!这段不加上,树的自动滚动就出不来。 Treerow treerow = (Treerow)ti.getChildren().get(0); Treecell treecell = (Treecell)treerow.getChildren().get(0); treecell.setStyle("white-space:nowrap;"); ////////////////////////////////////////////// if(Util.getBoolean(classification.getHaschild())) { Treechildren nextChild = new Treechildren(); ti.appendChild(nextChild); ti.addEventListener("onOpen", new openNode()); } tc.appendChild(ti); } } else //重新刷新树 { this.createRoot(); } } }
[ "876301469@qq.com" ]
876301469@qq.com
67d5cd460f2c772b5aa4714de61478a0f78708cb
5b08dadbf3ae6c033423ba61646ee5b1c0d9f29b
/src/test/java/co/nubetech/hiho/hive/TestHiveUtility.java
9d66c96396a56e9fc9dd2d82a1df8c4cc771a1f7
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sasmita239/hiho
41b39f91d6264dabae99574e29dddf2cbaaf6cd7
77dd5af9b4b19167f062112945433dd588d10640
refs/heads/master
2021-01-18T12:18:20.109324
2013-04-11T06:52:41
2013-04-11T06:52:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
12,839
java
/** * Copyright 2010 Nube Technologies * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and limitations under the License. */ package co.nubetech.hiho.hive; import static org.junit.Assert.assertEquals; import java.sql.Types; import java.util.ArrayList; import org.apache.hadoop.conf.Configuration; import org.junit.Test; import co.nubetech.hiho.mapreduce.lib.db.apache.DBConfiguration; import co.nubetech.hiho.common.HIHOConf; import co.nubetech.hiho.common.HIHOException; import co.nubetech.hiho.job.DBQueryInputJob; import co.nubetech.hiho.mapreduce.lib.db.ColumnInfo; import co.nubetech.hiho.mapreduce.lib.db.GenericDBWritable; public class TestHiveUtility { @Test public void testGetSelectQuery() throws HIHOException { Configuration conf = new Configuration(); Configuration conf1 = new Configuration(); conf.set(DBConfiguration.INPUT_FIELD_NAMES_PROPERTY, "id,name"); conf.set(DBConfiguration.INPUT_TABLE_NAME_PROPERTY, "student"); // conf.set(DBConfiguration.INPUT_CONDITIONS_PROPERTY,""); // conf.set(DBConfiguration.INPUT_QUERY,"select * from student"); conf1.set(DBConfiguration.INPUT_FIELD_NAMES_PROPERTY, "empId,empName,empAddress"); conf1.set(DBConfiguration.INPUT_TABLE_NAME_PROPERTY, "employee"); // conf1.set(DBConfiguration.INPUT_CONDITIONS_PROPERTY,""); conf1.set(DBConfiguration.INPUT_QUERY, "select * from employee"); String dbProductName = "MYSQL"; assertEquals("SELECT id, name FROM student AS student", DBQueryInputJob.getSelectQuery(conf, dbProductName)); assertEquals("select * from employee", DBQueryInputJob.getSelectQuery(conf1, dbProductName)); } @Test public void testGetTableName() throws HIHOException { Configuration conf = new Configuration(); Configuration conf1 = new Configuration(); Configuration conf2 = new Configuration(); conf.set(DBConfiguration.INPUT_TABLE_NAME_PROPERTY, "student"); conf.set(DBConfiguration.INPUT_QUERY, "select * from student"); // conf.set(HIHOConf.HIVE_MULTIPLE_PARTITION_BY, // "country:string:us,ca"); conf.set(HIHOConf.HIVE_TABLE_NAME, "hive"); conf1.set(DBConfiguration.INPUT_QUERY, "select * from student"); conf2.set(DBConfiguration.INPUT_TABLE_NAME_PROPERTY, "employee"); assertEquals("hive", HiveUtility.getTableName(conf)); assertEquals("student", HiveUtility.getTableName(conf1)); assertEquals("employee", HiveUtility.getTableName(conf2)); } @Test public void testGetInsertQuery() throws HIHOException { ColumnInfo intColumn = new ColumnInfo(0, Types.INTEGER, "intColumn"); ColumnInfo stringColumn = new ColumnInfo(1, Types.VARCHAR, "stringColumn"); ArrayList<ColumnInfo> columns = new ArrayList<ColumnInfo>(); columns.add(intColumn); columns.add(stringColumn); // HiveUtility.tableName = "employee"; GenericDBWritable writable = new GenericDBWritable(columns, null); Configuration conf = new Configuration(); conf.set(HIHOConf.HIVE_PARTITION_BY, "country:string:us,name:string"); conf.set(DBConfiguration.INPUT_TABLE_NAME_PROPERTY, "employee"); assertEquals( "FROM `employeetmp` tmp INSERT OVERWRITE TABLE `employee` PARTITION ( country='us',name) SELECT `tmp`.`intColumn`,`tmp`.`stringColumn`", HiveUtility.getInsertQueryFromTmpToMain(conf, writable, conf.get(HIHOConf.HIVE_PARTITION_BY))); } @Test public void testGetTableColumns() throws HIHOException { ColumnInfo intColumn = new ColumnInfo(0, Types.INTEGER, "intColumn"); ColumnInfo stringColumn = new ColumnInfo(1, Types.VARCHAR, "stringColumn"); ArrayList<ColumnInfo> columns = new ArrayList<ColumnInfo>(); columns.add(intColumn); columns.add(stringColumn); GenericDBWritable writable = new GenericDBWritable(columns, null); assertEquals("`tmp`.`intColumn`,`tmp`.`stringColumn`", HiveUtility.getTmpTableColumns(writable)); } @Test public void testGetTmpCreateQuery() throws HIHOException { ColumnInfo intColumn = new ColumnInfo(0, Types.INTEGER, "intColumn"); ColumnInfo stringColumn = new ColumnInfo(1, Types.VARCHAR, "stringColumn"); ArrayList<ColumnInfo> columns = new ArrayList<ColumnInfo>(); columns.add(intColumn); columns.add(stringColumn); Configuration conf = new Configuration(); conf.set(DBConfiguration.INPUT_TABLE_NAME_PROPERTY, "employee"); GenericDBWritable writable = new GenericDBWritable(columns, null); conf.set(HIHOConf.INPUT_OUTPUT_STRATEGY, "DELIMITED"); conf.set(HIHOConf.INPUT_OUTPUT_DELIMITER, ","); assertEquals( "CREATE TABLE `employeetmp` ( `intColumn` int,`stringColumn` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE", HiveUtility.getTmpCreateQuery(conf, writable)); } @Test public void testGetPartitionBy() { String partitionBy = "country:string:us;name:string:jack"; assertEquals("country string,name string", HiveUtility.getPartitionBy(partitionBy)); } @Test public void testGetColumnsForPartitionedCreateTables() { Configuration conf = new Configuration(); conf.set(HIHOConf.HIVE_PARTITION_BY, "country:string:us;name:string:"); String columns = "id int,name string"; assertEquals(" id int", HiveUtility.getColumnsForPartitionedCreateTables(conf, columns)); } // @Test(expected = HIHOException.class) @Test(expected = HIHOException.class) public void testGetCreateQuery() throws HIHOException { ColumnInfo intColumn = new ColumnInfo(0, Types.INTEGER, "id"); ColumnInfo stringColumn = new ColumnInfo(1, Types.VARCHAR, "country"); ArrayList<ColumnInfo> columns = new ArrayList<ColumnInfo>(); columns.add(intColumn); columns.add(stringColumn); // HiveUtility.// = "employee"; GenericDBWritable writable = new GenericDBWritable(columns, null); // This is normal case to generate basic create query Configuration conf = new Configuration(); conf.set(HIHOConf.HIVE_TABLE_NAME, "employee"); conf.set(HIHOConf.INPUT_OUTPUT_STRATEGY, "DELIMITED"); conf.set(HIHOConf.INPUT_OUTPUT_DELIMITER, ";"); assertEquals( "CREATE TABLE `employee` ( `id` int,`country` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ';' STORED AS TEXTFILE", HiveUtility.getCreateQuery(conf, writable)); // This case show create query when clusteredBy and sortedBy // configuration is given user,please make a note sortedBy feature will // not work till clusteredBy feature is not defined. Configuration conf1 = new Configuration(); conf1.set(HIHOConf.HIVE_TABLE_NAME, "employee"); conf1.set(HIHOConf.INPUT_OUTPUT_STRATEGY, "DELIMITED"); conf1.set(HIHOConf.INPUT_OUTPUT_DELIMITER, ","); conf1.set(HIHOConf.INPUT_OUTPUT_DELIMITER, ","); conf1.set(HIHOConf.HIVE_CLUSTERED_BY, "name:2"); conf1.set(HIHOConf.HIVE_SORTED_BY, "name"); // System.out.println(HiveUtility.getCreateQuery(conf1, writable)); assertEquals( "CREATE TABLE `employee` ( `id` int,`country` string) CLUSTERED BY (name) SORTED BY (name) INTO 2 BUCKETS ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE", HiveUtility.getCreateQuery(conf1, writable)); // This case is when user has defined partitionedBy configuration Configuration conf3 = new Configuration(); conf3.set(HIHOConf.HIVE_TABLE_NAME, "employee"); conf3.set(HIHOConf.INPUT_OUTPUT_STRATEGY, "DELIMITED"); conf3.set(HIHOConf.INPUT_OUTPUT_DELIMITER, ","); conf3.set(HIHOConf.INPUT_OUTPUT_DELIMITER, ","); conf3.set(HIHOConf.HIVE_CLUSTERED_BY, "name:2"); conf3.set(HIHOConf.HIVE_SORTED_BY, "name"); conf3.set(HIHOConf.HIVE_PARTITION_BY, "country:string"); String partitionBy = "country:string"; // String partitionBy1 = "name:string:raj,country:string"; // System.out.println(HiveUtility.getCreateQuery(conf3, // writable,partitionBy)); assertEquals( "CREATE TABLE `employee` ( `id` int) PARTITIONED BY (country string) CLUSTERED BY (name) SORTED BY (name) INTO 2 BUCKETS ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE", HiveUtility.getCreateQuery(conf3, writable, partitionBy)); // This is case of dynamicPartition when static and dynamic both // partitions are defined Configuration conf4 = new Configuration(); conf4.set(HIHOConf.HIVE_TABLE_NAME, "employee"); conf4.set(HIHOConf.INPUT_OUTPUT_STRATEGY, "DELIMITED"); conf4.set(HIHOConf.INPUT_OUTPUT_DELIMITER, ","); conf4.set(HIHOConf.INPUT_OUTPUT_DELIMITER, ","); conf4.set(HIHOConf.HIVE_CLUSTERED_BY, "name:2"); conf4.set(HIHOConf.HIVE_SORTED_BY, "name"); conf4.set(HIHOConf.HIVE_PARTITION_BY, "name:string:raj;country:string"); // String partitionBy = "country:string"; String partitionBy1 = "name:string:raj;country:string"; System.out.println(HiveUtility.getCreateQuery(conf4, writable, partitionBy1)); assertEquals( "CREATE TABLE `employee` ( `id` int) PARTITIONED BY (name string,country string) CLUSTERED BY (name) SORTED BY (name) INTO 2 BUCKETS ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE", HiveUtility.getCreateQuery(conf4, writable, partitionBy1)); // This case will throw HIHOException as with clusteredBy conf number of // buckets is not defined,it must be defined as name:2 // please make a note that this case is true for both getCreateQuery() // function Configuration conf2 = new Configuration(); conf2.set(HIHOConf.INPUT_OUTPUT_STRATEGY, "DELIMITED"); conf2.set(HIHOConf.INPUT_OUTPUT_DELIMITER, ","); conf2.set(HIHOConf.HIVE_CLUSTERED_BY, "name"); conf2.set(HIHOConf.HIVE_TABLE_NAME, "employee"); HiveUtility.getCreateQuery(conf2, writable); } @Test public void testGetcolumns() throws HIHOException { ColumnInfo intColumn = new ColumnInfo(0, Types.INTEGER, "id"); ColumnInfo stringColumn = new ColumnInfo(1, Types.VARCHAR, "country"); ArrayList<ColumnInfo> columns = new ArrayList<ColumnInfo>(); columns.add(intColumn); columns.add(stringColumn); // HiveUtility.// = "employee"; GenericDBWritable writable = new GenericDBWritable(columns, null); assertEquals("`id` int,`country` string", HiveUtility.getColumns(writable)); } @Test public void testGetDynamicPartitionBy() { String partitionBy = "name:string:raj;country:string"; String partitionBy1 = "name:string"; assertEquals("country", HiveUtility.getDynamicPartitionBy(partitionBy)); assertEquals("name", HiveUtility.getDynamicPartitionBy(partitionBy1)); } @Test public void testGetLoadQuery() throws HIHOException { ColumnInfo intColumn = new ColumnInfo(0, Types.INTEGER, "intColumn"); ColumnInfo stringColumn = new ColumnInfo(1, Types.VARCHAR, "stringColumn"); ArrayList<ColumnInfo> columns = new ArrayList<ColumnInfo>(); columns.add(intColumn); columns.add(stringColumn); // HiveUtility.tableName = "employee"; GenericDBWritable writable = new GenericDBWritable(columns, null); Configuration config = new Configuration(); // String partitionBy = "country:string"; String partitionBy1 = "country:string:us"; config.set(HIHOConf.INPUT_OUTPUT_PATH, "/user/nube/tableForHiho"); config.set(HIHOConf.HIVE_TABLE_NAME, "employee"); config.set(HIHOConf.HIVE_PARTITION_BY, "country:string:us"); assertEquals( "LOAD DATA INPATH '/user/nube/tableForHiho' OVERWRITE INTO TABLE `employee` PARTITION ( country='us')", HiveUtility.getLoadQuery(config, config.get(HIHOConf.INPUT_OUTPUT_PATH), writable, partitionBy1)); Configuration config1 = new Configuration(); String partitionBy = "country:string"; // String partitionBy1 = "country:string:us"; config1.set(HIHOConf.INPUT_OUTPUT_PATH, "/user/nube/tableForHiho"); config1.set(HIHOConf.HIVE_TABLE_NAME, "employee"); // config1.set(HIHOConf.HIVE_PARTITION_BY, "country:string:us"); assertEquals( "LOAD DATA INPATH '/user/nube/tableForHiho' OVERWRITE INTO TABLE `employee`", HiveUtility.getLoadQuery(config1, config.get(HIHOConf.INPUT_OUTPUT_PATH), writable)); } public void testGetColumnType() throws HIHOException { assertEquals("int", HiveUtility.getColumnType(Types.INTEGER)); assertEquals("long", HiveUtility.getColumnType(Types.BIGINT)); assertEquals("float", HiveUtility.getColumnType(Types.FLOAT)); assertEquals("double", HiveUtility.getColumnType(Types.DOUBLE)); assertEquals("string", HiveUtility.getColumnType(Types.CHAR)); assertEquals("bytearray", HiveUtility.getColumnType(Types.BINARY)); assertEquals("bytearray", HiveUtility.getColumnType(Types.BLOB)); assertEquals("bytearray", HiveUtility.getColumnType(Types.CLOB)); } }
[ "sonalgoyal4@gmail.com" ]
sonalgoyal4@gmail.com
d65f15a92e97571cc946e1f0cc97be810f28aeb9
100898d5a2e914f09ee8a86d545bbcc7698f0962
/src/org/ojalgo/optimisation/linear/SimplexTableauSolver.java
c18553df2cfc91abe9e8375a33c1f6150d54965f
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jqxu/ojAlgo
6ef08b15987c1489d1a806078d278246d0339168
e91ed854e5bcde0ae2274fcae76b22601188aaf4
refs/heads/master
2021-01-15T13:00:49.290254
2015-04-07T11:09:47
2015-04-07T11:09:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
15,596
java
/* * Copyright 1997-2014 Optimatika (www.optimatika.se) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package org.ojalgo.optimisation.linear; import static org.ojalgo.constant.PrimitiveMath.*; import static org.ojalgo.function.PrimitiveFunction.*; import java.util.Arrays; import org.ojalgo.ProgrammingError; import org.ojalgo.access.Access1D; import org.ojalgo.access.AccessUtils; import org.ojalgo.array.Array1D; import org.ojalgo.function.aggregator.AggregatorFunction; import org.ojalgo.function.aggregator.PrimitiveAggregator; import org.ojalgo.matrix.store.MatrixStore; import org.ojalgo.matrix.store.PhysicalStore; import org.ojalgo.matrix.store.PrimitiveDenseStore; import org.ojalgo.matrix.store.ZeroStore; import org.ojalgo.optimisation.Optimisation; /** * SimplexTableauSolver * * @author apete */ final class SimplexTableauSolver extends LinearSolver { static final class PivotPoint { private int myRowObjective = -1; private final SimplexTableauSolver mySolver; int col = -1; int row = -1; @SuppressWarnings("unused") private PivotPoint() { this(null); ProgrammingError.throwForIllegalInvocation(); } PivotPoint(final SimplexTableauSolver solver) { super(); mySolver = solver; myRowObjective = mySolver.countConstraints() + 1; this.reset(); } int getColRHS() { return mySolver.countVariables(); } int getRowObjective() { return myRowObjective; } boolean isPhase1() { return myRowObjective == (mySolver.countConstraints() + 1); } boolean isPhase2() { return myRowObjective == mySolver.countConstraints(); } double objective() { return mySolver.getTableauElement(this.getRowObjective(), mySolver.countVariables()); } int phase() { return myRowObjective == mySolver.countConstraints() ? 2 : 1; } void reset() { row = -1; col = -1; } void switchToPhase2() { myRowObjective = mySolver.countConstraints(); } } private final int[] myBasis; private final PivotPoint myPoint; private final PrimitiveDenseStore myTransposedTableau; SimplexTableauSolver(final LinearSolver.Builder matrices, final Optimisation.Options solverOptions) { super(matrices, solverOptions); myPoint = new PivotPoint(this); final int tmpConstraintsCount = this.countConstraints(); final MatrixStore.Builder<Double> tmpTableauBuilder = ZeroStore.makePrimitive(1, 1).builder(); tmpTableauBuilder.left(matrices.getC().transpose()); if (tmpConstraintsCount >= 1) { tmpTableauBuilder.above(matrices.getAE(), matrices.getBE()); } tmpTableauBuilder.below(1); //myTransposedTableau = (PrimitiveDenseStore) tmpTableauBuilder.build().transpose().copy(); myTransposedTableau = PrimitiveDenseStore.FACTORY.transpose(tmpTableauBuilder.build()); final int[] tmpBasis = null; if ((tmpBasis != null) && (tmpBasis.length == tmpConstraintsCount)) { myBasis = tmpBasis; this.include(tmpBasis); } else { myBasis = AccessUtils.makeIncreasingRange(-tmpConstraintsCount, tmpConstraintsCount); } for (int i = 0; i < tmpConstraintsCount; i++) { if (myBasis[i] < 0) { myTransposedTableau.caxpy(NEG, i, myPoint.getRowObjective(), 0); } } if (this.isDebug() && this.isTableauPrintable()) { this.logDebugTableau("Tableau Created"); } } public Result solve(final Result kickStarter) { while (this.needsAnotherIteration()) { this.performIteration(myPoint.row, myPoint.col); if (this.isDebug() && this.isTableauPrintable()) { this.logDebugTableau("Tableau Iteration"); } } return this.buildResult(); } private int countBasicArtificials() { int retVal = 0; final int tmpLength = myBasis.length; for (int i = 0; i < tmpLength; i++) { if (myBasis[i] < 0) { retVal++; } } return retVal; } private boolean isBasicArtificials() { final int tmpLength = myBasis.length; for (int i = 0; i < tmpLength; i++) { if (myBasis[i] < 0) { return true; } } return false; } private final boolean isTableauPrintable() { return myTransposedTableau.count() <= 512L; } private final void logDebugTableau(final String message) { this.debug(message + "; Basics: " + Arrays.toString(myBasis), myTransposedTableau.transpose()); } @Override protected double evaluateFunction(final Access1D<?> solution) { return myPoint.objective(); } /** * Extract solution MatrixStore from the tableau */ @Override protected PhysicalStore<Double> extractSolution() { final int tmpCountVariables = this.countVariables(); this.resetX(); final int tmpLength = myBasis.length; for (int i = 0; i < tmpLength; i++) { final int tmpBasisIndex = myBasis[i]; if (tmpBasisIndex >= 0) { this.setX(tmpBasisIndex, myTransposedTableau.doubleValue(tmpCountVariables, i)); } } final PhysicalStore<Double> tmpTableauSolution = this.getX(); return tmpTableauSolution; } @Override protected boolean initialise(final Result kickStart) { return false; // TODO Auto-generated method stub } @Override protected boolean needsAnotherIteration() { if (this.isDebug()) { this.debug("\nNeeds Another Iteration? Phase={} Artificials={} Objective={}", myPoint.phase(), this.countBasisDeficit(), myPoint.objective()); } boolean retVal = false; myPoint.reset(); if (myPoint.isPhase1()) { final double tmpPhaseOneValue = myTransposedTableau.doubleValue(this.countVariables(), myPoint.getRowObjective()); if (!this.isBasicArtificials() || options.objective.isZero(tmpPhaseOneValue)) { if (this.isDebug()) { this.debug("\nSwitching to Phase2 with {} artificial variable(s) still in the basis.\n", this.countBasicArtificials()); this.debug("Reduced artificial costs:\n{}", this.sliceTableauRow(myPoint.getRowObjective()).copy(this.getExcluded())); } myPoint.switchToPhase2(); } } myPoint.col = this.findNextPivotCol(); if (myPoint.col >= 0) { myPoint.row = this.findNextPivotRow(); if (myPoint.row >= 0) { retVal = true; } else { if (myPoint.isPhase2()) { this.setState(State.UNBOUNDED); retVal = false; } else { this.setState(State.INFEASIBLE); retVal = false; } } } else { if (myPoint.isPhase1()) { this.setState(State.INFEASIBLE); retVal = false; } else { this.setState(State.OPTIMAL); retVal = false; } } if (this.isDebug()) { if (retVal) { this.debug("\n==>>\tRow: {},\tExit: {},\tColumn/Enter: {}.\n", myPoint.row, myBasis[myPoint.row], myPoint.col); } else { this.debug("\n==>>\tNo more iterations needed/possible.\n"); } } return retVal; } @Override protected boolean validate() { final boolean retVal = true; this.setState(State.VALID); return retVal; } int findNextPivotCol() { final int[] tmpExcluded = this.getExcluded(); if (this.isDebug()) { if (options.validate) { this.debug("\nfindNextPivotCol (index of most negative value) among these:\n{}", this.sliceTableauRow(myPoint.getRowObjective()).copy(tmpExcluded)); } else { this.debug("\nfindNextPivotCol"); } } int retVal = -1; double tmpVal; double tmpMinVal = myPoint.isPhase2() ? -options.problem.epsilon() : ZERO; //double tmpMinVal = ZERO; int tmpCol; for (int e = 0; e < tmpExcluded.length; e++) { tmpCol = tmpExcluded[e]; tmpVal = myTransposedTableau.doubleValue(tmpCol, myPoint.getRowObjective()); if (tmpVal < tmpMinVal) { retVal = tmpCol; tmpMinVal = tmpVal; if (this.isDebug()) { this.debug("Col: {}\t=>\tReduced Contribution Weight: {}.", tmpCol, tmpVal); } } } return retVal; } int findNextPivotRow() { final int tmpNumerCol = myPoint.getColRHS(); final int tmpDenomCol = myPoint.col; if (this.isDebug()) { if (options.validate) { final Array1D<Double> tmpNumerators = this.sliceTableauColumn(tmpNumerCol); final Array1D<Double> tmpDenominators = this.sliceTableauColumn(tmpDenomCol); final Array1D<Double> tmpRatios = tmpNumerators.copy(); tmpRatios.modifyMatching(DIVIDE, tmpDenominators); this.debug("\nfindNextPivotRow (smallest positive ratio) among these:\nNumerators={}\nDenominators={}\nRatios={}", tmpNumerators, tmpDenominators, tmpRatios); } else { this.debug("\nfindNextPivotRow"); } } int retVal = -1; double tmpNumer = NaN, tmpDenom = NaN, tmpRatio = NaN; double tmpMinRatio = MACHINE_LARGEST; final int tmpConstraintsCount = this.countConstraints(); final boolean tmpPhase2 = myPoint.isPhase2(); for (int i = 0; i < tmpConstraintsCount; i++) { // Phase 2 with artificials still in the basis final boolean tmpSpecialCase = tmpPhase2 && (myBasis[i] < 0); tmpDenom = myTransposedTableau.doubleValue(tmpDenomCol, i); // Should always be >=0.0, but very small numbers may "accidentally" get a negative sign. tmpNumer = Math.abs(myTransposedTableau.doubleValue(tmpNumerCol, i)); if (options.problem.isSmall(tmpNumer, tmpDenom)) { tmpRatio = MACHINE_LARGEST; } else { if (tmpSpecialCase) { if (options.problem.isSmall(tmpDenom, tmpNumer)) { tmpRatio = MACHINE_EPSILON; } else { tmpRatio = MACHINE_LARGEST; } } else { tmpRatio = tmpNumer / tmpDenom; } } if ((tmpSpecialCase || (tmpDenom > ZERO)) && (tmpRatio >= ZERO) && (tmpRatio < tmpMinRatio)) { retVal = i; tmpMinRatio = tmpRatio; if (this.isDebug()) { this.debug("Row: {}\t=>\tRatio: {},\tNumerator/RHS: {}, \tDenominator/Pivot: {}.", i, tmpRatio, tmpNumer, tmpDenom); } } } return retVal; } /** * It's transposed for you! */ double getTableauElement(final int row, final int col) { return myTransposedTableau.doubleValue(col, row); } void performIteration(final int pivotRow, final int pivotCol) { final double tmpPivotElement = this.getTableauElement(pivotRow, pivotCol); final double tmpPivotRHS = this.getTableauElement(pivotRow, myPoint.getColRHS()); for (int i = 0; i <= myPoint.getRowObjective(); i++) { if (i != pivotRow) { final double tmpPivotColVal = this.getTableauElement(i, pivotCol); if (tmpPivotColVal != ZERO) { myTransposedTableau.caxpy(-tmpPivotColVal / tmpPivotElement, pivotRow, i, 0); } } } if (Math.abs(tmpPivotElement) < ONE) { myTransposedTableau.modifyColumn(0, pivotRow, DIVIDE.second(tmpPivotElement)); } else if (tmpPivotElement != ONE) { myTransposedTableau.modifyColumn(0, pivotRow, MULTIPLY.second(ONE / tmpPivotElement)); } if (this.isDebug()) { this.debug("Iteration Point <{},{}>\tPivot: {} => {}\tRHS: {} => {}.", pivotRow, pivotCol, tmpPivotElement, this.getTableauElement(pivotRow, pivotCol), tmpPivotRHS, this.getTableauElement(pivotRow, myPoint.getColRHS())); } final int tmpOld = myBasis[pivotRow]; if (tmpOld >= 0) { this.exclude(tmpOld); } final int tmpNew = pivotCol; if (tmpNew >= 0) { this.include(tmpNew); } myBasis[pivotRow] = pivotCol; if (options.validate) { // Right-most column of the tableau final Array1D<Double> tmpRHS = this.sliceTableauColumn(myPoint.getColRHS()); final AggregatorFunction<Double> tmpMinAggr = PrimitiveAggregator.getSet().minimum(); tmpRHS.visitAll(tmpMinAggr); final double tmpMinVal = tmpMinAggr.doubleValue(); if ((tmpMinVal < ZERO) && !options.problem.isZero(tmpMinVal)) { this.debug("\nNegative RHS! {}", tmpMinVal); if (this.isDebug()) { this.debug("Entire RHS columns: {}\n", tmpRHS); } } } } /** * It's transposed for you, and only returns the part of the column corresponding to the constraints - not the * objective(s). */ Array1D<Double> sliceTableauColumn(final int col) { return myTransposedTableau.asArray2D().sliceRow(col, 0).subList(0, this.countConstraints()); } /** * It's transposed for you, and only returns the part of the row corresponding to the variables - not the RHS. */ Array1D<Double> sliceTableauRow(final int row) { return myTransposedTableau.asArray2D().sliceColumn(0, row).subList(0, this.countVariables()); } }
[ "apete@optimatika.se" ]
apete@optimatika.se
42687aefbe878d8cacb2c80c5196e25558dd6696
1e1db38b837bb70028bc0fedb60a18b095f55ab7
/src/main/java/com/chen/designpattern/bridge/Abstraction.java
e341ff21ae41815d7bee0fb77053ef8a3ae05cb5
[]
no_license
PlumpMath/DesignPattern-225
dfed651d85ad98310a71990f46f8ca12acecf8bc
6a8ec1c274953018c439da4a7a12b0c5f420fab6
refs/heads/master
2021-01-20T09:36:32.905376
2017-01-09T14:53:06
2017-01-09T14:53:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
376
java
package com.chen.designpattern.bridge; /** * Created by Chen on 2017/1/5. */ public abstract class Abstraction { protected Implementor mImplementor; public Implementor getImplementor() { return mImplementor; } public void setImplementor(Implementor implementor) { mImplementor = implementor; } public abstract void operation(); }
[ "qizhengchenbeijing@gmail.com" ]
qizhengchenbeijing@gmail.com
179ab775807965c0b6a5e0384eb0736fc9e51eab
159a33213bfb16d89d6e8aae8bd11ffe783cc605
/.svn/pristine/17/179ab775807965c0b6a5e0384eb0736fc9e51eab.svn-base
66bb0869de7f3f254dd95c4e532e519ca52cc5d4
[ "MIT", "BSD-3-Clause" ]
permissive
sw0928/word
999a4bdc321775dcd96c7a9e62482b093dfb1025
4a572c3aedf111f3b9cc42f1a483a5ab74b54aca
refs/heads/master
2021-01-06T20:44:19.839442
2017-08-08T10:13:41
2017-08-08T10:13:41
99,550,516
3
0
null
null
null
null
UTF-8
Java
false
false
3,546
/* * Android Wheel Control. * https://code.google.com/p/android-wheel/ * * Copyright 2011 Yuri Kanivets * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package tts.moudle.api.widget.wheel; import android.view.View; import android.widget.LinearLayout; import java.util.LinkedList; import java.util.List; /** * Recycle stores wheel items to reuse. */ public class WheelRecycle { // Cached items private List<View> items; // Cached empty items private List<View> emptyItems; // Wheel view private WheelView wheel; /** * Constructor * @param wheel the wheel view */ public WheelRecycle(WheelView wheel) { this.wheel = wheel; } /** * Recycles items from specified layout. * There are saved only items not included to specified range. * All the cached items are removed from original layout. * * @param layout the layout containing items to be cached * @param firstItem the number of first item in layout * @param range the range of current wheel items * @return the new value of first item number */ public int recycleItems(LinearLayout layout, int firstItem, ItemsRange range) { int index = firstItem; for (int i = 0; i < layout.getChildCount();) { if (!range.contains(index)) { recycleView(layout.getChildAt(i), index); layout.removeViewAt(i); if (i == 0) { // first item firstItem++; } } else { i++; // go to next item } index++; } return firstItem; } /** * Gets item view * @return the cached view */ public View getItem() { return getCachedView(items); } /** * Gets empty item view * @return the cached empty view */ public View getEmptyItem() { return getCachedView(emptyItems); } /** * Clears all views */ public void clearAll() { if (items != null) { items.clear(); } if (emptyItems != null) { emptyItems.clear(); } } /** * Adds view to specified cache. Creates a cache list if it is null. * @param view the view to be cached * @param cache the cache list * @return the cache list */ private List<View> addView(View view, List<View> cache) { if (cache == null) { cache = new LinkedList<View>(); } cache.add(view); return cache; } /** * Adds view to cache. Determines view type (item view or empty one) by index. * @param view the view to be cached * @param index the index of view */ private void recycleView(View view, int index) { int count = wheel.getViewAdapter().getItemsCount(); if ((index < 0 || index >= count) && !wheel.isCyclic()) { // empty view emptyItems = addView(view, emptyItems); } else { while (index < 0) { index = count + index; } index %= count; items = addView(view, items); } } /** * Gets view from specified cache. * @param cache the cache * @return the first view from cache. */ private View getCachedView(List<View> cache) { if (cache != null && cache.size() > 0) { View view = cache.get(0); cache.remove(0); return view; } return null; } }
[ "shiwei@163.com" ]
shiwei@163.com
e0cfbb574ed343b5b207cda7c3b7509e2909d7c0
2ab1f2b152feed3b315d4e38c876dfee000f87f8
/SQA_Final/src/User.java
1b348c6c93ce6406b2ea59dc740b0d80b2643033
[]
no_license
fcu-d0308810/SofeWareTest_FinalHomeWork
a9952edcff337c4a82a9db638072d011f162822d
eb5dfce33272095a621d8115dc72a803f4326e14
refs/heads/master
2021-01-19T21:21:18.761500
2017-05-02T07:33:43
2017-05-02T07:33:43
82,503,375
0
0
null
null
null
null
UTF-8
Java
false
false
608
java
public class User { private String account = null; private String password = null; private String name = null; public User(String account, String password, String name){ this.account = account; this.password = password; this.name = name; } public String getAccount() { return account; } public void setAccount(String account) { this.account = account; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
[ "ihaveadream0528@yahoo.com.tw" ]
ihaveadream0528@yahoo.com.tw
1eb23f2156061ce1f040dd0e4266bd745e8b7339
0791a24c657015fb1604cbad9c785a1fb34824e8
/AGFX_jF3D_GraphicsEngine/src_f3d/AGFX/F3D/FrameBufferObject/TF3D_FrameBufferObject.java
127500df660704c476de8f5f8208b3a4f5794b7f
[]
no_license
DerDolch/jfinal3d
36bdf8da9bbba450683b7e326af524809b52f005
f331ef31fac331d8bcbe8485cf3bbd9bb9446178
refs/heads/master
2021-01-10T20:49:49.191305
2011-07-06T20:48:02
2011-07-06T20:48:02
34,730,306
0
0
null
null
null
null
UTF-8
Java
false
false
3,900
java
/** * */ package AGFX.F3D.FrameBufferObject; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.IntBuffer; import org.lwjgl.BufferUtils; import static org.lwjgl.opengl.GL11.*; import static org.lwjgl.opengl.GL14.*; import static org.lwjgl.opengl.GL30.*; /** * @author AndyGFX http://lwjgl.org/forum/index.php/topic,2892.0.html */ public class TF3D_FrameBufferObject { private Boolean depth; private int[] texture_id; private int depth_id; private int width; private int height; private int FBO_id; private int RBO_id; private int count; public String name; private IntBuffer buffer; public TF3D_FrameBufferObject(String _name, int w, int h, Boolean depth, int count) { this.count = count; this.depth = depth; this.name = _name; this.width = w; this.height = h; // Set up the FBO and the Texture buffer = ByteBuffer.allocateDirect(1 * 4).order(ByteOrder.nativeOrder()).asIntBuffer(); glGenFramebuffers(buffer); // generate this.FBO_id = buffer.get(); // RENDER BUFFER if (this.depth) { buffer = BufferUtils.createIntBuffer(1); glGenRenderbuffers(buffer); this.RBO_id = buffer.get(); } glEnable(GL_TEXTURE_2D); this.texture_id = new int[count]; for (int i = 0; i < count; i++) { // Create shared texture IntBuffer texture_buffer = ByteBuffer.allocateDirect(4).order(ByteOrder.nativeOrder()).asIntBuffer(); glGenTextures(texture_buffer); this.texture_id[i] = texture_buffer.get(0); glBindTexture(GL_TEXTURE_2D, this.texture_id[i]); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, (IntBuffer) null); // glTexImage2D(GL_TEXTURE_2D, 0, GL_INTENSITY, width, height, 0, // GL_LUMINANCE, GL_UNSIGNED_BYTE, BufferUtils.createIntBuffer(width // * height * 4)); // glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP); // glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glBindFramebuffer(GL_FRAMEBUFFER, this.FBO_id); glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0+i, GL_TEXTURE_2D, this.texture_id[i], 0); } // attach renderbufferto framebufferdepth buffer if (this.depth) { glBindRenderbuffer(GL_RENDERBUFFER, this.RBO_id); glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT24, this.width, this.height); glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, this.RBO_id); } // CLOSE TETXURE and BUFFER glBindFramebuffer(GL_FRAMEBUFFER, 0); glBindTexture(GL_TEXTURE_2D, 0); } public int GetTexture() { return this.texture_id[0]; } public int GetTexture(int id) { return this.texture_id[id]; } public void BeginRender() { glBindFramebuffer(GL_FRAMEBUFFER, this.FBO_id); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glPushAttrib(GL_VIEWPORT_BIT); glViewport(0, 0, this.width, this.height); } public void EndRender(Boolean frame_off, Boolean render_off) { glPopAttrib(); if (frame_off) glBindFramebuffer(GL_FRAMEBUFFER, 0); if (this.depth) { if (render_off) glBindRenderbuffer(GL_RENDERBUFFER, 0); } } public void BindTexture(int id) { if ((this.count>0) &(id<this.count)) { glBindTexture(GL_TEXTURE_2D, this.texture_id[id]); } } public void BindTexture() { if (this.count>0) { this.BindTexture(0); } } public void BindDepth() { glBindTexture(GL_TEXTURE_2D, this.depth_id); } }
[ "o.kollar@gmail.com@997aefa7-b983-09b2-ede8-16dce480a187" ]
o.kollar@gmail.com@997aefa7-b983-09b2-ede8-16dce480a187
c054898b657feeaf32e2134018374f4745b955ee
73acf14be32db9e885cc4f3307bc765b8104b72a
/src/main/java/com/mobiweb/msm/models/User.java
d8b52cc708710a0cc8d991ef61ebfa0b44156d12
[]
no_license
WesleyDevLab/msm
7d82d384fb02e1a50376c16f68822b87be67958d
0b35891c5b936f37a575e4111691db80a61d2285
refs/heads/master
2021-01-16T23:21:53.405183
2016-04-22T19:59:11
2016-04-22T19:59:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,210
java
package com.mobiweb.msm.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.mobiweb.msm.models.enums.Role; import javax.persistence.*; @Entity @JsonIgnoreProperties() public class User extends MetaData { public String name, address, email, photo, qualification, username, password, regId; @Enumerated(EnumType.STRING) public Role role; public String mobile; int deleted; @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getPhoto() { return photo; } public void setPhoto(String photo) { this.photo = photo; } public String getQualification() { return qualification; } public void setQualification(String qualification) { this.qualification = qualification; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getRegId() { return regId; } public void setRegId(String regId) { this.regId = regId; } public Role getRole() { return role; } public void setRole(Role role) { this.role = role; } public int getDeleted() { return deleted; } public void setDeleted(int deleted) { this.deleted = deleted; } public String getMobile() { return mobile; } public void setMobile(String mobile) { this.mobile = mobile; } }
[ "vaibs4007@rediff.com" ]
vaibs4007@rediff.com
563a5fb792f1aca77b80d0085b2dc8bf3db5a839
261ebaf4be8afd1d2f790b362e1c4b11e9061a54
/src/com/savinov3696/phone/log/PhonedroidActivity.java
200629f8896a2fc411b8a4e65b3ebc44f4701808
[]
no_license
stefinitely902/touch-history
75258ad18e56ae7e77aafff922344bbe952e9679
d44afd3dd7815aa802767db2993dc2c6b0b00c48
refs/heads/master
2021-01-10T03:25:23.709084
2011-11-08T06:06:34
2011-11-08T06:06:34
48,196,347
0
0
null
null
null
null
WINDOWS-1251
Java
false
false
39,534
java
package com.savinov3696.phone.log; /* SELECT * FROM (SELECT DISTINCT ON(fname)fname,* FROM "LogCall" ORDER BY fname ASC, fdate DESC) srt ORDER BY fdate DESC SELECT fname,MAX(fdate) AS lastcall FROM "LogCall" GROUP BY fname ORDER BY lastcall DESC SELECT * FROM "LogCall" s WHERE "order" = ( SELECT "order" FROM "LogCall" si WHERE si.fname = s.fname ORDER BY si.fname DESC, si.fdate DESC, si."order" DESC LIMIT 1 ) ORDER BY fdate DESC, "order" DESC //--------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------- public static boolean isIntentAvailable(Context context, String action) { final PackageManager packageManager = context.getPackageManager(); final Intent intent = new Intent(action); List<ResolveInfo> list = packageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); return list.size() > 0; } //--------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------- */ import java.lang.ref.WeakReference; import java.lang.reflect.Array; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import java.util.Vector; import com.savinov3696.phone.log.ActLogTableHelper.ContactInfo; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.ListActivity; import android.content.AsyncQueryHandler; import android.content.ContentResolver; import android.content.ContentValues; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.res.ColorStateList; import android.database.ContentObserver; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabaseCorruptException; import android.database.sqlite.SQLiteDiskIOException; import android.database.sqlite.SQLiteFullException; import android.graphics.Color; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.os.Message; import android.os.RemoteException; import android.provider.CallLog; import android.provider.ContactsContract; import android.provider.CallLog.Calls; import android.provider.ContactsContract.Contacts; import android.telephony.PhoneNumberUtils; import android.telephony.PhoneStateListener; import android.telephony.TelephonyManager; import android.text.format.DateFormat; import android.util.Log; import android.view.ContextMenu; import android.view.ContextMenu.ContextMenuInfo; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.View.OnLongClickListener; import android.view.ViewGroup; import android.view.ViewParent; import android.view.animation.AlphaAnimation; import android.view.animation.Animation; import android.widget.AbsListView; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.ListAdapter; import android.widget.ListView; import android.widget.SlidingDrawer; import android.widget.TextView; import android.widget.Toast; import android.widget.AbsListView.OnScrollListener; import android.widget.ViewFlipper; import android.view.View.OnFocusChangeListener; public class PhonedroidActivity extends Activity//ListActivity//ListActivity implements ListView.OnScrollListener, View.OnCreateContextMenuListener { private static final String TAG = "RecentCallsSmsList"; static abstract class ConnectionInfo { abstract public ContactInfo getContactInfo(); abstract public long getDate(); abstract public String getContent();// call=duration, SMS -text abstract public int getType(); } static final class ConnectionInfoData { ContactInfo mContact; public long mDate; public long mData; public long mType; } /* непонятно,почему нельзя желать #DEFINE и так накладно обращаться к ресурсам через ColorDark) сделаем переменные :( и инициализируем их из конструктора взяв из ресурсов? Сразу?*/ public static final int ColorIncoming=0xFF96C832; public static final int ColorOutgoing=0xFFFFA000; public static final int ColorOutgoing0=0xFFB4B4B4; public static final int ColorMissed=0xFFFF4000; public static final int ColorDark=0xFF202020; public static final int ColorBlack=0xFF000000; public static final int ColorTransparent=0; private MyListAdapter m_Adapter; private boolean m_ScrollToTop; private static ActLogTableHelper myHelper; private static Cursor m_CallCursor; public static final String query_group_by_account= "SELECT * FROM ActLog s WHERE _ID = "+ "(SELECT _ID FROM ActLog si WHERE si.faccount = s.faccount "+ "ORDER BY si.faccount DESC, si.fdate DESC, si._ID DESC LIMIT 1 )"+ " ORDER BY fdate DESC"; public static final String query_nogroup="SELECT * FROM ActLog ORDER BY fdate DESC"; public static final String query_TouchRescent="SELECT * FROM TouchRescent ORDER BY fdate DESC"; private static boolean mBusy = false; final long globalstartTime = System.currentTimeMillis(); long globalstartCall = System.currentTimeMillis(); private Handler handler = new Handler(); private ContactPeopleContentObserver peopleObserver = null; class ContactPeopleContentObserver extends ContentObserver { public ContactPeopleContentObserver( Handler h ) { super( h ); } public boolean deliverSelfNotifications() { return false; } public void onChange(boolean selfChange) { //super.onChange(selfChange); Cursor cur = getContentResolver().query( CallLog.Calls.CONTENT_URI, null, null, null, Calls._ID + " DESC "); if (cur.moveToNext()) { String id=cur.getString(cur.getColumnIndex(Calls._ID )); String num=cur.getString(cur.getColumnIndex(Calls.NUMBER )); int type = cur.getInt(cur.getColumnIndex(Calls.TYPE)); long date = cur.getInt(cur.getColumnIndex(Calls.DATE)); Log.d( "resolver", "calllog number="+num+" type="+type+" DATE="+date+" id="+id); myHelper.CopyCallCursor(cur); } } } private Handler mSMShandler = new Handler(); private SmsContentObserver mSmsObserver = null; class SmsContentObserver extends ContentObserver { public SmsContentObserver( Handler h ) { super( h ); } public boolean deliverSelfNotifications() { return false; } public void onChange(boolean selfChange) { //super.onChange(selfChange); Uri uriSMSURI = Uri.parse("content://sms"); Cursor cur = getContentResolver().query( uriSMSURI, null, null, null, Calls.DATE + " DESC "); if (cur.moveToNext()) { myHelper.CopySMSCursor(cur); } } } public class MyPhoneStateListener extends PhoneStateListener { public void onCallStateChanged(int state,String incomingNumber) { switch(state) { case TelephonyManager.CALL_STATE_IDLE: Log.d("DEBUG", "IDLE"); break; case TelephonyManager.CALL_STATE_OFFHOOK: Log.d("DEBUG", "OFFHOOK исходящий дозвон "+incomingNumber); break; case TelephonyManager.CALL_STATE_RINGING: Log.d("DEBUG", "RINGING входящий дозвон"+incomingNumber); break; } } } final void LogTimeAfterStart(String place) { long cur=System.currentTimeMillis(); Log.d(TAG, "elapsed: STARTUP="+(cur-globalstartTime)+"\tLASTCALL="+(cur-globalstartCall)+"\t"+place ); globalstartCall=cur; } public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { } public void onScrollStateChanged(AbsListView view, int scrollState) { switch (scrollState) { default: case OnScrollListener.SCROLL_STATE_TOUCH_SCROLL: // может быть во время двигания пальцем загружать ? LogTimeAfterStart("SCROLL_STATE_TOUCH_SCROLL"); mBusy = true; break; case OnScrollListener.SCROLL_STATE_FLING: LogTimeAfterStart("SCROLL_STATE_FLING"); //final ListView lst = (ListView ) findViewById(R.id.listView1); //mBusy = true; //break; case OnScrollListener.SCROLL_STATE_IDLE: LogTimeAfterStart("SCROLL_STATE_IDLE start"); mBusy = false; //int first = view.getFirstVisiblePosition(); final int count = view.getChildCount(); // TODO если одинаковое имя в линейном списке??? // 1 Создать список(массив) ViewHolder`ов нуждающихся в обновлении Vector<ViewHolder> ItemHolder = new Vector<ViewHolder>(); // 2 Создать сет(справочник номер-инфо) номеров Set<String> nums=new HashSet<String>(); for (int i=0; i<count ; i++) { final ViewHolder holder = (ViewHolder) view.getChildAt(i).getTag(); if ( holder!=null && holder.m_State==1 ) { final String number = (String)holder.fNumber.getText();//берём номер контака nums.add(number); ItemHolder.addElement(holder); holder.m_State=0; } } // 3 выполнить запрос, имён вернуть справочник номер-инфо о контакте Map<String, ContactInfo > ret_num_contact=ActLogTableHelper.GetContactInfoMap(nums,getContentResolver()); if(ret_num_contact!=null ) { for (int i=0; i<ItemHolder.size() ; i++) { final ViewHolder holder=ItemHolder.get(i); final String number = (String)holder.fNumber.getText();//берём номер контака final ContactInfo contact=ret_num_contact.get(number); if(contact!=null) holder.ShowContactName(contact.TryGetAltName()); }//for (int i=0; i<ItemHolder.size() ; i++) }//if(ActLogTableHelper.GetContactInfoMap(num_contact,getContentResolver())>0 ) LogTimeAfterStart("SCROLL_STATE_IDLE end"); break;//case OnScrollListener.SCROLL_STATE_IDLE: } } ListView mList; //--------------------------------------------------------------------------------------- @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Typing here goes to the dialer setDefaultKeyMode(DEFAULT_KEYS_DIALER); final ListView lst = (ListView ) findViewById(R.id.listView1); mList=lst; m_Adapter=new MyListAdapter(this); lst.setAdapter( m_Adapter ); lst.setItemsCanFocus(false); lst.setOnCreateContextMenuListener(this); lst.setOnScrollListener(this); lst.setOnFocusChangeListener(new OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { LogTimeAfterStart("OnFocusChangeListener hasFocus="+hasFocus); final ListView lst = (ListView ) v; if(v!=null && hasFocus) onScrollStateChanged(lst, SCROLL_STATE_IDLE); } }); lst.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View v, int position, long id) { //v.setBackgroundColor(0xFFFF0000); Log.d(TAG, "!!!!!!!!!!onItemClick"); } }); myHelper = new ActLogTableHelper(this,ActLogTableHelper.m_DBName , null, ActLogTableHelper.m_DBVersion); m_CallCursor = myHelper.getReadableDatabase().rawQuery("SELECT * FROM TouchRescent ORDER BY fdate DESC", null); //m_CallCursor = myHelper.getReadableDatabase().rawQuery(query_group_by_account, null); //m_CallCursor = myHelper.getReadableDatabase().rawQuery(query_nogroup, null); ContentResolver cr = getContentResolver(); peopleObserver = new ContactPeopleContentObserver( handler ); cr.registerContentObserver( CallLog.Calls.CONTENT_URI, true, peopleObserver ); mSmsObserver = new SmsContentObserver(mSMShandler ); cr.registerContentObserver( CallLog.Calls.CONTENT_URI, true, mSmsObserver ); MyPhoneStateListener phoneListener=new MyPhoneStateListener(); TelephonyManager telephony = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); telephony.listen(phoneListener,PhoneStateListener.LISTEN_CALL_STATE); mQueryHandler = new QueryHandler(this); LogTimeAfterStart("onCreateEnd"); } //--------------------------------------------------------------------------------------- @Override protected void onStart() { m_ScrollToTop = true; super.onStart(); LogTimeAfterStart("onStartEnd"); } //--------------------------------------------------------------------------------------- @Override protected void onResume() { super.onResume(); resetNewCallsFlag(); LogTimeAfterStart("onResumeEnd"); }//protected void onResume() //--------------------------------------------------------------------------------------- @Override protected void onPause() { super.onPause(); LogTimeAfterStart("onPauseEnd"); } //--------------------------------------------------------------------------------------- @Override protected void onStop() { super.onStop(); LogTimeAfterStart("onStopEnd"); } //--------------------------------------------------------------------------------------- @Override protected void onDestroy() { ContentResolver cr = getContentResolver(); if( peopleObserver != null ) { cr.unregisterContentObserver( peopleObserver ); peopleObserver = null; } if(mSmsObserver!=null) { cr.unregisterContentObserver( mSmsObserver ); mSmsObserver=null; } LogTimeAfterStart("onDestroyStart"); super.onDestroy(); SQLiteDatabase db = myHelper.getWritableDatabase();// Access to database objects db.close(); LogTimeAfterStart("onDestroyEnd"); } //--------------------------------------------------------------------------------------- /** The projection to use when querying the call log table */ static final String[] CALL_LOG_PROJECTION = new String[] { Calls._ID, Calls.NUMBER, Calls.DATE, Calls.DURATION, Calls.TYPE, Calls.CACHED_NAME, Calls.CACHED_NUMBER_TYPE, Calls.CACHED_NUMBER_LABEL }; private static final int QUERY_TOKEN = 153; private static final int UPDATE_TOKEN = 154; private static final class QueryHandler extends AsyncQueryHandler { private final WeakReference<PhonedroidActivity> mActivity; /** * Simple handler that wraps background calls to catch * {@link SQLiteException}, such as when the disk is full. */ protected class CatchingWorkerHandler extends AsyncQueryHandler.WorkerHandler { public CatchingWorkerHandler(Looper looper) { super(looper); } @Override public void handleMessage(Message msg) { try { // Perform same query while catching any exceptions super.handleMessage(msg); } catch (SQLiteDiskIOException e) { Log.w(TAG, "Exception on background worker thread", e); } catch (SQLiteFullException e) { Log.w(TAG, "Exception on background worker thread", e); } catch (SQLiteDatabaseCorruptException e) { Log.w(TAG, "Exception on background worker thread", e); } } } @Override protected Handler createHandler(Looper looper) { // Provide our special handler that catches exceptions return new CatchingWorkerHandler(looper); } public QueryHandler(Context context) { super(context.getContentResolver()); mActivity = new WeakReference<PhonedroidActivity>((PhonedroidActivity) context); } @Override protected void onQueryComplete(int token, Object cookie, Cursor cursor) { final PhonedroidActivity activity = mActivity.get(); if (activity != null && !activity.isFinishing()) { final PhonedroidActivity.MyListAdapter callsAdapter = activity.m_Adapter; if (activity.m_ScrollToTop) { if (activity.mList.getFirstVisiblePosition() > 5) { activity.mList.setSelection(5); } activity.mList.smoothScrollToPosition(0); activity.m_ScrollToTop = false; } } else { cursor.close(); } } } private QueryHandler mQueryHandler; //--------------------------------------------------------------------------------------- private void resetNewCallsFlag() { // Mark all "new" missed calls as not new anymore StringBuilder where = new StringBuilder("type="); where.append(Calls.MISSED_TYPE); where.append(" AND new=1"); ContentValues values = new ContentValues(1); values.put(Calls.NEW, "0"); //String[] arg = null; //int i = getContentResolver().update(Calls.CONTENT_URI, values, where.toString(), arg); mQueryHandler.startUpdate(UPDATE_TOKEN, null, Calls.CONTENT_URI,values, where.toString(), null); } //--------------------------------------------------------------------------------------- // need MODIFY_PHONE_STATE @Override public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); String Log_Tag = "log"; try { Class serviceManagerClass = Class.forName("android.os.ServiceManager"); Method getServiceMethod = serviceManagerClass.getMethod("getService", String.class); Object phoneService = getServiceMethod.invoke(null, "phone"); Class ITelephonyClass = Class.forName("com.android.internal.telephony.ITelephony"); Class ITelephonyStubClass = null; for(Class clazz : ITelephonyClass.getDeclaredClasses()) { if (clazz.getSimpleName().equals("Stub")) { ITelephonyStubClass = clazz; break; } } if (ITelephonyStubClass != null) { Class IBinderClass = Class.forName("android.os.IBinder"); Method asInterfaceMethod = ITelephonyStubClass.getDeclaredMethod("asInterface",IBinderClass); Object iTelephony = asInterfaceMethod.invoke(null, phoneService); if (iTelephony != null) { Method cancelMissedCallsNotificationMethod = iTelephony.getClass().getMethod( "cancelMissedCallsNotification"); cancelMissedCallsNotificationMethod.invoke(iTelephony); } else { Log.w(TAG, "Telephony service is null, can't call " + "cancelMissedCallsNotification"); } } else { Log.d(TAG, "Unable to locate ITelephony.Stub class!"); } } catch (ClassNotFoundException ex) { Log.e(TAG, "Failed to clear missed calls notification due to ClassNotFoundException!", ex); } catch (InvocationTargetException ex) { Log.e(TAG, "Failed to clear missed calls notification due to InvocationTargetException!", ex); } catch (NoSuchMethodException ex) { Log.e(TAG, "Failed to clear missed calls notification due to NoSuchMethodException!", ex); } catch (Throwable ex) { Log.e(TAG, "Failed to clear missed calls notification due to Throwable!", ex); } } //--------------------------------------------------------------------------------------- @Override public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfoIn) { /* AdapterView.AdapterContextMenuInfo menuInfo; try { menuInfo = (AdapterView.AdapterContextMenuInfo) menuInfoIn; } catch (ClassCastException e) { Log.e(TAG, "bad menuInfoIn", e); return; } Cursor cursor = (Cursor) m_Adapter.getItem(menuInfo.position); String number = cursor.getString(NUMBER_COLUMN_INDEX); Uri numberUri = null; boolean isVoicemail = false; boolean isSipNumber = false; if (number.equals(CallerInfo.UNKNOWN_NUMBER)) { number = getString(R.string.unknown); } else if (number.equals(CallerInfo.PRIVATE_NUMBER)) { number = getString(R.string.private_num); } else if (number.equals(CallerInfo.PAYPHONE_NUMBER)) { number = getString(R.string.payphone); } else if (PhoneNumberUtils.extractNetworkPortion(number).equals(mVoiceMailNumber)) { number = getString(R.string.voicemail); numberUri = Uri.parse("voicemail:x"); isVoicemail = true; } else if (PhoneNumberUtils.isUriNumber(number)) { numberUri = Uri.fromParts("sip", number, null); isSipNumber = true; } else { numberUri = Uri.fromParts("tel", number, null); } ContactInfo info = mAdapter.getContactInfo(number); boolean contactInfoPresent = (info != null && info != ContactInfo.EMPTY); if (contactInfoPresent) { menu.setHeaderTitle(info.name); } else { menu.setHeaderTitle(number); } if (numberUri != null) { Intent intent = new Intent(Intent.ACTION_CALL_PRIVILEGED, numberUri); menu.add(0, CONTEXT_MENU_CALL_CONTACT, 0, getResources().getString(R.string.recentCalls_callNumber, number)) .setIntent(intent); } if (contactInfoPresent) { Intent intent = new Intent(Intent.ACTION_VIEW, ContentUris.withAppendedId(Contacts.CONTENT_URI, info.personId)); StickyTabs.setTab(intent, getIntent()); menu.add(0, 0, 0, R.string.menu_viewContact).setIntent(intent); } if (numberUri != null && !isVoicemail && !isSipNumber) { menu.add(0, 0, 0, R.string.recentCalls_editNumberBeforeCall) .setIntent(new Intent(Intent.ACTION_DIAL, numberUri)); menu.add(0, 0, 0, R.string.menu_sendTextMessage) .setIntent(new Intent(Intent.ACTION_SENDTO, Uri.fromParts("sms", number, null))); } // "Add to contacts" item, if this entry isn't already associated with a contact if (!contactInfoPresent && numberUri != null && !isVoicemail && !isSipNumber) { Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); intent.setType(Contacts.CONTENT_ITEM_TYPE); intent.putExtra(Insert.PHONE, number); menu.add(0, 0, 0, R.string.recentCalls_addToContact) .setIntent(intent); } */ menu.add(0, 1, 0, R.string.SendPhoneCall); } //--------------------------------------------------------------------------------------- public static class ViewHolder { TextView fNumber; TextView fDuration; TextView fDateTime; ImageView fImg; TextView fMsgData; ImageView btnReply; ViewFlipper mFlipper; // TextView mContactNameView; // TextView fName; int m_Pos=-1; int m_State=0;// 0 not need update int m_Type=0;// 0 not need update final TextView getNameView() { return ((TextView)mFlipper.getCurrentView()); } public void ShowContactName(String name) { TextView oldview = getNameView(); mFlipper.showNext();//if(animation_on) ((TextView)mFlipper.getCurrentView()).setText(name); ((TextView)mFlipper.getCurrentView()).setTextColor(oldview.getTextColors()); fNumber.setAnimation(mFlipper.getInAnimation() ); fNumber.setVisibility(View.VISIBLE); }//public void ShowContactName(String name) } //--------------------------------------------------------------------------------------- //static private class MyListAdapter extends BaseAdapter //implements //OnClickListener , //OnLongClickListener { private Context mContext; private LayoutInflater mInflater; final OnClickListener m_BtnReplyClickListener=new OnClickListener(){ @Override public void onClick(View view){ onReplyClick(view); } }; final OnLongClickListener m_BtnReplyLongClickListener=new OnLongClickListener(){ @Override public boolean onLongClick(View v){ return onLongReplyClick(v); } }; final OnClickListener m_ItemClickListener=new OnClickListener(){ @Override public void onClick(View view) { Log.d(TAG, "!!!!!!!!!!onItemClick"); } }; //--------------------------------------------------------------------------------------- public MyListAdapter(Context context) { if(context!=null){ mContext = context; //mInflater = LayoutInflater.from(context); mInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } } public int getCount() { if(m_CallCursor!=null) return m_CallCursor.getCount(); return 0; } public Object getItem(int position){ return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder=null; if ( convertView == null ) { convertView = (View)mInflater.inflate(R.layout.phonedroidadapterlayout, parent, false); holder = new ViewHolder(); holder.fNumber = (TextView) convertView.findViewById(R.id.al_Number); holder.fDuration = (TextView) convertView.findViewById(R.id.al_Duration); holder.fDateTime = (TextView) convertView.findViewById(R.id.al_DateTime); holder.fMsgData=(TextView) convertView.findViewById(R.id.al_Data); holder.fImg = (ImageView) convertView.findViewById(R.id.al_Img); //holder.btnReply = (ImageButton) convertView.findViewById(R.id.btnReply); holder.btnReply = (ImageView) convertView.findViewById(R.id.btnReply); holder.mFlipper = (ViewFlipper) convertView.findViewById(R.id.viewFlipper1); //holder.mContactNameView=(TextView) convertView.findViewById(R.id.ContactNameView); //holder.fName = (TextView) convertView.findViewById(R.id.al_Text); holder.btnReply.setOnClickListener(m_BtnReplyClickListener); holder.btnReply.setOnLongClickListener(m_BtnReplyLongClickListener); //holder.mFlipper.getChildAt(0).setOnClickListener(m_ItemClickListener); //holder.mFlipper.getChildAt(1).setOnClickListener(m_ItemClickListener); //holder.fNumber.setOnClickListener(m_ItemClickListener); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } holder.m_Pos=position; /* if(position%2!=0) convertView.setBackgroundColor(ColorDark); else convertView.setBackgroundColor(ColorBlack); */ if(m_CallCursor.moveToPosition(position) ) { String callDate = (String) DateFormat.format("dd MMM.kk:mm", m_CallCursor.getLong(ActLogTableHelper._fdate) ); holder.fDateTime.setText(callDate); final String contactNumber= m_CallCursor.getString(ActLogTableHelper._faccount); holder.fNumber.setVisibility(View.INVISIBLE); holder.fNumber.setAnimation(null); holder.fNumber.setText(contactNumber); final TextView name_view = ((TextView)holder.mFlipper.getCurrentView()); name_view.setText(contactNumber);//if(animation_on) holder.m_Type=m_CallCursor.getInt(ActLogTableHelper._ftype); switch(holder.m_Type) { default: break; // incoming case ActLogTableHelper.GSM_CALL_INCOMING: holder.fMsgData.setVisibility(View.GONE ); holder.fDuration.setVisibility(View.VISIBLE ); holder.fImg.setImageResource(R.drawable.incoming); name_view.setTextColor(ColorIncoming); holder.fNumber.setTextColor(ColorIncoming); holder.fDuration.setTextColor(ColorIncoming); { final long dur =m_CallCursor.getLong(ActLogTableHelper._fdata); holder.fDuration.setText(String.format("%02d:%02d\t", dur/60,dur%60)); } break; // outgoing case ActLogTableHelper.GSM_CALL_OUTGOING: holder.fMsgData.setVisibility(View.GONE ); final long dur =m_CallCursor.getLong(ActLogTableHelper._fdata); if(dur==0) { //holder.fDuration.setVisibility(View.INVISIBLE); holder.fDuration.setVisibility(View.GONE); holder.fImg.setImageResource(R.drawable.outgoing0); name_view.setTextColor(ColorOutgoing0); holder.fNumber.setTextColor(ColorOutgoing0); } else { holder.fDuration.setVisibility(View.VISIBLE ); holder.fImg.setImageResource(R.drawable.outgoing); name_view.setTextColor(ColorOutgoing); holder.fNumber.setTextColor(ColorOutgoing); holder.fDuration.setTextColor(ColorOutgoing); holder.fDuration.setText(String.format("%02d:%02d\t", dur/60,dur%60)); } break; // missed case ActLogTableHelper.GSM_CALL_MISSED: holder.fMsgData.setVisibility(View.GONE ); //holder.fDuration.setVisibility(View.INVISIBLE); holder.fDuration.setVisibility(View.GONE); holder.fImg.setImageResource(R.drawable.missed); name_view.setTextColor(ColorMissed); holder.fNumber.setTextColor(ColorMissed); break; // incoming SMS case ActLogTableHelper.MESSAGE_TYPE_INBOX: holder.fMsgData.setVisibility(View.VISIBLE ); holder.fDuration.setVisibility(View.GONE); name_view.setTextColor(ColorIncoming); holder.fNumber.setTextColor(ColorIncoming); holder.fImg.setImageResource(R.drawable.incomingsms); holder.fMsgData.setText(m_CallCursor.getString(ActLogTableHelper._fdata)); break; // outgoing SMS case ActLogTableHelper.MESSAGE_TYPE_OUTBOX: case ActLogTableHelper.MESSAGE_TYPE_QUEUED: name_view.setTextColor(ColorOutgoing0); holder.fNumber.setTextColor(ColorOutgoing0); case ActLogTableHelper.MESSAGE_TYPE_SENT: holder.fMsgData.setVisibility(View.VISIBLE ); holder.fDuration.setVisibility(View.GONE); name_view.setTextColor(ColorOutgoing); holder.fNumber.setTextColor(ColorOutgoing); holder.fImg.setImageResource(R.drawable.outgoingsms); holder.fMsgData.setText(m_CallCursor.getString(ActLogTableHelper._fdata)); break; }//switch(type) /* if (!mBusy) { Log.d("PAINT VIEW", "SCROLL_STATE_LIST"); holder.m_State=0; final TempContact[] tmp=ActLogTableHelper.GetTempContactNames(new String[]{contactNumber},getContentResolver()); if(tmp!=null && tmp.length>0) holder.ShowContactName(tmp[0].TryGetAltName()); } else */ { holder.m_State=1; } LogTimeAfterStart("SET NUM "+ contactNumber+ " POS="+position); }//if(m_CallCursor!=null ) return convertView; }//public View getView(int position, View convertView, ViewGroup parent) //--------------------------------------------------------------------------------------- public void onReplyClick(View view) { Log.d(TAG, "onReplyClick"); //View parent=(View)view.getParent(); //ViewHolder holder = (ViewHolder) parent.getTag(); ImageView btn = (ImageView) view; View parent= (View) btn.getParent() ; ViewHolder holder = (ViewHolder) parent.getTag(); if (holder!=null) { final String contactNumber=(String) holder.fNumber.getText(); m_CallCursor.moveToPosition(holder.m_Pos); final int type=m_CallCursor.getInt(ActLogTableHelper._ftype); switch(type) { case ActLogTableHelper.GSM_CALL_INCOMING: case ActLogTableHelper.GSM_CALL_OUTGOING: case ActLogTableHelper.GSM_CALL_MISSED: mContext.startActivity(new Intent(Intent.ACTION_CALL,Uri.parse("tel:" + Uri.encode(contactNumber) ))); break; default: Intent intent = new Intent(Intent.ACTION_VIEW); //sendIntent.putExtra("sms_body", "smsBody"); //sendIntent.putExtra("address", "phoneNumber1;phoneNumber2;..."); intent.setType("vnd.android-dir/mms-sms"); Uri uri = Uri.parse("sms:"+ contactNumber); intent.setData(uri); mContext.startActivity(intent); break; }//switch(type) }//if (holder!=null) }//public void onClick(View view) //--------------------------------------------------------------------------------------- public boolean onLongReplyClick(View view) { ImageView btn = (ImageView) view; View parent= (View) btn.getParent() ; final ViewHolder holder = (ViewHolder) parent.getTag(); if (holder!=null) { Intent i = new Intent(mContext, DlgReply.class); i.putExtra("ReplyOnActType", holder.m_Type ); i.putExtra("ContactName", holder.getNameView().getText()); i.putExtra("ContactNumber", holder.fNumber.getText() ); startActivityForResult(i, 0); return true; }//if (holder!=null) return false; }//public boolean onLongClick(View view) }//private static class MyListAdapter extends BaseAdapter //--------------------------------------------------------------------------------------- @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { Log.d(TAG, "onActivityResult requestCode="+requestCode+" resultCode="+resultCode); if(data!=null && requestCode==0) { Bundle extras = data.getExtras(); if (extras != null) { int SelectedAction = extras.getInt("SelectedAction"); switch(SelectedAction) { default: break; case DlgReply.Call: { final String contactNumber = extras.getString("ContactNumber"); startActivity(new Intent(Intent.ACTION_CALL,Uri.parse("tel:" + Uri.encode(contactNumber) ))); break; } case DlgReply.SMS: { final String contactNumber = extras.getString("ContactNumber"); Intent intent = new Intent(Intent.ACTION_VIEW); //sendIntent.putExtra("sms_body", "smsBody"); //sendIntent.putExtra("address", "phoneNumber1;phoneNumber2;..."); intent.setType("vnd.android-dir/mms-sms"); Uri uri = Uri.parse("sms:"+ contactNumber); intent.setData(uri); startActivity(intent); } }//switch(SelectedAction) }//if (extras != null) }//if(data!=null && resultCode==0) }//protected void onActivityResult(int requestCode, int resultCode, Intent data) }
[ "alex3696@yandex.ru" ]
alex3696@yandex.ru
fd37705aa78644c51ebe61a120729632b1384a30
54302b255d9b21dd1885711ed1392db1ba751021
/soluti/src/test/java/com/soluti/backend/BackendApplicationTests.java
8020464bf9bc2b8be39cf7161a2a4b5ecac78426
[]
no_license
matheusmoreirap852/ReactSoluti
9310dd28a83c7b29ec37e6f0c833cf0e9f2d4ae6
20e4bf38d2dd875ef2306787c0ef48f61439891e
refs/heads/main
2023-01-13T05:26:08.685870
2020-11-18T06:40:06
2020-11-18T06:40:06
313,845,484
1
2
null
null
null
null
UTF-8
Java
false
false
211
java
package com.soluti.backend; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class BackendApplicationTests { @Test void contextLoads() { } }
[ "noreply@github.com" ]
noreply@github.com
767ae5f9ea20661350c96e2fa8c3142f6908d563
ed06c143f519fdc85eb2995078cd2f05b871582b
/src/inventory/InventoryRingkasanBeriObat.java
df34d6f3086a6faa7d445cb477980061a9b4f5e6
[]
no_license
ninosalatan/RsDirgahayu
b305baf0b0b65f9fef1f5c0682498c1ad336fc4d
a933683e841a6f92b255aa717a4bbc4eaa9de23c
refs/heads/master
2023-08-22T16:34:01.794298
2021-10-15T23:43:04
2021-10-15T23:43:04
417,366,075
0
0
null
null
null
null
UTF-8
Java
false
false
56,051
java
package inventory; import fungsi.WarnaTable; import fungsi.batasInput; import fungsi.koneksiDB; import fungsi.sekuel; import fungsi.validasi; import fungsi.akses; import java.awt.Cursor; import java.awt.Dimension; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.WindowEvent; import java.awt.event.WindowListener; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.HashMap; import java.util.Map; import javax.swing.JOptionPane; import javax.swing.JTable; import javax.swing.event.DocumentEvent; import javax.swing.table.DefaultTableModel; import javax.swing.table.TableColumn; import dirgahayu.DlgCariBangsal; import dirgahayu.DlgCariCaraBayar; public class InventoryRingkasanBeriObat extends javax.swing.JDialog { private final DefaultTableModel tabMode; private sekuel Sequel=new sekuel(); private validasi Valid=new validasi(); private PreparedStatement ps; private ResultSet rs; private Connection koneksi=koneksiDB.condb(); private int i=0; private double total=0; private DlgCariCaraBayar penjab=new DlgCariCaraBayar(null,false); private DlgCariBangsal asalstok=new DlgCariBangsal(null,false); public DlgBarang barang=new DlgBarang(null,false); private String status="",carabayar="",depo="",jenis="",bar="",tanggal="",order="order by databarang.nama_brng"; /** Creates new form DlgProgramStudi * @param parent * @param modal */ public InventoryRingkasanBeriObat(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); Object[] row={"Kode Barang","Nama Barang","Satuan","Jenis","Jumlah","Total","Kode Sat"}; tabMode=new DefaultTableModel(null,row){ @Override public boolean isCellEditable(int rowIndex, int colIndex){return false;} Class[] types = new Class[] { java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Double.class, java.lang.Double.class,java.lang.Object.class }; /*Class[] types = new Class[] { java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class };*/ @Override public Class getColumnClass(int columnIndex) { return types [columnIndex]; } }; tbDokter.setModel(tabMode); tbDokter.setPreferredScrollableViewportSize(new Dimension(800,800)); tbDokter.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); for (i = 0; i < 7; i++) { TableColumn column = tbDokter.getColumnModel().getColumn(i); if(i==0){ column.setPreferredWidth(95); }else if(i==1){ column.setPreferredWidth(280); }else if(i==2){ column.setPreferredWidth(70); }else if(i==3){ column.setPreferredWidth(140); }else if(i==4){ column.setPreferredWidth(70); }else if(i==5){ column.setPreferredWidth(110); }else if(i==6){ column.setMinWidth(0); column.setMaxWidth(0); } } tbDokter.setDefaultRenderer(Object.class, new WarnaTable()); kdpenjab.setDocument(new batasInput((byte)15).getKata(kdpenjab)); nmpenjab.setDocument(new batasInput((byte)70).getKata(nmpenjab)); kddepo.setDocument(new batasInput((byte)25).getKata(kddepo)); kdbar.setDocument(new batasInput((byte)15).getKata(kdbar)); kdsat.setDocument(new batasInput((byte)3).getKata(kdsat)); TCari.setDocument(new batasInput((byte)100).getKata(TCari)); if(koneksiDB.CARICEPAT().equals("aktif")){ TCari.getDocument().addDocumentListener(new javax.swing.event.DocumentListener(){ @Override public void insertUpdate(DocumentEvent e) { if(TCari.getText().length()>2){ tampil(); } } @Override public void removeUpdate(DocumentEvent e) { if(TCari.getText().length()>2){ tampil(); } } @Override public void changedUpdate(DocumentEvent e) { if(TCari.getText().length()>2){ tampil(); } } }); } barang.addWindowListener(new WindowListener() { @Override public void windowOpened(WindowEvent e) {} @Override public void windowClosing(WindowEvent e) {} @Override public void windowClosed(WindowEvent e) { if(akses.getform().equals("DlgCariPenjualan")){ if(barang.getTable().getSelectedRow()!= -1){ kdbar.setText(barang.getTable().getValueAt(barang.getTable().getSelectedRow(),1).toString()); nmbar.setText(barang.getTable().getValueAt(barang.getTable().getSelectedRow(),2).toString()); } kdbar.requestFocus(); } } @Override public void windowIconified(WindowEvent e) {} @Override public void windowDeiconified(WindowEvent e) {} @Override public void windowActivated(WindowEvent e) {} @Override public void windowDeactivated(WindowEvent e) {} }); barang.getTable().addKeyListener(new KeyListener() { @Override public void keyTyped(KeyEvent e) {} @Override public void keyPressed(KeyEvent e) { if(akses.getform().equals("DlgCariPenjualan")){ if(e.getKeyCode()==KeyEvent.VK_SPACE){ barang.dispose(); } } } @Override public void keyReleased(KeyEvent e) {} }); barang.jenis.addWindowListener(new WindowListener() { @Override public void windowOpened(WindowEvent e) {} @Override public void windowClosing(WindowEvent e) {} @Override public void windowClosed(WindowEvent e) { if(akses.getform().equals("DlgCariPenjualan")){ if(barang.jenis.getTable().getSelectedRow()!= -1){ kdsat.setText(barang.jenis.getTable().getValueAt(barang.jenis.getTable().getSelectedRow(),0).toString()); nmsat.setText(barang.jenis.getTable().getValueAt(barang.jenis.getTable().getSelectedRow(),1).toString()); } kdsat.requestFocus(); } } @Override public void windowIconified(WindowEvent e) {} @Override public void windowDeiconified(WindowEvent e) {} @Override public void windowActivated(WindowEvent e) {} @Override public void windowDeactivated(WindowEvent e) {} }); penjab.addWindowListener(new WindowListener() { @Override public void windowOpened(WindowEvent e) {} @Override public void windowClosing(WindowEvent e) {} @Override public void windowClosed(WindowEvent e) { if(penjab.getTable().getSelectedRow()!= -1){ kdpenjab.setText(penjab.getTable().getValueAt(penjab.getTable().getSelectedRow(),1).toString()); nmpenjab.setText(penjab.getTable().getValueAt(penjab.getTable().getSelectedRow(),2).toString()); } kdpenjab.requestFocus(); } @Override public void windowIconified(WindowEvent e) {} @Override public void windowDeiconified(WindowEvent e) {} @Override public void windowActivated(WindowEvent e) {penjab.emptTeks();} @Override public void windowDeactivated(WindowEvent e) {} }); penjab.getTable().addKeyListener(new KeyListener() { @Override public void keyTyped(KeyEvent e) {} @Override public void keyPressed(KeyEvent e) { if(e.getKeyCode()==KeyEvent.VK_SPACE){ penjab.dispose(); } } @Override public void keyReleased(KeyEvent e) {} }); asalstok.addWindowListener(new WindowListener() { @Override public void windowOpened(WindowEvent e) {} @Override public void windowClosing(WindowEvent e) {} @Override public void windowClosed(WindowEvent e) { if(asalstok.getTable().getSelectedRow()!= -1){ kddepo.setText(asalstok.getTable().getValueAt(asalstok.getTable().getSelectedRow(),0).toString()); nmdepo.setText(asalstok.getTable().getValueAt(asalstok.getTable().getSelectedRow(),1).toString()); } kddepo.requestFocus(); } @Override public void windowIconified(WindowEvent e) {} @Override public void windowDeiconified(WindowEvent e) {} @Override public void windowActivated(WindowEvent e) {} @Override public void windowDeactivated(WindowEvent e) {} }); asalstok.getTable().addKeyListener(new KeyListener() { @Override public void keyTyped(KeyEvent e) {} @Override public void keyPressed(KeyEvent e) { if(e.getKeyCode()==KeyEvent.VK_SPACE){ asalstok.dispose(); } } @Override public void keyReleased(KeyEvent e) {} }); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { Popup1 = new javax.swing.JPopupMenu(); MnKodeBarangDesc = new javax.swing.JMenuItem(); MnKodeBarangAsc = new javax.swing.JMenuItem(); MnNamaBarangDesc = new javax.swing.JMenuItem(); MnNamaBarangAsc = new javax.swing.JMenuItem(); MnKategoriAsc = new javax.swing.JMenuItem(); MnKategoriDesc = new javax.swing.JMenuItem(); MnSatuanDesc = new javax.swing.JMenuItem(); MnSatuanAsc = new javax.swing.JMenuItem(); MnTotalAsc = new javax.swing.JMenuItem(); MnTotalDesc = new javax.swing.JMenuItem(); MnJumlahAsc = new javax.swing.JMenuItem(); MnJumlahDesc = new javax.swing.JMenuItem(); internalFrame1 = new widget.InternalFrame(); jPanel1 = new javax.swing.JPanel(); panelisi4 = new widget.panelisi(); label17 = new widget.Label(); kdbar = new widget.TextBox(); nmbar = new widget.TextBox(); btnBarang = new widget.Button(); label24 = new widget.Label(); kdsat = new widget.TextBox(); btnSatuan = new widget.Button(); nmsat = new widget.TextBox(); panelisi1 = new widget.panelisi(); label10 = new widget.Label(); TCari = new widget.TextBox(); BtnCari = new widget.Button(); label9 = new widget.Label(); LTotal = new widget.Label(); BtnAll = new widget.Button(); BtnPrint = new widget.Button(); BtnKeluar = new widget.Button(); panelisi3 = new widget.panelisi(); label11 = new widget.Label(); Tgl1 = new widget.Tanggal(); label16 = new widget.Label(); label13 = new widget.Label(); kdpenjab = new widget.TextBox(); kddepo = new widget.TextBox(); nmpenjab = new widget.TextBox(); nmdepo = new widget.TextBox(); btnpenjab = new widget.Button(); btndepo = new widget.Button(); label18 = new widget.Label(); Tgl2 = new widget.Tanggal(); jLabel18 = new widget.Label(); Status = new widget.ComboBox(); scrollPane1 = new widget.ScrollPane(); tbDokter = new widget.Table(); Popup1.setName("Popup1"); // NOI18N MnKodeBarangDesc.setBackground(new java.awt.Color(255, 255, 254)); MnKodeBarangDesc.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N MnKodeBarangDesc.setForeground(new java.awt.Color(50, 50, 50)); MnKodeBarangDesc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N MnKodeBarangDesc.setText("Urutkan Berdasar Kode Barang Descending"); MnKodeBarangDesc.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); MnKodeBarangDesc.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); MnKodeBarangDesc.setName("MnKodeBarangDesc"); // NOI18N MnKodeBarangDesc.setPreferredSize(new java.awt.Dimension(280, 26)); MnKodeBarangDesc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MnKodeBarangDescActionPerformed(evt); } }); Popup1.add(MnKodeBarangDesc); MnKodeBarangAsc.setBackground(new java.awt.Color(255, 255, 254)); MnKodeBarangAsc.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N MnKodeBarangAsc.setForeground(new java.awt.Color(50, 50, 50)); MnKodeBarangAsc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N MnKodeBarangAsc.setText("Urutkan Berdasar Kode Barang Ascending"); MnKodeBarangAsc.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); MnKodeBarangAsc.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); MnKodeBarangAsc.setName("MnKodeBarangAsc"); // NOI18N MnKodeBarangAsc.setPreferredSize(new java.awt.Dimension(280, 26)); MnKodeBarangAsc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MnKodeBarangAscActionPerformed(evt); } }); Popup1.add(MnKodeBarangAsc); MnNamaBarangDesc.setBackground(new java.awt.Color(255, 255, 254)); MnNamaBarangDesc.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N MnNamaBarangDesc.setForeground(new java.awt.Color(50, 50, 50)); MnNamaBarangDesc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N MnNamaBarangDesc.setText("Urutkan Berdasar Nama Barang Descending"); MnNamaBarangDesc.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); MnNamaBarangDesc.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); MnNamaBarangDesc.setName("MnNamaBarangDesc"); // NOI18N MnNamaBarangDesc.setPreferredSize(new java.awt.Dimension(280, 26)); MnNamaBarangDesc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MnNamaBarangDescActionPerformed(evt); } }); Popup1.add(MnNamaBarangDesc); MnNamaBarangAsc.setBackground(new java.awt.Color(255, 255, 254)); MnNamaBarangAsc.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N MnNamaBarangAsc.setForeground(new java.awt.Color(50, 50, 50)); MnNamaBarangAsc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N MnNamaBarangAsc.setText("Urutkan Berdasar Nama Barang Ascending"); MnNamaBarangAsc.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); MnNamaBarangAsc.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); MnNamaBarangAsc.setName("MnNamaBarangAsc"); // NOI18N MnNamaBarangAsc.setPreferredSize(new java.awt.Dimension(280, 26)); MnNamaBarangAsc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MnNamaBarangAscActionPerformed(evt); } }); Popup1.add(MnNamaBarangAsc); MnKategoriAsc.setBackground(new java.awt.Color(255, 255, 254)); MnKategoriAsc.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N MnKategoriAsc.setForeground(new java.awt.Color(50, 50, 50)); MnKategoriAsc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N MnKategoriAsc.setText("Urutkan Berdasar Jenis Ascending"); MnKategoriAsc.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); MnKategoriAsc.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); MnKategoriAsc.setName("MnKategoriAsc"); // NOI18N MnKategoriAsc.setPreferredSize(new java.awt.Dimension(280, 26)); MnKategoriAsc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MnKategoriAscActionPerformed(evt); } }); Popup1.add(MnKategoriAsc); MnKategoriDesc.setBackground(new java.awt.Color(255, 255, 254)); MnKategoriDesc.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N MnKategoriDesc.setForeground(new java.awt.Color(50, 50, 50)); MnKategoriDesc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N MnKategoriDesc.setText("Urutkan Berdasar Jenis Descending"); MnKategoriDesc.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); MnKategoriDesc.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); MnKategoriDesc.setName("MnKategoriDesc"); // NOI18N MnKategoriDesc.setPreferredSize(new java.awt.Dimension(280, 26)); MnKategoriDesc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MnKategoriDescActionPerformed(evt); } }); Popup1.add(MnKategoriDesc); MnSatuanDesc.setBackground(new java.awt.Color(255, 255, 254)); MnSatuanDesc.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N MnSatuanDesc.setForeground(new java.awt.Color(50, 50, 50)); MnSatuanDesc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N MnSatuanDesc.setText("Urutkan Berdasar Satuan Descending"); MnSatuanDesc.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); MnSatuanDesc.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); MnSatuanDesc.setName("MnSatuanDesc"); // NOI18N MnSatuanDesc.setPreferredSize(new java.awt.Dimension(280, 26)); MnSatuanDesc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MnSatuanDescActionPerformed(evt); } }); Popup1.add(MnSatuanDesc); MnSatuanAsc.setBackground(new java.awt.Color(255, 255, 254)); MnSatuanAsc.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N MnSatuanAsc.setForeground(new java.awt.Color(50, 50, 50)); MnSatuanAsc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N MnSatuanAsc.setText("Urutkan Berdasar Satuan Ascending"); MnSatuanAsc.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); MnSatuanAsc.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); MnSatuanAsc.setName("MnSatuanAsc"); // NOI18N MnSatuanAsc.setPreferredSize(new java.awt.Dimension(280, 26)); MnSatuanAsc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MnSatuanAscActionPerformed(evt); } }); Popup1.add(MnSatuanAsc); MnTotalAsc.setBackground(new java.awt.Color(255, 255, 254)); MnTotalAsc.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N MnTotalAsc.setForeground(new java.awt.Color(50, 50, 50)); MnTotalAsc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N MnTotalAsc.setText("Urutkan Berdasar Total Ascending"); MnTotalAsc.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); MnTotalAsc.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); MnTotalAsc.setName("MnTotalAsc"); // NOI18N MnTotalAsc.setPreferredSize(new java.awt.Dimension(280, 26)); MnTotalAsc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MnTotalAscActionPerformed(evt); } }); Popup1.add(MnTotalAsc); MnTotalDesc.setBackground(new java.awt.Color(255, 255, 254)); MnTotalDesc.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N MnTotalDesc.setForeground(new java.awt.Color(50, 50, 50)); MnTotalDesc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N MnTotalDesc.setText("Urutkan Berdasar Total Descending"); MnTotalDesc.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); MnTotalDesc.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); MnTotalDesc.setName("MnTotalDesc"); // NOI18N MnTotalDesc.setPreferredSize(new java.awt.Dimension(280, 26)); MnTotalDesc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MnTotalDescActionPerformed(evt); } }); Popup1.add(MnTotalDesc); MnJumlahAsc.setBackground(new java.awt.Color(255, 255, 254)); MnJumlahAsc.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N MnJumlahAsc.setForeground(new java.awt.Color(50, 50, 50)); MnJumlahAsc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N MnJumlahAsc.setText("Urutkan Berdasar Jumlah Ascending"); MnJumlahAsc.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); MnJumlahAsc.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); MnJumlahAsc.setName("MnJumlahAsc"); // NOI18N MnJumlahAsc.setPreferredSize(new java.awt.Dimension(280, 26)); MnJumlahAsc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MnJumlahAscActionPerformed(evt); } }); Popup1.add(MnJumlahAsc); MnJumlahDesc.setBackground(new java.awt.Color(255, 255, 254)); MnJumlahDesc.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N MnJumlahDesc.setForeground(new java.awt.Color(50, 50, 50)); MnJumlahDesc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N MnJumlahDesc.setText("Urutkan Berdasar Jumlah Descending"); MnJumlahDesc.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); MnJumlahDesc.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); MnJumlahDesc.setName("MnJumlahDesc"); // NOI18N MnJumlahDesc.setPreferredSize(new java.awt.Dimension(280, 26)); MnJumlahDesc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MnJumlahDescActionPerformed(evt); } }); Popup1.add(MnJumlahDesc); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setUndecorated(true); setResizable(false); addWindowListener(new java.awt.event.WindowAdapter() { public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } }); internalFrame1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(240, 245, 235)), "::[ Ringkasan Beri Obat, Alkes & BHP Medis ]::", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(50, 50, 50))); // NOI18N internalFrame1.setName("internalFrame1"); // NOI18N internalFrame1.setLayout(new java.awt.BorderLayout(1, 1)); jPanel1.setName("jPanel1"); // NOI18N jPanel1.setOpaque(false); jPanel1.setPreferredSize(new java.awt.Dimension(816, 100)); jPanel1.setLayout(new java.awt.BorderLayout(1, 1)); panelisi4.setName("panelisi4"); // NOI18N panelisi4.setPreferredSize(new java.awt.Dimension(100, 44)); panelisi4.setLayout(null); label17.setText("Barang :"); label17.setName("label17"); // NOI18N label17.setPreferredSize(new java.awt.Dimension(65, 23)); panelisi4.add(label17); label17.setBounds(295, 10, 90, 23); kdbar.setEditable(false); kdbar.setName("kdbar"); // NOI18N kdbar.setPreferredSize(new java.awt.Dimension(80, 23)); panelisi4.add(kdbar); kdbar.setBounds(389, 10, 110, 23); nmbar.setEditable(false); nmbar.setName("nmbar"); // NOI18N nmbar.setPreferredSize(new java.awt.Dimension(207, 23)); panelisi4.add(nmbar); nmbar.setBounds(501, 10, 270, 23); btnBarang.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/190.png"))); // NOI18N btnBarang.setMnemonic('4'); btnBarang.setToolTipText("Alt+4"); btnBarang.setName("btnBarang"); // NOI18N btnBarang.setPreferredSize(new java.awt.Dimension(28, 23)); btnBarang.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnBarangActionPerformed(evt); } }); panelisi4.add(btnBarang); btnBarang.setBounds(774, 10, 28, 23); label24.setText("Jenis :"); label24.setName("label24"); // NOI18N label24.setPreferredSize(new java.awt.Dimension(68, 23)); panelisi4.add(label24); label24.setBounds(0, 10, 74, 23); kdsat.setEditable(false); kdsat.setName("kdsat"); // NOI18N kdsat.setPreferredSize(new java.awt.Dimension(80, 23)); panelisi4.add(kdsat); kdsat.setBounds(79, 10, 53, 23); btnSatuan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/190.png"))); // NOI18N btnSatuan.setMnemonic('3'); btnSatuan.setToolTipText("Alt+3"); btnSatuan.setName("btnSatuan"); // NOI18N btnSatuan.setPreferredSize(new java.awt.Dimension(28, 23)); btnSatuan.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSatuanActionPerformed(evt); } }); panelisi4.add(btnSatuan); btnSatuan.setBounds(255, 10, 28, 23); nmsat.setName("nmsat"); // NOI18N nmsat.setPreferredSize(new java.awt.Dimension(80, 23)); nmsat.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { nmsatKeyPressed(evt); } }); panelisi4.add(nmsat); nmsat.setBounds(134, 10, 116, 23); jPanel1.add(panelisi4, java.awt.BorderLayout.CENTER); panelisi1.setName("panelisi1"); // NOI18N panelisi1.setPreferredSize(new java.awt.Dimension(100, 56)); panelisi1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 9)); label10.setText("Key Word :"); label10.setName("label10"); // NOI18N label10.setPreferredSize(new java.awt.Dimension(70, 23)); panelisi1.add(label10); TCari.setName("TCari"); // NOI18N TCari.setPreferredSize(new java.awt.Dimension(170, 23)); TCari.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { TCariKeyPressed(evt); } }); panelisi1.add(TCari); BtnCari.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/accept.png"))); // NOI18N BtnCari.setMnemonic('5'); BtnCari.setToolTipText("Alt+5"); BtnCari.setName("BtnCari"); // NOI18N BtnCari.setPreferredSize(new java.awt.Dimension(28, 23)); BtnCari.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { BtnCariActionPerformed(evt); } }); BtnCari.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { BtnCariKeyPressed(evt); } }); panelisi1.add(BtnCari); label9.setText("Total :"); label9.setName("label9"); // NOI18N label9.setPreferredSize(new java.awt.Dimension(55, 30)); panelisi1.add(label9); LTotal.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); LTotal.setText("0"); LTotal.setName("LTotal"); // NOI18N LTotal.setPreferredSize(new java.awt.Dimension(155, 30)); panelisi1.add(LTotal); BtnAll.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/Search-16x16.png"))); // NOI18N BtnAll.setMnemonic('M'); BtnAll.setText("Semua"); BtnAll.setToolTipText("Alt+M"); BtnAll.setName("BtnAll"); // NOI18N BtnAll.setPreferredSize(new java.awt.Dimension(100, 30)); BtnAll.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { BtnAllActionPerformed(evt); } }); BtnAll.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { BtnAllKeyPressed(evt); } }); panelisi1.add(BtnAll); BtnPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/b_print.png"))); // NOI18N BtnPrint.setMnemonic('T'); BtnPrint.setText("Cetak"); BtnPrint.setToolTipText("Alt+T"); BtnPrint.setName("BtnPrint"); // NOI18N BtnPrint.setPreferredSize(new java.awt.Dimension(100, 30)); BtnPrint.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { BtnPrintActionPerformed(evt); } }); BtnPrint.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { BtnPrintKeyPressed(evt); } }); panelisi1.add(BtnPrint); BtnKeluar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/exit.png"))); // NOI18N BtnKeluar.setMnemonic('K'); BtnKeluar.setText("Keluar"); BtnKeluar.setToolTipText("Alt+K"); BtnKeluar.setName("BtnKeluar"); // NOI18N BtnKeluar.setPreferredSize(new java.awt.Dimension(100, 30)); BtnKeluar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { BtnKeluarActionPerformed(evt); } }); BtnKeluar.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { BtnKeluarKeyPressed(evt); } }); panelisi1.add(BtnKeluar); jPanel1.add(panelisi1, java.awt.BorderLayout.PAGE_END); internalFrame1.add(jPanel1, java.awt.BorderLayout.PAGE_END); panelisi3.setName("panelisi3"); // NOI18N panelisi3.setPreferredSize(new java.awt.Dimension(100, 73)); panelisi3.setLayout(null); label11.setText("Tanggal :"); label11.setName("label11"); // NOI18N label11.setPreferredSize(new java.awt.Dimension(70, 23)); panelisi3.add(label11); label11.setBounds(0, 40, 60, 23); Tgl1.setDisplayFormat("dd-MM-yyyy"); Tgl1.setName("Tgl1"); // NOI18N Tgl1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { Tgl1KeyPressed(evt); } }); panelisi3.add(Tgl1); Tgl1.setBounds(64, 40, 90, 23); label16.setText("Cara/Jenis Bayar :"); label16.setName("label16"); // NOI18N label16.setPreferredSize(new java.awt.Dimension(60, 23)); panelisi3.add(label16); label16.setBounds(335, 10, 110, 23); label13.setText("Depo/Asal Stok :"); label13.setName("label13"); // NOI18N label13.setPreferredSize(new java.awt.Dimension(70, 23)); panelisi3.add(label13); label13.setBounds(325, 40, 120, 23); kdpenjab.setEditable(false); kdpenjab.setName("kdpenjab"); // NOI18N kdpenjab.setPreferredSize(new java.awt.Dimension(80, 23)); panelisi3.add(kdpenjab); kdpenjab.setBounds(449, 10, 80, 23); kddepo.setEditable(false); kddepo.setName("kddepo"); // NOI18N kddepo.setPreferredSize(new java.awt.Dimension(80, 23)); panelisi3.add(kddepo); kddepo.setBounds(449, 40, 80, 23); nmpenjab.setName("nmpenjab"); // NOI18N nmpenjab.setPreferredSize(new java.awt.Dimension(207, 23)); panelisi3.add(nmpenjab); nmpenjab.setBounds(531, 10, 240, 23); nmdepo.setEditable(false); nmdepo.setName("nmdepo"); // NOI18N nmdepo.setPreferredSize(new java.awt.Dimension(207, 23)); panelisi3.add(nmdepo); nmdepo.setBounds(531, 40, 240, 23); btnpenjab.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/190.png"))); // NOI18N btnpenjab.setMnemonic('1'); btnpenjab.setToolTipText("Alt+1"); btnpenjab.setName("btnpenjab"); // NOI18N btnpenjab.setPreferredSize(new java.awt.Dimension(28, 23)); btnpenjab.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnpenjabActionPerformed(evt); } }); panelisi3.add(btnpenjab); btnpenjab.setBounds(774, 10, 28, 23); btndepo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/190.png"))); // NOI18N btndepo.setMnemonic('2'); btndepo.setToolTipText("Alt+2"); btndepo.setName("btndepo"); // NOI18N btndepo.setPreferredSize(new java.awt.Dimension(28, 23)); btndepo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btndepoActionPerformed(evt); } }); panelisi3.add(btndepo); btndepo.setBounds(774, 40, 28, 23); label18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); label18.setText("s.d."); label18.setName("label18"); // NOI18N label18.setPreferredSize(new java.awt.Dimension(70, 23)); panelisi3.add(label18); label18.setBounds(153, 40, 30, 23); Tgl2.setDisplayFormat("dd-MM-yyyy"); Tgl2.setName("Tgl2"); // NOI18N Tgl2.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { Tgl2KeyPressed(evt); } }); panelisi3.add(Tgl2); Tgl2.setBounds(185, 40, 90, 23); jLabel18.setText("Status :"); jLabel18.setName("jLabel18"); // NOI18N panelisi3.add(jLabel18); jLabel18.setBounds(0, 10, 60, 23); Status.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Semua", "Ralan", "Ranap" })); Status.setLightWeightPopupEnabled(false); Status.setName("Status"); // NOI18N panelisi3.add(Status); Status.setBounds(64, 10, 150, 23); internalFrame1.add(panelisi3, java.awt.BorderLayout.PAGE_START); scrollPane1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255))); scrollPane1.setComponentPopupMenu(Popup1); scrollPane1.setName("scrollPane1"); // NOI18N scrollPane1.setOpaque(true); tbDokter.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {}, {}, {}, {} }, new String [] { } )); tbDokter.setToolTipText("Silahkan klik untuk memilih data yang mau diedit ataupun dihapus"); tbDokter.setComponentPopupMenu(Popup1); tbDokter.setName("tbDokter"); // NOI18N scrollPane1.setViewportView(tbDokter); internalFrame1.add(scrollPane1, java.awt.BorderLayout.CENTER); getContentPane().add(internalFrame1, java.awt.BorderLayout.CENTER); pack(); }// </editor-fold>//GEN-END:initComponents /* private void KdKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_TKdKeyPressed Valid.pindah(evt,BtnCari,Nm); }//GEN-LAST:event_TKdKeyPressed */ private void btnpenjabActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnpenjabActionPerformed akses.setform("DlgCariPenjualan"); penjab.isCek(); penjab.setSize(internalFrame1.getWidth()-20,internalFrame1.getHeight()-20); penjab.setLocationRelativeTo(internalFrame1); penjab.setAlwaysOnTop(false); penjab.setVisible(true); }//GEN-LAST:event_btnpenjabActionPerformed private void btndepoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btndepoActionPerformed akses.setform("DlgCariPenjualan"); asalstok.isCek(); asalstok.setSize(internalFrame1.getWidth()-20,internalFrame1.getHeight()-20); asalstok.setLocationRelativeTo(internalFrame1); asalstok.setAlwaysOnTop(false); asalstok.setVisible(true); }//GEN-LAST:event_btndepoActionPerformed private void Tgl1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_Tgl1KeyPressed Valid.pindah(evt,kdpenjab,Tgl2); }//GEN-LAST:event_Tgl1KeyPressed private void Tgl2KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_Tgl2KeyPressed Valid.pindah(evt, Tgl1,kddepo); }//GEN-LAST:event_Tgl2KeyPressed private void btnBarangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBarangActionPerformed akses.setform("DlgCariPenjualan"); barang.emptTeks(); barang.isCek(); barang.setSize(internalFrame1.getWidth()-20,internalFrame1.getHeight()-20); barang.setLocationRelativeTo(internalFrame1); barang.setAlwaysOnTop(false); barang.setVisible(true); }//GEN-LAST:event_btnBarangActionPerformed private void btnSatuanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSatuanActionPerformed akses.setform("DlgCariPenjualan"); barang.jenis.emptTeks(); barang.jenis.isCek(); barang.jenis.setSize(internalFrame1.getWidth()-20,internalFrame1.getHeight()-20); barang.jenis.setLocationRelativeTo(internalFrame1); barang.jenis.setAlwaysOnTop(false); barang.jenis.setVisible(true); }//GEN-LAST:event_btnSatuanActionPerformed private void nmsatKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_nmsatKeyPressed // TODO add your handling code here: }//GEN-LAST:event_nmsatKeyPressed private void TCariKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_TCariKeyPressed if(evt.getKeyCode()==KeyEvent.VK_ENTER){ BtnCariActionPerformed(null); }else if(evt.getKeyCode()==KeyEvent.VK_PAGE_DOWN){ BtnCari.requestFocus(); }else if(evt.getKeyCode()==KeyEvent.VK_PAGE_UP){ BtnKeluar.requestFocus(); }else if(evt.getKeyCode()==KeyEvent.VK_UP){ tbDokter.requestFocus(); } }//GEN-LAST:event_TCariKeyPressed private void BtnCariActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnCariActionPerformed tampil(); }//GEN-LAST:event_BtnCariActionPerformed private void BtnCariKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_BtnCariKeyPressed if(evt.getKeyCode()==KeyEvent.VK_SPACE){ BtnCariActionPerformed(null); }else{ Valid.pindah(evt, TCari, BtnAll); } }//GEN-LAST:event_BtnCariKeyPressed private void BtnAllActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnAllActionPerformed TCari.setText(""); kdbar.setText(""); nmbar.setText(""); kdsat.setText(""); nmsat.setText(""); kdpenjab.setText(""); nmpenjab.setText(""); kddepo.setText(""); nmdepo.setText(""); Status.setSelectedIndex(0); tampil(); }//GEN-LAST:event_BtnAllActionPerformed private void BtnAllKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_BtnAllKeyPressed if(evt.getKeyCode()==KeyEvent.VK_SPACE){ BtnAllActionPerformed(null); }else{ Valid.pindah(evt, BtnPrint, BtnKeluar); } }//GEN-LAST:event_BtnAllKeyPressed private void BtnPrintActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnPrintActionPerformed this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); if(tabMode.getRowCount()==0){ JOptionPane.showMessageDialog(null,"Maaf, data sudah habis. Tidak ada data yang bisa anda print...!!!!"); TCari.requestFocus(); }else if(tabMode.getRowCount()!=0){ Map<String, Object> param = new HashMap<>(); param.put("namars",akses.getnamars()); param.put("alamatrs",akses.getalamatrs()); param.put("kotars",akses.getkabupatenrs()); param.put("propinsirs",akses.getpropinsirs()); param.put("kontakrs",akses.getkontakrs()); param.put("emailrs",akses.getemailrs()); param.put("tanggal1",Valid.SetTgl(Tgl1.getSelectedItem()+"")); param.put("tanggal2",Valid.SetTgl(Tgl2.getSelectedItem()+"")); param.put("parameter","%"+TCari.getText().trim()+"%"); param.put("logo",Sequel.cariGambar("select logo from setting")); tanggal=" detail_pemberian_obat.tgl_perawatan between '"+Valid.SetTgl(Tgl1.getSelectedItem()+"")+"' and '"+Valid.SetTgl(Tgl2.getSelectedItem()+"")+"' "; status="";carabayar="";depo="";jenis="";bar=""; if(!nmpenjab.getText().equals("")){ carabayar=" and penjab.png_jawab='"+nmpenjab.getText()+"' "; } if(!Status.getSelectedItem().toString().equals("Semua")){ status=" and detail_pemberian_obat.status='"+Status.getSelectedItem()+"' "; } if(!nmdepo.getText().equals("")){ depo=" and bangsal.nm_bangsal='"+nmdepo.getText()+"' "; } if(!nmsat.getText().equals("")){ jenis=" and jenis.nama='"+nmsat.getText()+"' "; } if(!nmbar.getText().equals("")){ bar=" and databarang.nama_brng='"+nmbar.getText()+"' "; } Valid.MyReportqry("rptRingkasanBeriObat.jasper","report","::[ Laporan Ringkasan Pemberian Obat/Alkes/BHP Medis ]::", "select detail_pemberian_obat.kode_brng,databarang.nama_brng, databarang.kode_sat,"+ " kodesatuan.satuan,jenis.nama as namajenis,sum(detail_pemberian_obat.jml) as jumlah,sum(detail_pemberian_obat.total) as total "+ " from detail_pemberian_obat inner join reg_periksa on detail_pemberian_obat.no_rawat=reg_periksa.no_rawat "+ " inner join penjab on reg_periksa.kd_pj=penjab.kd_pj "+ " inner join databarang on detail_pemberian_obat.kode_brng=databarang.kode_brng "+ " inner join bangsal on detail_pemberian_obat.kd_bangsal=bangsal.kd_bangsal "+ " inner join jenis on databarang.kdjns=jenis.kdjns "+ " inner join kodesatuan on databarang.kode_sat=kodesatuan.kode_sat "+ " where "+tanggal+carabayar+depo+jenis+bar+status+" and "+ "(detail_pemberian_obat.kode_brng like '%"+TCari.getText()+"%' or databarang.nama_brng like '%"+TCari.getText()+"%' or "+ "kodesatuan.satuan like '%"+TCari.getText()+"%' or jenis.nama like '%"+TCari.getText()+"%') "+ " group by detail_pemberian_obat.kode_brng "+order,param); } this.setCursor(Cursor.getDefaultCursor()); }//GEN-LAST:event_BtnPrintActionPerformed private void BtnPrintKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_BtnPrintKeyPressed if(evt.getKeyCode()==KeyEvent.VK_SPACE){ BtnPrintActionPerformed(null); }else{ Valid.pindah(evt,BtnAll,BtnAll); } }//GEN-LAST:event_BtnPrintKeyPressed private void BtnKeluarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnKeluarActionPerformed dispose(); }//GEN-LAST:event_BtnKeluarActionPerformed private void BtnKeluarKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_BtnKeluarKeyPressed if(evt.getKeyCode()==KeyEvent.VK_SPACE){ dispose(); }else{Valid.pindah(evt,BtnPrint,kdbar);} }//GEN-LAST:event_BtnKeluarKeyPressed private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened tampil(); }//GEN-LAST:event_formWindowOpened private void MnKodeBarangDescActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnKodeBarangDescActionPerformed order="order by databarang.kode_brng desc"; tampil(); }//GEN-LAST:event_MnKodeBarangDescActionPerformed private void MnKodeBarangAscActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnKodeBarangAscActionPerformed order="order by databarang.kode_brng asc"; tampil(); }//GEN-LAST:event_MnKodeBarangAscActionPerformed private void MnNamaBarangDescActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnNamaBarangDescActionPerformed order="order by databarang.nama_brng desc"; tampil(); }//GEN-LAST:event_MnNamaBarangDescActionPerformed private void MnNamaBarangAscActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnNamaBarangAscActionPerformed order="order by databarang.nama_brng asc"; tampil(); }//GEN-LAST:event_MnNamaBarangAscActionPerformed private void MnKategoriAscActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnKategoriAscActionPerformed order="order by jenis.nama desc"; tampil(); }//GEN-LAST:event_MnKategoriAscActionPerformed private void MnKategoriDescActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnKategoriDescActionPerformed order="order by jenis.nama asc"; tampil(); }//GEN-LAST:event_MnKategoriDescActionPerformed private void MnSatuanDescActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnSatuanDescActionPerformed order="order by databarang.kode_sat desc"; tampil(); }//GEN-LAST:event_MnSatuanDescActionPerformed private void MnSatuanAscActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnSatuanAscActionPerformed order="order by databarang.kode_sat asc"; tampil(); }//GEN-LAST:event_MnSatuanAscActionPerformed private void MnTotalAscActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnTotalAscActionPerformed order="order by sum(detail_pemberian_obat.total) asc"; tampil(); }//GEN-LAST:event_MnTotalAscActionPerformed private void MnTotalDescActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnTotalDescActionPerformed order="order by sum(detail_pemberian_obat.total) desc"; tampil(); }//GEN-LAST:event_MnTotalDescActionPerformed private void MnJumlahAscActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnJumlahAscActionPerformed order="order by sum(detail_pemberian_obat.jml) asc"; tampil(); }//GEN-LAST:event_MnJumlahAscActionPerformed private void MnJumlahDescActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnJumlahDescActionPerformed order="order by sum(detail_pemberian_obat.jml) desc"; tampil(); }//GEN-LAST:event_MnJumlahDescActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater(() -> { InventoryRingkasanBeriObat dialog = new InventoryRingkasanBeriObat(new javax.swing.JFrame(), true); dialog.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); }); } // Variables declaration - do not modify//GEN-BEGIN:variables private widget.Button BtnAll; private widget.Button BtnCari; private widget.Button BtnKeluar; private widget.Button BtnPrint; private widget.Label LTotal; private javax.swing.JMenuItem MnJumlahAsc; private javax.swing.JMenuItem MnJumlahDesc; private javax.swing.JMenuItem MnKategoriAsc; private javax.swing.JMenuItem MnKategoriDesc; private javax.swing.JMenuItem MnKodeBarangAsc; private javax.swing.JMenuItem MnKodeBarangDesc; private javax.swing.JMenuItem MnNamaBarangAsc; private javax.swing.JMenuItem MnNamaBarangDesc; private javax.swing.JMenuItem MnSatuanAsc; private javax.swing.JMenuItem MnSatuanDesc; private javax.swing.JMenuItem MnTotalAsc; private javax.swing.JMenuItem MnTotalDesc; private javax.swing.JPopupMenu Popup1; private widget.ComboBox Status; private widget.TextBox TCari; private widget.Tanggal Tgl1; private widget.Tanggal Tgl2; private widget.Button btnBarang; private widget.Button btnSatuan; private widget.Button btndepo; private widget.Button btnpenjab; private widget.InternalFrame internalFrame1; private widget.Label jLabel18; private javax.swing.JPanel jPanel1; private widget.TextBox kdbar; private widget.TextBox kddepo; private widget.TextBox kdpenjab; private widget.TextBox kdsat; private widget.Label label10; private widget.Label label11; private widget.Label label13; private widget.Label label16; private widget.Label label17; private widget.Label label18; private widget.Label label24; private widget.Label label9; private widget.TextBox nmbar; private widget.TextBox nmdepo; private widget.TextBox nmpenjab; private widget.TextBox nmsat; private widget.panelisi panelisi1; private widget.panelisi panelisi3; private widget.panelisi panelisi4; private widget.ScrollPane scrollPane1; private widget.Table tbDokter; // End of variables declaration//GEN-END:variables private void tampil() { tanggal=" detail_pemberian_obat.tgl_perawatan between '"+Valid.SetTgl(Tgl1.getSelectedItem()+"")+"' and '"+Valid.SetTgl(Tgl2.getSelectedItem()+"")+"' "; status="";carabayar="";depo="";jenis="";bar=""; if(!nmpenjab.getText().equals("")){ carabayar=" and penjab.png_jawab='"+nmpenjab.getText()+"' "; } if(!Status.getSelectedItem().toString().equals("Semua")){ status=" and detail_pemberian_obat.status='"+Status.getSelectedItem()+"' "; } if(!nmdepo.getText().equals("")){ depo=" and bangsal.nm_bangsal='"+nmdepo.getText()+"' "; } if(!nmsat.getText().equals("")){ jenis=" and jenis.nama='"+nmsat.getText()+"' "; } if(!nmbar.getText().equals("")){ bar=" and databarang.nama_brng='"+nmbar.getText()+"' "; } Valid.tabelKosong(tabMode); try{ ps=koneksi.prepareStatement("select detail_pemberian_obat.kode_brng,databarang.nama_brng, databarang.kode_sat,"+ " kodesatuan.satuan,jenis.nama as namajenis,sum(detail_pemberian_obat.jml) as jumlah,sum(detail_pemberian_obat.total) as total "+ " from detail_pemberian_obat inner join reg_periksa on detail_pemberian_obat.no_rawat=reg_periksa.no_rawat "+ " inner join penjab on reg_periksa.kd_pj=penjab.kd_pj "+ " inner join databarang on detail_pemberian_obat.kode_brng=databarang.kode_brng "+ " inner join bangsal on detail_pemberian_obat.kd_bangsal=bangsal.kd_bangsal "+ " inner join jenis on databarang.kdjns=jenis.kdjns "+ " inner join kodesatuan on databarang.kode_sat=kodesatuan.kode_sat "+ " where "+tanggal+carabayar+depo+jenis+bar+status+" and "+ "(detail_pemberian_obat.kode_brng like '%"+TCari.getText()+"%' or databarang.nama_brng like '%"+TCari.getText()+"%' or "+ "kodesatuan.satuan like '%"+TCari.getText()+"%' or jenis.nama like '%"+TCari.getText()+"%') "+ " group by detail_pemberian_obat.kode_brng "+order); try { rs=ps.executeQuery(); total=0; while(rs.next()){ total=total+rs.getDouble("total"); tabMode.addRow(new Object[]{ rs.getString("kode_brng"),rs.getString("nama_brng"),rs.getString("satuan"),rs.getString("namajenis"),rs.getDouble("jumlah"),rs.getDouble("total"),rs.getString("kode_sat") }); } } catch (Exception e) { System.out.println("Notifikasi : "+e); } finally{ if(rs!=null){ rs.close(); } if(ps!=null){ ps.close(); } } LTotal.setText(Valid.SetAngka(total)); }catch(Exception e){ System.out.println("Notifikasi : "+e); } } public void emptTeks() { kdbar.setText(""); nmbar.setText(""); kdsat.setText(""); kdbar.requestFocus(); } public void isCek(){ BtnPrint.setEnabled(akses.getringkasan_beri_obat()); } }
[ "ninosalatan@gmail.com" ]
ninosalatan@gmail.com
9bb3db35adb152b2035f039a16f9978ef4f139d1
86a1fe7908bfbbb737109da08c2198b9ea9efe6a
/node_modules/react-native-watson/android/build/generated/source/r/release/com/ibm/watson/developer_cloud/android/library/R.java
0a1cb7626d6ae82dc32e33bd6474286c6826b37d
[]
no_license
robipop22/NowWhat
e3aeee814fe1d8a01ff2c2fa060d83b3758f6122
7d00dfa1b4191f5847dfabdfea691c25e3fc8ff6
refs/heads/master
2022-10-25T05:30:33.594211
2018-09-11T19:53:12
2018-09-11T19:53:12
130,333,668
0
1
null
2022-10-20T14:19:38
2018-04-20T08:31:29
Java
UTF-8
Java
false
false
98,238
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.ibm.watson.developer_cloud.android.library; public final class R { public static final class anim { public static int abc_fade_in = 0x7f040000; public static int abc_fade_out = 0x7f040001; public static int abc_grow_fade_in_from_bottom = 0x7f040002; public static int abc_popup_enter = 0x7f040003; public static int abc_popup_exit = 0x7f040004; public static int abc_shrink_fade_out_from_bottom = 0x7f040005; public static int abc_slide_in_bottom = 0x7f040006; public static int abc_slide_in_top = 0x7f040007; public static int abc_slide_out_bottom = 0x7f040008; public static int abc_slide_out_top = 0x7f040009; public static int tooltip_enter = 0x7f040010; public static int tooltip_exit = 0x7f040011; } public static final class attr { public static int actionBarDivider = 0x7f010049; public static int actionBarItemBackground = 0x7f01004a; public static int actionBarPopupTheme = 0x7f010043; public static int actionBarSize = 0x7f010048; public static int actionBarSplitStyle = 0x7f010045; public static int actionBarStyle = 0x7f010044; public static int actionBarTabBarStyle = 0x7f01003f; public static int actionBarTabStyle = 0x7f01003e; public static int actionBarTabTextStyle = 0x7f010040; public static int actionBarTheme = 0x7f010046; public static int actionBarWidgetTheme = 0x7f010047; public static int actionButtonStyle = 0x7f010064; public static int actionDropDownStyle = 0x7f010060; public static int actionLayout = 0x7f0100dd; public static int actionMenuTextAppearance = 0x7f01004b; public static int actionMenuTextColor = 0x7f01004c; public static int actionModeBackground = 0x7f01004f; public static int actionModeCloseButtonStyle = 0x7f01004e; public static int actionModeCloseDrawable = 0x7f010051; public static int actionModeCopyDrawable = 0x7f010053; public static int actionModeCutDrawable = 0x7f010052; public static int actionModeFindDrawable = 0x7f010057; public static int actionModePasteDrawable = 0x7f010054; public static int actionModePopupWindowStyle = 0x7f010059; public static int actionModeSelectAllDrawable = 0x7f010055; public static int actionModeShareDrawable = 0x7f010056; public static int actionModeSplitBackground = 0x7f010050; public static int actionModeStyle = 0x7f01004d; public static int actionModeWebSearchDrawable = 0x7f010058; public static int actionOverflowButtonStyle = 0x7f010041; public static int actionOverflowMenuStyle = 0x7f010042; public static int actionProviderClass = 0x7f0100df; public static int actionViewClass = 0x7f0100de; public static int activityChooserViewStyle = 0x7f01006c; public static int alertDialogButtonGroupStyle = 0x7f010091; public static int alertDialogCenterButtons = 0x7f010092; public static int alertDialogStyle = 0x7f010090; public static int alertDialogTheme = 0x7f010093; public static int allowStacking = 0x7f0100a9; public static int alpha = 0x7f0100aa; public static int alphabeticModifiers = 0x7f0100da; public static int arrowHeadLength = 0x7f0100b1; public static int arrowShaftLength = 0x7f0100b2; public static int autoCompleteTextViewStyle = 0x7f010098; public static int autoSizeMaxTextSize = 0x7f010032; public static int autoSizeMinTextSize = 0x7f010031; public static int autoSizePresetSizes = 0x7f010030; public static int autoSizeStepGranularity = 0x7f01002f; public static int autoSizeTextType = 0x7f01002e; public static int background = 0x7f01000c; public static int backgroundSplit = 0x7f01000e; public static int backgroundStacked = 0x7f01000d; public static int backgroundTint = 0x7f010117; public static int backgroundTintMode = 0x7f010118; public static int barLength = 0x7f0100b3; public static int borderlessButtonStyle = 0x7f010069; public static int buttonBarButtonStyle = 0x7f010066; public static int buttonBarNegativeButtonStyle = 0x7f010096; public static int buttonBarNeutralButtonStyle = 0x7f010097; public static int buttonBarPositiveButtonStyle = 0x7f010095; public static int buttonBarStyle = 0x7f010065; public static int buttonGravity = 0x7f01010c; public static int buttonPanelSideLayout = 0x7f010021; public static int buttonStyle = 0x7f010099; public static int buttonStyleSmall = 0x7f01009a; public static int buttonTint = 0x7f0100ab; public static int buttonTintMode = 0x7f0100ac; public static int checkboxStyle = 0x7f01009b; public static int checkedTextViewStyle = 0x7f01009c; public static int closeIcon = 0x7f0100ee; public static int closeItemLayout = 0x7f01001e; public static int collapseContentDescription = 0x7f01010e; public static int collapseIcon = 0x7f01010d; public static int color = 0x7f0100ad; public static int colorAccent = 0x7f010088; public static int colorBackgroundFloating = 0x7f01008f; public static int colorButtonNormal = 0x7f01008c; public static int colorControlActivated = 0x7f01008a; public static int colorControlHighlight = 0x7f01008b; public static int colorControlNormal = 0x7f010089; public static int colorError = 0x7f0100a8; public static int colorPrimary = 0x7f010086; public static int colorPrimaryDark = 0x7f010087; public static int colorSwitchThumbNormal = 0x7f01008d; public static int commitIcon = 0x7f0100f3; public static int contentDescription = 0x7f0100e0; public static int contentInsetEnd = 0x7f010017; public static int contentInsetEndWithActions = 0x7f01001b; public static int contentInsetLeft = 0x7f010018; public static int contentInsetRight = 0x7f010019; public static int contentInsetStart = 0x7f010016; public static int contentInsetStartWithNavigation = 0x7f01001a; public static int controlBackground = 0x7f01008e; public static int customNavigationLayout = 0x7f01000f; public static int defaultQueryHint = 0x7f0100ed; public static int dialogPreferredPadding = 0x7f01005e; public static int dialogTheme = 0x7f01005d; public static int displayOptions = 0x7f010005; public static int divider = 0x7f01000b; public static int dividerHorizontal = 0x7f01006b; public static int dividerPadding = 0x7f0100d9; public static int dividerVertical = 0x7f01006a; public static int drawableSize = 0x7f0100af; public static int drawerArrowStyle = 0x7f010000; public static int dropDownListViewStyle = 0x7f01007d; public static int dropdownListPreferredItemHeight = 0x7f010061; public static int editTextBackground = 0x7f010072; public static int editTextColor = 0x7f010071; public static int editTextStyle = 0x7f01009d; public static int elevation = 0x7f01001c; public static int expandActivityOverflowButtonDrawable = 0x7f010020; public static int font = 0x7f0100bc; public static int fontFamily = 0x7f010033; public static int fontProviderAuthority = 0x7f0100b5; public static int fontProviderCerts = 0x7f0100b8; public static int fontProviderFetchStrategy = 0x7f0100b9; public static int fontProviderFetchTimeout = 0x7f0100ba; public static int fontProviderPackage = 0x7f0100b6; public static int fontProviderQuery = 0x7f0100b7; public static int fontStyle = 0x7f0100bb; public static int fontWeight = 0x7f0100bd; public static int gapBetweenBars = 0x7f0100b0; public static int goIcon = 0x7f0100ef; public static int height = 0x7f010001; public static int hideOnContentScroll = 0x7f010015; public static int homeAsUpIndicator = 0x7f010063; public static int homeLayout = 0x7f010010; public static int icon = 0x7f010009; public static int iconTint = 0x7f0100e2; public static int iconTintMode = 0x7f0100e3; public static int iconifiedByDefault = 0x7f0100eb; public static int imageButtonStyle = 0x7f010073; public static int indeterminateProgressStyle = 0x7f010012; public static int initialActivityCount = 0x7f01001f; public static int isLightTheme = 0x7f010002; public static int itemPadding = 0x7f010014; public static int layout = 0x7f0100ea; public static int listChoiceBackgroundIndicator = 0x7f010085; public static int listDividerAlertDialog = 0x7f01005f; public static int listItemLayout = 0x7f010025; public static int listLayout = 0x7f010022; public static int listMenuViewStyle = 0x7f0100a5; public static int listPopupWindowStyle = 0x7f01007e; public static int listPreferredItemHeight = 0x7f010078; public static int listPreferredItemHeightLarge = 0x7f01007a; public static int listPreferredItemHeightSmall = 0x7f010079; public static int listPreferredItemPaddingLeft = 0x7f01007b; public static int listPreferredItemPaddingRight = 0x7f01007c; public static int logo = 0x7f01000a; public static int logoDescription = 0x7f010111; public static int maxButtonHeight = 0x7f01010b; public static int measureWithLargestChild = 0x7f0100d7; public static int multiChoiceItemLayout = 0x7f010023; public static int navigationContentDescription = 0x7f010110; public static int navigationIcon = 0x7f01010f; public static int navigationMode = 0x7f010004; public static int numericModifiers = 0x7f0100db; public static int overlapAnchor = 0x7f0100e6; public static int paddingBottomNoButtons = 0x7f0100e8; public static int paddingEnd = 0x7f010115; public static int paddingStart = 0x7f010114; public static int paddingTopNoTitle = 0x7f0100e9; public static int panelBackground = 0x7f010082; public static int panelMenuListTheme = 0x7f010084; public static int panelMenuListWidth = 0x7f010083; public static int popupMenuStyle = 0x7f01006f; public static int popupTheme = 0x7f01001d; public static int popupWindowStyle = 0x7f010070; public static int preserveIconSpacing = 0x7f0100e4; public static int progressBarPadding = 0x7f010013; public static int progressBarStyle = 0x7f010011; public static int queryBackground = 0x7f0100f5; public static int queryHint = 0x7f0100ec; public static int radioButtonStyle = 0x7f01009e; public static int ratingBarStyle = 0x7f01009f; public static int ratingBarStyleIndicator = 0x7f0100a0; public static int ratingBarStyleSmall = 0x7f0100a1; public static int searchHintIcon = 0x7f0100f1; public static int searchIcon = 0x7f0100f0; public static int searchViewStyle = 0x7f010077; public static int seekBarStyle = 0x7f0100a2; public static int selectableItemBackground = 0x7f010067; public static int selectableItemBackgroundBorderless = 0x7f010068; public static int showAsAction = 0x7f0100dc; public static int showDividers = 0x7f0100d8; public static int showText = 0x7f010102; public static int showTitle = 0x7f010026; public static int singleChoiceItemLayout = 0x7f010024; public static int spinBars = 0x7f0100ae; public static int spinnerDropDownItemStyle = 0x7f010062; public static int spinnerStyle = 0x7f0100a3; public static int splitTrack = 0x7f010101; public static int srcCompat = 0x7f010027; public static int state_above_anchor = 0x7f0100e7; public static int subMenuArrow = 0x7f0100e5; public static int submitBackground = 0x7f0100f6; public static int subtitle = 0x7f010006; public static int subtitleTextAppearance = 0x7f010104; public static int subtitleTextColor = 0x7f010113; public static int subtitleTextStyle = 0x7f010008; public static int suggestionRowLayout = 0x7f0100f4; public static int switchMinWidth = 0x7f0100ff; public static int switchPadding = 0x7f010100; public static int switchStyle = 0x7f0100a4; public static int switchTextAppearance = 0x7f0100fe; public static int textAllCaps = 0x7f01002d; public static int textAppearanceLargePopupMenu = 0x7f01005a; public static int textAppearanceListItem = 0x7f01007f; public static int textAppearanceListItemSecondary = 0x7f010080; public static int textAppearanceListItemSmall = 0x7f010081; public static int textAppearancePopupMenuHeader = 0x7f01005c; public static int textAppearanceSearchResultSubtitle = 0x7f010075; public static int textAppearanceSearchResultTitle = 0x7f010074; public static int textAppearanceSmallPopupMenu = 0x7f01005b; public static int textColorAlertDialogListItem = 0x7f010094; public static int textColorSearchUrl = 0x7f010076; public static int theme = 0x7f010116; public static int thickness = 0x7f0100b4; public static int thumbTextPadding = 0x7f0100fd; public static int thumbTint = 0x7f0100f8; public static int thumbTintMode = 0x7f0100f9; public static int tickMark = 0x7f01002a; public static int tickMarkTint = 0x7f01002b; public static int tickMarkTintMode = 0x7f01002c; public static int tint = 0x7f010028; public static int tintMode = 0x7f010029; public static int title = 0x7f010003; public static int titleMargin = 0x7f010105; public static int titleMarginBottom = 0x7f010109; public static int titleMarginEnd = 0x7f010107; public static int titleMarginStart = 0x7f010106; public static int titleMarginTop = 0x7f010108; public static int titleMargins = 0x7f01010a; public static int titleTextAppearance = 0x7f010103; public static int titleTextColor = 0x7f010112; public static int titleTextStyle = 0x7f010007; public static int toolbarNavigationButtonStyle = 0x7f01006e; public static int toolbarStyle = 0x7f01006d; public static int tooltipForegroundColor = 0x7f0100a7; public static int tooltipFrameBackground = 0x7f0100a6; public static int tooltipText = 0x7f0100e1; public static int track = 0x7f0100fa; public static int trackTint = 0x7f0100fb; public static int trackTintMode = 0x7f0100fc; public static int voiceIcon = 0x7f0100f2; public static int windowActionBar = 0x7f010034; public static int windowActionBarOverlay = 0x7f010036; public static int windowActionModeOverlay = 0x7f010037; public static int windowFixedHeightMajor = 0x7f01003b; public static int windowFixedHeightMinor = 0x7f010039; public static int windowFixedWidthMajor = 0x7f010038; public static int windowFixedWidthMinor = 0x7f01003a; public static int windowMinWidthMajor = 0x7f01003c; public static int windowMinWidthMinor = 0x7f01003d; public static int windowNoTitle = 0x7f010035; } public static final class bool { public static int abc_action_bar_embed_tabs = 0x7f090000; public static int abc_allow_stacked_button_bar = 0x7f090001; public static int abc_config_actionMenuItemAllCaps = 0x7f090002; public static int abc_config_closeDialogWhenTouchOutside = 0x7f090003; public static int abc_config_showMenuShortcutsWhenKeyboardPresent = 0x7f090004; } public static final class color { public static int abc_background_cache_hint_selector_material_dark = 0x7f0a003f; public static int abc_background_cache_hint_selector_material_light = 0x7f0a0040; public static int abc_btn_colored_borderless_text_material = 0x7f0a0041; public static int abc_btn_colored_text_material = 0x7f0a0042; public static int abc_color_highlight_material = 0x7f0a0043; public static int abc_hint_foreground_material_dark = 0x7f0a0044; public static int abc_hint_foreground_material_light = 0x7f0a0045; public static int abc_input_method_navigation_guard = 0x7f0a0001; public static int abc_primary_text_disable_only_material_dark = 0x7f0a0046; public static int abc_primary_text_disable_only_material_light = 0x7f0a0047; public static int abc_primary_text_material_dark = 0x7f0a0048; public static int abc_primary_text_material_light = 0x7f0a0049; public static int abc_search_url_text = 0x7f0a004a; public static int abc_search_url_text_normal = 0x7f0a0002; public static int abc_search_url_text_pressed = 0x7f0a0003; public static int abc_search_url_text_selected = 0x7f0a0004; public static int abc_secondary_text_material_dark = 0x7f0a004b; public static int abc_secondary_text_material_light = 0x7f0a004c; public static int abc_tint_btn_checkable = 0x7f0a004d; public static int abc_tint_default = 0x7f0a004e; public static int abc_tint_edittext = 0x7f0a004f; public static int abc_tint_seek_thumb = 0x7f0a0050; public static int abc_tint_spinner = 0x7f0a0051; public static int abc_tint_switch_track = 0x7f0a0052; public static int accent_material_dark = 0x7f0a0005; public static int accent_material_light = 0x7f0a0006; public static int background_floating_material_dark = 0x7f0a0007; public static int background_floating_material_light = 0x7f0a0008; public static int background_material_dark = 0x7f0a0009; public static int background_material_light = 0x7f0a000a; public static int bright_foreground_disabled_material_dark = 0x7f0a000b; public static int bright_foreground_disabled_material_light = 0x7f0a000c; public static int bright_foreground_inverse_material_dark = 0x7f0a000d; public static int bright_foreground_inverse_material_light = 0x7f0a000e; public static int bright_foreground_material_dark = 0x7f0a000f; public static int bright_foreground_material_light = 0x7f0a0010; public static int button_material_dark = 0x7f0a0011; public static int button_material_light = 0x7f0a0012; public static int dim_foreground_disabled_material_dark = 0x7f0a0014; public static int dim_foreground_disabled_material_light = 0x7f0a0015; public static int dim_foreground_material_dark = 0x7f0a0016; public static int dim_foreground_material_light = 0x7f0a0017; public static int error_color_material = 0x7f0a0018; public static int foreground_material_dark = 0x7f0a0019; public static int foreground_material_light = 0x7f0a001a; public static int highlighted_text_material_dark = 0x7f0a001b; public static int highlighted_text_material_light = 0x7f0a001c; public static int material_blue_grey_800 = 0x7f0a001d; public static int material_blue_grey_900 = 0x7f0a001e; public static int material_blue_grey_950 = 0x7f0a001f; public static int material_deep_teal_200 = 0x7f0a0020; public static int material_deep_teal_500 = 0x7f0a0021; public static int material_grey_100 = 0x7f0a0022; public static int material_grey_300 = 0x7f0a0023; public static int material_grey_50 = 0x7f0a0024; public static int material_grey_600 = 0x7f0a0025; public static int material_grey_800 = 0x7f0a0026; public static int material_grey_850 = 0x7f0a0027; public static int material_grey_900 = 0x7f0a0028; public static int notification_action_color_filter = 0x7f0a0000; public static int notification_icon_bg_color = 0x7f0a0029; public static int notification_material_background_media_default_color = 0x7f0a002a; public static int primary_dark_material_dark = 0x7f0a002b; public static int primary_dark_material_light = 0x7f0a002c; public static int primary_material_dark = 0x7f0a002d; public static int primary_material_light = 0x7f0a002e; public static int primary_text_default_material_dark = 0x7f0a002f; public static int primary_text_default_material_light = 0x7f0a0030; public static int primary_text_disabled_material_dark = 0x7f0a0031; public static int primary_text_disabled_material_light = 0x7f0a0032; public static int ripple_material_dark = 0x7f0a0033; public static int ripple_material_light = 0x7f0a0034; public static int secondary_text_default_material_dark = 0x7f0a0035; public static int secondary_text_default_material_light = 0x7f0a0036; public static int secondary_text_disabled_material_dark = 0x7f0a0037; public static int secondary_text_disabled_material_light = 0x7f0a0038; public static int switch_thumb_disabled_material_dark = 0x7f0a0039; public static int switch_thumb_disabled_material_light = 0x7f0a003a; public static int switch_thumb_material_dark = 0x7f0a0053; public static int switch_thumb_material_light = 0x7f0a0054; public static int switch_thumb_normal_material_dark = 0x7f0a003b; public static int switch_thumb_normal_material_light = 0x7f0a003c; public static int tooltip_background_dark = 0x7f0a003d; public static int tooltip_background_light = 0x7f0a003e; } public static final class dimen { public static int abc_action_bar_content_inset_material = 0x7f07000c; public static int abc_action_bar_content_inset_with_nav = 0x7f07000d; public static int abc_action_bar_default_height_material = 0x7f070001; public static int abc_action_bar_default_padding_end_material = 0x7f07000e; public static int abc_action_bar_default_padding_start_material = 0x7f07000f; public static int abc_action_bar_elevation_material = 0x7f070015; public static int abc_action_bar_icon_vertical_padding_material = 0x7f070016; public static int abc_action_bar_overflow_padding_end_material = 0x7f070017; public static int abc_action_bar_overflow_padding_start_material = 0x7f070018; public static int abc_action_bar_progress_bar_size = 0x7f070002; public static int abc_action_bar_stacked_max_height = 0x7f070019; public static int abc_action_bar_stacked_tab_max_width = 0x7f07001a; public static int abc_action_bar_subtitle_bottom_margin_material = 0x7f07001b; public static int abc_action_bar_subtitle_top_margin_material = 0x7f07001c; public static int abc_action_button_min_height_material = 0x7f07001d; public static int abc_action_button_min_width_material = 0x7f07001e; public static int abc_action_button_min_width_overflow_material = 0x7f07001f; public static int abc_alert_dialog_button_bar_height = 0x7f070000; public static int abc_button_inset_horizontal_material = 0x7f070020; public static int abc_button_inset_vertical_material = 0x7f070021; public static int abc_button_padding_horizontal_material = 0x7f070022; public static int abc_button_padding_vertical_material = 0x7f070023; public static int abc_cascading_menus_min_smallest_width = 0x7f070024; public static int abc_config_prefDialogWidth = 0x7f070005; public static int abc_control_corner_material = 0x7f070025; public static int abc_control_inset_material = 0x7f070026; public static int abc_control_padding_material = 0x7f070027; public static int abc_dialog_fixed_height_major = 0x7f070006; public static int abc_dialog_fixed_height_minor = 0x7f070007; public static int abc_dialog_fixed_width_major = 0x7f070008; public static int abc_dialog_fixed_width_minor = 0x7f070009; public static int abc_dialog_list_padding_bottom_no_buttons = 0x7f070028; public static int abc_dialog_list_padding_top_no_title = 0x7f070029; public static int abc_dialog_min_width_major = 0x7f07000a; public static int abc_dialog_min_width_minor = 0x7f07000b; public static int abc_dialog_padding_material = 0x7f07002a; public static int abc_dialog_padding_top_material = 0x7f07002b; public static int abc_dialog_title_divider_material = 0x7f07002c; public static int abc_disabled_alpha_material_dark = 0x7f07002d; public static int abc_disabled_alpha_material_light = 0x7f07002e; public static int abc_dropdownitem_icon_width = 0x7f07002f; public static int abc_dropdownitem_text_padding_left = 0x7f070030; public static int abc_dropdownitem_text_padding_right = 0x7f070031; public static int abc_edit_text_inset_bottom_material = 0x7f070032; public static int abc_edit_text_inset_horizontal_material = 0x7f070033; public static int abc_edit_text_inset_top_material = 0x7f070034; public static int abc_floating_window_z = 0x7f070035; public static int abc_list_item_padding_horizontal_material = 0x7f070036; public static int abc_panel_menu_list_width = 0x7f070037; public static int abc_progress_bar_height_material = 0x7f070038; public static int abc_search_view_preferred_height = 0x7f070039; public static int abc_search_view_preferred_width = 0x7f07003a; public static int abc_seekbar_track_background_height_material = 0x7f07003b; public static int abc_seekbar_track_progress_height_material = 0x7f07003c; public static int abc_select_dialog_padding_start_material = 0x7f07003d; public static int abc_switch_padding = 0x7f070011; public static int abc_text_size_body_1_material = 0x7f07003e; public static int abc_text_size_body_2_material = 0x7f07003f; public static int abc_text_size_button_material = 0x7f070040; public static int abc_text_size_caption_material = 0x7f070041; public static int abc_text_size_display_1_material = 0x7f070042; public static int abc_text_size_display_2_material = 0x7f070043; public static int abc_text_size_display_3_material = 0x7f070044; public static int abc_text_size_display_4_material = 0x7f070045; public static int abc_text_size_headline_material = 0x7f070046; public static int abc_text_size_large_material = 0x7f070047; public static int abc_text_size_medium_material = 0x7f070048; public static int abc_text_size_menu_header_material = 0x7f070049; public static int abc_text_size_menu_material = 0x7f07004a; public static int abc_text_size_small_material = 0x7f07004b; public static int abc_text_size_subhead_material = 0x7f07004c; public static int abc_text_size_subtitle_material_toolbar = 0x7f070003; public static int abc_text_size_title_material = 0x7f07004d; public static int abc_text_size_title_material_toolbar = 0x7f070004; public static int compat_button_inset_horizontal_material = 0x7f07004e; public static int compat_button_inset_vertical_material = 0x7f07004f; public static int compat_button_padding_horizontal_material = 0x7f070050; public static int compat_button_padding_vertical_material = 0x7f070051; public static int compat_control_corner_material = 0x7f070052; public static int disabled_alpha_material_dark = 0x7f070053; public static int disabled_alpha_material_light = 0x7f070054; public static int highlight_alpha_material_colored = 0x7f070055; public static int highlight_alpha_material_dark = 0x7f070056; public static int highlight_alpha_material_light = 0x7f070057; public static int hint_alpha_material_dark = 0x7f070058; public static int hint_alpha_material_light = 0x7f070059; public static int hint_pressed_alpha_material_dark = 0x7f07005a; public static int hint_pressed_alpha_material_light = 0x7f07005b; public static int notification_action_icon_size = 0x7f07005c; public static int notification_action_text_size = 0x7f07005d; public static int notification_big_circle_margin = 0x7f07005e; public static int notification_content_margin_start = 0x7f070012; public static int notification_large_icon_height = 0x7f07005f; public static int notification_large_icon_width = 0x7f070060; public static int notification_main_column_padding_top = 0x7f070013; public static int notification_media_narrow_margin = 0x7f070014; public static int notification_right_icon_size = 0x7f070061; public static int notification_right_side_padding_top = 0x7f070010; public static int notification_small_icon_background_padding = 0x7f070062; public static int notification_small_icon_size_as_large = 0x7f070063; public static int notification_subtext_size = 0x7f070064; public static int notification_top_pad = 0x7f070065; public static int notification_top_pad_large_text = 0x7f070066; public static int tooltip_corner_radius = 0x7f070067; public static int tooltip_horizontal_padding = 0x7f070068; public static int tooltip_margin = 0x7f070069; public static int tooltip_precise_anchor_extra_offset = 0x7f07006a; public static int tooltip_precise_anchor_threshold = 0x7f07006b; public static int tooltip_vertical_padding = 0x7f07006c; public static int tooltip_y_offset_non_touch = 0x7f07006d; public static int tooltip_y_offset_touch = 0x7f07006e; } public static final class drawable { public static int abc_ab_share_pack_mtrl_alpha = 0x7f020000; public static int abc_action_bar_item_background_material = 0x7f020001; public static int abc_btn_borderless_material = 0x7f020002; public static int abc_btn_check_material = 0x7f020003; public static int abc_btn_check_to_on_mtrl_000 = 0x7f020004; public static int abc_btn_check_to_on_mtrl_015 = 0x7f020005; public static int abc_btn_colored_material = 0x7f020006; public static int abc_btn_default_mtrl_shape = 0x7f020007; public static int abc_btn_radio_material = 0x7f020008; public static int abc_btn_radio_to_on_mtrl_000 = 0x7f020009; public static int abc_btn_radio_to_on_mtrl_015 = 0x7f02000a; public static int abc_btn_switch_to_on_mtrl_00001 = 0x7f02000b; public static int abc_btn_switch_to_on_mtrl_00012 = 0x7f02000c; public static int abc_cab_background_internal_bg = 0x7f02000d; public static int abc_cab_background_top_material = 0x7f02000e; public static int abc_cab_background_top_mtrl_alpha = 0x7f02000f; public static int abc_control_background_material = 0x7f020010; public static int abc_dialog_material_background = 0x7f020011; public static int abc_edit_text_material = 0x7f020012; public static int abc_ic_ab_back_material = 0x7f020013; public static int abc_ic_arrow_drop_right_black_24dp = 0x7f020014; public static int abc_ic_clear_material = 0x7f020015; public static int abc_ic_commit_search_api_mtrl_alpha = 0x7f020016; public static int abc_ic_go_search_api_material = 0x7f020017; public static int abc_ic_menu_copy_mtrl_am_alpha = 0x7f020018; public static int abc_ic_menu_cut_mtrl_alpha = 0x7f020019; public static int abc_ic_menu_overflow_material = 0x7f02001a; public static int abc_ic_menu_paste_mtrl_am_alpha = 0x7f02001b; public static int abc_ic_menu_selectall_mtrl_alpha = 0x7f02001c; public static int abc_ic_menu_share_mtrl_alpha = 0x7f02001d; public static int abc_ic_search_api_material = 0x7f02001e; public static int abc_ic_star_black_16dp = 0x7f02001f; public static int abc_ic_star_black_36dp = 0x7f020020; public static int abc_ic_star_black_48dp = 0x7f020021; public static int abc_ic_star_half_black_16dp = 0x7f020022; public static int abc_ic_star_half_black_36dp = 0x7f020023; public static int abc_ic_star_half_black_48dp = 0x7f020024; public static int abc_ic_voice_search_api_material = 0x7f020025; public static int abc_item_background_holo_dark = 0x7f020026; public static int abc_item_background_holo_light = 0x7f020027; public static int abc_list_divider_mtrl_alpha = 0x7f020028; public static int abc_list_focused_holo = 0x7f020029; public static int abc_list_longpressed_holo = 0x7f02002a; public static int abc_list_pressed_holo_dark = 0x7f02002b; public static int abc_list_pressed_holo_light = 0x7f02002c; public static int abc_list_selector_background_transition_holo_dark = 0x7f02002d; public static int abc_list_selector_background_transition_holo_light = 0x7f02002e; public static int abc_list_selector_disabled_holo_dark = 0x7f02002f; public static int abc_list_selector_disabled_holo_light = 0x7f020030; public static int abc_list_selector_holo_dark = 0x7f020031; public static int abc_list_selector_holo_light = 0x7f020032; public static int abc_menu_hardkey_panel_mtrl_mult = 0x7f020033; public static int abc_popup_background_mtrl_mult = 0x7f020034; public static int abc_ratingbar_indicator_material = 0x7f020035; public static int abc_ratingbar_material = 0x7f020036; public static int abc_ratingbar_small_material = 0x7f020037; public static int abc_scrubber_control_off_mtrl_alpha = 0x7f020038; public static int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f020039; public static int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f02003a; public static int abc_scrubber_primary_mtrl_alpha = 0x7f02003b; public static int abc_scrubber_track_mtrl_alpha = 0x7f02003c; public static int abc_seekbar_thumb_material = 0x7f02003d; public static int abc_seekbar_tick_mark_material = 0x7f02003e; public static int abc_seekbar_track_material = 0x7f02003f; public static int abc_spinner_mtrl_am_alpha = 0x7f020040; public static int abc_spinner_textfield_background_material = 0x7f020041; public static int abc_switch_thumb_material = 0x7f020042; public static int abc_switch_track_mtrl_alpha = 0x7f020043; public static int abc_tab_indicator_material = 0x7f020044; public static int abc_tab_indicator_mtrl_alpha = 0x7f020045; public static int abc_text_cursor_material = 0x7f020046; public static int abc_text_select_handle_left_mtrl_dark = 0x7f020047; public static int abc_text_select_handle_left_mtrl_light = 0x7f020048; public static int abc_text_select_handle_middle_mtrl_dark = 0x7f020049; public static int abc_text_select_handle_middle_mtrl_light = 0x7f02004a; public static int abc_text_select_handle_right_mtrl_dark = 0x7f02004b; public static int abc_text_select_handle_right_mtrl_light = 0x7f02004c; public static int abc_textfield_activated_mtrl_alpha = 0x7f02004d; public static int abc_textfield_default_mtrl_alpha = 0x7f02004e; public static int abc_textfield_search_activated_mtrl_alpha = 0x7f02004f; public static int abc_textfield_search_default_mtrl_alpha = 0x7f020050; public static int abc_textfield_search_material = 0x7f020051; public static int abc_vector_test = 0x7f020052; public static int notification_action_background = 0x7f020053; public static int notification_bg = 0x7f020054; public static int notification_bg_low = 0x7f020055; public static int notification_bg_low_normal = 0x7f020056; public static int notification_bg_low_pressed = 0x7f020057; public static int notification_bg_normal = 0x7f020058; public static int notification_bg_normal_pressed = 0x7f020059; public static int notification_icon_background = 0x7f02005a; public static int notification_template_icon_bg = 0x7f02005f; public static int notification_template_icon_low_bg = 0x7f020060; public static int notification_tile_bg = 0x7f02005b; public static int notify_panel_notification_icon_bg = 0x7f02005c; public static int tooltip_frame_dark = 0x7f02005d; public static int tooltip_frame_light = 0x7f02005e; } public static final class id { public static int ALT = 0x7f0b002f; public static int CTRL = 0x7f0b0030; public static int FUNCTION = 0x7f0b0031; public static int META = 0x7f0b0032; public static int SHIFT = 0x7f0b0033; public static int SYM = 0x7f0b0034; public static int action0 = 0x7f0b0071; public static int action_bar = 0x7f0b005e; public static int action_bar_activity_content = 0x7f0b0000; public static int action_bar_container = 0x7f0b005d; public static int action_bar_root = 0x7f0b0059; public static int action_bar_spinner = 0x7f0b0001; public static int action_bar_subtitle = 0x7f0b003d; public static int action_bar_title = 0x7f0b003c; public static int action_container = 0x7f0b006e; public static int action_context_bar = 0x7f0b005f; public static int action_divider = 0x7f0b0075; public static int action_image = 0x7f0b006f; public static int action_menu_divider = 0x7f0b0002; public static int action_menu_presenter = 0x7f0b0003; public static int action_mode_bar = 0x7f0b005b; public static int action_mode_bar_stub = 0x7f0b005a; public static int action_mode_close_button = 0x7f0b003e; public static int action_text = 0x7f0b0070; public static int actions = 0x7f0b007e; public static int activity_chooser_view_content = 0x7f0b003f; public static int add = 0x7f0b001d; public static int alertTitle = 0x7f0b0052; public static int always = 0x7f0b0035; public static int async = 0x7f0b0020; public static int beginning = 0x7f0b002c; public static int blocking = 0x7f0b0021; public static int bottom = 0x7f0b003a; public static int buttonPanel = 0x7f0b0045; public static int cancel_action = 0x7f0b0072; public static int checkbox = 0x7f0b0055; public static int chronometer = 0x7f0b007a; public static int collapseActionView = 0x7f0b0036; public static int contentPanel = 0x7f0b0048; public static int custom = 0x7f0b004f; public static int customPanel = 0x7f0b004e; public static int decor_content_parent = 0x7f0b005c; public static int default_activity_button = 0x7f0b0042; public static int disableHome = 0x7f0b0011; public static int edit_query = 0x7f0b0060; public static int end = 0x7f0b002d; public static int end_padder = 0x7f0b0080; public static int expand_activities_button = 0x7f0b0040; public static int expanded_menu = 0x7f0b0054; public static int forever = 0x7f0b0022; public static int home = 0x7f0b0004; public static int homeAsUp = 0x7f0b0012; public static int icon = 0x7f0b0044; public static int icon_group = 0x7f0b007f; public static int ifRoom = 0x7f0b0037; public static int image = 0x7f0b0041; public static int info = 0x7f0b007b; public static int italic = 0x7f0b0023; public static int line1 = 0x7f0b0005; public static int line3 = 0x7f0b0006; public static int listMode = 0x7f0b000e; public static int list_item = 0x7f0b0043; public static int media_actions = 0x7f0b0074; public static int message = 0x7f0b008c; public static int middle = 0x7f0b002e; public static int multiply = 0x7f0b0018; public static int never = 0x7f0b0038; public static int none = 0x7f0b0013; public static int normal = 0x7f0b000f; public static int notification_background = 0x7f0b007c; public static int notification_main_column = 0x7f0b0077; public static int notification_main_column_container = 0x7f0b0076; public static int parentPanel = 0x7f0b0047; public static int progress_circular = 0x7f0b0007; public static int progress_horizontal = 0x7f0b0008; public static int radio = 0x7f0b0057; public static int right_icon = 0x7f0b007d; public static int right_side = 0x7f0b0078; public static int screen = 0x7f0b0019; public static int scrollIndicatorDown = 0x7f0b004d; public static int scrollIndicatorUp = 0x7f0b0049; public static int scrollView = 0x7f0b004a; public static int search_badge = 0x7f0b0062; public static int search_bar = 0x7f0b0061; public static int search_button = 0x7f0b0063; public static int search_close_btn = 0x7f0b0068; public static int search_edit_frame = 0x7f0b0064; public static int search_go_btn = 0x7f0b006a; public static int search_mag_icon = 0x7f0b0065; public static int search_plate = 0x7f0b0066; public static int search_src_text = 0x7f0b0067; public static int search_voice_btn = 0x7f0b006b; public static int select_dialog_listview = 0x7f0b006c; public static int shortcut = 0x7f0b0056; public static int showCustom = 0x7f0b0014; public static int showHome = 0x7f0b0015; public static int showTitle = 0x7f0b0016; public static int spacer = 0x7f0b0046; public static int split_action_bar = 0x7f0b0009; public static int src_atop = 0x7f0b001a; public static int src_in = 0x7f0b001b; public static int src_over = 0x7f0b001c; public static int status_bar_latest_event_content = 0x7f0b0073; public static int submenuarrow = 0x7f0b0058; public static int submit_area = 0x7f0b0069; public static int tabMode = 0x7f0b0010; public static int text = 0x7f0b000a; public static int text2 = 0x7f0b000b; public static int textSpacerNoButtons = 0x7f0b004c; public static int textSpacerNoTitle = 0x7f0b004b; public static int time = 0x7f0b0079; public static int title = 0x7f0b000c; public static int titleDividerNoCustom = 0x7f0b0053; public static int title_template = 0x7f0b0051; public static int top = 0x7f0b003b; public static int topPanel = 0x7f0b0050; public static int uniform = 0x7f0b001e; public static int up = 0x7f0b000d; public static int useLogo = 0x7f0b0017; public static int withText = 0x7f0b0039; public static int wrap_content = 0x7f0b001f; } public static final class integer { public static int abc_config_activityDefaultDur = 0x7f0c0000; public static int abc_config_activityShortDur = 0x7f0c0001; public static int cancel_button_image_alpha = 0x7f0c0002; public static int config_tooltipAnimTime = 0x7f0c0003; public static int status_bar_notification_info_maxnum = 0x7f0c0004; } public static final class layout { public static int abc_action_bar_title_item = 0x7f030000; public static int abc_action_bar_up_container = 0x7f030001; public static int abc_action_bar_view_list_nav_layout = 0x7f030002; public static int abc_action_menu_item_layout = 0x7f030003; public static int abc_action_menu_layout = 0x7f030004; public static int abc_action_mode_bar = 0x7f030005; public static int abc_action_mode_close_item_material = 0x7f030006; public static int abc_activity_chooser_view = 0x7f030007; public static int abc_activity_chooser_view_list_item = 0x7f030008; public static int abc_alert_dialog_button_bar_material = 0x7f030009; public static int abc_alert_dialog_material = 0x7f03000a; public static int abc_alert_dialog_title_material = 0x7f03000b; public static int abc_dialog_title_material = 0x7f03000c; public static int abc_expanded_menu_layout = 0x7f03000d; public static int abc_list_menu_item_checkbox = 0x7f03000e; public static int abc_list_menu_item_icon = 0x7f03000f; public static int abc_list_menu_item_layout = 0x7f030010; public static int abc_list_menu_item_radio = 0x7f030011; public static int abc_popup_menu_header_item_layout = 0x7f030012; public static int abc_popup_menu_item_layout = 0x7f030013; public static int abc_screen_content_include = 0x7f030014; public static int abc_screen_simple = 0x7f030015; public static int abc_screen_simple_overlay_action_mode = 0x7f030016; public static int abc_screen_toolbar = 0x7f030017; public static int abc_search_dropdown_item_icons_2line = 0x7f030018; public static int abc_search_view = 0x7f030019; public static int abc_select_dialog_material = 0x7f03001a; public static int notification_action = 0x7f03001d; public static int notification_action_tombstone = 0x7f03001e; public static int notification_media_action = 0x7f03001f; public static int notification_media_cancel_action = 0x7f030020; public static int notification_template_big_media = 0x7f030021; public static int notification_template_big_media_custom = 0x7f030022; public static int notification_template_big_media_narrow = 0x7f030023; public static int notification_template_big_media_narrow_custom = 0x7f030024; public static int notification_template_custom_big = 0x7f030025; public static int notification_template_icon_group = 0x7f030026; public static int notification_template_lines_media = 0x7f030027; public static int notification_template_media = 0x7f030028; public static int notification_template_media_custom = 0x7f030029; public static int notification_template_part_chronometer = 0x7f03002a; public static int notification_template_part_time = 0x7f03002b; public static int select_dialog_item_material = 0x7f03002f; public static int select_dialog_multichoice_material = 0x7f030030; public static int select_dialog_singlechoice_material = 0x7f030031; public static int support_simple_spinner_dropdown_item = 0x7f030032; public static int tooltip = 0x7f030033; } public static final class string { public static int abc_action_bar_home_description = 0x7f060000; public static int abc_action_bar_home_description_format = 0x7f060001; public static int abc_action_bar_home_subtitle_description_format = 0x7f060002; public static int abc_action_bar_up_description = 0x7f060003; public static int abc_action_menu_overflow_description = 0x7f060004; public static int abc_action_mode_done = 0x7f060005; public static int abc_activity_chooser_view_see_all = 0x7f060006; public static int abc_activitychooserview_choose_application = 0x7f060007; public static int abc_capital_off = 0x7f060008; public static int abc_capital_on = 0x7f060009; public static int abc_font_family_body_1_material = 0x7f060015; public static int abc_font_family_body_2_material = 0x7f060016; public static int abc_font_family_button_material = 0x7f060017; public static int abc_font_family_caption_material = 0x7f060018; public static int abc_font_family_display_1_material = 0x7f060019; public static int abc_font_family_display_2_material = 0x7f06001a; public static int abc_font_family_display_3_material = 0x7f06001b; public static int abc_font_family_display_4_material = 0x7f06001c; public static int abc_font_family_headline_material = 0x7f06001d; public static int abc_font_family_menu_material = 0x7f06001e; public static int abc_font_family_subhead_material = 0x7f06001f; public static int abc_font_family_title_material = 0x7f060020; public static int abc_search_hint = 0x7f06000a; public static int abc_searchview_description_clear = 0x7f06000b; public static int abc_searchview_description_query = 0x7f06000c; public static int abc_searchview_description_search = 0x7f06000d; public static int abc_searchview_description_submit = 0x7f06000e; public static int abc_searchview_description_voice = 0x7f06000f; public static int abc_shareactionprovider_share_with = 0x7f060010; public static int abc_shareactionprovider_share_with_application = 0x7f060011; public static int abc_toolbar_collapse_description = 0x7f060012; public static int app_name = 0x7f060021; public static int search_menu_title = 0x7f060013; public static int status_bar_notification_info_overflow = 0x7f060014; } public static final class style { public static int AlertDialog_AppCompat = 0x7f0800a7; public static int AlertDialog_AppCompat_Light = 0x7f0800a8; public static int Animation_AppCompat_Dialog = 0x7f0800a9; public static int Animation_AppCompat_DropDownUp = 0x7f0800aa; public static int Animation_AppCompat_Tooltip = 0x7f0800ab; public static int Base_AlertDialog_AppCompat = 0x7f0800ad; public static int Base_AlertDialog_AppCompat_Light = 0x7f0800ae; public static int Base_Animation_AppCompat_Dialog = 0x7f0800af; public static int Base_Animation_AppCompat_DropDownUp = 0x7f0800b0; public static int Base_Animation_AppCompat_Tooltip = 0x7f0800b1; public static int Base_DialogWindowTitleBackground_AppCompat = 0x7f0800b3; public static int Base_DialogWindowTitle_AppCompat = 0x7f0800b2; public static int Base_TextAppearance_AppCompat = 0x7f080039; public static int Base_TextAppearance_AppCompat_Body1 = 0x7f08003a; public static int Base_TextAppearance_AppCompat_Body2 = 0x7f08003b; public static int Base_TextAppearance_AppCompat_Button = 0x7f080027; public static int Base_TextAppearance_AppCompat_Caption = 0x7f08003c; public static int Base_TextAppearance_AppCompat_Display1 = 0x7f08003d; public static int Base_TextAppearance_AppCompat_Display2 = 0x7f08003e; public static int Base_TextAppearance_AppCompat_Display3 = 0x7f08003f; public static int Base_TextAppearance_AppCompat_Display4 = 0x7f080040; public static int Base_TextAppearance_AppCompat_Headline = 0x7f080041; public static int Base_TextAppearance_AppCompat_Inverse = 0x7f08000b; public static int Base_TextAppearance_AppCompat_Large = 0x7f080042; public static int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f08000c; public static int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f080043; public static int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f080044; public static int Base_TextAppearance_AppCompat_Medium = 0x7f080045; public static int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f08000d; public static int Base_TextAppearance_AppCompat_Menu = 0x7f080046; public static int Base_TextAppearance_AppCompat_SearchResult = 0x7f0800b4; public static int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f080047; public static int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f080048; public static int Base_TextAppearance_AppCompat_Small = 0x7f080049; public static int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f08000e; public static int Base_TextAppearance_AppCompat_Subhead = 0x7f08004a; public static int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f08000f; public static int Base_TextAppearance_AppCompat_Title = 0x7f08004b; public static int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f080010; public static int Base_TextAppearance_AppCompat_Tooltip = 0x7f0800b5; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f080098; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f08004c; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f08004d; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f08004e; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f08004f; public static int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f080050; public static int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f080051; public static int Base_TextAppearance_AppCompat_Widget_Button = 0x7f080052; public static int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f08009f; public static int Base_TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0800a0; public static int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f080099; public static int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0800b6; public static int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f080053; public static int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f080054; public static int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f080055; public static int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f080056; public static int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f080057; public static int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0800b7; public static int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f080058; public static int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f080059; public static int Base_ThemeOverlay_AppCompat = 0x7f0800bc; public static int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0800bd; public static int Base_ThemeOverlay_AppCompat_Dark = 0x7f0800be; public static int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0800bf; public static int Base_ThemeOverlay_AppCompat_Dialog = 0x7f080017; public static int Base_ThemeOverlay_AppCompat_Dialog_Alert = 0x7f080018; public static int Base_ThemeOverlay_AppCompat_Light = 0x7f0800c0; public static int Base_Theme_AppCompat = 0x7f08005a; public static int Base_Theme_AppCompat_CompactMenu = 0x7f0800b8; public static int Base_Theme_AppCompat_Dialog = 0x7f080011; public static int Base_Theme_AppCompat_DialogWhenLarge = 0x7f080001; public static int Base_Theme_AppCompat_Dialog_Alert = 0x7f080012; public static int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0800b9; public static int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f080013; public static int Base_Theme_AppCompat_Light = 0x7f08005b; public static int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0800ba; public static int Base_Theme_AppCompat_Light_Dialog = 0x7f080014; public static int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f080002; public static int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f080015; public static int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0800bb; public static int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f080016; public static int Base_V11_ThemeOverlay_AppCompat_Dialog = 0x7f08001b; public static int Base_V11_Theme_AppCompat_Dialog = 0x7f080019; public static int Base_V11_Theme_AppCompat_Light_Dialog = 0x7f08001a; public static int Base_V12_Widget_AppCompat_AutoCompleteTextView = 0x7f080023; public static int Base_V12_Widget_AppCompat_EditText = 0x7f080024; public static int Base_V21_ThemeOverlay_AppCompat_Dialog = 0x7f080060; public static int Base_V21_Theme_AppCompat = 0x7f08005c; public static int Base_V21_Theme_AppCompat_Dialog = 0x7f08005d; public static int Base_V21_Theme_AppCompat_Light = 0x7f08005e; public static int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f08005f; public static int Base_V22_Theme_AppCompat = 0x7f080096; public static int Base_V22_Theme_AppCompat_Light = 0x7f080097; public static int Base_V23_Theme_AppCompat = 0x7f08009a; public static int Base_V23_Theme_AppCompat_Light = 0x7f08009b; public static int Base_V26_Theme_AppCompat = 0x7f0800a3; public static int Base_V26_Theme_AppCompat_Light = 0x7f0800a4; public static int Base_V26_Widget_AppCompat_Toolbar = 0x7f0800a5; public static int Base_V7_ThemeOverlay_AppCompat_Dialog = 0x7f0800c5; public static int Base_V7_Theme_AppCompat = 0x7f0800c1; public static int Base_V7_Theme_AppCompat_Dialog = 0x7f0800c2; public static int Base_V7_Theme_AppCompat_Light = 0x7f0800c3; public static int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0800c4; public static int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0800c6; public static int Base_V7_Widget_AppCompat_EditText = 0x7f0800c7; public static int Base_V7_Widget_AppCompat_Toolbar = 0x7f0800c8; public static int Base_Widget_AppCompat_ActionBar = 0x7f0800c9; public static int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0800ca; public static int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0800cb; public static int Base_Widget_AppCompat_ActionBar_TabText = 0x7f080061; public static int Base_Widget_AppCompat_ActionBar_TabView = 0x7f080062; public static int Base_Widget_AppCompat_ActionButton = 0x7f080063; public static int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f080064; public static int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f080065; public static int Base_Widget_AppCompat_ActionMode = 0x7f0800cc; public static int Base_Widget_AppCompat_ActivityChooserView = 0x7f0800cd; public static int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f080025; public static int Base_Widget_AppCompat_Button = 0x7f080066; public static int Base_Widget_AppCompat_ButtonBar = 0x7f08006a; public static int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0800cf; public static int Base_Widget_AppCompat_Button_Borderless = 0x7f080067; public static int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f080068; public static int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0800ce; public static int Base_Widget_AppCompat_Button_Colored = 0x7f08009c; public static int Base_Widget_AppCompat_Button_Small = 0x7f080069; public static int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f08006b; public static int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f08006c; public static int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0800d0; public static int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f080000; public static int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0800d1; public static int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f08006d; public static int Base_Widget_AppCompat_EditText = 0x7f080026; public static int Base_Widget_AppCompat_ImageButton = 0x7f08006e; public static int Base_Widget_AppCompat_Light_ActionBar = 0x7f0800d2; public static int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0800d3; public static int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0800d4; public static int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f08006f; public static int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f080070; public static int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f080071; public static int Base_Widget_AppCompat_Light_PopupMenu = 0x7f080072; public static int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f080073; public static int Base_Widget_AppCompat_ListMenuView = 0x7f0800d5; public static int Base_Widget_AppCompat_ListPopupWindow = 0x7f080074; public static int Base_Widget_AppCompat_ListView = 0x7f080075; public static int Base_Widget_AppCompat_ListView_DropDown = 0x7f080076; public static int Base_Widget_AppCompat_ListView_Menu = 0x7f080077; public static int Base_Widget_AppCompat_PopupMenu = 0x7f080078; public static int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f080079; public static int Base_Widget_AppCompat_PopupWindow = 0x7f0800d6; public static int Base_Widget_AppCompat_ProgressBar = 0x7f08001c; public static int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f08001d; public static int Base_Widget_AppCompat_RatingBar = 0x7f08007a; public static int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f08009d; public static int Base_Widget_AppCompat_RatingBar_Small = 0x7f08009e; public static int Base_Widget_AppCompat_SearchView = 0x7f0800d7; public static int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0800d8; public static int Base_Widget_AppCompat_SeekBar = 0x7f08007b; public static int Base_Widget_AppCompat_SeekBar_Discrete = 0x7f0800d9; public static int Base_Widget_AppCompat_Spinner = 0x7f08007c; public static int Base_Widget_AppCompat_Spinner_Underlined = 0x7f080003; public static int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f08007d; public static int Base_Widget_AppCompat_Toolbar = 0x7f0800a6; public static int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f08007e; public static int Platform_AppCompat = 0x7f08001e; public static int Platform_AppCompat_Light = 0x7f08001f; public static int Platform_ThemeOverlay_AppCompat = 0x7f08007f; public static int Platform_ThemeOverlay_AppCompat_Dark = 0x7f080080; public static int Platform_ThemeOverlay_AppCompat_Light = 0x7f080081; public static int Platform_V11_AppCompat = 0x7f080020; public static int Platform_V11_AppCompat_Light = 0x7f080021; public static int Platform_V14_AppCompat = 0x7f080028; public static int Platform_V14_AppCompat_Light = 0x7f080029; public static int Platform_V21_AppCompat = 0x7f080082; public static int Platform_V21_AppCompat_Light = 0x7f080083; public static int Platform_V25_AppCompat = 0x7f0800a1; public static int Platform_V25_AppCompat_Light = 0x7f0800a2; public static int Platform_Widget_AppCompat_Spinner = 0x7f080022; public static int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f08002b; public static int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f08002c; public static int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f08002d; public static int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f08002e; public static int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f08002f; public static int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f080030; public static int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f080036; public static int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f080031; public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f080032; public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f080033; public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f080034; public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f080035; public static int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f080037; public static int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f080038; public static int TextAppearance_AppCompat = 0x7f0800e0; public static int TextAppearance_AppCompat_Body1 = 0x7f0800e1; public static int TextAppearance_AppCompat_Body2 = 0x7f0800e2; public static int TextAppearance_AppCompat_Button = 0x7f0800e3; public static int TextAppearance_AppCompat_Caption = 0x7f0800e4; public static int TextAppearance_AppCompat_Display1 = 0x7f0800e5; public static int TextAppearance_AppCompat_Display2 = 0x7f0800e6; public static int TextAppearance_AppCompat_Display3 = 0x7f0800e7; public static int TextAppearance_AppCompat_Display4 = 0x7f0800e8; public static int TextAppearance_AppCompat_Headline = 0x7f0800e9; public static int TextAppearance_AppCompat_Inverse = 0x7f0800ea; public static int TextAppearance_AppCompat_Large = 0x7f0800eb; public static int TextAppearance_AppCompat_Large_Inverse = 0x7f0800ec; public static int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0800ed; public static int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0800ee; public static int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0800ef; public static int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0800f0; public static int TextAppearance_AppCompat_Medium = 0x7f0800f1; public static int TextAppearance_AppCompat_Medium_Inverse = 0x7f0800f2; public static int TextAppearance_AppCompat_Menu = 0x7f0800f3; public static int TextAppearance_AppCompat_Notification = 0x7f080084; public static int TextAppearance_AppCompat_Notification_Info = 0x7f080085; public static int TextAppearance_AppCompat_Notification_Info_Media = 0x7f080086; public static int TextAppearance_AppCompat_Notification_Line2 = 0x7f0800f4; public static int TextAppearance_AppCompat_Notification_Line2_Media = 0x7f0800f5; public static int TextAppearance_AppCompat_Notification_Media = 0x7f080087; public static int TextAppearance_AppCompat_Notification_Time = 0x7f080088; public static int TextAppearance_AppCompat_Notification_Time_Media = 0x7f080089; public static int TextAppearance_AppCompat_Notification_Title = 0x7f08008a; public static int TextAppearance_AppCompat_Notification_Title_Media = 0x7f08008b; public static int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0800f6; public static int TextAppearance_AppCompat_SearchResult_Title = 0x7f0800f7; public static int TextAppearance_AppCompat_Small = 0x7f0800f8; public static int TextAppearance_AppCompat_Small_Inverse = 0x7f0800f9; public static int TextAppearance_AppCompat_Subhead = 0x7f0800fa; public static int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0800fb; public static int TextAppearance_AppCompat_Title = 0x7f0800fc; public static int TextAppearance_AppCompat_Title_Inverse = 0x7f0800fd; public static int TextAppearance_AppCompat_Tooltip = 0x7f08002a; public static int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0800fe; public static int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0800ff; public static int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f080100; public static int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f080101; public static int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f080102; public static int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f080103; public static int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f080104; public static int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f080105; public static int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f080106; public static int TextAppearance_AppCompat_Widget_Button = 0x7f080107; public static int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f080108; public static int TextAppearance_AppCompat_Widget_Button_Colored = 0x7f080109; public static int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f08010a; public static int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f08010b; public static int TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f08010c; public static int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f08010d; public static int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f08010e; public static int TextAppearance_AppCompat_Widget_Switch = 0x7f08010f; public static int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f080110; public static int TextAppearance_Compat_Notification = 0x7f08008c; public static int TextAppearance_Compat_Notification_Info = 0x7f08008d; public static int TextAppearance_Compat_Notification_Info_Media = 0x7f08008e; public static int TextAppearance_Compat_Notification_Line2 = 0x7f080111; public static int TextAppearance_Compat_Notification_Line2_Media = 0x7f080112; public static int TextAppearance_Compat_Notification_Media = 0x7f08008f; public static int TextAppearance_Compat_Notification_Time = 0x7f080090; public static int TextAppearance_Compat_Notification_Time_Media = 0x7f080091; public static int TextAppearance_Compat_Notification_Title = 0x7f080092; public static int TextAppearance_Compat_Notification_Title_Media = 0x7f080093; public static int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f080113; public static int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f080114; public static int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f080115; public static int ThemeOverlay_AppCompat = 0x7f08012c; public static int ThemeOverlay_AppCompat_ActionBar = 0x7f08012d; public static int ThemeOverlay_AppCompat_Dark = 0x7f08012e; public static int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f08012f; public static int ThemeOverlay_AppCompat_Dialog = 0x7f080130; public static int ThemeOverlay_AppCompat_Dialog_Alert = 0x7f080131; public static int ThemeOverlay_AppCompat_Light = 0x7f080132; public static int Theme_AppCompat = 0x7f080117; public static int Theme_AppCompat_CompactMenu = 0x7f080118; public static int Theme_AppCompat_DayNight = 0x7f080004; public static int Theme_AppCompat_DayNight_DarkActionBar = 0x7f080005; public static int Theme_AppCompat_DayNight_Dialog = 0x7f080006; public static int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f080009; public static int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f080007; public static int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f080008; public static int Theme_AppCompat_DayNight_NoActionBar = 0x7f08000a; public static int Theme_AppCompat_Dialog = 0x7f080119; public static int Theme_AppCompat_DialogWhenLarge = 0x7f08011c; public static int Theme_AppCompat_Dialog_Alert = 0x7f08011a; public static int Theme_AppCompat_Dialog_MinWidth = 0x7f08011b; public static int Theme_AppCompat_Light = 0x7f08011d; public static int Theme_AppCompat_Light_DarkActionBar = 0x7f08011e; public static int Theme_AppCompat_Light_Dialog = 0x7f08011f; public static int Theme_AppCompat_Light_DialogWhenLarge = 0x7f080122; public static int Theme_AppCompat_Light_Dialog_Alert = 0x7f080120; public static int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f080121; public static int Theme_AppCompat_Light_NoActionBar = 0x7f080123; public static int Theme_AppCompat_NoActionBar = 0x7f080124; public static int Widget_AppCompat_ActionBar = 0x7f080133; public static int Widget_AppCompat_ActionBar_Solid = 0x7f080134; public static int Widget_AppCompat_ActionBar_TabBar = 0x7f080135; public static int Widget_AppCompat_ActionBar_TabText = 0x7f080136; public static int Widget_AppCompat_ActionBar_TabView = 0x7f080137; public static int Widget_AppCompat_ActionButton = 0x7f080138; public static int Widget_AppCompat_ActionButton_CloseMode = 0x7f080139; public static int Widget_AppCompat_ActionButton_Overflow = 0x7f08013a; public static int Widget_AppCompat_ActionMode = 0x7f08013b; public static int Widget_AppCompat_ActivityChooserView = 0x7f08013c; public static int Widget_AppCompat_AutoCompleteTextView = 0x7f08013d; public static int Widget_AppCompat_Button = 0x7f08013e; public static int Widget_AppCompat_ButtonBar = 0x7f080144; public static int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f080145; public static int Widget_AppCompat_Button_Borderless = 0x7f08013f; public static int Widget_AppCompat_Button_Borderless_Colored = 0x7f080140; public static int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f080141; public static int Widget_AppCompat_Button_Colored = 0x7f080142; public static int Widget_AppCompat_Button_Small = 0x7f080143; public static int Widget_AppCompat_CompoundButton_CheckBox = 0x7f080146; public static int Widget_AppCompat_CompoundButton_RadioButton = 0x7f080147; public static int Widget_AppCompat_CompoundButton_Switch = 0x7f080148; public static int Widget_AppCompat_DrawerArrowToggle = 0x7f080149; public static int Widget_AppCompat_DropDownItem_Spinner = 0x7f08014a; public static int Widget_AppCompat_EditText = 0x7f08014b; public static int Widget_AppCompat_ImageButton = 0x7f08014c; public static int Widget_AppCompat_Light_ActionBar = 0x7f08014d; public static int Widget_AppCompat_Light_ActionBar_Solid = 0x7f08014e; public static int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f08014f; public static int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f080150; public static int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f080151; public static int Widget_AppCompat_Light_ActionBar_TabText = 0x7f080152; public static int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f080153; public static int Widget_AppCompat_Light_ActionBar_TabView = 0x7f080154; public static int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f080155; public static int Widget_AppCompat_Light_ActionButton = 0x7f080156; public static int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f080157; public static int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f080158; public static int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f080159; public static int Widget_AppCompat_Light_ActivityChooserView = 0x7f08015a; public static int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f08015b; public static int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f08015c; public static int Widget_AppCompat_Light_ListPopupWindow = 0x7f08015d; public static int Widget_AppCompat_Light_ListView_DropDown = 0x7f08015e; public static int Widget_AppCompat_Light_PopupMenu = 0x7f08015f; public static int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f080160; public static int Widget_AppCompat_Light_SearchView = 0x7f080161; public static int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f080162; public static int Widget_AppCompat_ListMenuView = 0x7f080163; public static int Widget_AppCompat_ListPopupWindow = 0x7f080164; public static int Widget_AppCompat_ListView = 0x7f080165; public static int Widget_AppCompat_ListView_DropDown = 0x7f080166; public static int Widget_AppCompat_ListView_Menu = 0x7f080167; public static int Widget_AppCompat_PopupMenu = 0x7f080168; public static int Widget_AppCompat_PopupMenu_Overflow = 0x7f080169; public static int Widget_AppCompat_PopupWindow = 0x7f08016a; public static int Widget_AppCompat_ProgressBar = 0x7f08016b; public static int Widget_AppCompat_ProgressBar_Horizontal = 0x7f08016c; public static int Widget_AppCompat_RatingBar = 0x7f08016d; public static int Widget_AppCompat_RatingBar_Indicator = 0x7f08016e; public static int Widget_AppCompat_RatingBar_Small = 0x7f08016f; public static int Widget_AppCompat_SearchView = 0x7f080170; public static int Widget_AppCompat_SearchView_ActionBar = 0x7f080171; public static int Widget_AppCompat_SeekBar = 0x7f080172; public static int Widget_AppCompat_SeekBar_Discrete = 0x7f080173; public static int Widget_AppCompat_Spinner = 0x7f080174; public static int Widget_AppCompat_Spinner_DropDown = 0x7f080175; public static int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f080176; public static int Widget_AppCompat_Spinner_Underlined = 0x7f080177; public static int Widget_AppCompat_TextView_SpinnerItem = 0x7f080178; public static int Widget_AppCompat_Toolbar = 0x7f080179; public static int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f08017a; public static int Widget_Compat_NotificationActionContainer = 0x7f080094; public static int Widget_Compat_NotificationActionText = 0x7f080095; } public static final class styleable { public static int[] ActionBar = { 0x7f010001, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f01001d, 0x7f010063 }; public static int[] ActionBarLayout = { 0x010100b3 }; public static int ActionBarLayout_android_layout_gravity = 0; public static int ActionBar_background = 10; public static int ActionBar_backgroundSplit = 12; public static int ActionBar_backgroundStacked = 11; public static int ActionBar_contentInsetEnd = 21; public static int ActionBar_contentInsetEndWithActions = 25; public static int ActionBar_contentInsetLeft = 22; public static int ActionBar_contentInsetRight = 23; public static int ActionBar_contentInsetStart = 20; public static int ActionBar_contentInsetStartWithNavigation = 24; public static int ActionBar_customNavigationLayout = 13; public static int ActionBar_displayOptions = 3; public static int ActionBar_divider = 9; public static int ActionBar_elevation = 26; public static int ActionBar_height = 0; public static int ActionBar_hideOnContentScroll = 19; public static int ActionBar_homeAsUpIndicator = 28; public static int ActionBar_homeLayout = 14; public static int ActionBar_icon = 7; public static int ActionBar_indeterminateProgressStyle = 16; public static int ActionBar_itemPadding = 18; public static int ActionBar_logo = 8; public static int ActionBar_navigationMode = 2; public static int ActionBar_popupTheme = 27; public static int ActionBar_progressBarPadding = 17; public static int ActionBar_progressBarStyle = 15; public static int ActionBar_subtitle = 4; public static int ActionBar_subtitleTextStyle = 6; public static int ActionBar_title = 1; public static int ActionBar_titleTextStyle = 5; public static int[] ActionMenuItemView = { 0x0101013f }; public static int ActionMenuItemView_android_minWidth = 0; public static int[] ActionMenuView = { }; public static int[] ActionMode = { 0x7f010001, 0x7f010007, 0x7f010008, 0x7f01000c, 0x7f01000e, 0x7f01001e }; public static int ActionMode_background = 3; public static int ActionMode_backgroundSplit = 4; public static int ActionMode_closeItemLayout = 5; public static int ActionMode_height = 0; public static int ActionMode_subtitleTextStyle = 2; public static int ActionMode_titleTextStyle = 1; public static int[] ActivityChooserView = { 0x7f01001f, 0x7f010020 }; public static int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; public static int ActivityChooserView_initialActivityCount = 0; public static int[] AlertDialog = { 0x010100f2, 0x7f010021, 0x7f010022, 0x7f010023, 0x7f010024, 0x7f010025, 0x7f010026 }; public static int AlertDialog_android_layout = 0; public static int AlertDialog_buttonPanelSideLayout = 1; public static int AlertDialog_listItemLayout = 5; public static int AlertDialog_listLayout = 2; public static int AlertDialog_multiChoiceItemLayout = 3; public static int AlertDialog_showTitle = 6; public static int AlertDialog_singleChoiceItemLayout = 4; public static int[] AppCompatImageView = { 0x01010119, 0x7f010027, 0x7f010028, 0x7f010029 }; public static int AppCompatImageView_android_src = 0; public static int AppCompatImageView_srcCompat = 1; public static int AppCompatImageView_tint = 2; public static int AppCompatImageView_tintMode = 3; public static int[] AppCompatSeekBar = { 0x01010142, 0x7f01002a, 0x7f01002b, 0x7f01002c }; public static int AppCompatSeekBar_android_thumb = 0; public static int AppCompatSeekBar_tickMark = 1; public static int AppCompatSeekBar_tickMarkTint = 2; public static int AppCompatSeekBar_tickMarkTintMode = 3; public static int[] AppCompatTextHelper = { 0x01010034, 0x0101016d, 0x0101016e, 0x0101016f, 0x01010170, 0x01010392, 0x01010393 }; public static int AppCompatTextHelper_android_drawableBottom = 2; public static int AppCompatTextHelper_android_drawableEnd = 6; public static int AppCompatTextHelper_android_drawableLeft = 3; public static int AppCompatTextHelper_android_drawableRight = 4; public static int AppCompatTextHelper_android_drawableStart = 5; public static int AppCompatTextHelper_android_drawableTop = 1; public static int AppCompatTextHelper_android_textAppearance = 0; public static int[] AppCompatTextView = { 0x01010034, 0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033 }; public static int AppCompatTextView_android_textAppearance = 0; public static int AppCompatTextView_autoSizeMaxTextSize = 6; public static int AppCompatTextView_autoSizeMinTextSize = 5; public static int AppCompatTextView_autoSizePresetSizes = 4; public static int AppCompatTextView_autoSizeStepGranularity = 3; public static int AppCompatTextView_autoSizeTextType = 2; public static int AppCompatTextView_fontFamily = 7; public static int AppCompatTextView_textAllCaps = 1; public static int[] AppCompatTheme = { 0x01010057, 0x010100ae, 0x7f010034, 0x7f010035, 0x7f010036, 0x7f010037, 0x7f010038, 0x7f010039, 0x7f01003a, 0x7f01003b, 0x7f01003c, 0x7f01003d, 0x7f01003e, 0x7f01003f, 0x7f010040, 0x7f010041, 0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045, 0x7f010046, 0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050, 0x7f010051, 0x7f010052, 0x7f010053, 0x7f010054, 0x7f010055, 0x7f010056, 0x7f010057, 0x7f010058, 0x7f010059, 0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d, 0x7f01005e, 0x7f01005f, 0x7f010060, 0x7f010061, 0x7f010062, 0x7f010063, 0x7f010064, 0x7f010065, 0x7f010066, 0x7f010067, 0x7f010068, 0x7f010069, 0x7f01006a, 0x7f01006b, 0x7f01006c, 0x7f01006d, 0x7f01006e, 0x7f01006f, 0x7f010070, 0x7f010071, 0x7f010072, 0x7f010073, 0x7f010074, 0x7f010075, 0x7f010076, 0x7f010077, 0x7f010078, 0x7f010079, 0x7f01007a, 0x7f01007b, 0x7f01007c, 0x7f01007d, 0x7f01007e, 0x7f01007f, 0x7f010080, 0x7f010081, 0x7f010082, 0x7f010083, 0x7f010084, 0x7f010085, 0x7f010086, 0x7f010087, 0x7f010088, 0x7f010089, 0x7f01008a, 0x7f01008b, 0x7f01008c, 0x7f01008d, 0x7f01008e, 0x7f01008f, 0x7f010090, 0x7f010091, 0x7f010092, 0x7f010093, 0x7f010094, 0x7f010095, 0x7f010096, 0x7f010097, 0x7f010098, 0x7f010099, 0x7f01009a, 0x7f01009b, 0x7f01009c, 0x7f01009d, 0x7f01009e, 0x7f01009f, 0x7f0100a0, 0x7f0100a1, 0x7f0100a2, 0x7f0100a3, 0x7f0100a4, 0x7f0100a5, 0x7f0100a6, 0x7f0100a7, 0x7f0100a8 }; public static int AppCompatTheme_actionBarDivider = 23; public static int AppCompatTheme_actionBarItemBackground = 24; public static int AppCompatTheme_actionBarPopupTheme = 17; public static int AppCompatTheme_actionBarSize = 22; public static int AppCompatTheme_actionBarSplitStyle = 19; public static int AppCompatTheme_actionBarStyle = 18; public static int AppCompatTheme_actionBarTabBarStyle = 13; public static int AppCompatTheme_actionBarTabStyle = 12; public static int AppCompatTheme_actionBarTabTextStyle = 14; public static int AppCompatTheme_actionBarTheme = 20; public static int AppCompatTheme_actionBarWidgetTheme = 21; public static int AppCompatTheme_actionButtonStyle = 50; public static int AppCompatTheme_actionDropDownStyle = 46; public static int AppCompatTheme_actionMenuTextAppearance = 25; public static int AppCompatTheme_actionMenuTextColor = 26; public static int AppCompatTheme_actionModeBackground = 29; public static int AppCompatTheme_actionModeCloseButtonStyle = 28; public static int AppCompatTheme_actionModeCloseDrawable = 31; public static int AppCompatTheme_actionModeCopyDrawable = 33; public static int AppCompatTheme_actionModeCutDrawable = 32; public static int AppCompatTheme_actionModeFindDrawable = 37; public static int AppCompatTheme_actionModePasteDrawable = 34; public static int AppCompatTheme_actionModePopupWindowStyle = 39; public static int AppCompatTheme_actionModeSelectAllDrawable = 35; public static int AppCompatTheme_actionModeShareDrawable = 36; public static int AppCompatTheme_actionModeSplitBackground = 30; public static int AppCompatTheme_actionModeStyle = 27; public static int AppCompatTheme_actionModeWebSearchDrawable = 38; public static int AppCompatTheme_actionOverflowButtonStyle = 15; public static int AppCompatTheme_actionOverflowMenuStyle = 16; public static int AppCompatTheme_activityChooserViewStyle = 58; public static int AppCompatTheme_alertDialogButtonGroupStyle = 95; public static int AppCompatTheme_alertDialogCenterButtons = 96; public static int AppCompatTheme_alertDialogStyle = 94; public static int AppCompatTheme_alertDialogTheme = 97; public static int AppCompatTheme_android_windowAnimationStyle = 1; public static int AppCompatTheme_android_windowIsFloating = 0; public static int AppCompatTheme_autoCompleteTextViewStyle = 102; public static int AppCompatTheme_borderlessButtonStyle = 55; public static int AppCompatTheme_buttonBarButtonStyle = 52; public static int AppCompatTheme_buttonBarNegativeButtonStyle = 100; public static int AppCompatTheme_buttonBarNeutralButtonStyle = 101; public static int AppCompatTheme_buttonBarPositiveButtonStyle = 99; public static int AppCompatTheme_buttonBarStyle = 51; public static int AppCompatTheme_buttonStyle = 103; public static int AppCompatTheme_buttonStyleSmall = 104; public static int AppCompatTheme_checkboxStyle = 105; public static int AppCompatTheme_checkedTextViewStyle = 106; public static int AppCompatTheme_colorAccent = 86; public static int AppCompatTheme_colorBackgroundFloating = 93; public static int AppCompatTheme_colorButtonNormal = 90; public static int AppCompatTheme_colorControlActivated = 88; public static int AppCompatTheme_colorControlHighlight = 89; public static int AppCompatTheme_colorControlNormal = 87; public static int AppCompatTheme_colorError = 118; public static int AppCompatTheme_colorPrimary = 84; public static int AppCompatTheme_colorPrimaryDark = 85; public static int AppCompatTheme_colorSwitchThumbNormal = 91; public static int AppCompatTheme_controlBackground = 92; public static int AppCompatTheme_dialogPreferredPadding = 44; public static int AppCompatTheme_dialogTheme = 43; public static int AppCompatTheme_dividerHorizontal = 57; public static int AppCompatTheme_dividerVertical = 56; public static int AppCompatTheme_dropDownListViewStyle = 75; public static int AppCompatTheme_dropdownListPreferredItemHeight = 47; public static int AppCompatTheme_editTextBackground = 64; public static int AppCompatTheme_editTextColor = 63; public static int AppCompatTheme_editTextStyle = 107; public static int AppCompatTheme_homeAsUpIndicator = 49; public static int AppCompatTheme_imageButtonStyle = 65; public static int AppCompatTheme_listChoiceBackgroundIndicator = 83; public static int AppCompatTheme_listDividerAlertDialog = 45; public static int AppCompatTheme_listMenuViewStyle = 115; public static int AppCompatTheme_listPopupWindowStyle = 76; public static int AppCompatTheme_listPreferredItemHeight = 70; public static int AppCompatTheme_listPreferredItemHeightLarge = 72; public static int AppCompatTheme_listPreferredItemHeightSmall = 71; public static int AppCompatTheme_listPreferredItemPaddingLeft = 73; public static int AppCompatTheme_listPreferredItemPaddingRight = 74; public static int AppCompatTheme_panelBackground = 80; public static int AppCompatTheme_panelMenuListTheme = 82; public static int AppCompatTheme_panelMenuListWidth = 81; public static int AppCompatTheme_popupMenuStyle = 61; public static int AppCompatTheme_popupWindowStyle = 62; public static int AppCompatTheme_radioButtonStyle = 108; public static int AppCompatTheme_ratingBarStyle = 109; public static int AppCompatTheme_ratingBarStyleIndicator = 110; public static int AppCompatTheme_ratingBarStyleSmall = 111; public static int AppCompatTheme_searchViewStyle = 69; public static int AppCompatTheme_seekBarStyle = 112; public static int AppCompatTheme_selectableItemBackground = 53; public static int AppCompatTheme_selectableItemBackgroundBorderless = 54; public static int AppCompatTheme_spinnerDropDownItemStyle = 48; public static int AppCompatTheme_spinnerStyle = 113; public static int AppCompatTheme_switchStyle = 114; public static int AppCompatTheme_textAppearanceLargePopupMenu = 40; public static int AppCompatTheme_textAppearanceListItem = 77; public static int AppCompatTheme_textAppearanceListItemSecondary = 78; public static int AppCompatTheme_textAppearanceListItemSmall = 79; public static int AppCompatTheme_textAppearancePopupMenuHeader = 42; public static int AppCompatTheme_textAppearanceSearchResultSubtitle = 67; public static int AppCompatTheme_textAppearanceSearchResultTitle = 66; public static int AppCompatTheme_textAppearanceSmallPopupMenu = 41; public static int AppCompatTheme_textColorAlertDialogListItem = 98; public static int AppCompatTheme_textColorSearchUrl = 68; public static int AppCompatTheme_toolbarNavigationButtonStyle = 60; public static int AppCompatTheme_toolbarStyle = 59; public static int AppCompatTheme_tooltipForegroundColor = 117; public static int AppCompatTheme_tooltipFrameBackground = 116; public static int AppCompatTheme_windowActionBar = 2; public static int AppCompatTheme_windowActionBarOverlay = 4; public static int AppCompatTheme_windowActionModeOverlay = 5; public static int AppCompatTheme_windowFixedHeightMajor = 9; public static int AppCompatTheme_windowFixedHeightMinor = 7; public static int AppCompatTheme_windowFixedWidthMajor = 6; public static int AppCompatTheme_windowFixedWidthMinor = 8; public static int AppCompatTheme_windowMinWidthMajor = 10; public static int AppCompatTheme_windowMinWidthMinor = 11; public static int AppCompatTheme_windowNoTitle = 3; public static int[] ButtonBarLayout = { 0x7f0100a9 }; public static int ButtonBarLayout_allowStacking = 0; public static int[] ColorStateListItem = { 0x010101a5, 0x0101031f, 0x7f0100aa }; public static int ColorStateListItem_alpha = 2; public static int ColorStateListItem_android_alpha = 1; public static int ColorStateListItem_android_color = 0; public static int[] CompoundButton = { 0x01010107, 0x7f0100ab, 0x7f0100ac }; public static int CompoundButton_android_button = 0; public static int CompoundButton_buttonTint = 1; public static int CompoundButton_buttonTintMode = 2; public static int[] DrawerArrowToggle = { 0x7f0100ad, 0x7f0100ae, 0x7f0100af, 0x7f0100b0, 0x7f0100b1, 0x7f0100b2, 0x7f0100b3, 0x7f0100b4 }; public static int DrawerArrowToggle_arrowHeadLength = 4; public static int DrawerArrowToggle_arrowShaftLength = 5; public static int DrawerArrowToggle_barLength = 6; public static int DrawerArrowToggle_color = 0; public static int DrawerArrowToggle_drawableSize = 2; public static int DrawerArrowToggle_gapBetweenBars = 3; public static int DrawerArrowToggle_spinBars = 1; public static int DrawerArrowToggle_thickness = 7; public static int[] FontFamily = { 0x7f0100b5, 0x7f0100b6, 0x7f0100b7, 0x7f0100b8, 0x7f0100b9, 0x7f0100ba }; public static int[] FontFamilyFont = { 0x7f0100bb, 0x7f0100bc, 0x7f0100bd }; public static int FontFamilyFont_font = 1; public static int FontFamilyFont_fontStyle = 0; public static int FontFamilyFont_fontWeight = 2; public static int FontFamily_fontProviderAuthority = 0; public static int FontFamily_fontProviderCerts = 3; public static int FontFamily_fontProviderFetchStrategy = 4; public static int FontFamily_fontProviderFetchTimeout = 5; public static int FontFamily_fontProviderPackage = 1; public static int FontFamily_fontProviderQuery = 2; public static int[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f01000b, 0x7f0100d7, 0x7f0100d8, 0x7f0100d9 }; public static int[] LinearLayoutCompat_Layout = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 }; public static int LinearLayoutCompat_Layout_android_layout_gravity = 0; public static int LinearLayoutCompat_Layout_android_layout_height = 2; public static int LinearLayoutCompat_Layout_android_layout_weight = 3; public static int LinearLayoutCompat_Layout_android_layout_width = 1; public static int LinearLayoutCompat_android_baselineAligned = 2; public static int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; public static int LinearLayoutCompat_android_gravity = 0; public static int LinearLayoutCompat_android_orientation = 1; public static int LinearLayoutCompat_android_weightSum = 4; public static int LinearLayoutCompat_divider = 5; public static int LinearLayoutCompat_dividerPadding = 8; public static int LinearLayoutCompat_measureWithLargestChild = 6; public static int LinearLayoutCompat_showDividers = 7; public static int[] ListPopupWindow = { 0x010102ac, 0x010102ad }; public static int ListPopupWindow_android_dropDownHorizontalOffset = 0; public static int ListPopupWindow_android_dropDownVerticalOffset = 1; public static int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 }; public static int MenuGroup_android_checkableBehavior = 5; public static int MenuGroup_android_enabled = 0; public static int MenuGroup_android_id = 1; public static int MenuGroup_android_menuCategory = 3; public static int MenuGroup_android_orderInCategory = 4; public static int MenuGroup_android_visible = 2; public static int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f0100da, 0x7f0100db, 0x7f0100dc, 0x7f0100dd, 0x7f0100de, 0x7f0100df, 0x7f0100e0, 0x7f0100e1, 0x7f0100e2, 0x7f0100e3 }; public static int MenuItem_actionLayout = 16; public static int MenuItem_actionProviderClass = 18; public static int MenuItem_actionViewClass = 17; public static int MenuItem_alphabeticModifiers = 13; public static int MenuItem_android_alphabeticShortcut = 9; public static int MenuItem_android_checkable = 11; public static int MenuItem_android_checked = 3; public static int MenuItem_android_enabled = 1; public static int MenuItem_android_icon = 0; public static int MenuItem_android_id = 2; public static int MenuItem_android_menuCategory = 5; public static int MenuItem_android_numericShortcut = 10; public static int MenuItem_android_onClick = 12; public static int MenuItem_android_orderInCategory = 6; public static int MenuItem_android_title = 7; public static int MenuItem_android_titleCondensed = 8; public static int MenuItem_android_visible = 4; public static int MenuItem_contentDescription = 19; public static int MenuItem_iconTint = 21; public static int MenuItem_iconTintMode = 22; public static int MenuItem_numericModifiers = 14; public static int MenuItem_showAsAction = 15; public static int MenuItem_tooltipText = 20; public static int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f0100e4, 0x7f0100e5 }; public static int MenuView_android_headerBackground = 4; public static int MenuView_android_horizontalDivider = 2; public static int MenuView_android_itemBackground = 5; public static int MenuView_android_itemIconDisabledAlpha = 6; public static int MenuView_android_itemTextAppearance = 1; public static int MenuView_android_verticalDivider = 3; public static int MenuView_android_windowAnimationStyle = 0; public static int MenuView_preserveIconSpacing = 7; public static int MenuView_subMenuArrow = 8; public static int[] PopupWindow = { 0x01010176, 0x010102c9, 0x7f0100e6 }; public static int[] PopupWindowBackgroundState = { 0x7f0100e7 }; public static int PopupWindowBackgroundState_state_above_anchor = 0; public static int PopupWindow_android_popupAnimationStyle = 1; public static int PopupWindow_android_popupBackground = 0; public static int PopupWindow_overlapAnchor = 2; public static int[] RecycleListView = { 0x7f0100e8, 0x7f0100e9 }; public static int RecycleListView_paddingBottomNoButtons = 0; public static int RecycleListView_paddingTopNoTitle = 1; public static int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f0100ea, 0x7f0100eb, 0x7f0100ec, 0x7f0100ed, 0x7f0100ee, 0x7f0100ef, 0x7f0100f0, 0x7f0100f1, 0x7f0100f2, 0x7f0100f3, 0x7f0100f4, 0x7f0100f5, 0x7f0100f6 }; public static int SearchView_android_focusable = 0; public static int SearchView_android_imeOptions = 3; public static int SearchView_android_inputType = 2; public static int SearchView_android_maxWidth = 1; public static int SearchView_closeIcon = 8; public static int SearchView_commitIcon = 13; public static int SearchView_defaultQueryHint = 7; public static int SearchView_goIcon = 9; public static int SearchView_iconifiedByDefault = 5; public static int SearchView_layout = 4; public static int SearchView_queryBackground = 15; public static int SearchView_queryHint = 6; public static int SearchView_searchHintIcon = 11; public static int SearchView_searchIcon = 10; public static int SearchView_submitBackground = 16; public static int SearchView_suggestionRowLayout = 14; public static int SearchView_voiceIcon = 12; public static int[] Spinner = { 0x010100b2, 0x01010176, 0x0101017b, 0x01010262, 0x7f01001d }; public static int Spinner_android_dropDownWidth = 3; public static int Spinner_android_entries = 0; public static int Spinner_android_popupBackground = 1; public static int Spinner_android_prompt = 2; public static int Spinner_popupTheme = 4; public static int[] SwitchCompat = { 0x01010124, 0x01010125, 0x01010142, 0x7f0100f8, 0x7f0100f9, 0x7f0100fa, 0x7f0100fb, 0x7f0100fc, 0x7f0100fd, 0x7f0100fe, 0x7f0100ff, 0x7f010100, 0x7f010101, 0x7f010102 }; public static int SwitchCompat_android_textOff = 1; public static int SwitchCompat_android_textOn = 0; public static int SwitchCompat_android_thumb = 2; public static int SwitchCompat_showText = 13; public static int SwitchCompat_splitTrack = 12; public static int SwitchCompat_switchMinWidth = 10; public static int SwitchCompat_switchPadding = 11; public static int SwitchCompat_switchTextAppearance = 9; public static int SwitchCompat_thumbTextPadding = 8; public static int SwitchCompat_thumbTint = 3; public static int SwitchCompat_thumbTintMode = 4; public static int SwitchCompat_track = 5; public static int SwitchCompat_trackTint = 6; public static int SwitchCompat_trackTintMode = 7; public static int[] TextAppearance = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x0101009a, 0x0101009b, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x010103ac, 0x7f01002d, 0x7f010033 }; public static int TextAppearance_android_fontFamily = 10; public static int TextAppearance_android_shadowColor = 6; public static int TextAppearance_android_shadowDx = 7; public static int TextAppearance_android_shadowDy = 8; public static int TextAppearance_android_shadowRadius = 9; public static int TextAppearance_android_textColor = 3; public static int TextAppearance_android_textColorHint = 4; public static int TextAppearance_android_textColorLink = 5; public static int TextAppearance_android_textSize = 0; public static int TextAppearance_android_textStyle = 2; public static int TextAppearance_android_typeface = 1; public static int TextAppearance_fontFamily = 12; public static int TextAppearance_textAllCaps = 11; public static int[] Toolbar = { 0x010100af, 0x01010140, 0x7f010003, 0x7f010006, 0x7f01000a, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f01001d, 0x7f010103, 0x7f010104, 0x7f010105, 0x7f010106, 0x7f010107, 0x7f010108, 0x7f010109, 0x7f01010a, 0x7f01010b, 0x7f01010c, 0x7f01010d, 0x7f01010e, 0x7f01010f, 0x7f010110, 0x7f010111, 0x7f010112, 0x7f010113 }; public static int Toolbar_android_gravity = 0; public static int Toolbar_android_minHeight = 1; public static int Toolbar_buttonGravity = 21; public static int Toolbar_collapseContentDescription = 23; public static int Toolbar_collapseIcon = 22; public static int Toolbar_contentInsetEnd = 6; public static int Toolbar_contentInsetEndWithActions = 10; public static int Toolbar_contentInsetLeft = 7; public static int Toolbar_contentInsetRight = 8; public static int Toolbar_contentInsetStart = 5; public static int Toolbar_contentInsetStartWithNavigation = 9; public static int Toolbar_logo = 4; public static int Toolbar_logoDescription = 26; public static int Toolbar_maxButtonHeight = 20; public static int Toolbar_navigationContentDescription = 25; public static int Toolbar_navigationIcon = 24; public static int Toolbar_popupTheme = 11; public static int Toolbar_subtitle = 3; public static int Toolbar_subtitleTextAppearance = 13; public static int Toolbar_subtitleTextColor = 28; public static int Toolbar_title = 2; public static int Toolbar_titleMargin = 14; public static int Toolbar_titleMarginBottom = 18; public static int Toolbar_titleMarginEnd = 16; public static int Toolbar_titleMarginStart = 15; public static int Toolbar_titleMarginTop = 17; public static int Toolbar_titleMargins = 19; public static int Toolbar_titleTextAppearance = 12; public static int Toolbar_titleTextColor = 27; public static int[] View = { 0x01010000, 0x010100da, 0x7f010114, 0x7f010115, 0x7f010116 }; public static int[] ViewBackgroundHelper = { 0x010100d4, 0x7f010117, 0x7f010118 }; public static int ViewBackgroundHelper_android_background = 0; public static int ViewBackgroundHelper_backgroundTint = 1; public static int ViewBackgroundHelper_backgroundTintMode = 2; public static int[] ViewStubCompat = { 0x010100d0, 0x010100f2, 0x010100f3 }; public static int ViewStubCompat_android_id = 0; public static int ViewStubCompat_android_inflatedId = 2; public static int ViewStubCompat_android_layout = 1; public static int View_android_focusable = 1; public static int View_android_theme = 0; public static int View_paddingEnd = 3; public static int View_paddingStart = 2; public static int View_theme = 4; } public static final class xml { public static int provider_paths = 0x7f050001; } }
[ "poprobertdaniel22@gmail.com" ]
poprobertdaniel22@gmail.com
30884adeded1eb33fd4a632d4db5e7a652ecf9da
3dd35c0681b374ce31dbb255b87df077387405ff
/generated/entity/GL7AggregateLimitPollutio.java
a69418c98f105f50e51470bbe25e80d9cab6d885
[]
no_license
walisashwini/SBTBackup
58b635a358e8992339db8f2cc06978326fed1b99
4d4de43576ec483bc031f3213389f02a92ad7528
refs/heads/master
2023-01-11T09:09:10.205139
2020-11-18T12:11:45
2020-11-18T12:11:45
311,884,817
0
0
null
null
null
null
UTF-8
Java
false
false
40,772
java
package entity; /** * GL7AggregateLimitPollutio */ @javax.annotation.Generated(value = "com.guidewire.pl.metadata.codegen.Codegen", comments = "GL7AggregateLimitPollutio.eti;GL7AggregateLimitPollutio.eix;GL7AggregateLimitPollutio.etx") @java.lang.SuppressWarnings(value = {"deprecation", "unchecked"}) @gw.internal.gosu.parser.ExtendedType @gw.lang.SimplePropertyProcessing @gw.entity.EntityName(value = "GL7AggregateLimitPollutio") public class GL7AggregateLimitPollutio extends com.guidewire.pl.persistence.code.BeanBase implements entity.Retireable, entity.SimpleEffDated { public static final gw.pl.persistence.type.EntityTypeReference<entity.GL7AggregateLimitPollutio> TYPE = new com.guidewire.commons.metadata.types.EntityIntrinsicTypeReference<entity.GL7AggregateLimitPollutio>("entity.GL7AggregateLimitPollutio"); public static final gw.pl.persistence.type.EntityPropertyInfoReference<gw.entity.IColumnPropertyInfo> BEANVERSION_PROP = new com.guidewire.commons.metadata.types.ColumnPropertyInfoCache(TYPE, "BeanVersion"); public static final gw.pl.persistence.type.EntityPropertyInfoReference<gw.entity.IColumnPropertyInfo> CREATETIME_PROP = new com.guidewire.commons.metadata.types.ColumnPropertyInfoCache(TYPE, "CreateTime"); public static final gw.pl.persistence.type.EntityPropertyInfoReference<gw.entity.ILinkPropertyInfo> CREATEUSER_PROP = new com.guidewire.commons.metadata.types.LinkPropertyInfoCache(TYPE, "CreateUser"); public static final gw.pl.persistence.type.EntityPropertyInfoReference<gw.entity.IColumnPropertyInfo> EACHPOLLUTIONINCIDENTLIM_PROP = new com.guidewire.commons.metadata.types.ColumnPropertyInfoCache(TYPE, "EachPollutionIncidentLim"); public static final gw.pl.persistence.type.EntityPropertyInfoReference<gw.entity.IColumnPropertyInfo> EFFECTIVEDATE_PROP = new com.guidewire.commons.metadata.types.ColumnPropertyInfoCache(TYPE, "EffectiveDate"); public static final gw.pl.persistence.type.EntityPropertyInfoReference<gw.entity.IColumnPropertyInfo> EXPIRATIONDATE_PROP = new com.guidewire.commons.metadata.types.ColumnPropertyInfoCache(TYPE, "ExpirationDate"); public static final gw.pl.persistence.type.EntityPropertyInfoReference<gw.entity.IColumnPropertyInfo> ID_PROP = new com.guidewire.commons.metadata.types.ColumnPropertyInfoCache(TYPE, "ID"); public static final gw.pl.persistence.type.EntityPropertyInfoReference<gw.entity.ITypekeyPropertyInfo> JURISDICTION_PROP = new com.guidewire.commons.metadata.types.TypekeyPropertyInfoCache(TYPE, "Jurisdiction"); public static final gw.pl.persistence.type.EntityPropertyInfoReference<gw.entity.IColumnPropertyInfo> PUBLICID_PROP = new com.guidewire.commons.metadata.types.ColumnPropertyInfoCache(TYPE, "PublicID"); public static final gw.pl.persistence.type.EntityPropertyInfoReference<gw.entity.IColumnPropertyInfo> RETIREDVALUE_PROP = new com.guidewire.commons.metadata.types.ColumnPropertyInfoCache(TYPE, "RetiredValue"); public static final gw.pl.persistence.type.EntityPropertyInfoReference<gw.entity.IColumnPropertyInfo> UPDATETIME_PROP = new com.guidewire.commons.metadata.types.ColumnPropertyInfoCache(TYPE, "UpdateTime"); public static final gw.pl.persistence.type.EntityPropertyInfoReference<gw.entity.ILinkPropertyInfo> UPDATEUSER_PROP = new com.guidewire.commons.metadata.types.LinkPropertyInfoCache(TYPE, "UpdateUser"); public static final gw.pl.persistence.type.EntityPropertyInfoReference<gw.entity.IColumnPropertyInfo> VALUE_PROP = new com.guidewire.commons.metadata.types.ColumnPropertyInfoCache(TYPE, "Value"); private com.guidewire.pl.persistence.code.DelegateLoader _delegateManager; private com.guidewire._generated.entity.GL7AggregateLimitPollutioInternal _internal; private static final com.guidewire.pl.persistence.code.DelegateMap DELEGATE_MAP; public static final gw.pl.persistence.type.DynamicEntityPropertyInfoReference<gw.entity.IColumnPropertyInfo> RETIRED_DYNPROP = com.guidewire.pl.domain.persistence.core.RetireablePublicMethods.RETIRED_DYNPROP; /** * Constructs a new instance of this entity in the {@link gw.transaction.Transaction#getCurrent() current} bundle. * @throws java.lang.NullPointerException if there is no current bundle defined */ public GL7AggregateLimitPollutio() { this(gw.transaction.Transaction.getCurrent()); } /** * Constructs a new instance of this entity in the bundle supplied by the given bundle provider. */ public GL7AggregateLimitPollutio(gw.pl.persistence.core.BundleProvider bundleProvider) { this((java.lang.Void)null); com.guidewire.pl.system.entity.proxy.BeanProxy.initNewBeanInstance(this, bundleProvider.getBundle(), java.util.Arrays.asList()); } protected GL7AggregateLimitPollutio(java.lang.Void ignored) { } protected com.guidewire._generated.entity.GL7AggregateLimitPollutioInternal __createInternalInterface() { return new _Internal(); } protected final com.guidewire.pl.persistence.code.DelegateLoader __getDelegateManager() { if(_delegateManager == null) { _delegateManager = com.guidewire.pl.persistence.code.DelegateLoader.newInstance(this, __getDelegateMap()); }; return _delegateManager; } protected com.guidewire.pl.persistence.code.DelegateMap __getDelegateMap() { return DELEGATE_MAP; } protected com.guidewire._generated.entity.GL7AggregateLimitPollutioInternal __getInternalInterface() { if(_internal == null) { _internal = __createInternalInterface(); }; return _internal; } /** * * @return A copy of the current bean and a deep copy of all owned array elements */ public entity.KeyableBean copy() { return ((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).copy(); } @com.guidewire.pl.persistence.codegen.annotation.OverridesAccessor @gw.internal.gosu.parser.ExtendedProperty public java.lang.Integer getBeanVersion() { return ((com.guidewire.pl.domain.persistence.core.VersionablePublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.VersionablePublicMethods")).getBeanVersion(); } /** * Gets the value of the CreateTime field. * Timestamp when the object was created */ @gw.internal.gosu.parser.ExtendedProperty public java.util.Date getCreateTime() { return (java.util.Date)__getInternalInterface().getFieldValue(CREATETIME_PROP.get()); } /** * Gets the value of the CreateUser field. * User who created the object */ @gw.internal.gosu.parser.ExtendedProperty public entity.User getCreateUser() { return (entity.User)__getInternalInterface().getFieldValue(CREATEUSER_PROP.get()); } /** * Gets the value of the EachPollutionIncidentLim field. * EachPollutionIncidentLimit */ @gw.internal.gosu.parser.ExtendedProperty public java.lang.String getEachPollutionIncidentLim() { return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(EACHPOLLUTIONINCIDENTLIM_PROP.get()); } /** * Gets the value of the EffectiveDate field. * Effective date of this row. */ @gw.internal.gosu.parser.ExtendedProperty public java.util.Date getEffectiveDate() { return (java.util.Date)__getInternalInterface().getFieldValue(EFFECTIVEDATE_PROP.get()); } /** * Gets the value of the ExpirationDate field. * Expiration date of this row or NULL in the database if this row never expires. */ @gw.internal.gosu.parser.ExtendedProperty public java.util.Date getExpirationDate() { return (java.util.Date)__getInternalInterface().getFieldValue(EXPIRATIONDATE_PROP.get()); } @com.guidewire.pl.persistence.codegen.annotation.OverridesAccessor @gw.internal.gosu.parser.ExtendedProperty public gw.pl.persistence.core.Key getID() { return ((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).getID(); } /** * Gets the value of the Jurisdiction field. * Jurisdiction */ @gw.internal.gosu.parser.ExtendedProperty public typekey.Jurisdiction getJurisdiction() { return (typekey.Jurisdiction)__getInternalInterface().getFieldValue(JURISDICTION_PROP.get()); } @com.guidewire.pl.persistence.codegen.annotation.OverridesAccessor @gw.internal.gosu.parser.ExtendedProperty public java.lang.String getPublicID() { return ((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).getPublicID(); } /** * * @deprecated This field is not intended to be accessed directly. This method may be removed in a future release. */ @java.lang.Deprecated @gw.internal.gosu.parser.ExtendedProperty public java.lang.Long getRetiredValue() { return (java.lang.Long)__getInternalInterface().getFieldValue(RETIREDVALUE_PROP.get()); } /** * Gets the value of the UpdateTime field. * Timestamp when the object was last updated */ @gw.internal.gosu.parser.ExtendedProperty public java.util.Date getUpdateTime() { return (java.util.Date)__getInternalInterface().getFieldValue(UPDATETIME_PROP.get()); } /** * Gets the value of the UpdateUser field. * User who last updated the object */ @gw.internal.gosu.parser.ExtendedProperty public entity.User getUpdateUser() { return (entity.User)__getInternalInterface().getFieldValue(UPDATEUSER_PROP.get()); } /** * Gets the value of the Value field. * Value */ @gw.internal.gosu.parser.ExtendedProperty public java.lang.String getValue() { return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(VALUE_PROP.get()); } /** * Returns true if this is effective for the given period. * @param start start of the period * @param end end of the period * @return true if effective window overlaps given dates, false otherwise */ public boolean isEffective(java.util.Date start, java.util.Date end) { return ((com.guidewire.pc.domain.product.SimpleEffDatedPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pc.domain.product.SimpleEffDatedPublicMethods")).isEffective(start, end); } /** * Returns true if this is effective at the given date. * @param date the date to check * @return true if this is effective at given date, false otherwise */ public boolean isEffectiveAt(java.util.Date date) { return ((com.guidewire.pc.domain.product.SimpleEffDatedPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pc.domain.product.SimpleEffDatedPublicMethods")).isEffectiveAt(date); } /** * * @return true if this bean is to be inserted into the database when the bundle is committed. */ public boolean isNew() { return ((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).isNew(); } /** * * @return True if the object was created by importation from an external system, * False if it was created internally. Note that this refers to the currently * instantiated object, not the data it represents */ public boolean isNewlyImported() { return ((com.guidewire.commons.entity.Sourceable)__getDelegateManager().getImplementation("com.guidewire.commons.entity.Sourceable")).isNewlyImported(); } /** * Returns true if the effective window of this overlaps with the effective window of other. * @param other the other eff dated * @return true if the effective windows of this and other overlap, false otherwise. */ public boolean isOverlap(entity.SimpleEffDated other) { return ((com.guidewire.pc.domain.product.SimpleEffDatedPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pc.domain.product.SimpleEffDatedPublicMethods")).isOverlap(other); } /** * * @return True if the object has been retired from active use, false if the * object is active. Retireable objects are never deleted from a * database table, instead they are retired by setting the retired * column to the same value as the ID of the object. */ public java.lang.Boolean isRetired() { return ((com.guidewire.pl.domain.persistence.core.RetireablePublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.RetireablePublicMethods")).isRetired(); } /** * Refreshes this bean with the latest database version. * <p/> * This method does nothing if the bean is edited or inserted in its current bundle. If the bean * no longer exists in the database, then <tt>null</tt> is returned. If the bean has been * evicted from its bundle, then <tt>null</tt> is returned. Otherwise, this bean is returned, with its contents * updated. */ public entity.KeyableBean refresh() { return ((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).refresh(); } /** * Marks this bean for remove. A bean marked for remove will be deleted or retired when the transaction * is committed. Once a bean is marked for remove, it cannot be switched to update, edit, or read. * <p> * WARNING: This method is designed for simple custom entities which are normally not * associated with other entities. Undesirable results may occur when used on out-of-box entities. */ public void remove() { ((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).remove(); } /** * Sets the value of the BeanVersion field. */ private void setBeanVersion(java.lang.Integer value) { __getInternalInterface().setFieldValue(BEANVERSION_PROP.get(), value); } /** * Sets the value of the CreateTime field. */ private void setCreateTime(java.util.Date value) { __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value); } /** * Sets the value of the CreateUser field. */ private void setCreateUser(entity.User value) { __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value); } /** * Sets the value of the EachPollutionIncidentLim field. */ public void setEachPollutionIncidentLim(java.lang.String value) { __getInternalInterface().setFieldValueForCodegen(EACHPOLLUTIONINCIDENTLIM_PROP.get(), value); } /** * Sets the value of the EffectiveDate field. */ public void setEffectiveDate(java.util.Date value) { __getInternalInterface().setFieldValue(EFFECTIVEDATE_PROP.get(), value); } /** * Sets the value of the ExpirationDate field. */ public void setExpirationDate(java.util.Date value) { __getInternalInterface().setFieldValue(EXPIRATIONDATE_PROP.get(), value); } /** * Sets the value of the ID field. */ private void setID(gw.pl.persistence.core.Key value) { __getInternalInterface().setFieldValue(ID_PROP.get(), value); } /** * Sets the value of the Jurisdiction field. */ public void setJurisdiction(typekey.Jurisdiction value) { __getInternalInterface().setFieldValue(JURISDICTION_PROP.get(), value); } /** * Set a flag denoting that the currently instantiated object has been newly imported from * an external source * @param newlyImported */ public void setNewlyImported(boolean newlyImported) { ((com.guidewire.commons.entity.Sourceable)__getDelegateManager().getImplementation("com.guidewire.commons.entity.Sourceable")).setNewlyImported(newlyImported); } @com.guidewire.pl.persistence.codegen.annotation.OverridesAccessor public void setPublicID(java.lang.String id) { ((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).setPublicID(id); } /** * Sets the value of the RetiredValue field. */ private void setRetiredValue(java.lang.Long value) { __getInternalInterface().setFieldValue(RETIREDVALUE_PROP.get(), value); } /** * Sets the value of the UpdateTime field. */ private void setUpdateTime(java.util.Date value) { __getInternalInterface().setFieldValue(UPDATETIME_PROP.get(), value); } /** * Sets the value of the UpdateUser field. */ private void setUpdateUser(entity.User value) { __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value); } /** * Sets the value of the Value field. */ public void setValue(java.lang.String value) { __getInternalInterface().setFieldValueForCodegen(VALUE_PROP.get(), value); } /** * Set's the version of the bean to the next value (i.e. the bean version original value+1) * Multiple calls to this method on the same bean will result in the same value being used * for the version (i.e. it is idempotent). * * Calling this method will force the bean to be written to the database and participate fully * in the commit cycle e.g. pre-update rules will be run, etc. */ public void touch() { ((com.guidewire.pl.domain.persistence.core.VersionablePublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.VersionablePublicMethods")).touch(); } private class _Internal extends com.guidewire.pl.persistence.code.BeanInternalBase implements com.guidewire._generated.entity.GL7AggregateLimitPollutioInternal { protected com.guidewire.pl.persistence.code.DelegateLoader __getDelegateManager() { return entity.GL7AggregateLimitPollutio.this.__getDelegateManager(); } public boolean alwaysReserveID() { return ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).alwaysReserveID(); } public void assignPermanentId(gw.pl.persistence.core.Key id) { ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).assignPermanentId(id); } public java.lang.Integer calculateNextVersion() { return ((com.guidewire.pl.domain.persistence.core.impl.VersionableInternal)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.VersionableInternal")).calculateNextVersion(); } public java.util.List<entity.KeyableBean> cascadeDelete() { return ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).cascadeDelete(); } public entity.KeyableBean cloneBeanForBundleTransfer() { return ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).cloneBeanForBundleTransfer(); } /** * * @return A copy of the current bean and a deep copy of all owned array elements */ public entity.KeyableBean copy() { return ((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).copy(); } public entity.KeyableBean downcast(gw.entity.IEntityType newSubtype) { return ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).downcast(newSubtype); } public java.util.List<com.guidewire.pl.system.integration.messaging.events.EventDescriptor> generateInsertEventsInternal() { return ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).generateInsertEventsInternal(); } public java.util.List<com.guidewire.pl.system.integration.messaging.events.EventDescriptor> generateRemoveEventsInternal() { return ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).generateRemoveEventsInternal(); } public java.util.List<com.guidewire.pl.system.integration.messaging.events.EventDescriptor> generateUpdateEventsInternal() { return ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).generateUpdateEventsInternal(); } @com.guidewire.pl.persistence.codegen.annotation.OverridesAccessor @gw.internal.gosu.parser.ExtendedProperty public java.lang.Integer getBeanVersion() { return ((com.guidewire.pl.domain.persistence.core.VersionablePublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.VersionablePublicMethods")).getBeanVersion(); } /** * Gets the value of the CreateTime field. * Timestamp when the object was created */ @gw.internal.gosu.parser.ExtendedProperty public java.util.Date getCreateTime() { return (java.util.Date)__getInternalInterface().getFieldValue(CREATETIME_PROP.get()); } /** * Gets the value of the CreateUser field. * User who created the object */ @gw.internal.gosu.parser.ExtendedProperty public entity.User getCreateUser() { return (entity.User)__getInternalInterface().getFieldValue(CREATEUSER_PROP.get()); } public gw.pl.persistence.core.Key getCreateUserID() { return (gw.pl.persistence.core.Key)getRawFieldValue(CREATEUSER_PROP.get()); } /** * Gets the value of the EachPollutionIncidentLim field. * EachPollutionIncidentLimit */ @gw.internal.gosu.parser.ExtendedProperty public java.lang.String getEachPollutionIncidentLim() { return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(EACHPOLLUTIONINCIDENTLIM_PROP.get()); } /** * Gets the value of the EffectiveDate field. * Effective date of this row. */ @gw.internal.gosu.parser.ExtendedProperty public java.util.Date getEffectiveDate() { return (java.util.Date)__getInternalInterface().getFieldValue(EFFECTIVEDATE_PROP.get()); } /** * Gets the value of the ExpirationDate field. * Expiration date of this row or NULL in the database if this row never expires. */ @gw.internal.gosu.parser.ExtendedProperty public java.util.Date getExpirationDate() { return (java.util.Date)__getInternalInterface().getFieldValue(EXPIRATIONDATE_PROP.get()); } @com.guidewire.pl.persistence.codegen.annotation.OverridesAccessor @gw.internal.gosu.parser.ExtendedProperty public gw.pl.persistence.core.Key getID() { return ((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).getID(); } public gw.pl.persistence.core.Key getIdToSetForForeignKey(gw.entity.ILinkPropertyInfo link) { return ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).getIdToSetForForeignKey(link); } /** * Gets the value of the Jurisdiction field. * Jurisdiction */ @gw.internal.gosu.parser.ExtendedProperty public typekey.Jurisdiction getJurisdiction() { return (typekey.Jurisdiction)__getInternalInterface().getFieldValue(JURISDICTION_PROP.get()); } @com.guidewire.pl.persistence.codegen.annotation.OverridesAccessor @gw.internal.gosu.parser.ExtendedProperty public java.lang.String getPublicID() { return ((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).getPublicID(); } @com.guidewire.pl.persistence.codegen.annotation.OverridesAccessor @gw.internal.gosu.parser.ExtendedProperty public java.lang.Long getRetiredValue() { return ((com.guidewire.pl.domain.persistence.core.impl.RetireableInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.RetireableInternalMethods")).getRetiredValue(); } /** * Gets the value of the UpdateTime field. * Timestamp when the object was last updated */ @gw.internal.gosu.parser.ExtendedProperty public java.util.Date getUpdateTime() { return (java.util.Date)__getInternalInterface().getFieldValue(UPDATETIME_PROP.get()); } /** * Gets the value of the UpdateUser field. * User who last updated the object */ @gw.internal.gosu.parser.ExtendedProperty public entity.User getUpdateUser() { return (entity.User)__getInternalInterface().getFieldValue(UPDATEUSER_PROP.get()); } public gw.pl.persistence.core.Key getUpdateUserID() { return (gw.pl.persistence.core.Key)getRawFieldValue(UPDATEUSER_PROP.get()); } /** * Gets the value of the Value field. * Value */ @gw.internal.gosu.parser.ExtendedProperty public java.lang.String getValue() { return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(VALUE_PROP.get()); } public void initInBundle(gw.pl.persistence.core.Key id, gw.pl.persistence.core.Bundle bundle) { ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).initInBundle(id, bundle); } /** * Returns true if this is effective for the given period. * @param start start of the period * @param end end of the period * @return true if effective window overlaps given dates, false otherwise */ public boolean isEffective(java.util.Date start, java.util.Date end) { return ((com.guidewire.pc.domain.product.SimpleEffDatedPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pc.domain.product.SimpleEffDatedPublicMethods")).isEffective(start, end); } /** * Returns true if this is effective at the given date. * @param date the date to check * @return true if this is effective at given date, false otherwise */ public boolean isEffectiveAt(java.util.Date date) { return ((com.guidewire.pc.domain.product.SimpleEffDatedPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pc.domain.product.SimpleEffDatedPublicMethods")).isEffectiveAt(date); } /** * * @return true if this bean is to be inserted into the database when the bundle is committed. */ public boolean isNew() { return ((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).isNew(); } /** * * @return True if the object was created by importation from an external system, * False if it was created internally. Note that this refers to the currently * instantiated object, not the data it represents */ public boolean isNewlyImported() { return ((com.guidewire.commons.entity.Sourceable)__getDelegateManager().getImplementation("com.guidewire.commons.entity.Sourceable")).isNewlyImported(); } public boolean isOkToRetire() { return ((com.guidewire.pl.domain.persistence.core.impl.RetireableInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.RetireableInternalMethods")).isOkToRetire(); } /** * Returns true if the effective window of this overlaps with the effective window of other. * @param other the other eff dated * @return true if the effective windows of this and other overlap, false otherwise. */ public boolean isOverlap(entity.SimpleEffDated other) { return ((com.guidewire.pc.domain.product.SimpleEffDatedPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pc.domain.product.SimpleEffDatedPublicMethods")).isOverlap(other); } /** * * @return True if the object has been retired from active use, false if the * object is active. Retireable objects are never deleted from a * database table, instead they are retired by setting the retired * column to the same value as the ID of the object. */ public java.lang.Boolean isRetired() { return ((com.guidewire.pl.domain.persistence.core.RetireablePublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.RetireablePublicMethods")).isRetired(); } public boolean isTemporary() { return ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).isTemporary(); } public entity.KeyableBean overrideBundleAdd(gw.pl.persistence.core.Bundle bundle) { return ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).overrideBundleAdd(bundle); } public entity.KeyableBean overrideBundleRemove(gw.pl.persistence.core.Bundle bundle) { return ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).overrideBundleRemove(bundle); } public void putInBundle() { ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).putInBundle(); } /** * Refreshes this bean with the latest database version. * <p/> * This method does nothing if the bean is edited or inserted in its current bundle. If the bean * no longer exists in the database, then <tt>null</tt> is returned. If the bean has been * evicted from its bundle, then <tt>null</tt> is returned. Otherwise, this bean is returned, with its contents * updated. */ public entity.KeyableBean refresh() { return ((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).refresh(); } public entity.KeyableBean reload(gw.pl.persistence.core.Bundle bundle) { return ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).reload(bundle); } /** * Marks this bean for remove. A bean marked for remove will be deleted or retired when the transaction * is committed. Once a bean is marked for remove, it cannot be switched to update, edit, or read. * <p> * WARNING: This method is designed for simple custom entities which are normally not * associated with other entities. Undesirable results may occur when used on out-of-box entities. */ public void remove() { ((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).remove(); } public void removed() { ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).removed(); } /** * Sets the value of the BeanVersion field. */ public void setBeanVersion(java.lang.Integer value) { __getInternalInterface().setFieldValue(BEANVERSION_PROP.get(), value); } /** * Sets the value of the CreateTime field. */ public void setCreateTime(java.util.Date value) { __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value); } /** * Sets the value of the CreateUser field. */ public void setCreateUser(entity.User value) { __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value); } public void setCreateUserID(gw.pl.persistence.core.Key value) { setFieldValue(CREATEUSER_PROP.get(), value); } /** * Sets the value of the EachPollutionIncidentLim field. */ public void setEachPollutionIncidentLim(java.lang.String value) { __getInternalInterface().setFieldValueForCodegen(EACHPOLLUTIONINCIDENTLIM_PROP.get(), value); } /** * Sets the value of the EffectiveDate field. */ public void setEffectiveDate(java.util.Date value) { __getInternalInterface().setFieldValue(EFFECTIVEDATE_PROP.get(), value); } /** * Sets the value of the ExpirationDate field. */ public void setExpirationDate(java.util.Date value) { __getInternalInterface().setFieldValue(EXPIRATIONDATE_PROP.get(), value); } /** * Sets the value of the ID field. */ public void setID(gw.pl.persistence.core.Key value) { __getInternalInterface().setFieldValue(ID_PROP.get(), value); } /** * Sets the value of the Jurisdiction field. */ public void setJurisdiction(typekey.Jurisdiction value) { __getInternalInterface().setFieldValue(JURISDICTION_PROP.get(), value); } public void setLazyLoadedRow() { ((com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods")).setLazyLoadedRow(); } /** * Set a flag denoting that the currently instantiated object has been newly imported from * an external source * @param newlyImported */ public void setNewlyImported(boolean newlyImported) { ((com.guidewire.commons.entity.Sourceable)__getDelegateManager().getImplementation("com.guidewire.commons.entity.Sourceable")).setNewlyImported(newlyImported); } @com.guidewire.pl.persistence.codegen.annotation.OverridesAccessor public void setPublicID(java.lang.String id) { ((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).setPublicID(id); } public void setRetired() { ((com.guidewire.pl.domain.persistence.core.impl.RetireableInternalMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.impl.RetireableInternalMethods")).setRetired(); } /** * Sets the value of the RetiredValue field. */ public void setRetiredValue(java.lang.Long value) { __getInternalInterface().setFieldValue(RETIREDVALUE_PROP.get(), value); } /** * Sets the value of the UpdateTime field. */ public void setUpdateTime(java.util.Date value) { __getInternalInterface().setFieldValue(UPDATETIME_PROP.get(), value); } /** * Sets the value of the UpdateUser field. */ public void setUpdateUser(entity.User value) { __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value); } public void setUpdateUserID(gw.pl.persistence.core.Key value) { setFieldValue(UPDATEUSER_PROP.get(), value); } /** * Sets the value of the Value field. */ public void setValue(java.lang.String value) { __getInternalInterface().setFieldValueForCodegen(VALUE_PROP.get(), value); } /** * Set's the version of the bean to the next value (i.e. the bean version original value+1) * Multiple calls to this method on the same bean will result in the same value being used * for the version (i.e. it is idempotent). * * Calling this method will force the bean to be written to the database and participate fully * in the commit cycle e.g. pre-update rules will be run, etc. */ public void touch() { ((com.guidewire.pl.domain.persistence.core.VersionablePublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.VersionablePublicMethods")).touch(); } } static { java.util.HashMap<java.lang.String, java.lang.String> config = new java.util.HashMap<java.lang.String, java.lang.String>(); config.put("com.guidewire.commons.entity.Keyable", "com.guidewire.pl.system.entity.proxy.AbstractVersionableBeanProxy"); config.put("com.guidewire.commons.entity.Sourceable", "com.guidewire.pl.system.entity.proxy.AbstractVersionableBeanProxy"); config.put("com.guidewire.pc.domain.product.SimpleEffDatedPublicMethods", "com.guidewire.pc.domain.product.impl.SimpleEffDatedImpl"); config.put("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods", "com.guidewire.pl.system.entity.proxy.AbstractVersionableBeanProxy"); config.put("com.guidewire.pl.domain.persistence.core.RetireablePublicMethods", "com.guidewire.pl.system.entity.proxy.AbstractEditableRetireableBeanProxy"); config.put("com.guidewire.pl.domain.persistence.core.VersionablePublicMethods", "com.guidewire.pl.system.entity.proxy.AbstractVersionableBeanProxy"); config.put("com.guidewire.pl.domain.persistence.core.impl.BeanInternal", "com.guidewire.pl.system.entity.proxy.BeanProxy"); config.put("com.guidewire.pl.domain.persistence.core.impl.KeyableBeanInternalMethods", "com.guidewire.pl.system.entity.proxy.AbstractKeyableBeanProxy"); config.put("com.guidewire.pl.domain.persistence.core.impl.RetireableInternalMethods", "com.guidewire.pl.system.entity.proxy.AbstractEditableRetireableBeanProxy"); config.put("com.guidewire.pl.domain.persistence.core.impl.VersionableInternal", "com.guidewire.pl.system.entity.proxy.AbstractEditableBeanProxy"); config.put("com.guidewire.pl.persistence.core.BeanMethods", "com.guidewire.pl.system.entity.proxy.BeanProxy"); config.put("gw.pl.persistence.core.Bean", "com.guidewire.pl.system.entity.proxy.BeanProxy"); config.put("gw.pl.persistence.core.BundleProvider", "com.guidewire.pl.system.entity.proxy.BeanProxy"); config.put("java.lang.Comparable", "com.guidewire.pl.system.entity.proxy.BeanProxy"); DELEGATE_MAP = com.guidewire.pl.persistence.code.DelegateMap.newInstance(entity.GL7AggregateLimitPollutio.class, config); com.guidewire._generated.entity.GL7AggregateLimitPollutioInternalAccess.FRIEND_ACCESSOR.init(new com.guidewire.pl.persistence.code.InstantiableEntityFriendAccess<entity.GL7AggregateLimitPollutio, com.guidewire._generated.entity.GL7AggregateLimitPollutioInternal>() { public java.lang.Object getImplementation(entity.GL7AggregateLimitPollutio bean, java.lang.String interfaceName) { return bean.__getDelegateManager().getImplementation(interfaceName); } public com.guidewire._generated.entity.GL7AggregateLimitPollutioInternal getInternalInterface(entity.GL7AggregateLimitPollutio bean) { if(bean == null) { return null; }; return bean.__getInternalInterface(); } public entity.GL7AggregateLimitPollutio newEmptyInstance() { return new entity.GL7AggregateLimitPollutio((java.lang.Void)null); } public void validateImplementations() { DELEGATE_MAP.validateImplementations(); } }); } }
[ "ashwini@cruxxtechnologies.com" ]
ashwini@cruxxtechnologies.com
ba8cb38dfc5d9035d0c92954c6d7634f2d492f87
71027e2310f9917cd46ccb6a21c0100487c6b43b
/jaida/freehep-jaida/src/main/java/hep/aida/ref/dataset/binner/EfficiencyBinner.java
ef57299772a404836470c3c6d5974a2b4ed3cf6a
[]
no_license
kdk-pkg-soft/freehep-ncolor-pdf
f70f99ebdc7a78fc25960f42629e05d3c58f2b03
d317ea43554c75f8ff04e826b4361ad4326574b0
refs/heads/master
2021-01-23T12:18:26.502269
2012-08-22T23:22:21
2012-08-22T23:22:21
5,516,244
1
1
null
null
null
null
UTF-8
Java
false
false
1,878
java
package hep.aida.ref.dataset.binner; /** * This binner is for efficiency-type of data. * The bins are re-normalized to be between 0 and 1 by * taking the ratio between the bin height and the bin entries. * * @author The AIDA team at SLAC * */ public class EfficiencyBinner extends DefaultBinner { /** * Creates a new instance of Binner. * @param bins The array containing the number of bins per coordinate. * @param options The options. * */ public EfficiencyBinner(int[] bins, String options) { super(bins, options); setBinError( new EfficiencyBinError() ); } /** * Set at once the content of a bin. * @param bin The array specifying the bin. * @param entries The entries in the bin. * @param height The height of the bin. * @param mean The array with the coordinate means * @param rms The array with the coordinate rmss * */ public void setBinContent(int[] bin, int entries, double height, double[] mean, double[] rms) { super.setBinContent(bin, entries, height*entries, mean, rms); } public void addContentToBin(int[] bin, int entries, double height, double[] mean, double[] rms) { super.addContentToBin(bin, entries, height*entries, mean, rms); } public void removeContentFromBin(int[] bin, int entries, double height, double[] mean, double[] rms) { super.removeContentFromBin(bin, entries, height*entries, mean, rms); } /** * Get the height of a bin. * @param bin The array specifying the bin. * */ public double height(int[] bin) { int iBin = internalBin( bin ); int e = binStatistics( iBin ).entries(); if ( e > 0 ) return binStatistics( iBin ).sumOfWeights()/e; return 0; } }
[ "hamad.deshmukh@Kodak.com" ]
hamad.deshmukh@Kodak.com
3af732fc2846060513fd0c9eb9ae2fcee2ece88b
ca208f19cc75fc3ec4da3362e944fb9ad7d5faa1
/rebellion_h5_realm/data/scripts/services/RateBonus.java
065a2db6f3d79faae5955a5f809bc51a0dcbfe43
[]
no_license
robertedvin/rebellion_h5_realm
04034e1cfabddef9270b45827c3ce222edc1984f
0c129cf720c0638ba170966225d2e0671699b87d
refs/heads/master
2022-08-20T21:35:26.014365
2020-05-29T14:31:23
2020-05-29T14:31:23
267,627,002
0
0
null
null
null
null
UTF-8
Java
false
false
3,865
java
package services; import java.util.Date; import l2r.gameserver.Config; import l2r.gameserver.dao.AccountBonusDAO; import l2r.gameserver.data.htm.HtmCache; import l2r.gameserver.data.xml.holder.ItemHolder; import l2r.gameserver.model.Player; import l2r.gameserver.model.actor.instances.player.Bonus; import l2r.gameserver.network.loginservercon.AuthServerCommunication; import l2r.gameserver.network.loginservercon.gspackets.BonusRequest; import l2r.gameserver.network.serverpackets.ExBR_PremiumState; import l2r.gameserver.network.serverpackets.components.SystemMsg; import l2r.gameserver.scripts.Functions; import l2r.gameserver.utils.Log; public class RateBonus extends Functions { public void list() { Player player = getSelf(); if(Config.SERVICES_RATE_TYPE == Bonus.NO_BONUS) { show(HtmCache.getInstance().getNotNull("npcdefault.htm", player), player); return; } String html; if(player.getClient().getBonus() >= 0.) { int endtime = player.getClient().getBonusExpire(); if(endtime >= System.currentTimeMillis() / 1000L) html = HtmCache.getInstance().getNotNull("scripts/services/RateBonusAlready.htm", player).replaceFirst("endtime", new Date(endtime * 1000L).toString()); else { html = HtmCache.getInstance().getNotNull("scripts/services/RateBonus.htm", player); String add = ""; for(int i = 0; i < Config.SERVICES_RATE_BONUS_DAYS.length; i++) add += "<a action=\"bypass -h scripts_services.RateBonus:get " + i + "\">" // + (int) (Config.SERVICES_RATE_BONUS_VALUE[i] * 100 - 100) + // "% for " + Config.SERVICES_RATE_BONUS_DAYS[i] + // " days - " + Config.SERVICES_RATE_BONUS_PRICE[i] + // " " + ItemHolder.getInstance().getTemplate(Config.SERVICES_RATE_BONUS_ITEM[i]).getName() + "</a><br>"; html = html.replaceFirst("%toreplace%", add); } } else html = HtmCache.getInstance().getNotNull("scripts/services/RateBonusNo.htm", player); show(html, player); } public void get(String[] param) { Player player = getSelf(); if(Config.SERVICES_RATE_TYPE == Bonus.NO_BONUS) { show(HtmCache.getInstance().getNotNull("npcdefault.htm", player), player); return; } int i = Integer.parseInt(param[0]); if(!player.getInventory().destroyItemByItemId(Config.SERVICES_RATE_BONUS_ITEM[i], Config.SERVICES_RATE_BONUS_PRICE[i])) { if(Config.SERVICES_RATE_BONUS_ITEM[i] == 57) player.sendPacket(SystemMsg.YOU_DO_NOT_HAVE_ENOUGH_ADENA); else player.sendPacket(SystemMsg.INCORRECT_ITEM_COUNT); return; } if(Config.SERVICES_RATE_TYPE == Bonus.BONUS_GLOBAL_ON_AUTHSERVER && AuthServerCommunication.getInstance().isShutdown()) { list(); return; } Log.addDonation(player.getName() + "|" + player.getObjectId() + "|rate bonus|" + Config.SERVICES_RATE_BONUS_VALUE[i] + "|" + Config.SERVICES_RATE_BONUS_DAYS[i] + "|", "services"); double bonus = Config.SERVICES_RATE_BONUS_VALUE[i]; int bonusExpire = (int) (System.currentTimeMillis() / 1000L) + Config.SERVICES_RATE_BONUS_DAYS[i] * 24 * 60 * 60; switch(Config.SERVICES_RATE_TYPE) { case Bonus.BONUS_GLOBAL_ON_AUTHSERVER: AuthServerCommunication.getInstance().sendPacket(new BonusRequest(player.getAccountName(), bonus, bonusExpire)); break; case Bonus.BONUS_GLOBAL_ON_GAMESERVER: AccountBonusDAO.getInstance().insert(player.getAccountName(), bonus, bonusExpire); break; } player.getClient().setBonus(bonus); player.getClient().setBonusExpire(bonusExpire); player.stopBonusTask(); player.startBonusTask(); if(player.getParty() != null) player.getParty().recalculatePartyData(); player.sendPacket(new ExBR_PremiumState(player, true)); show(HtmCache.getInstance().getNotNull("scripts/services/RateBonusGet.htm", player), player); } }
[ "l2agedev@gmail.com" ]
l2agedev@gmail.com
70daf5ba282085c08d418b36d9c9a7edb12b30ca
bb226530406da57624de03c006ac46919baa1f6b
/src/test/java/TestPluginManager.java
449d5551d9d82590abfd09c247d70fbee8ab0d0a
[ "BSD-3-Clause" ]
permissive
Ali-RS/plugin-manager
b80023fa12d2e10f107c9c0cf6f4eb73372463bd
f63efd4acf456056dea3eda6b300b2bd35d28594
refs/heads/master
2022-09-20T03:31:08.888579
2020-06-05T09:09:01
2020-06-05T09:09:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,630
java
import com.jayfella.plugin.manager.SimplePluginLoader; import com.jayfella.plugin.manager.SimplePluginManager; import com.jayfella.plugin.manager.plugin.Plugin; import com.jayfella.plugin.manager.plugin.SimplePlugin; import java.io.File; import java.util.logging.Logger; public class TestPluginManager { private static final Logger log = Logger.getLogger(TestPluginManager.class.getName()); public static void main(String... args) { SimplePluginManager pluginManager = new SimplePluginManager(); pluginManager.registerInterface(SimplePluginLoader.class); File pluginDir = new File("./plugins"); Plugin[] plugins = pluginManager.loadPlugins(pluginDir); pluginManager.enablePlugins(); log.info("Loaded Plugins(s): " + plugins.length); log.info("Disabled Plugin(s): " + pluginManager.getDisabledPluginCount()); log.info("Not Loaded Plugin(s): " + pluginManager.getPluginsNotLoadedCount()); for (Plugin plugin : plugins) { log.info(String.format("Plugin: [ Name: %s, Type: %s, Enabled: %b ]", plugin.getDescription().getId(), plugin.getDescription().getType(), plugin.isEnabled() )); } log.info("Test Complete."); } private static class TestPlugin extends SimplePlugin { @Override public void onLoad() { } @Override public void onUnload() { } @Override public void onEnable() { } @Override public void onDisable() { } } }
[ "lighttheway086" ]
lighttheway086
9f618bae4b2c36568b4a6042b9debdfc4468b6e1
3e3a5e2643e4ed8519ecfd6b66ae937f2da42939
/designpattern/ChainOfRes/src/HundredRsHandler.java
dc394386592b64d237da04b54c955f4ebd40c9b2
[]
no_license
neel2811/Java
a5249b19b3c3923c44f5b9528adee7a54a978be6
fcafcf634cbf9ce849ecf43bf8e05f770cb85ac1
refs/heads/master
2021-10-26T03:42:57.532886
2017-03-24T10:25:27
2017-03-24T10:25:27
87,059,721
0
1
null
2017-04-03T09:50:10
2017-04-03T09:50:10
null
UTF-8
Java
false
false
669
java
public class HundredRsHandler extends RsHandler { public void dispatchRs(long requestedAmount) { long numberofNotesToBeDispatched = requestedAmount / 100; if (numberofNotesToBeDispatched > 0) { if(numberofNotesToBeDispatched>1) { System.out.println(numberofNotesToBeDispatched + " ,Hundred Rs notes are dispatched by HundredRsHandler\n"); } else { System.out.println(numberofNotesToBeDispatched + " ,Hundred Rs note is dispatched by HundredRsHandler\n"); } } long pendingAmountToBeProcessed = requestedAmount % 100; if (pendingAmountToBeProcessed > 0) { rsHandler.dispatchRs(pendingAmountToBeProcessed); } } }
[ "ramram_43210@yahoo.com" ]
ramram_43210@yahoo.com
02b94f4ff3f6af3b4463933b20bf9b5a3d915652
fc1933d4b8ba9f9675b85df0532ea93f585ea863
/java/src/base/controller/CustomerController.java
741f0dffee4cc2774b65851c0a71c7b9bf16ffae
[]
no_license
yhlovezq/JavaEE
84e3053edb0eab826e8cf5ffe3f66652e818b36f
9fc05c4c4e5bb30d91cfea17fc571aef3136fdfb
refs/heads/main
2023-02-05T22:03:17.485541
2020-12-25T03:51:15
2020-12-25T03:51:15
324,037,467
0
0
null
null
null
null
UTF-8
Java
false
false
724
java
package base.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import base.po.Customer; import base.service.CustomerService; @Controller public class CustomerController { @Autowired private CustomerService customerService; /** * 根据id查询客户详情 */ @RequestMapping("/findCustomerById") public String findCustomerById(Integer id,Model model) { Customer customer = customerService.findCustomerById(id); model.addAttribute("customer", customer); //返回客户信息展示页面 return "customer"; } }
[ "noreply@github.com" ]
noreply@github.com
891a8606df5fe971953eb1df840d13746dc001a3
edcd513aa321bd8ef791a54952f5e3377bd36c68
/Trichrut_OOP/src/oop/gen/GenLocal.java
f8f6f5cc8015f3fb0a74a99ab48af6c45ce30dac
[]
no_license
vinhbachkhoa/OOP
a4b9241f33bcfc1555d2a2ad15f82f70c1144f52
b305bd2b0e3158c6885f4eb03023a65f52f818ff
refs/heads/master
2020-04-08T12:27:48.648566
2018-11-27T09:05:22
2018-11-27T09:05:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
728
java
package oop.gen; import java.util.ArrayList; import oop.model.Location; import oop.model.NguonGoc; import oop.model.ThucThe; public class GenLocal extends GenEntity{ @Override public ArrayList<ThucThe> generate(int amount) { // TODO Auto-generated method stub ArrayList<ThucThe> listOrgan = new ArrayList<>(); int i = 0; while (i <= amount) { String name = getRandom(listName); NguonGoc nguonGoc = getRandom(listNguon); String ID = "LOCAL" + i; String conutry = name.substring(name.indexOf(", ") + 2); Location local = new Location(); local.setID(ID); local.setNguon(nguonGoc); local.setTenThucThe(name); local.setQuocGia(conutry); i ++; } return listOrgan; } }
[ "20161530@student.hust.edu.vn" ]
20161530@student.hust.edu.vn
c680ff02c5f6a550acd732fc0b408bd784507c96
7972dce716f4849ca3d73dd5fd3edde19dc7aee9
/testTask/src/main/java/test/constant/asia/db/City.java
28bdb1adb88eb04155936d68cb43d2b713a0f580
[]
no_license
ahasannet/FreemarkerDemo
e626cc2ccb9d96aad9adfe0be4e967d99eb459b6
63fd15dba4cdf065b7199e4c30de56387a8eccbe
refs/heads/master
2021-03-13T02:39:28.624289
2017-05-16T16:27:41
2017-05-16T16:27:41
91,480,129
0
0
null
null
null
null
UTF-8
Java
false
false
406
java
package test.constant.asia.db; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; @Entity @Table(name = "city") public class City extends ParentModel { private String name; public City() { } @Column(name="name", length=32, nullable= false) public String getName() { return name; } public void setName(String name) { this.name = name; } }
[ "ahasannet@gmail.com" ]
ahasannet@gmail.com
41e90f99410d79f5d9dcc8270147c26861f6e885
186979b9f64755ffb907c2f5359a015f514154c2
/src/util/ConnMain.java
c178b6d5b237b62f73b42ffd21f55fea904a6ba6
[]
no_license
KintaliAkhila/Examples
0eef486b7a87a189d85a9573f8608e918976b326
3f1280ec110351fbc0a9e8c47c4b3417267dec05
refs/heads/master
2020-04-17T00:05:08.572916
2019-01-16T12:32:39
2019-01-16T12:32:39
166,036,628
0
0
null
null
null
null
UTF-8
Java
false
false
710
java
package util; import java.io.FileNotFoundException; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; public class ConnMain { public static void main(String args[]) { try { Connection con=DbConnection.getConnection(); PreparedStatement pst=con.prepareStatement("insert into emp values(1002,'akhila')"); pst.execute(); ResultSet rs=pst.executeQuery("select * from emp"); while(rs.next()) { System.out.println(rs.getInt(1)); System.out.println(rs.getString(2)); } } catch (Exception e) { e.printStackTrace(); } } }
[ "noreply@github.com" ]
noreply@github.com
b56cf6717d7dc2b896ad53c07fafb940cadfe0fd
c9f9144b49db072637027359c8f9713e68667b35
/src/spring/Aula2Diploma/src/test/java/com/meli/aula2diploma/service/DiplomaGenerationServiceWithMock.java
a6c300738b1c0d367c00d665f6a1ee490b6e0ead
[]
no_license
iBianquini/MELI-bootcamp
3ff3e9623697bfb1b809f5396eb5154f8a78031b
2b9219f04da9fa4e1ecd44af875ad35671309d3e
refs/heads/main
2023-07-01T03:57:44.090665
2021-08-02T21:20:49
2021-08-02T21:20:49
379,993,129
0
0
null
null
null
null
UTF-8
Java
false
false
1,351
java
package com.meli.aula2diploma.service; import com.meli.aula2diploma.controller.AlunoController; import com.meli.aula2diploma.domain.Aluno; import com.meli.aula2diploma.domain.Disciplina; import com.meli.aula2diploma.dto.DiplomaDTO; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import java.util.Arrays; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; public class DiplomaGenerationServiceWithMock { private AlunoController alunoController; @BeforeEach public void init() { this.alunoController = mock(AlunoController.class); } @Test public void deveria_gerar_media_maior_que_9() { //arrange Disciplina d1 = new Disciplina("matematica", 10); Disciplina d2 = new Disciplina("Portugues", 9); Disciplina d3 = new Disciplina("Geografia", 9); Aluno aluno1 = new Aluno("Osvaldo", Arrays.asList(d1, d2, d3)); DiplomaDTO dto = DiplomaDTO.generateDiploma(aluno1); when(alunoController.getDiploma(aluno1)).thenReturn(dto); //Action var response = this.alunoController.getDiploma(aluno1); //Assert assertThat(response).isNotNull(); assertThat(response.getMediaFinal()).isGreaterThanOrEqualTo(9); } }
[ "iago.bianquini@mercadolivre.com" ]
iago.bianquini@mercadolivre.com
bbc7411cadb7caa487c8c783c8080eead9e734ed
6e9d61d675be407ceeee11c13bdd67aefa6b2f8a
/mv-core/core-common/src/main/java/com/lu/common/utils/TwoTuples.java
78403dc4d74230ed4722fd4235e9ae8d58009b3d
[]
no_license
lulongji/llj-dubbo
4ebc3c16b50e211d8f68795252b615777f6b224c
f073068ee2b98b232b9d2337286951747653a489
refs/heads/master
2020-03-18T03:37:06.681390
2018-05-21T09:54:43
2018-05-21T09:54:44
134,248,754
1
1
null
null
null
null
UTF-8
Java
false
false
470
java
package com.lu.common.utils; /** * 二元组 * * @author lu */ public class TwoTuples<T, E> { private T first; private E second; public TwoTuples(T first, E second) { super(); this.first = first; this.second = second; } public TwoTuples() { } public T first() { return first; } public E second() { return second; } public void setFirst(T first) { this.first = first; } public void setSecond(E second) { this.second = second; } }
[ "lulongji2011@163.com" ]
lulongji2011@163.com
100f3982f286c413f8aa44eae4705aafd242afb2
8d9948b1bc3bab728c32751843f7173a88fdd080
/tillerinobot/src/main/java/tillerino/tillerinobot/UserException.java
7cda7b38908af1a0ea378f87f55d2f6535986a18
[]
no_license
Deardrops/Tillerinobot
f081b5c5490c369dd440bfbe00683c68510a63cb
f1f4ec5dafce2eb69a4634b0486c5f245f65cbcf
refs/heads/master
2021-01-16T23:20:56.877860
2017-07-24T10:56:59
2017-07-24T10:56:59
82,907,960
1
1
null
2017-02-23T09:08:41
2017-02-23T09:08:41
null
UTF-8
Java
false
false
795
java
package tillerino.tillerinobot; /** * This type of exception will be displayed to the user. * * @author Tillerino */ public class UserException extends Exception { public static class QuietException extends UserException { private static final long serialVersionUID = 1L; public QuietException() { super(null); } } private static final long serialVersionUID = 1L; public UserException(String message) { super(message); } /** * This type of exception is extremely rare in a sense that it won't occur * again if the causing action is repeated. * * @author Tillerino */ public static class RareUserException extends UserException { private static final long serialVersionUID = 1L; public RareUserException(String message) { super(message); } } }
[ "tillmann.gaida@gmail.com" ]
tillmann.gaida@gmail.com
7ea05789f94178b9f470d6b48061d537b55c340b
808a3e996b5c5c571826fb2a8bf48925c0f1febb
/src/model/Categorie.java
a02020ba4601abe6f4da5a0e41e4066e96854836
[]
no_license
ilustr/Tp-Ent
79aabaa7a885e092603152bba3e0681f3fe2cd24
cfebb2708f5336f2b3e1c1d76ba94c70d4ff30c0
refs/heads/master
2016-09-06T09:12:34.586086
2013-11-28T10:25:26
2013-11-28T10:25:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,074
java
package model; import model.Objet.natureObjet; public class Categorie { private String name; private String nameInverse; private Objet.natureObjet inputType; private Objet.natureObjet outputType; public Categorie(String name, String nameInverse, natureObjet inputType, natureObjet outputType) { super(); this.name = name; this.nameInverse = nameInverse; this.inputType = inputType; this.outputType = outputType; } public String getName() { return name; } public void setName(String name) { this.name = name; } @Override public String toString() { return name; } public Objet.natureObjet getInputType() { return inputType; } public void setInputType(Objet.natureObjet inputType) { this.inputType = inputType; } public Objet.natureObjet getOutputType() { return outputType; } public void setOutputType(Objet.natureObjet outputType) { this.outputType = outputType; } public String getNameInverse() { return nameInverse; } public void setNameInverse(String nameInverse) { this.nameInverse = nameInverse; } }
[ "durazaurel@gmail.com" ]
durazaurel@gmail.com
7eb817f2f2183d9aea0b693261efceab0e449dbf
eefc0d3ad78c0cdcb7d1753e06080a0031b32655
/sponge/sponge-service/src/main/java/me/lucko/luckperms/sponge/service/model/SubjectReferenceFactory.java
9c6c83e550313816aa25c2975d94a582f48bfeb4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
lgou2w/LuckPerms
fc25cbacb42fec9ee80202daa701d22af6a00427
22006617d0d171e274552d0191a55b546c7e80f6
refs/heads/master
2021-05-12T10:33:34.265037
2018-01-12T23:51:59
2018-01-12T23:51:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,528
java
/* * This file is part of LuckPerms, licensed under the MIT License. * * Copyright (c) lucko (Luck) <luck@lucko.me> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package me.lucko.luckperms.sponge.service.model; import com.github.benmanes.caffeine.cache.Caffeine; import com.github.benmanes.caffeine.cache.LoadingCache; import com.google.common.base.Splitter; import org.spongepowered.api.service.permission.Subject; import java.util.List; import java.util.Objects; import java.util.concurrent.TimeUnit; /** * Caches the creation of {@link SubjectReference}s. */ public final class SubjectReferenceFactory { // static util access @Deprecated public static SubjectReference deserialize(LPPermissionService service, String serialisedReference) { Objects.requireNonNull(service, "service"); return service.getReferenceFactory().deserialize(serialisedReference); } public static SubjectReference obtain(LPPermissionService service, LPSubject subject) { Objects.requireNonNull(service, "service"); return service.getReferenceFactory().obtain(subject); } public static SubjectReference obtain(LPPermissionService service, Subject subject) { Objects.requireNonNull(service, "service"); return service.getReferenceFactory().obtain(subject); } public static SubjectReference obtain(LPPermissionService service, org.spongepowered.api.service.permission.SubjectReference reference) { Objects.requireNonNull(service, "service"); return service.getReferenceFactory().obtain(reference); } public static SubjectReference obtain(LPPermissionService service, String collectionIdentifier, String subjectIdentifier) { Objects.requireNonNull(service, "service"); return service.getReferenceFactory().obtain(collectionIdentifier, subjectIdentifier); } /** * The permission service to obtain real subject instances from */ private final LPPermissionService service; /** * Cache based factory for SubjectReferences. * * Using a factory and caching here makes the Subject cache in SubjectReference * more effective. This reduces the no. of times i/o is executed due to resolve calls * within the SubjectReference. * * It's perfectly ok if two instances of the same SubjectReference exist. (hence the 1 hour expiry) */ private final LoadingCache<SubjectReferenceAttributes, SubjectReference> referenceCache = Caffeine.newBuilder() .expireAfterAccess(1, TimeUnit.HOURS) .build(a -> new SubjectReference(SubjectReferenceFactory.this.service, a.collectionId, a.id)); public SubjectReferenceFactory(LPPermissionService service) { this.service = service; } @Deprecated public SubjectReference deserialize(String serialisedReference) { Objects.requireNonNull(serialisedReference, "serialisedReference"); List<String> parts = Splitter.on('/').limit(2).splitToList(serialisedReference); return obtain(parts.get(0), parts.get(1)); } public SubjectReference obtain(LPSubject subject) { Objects.requireNonNull(subject, "subject"); SubjectReference ret = obtain(subject.getParentCollection().getIdentifier(), subject.getIdentifier()); ret.fillCache(subject); return ret; } public SubjectReference obtain(Subject subject) { Objects.requireNonNull(subject, "subject"); if (subject instanceof ProxiedSubject) { return ((ProxiedSubject) subject).getReference(); } return obtain(subject.getContainingCollection().getIdentifier(), subject.getIdentifier()); } public SubjectReference obtain(org.spongepowered.api.service.permission.SubjectReference reference) { Objects.requireNonNull(reference, "reference"); if (reference instanceof SubjectReference) { return ((SubjectReference) reference); } else { return obtain(reference.getCollectionIdentifier(), reference.getSubjectIdentifier()); } } public SubjectReference obtain(String collectionIdentifier, String subjectIdentifier) { Objects.requireNonNull(collectionIdentifier, "collectionIdentifier"); Objects.requireNonNull(subjectIdentifier, "subjectIdentifier"); return this.referenceCache.get(new SubjectReferenceAttributes(collectionIdentifier, subjectIdentifier)); } /** * Used as a cache key. */ private static final class SubjectReferenceAttributes { private final String collectionId; private final String id; public SubjectReferenceAttributes(String collectionId, String id) { this.collectionId = collectionId; this.id = id; } @Override public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof SubjectReferenceAttributes)) return false; final SubjectReferenceAttributes other = (SubjectReferenceAttributes) o; return this.collectionId.equals(other.collectionId) && this.id.equals(other.id); } @Override public int hashCode() { final int PRIME = 59; int result = 1; result = result * PRIME + this.collectionId.hashCode(); result = result * PRIME + this.id.hashCode(); return result; } } }
[ "git@lucko.me" ]
git@lucko.me
7a1a2c431a3151ce01770a0a7dcf15f1a34c1b7e
f1824695aab0c910ab722df9b42b59e15b95ae66
/src/com/dafy/myoaservice/filter/PrefixService.java
08dcdb2a6689ef579c79ad197fb64e3f0aa750ba
[]
no_license
wangscript/MyOaService
e0fd4beac6029d65897a615e8e57a412b1da59f0
443b32da92d150881b259bd0708d84d462e0c867
refs/heads/master
2020-12-29T01:32:06.986488
2015-05-07T16:35:47
2015-05-07T16:35:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,029
java
package com.dafy.myoaservice.filter; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; import com.cdoframework.cdolib.base.Return; import com.cdoframework.cdolib.cache.LocalCache; import com.cdoframework.cdolib.cache.localcache.Trans; import com.cdoframework.cdolib.data.cdo.CDO; import com.cdoframework.cdolib.servlet.PrefixWebService; /** * @author Administrator * */ public class PrefixService extends PrefixWebService { private Logger logger = Logger.getLogger(PrefixService.class); @Override public Return handleTrans(HttpServletRequest request, HttpServletResponse response, CDO cdoRequest, CDO cdoResponse) { Cookie[] Cookies = request.getCookies(); if(Cookies!=null) { for(Cookie c:Cookies) { String name = c.getName(); if(name.equals("name")) { logger.info(c.getValue()); } } } return super.handleTrans(request,response,cdoRequest,cdoResponse); } }
[ "yuanlin_work@163.com" ]
yuanlin_work@163.com
2c3510da00fba90df72288ad43f82b27528b2de5
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/1/1_56242d87cc01f5e639c0e5e4572b02682151ed8a/MainActivity/1_56242d87cc01f5e639c0e5e4572b02682151ed8a_MainActivity_t.java
e0ccca52417f4bb0c7389a90dfb76276f1367a11
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
13,306
java
/* ################################################################## # GNU BACKGAMMON MOBILE # ################################################################## # # # Authors: Domenico Martella - Davide Saurino # # E-mail: info@alcacoop.it # # Date: 19/12/2012 # # # ################################################################## # # # Copyright (C) 2012 Alca Societa' Cooperativa # # # # This file is part of GNU BACKGAMMON MOBILE. # # GNU BACKGAMMON MOBILE is free software: you can redistribute # # it and/or modify it under the terms of the GNU General # # Public License as published by the Free Software Foundation, # # either version 3 of the License, or (at your option) # # any later version. # # # # GNU BACKGAMMON MOBILE is distributed in the hope that it # # will be useful, but WITHOUT ANY WARRANTY; without even the # # implied warranty of MERCHANTABILITY or FITNESS FOR A # # PARTICULAR PURPOSE. See the GNU General Public License # # for more details. # # # # You should have received a copy of the GNU General # # Public License v3 along with this program. # # If not, see <http://http://www.gnu.org/licenses/> # # # ################################################################## */ package it.alcacoop.backgammon; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import it.alcacoop.backgammon.GnuBackgammon; import it.alcacoop.backgammon.NativeFunctions; import it.alcacoop.backgammon.fsm.BaseFSM.Events; import it.alcacoop.backgammon.utils.MatchRecorder; import it.alcacoop.gnubackgammon.logic.GnubgAPI; import android.annotation.SuppressLint; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.res.AssetManager; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.os.Handler; import android.os.Message; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.Window; import android.view.WindowManager; import android.widget.Button; import android.widget.EditText; import android.widget.RelativeLayout; import com.badlogic.gdx.backends.android.AndroidApplication; import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration; import com.google.ads.AdRequest; import com.google.ads.AdSize; import com.google.ads.AdView; @SuppressLint({ "SimpleDateFormat", "HandlerLeak" }) public class MainActivity extends AndroidApplication implements NativeFunctions { private String data_dir; protected AdView adView; private final int SHOW_ADS = 1; private final int HIDE_ADS = 0; protected Handler handler = new Handler() { @SuppressLint("HandlerLeak") @Override public void handleMessage(Message msg) { switch(msg.what) { case SHOW_ADS: adView.setVisibility(View.VISIBLE); break; case HIDE_ADS: adView.setVisibility(View.GONE); break; } } }; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration(); cfg.useGL20 = false; data_dir = getBaseContext().getApplicationInfo().dataDir+"/gnubg/"; copyAssetsIfNotExists(); GnubgAPI.InitializeEnvironment(data_dir); // Create the layout RelativeLayout layout = new RelativeLayout(this); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); View gameView = initializeForView(new GnuBackgammon(this), cfg); adView = new AdView(this, AdSize.BANNER, "XXXXXXXXXXXXXXX"); adView.loadAd(new AdRequest()); adView.setVisibility(View.GONE); layout.addView(gameView); RelativeLayout.LayoutParams adParams = new RelativeLayout.LayoutParams( RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT ); adParams.addRule(RelativeLayout.ALIGN_PARENT_TOP); adParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT); layout.addView(adView, adParams); setContentView(layout); } //Load library static { System.loadLibrary("glib-2.0"); System.loadLibrary("gthread-2.0"); System.loadLibrary("gnubg"); } private void copyAssetsIfNotExists() { File a1 = new File(data_dir+"g11.xml"); File a2 = new File(data_dir+"gnubg_os0.bd"); File a3 = new File(data_dir+"gnubg_ts0.bd"); File a4 = new File(data_dir+"gnubg.weights"); File a5 = new File(data_dir+"gnubg.wd"); //Asset already presents if (a1.exists()&&a2.exists()&&a3.exists()&&a4.exists()&&a5.exists()) return; File assetDir = new File(data_dir); assetDir.mkdirs(); AssetManager assetManager = getAssets(); String[] files = null; try { files = assetManager.list("gnubg"); } catch (IOException e) { Log.e("tag", "Failed to get asset file list.", e); } for(String filename : files) { InputStream in = null; OutputStream out = null; try { Log.e("MINE", filename); in = assetManager.open("gnubg/"+filename); out = new FileOutputStream(data_dir + filename); copyFile(in, out); in.close(); in = null; out.flush(); out.close(); out = null; } catch(IOException e) { Log.e("tag", "Failed to copy asset file: " + filename, e); } } } private void copyFile(InputStream in, OutputStream out) throws IOException { byte[] buffer = new byte[1024]; int read; while((read = in.read(buffer)) != -1){ out.write(buffer, 0, read); } } @Override public void showAds(boolean show) { handler.sendEmptyMessage(show ? SHOW_ADS : HIDE_ADS); } @Override public void openURL(String url) { Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); startActivity(myIntent); } @Override public String getDataDir() { return data_dir; } @Override public void shareMatch(MatchRecorder rec) { final Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); intent.setType("message/rfc822"); DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm"); Date date = new Date(); String d = dateFormat.format(date); intent.putExtra(Intent.EXTRA_SUBJECT, "Backgammon Mobile exported Match (Played on "+d+")"); intent.putExtra(Intent.EXTRA_TEXT, "You can analize attached file with desktop version of GNU Backgammon\nNOTE: GNU Backgammon is available for Windows, MacOS and Linux\n\nIf you enjoyed Backgammon Mobile please help us rating it on the market"); try { dateFormat = new SimpleDateFormat("yyyyMMdd-HHmm"); d = dateFormat.format(date); File dir = new File(Environment.getExternalStorageDirectory(), "gnubg-sgf"); dir.mkdir(); final File data = new File(dir, "match-"+d+".sgf"); FileOutputStream out = new FileOutputStream(data); out.write(rec.saveSGF().getBytes()); out.close(); Uri uri = Uri.fromFile(data); intent.putExtra(Intent.EXTRA_STREAM, uri); runOnUiThread(new Runnable() { @Override public void run() { startActivity(Intent.createChooser(intent, "Send email...")); } }); } catch (IOException e) { e.printStackTrace(); } } @Override public void injectBGInstance() { } @Override public void fibsSignin() { final AlertDialog.Builder alert = new AlertDialog.Builder(this); final LayoutInflater inflater = this.getLayoutInflater(); runOnUiThread(new Runnable() { @Override public void run() { final View myView = inflater.inflate(R.layout.dialog_signin, null);; alert.setView(myView). setTitle("Login to server..."). setCancelable(false). setNegativeButton("Cancel", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { GnuBackgammon.fsm.processEvent(Events.FIBS_CANCEL, null); } }). setNeutralButton("Create Account", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { fibsRegistration(); } }). setPositiveButton("Login", null); final AlertDialog d = alert.create(); d.setOnShowListener(new DialogInterface.OnShowListener() { @Override public void onShow(DialogInterface arg0) { Button b = d.getButton(AlertDialog.BUTTON_POSITIVE); b.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String username = ((EditText)myView.findViewById(R.id.username)).getText().toString(); String password = ((EditText)myView.findViewById(R.id.password)).getText().toString(); if (username.length()>3&&password.length()>3) { GnuBackgammon.Instance.commandDispatcher.sendLogin(username, password); d.dismiss(); } Log.e("MINE", username+":"+password); } }); } }); d.show(); } }); } @Override public void fibsRegistration() { final AlertDialog.Builder alert = new AlertDialog.Builder(this); final LayoutInflater inflater = this.getLayoutInflater(); runOnUiThread(new Runnable() { @Override public void run() { final View myView = inflater.inflate(R.layout.dialog_register, null); alert.setView(myView). setCancelable(false). setTitle("Create new account..."). setNegativeButton("Cancel", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { GnuBackgammon.fsm.processEvent(Events.FIBS_CANCEL, null); } }). setPositiveButton("Create", null); final AlertDialog d = alert.create(); d.setOnShowListener(new DialogInterface.OnShowListener() { @Override public void onShow(DialogInterface arg0) { Button b = d.getButton(AlertDialog.BUTTON_POSITIVE); b.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String username = ((EditText)myView.findViewById(R.id.username)).getText().toString(); String password = ((EditText)myView.findViewById(R.id.password)).getText().toString(); String password2 = ((EditText)myView.findViewById(R.id.password2)).getText().toString(); if (username.length()>3&&password.length()>3&&password2.length()>3&&password.equals(password2)) { GnuBackgammon.Instance.FibsUsername = username; GnuBackgammon.Instance.FibsPassword = password; GnuBackgammon.Instance.commandDispatcher.createAccount(); d.dismiss(); } Log.e("MINE", username+":"+password+":"+password2); } }); } }); d.show(); } }); } @Override public boolean isNetworkUp() { ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo(); return activeNetworkInfo != null; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
80ad14f8b4eab7395d7acd23abe66385d652bf2c
837046ca8c8f88ee95567398f62abde77dee9d57
/complete/src/main/java/com/yummynoodlebar/web/controller/CheckoutController.java
ca292149cf58d4db705b1e8a234359f082df6616
[]
no_license
lightszentip/thymeleaf-spring-example
5d9c701cdf7ce9d82318ee5c60a27e330c28f8b1
d38d715b2794dee5172ca65e6ce8aa928ab9696c
refs/heads/master
2020-06-02T02:02:42.543087
2014-03-08T16:04:23
2014-03-08T16:04:23
17,544,865
1
1
null
null
null
null
UTF-8
Java
false
false
2,387
java
package com.yummynoodlebar.web.controller; import com.yummynoodlebar.core.services.OrderService; import com.yummynoodlebar.events.orders.CreateOrderEvent; import com.yummynoodlebar.events.orders.OrderCreatedEvent; import com.yummynoodlebar.events.orders.OrderDetails; import com.yummynoodlebar.web.domain.Basket; import com.yummynoodlebar.web.domain.CustomerInfo; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.mvc.support.RedirectAttributes; import javax.validation.Valid; import java.util.UUID; @Controller @RequestMapping("/checkout") public class CheckoutController { private static final Logger LOG = LoggerFactory .getLogger(BasketCommandController.class); @Autowired private Basket basket; @Autowired private OrderService orderService; @RequestMapping(method = RequestMethod.GET) public String checkout() { return "/checkout"; } @RequestMapping(method = RequestMethod.POST) public String doCheckout(@Valid @ModelAttribute("customerInfo") CustomerInfo customer, BindingResult result, RedirectAttributes redirectAttrs) { if (result.hasErrors()) { // errors in the form // show the checkout form again return "/checkout"; } LOG.debug("No errors, continue with processing for Customer {}:", customer.getName()); OrderDetails order = basket .createOrderDetailsWithCustomerInfo(customer); OrderCreatedEvent event = orderService .createOrder(new CreateOrderEvent(order)); UUID key = event.getNewOrderKey(); redirectAttrs.addFlashAttribute("message", "Your order has been accepted!"); basket.clear(); LOG.debug("Basket now has {} items", basket.getSize()); return "redirect:/order/" + key.toString(); } // {!begin customerInfo} @ModelAttribute("customerInfo") private CustomerInfo getCustomerInfo() { return new CustomerInfo(); } // {!end customerInfo} @ModelAttribute("basket") public Basket getBasket() { return basket; } public void setBasket(Basket basket) { this.basket = basket; } }
[ "lightszentip@gmail.com" ]
lightszentip@gmail.com
99b4de4ddc2e727464af66567b2e78f367343e10
14e1ce7f0eff677d458753466d4cbd4f0762802d
/src/main/java/com/example/property/management/web/command/HouseUpdate.java
ecf2bbdcdf6170d8514d72f51df798a4787f1453
[]
no_license
yumiaoxia/property-management-annotation
e4beffeea43854c09e4db08d49be1f85202bfe17
54f6fa16412cea448a90d3e37f4ba7bbfad14e29
refs/heads/master
2022-12-24T01:38:27.818946
2020-03-05T15:51:39
2020-03-05T15:51:39
244,733,710
0
0
null
2022-12-15T23:48:05
2020-03-03T20:21:38
Java
UTF-8
Java
false
false
103
java
package com.example.property.management.web.command; public class HouseUpdate extends HouseCreate { }
[ "yumiaoxia22@163.com" ]
yumiaoxia22@163.com
f0553bca9e1459d45ca4d9d3524cbf9366f27665
409d8ace3aa077ff22838517a8e55576c28ecfca
/app/src/main/java/com/vsokoltsov/stackqa/models/User.java
0f219fdbdf63ab1ebe978b3c5578acbe21fcd1c0
[]
no_license
vsokoltsov/StackQA-Android
eceb24950d8eb2e3a884a6081a8cc526474f30e5
27807858c8c15b2b3ff4055bc991c417d24c0d77
refs/heads/master
2021-05-31T13:01:02.033771
2016-02-18T14:53:37
2016-02-18T14:53:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,278
java
package com.vsokoltsov.stackqa.models; import android.os.Parcel; import android.os.Parcelable; import com.android.volley.toolbox.ImageLoader; import com.vsokoltsov.stackqa.controllers.AppController; import org.json.JSONException; import org.json.JSONObject; import java.io.IOException; import java.net.MalformedURLException; /** * Created by vsokoltsov on 14.09.15. */ public class User implements Parcelable{ private String avatarUrl; private String surname; private String name; private String email; private int id; public User(JSONObject object){ try { if(object.has("id")) setId(Integer.valueOf(object.getString("id"))); if(object.has("surname")) setSurname(object.getString("surname")); if(object.has("name")) setName(object.getString("name")); if(object.has("email")) setEmail(object.getString("email")); if (object.has("avatar")) setAvatarUrl(object.getJSONObject("avatar").getString("url")); } catch(JSONException e){ e.printStackTrace(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } public User() { } public void setAvatarUrl(String url) throws MalformedURLException, IOException { this.avatarUrl = url; ImageLoader imageLoader = AppController.getInstance().getImageLoader(); } public String getAvatarUrl(){ return this.avatarUrl; } public void setSurname(String surname){ this.surname = surname; } public String getSurname(){ return this.surname; } public void setName(String name){ this.name = name; } public String getName(){ return this.name; } public void setEmail(String email){ this.email = email; } public String getEmail(){ return this.email; } public String getCorrectNaming(){ boolean surnameIsEmpty = this.surname.isEmpty() || this.surname == "null"; boolean nameIsEmpty = this.name.isEmpty() || this.name == "null"; if(!surnameIsEmpty && !nameIsEmpty){ return this.surname + " " + this.name; } else { return this.email; } } public int getId() { return id; } public void setId(int id) { this.id = id; } public static final Parcelable.Creator<User> CREATOR = new Parcelable.Creator<User>() { public User createFromParcel(Parcel in) { User answer = new User(); answer.surname = in.readString(); answer.id = in.readInt(); answer.name = in.readString(); answer.email = in.readString(); answer.avatarUrl = in.readString(); return answer; } public User[] newArray(int size) { return new User[size]; } }; @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(surname); dest.writeInt(id); dest.writeString(name); dest.writeString(email); dest.writeString(avatarUrl); } }
[ "vforvad@gmail.com" ]
vforvad@gmail.com
7603890bb9bf4f2e0d34e456d03bf1a963571d71
7a2544ccc3e3e07a7a2f55e5ca51633d06a29f0c
/src/main/java/edu/uiowa/slis/BIBFRAME/MovingImage/MovingImageHasPart.java
f49bb4a723de75814914077746884643fac52289
[]
no_license
eichmann/BIBFRAMETagLib
bf3ddf103e1010dab4acdb034f7d037fa0419f9d
816e96a0e55e5f67688ba238e623e13daba92d61
refs/heads/master
2021-12-28T00:04:14.171163
2020-01-20T17:44:33
2020-01-20T17:44:33
135,755,642
0
0
null
null
null
null
UTF-8
Java
false
false
971
java
package edu.uiowa.slis.BIBFRAME.MovingImage; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspTagException; @SuppressWarnings("serial") public class MovingImageHasPart extends edu.uiowa.slis.BIBFRAME.TagLibSupport { static MovingImageHasPart currentInstance = null; private static final Log log = LogFactory.getLog(MovingImageHasPart.class); // object property public int doStartTag() throws JspException { try { MovingImageHasPartIterator theMovingImageHasPartIterator = (MovingImageHasPartIterator)findAncestorWithClass(this, MovingImageHasPartIterator.class); pageContext.getOut().print(theMovingImageHasPartIterator.getHasPart()); } catch (Exception e) { log.error("Can't find enclosing MovingImage for hasPart tag ", e); throw new JspTagException("Error: Can't find enclosing MovingImage for hasPart tag "); } return SKIP_BODY; } }
[ "david-eichmann@uiowa.edu" ]
david-eichmann@uiowa.edu
b4053b512ff881508e0c74349916063eb74bdbec
a349865aea66ff43c595f78d3e774a543e68c8b2
/Java/src/com/pyen/oplop/j2me/Main.java
c1760e07a4e5481937a4e74ff88c687d30d0cf5f
[ "Apache-2.0" ]
permissive
nicenboim/oplop
877556d23c3855563bde029bed2b4d1db3a3090d
bc73e179ff9b628cdffa44284ca3e2d9820a04bf
refs/heads/master
2020-12-25T04:37:57.425801
2013-07-18T04:25:32
2013-07-18T04:25:32
11,686,489
0
0
Apache-2.0
2018-10-10T15:16:32
2013-07-26T13:36:43
Python
UTF-8
Java
false
false
2,149
java
package com.pyen.oplop.j2me; import java.util.Stack; import javax.microedition.midlet.MIDletStateChangeException; import javax.microedition.midlet.MIDlet; import javax.microedition.lcdui.CommandListener; import javax.microedition.lcdui.Command; import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Displayable; public class Main extends MIDlet implements CommandListener { private Display m_display; private Stack m_formStack; private boolean m_paused; public Main() { m_paused = false; m_formStack = new Stack(); } public void startApp() throws MIDletStateChangeException { if (m_paused) { // we should already have a form set, since we were running // when we got paused, so just display the top of the form // stack m_paused = false; OplopForm form = (OplopForm)m_formStack.peek(); form.update(); m_display.setCurrent(form); } else { m_display = Display.getDisplay( this ); setNewForm(new MainForm()); } } public void pauseApp() { m_paused = true; notifyPaused(); } public void destroyApp( boolean unconditional ) { //clean up // notify the system that we're ready for destruction notifyDestroyed(); } public void commandAction( Command c, Displayable d ) { OplopForm form = (OplopForm)d; switch (c.getCommandType()) { case Command.BACK: setPrevForm(); break; case Command.OK: setNewForm(form.getNextForm()); break; case Command.EXIT: destroyApp(true); break; } } private void setNewForm(OplopForm f) { m_formStack.push(f); f.setCommandListener(this); m_display.setCurrent(f); } private void setPrevForm() { m_formStack.pop(); if (m_formStack.empty()) { destroyApp(false); } else { OplopForm form = (OplopForm)m_formStack.peek(); form.update(); m_display.setCurrent(form); } } }
[ "brett@python.org" ]
brett@python.org
1952adf8bdd0767426621b50ca3ea6e8d47b0125
cd7262957146b81537fcea55b37a783a61d9eab2
/src/main/java/be/vdab/XMLStreamReader/Main.java
228c0c50fefe32c2f044f1ecbd8189cc5fa0b193
[]
no_license
kr0ma/XMLVerwerkenTheorie
1ec3d6cb9d23958567438b38cb555a7671d4728b
cc9034244bb03140304b6358b74f354ac3f20da2
refs/heads/master
2021-01-10T08:34:07.634255
2016-01-22T08:16:46
2016-01-22T08:16:46
50,167,671
0
0
null
null
null
null
UTF-8
Java
false
false
3,822
java
package be.vdab.XMLStreamReader; import java.io.BufferedInputStream; import java.io.InputStream; import java.net.URL; import javax.xml.stream.XMLInputFactory; import javax.xml.stream.XMLStreamConstants; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; class Main { // ------------------------------------------------------------------------------ // VOORBEELD 2 // ------------------------------------------------------------------------------ private static final String URL = "http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"; public static void main(String[] args) { XMLInputFactory factory = XMLInputFactory.newInstance(); try (InputStream stream = new URL(URL).openStream(); InputStream bufferedStream = new BufferedInputStream(stream)) { XMLStreamReader reader = null; try { reader = factory.createXMLStreamReader(bufferedStream); while (reader.hasNext()) { if (reader.next() == XMLStreamConstants.START_ELEMENT && "Cube".equals(reader.getLocalName()) && reader.getAttributeCount() == 2) { System.out.printf("%s:%s%n", reader.getAttributeValue(null, "currency"), reader.getAttributeValue(null, "rate")); } } } finally { if (reader != null) { try { reader.close(); } catch (XMLStreamException ex) { ex.printStackTrace(); } } } } catch (Exception ex) { ex.printStackTrace(); } } // ------------------------------------------------------------------------------ // VOORBEELD 2 // ------------------------------------------------------------------------------ /* * private static final Path PATH = Paths.get("/dataXML/koersen.xml"); * * public static void main(String[] args) { XMLInputFactory factory = * XMLInputFactory.newInstance(); try (Reader bufferedReader = * Files.newBufferedReader(PATH)) { XMLStreamReader reader = null; try { * reader = factory.createXMLStreamReader(bufferedReader); while * (reader.hasNext()) { if (reader.next() == * XMLStreamConstants.START_ELEMENT && "munt".equals(reader.getLocalName()) * && "USD".equals(reader.getAttributeValue(null, "code"))) { * System.out.println(reader.getAttributeValue(null, "koers")); break; } } } * finally { if (reader != null) { try { reader.close(); } catch * (XMLStreamException ex) { ex.printStackTrace(); } } } } catch (Exception * ex) { ex.printStackTrace(); } } */ // ------------------------------------------------------------------------------ // VOORBEELD 1 // ------------------------------------------------------------------------------ /* * private static final Path PATH = Paths.get("/dataXML/koers.xml"); * * public static void main(String[] args) { XMLInputFactory factory = * XMLInputFactory.newInstance(); try (Reader bufferedReader = * Files.newBufferedReader(PATH)) { XMLStreamReader reader = null; try { * reader = factory.createXMLStreamReader(bufferedReader); while * (reader.hasNext()) { switch (reader.next()) { case * XMLStreamConstants.START_ELEMENT: System.out.printf("begintag %s%n", * reader.getLocalName()); for (int index = 0; index != * reader.getAttributeCount(); index++) { System.out.printf("\t%s:%s%n", * reader.getAttributeLocalName(index), reader.getAttributeValue(index)); } * break; case XMLStreamConstants.CHARACTERS: System.out.printf("tekst %s%n" * , reader.getText()); break; case XMLStreamConstants.END_ELEMENT: * System.out.printf("eindtag %s%n", reader.getLocalName()); break; } } } * finally { if (reader != null) { try { reader.close(); } catch * (XMLStreamException ex) { ex.printStackTrace(); } } } } catch (Exception * ex) { ex.printStackTrace(); } System.out.println(); } */ }
[ "karim.romagnani@gmail.com" ]
karim.romagnani@gmail.com
dcb382253e262e6e1920ab11b3cd32c5b48a34b0
97734b7675c7bb24468c9fe4b7917540ce9a65db
/app/src/main/java/com/zhejiang/haoxiadan/third/jiguang/chat/adapter/ViewPagerAdapter.java
5369d4163ae7ccf7c3baea8a2e81c5a4c11031ed
[]
no_license
yangyuqi/android_hxd
303db8bba4f4419c0792dbcfdd973e1a5165e09a
f02cb1c7c625c5f6eaa656d03a82c7459ff4a9a1
refs/heads/master
2020-04-13T03:47:59.651505
2018-12-24T03:06:34
2018-12-24T03:06:34
162,942,703
0
0
null
null
null
null
UTF-8
Java
false
false
905
java
package com.zhejiang.haoxiadan.third.jiguang.chat.adapter; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import java.util.List; /** * Created by ${chenyn} on 2017/2/20. */ public class ViewPagerAdapter extends FragmentPagerAdapter { private List<Fragment> mFragmList; public ViewPagerAdapter(FragmentManager fm) { super(fm); // TODO Auto-generated constructor stub } public ViewPagerAdapter(FragmentManager fm, List<Fragment> fragments) { super(fm); this.mFragmList = fragments; } @Override public Fragment getItem(int index) { // TODO Auto-generated method stub return mFragmList.get(index); } @Override public int getCount() { // TODO Auto-generated method stub return mFragmList.size(); } }
[ "yuqi.yang@ughen.com" ]
yuqi.yang@ughen.com
95248d76bed1c8651e270f213876e53596ec054d
45f01bf1352851c25b50c91a92a3d585bf21073d
/src/com/my/spring/serviceImpl/MaterialLogServiceImpl.java
be04411540f6740d402c50b1daf7a5a4a329c584
[]
no_license
jasobimDevelopers/jasobim
23c7144d68a343f61685b062460f2875be483a68
3d5a0546205c4df9070433284feb3ecb287fa52b
refs/heads/jasobim_project
2022-12-21T15:15:38.890086
2018-12-24T05:56:11
2018-12-24T05:56:11
124,464,874
1
0
null
2022-12-16T10:32:48
2018-03-09T00:29:18
Java
UTF-8
Java
false
false
6,461
java
package com.my.spring.serviceImpl; import com.my.spring.DAO.MaterialDao; import com.my.spring.DAO.MaterialLogDao; import com.my.spring.DAO.UserDao; import com.my.spring.enums.CallStatusEnum; import com.my.spring.enums.ErrorCodeEnum; import com.my.spring.model.Material; import com.my.spring.model.MaterialLog; import com.my.spring.model.MaterialLogPojo; import com.my.spring.model.User; import com.my.spring.parameters.Parameters; import com.my.spring.service.MaterialLogService; import com.my.spring.utils.DataWrapper; import com.my.spring.utils.SessionManager; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Date; import java.text.ParseException; import java.util.ArrayList; import java.util.List; @Service("materialLogService") public class MaterialLogServiceImpl implements MaterialLogService { @Autowired MaterialLogDao materialLogDao; @Autowired MaterialDao materialDao; @Autowired UserDao userDao; @Override public DataWrapper<Void> addMaterialLog(MaterialLog m,String token,String date) { DataWrapper<Void> dataWrapper = new DataWrapper<Void>(); User userInMemory = SessionManager.getSession(token); if (userInMemory != null) { if(m!=null){ if(date!=null){ try { m.setLogDate(Parameters.getSdfs().parse(date)); } catch (ParseException e) { // TODO Auto-generated catch block e.printStackTrace(); } }else{ m.setLogDate(new Date()); } m.setUserId(userInMemory.getId()); m.setSum(m.getIntro().split(",").length); if(m.getMaterialId()!=null){ Material material=materialDao.getById(m.getMaterialId()); if(material!=null){ if(m.getLogType()==0){ if(m.getNum()!=null){ if(material.getInNum()==null){ material.setInNum(m.getNum()); }else{ material.setInNum(material.getInNum()+m.getNum()); } if(material.getLeaveNum()==null){ material.setLeaveNum(m.getNum()); }else{ material.setLeaveNum(material.getLeaveNum()+m.getNum()); } } } if(m.getLogType()==1){ if(material.getLeaveNum()!=null){ if(m.getNum()!=null){ if(m.getNum()<=material.getLeaveNum()){ material.setOutNum(material.getOutNum()+m.getNum()); material.setLeaveNum(material.getLeaveNum()-m.getNum()); }else{ dataWrapper.setErrorCode(ErrorCodeEnum.Error); return dataWrapper; } } } } materialDao.updateMaterial(material); } } if(!materialLogDao.addMaterialLog(m)){ dataWrapper.setErrorCode(ErrorCodeEnum.Error); } }else{ dataWrapper.setErrorCode(ErrorCodeEnum.Empty_Inputs); } } else { dataWrapper.setErrorCode(ErrorCodeEnum.User_Not_Logined); } return dataWrapper; } @Override public DataWrapper<Void> deleteMaterialLog(Long id,String token ) { DataWrapper<Void> dataWrapper = new DataWrapper<Void>(); User userInMemory = SessionManager.getSession(token); if(userInMemory != null) { if(id!=null){ if(!materialLogDao.deleteMaterialLog(id)){ dataWrapper.setErrorCode(ErrorCodeEnum.Error); } }else{ dataWrapper.setErrorCode(ErrorCodeEnum.Empty_Inputs); } } else { dataWrapper.setErrorCode(ErrorCodeEnum.User_Not_Logined); } return dataWrapper; } @Override public DataWrapper<Void> updateMaterialLog(MaterialLog m,String token) { DataWrapper<Void> dataWrapper = new DataWrapper<Void>(); User userInMemory = SessionManager.getSession(token); if (userInMemory != null) { m.setUserId(userInMemory.getId()); if(!materialLogDao.updateMaterialLog(m)) { dataWrapper.setErrorCode(ErrorCodeEnum.Error); } } else { dataWrapper.setErrorCode(ErrorCodeEnum.User_Not_Logined); } return dataWrapper; } @Override public DataWrapper<List<MaterialLogPojo>> getMaterialLogList(String token , Integer pageIndex, Integer pageSize, MaterialLog m) { DataWrapper<List<MaterialLogPojo>> dataWrappers = new DataWrapper<List<MaterialLogPojo>>(); DataWrapper<List<MaterialLog>> dataWrapper = new DataWrapper<List<MaterialLog>>(); List<MaterialLogPojo> mPojoList = new ArrayList<MaterialLogPojo>(); User userInMemory = SessionManager.getSession(token); if (userInMemory != null) { dataWrapper=materialLogDao.getMaterialLogList(pageIndex,pageSize,m); if(dataWrapper.getData()!=null) { if(dataWrapper.getData().size()>0) { for(int i=0;i<dataWrapper.getData().size();i++) { MaterialLogPojo mPojo =new MaterialLogPojo(); mPojo.setMaterialName(materialDao.getById(dataWrapper.getData().get(i).getMaterialId()).getMaterialName()); mPojo.setLogDate(Parameters.getSdfs().format(dataWrapper.getData().get(i).getLogDate())); mPojo.setId(dataWrapper.getData().get(i).getId()); mPojo.setIntro(dataWrapper.getData().get(i).getIntro()); mPojo.setNum(dataWrapper.getData().get(i).getNum()); mPojo.setSum(dataWrapper.getData().get(i).getSum()); mPojo.setLogType(dataWrapper.getData().get(i).getLogType()); if(dataWrapper.getData().get(i).getUserId()!=null){ User user= new User(); user=userDao.getById(dataWrapper.getData().get(i).getUserId()); if(user!=null){ mPojo.setUserName(user.getUserName()); } } if(mPojo!=null){ mPojoList.add(mPojo); } } } if(mPojoList!=null && mPojoList.size()>0){ dataWrappers.setData(mPojoList); dataWrappers.setTotalNumber(dataWrapper.getTotalNumber()); dataWrappers.setCurrentPage(dataWrapper.getCurrentPage()); dataWrappers.setTotalPage(dataWrapper.getTotalPage()); dataWrappers.setNumberPerPage(dataWrapper.getNumberPerPage()); } } }else{ dataWrappers.setErrorCode(ErrorCodeEnum.User_Not_Logined); } if(dataWrappers.getCallStatus()==CallStatusEnum.SUCCEED && dataWrappers.getData()==null){ List<MaterialLogPojo> pas= new ArrayList<MaterialLogPojo>(); dataWrappers.setData(pas); } return dataWrappers; } }
[ "1055337148@qq.com" ]
1055337148@qq.com
e51f0fd0ad8a133ad78293c7681323a47074ffc2
ce7868a2039974957f76b0d1a6ee3c11420de74c
/src/main/java/solutions/fairdata/openrefine/metadata/dto/project/ProjectMetadataRecordDTO.java
32368e4ee388467ac343744d6b774c672afe64a6
[ "MIT" ]
permissive
FAIRDataTeam/OpenRefine-metadata-extension
81fb104ebf987241e3af1ef7834aed51fa230b39
9c609a4cbd05b2a5576ae933361a598b373d9a92
refs/heads/develop
2022-12-10T17:11:44.603626
2021-08-13T09:56:05
2021-08-13T09:56:05
206,282,778
14
6
MIT
2022-12-06T00:43:35
2019-09-04T09:30:20
Java
UTF-8
Java
false
false
3,414
java
/** * The MIT License * Copyright © 2019 FAIR Data Team * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package solutions.fairdata.openrefine.metadata.dto.project; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import solutions.fairdata.openrefine.metadata.GenericUtils; import solutions.fairdata.openrefine.metadata.dto.metadata.CatalogDTO; import solutions.fairdata.openrefine.metadata.dto.metadata.DatasetDTO; import solutions.fairdata.openrefine.metadata.dto.metadata.DistributionDTO; import solutions.fairdata.openrefine.metadata.dto.metadata.MetadataDTO; import java.util.HashMap; @AllArgsConstructor @NoArgsConstructor @Getter @Setter public class ProjectMetadataRecordDTO { public static final String DETAIL_TYPE = "type"; public static final String DETAIL_PARENT = "parent"; public static final String DETAIL_TITLE = "title"; private String timestamp = GenericUtils.currentTimestamp(); private String uri; private HashMap<String, String> details = new HashMap<>(); public void setDetail(String name, String value) { getDetails().put(name, value); } public static ProjectMetadataRecordDTO createFor(CatalogDTO catalogDTO) { ProjectMetadataRecordDTO record = createForGeneric(catalogDTO); record.setDetail(DETAIL_TYPE, "catalog"); record.setDetail(DETAIL_PARENT, catalogDTO.getParent()); return record; } public static ProjectMetadataRecordDTO createFor(DatasetDTO datasetDTO) { ProjectMetadataRecordDTO record = createForGeneric(datasetDTO); record.setDetail(DETAIL_TYPE, "dataset"); record.setDetail(DETAIL_PARENT, datasetDTO.getParent()); return record; } public static ProjectMetadataRecordDTO createFor(DistributionDTO distributionDTO) { ProjectMetadataRecordDTO record = createForGeneric(distributionDTO); record.setDetail(DETAIL_TYPE, "distribution"); record.setDetail(DETAIL_PARENT, distributionDTO.getParent()); return record; } private static ProjectMetadataRecordDTO createForGeneric(MetadataDTO metadataDTO) { ProjectMetadataRecordDTO record = new ProjectMetadataRecordDTO(); record.setUri(metadataDTO.getIri()); record.setDetail(DETAIL_TITLE, metadataDTO.getTitle()); return record; } }
[ "noreply@github.com" ]
noreply@github.com
0700277268f8cec6ce8eeb99fc7d5fc0d2c88641
ed4572c5d2c2b3ebab71cd8c7c4f93f03804e839
/src/playerOne.java
53b27e0f159358f583df9d54b6cf2e94e45d7bfe
[]
no_license
DSenger1789/CSCI136Lab8V2
f8ffd6729dc47ae2cbc0b8796d24e8c8ac25bf53
e2cf91a985aa1e2d7777ce127a833444ebe3f30b
refs/heads/master
2020-04-04T11:56:34.677022
2018-11-04T04:59:08
2018-11-04T04:59:08
155,908,941
0
0
null
null
null
null
UTF-8
Java
false
false
695
java
//Wit Sampson & Dustin Senger // Data Created: 11/03/2018 // The purpose of this class is to put the player into the game, the one that is being played by the user public class playerOne { private String playerName; private String imagePath; private int itemCollected; public playerOne(String playerName,int itemCollected){ this.playerName = playerName; this.itemCollected = itemCollected; } public String getImagePath() { return imagePath; } /*public void Movement() { Movement move = new Movement(playerName); } */ public int collectingItems(int itemCollected) { return 0; } public String getPlayerName() { return playerName; } }
[ "Dustin@LAPTOP-EJSSKTB1" ]
Dustin@LAPTOP-EJSSKTB1
61eacb045bb8c8f74c4552db18b5afd1f6d1bcda
7eee09f01b12be9c130ad7c49acf255b5ab37420
/UnRarLibrary/src/main/java/com/gstarcad/unrar/library/org/apache/tika/Tika.java
380c97e05955364dc66c1fd1e7bd7ab0dce16374
[]
no_license
laugha/UnZipRarFile
50b86d44e5b0801c3abc214dab8bb0b7957f6489
e6e1a173d0c77285f4db263b08444b3c172979e1
refs/heads/master
2020-04-17T21:43:21.814144
2018-12-19T06:23:26
2018-12-19T06:23:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
14,232
java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.gstarcad.unrar.library.org.apache.tika; import com.gstarcad.unrar.library.org.apache.tika.config.TikaConfig; import com.gstarcad.unrar.library.org.apache.tika.detect.Detector; import com.gstarcad.unrar.library.org.apache.tika.exception.TikaException; import com.gstarcad.unrar.library.org.apache.tika.io.TikaInputStream; import com.gstarcad.unrar.library.org.apache.tika.metadata.Metadata; import com.gstarcad.unrar.library.org.apache.tika.parser.AutoDetectParser; import com.gstarcad.unrar.library.org.apache.tika.parser.ParseContext; import com.gstarcad.unrar.library.org.apache.tika.parser.Parser; import com.gstarcad.unrar.library.org.apache.tika.parser.ParsingReader; import com.gstarcad.unrar.library.org.apache.tika.sax.BodyContentHandler; import com.gstarcad.unrar.library.org.apache.tika.sax.WriteOutContentHandler; import java.io.BufferedInputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.net.URL; import org.xml.sax.SAXException; /** * Facade class for accessing Tika functionality. This class hides much of * the underlying complexity of the lower level Tika classes and provides * simple methods for many common parsing and type detection operations. * * @since Apache Tika 0.5 * @see Detector */ public class Tika { /** * The detector instance used by this facade. */ private final Detector detector; /** * The parser instance used by this facade. */ private final Parser parser; /** * Maximum length of the strings returned by the parseToString methods. * Used to prevent out of memory problems with huge input documents. * The default setting is 100k characters. */ private int maxStringLength = 100 * 1000; /** * Creates a Tika facade using the given detector and parser instances. * * @since Apache Tika 0.8 * @param detector type detector * @param parser document parser */ public Tika(Detector detector, Parser parser) { this.detector = detector; this.parser = parser; } /** * Creates a Tika facade using the given configuration. * * @param config Tika configuration */ public Tika(TikaConfig config) { this(config.getMimeRepository(), new AutoDetectParser(config)); } /** * Creates a Tika facade using the default configuration. */ public Tika() { this(TikaConfig.getDefaultConfig()); } /** * Creates a Tika facade using the given detector instance and the * default parser configuration. * * @since Apache Tika 0.8 * @param detector type detector */ public Tika(Detector detector) { this(detector, new AutoDetectParser(detector)); } /** * Detects the media type of the given document. The type detection is * based on the content of the given document stream and any given * document metadata. The document stream can be <code>null</code>, * in which case only the given document metadata is used for type * detection. * <p> * If the document stream supports the * {@link InputStream#markSupported() mark feature}, then the stream is * marked and reset to the original position before this method returns. * Only a limited number of bytes are read from the stream. * <p> * The given document stream is <em>not</em> closed by this method. * <p> * Unlike in the {@link #parse(InputStream, Metadata)} method, the * given document metadata is <em>not</em> modified by this method. * * @param stream the document stream, or <code>null</code> * @param metadata document metadata * @return detected media type * @throws IOException if the stream can not be read */ public String detect(InputStream stream, Metadata metadata) throws IOException { if (stream == null || stream.markSupported()) { return detector.detect(stream, metadata).toString(); } else { return detector.detect( new BufferedInputStream(stream), metadata).toString(); } } /** * Detects the media type of the given document. The type detection is * based on the content of the given document stream. * <p> * If the document stream supports the * {@link InputStream#markSupported() mark feature}, then the stream is * marked and reset to the original position before this method returns. * Only a limited number of bytes are read from the stream. * <p> * The given document stream is <em>not</em> closed by this method. * * @param stream the document stream * @return detected media type * @throws IOException if the stream can not be read */ public String detect(InputStream stream) throws IOException { return detect(stream, new Metadata()); } /** * Detects the media type of the given file. The type detection is * based on the document content and a potential known file extension. * <p> * Use the {@link #detect(String)} method when you want to detect the * type of the document without actually accessing the file. * * @param file the file * @return detected media type * @throws IOException if the file can not be read */ public String detect(File file) throws IOException { return detect(file.toURI().toURL()); } /** * Detects the media type of the resource at the given URL. The type * detection is based on the document content and a potential known * file extension included in the URL. * <p> * Use the {@link #detect(String)} method when you want to detect the * type of the document without actually accessing the URL. * * @param url the URL of the resource * @return detected media type * @throws IOException if the resource can not be read */ public String detect(URL url) throws IOException { Metadata metadata = new Metadata(); InputStream stream = TikaInputStream.get(url, metadata); try { return detect(stream, metadata); } finally { stream.close(); } } /** * Detects the media type of a document with the given file name. * The type detection is based on known file name extensions. * <p> * The given name can also be a URL or a full file path. In such cases * only the file name part of the string is used for type detection. * * @param name the file name of the document * @return detected media type */ public String detect(String name) { Metadata metadata = new Metadata(); metadata.set(Metadata.RESOURCE_NAME_KEY, name); try { return detect(null, metadata); } catch (IOException e) { throw new IllegalStateException("Unexpected IOException", e); } } /** * Parses the given document and returns the extracted text content. * Input metadata like a file name or a content type hint can be passed * in the given metadata instance. Metadata information extracted from * the document is returned in that same metadata instance. * * @param stream the document to be parsed * @return extracted text content * @throws IOException if the document can not be read or parsed */ public Reader parse(InputStream stream, Metadata metadata) throws IOException { ParseContext context = new ParseContext(); context.set(Parser.class, parser); return new ParsingReader(parser, stream, metadata, context); } /** * Parses the given document and returns the extracted text content. * * @param stream the document to be parsed * @return extracted text content * @throws IOException if the document can not be read or parsed */ public Reader parse(InputStream stream) throws IOException { return parse(stream, new Metadata()); } /** * Parses the given file and returns the extracted text content. * * @param file the file to be parsed * @return extracted text content * @throws IOException if the file can not be read or parsed */ public Reader parse(File file) throws IOException { return parse(file.toURI().toURL()); } /** * Parses the resource at the given URL and returns the extracted * text content. * * @param url the URL of the resource to be parsed * @return extracted text content * @throws IOException if the resource can not be read or parsed */ public Reader parse(URL url) throws IOException { Metadata metadata = new Metadata(); InputStream stream = TikaInputStream.get(url, metadata); return parse(stream, metadata); } /** * Parses the given document and returns the extracted text content. * The given input stream is closed by this method. * <p> * To avoid unpredictable excess memory use, the returned string contains * only up to {@link #getMaxStringLength()} first characters extracted * from the input document. Use the {@link #setMaxStringLength(int)} * method to adjust this limitation. * * @param stream the document to be parsed * @param metadata document metadata * @return extracted text content * @throws IOException if the document can not be read * @throws TikaException if the document can not be parsed */ public String parseToString(InputStream stream, Metadata metadata) throws IOException, TikaException { WriteOutContentHandler handler = new WriteOutContentHandler(maxStringLength); try { ParseContext context = new ParseContext(); context.set(Parser.class, parser); parser.parse( stream, new BodyContentHandler(handler), metadata, context); } catch (SAXException e) { if (!handler.isWriteLimitReached(e)) { // This should never happen with BodyContentHandler... throw new TikaException("Unexpected SAX processing failure", e); } } finally { stream.close(); } return handler.toString(); } /** * Parses the given document and returns the extracted text content. * The given input stream is closed by this method. * <p> * To avoid unpredictable excess memory use, the returned string contains * only up to {@link #getMaxStringLength()} first characters extracted * from the input document. Use the {@link #setMaxStringLength(int)} * method to adjust this limitation. * * @param stream the document to be parsed * @return extracted text content * @throws IOException if the document can not be read * @throws TikaException if the document can not be parsed */ public String parseToString(InputStream stream) throws IOException, TikaException { return parseToString(stream, new Metadata()); } /** * Parses the given file and returns the extracted text content. * <p> * To avoid unpredictable excess memory use, the returned string contains * only up to {@link #getMaxStringLength()} first characters extracted * from the input document. Use the {@link #setMaxStringLength(int)} * method to adjust this limitation. * * @param file the file to be parsed * @return extracted text content * @throws IOException if the file can not be read * @throws TikaException if the file can not be parsed */ public String parseToString(File file) throws IOException, TikaException { return parseToString(file.toURI().toURL()); } /** * Parses the resource at the given URL and returns the extracted * text content. * <p> * To avoid unpredictable excess memory use, the returned string contains * only up to {@link #getMaxStringLength()} first characters extracted * from the input document. Use the {@link #setMaxStringLength(int)} * method to adjust this limitation. * * @param url the URL of the resource to be parsed * @return extracted text content * @throws IOException if the resource can not be read * @throws TikaException if the resource can not be parsed */ public String parseToString(URL url) throws IOException, TikaException { Metadata metadata = new Metadata(); InputStream stream = TikaInputStream.get(url, metadata); return parseToString(stream, metadata); } /** * Returns the maximum length of strings returned by the * parseToString methods. * * @since Apache Tika 0.7 * @return maximum string length, or -1 if the limit has been disabled */ public int getMaxStringLength() { return maxStringLength; } /** * Sets the maximum length of strings returned by the parseToString * methods. * * @since Apache Tika 0.7 * @param maxStringLength maximum string length, * or -1 to disable this limit */ public void setMaxStringLength(int maxStringLength) { this.maxStringLength = maxStringLength; } }
[ "renjiebaidu@163.com" ]
renjiebaidu@163.com
4bb9fa04144d011173e2d5f1f316dff6552d63ef
31bac01d09b4358b943902831dbaf8d2a39a4ebd
/src/main/java/cn/kpy/SpringJDBC/ProgramTransaction/StudentDAOImpl.java
813f1b93fb04659fcae64992aae9a4450adc0dea
[]
no_license
Jackpy-node/Spring
cb72252442d9518690e8052ffd9d29683c63854b
941c7583b73c5218b51e707010b4d18c98017b11
refs/heads/master
2022-07-20T05:53:02.175299
2020-05-17T02:18:55
2020-05-17T02:18:55
176,628,812
0
0
null
2022-07-07T19:30:51
2019-03-20T01:35:48
Java
UTF-8
Java
false
false
2,664
java
package cn.kpy.SpringJDBC.ProgramTransaction; import org.springframework.dao.DataAccessException; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.transaction.PlatformTransactionManager; import org.springframework.transaction.TransactionDefinition; import org.springframework.transaction.TransactionStatus; import org.springframework.transaction.support.DefaultTransactionDefinition; import javax.sql.DataSource; import java.util.List; /** * @auther: kpy * @version: 1.0 * @Package: cn.kpy.SpringJDBC.ProgramTransaction * @data: 2019-4-2 21:33 * @discription: 数据库接口实现类 **/ public class StudentDAOImpl implements StudentDAO{ //用于通过xml配置文件加载数据库驱动 private DataSource dataSource; //Spring JDBC工具类 private JdbcTemplate jdbcTemplate; //Spring JDBC事务管理工具类 private PlatformTransactionManager platformTransactionManager; @Override public void setDataSource(DataSource dataSource) { this.dataSource=dataSource; jdbcTemplate=new JdbcTemplate(dataSource); } public void setPlatformTransactionManager(PlatformTransactionManager platformTransactionManager) { this.platformTransactionManager = platformTransactionManager; } @Override public void Create(String name, int age, int marks, int year) { //建立事务 TransactionDefinition transactionDefinition=new DefaultTransactionDefinition(); //开启事务 TransactionStatus transactionStatus=platformTransactionManager.getTransaction(transactionDefinition); try { String SQL1 = "insert into student (name, age) value (?,?)"; jdbcTemplate.update(SQL1, name, age); String SQL2 = "select max(id) from student"; int sid = jdbcTemplate.queryForObject(SQL2, null, int.class); String SQL3 = "insert into marks (sid,marks,year) value (?,?,?)"; jdbcTemplate.update(SQL3, sid, marks, year); System.out.println("Create Name=" + name + " Age=" + age); platformTransactionManager.commit(transactionStatus); } catch (DataAccessException e){ System.out.println("Error in creating record, rolling back"); platformTransactionManager.rollback(transactionStatus); e.printStackTrace(); } } @Override public List<StudentMarks> ListStudentMarks() { String SQL="select * from student,marks where student.id=marks.sid"; List<StudentMarks> StudentMarks=jdbcTemplate.query(SQL, new StudentMarksMapper()); return StudentMarks; } }
[ "1760779801@qq.com" ]
1760779801@qq.com
8cbf0b102550781618cbbb9f59dd3a1f81d69888
dd949f215d968f2ee69bf85571fd63e4f085a869
/systems/css-2011-teams/green/subarchitectures/motivation.sa/lib/bnj-src/edu/ksu/cis/bnj/ver3/core/CPF.java
c9a7d0aa3a2585c14e40fcc94fe0a21544f9720f
[]
no_license
marc-hanheide/cogx
a3fd395805f1b0ad7d713a05b9256312757b37a9
cb9a9c9cdfeba02afac6a83d03b7c6bb778edb95
refs/heads/master
2022-03-16T23:36:21.951317
2013-12-10T23:49:07
2013-12-10T23:49:07
219,460,352
1
2
null
null
null
null
UTF-8
Java
false
false
18,064
java
/* * This file is part of Bayesian Network for Java (BNJ). * Version 3.3+ * * BNJ is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * BNJ is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with BNJ in LICENSE.txt file; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * BNJ Version History * --------------------------------------------- * BN tools Jan 2000-May 2002 * * prealpha- January 200 - June 2001 * Benjamin Perry, Haipeng Guo, Laura Haverkamp * Version 1- June 2001 - May 2002 * Haipeng Guo, Benjamin Perry, Julie A. Thornton BNJ * * Bayesian Network for Java (BNJ). * Version 1 - May 2002 - July 2003 * release: v1.03a 29 July 2003 * Infrastructure - Roby Joehanes, Haipeng Guo, Benjamin Perry, Julie A. Thornton * Modules - Sonal S. Junnarkar * Version 2 - August 2003 - July 2004 * release: v2.03a 08 July 2004 * Infrastructure - Roby Joehanes, Julie A. Thornton * Modules - Siddharth Chandak, Prashanth Boddhireddy, Chris H. Meyer, Charlie L. Thornton, Bart Peinter * Version 3 - August 2004 - Present * Infrastructure - Jeffrey M. Barber * Modules - William H. Hsu, Andrew L. King, Chris H. Meyer, Julie A. Thornton * --------------------------------------------- */package edu.ksu.cis.bnj.ver3.core; import edu.ksu.cis.bnj.ver3.core.lazy.CacheManager; import edu.ksu.cis.bnj.ver3.core.lazy.Divide; import edu.ksu.cis.bnj.ver3.core.lazy.Projection; import edu.ksu.cis.bnj.ver3.core.lazy.Multiply; import edu.ksu.cis.bnj.ver3.core.sparse.Sparse; import edu.ksu.cis.bnj.ver3.core.values.Field; import edu.ksu.cis.bnj.ver3.core.values.ValueDouble; import edu.ksu.cis.bnj.ver3.core.values.ValueFloat; import edu.ksu.cis.bnj.ver3.core.values.ValueRational; import edu.ksu.cis.bnj.ver3.core.values.ValueZero; /*! * \file CPF.java * \author Jeffrey M. Barber */ public class CPF { public static boolean _LazyEvalEnabled; protected Value[] _Values; protected BeliefNode[] _DomainProduct; protected int[] _SizeBuffer; /*! Creates an empty CPF */ public CPF() { _Values = null; _DomainProduct = null; } /*! Get the domain product * \return the product domain */ public BeliefNode[] getDomainProduct() { return _DomainProduct; } /*! Get the size of the table * \return the number of elements in the table */ public int size() { return _Values.length; } /*! Construct an empty CPF from a prebuilt domain * \param[in] productdomain The new product domain * \param[in] zeroOut should the values be set to zero */ private void buildZero(BeliefNode[] productdomain, boolean zeroOut) { _DomainProduct = productdomain; _SizeBuffer = new int[_DomainProduct.length]; int i; int s = 1; for (i = 0; i < productdomain.length; i++) { _SizeBuffer[i] = productdomain[i].getDomain().getOrder(); s *= productdomain[i].getDomain().getOrder(); } _Values = new Value[s]; if(zeroOut) { Value zero = ValueZero.SingletonZero; for (i = 0; i < s; i++) { _Values[i] = zero; } } } /*! Construct an empty CPF from a domain * \param[in] nodes the product domain */ public CPF(BeliefNode[] nodes) { buildZero(nodes,true); } /*! Construct a null CPF from a domain * \param[in] nodes the product domain * \param[in] isNull should the nodes be inited */ public CPF(BeliefNode[] nodes, boolean isNull) { buildZero(nodes,!isNull); } /*! Get the sum of the values for a query, q[i] = k, k >= 0 -> specific value, -1 all values, per domain * \param[in] query the query variable * \return the value or sum of values */ public Value get(int[] query) { for (int k = 0; k < query.length; k++) { if (query[k] == -1) { Value s = ValueZero.SingletonZero; for (int j = 0; j < _SizeBuffer[k]; j++) { query[k] = j; Value p = get(query); s = Field.add(s, p); } query[k] = -1; return s; } } return _Values[addr2realaddr(query)]; } /*! Put a value into a cell/multiple cells * \todo remove recursion * \param[in] query the address/es for which to place the value * \param[in] v the value to put/replicate in places */ public void put(int[] query, Value v) { for (int k = 0; k < query.length; k++) { if (query[k] == -1) { for (int j = 0; j < _SizeBuffer[k]; j++) { query[k] = j; put(query, v); } query[k] = -1; return; } } _Values[addr2realaddr(query)] = v; } /*! Get an absolute/real address * \param[in] realaddr the absolute address * \return the value at the location */ public Value get(int realaddr) { return _Values[realaddr]; } /*! Pput a value at an absolute/real address * \param[in] realaddr the absolute address * \param[in] v the value to put */ public void put(int realaddr, Value v) { _Values[realaddr] = v; } /*! Convert between logical to real address (absolute) [MULT-adder] [fairly expensive] * \param[in] addr the logical address * \return the absolute/real */ public int addr2realaddr(int[] addr) { int realAddr = 0; for (int i = 0; i < addr.length; i++) { realAddr *= _SizeBuffer[i]; //_DomainProduct[i].getDomain().getOrder(); realAddr += addr[i]; } return realAddr; } /*! Convert between a real address and a logical address [Div-modul] [very expensive] * \param[in] realaddr the absolute/real address * \return the logical address */ public int[] realaddr2addr(int realaddr) { int[] addr = new int[_DomainProduct.length]; int run = realaddr; for (int i = _DomainProduct.length - 1; i >= 0; i--) { addr[i] = run % _SizeBuffer[i]; run = (run - addr[i]) / _SizeBuffer[i]; } return addr; } /*! Transform a query formed in another cpf to this one * \param query the query * \param original the original product space * \return the subquery */ public int[] getSubQuery(int[] query, BeliefNode[] original) { return CPF.getSubQuery(query, original, _DomainProduct); } /*! Transform a query formed in another cpf to this one * \param[in] query the query * \param[in] original the original product space * \param[in] subset the subset product space * \return the subquery */ public static int[] getSubQuery(int[] query, BeliefNode[] original, BeliefNode[] subset) { int[] map = new int[subset.length]; for (int k = 0; k < subset.length; k++) { map[k] = -1; for (int k2 = 0; k2 < original.length; k2++) { if (subset[k] == original[k2]) { map[k] = query[k2]; k2 = original.length; } } } return map; } /*! Faster opt for doing subqueries, factors subqueries processing from n^2 to n * \param[in] original the original product space * \param[in] subset the sub product space * \return */ public static int[] getProjectionMapping(BeliefNode[] original, BeliefNode[] subset) { int[] map = new int[subset.length]; for (int k = 0; k < subset.length; k++) { map[k] = -1; for (int k2 = 0; k2 < original.length; k2++) { if (subset[k] == original[k2]) { map[k] = k2; k2 = original.length; } } } return map; } /*! Apply a projection mapping to build a sub query * \param[in] OriginalQuery the original query * \param[in] Projection the projection * \param[out] QueryResult the result */ public static void applyProjectionMapping(int[] OriginalQuery, int[] Projection, int[] QueryResult) { for (int i = 0; i < Projection.length; i++) { if (Projection[i] >= 0) { QueryResult[i] = OriginalQuery[Projection[i]]; } else { QueryResult[i] = -1; } } } /*! Add one to an addr isomorphic to addOne(q) => realaddr(addr2realaddr(q)+1), but FASTER * \param[in,out] addr the address */ public boolean addOne(int addr[]) { for(int k = addr.length - 1; k >= 0; k--) { addr[k]++; if(addr[k] >= _SizeBuffer[k]) { addr[k] = 0; if(k==0) { return true; } } else { return false; } } return false; } public double Ratio() { int n = 0; for(int i = 0; i < _Values.length; i++) { if(_Values[i] instanceof ValueZero) { n++; } else if(_Values[i] instanceof ValueDouble) { double v = ((ValueDouble)_Values[i]).getValue(); if(Math.abs(v) < 0.00001) n++; } } double R = n / (double) _Values.length; System.out.println("On Cache, #zeros/"+_Values.length + " = " + R); return R; } public static CPF SparseTest(CPF x) { return x; } /*! Extract a cpf from the given subset * \param[in] subset the sub product space * \return the new CPF founded on the sub product space */ public CPF extract(BeliefNode[] subset) { if(this.isSubClass()) { CPF next = new Projection(this, subset); if(next.canCache()) { return SparseTest(next.hardcopy()); } return next; } CPF nCPF = new CPF(subset,false); int[] projection = CPF.getProjectionMapping(_DomainProduct, subset); int[] nQ = nCPF.realaddr2addr(0); int[] Q = realaddr2addr(0); for (int i = 0; i < size(); i++) { Value mV = get(i); CPF.applyProjectionMapping(Q, projection, nQ); Value oV = nCPF.get(nQ); nCPF.put(nQ, Field.add(mV, oV)); addOne(Q); } return SparseTest(nCPF); } /*! Expand by replication (can do extract, not as fast) * \param[in] superset the super product space * \return the new CPF founded on the super product space */ public CPF expand(BeliefNode[] superset) { if(this.isSubClass()) { CPF next = new Projection(this, superset); if(next.canCache()) { return SparseTest(next.hardcopy()); } return next; } CPF nCPF = new CPF(superset,true); int[] projection = CPF.getProjectionMapping(superset, _DomainProduct); int[] nQ = realaddr2addr(0); int[] Q = nCPF.realaddr2addr(0); for (int i = 0; i < nCPF.size(); i++) { CPF.applyProjectionMapping(Q, projection, nQ); nCPF.put(i, get(nQ)); nCPF.addOne(Q); } return SparseTest(nCPF); } /*! Multiply lhs by rhs * \param[in] lhs * \param[in] rhs * \return lhs * rhs */ static public CPF multiply(CPF lhs, CPF rhs) { if(lhs.isSubClass() || rhs.isSubClass()) { CPF next = new Multiply(lhs,rhs); if(next.canCache()) { return SparseTest(next.hardcopy()); } return next; } CPF rhscomp = CPF.getCompatible(lhs, rhs); for (int i = 0; i < lhs.size(); i++) { Value a = lhs.get(i); Value b = rhscomp.get(i); lhs.put(i, Field.mult(a, b)); } return lhs; } /*! Divide lhs by rhs * \param[in] lhs * \param[in] rhs * \return lhs / rhs */ static public CPF divide(CPF lhs, CPF rhs) { if(lhs.isSubClass() || rhs.isSubClass()) { CPF next = new Divide(lhs,rhs); if(next.canCache()) { return SparseTest(next.hardcopy()); } return next; } CPF rhscomp = CPF.getCompatible(lhs, rhs); for (int i = 0; i < lhs.size(); i++) { Value a = lhs.get(i); Value b = rhscomp.get(i); lhs.put(i, Field.divide(a, b)); } return lhs; } /*! normalize with lazy, assumes cacheable and does hardcopy which will trigger * if cpf is subclass, return new normalized CPF, else cpf is normalized */ public static CPF normalize(CPF cpf) { if(cpf.isSubClass()) { CPF norm = cpf.hardcopy(); norm.normalize(); return norm; } else { cpf.normalize(); return cpf; } } /*! Normalize by the entire sum of the CPF * this := cpf divide / sum(cpf) */ public void normalize() { if(isSubClass()) { System.out.println("lazy not done (norm)"); return; } Value rSum = new ValueZero(); for (int i = 0; i < size(); i++) { Value a = get(i); rSum = Field.add(rSum, a); } for (int i = 0; i < size(); i++) { Value a = get(i); put(i, Field.divide(a, rSum)); } } /*! Normalize each column * this := cpf divide / sum(col)) */ public void normalizeByDomain() { if(isSubClass()) { System.out.println("lazy not done (normdom)"); return; } int dN = _DomainProduct[0].getDomain().getOrder(); for (int k = 0; k < size() / dN; k++) { Value rSum = new ValueZero(); for (int i = 0; i < dN; i++) { Value a = get(i * size() / dN + k); rSum = Field.add(rSum, a); } for (int i = 0; i < dN; i++) { Value a = get(i * size() / dN + k); put(i * size() / dN + k, Field.divide(a, rSum)); } } } /*! Return the compatible B such that A o B works where o = * or / * \param[in] A the unchange * \param[in] B the CPF to check for compatibility * \return a new CPF that is compatible with operators on A */ public static CPF getCompatible(CPF A, CPF B) { if(A.isSubClass() || B.isSubClass()) { System.out.println("lazy not done getcomp"); return null; } BeliefNode[] X = A.getDomainProduct(); BeliefNode[] Y = B.getDomainProduct(); if (A.size() != B.size()) { CPF R = B.expand(X); return R; } else { if(X.length == Y.length) { for (int i = 0; i < X.length; i++) { if (X[i].getName() != Y[i].getName()) { CPF R2 = B.expand(X); return R2; } } } else { return B.expand(X); } return B; } } /*! Convert the entries in the table from double to rational * \todo: make visitor? hack better? */ public void convertDouble2Rational() { for (int i = 0; i < size(); i++) { Value mV = get(i); if (mV instanceof ValueDouble) { double vd = ((ValueDouble) mV).getValue(); int top = (int) (vd * 10000); int bottom = 10000; put(i, new ValueRational(top, bottom)); } } } /*! Convert the entries in the table from double to float * \todo: make visitor? hack better? */ public void convertDouble2Float() { for (int i = 0; i < size(); i++) { Value mV = get(i); if (mV instanceof ValueDouble) { double vd = ((ValueDouble) mV).getValue(); put(i, new ValueFloat((float)vd)); } } } /*! Zero based on evidence * \param evNodes evNodes is subset of nodes that has evidence * \todo make faster?? */ public void zeroExceptForNodeEvidence(BeliefNode[] evNodes) { int[] query = realaddr2addr(0); int[] zero = realaddr2addr(0); for (int i = 0; i < zero.length; i++) { zero[i] = -1; for (int j = 0; j < evNodes.length; j++) { if (evNodes[j] == _DomainProduct[i]) { if (evNodes[j].getEvidence() instanceof DiscreteEvidence) { DiscreteEvidence DE = (DiscreteEvidence) evNodes[j].getEvidence(); zero[i] = DE.getDirectValue(); //zero[i] = evNodes[j].getEvidence().getEvidenceValue(); } } } } for (int i = 0; i < size(); i++) { boolean keep = true; for (int j = 0; j < zero.length; j++) { keep = keep && (zero[j] == -1 || zero[j] == query[j]); } if (!keep) put(i, ValueZero.SingletonZero); addOne(query); } } /*! Change the domain of a CPF * \param cpf - the original cpf * \param bad - the bad node * \param domNew - the new domain * \param map - the mapping for keeping from the old domain to the old domain * \return the new CPF with the domain rearrangement/change */ public static CPF changeDomain(CPF cpf, BeliefNode bad, Domain domNew, int[] map) { Domain Old = bad.getDomain(); bad.setDomain(domNew); BeliefNode[] prod = cpf.getDomainProduct(); CPF newCPF = new CPF(prod); int idx = -1; for (int i = 0; i < prod.length; i++) { if (prod[i] == bad) idx = i; } bad.setDomain(Old); int[] q = cpf.realaddr2addr(0); for (int i = 0; i < cpf.size(); i++) { Value v = cpf.get(i); int dQ = q[idx]; if (map[dQ] >= 0) { q[idx] = map[dQ]; bad.setDomain(domNew); newCPF.put(q, v); bad.setDomain(Old); q[idx] = dQ; } cpf.addOne(q); } bad.setDomain(Old); return newCPF; } /*! Copy a CPF * \return a copy of this */ public CPF copy() { CPF res = new CPF(this.getDomainProduct(),true); for (int i = 0; i < size(); i++) { res.put(i, _Values[i]); } return res; } /*! Copy a CPF, hard * \return a copy that works on subclassed (not as fast) */ public CPF hardcopy() { CPF res = new CPF(this.getDomainProduct(),true); boolean done = false; int[] q = res.realaddr2addr(0); while(!done) { res.put(q, get(q)); done = res.addOne(q); } return res; } /*! function that must be overrided by subclasses * \return */ public boolean isSubClass() { return false; } /*! Since using lazy eval, check to see if there is memory to cache a CPF * \return true if it can, false else wise */ public boolean canCache() { int Max = CacheManager.getInstance().getMax(); int Cur = 1; for(int i = 0; i < _SizeBuffer.length; i++) { Cur *= _SizeBuffer[i]; if(Cur >= Max) return false; } CacheManager.getInstance().grab(Cur); return true; } }
[ "marc@hanheide.net" ]
marc@hanheide.net
1c2be5712190bdff109685befb8ed73df63a025f
ffee96d08ef70627194dcb8b73a2fdabbe6aa4f9
/src/main/java/de/ropemc/api/wrapper/net/minecraft/item/ItemBed.java
0a216a91af6655fe50364bfa35d132d745d379ce
[ "MIT" ]
permissive
RopeMC/RopeMC
0db2b4dd78a1842708de69e2455b7e0f60e9b9c9
b464fb9a67e410355a6a498f2d6a2d3b0d022b3d
refs/heads/master
2021-07-09T18:04:37.632199
2019-01-02T21:48:17
2019-01-02T21:48:17
103,042,886
11
1
MIT
2018-11-24T16:06:35
2017-09-10T16:07:39
Java
UTF-8
Java
false
false
553
java
package de.ropemc.api.wrapper.net.minecraft.item; import de.ropemc.api.wrapper.net.minecraft.entity.player.EntityPlayer; import de.ropemc.api.wrapper.net.minecraft.world.World; import de.ropemc.api.wrapper.net.minecraft.util.BlockPos; import de.ropemc.api.wrapper.net.minecraft.util.EnumFacing; import de.ropemc.api.wrapper.WrappedClass; @WrappedClass("net.minecraft.item.ItemBed") public interface ItemBed { boolean onItemUse(ItemStack var0, EntityPlayer var1, World var2, BlockPos var3, EnumFacing var4, float var5, float var6, float var7); }
[ "jan@bebendorf.eu" ]
jan@bebendorf.eu
fdb1e7231730642c02e3f924453a790c31c75bab
3664316f4629e56e2cc9d86f82f4f6a1d0029646
/src/test/java/JDBC/test.java
f9fd3e811eb31c4fe7248a60c0ce957ab62f4d12
[]
no_license
Ayhanby/Book_It_Project
90e0e8f351943956c225c6317b86df4138e526b9
8f45f79eb5ffe2de0a9e2228cc32de7495b1c200
refs/heads/master
2020-11-25T10:08:41.640108
2019-08-21T15:50:44
2019-08-21T15:50:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
400
java
package JDBC; import com.BookIt.utilities.DBUtility; import org.testng.Assert; import org.testng.annotations.Test; import java.sql.SQLException; public class test { @Test public void countTest()throws SQLException, ClassNotFoundException{ int rowCount= DBUtility.getRowCount("select * from employees where job_id='IT_PROG'"); Assert.assertTrue(rowCount>0); } }
[ "yuraphd@gmail.com" ]
yuraphd@gmail.com
22d4f833514a488cb6b21d266aeef81a9030f03e
c4d7c28ddcee0d4998f593a05b8e90b6a36dca5d
/src/main/java/com/gsj/www/commodity/dao/BrandDAO.java
17b4cee69798196efe2ceb3117c00b933fc0708b
[]
no_license
haibotop/eshop1.0
1ba46eefd57f00d53ca786d5d874812f39c8f84f
37bd057400bc1f4522ff8007c5dcc1c51488a7de
refs/heads/master
2020-11-27T01:45:04.855737
2019-12-07T09:37:07
2019-12-07T09:37:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
800
java
package com.gsj.www.commodity.dao; import com.gsj.www.commodity.domain.BrandDO; import com.gsj.www.commodity.domain.BrandQuery; import java.util.List; /** * 品牌管理DAO组件接口 * @author holy */ public interface BrandDAO { /** * 分页查询品牌 * @param query 查询条件 * @return 品牌集合 */ List<BrandDO> listByPage(BrandQuery query); /** * 根据id查询品牌 * @param id 品牌id * @return 品牌 */ BrandDO getById(Long id); /** * 新增品牌 * @param brandDO 品牌 */ void save(BrandDO brandDO); /** * 更新品牌 * @param brandDO 品牌 */ void update(BrandDO brandDO); /** * 删除品牌 * @param id 品牌id */ void remove(Long id); }
[ "shengjie_forever@163.com" ]
shengjie_forever@163.com
7ebd5e531dd8a005b4c886ea0cf8b762759d2786
de15bd2a17e5b1954d8355ec5ffe3316bdcdd903
/src/main/java/com/algo/demo/Employee.java
36abc014b4e1e7f81a4ac1c28f497428e5929a9b
[]
no_license
ZaneyYe/AlgoSpace
f89f0e100f735ba3ea1481ba73f24c9a90bc9bdd
894347bfea5cb0d123028561bb1f3a7a1df418a5
refs/heads/master
2020-05-22T01:47:22.791577
2018-08-02T14:58:04
2018-08-02T14:58:04
61,711,367
1
0
null
null
null
null
UTF-8
Java
false
false
165
java
package com.algo.demo; /** * Created by yzy on 2016/10/31. */ public class Employee { public static String getSalaryName(){ return "china"; } }
[ "yezhangyuan@superjia.com" ]
yezhangyuan@superjia.com
eee2a0790a2628e9e7bb2feabcf4a66ea825cb8d
82262cdae859ded0f82346ed04ff0f407b18ea6f
/win-back/winback-core/core-service/src/main/java/com/winback/core/dto/finance/ReceivableDto.java
84bc33032b6e19b27004823f3cc7cbbfe4d608da
[]
no_license
dwifdji/real-project
75ec32805f97c6d0d8f0935f7f92902f9509a993
9ddf66dfe0493915b22132781ef121a8d4661ff8
refs/heads/master
2020-12-27T14:01:37.365982
2019-07-26T10:07:27
2019-07-26T10:07:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
362
java
package com.winback.core.dto.finance; import lombok.Data; import java.io.Serializable; @Data public class ReceivableDto implements Serializable { private String caseNo; private String customer; private String receivableBeginAt; private String receivableEndAt; private String mode; private String type; private String status; }
[ "15538068782@163.com" ]
15538068782@163.com
7e1cf5f4af6c67c477c9f59759a040fdef6ee6cd
b744075140ae49cf61b10643a109e542fe1a469b
/src/main/java/model/ProjectListBean.java
f29646286b67ae92947d90496d05eb29ed2cbfd4
[]
no_license
GuardOfDawn/DevOps-environment
7c691ceca37fcc3705b9589c8071b29c91f218bf
cd5ada4d0329cde5059a6f7a45ed1e1c670356dc
refs/heads/master
2020-05-21T18:44:18.177917
2017-07-07T16:16:24
2017-07-07T16:16:24
84,643,366
0
1
null
null
null
null
UTF-8
Java
false
false
536
java
package model; import java.io.Serializable; import java.util.List; public class ProjectListBean implements Serializable { private static final long serialVersionUID = 1L; private List<SimpleProject> projectList; public List<SimpleProject> getProjectList() { return projectList; } public void setProjectList(List<SimpleProject> projectList) { this.projectList = projectList; } public SimpleProject getProject(int index){ return projectList.get(index); } public int getSize(){ return projectList.size(); } }
[ "986721937@qq.com" ]
986721937@qq.com
12d6961f44e924a7b0411557691dc3348fe89395
365f51a57b2505f0c4ad557aba8874692d38bc22
/app/src/main/java/com/buma/utils/LazyAdapterMeetViewSubDetail.java
db23cb7008c6d9d7b3936430703d4618f64660e9
[]
no_license
bamsmart/bumaaplication
214d51e3ad2a8734d90a2390a0be8b348aae515e
27e0b7f9d891ec4d44173097ca6bcf14e7d76a36
refs/heads/master
2021-05-10T07:40:30.835410
2018-01-26T10:00:58
2018-01-26T10:00:58
118,851,627
0
0
null
null
null
null
UTF-8
Java
false
false
2,071
java
package com.buma.utils; import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.CheckBox; import com.buma.designapp.GoldenRulesMeetViewSubDetail; import com.buma.designapp.R; import java.util.ArrayList; import java.util.HashMap; public class LazyAdapterMeetViewSubDetail extends BaseAdapter { private static LayoutInflater inflater = null; public ImageLoader imageLoader; private Activity activity; private ArrayList<HashMap<String, String>> data; public LazyAdapterMeetViewSubDetail(Activity a, ArrayList<HashMap<String, String>> d) { activity = a; data = d; inflater = (LayoutInflater) activity .getSystemService(Context.LAYOUT_INFLATER_SERVICE); imageLoader = new ImageLoader(activity.getApplicationContext()); } public int getCount() { return data.size(); } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { View vi = convertView; if (convertView == null) vi = inflater.inflate( R.layout.activity_golden_rules_list_pattern_sub_detail, null); CheckBox point = (CheckBox) vi.findViewById(R.id.gr_lst_sub_checkbox); // Question HashMap<String, String> emp = new HashMap<String, String>(); emp = data.get(position); // Setting all values in listview point.setText(emp.get(GoldenRulesMeetViewSubDetail.KEY_POINT)); if (emp.get(GoldenRulesMeetViewSubDetail.KEY_KPI).toString().equals("-")) { point.setChecked(false); } else { point.setChecked(true); } return vi; } public String CheckList(String TEST) { return ""; } }
[ "bamsmart.id@gmail.com" ]
bamsmart.id@gmail.com
d6960b3ec91f481f2c4f3a42474be43da9994917
f460f9061d8d89c61746b5d35c5d369a2e9f8d4c
/src/main/java/cafytech/projectManagementDemo/ProjectManagementDemoApplication.java
dbb7ba385dbcbf5d543d31f0bf8c418bb6f4be27
[]
no_license
userofit/projectManagementDemo
bfcfa1352c4ab804a973fd3295a5ce965cc51ae2
80e6dab1fa3a1f2471014f569edf22221f43515f
refs/heads/master
2020-09-29T00:33:33.023652
2019-11-26T21:40:07
2019-11-26T21:40:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
353
java
package cafytech.projectManagementDemo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ProjectManagementDemoApplication { public static void main(String[] args) { SpringApplication.run(ProjectManagementDemoApplication.class, args); } }
[ "cafy.jy@outlook.com" ]
cafy.jy@outlook.com
e7b5613d5882bfca1f4b39a4bbe1169751785f86
0225206b32a529dbf3647ca83f198f5fdd8ae2ed
/MyFirstSession/src/com/myfirstsession/Cars.java
5d3f0823bd5872c2bc553b2d43a2877d14fae9fe
[]
no_license
henry-49/workspace
9c7a29eaa973dea49bb3b7d1119bc3d324fbf749
db0059e039c154343d9787802f5ab682ba88474d
refs/heads/master
2022-12-29T19:24:12.435586
2019-06-30T13:33:23
2019-06-30T13:33:23
196,766,946
0
0
null
2022-12-16T01:42:25
2019-07-13T21:13:20
CSS
UTF-8
Java
false
false
68
java
package com.myfirstsession; public class Cars extends Vehicles{ }
[ "henrynwadiogor@gmail.com" ]
henrynwadiogor@gmail.com
e3a07ef7bc0713c480b8649f0016ca82e64997bd
6553b26e6f35ec452c5cc67f2e014644fdfd663c
/TurnbasedGame/src/com/company/Main.java
96ea332070331795b90c3bb7e5ea8d77537066c2
[]
no_license
karellje/JavaGame
eb01b0e363c8c98cedf35fc543db19f0bc980f90
f9daea8f5500aa3b0e2e2d31a82e7459af242f9f
refs/heads/main
2023-02-27T16:29:24.746213
2021-01-30T20:06:16
2021-01-30T20:06:16
334,499,421
0
0
null
null
null
null
UTF-8
Java
false
false
1,037
java
package com.company; public class Main { public static void main(String[] args) { Player player; String saveFile = "player.save"; // loadObject() returnerar typen Object, så vi måste konvertera till Player // med en "type cast", alltså nya typen i parentes före värdet av gamla typen. if (FileUtils.loadObject(saveFile) != null) player = (Player) FileUtils.loadObject(saveFile); else { System.out.println("ditt namn: "); final String playerName = Utils.getUserInput(); // Ingen användbar save hittas, instansiera ett nytt objekt player = new Human(playerName, 40); } System.out.println("Hej " + player.getName()); new Game(player); if(!player.isDead()){ FileUtils.saveObject(player, saveFile); System.out.println("thank you for playing! come again and we remember you"); }else { System.out.println("thank you for playing!"); } } }
[ "noreply@github.com" ]
noreply@github.com
142b1b0b274722fab32d9a4dd2a29395f57add96
f58aa505ccd3e7658e40847aef47d80bb01665c0
/order/src/main/java/com/fengchao/order/model/KuaidiCode.java
c626b1ceb7f44be1590e1c9a20c939624219a93f
[]
no_license
songbw/mall-service
fd8f9ef03764ff4b3fbb130f00e3c70e5bf201a6
be75245477bc7301f45c021ffae49ff2dc520557
refs/heads/master
2023-06-13T06:55:04.177457
2019-12-03T09:44:22
2019-12-03T09:44:22
382,758,155
0
0
null
null
null
null
UTF-8
Java
false
false
785
java
package com.fengchao.order.model; import java.util.Date; public class KuaidiCode { private Integer id; private String name; private String code; private Date createdAt; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name == null ? null : name.trim(); } public String getCode() { return code; } public void setCode(String code) { this.code = code == null ? null : code.trim(); } public Date getCreatedAt() { return createdAt; } public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; } }
[ "bingwei.song@weesharing.com" ]
bingwei.song@weesharing.com
832e8ba38c35cf17dbe322536e7918b06882ccaa
df0f9793c8bd31b31348a5ff05a2994823366da4
/src/main/java/com/rriverdev/MessageConfig.java
57eb55423b5ad066a8cfb947815dd4dc576156b9
[]
no_license
rriverdev/mediapp-backend
a5c5b06f11a5070f9a26da02e8f79426b2d3ad47
99406d24f4126555b3687226a309aa6d431c98b8
refs/heads/master
2023-05-08T23:43:51.693442
2021-05-30T06:05:19
2021-05-30T06:05:19
368,005,420
0
0
null
null
null
null
UTF-8
Java
false
false
1,497
java
package com.rriverdev; import java.util.Locale; import org.springframework.context.MessageSource; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.support.ReloadableResourceBundleMessageSource; import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean; import org.springframework.web.servlet.LocaleResolver; import org.springframework.web.servlet.i18n.SessionLocaleResolver; @Configuration public class MessageConfig { //cargar los properties de lenguage @Bean public MessageSource messageSource() { ReloadableResourceBundleMessageSource messageSource = new ReloadableResourceBundleMessageSource(); messageSource.setBasename("classpath:messages"); messageSource.setDefaultEncoding("UTF-8"); return messageSource; } // Establece por dedafult un local (localizacion de idioma) @Bean public LocaleResolver localeResolver () { SessionLocaleResolver slr = new SessionLocaleResolver(); slr.setDefaultLocale(Locale.ROOT); // slr.setDefaultLocale(Locale.FRANCE); //tomara el properties messages_fr.properties // slr.setDefaultLocale(Locale.ENGLISH); //tomara el properties messages_en.properties return slr; } //resuelve las variables en messages @Bean public LocalValidatorFactoryBean getValidator() { LocalValidatorFactoryBean lvfb = new LocalValidatorFactoryBean(); lvfb.setValidationMessageSource(messageSource()); return lvfb; } }
[ "ricardo.rivas@banregio.com" ]
ricardo.rivas@banregio.com
9331ee135ad08d3d6f0caa5abd215175f2c12131
9e4b17253d305ef1e72127b67da6ec6c562e4808
/src/main/test/stub/SellSituationCheck_Stub.java
3b6b1f643cda9b81829c25ad30ba6e0516a0c2a8
[]
no_license
PErFeCtISHiT/ERPsoftware
60c65f9291d1d609bb7c917fecfabbf17e7c9b7c
22fca39e0457500d3457fa8ed8282809edeed524
refs/heads/master
2021-09-04T00:14:56.740918
2018-01-13T06:38:09
2018-01-13T06:38:09
110,433,224
6
1
null
null
null
null
UTF-8
Java
false
false
221
java
package stub; import logicservice.SellSituationCheck; public class SellSituationCheck_Stub implements SellSituationCheck{ @Override public void check(){}; @Override public boolean getexcel(){ return false; }; }
[ "849798320@qq.com" ]
849798320@qq.com
c7db789c88a9c3d5eab37fc03350c29ac3beef3f
7ec0194c493e63b18ab17b33fe69a39ed6af6696
/Nulock_v1.5.0_apkpure.com_source_from_JADX/sources/org/zff/android/phone/PhoneModel.java
49b18ca058bf41b081ed709d9fd3b2752e5f98fe
[]
no_license
rasaford/CS3235
5626a6e7e05a2a57e7641e525b576b0b492d9154
44d393fb3afb5d131ad9d6317458c5f8081b0c04
refs/heads/master
2020-07-24T16:00:57.203725
2019-11-05T13:00:09
2019-11-05T13:00:09
207,975,557
0
1
null
null
null
null
UTF-8
Java
false
false
1,227
java
package org.zff.android.phone; import android.os.Build; import android.support.p000v4.p002os.EnvironmentCompat; public class PhoneModel { public static final String[] LOW_PERFORMANCE_PHONE_BRAND = {"coolpad", "lenovo", "meizu", "zte"}; public static final String[] LOW_PERFORMANCE_PHONE_MODEL = {"ZTE-T U960s"}; public static final String[] PHONE_BRAND = {"Coolpad", "HUAWEI", "Lenovo", "LG", "meizu", "ZTE"}; private String mPhoneBrand; private String mPhoneModel; public PhoneModel() { this.mPhoneModel = EnvironmentCompat.MEDIA_UNKNOWN; this.mPhoneBrand = EnvironmentCompat.MEDIA_UNKNOWN; this.mPhoneModel = Build.MODEL; this.mPhoneBrand = Build.BRAND; } public boolean isLowPerformanceBrand() { for (String equals : LOW_PERFORMANCE_PHONE_BRAND) { if (equals.equals(this.mPhoneBrand.toLowerCase())) { return true; } } return false; } public boolean isLowPerformanceModel() { for (String equals : LOW_PERFORMANCE_PHONE_MODEL) { if (equals.equals(this.mPhoneModel.toLowerCase())) { return true; } } return false; } }
[ "fruehaufmaximilian@gmail.com" ]
fruehaufmaximilian@gmail.com
67e95af8ec581aedd549c7790dcbc108dd4c0e31
d46ece8b3c8c905b7ddbfa595ff386de302b3ed8
/src/main/java/com/formaciondbi/microservicios/app/alumnos/servces/IAlumnoService.java
deab8fe2fe9c354c637a7a31378840fe0b083cd9
[]
no_license
ibaltierra/micro-alumnos
71acc68866341ac16037120cdee9787770173e29
f1284bcccc21fb81bb1e0cf737798b472f15038f
refs/heads/master
2023-06-16T17:09:04.395497
2021-07-13T19:46:49
2021-07-13T19:46:49
374,812,735
0
0
null
null
null
null
UTF-8
Java
false
false
769
java
package com.formaciondbi.microservicios.app.alumnos.servces; import java.util.List; import com.formaciondbi.microservicios.commons.alumnos.model.entity.Alumno; import com.formaciondbi.microservicios.commons.services.ICommonService; public interface IAlumnoService extends ICommonService<Alumno>{ /** * Método que realiza la busqueda de alumnos por el nombre y/o apellido. * @param nombre * @return */ public List<Alumno> findByNombreOrApellido(final String nombre); /** * Método que busca alumnos por una lista de id's de alumnos. */ public List<Alumno> findAllById(List<Long> ids); /** * Método que elimina un curso alumno por id del alumno del microservicio cursos. * @param id */ public void eliminarCursoAlumnoPorId(final Long id); }
[ "mrnar-86@hotmail.com" ]
mrnar-86@hotmail.com
fbb2415704ae1e94a18dd7f880157e849df783c0
964ce81b8c6b70532e2ffca0a14516755ef601d2
/Hash/Hash.java
9c39131ebd9b53913ccd4181bc96b6558d4b177a
[]
no_license
jeshi96/java
072a64dde56a51236fd42962041c7d75278de073
1f74e16ed6f2b60f173c4598db72b6de109d7c19
refs/heads/master
2020-05-29T09:27:51.994651
2015-10-15T02:12:18
2015-10-15T02:12:18
26,037,267
0
0
null
null
null
null
UTF-8
Java
false
false
7,276
java
/******************************************************************************************************** * Name: Jessica Shi * * Date: 3-26-12 * * Course: Class: Analysis of Algorithms, 1st Period * * Purpose: The Hash class reads data from the file HashData.txt, which contains names and ID numbers. * * It reads each data pair from the file and inserts the data into a Record object. It then inserts the * * Record into a hash table, with the ID number as the key, using the hash function h(x)=x%23, with * * collisions solved by chaining. It uses the ListNode class to create the linked list chains. It counts* * the number of collisions that occur during the insertion phase. After this is completed, it writes * * out the names in the hash table and outputs that and the number of collisions. It prompts the user * * for an ID number to search for until the user chooses to stop by entering -999. An appropriate * * message is printed after each ID is entered, stating the name that was found and after how many steps* * or a message stating that the name was not found. * ********************************************************************************************************/ import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.Scanner; public class Hash { //main method public static void main(String[] args) { int number=0;//initialize number, for user input later Node[] table=new Node[23];//initialize new hash table ArrayList<Record> data=createArrayList(); int collide=0;//initialize collide to keep track of the number of collisions for(Record i:data){//for each ID and name collide+=hash(table,i);//insert it into the table }//end for outputTable(table);//output the table System.out.println("Number of collisions: " +collide);//output the number of collisions while(number!=-999){//while the user has not told the program to stop number=promptForInteger(); //call promptForInteger method, which prompts the user for an ID to search for if(number!=-999)//if the user has not told the program to stop find(table,number);//find the ID in the table }//end while }//end main method //method to print the hash table, correctly formatted public static void outputTable(Node[] table){ int counter=0;//initialize counter to keep track of the row number for(Node i:table){//for each node inside the table System.out.print(counter+" ");//output the row number if(i!=null){//if there is anything in the node Node t=i;//create a new temporary node to traverse the node System.out.print(t.getData().getName());//output the first name if(t.getData().getName().length()<=11)//if the name is of a certain length, add an extra tab (for formatting) System.out.print("\t"); t=t.getNext();//go to the next name while(t!=null){//while there are more names System.out.print("\t"+t.getData().getName());//output the next name if(t.getData().getName().length()<=11)//if the name is of a certain length, add an extra tab (for formatting) System.out.print("\t"); t=t.getNext();//get the next name }//end while }//end if System.out.println();//output an extra line (for formatting) counter++;//increment the row number }//end for }//end method //method to prompt the user for an integer to search for public static int promptForInteger(){ String input; //initialize input, which is the user input int done=0; //initialize done, which is used in input protection int number=0; //initialize number, which is the final integer System.out.println("Please enter the integer you wish to search for (enter -999 to quit): ");//prompt user for the integer the user wants to search for Scanner scan = new Scanner(System.in); //initialize scanner while(done==0){//while a valid user input has not been found done=1;//set done to 1, meaning a valid user input is being found input=scan.next();//get user input try{ //in case of an error with parsing to integer (so if the user has not entered an integer) number=Integer.parseInt(input); //parse the input to an integer }//end try catch(NumberFormatException nFE){ //if there is an error done=0;//the valid user input has not been found System.out.println("Error. Please enter a valid integer (enter -999 to quit): ");//prompt user for a valid integer }//end catch }//end while return number;//return the number the user wants to search for }//end method //method to find ID or name public static void find(Node[]table,int toFind){ int index=toFind%23;//initialize the index at which to search for the ID if(table[index]==null)//if there is nothing at that index System.out.println(""+toFind+" was not found.");//the ID does not exist else{//else if there was something at that index int done=0;//initialize done, to tell if we have finished searching int time=1;//initialize time, to output the steps Node t=table[index];//initialize a temporary node to traverse the hash table if(t.getData().getID()==toFind)//if the first element is the ID done=1;//the ID was found while(t.getNext()!=null&&done==0){//while there are more elements to search and while the search is not over t=t.getNext();//go to the next element time++;//increment the number of steps if(t.getData().getID()==toFind)//if the ID has been found done=1;//the ID was found }//end while if(done==1)//if an ID was found System.out.println(t.getData().getName()+" was found after "+time+" step(s)");//output the ID else//else System.out.println(""+toFind+" was not found.");//the ID was not found }//end else }//end method //method to hash public static int hash(Node[]table, Record data){ int collide=0;//initialize collide to keep track of collisions int index=data.getID()%23;//initialize index at which to insert the ID if (table[index]==null)//if there is nothing at that index table[index]=new Node(data,null);//create a new Node else{//else if there was something at that index collide=1;//there is a collision Node t=table[index];//initialize temporary node to traverse the hash table while(t.getNext()!=null){//while there is another node t=t.getNext();//go to the next node }//end while t.setNext(new Node(data,null));//at the end of the linked list, add a new Node }//end else return collide;//return the number of collisions }//end method //method to initialize ArrayList public static ArrayList<Record> createArrayList(){ Scanner sc; //initialize scanner ArrayList <Record> data = new ArrayList <Record> (); //initialize ArrayList try{ //in case of error with scanner sc = new Scanner(new File("HashData.txt")); //create new scanner and call HashData.txt while(sc.hasNextLine()){ //if there is another entry data.add(new Record(sc.nextLine(),Integer.parseInt(sc.nextLine()))); //add the next line to the ArrayList } //end while } //end try catch(FileNotFoundException e){ //if there is an exception e.printStackTrace();//give error } //end catch return data; //return the now filled data ArrayList }//end method }//end class
[ "jessicashi@gmail.com" ]
jessicashi@gmail.com
2820d0aed1c7c1ddd5ff3b46318953f62b0b2364
b746c6fd0f6e88dea026d4c16a37f852533a4eb9
/restaurant/src/test/java/com/example/restaurant/naver/NaverClientTest.java
c123fa7643c880d21051ed2e5d5d30cd809063cf
[]
no_license
parkjekyll/fast_spring
e8df51a1ac3bc14da4df04af07ae54e008d37190
e9cbbe39254571bbe022b5470de7a41d8a202200
refs/heads/main
2023-06-28T02:33:24.253262
2021-07-24T13:08:00
2021-07-24T13:08:00
387,676,393
0
0
null
null
null
null
UTF-8
Java
false
false
1,011
java
package com.example.restaurant.naver; import com.example.restaurant.naver.dto.SearchImageReq; import com.example.restaurant.naver.dto.SearchLocalReq; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest public class NaverClientTest { @Autowired private NaverClient naverClient; @Test public void searchLocalTest(){ var search = new SearchLocalReq(); search.setQuery("갈비집"); var result = naverClient.searchLocal(search); System.out.println(result); Assertions.assertNotNull(result.getItems().stream().findFirst().get().getCategory()); } @Test public void searchImageTest(){ var search = new SearchImageReq(); search.setQuery("그레이하운드"); var result = naverClient.searchImage(search); System.out.println(result); } }
[ "parkjekyll@naver.com" ]
parkjekyll@naver.com
e4738fb0e7158c9b0c5e74df03ccc96cc6c6a7e4
fac5d6126ab147e3197448d283f9a675733f3c34
/src/main/java/dji/midware/data/manager/Dpad/DJISysPropManager.java
7dbf47a4147b7d60d8cd90b801914560ec47bbe3
[]
no_license
KnzHz/fpv_live
412e1dc8ab511b1a5889c8714352e3a373cdae2f
7902f1a4834d581ee6afd0d17d87dc90424d3097
refs/heads/master
2022-12-18T18:15:39.101486
2020-09-24T19:42:03
2020-09-24T19:42:03
294,176,898
0
0
null
2020-09-09T17:03:58
2020-09-09T17:03:57
null
UTF-8
Java
false
false
3,397
java
package dji.midware.data.manager.Dpad; import android.annotation.TargetApi; import android.content.Context; import android.os.Build; import android.provider.Settings; import dji.fieldAnnotation.EXClassNullAway; import dji.midware.data.manager.P3.ServiceManager; @EXClassNullAway public class DJISysPropManager { private static final String DEBUG_VSYNC = "sys.video.debugvsync"; private static final String FPV_BROADCAST = "prop.dji.fpv.broadcast"; public static final int MIN_SDK_VER = 17; private static final String PERSIST_BOARD = "persist.board.version"; private static final String PROP_CAMERA_FPS = "dji.camera.fps"; private static final String PROP_FPS = "prop.dji.fps"; private static final String PROP_FPV = "prop.dji.fpv"; public static final String SETTINGS_GO_3 = "dji_fps_go3_enable"; public static final String SETTINGS_GO_4 = "dji_fps_go4_enable"; private static final String TAG = "DJISysPropManager"; private static final String VALUE_DISABLE = "0"; private static final String VALUE_ENABLE = "1"; private static final String VALUE_FPS_60 = "60"; public static void setFpvBroadcastState(String state) { setProp(FPV_BROADCAST, state); } public static int getBoardVer() { return Integer.parseInt(getProp(PERSIST_BOARD, "0")); } public static boolean getEnableGo4Fps() { return getEnableGo4Fps(ServiceManager.getContext()); } @TargetApi(17) private static boolean getEnableGo4Fps(Context context) { if (Build.VERSION.SDK_INT < 17) { return false; } return "1".equals(Settings.Global.getString(context.getContentResolver(), SETTINGS_GO_4)); } public static void setFpv(int value) { setProp(PROP_FPV, "" + value); } public static void setFps(int value) { setProp(PROP_FPS, "" + value); } public static void setCamFps(int value) { setProp(PROP_CAMERA_FPS, "" + value); } public static int getFps() { return Integer.parseInt(getProp(PROP_FPS, VALUE_FPS_60)); } private static String getProp(String key, String defaultValue) { LOGE("getProp( key = " + key + ", defaultValue=" + defaultValue + ")"); String value = defaultValue; try { Class<?> c = Class.forName("android.os.SystemProperties"); value = (String) c.getMethod("get", String.class, String.class).invoke(c, key, defaultValue); } catch (Exception e) { LOGE("getProp bus-error, " + e.getMessage()); } LOGE("getProp " + key + " = " + value); return value; } private static boolean setProp(String key, String newValue) { LOGE("setProp( key = " + key + ", newValue=" + newValue + ")"); try { Class<?> c = Class.forName("android.os.SystemProperties"); c.getMethod("set", String.class, String.class).invoke(c, key, newValue); } catch (Exception e) { LOGE("set property error, " + e.getMessage()); } String checkValue = getProp(key, ""); if (checkValue == null || checkValue.equals("")) { LOGE("bus-error, checkValue = " + checkValue); return false; } LOGE("setProp onSuccess, newValue = " + checkValue); return true; } private static void LOGE(String log) { } }
[ "michael@districtrace.com" ]
michael@districtrace.com
02f01d6b98b605dd09392827ec4ef2e997ecb874
e885d7757cf4f404d39c14c910af46b33a57f000
/src/com/webs/testlink/automationsample/SampleTestFailure.java
2730f5dcb8c7441532a05fd461dcc376f5005b5d
[]
no_license
ryohang/testlinkautomationsample
eee6dd5c421b26e7e870f34f6328001b130ee05c
88bcbf26a152deb0e01a100b4f5770f9356bcb30
refs/heads/master
2016-08-07T11:29:03.397114
2011-07-23T18:11:34
2011-07-23T18:11:34
1,666,738
0
1
null
null
null
null
UTF-8
Java
false
false
393
java
package com.webs.testlink.automationsample; import org.testng.annotations.Listeners; import org.testng.annotations.Test; import static org.testng.Assert.*; import br.eti.kinoshita.tap4j.ext.testng.TestTAPReporter; @Listeners(value={TestTAPReporter.class}) public class SampleTestFailure { @Test public void FailureTest(){ assertEquals("TESTLINKSAMPLEFailure","TESTLINKSAMPLEPASS"); } }
[ "hanqinghang@Deltek.com" ]
hanqinghang@Deltek.com
3fd3113a62beed42b35d99c6fbf77f11aee5e410
29c8f43460eb1782e6b862bcf13111b8a88e75bb
/src/main/java/me/pixeldev/fullpvp/utils/DefaultFontInfo.java
06f50646e9230f4aa316a179e0221e8de8ec2bd0
[]
no_license
pixeldev/fullpvp
98da4f1d3a614c046baebd83975ef8f2e47affef
d76e56a39dafae80792bcf87b34e380729b6a974
refs/heads/master
2022-12-01T02:25:21.008499
2020-08-13T20:05:19
2020-08-13T20:05:19
282,074,460
4
2
null
null
null
null
UTF-8
Java
false
false
2,533
java
package me.pixeldev.fullpvp.utils; public enum DefaultFontInfo { A('A', 5), a('a', 5), B('B', 5), b('b', 5), C('C', 5), c('c', 5), D('D', 5), d('d', 5), E('E', 5), e('e', 5), F('F', 5), f('f', 4), G('G', 5), g('g', 5), H('H', 5), h('h', 5), I('I', 3), i('i', 1), J('J', 5), j('j', 5), K('K', 5), k('k', 4), L('L', 5), l('l', 1), M('M', 5), m('m', 5), N('N', 5), n('n', 5), O('O', 5), o('o', 5), P('P', 5), p('p', 5), Q('Q', 5), q('q', 5), R('R', 5), r('r', 5), S('S', 5), s('s', 5), T('T', 5), t('t', 4), U('U', 5), u('u', 5), V('V', 5), v('v', 5), W('W', 5), w('w', 5), X('X', 5), x('x', 5), Y('Y', 5), y('y', 5), Z('Z', 5), z('z', 5), NUM_1('1', 5), NUM_2('2', 5), NUM_3('3', 5), NUM_4('4', 5), NUM_5('5', 5), NUM_6('6', 5), NUM_7('7', 5), NUM_8('8', 5), NUM_9('9', 5), NUM_0('0', 5), EXCLAMATION_POINT('!', 1), AT_SYMBOL('@', 6), NUM_SIGN('#', 5), DOLLAR_SIGN('$', 5), PERCENT('%', 5), UP_ARROW('^', 5), AMPERSAND('&', 5), ASTERISK('*', 5), LEFT_PARENTHESIS('(', 4), RIGHT_PERENTHESIS(')', 4), MINUS('-', 5), UNDERSCORE('_', 5), PLUS_SIGN('+', 5), EQUALS_SIGN('=', 5), LEFT_CURL_BRACE('{', 4), RIGHT_CURL_BRACE('}', 4), LEFT_BRACKET('[', 3), RIGHT_BRACKET(']', 3), COLON(':', 1), SEMI_COLON(';', 1), DOUBLE_QUOTE('"', 3), SINGLE_QUOTE('\'', 1), LEFT_ARROW('<', 4), RIGHT_ARROW('>', 4), QUESTION_MARK('?', 5), SLASH('/', 5), BACK_SLASH('\\', 5), LINE('|', 1), TILDE('~', 5), TICK('`', 2), PERIOD('.', 1), COMMA(',', 1), SPACE(' ', 3), DEFAULT('a', 4); private final char character; private final int length; DefaultFontInfo(char character, int length) { this.character = character; this.length = length; } public char getCharacter(){ return this.character; } public int getLength(){ return this.length; } public int getBoldLength(){ if(this == DefaultFontInfo.SPACE) return this.getLength(); return this.length + 1; } public static DefaultFontInfo getDefaultFontInfo(char c){ for(DefaultFontInfo dFI : DefaultFontInfo.values()){ if(dFI.getCharacter() == c) return dFI; } return DefaultFontInfo.DEFAULT; } }
[ "amiranda8695@gmail.com" ]
amiranda8695@gmail.com
60a7f6abbecc4db4c23451f7bbff49186d080983
2e6a87560d74fdab9f51e801e100fa1878fc89d5
/be/src/main/java/com/coderkiemcom/perfumestoremanager/service/criteria/RolesCriteria.java
8061a9091c52552b3037028742b6c347b3c18b8b
[]
no_license
MustacheTuanVu/PerfumeStoreManagerOrginal
52bff3fc488522a22f5f6638457aed08a80589d2
4a2758394b9c2b79d3a1e1968253a3024b2e4efa
refs/heads/master
2023-04-04T17:52:29.425354
2021-04-24T06:21:33
2021-04-24T06:21:33
361,085,346
0
0
null
null
null
null
UTF-8
Java
false
false
3,958
java
package com.coderkiemcom.perfumestoremanager.service.criteria; import java.io.Serializable; import java.util.Objects; import tech.jhipster.service.Criteria; import tech.jhipster.service.filter.BooleanFilter; import tech.jhipster.service.filter.DoubleFilter; import tech.jhipster.service.filter.Filter; import tech.jhipster.service.filter.FloatFilter; import tech.jhipster.service.filter.IntegerFilter; import tech.jhipster.service.filter.LongFilter; import tech.jhipster.service.filter.StringFilter; /** * Criteria class for the {@link com.coderkiemcom.perfumestoremanager.domain.Roles} entity. This class is used * in {@link com.coderkiemcom.perfumestoremanager.web.rest.RolesResource} to receive all the possible filtering options from * the Http GET request parameters. * For example the following could be a valid request: * {@code /roles?id.greaterThan=5&attr1.contains=something&attr2.specified=false} * As Spring is unable to properly convert the types, unless specific {@link Filter} class are used, we need to use * fix type specific filters. */ public class RolesCriteria implements Serializable, Criteria { private static final long serialVersionUID = 1L; private LongFilter id; private StringFilter roleID; private StringFilter roleName; private LongFilter memberId; public RolesCriteria() {} public RolesCriteria(RolesCriteria other) { this.id = other.id == null ? null : other.id.copy(); this.roleID = other.roleID == null ? null : other.roleID.copy(); this.roleName = other.roleName == null ? null : other.roleName.copy(); this.memberId = other.memberId == null ? null : other.memberId.copy(); } @Override public RolesCriteria copy() { return new RolesCriteria(this); } public LongFilter getId() { return id; } public LongFilter id() { if (id == null) { id = new LongFilter(); } return id; } public void setId(LongFilter id) { this.id = id; } public StringFilter getRoleID() { return roleID; } public StringFilter roleID() { if (roleID == null) { roleID = new StringFilter(); } return roleID; } public void setRoleID(StringFilter roleID) { this.roleID = roleID; } public StringFilter getRoleName() { return roleName; } public StringFilter roleName() { if (roleName == null) { roleName = new StringFilter(); } return roleName; } public void setRoleName(StringFilter roleName) { this.roleName = roleName; } public LongFilter getMemberId() { return memberId; } public LongFilter memberId() { if (memberId == null) { memberId = new LongFilter(); } return memberId; } public void setMemberId(LongFilter memberId) { this.memberId = memberId; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final RolesCriteria that = (RolesCriteria) o; return ( Objects.equals(id, that.id) && Objects.equals(roleID, that.roleID) && Objects.equals(roleName, that.roleName) && Objects.equals(memberId, that.memberId) ); } @Override public int hashCode() { return Objects.hash(id, roleID, roleName, memberId); } // prettier-ignore @Override public String toString() { return "RolesCriteria{" + (id != null ? "id=" + id + ", " : "") + (roleID != null ? "roleID=" + roleID + ", " : "") + (roleName != null ? "roleName=" + roleName + ", " : "") + (memberId != null ? "memberId=" + memberId + ", " : "") + "}"; } }
[ "tuanvmustache@gmail.com" ]
tuanvmustache@gmail.com
63f9599838b25f02aa4112bcf62afa635e7c38cb
50285f056832e096d3c6ebbdd74c937d3e013e46
/2.JavaCore/src/com/codegym/task/task12/task1232/Solution.java
7edf0ce30a5da162588db955084ffb5b44713e62
[]
no_license
KorwinBieniek/CodeGymTasks
e3001cc31f52b91f9ff444ffa0f1edcaeb1116d9
edcc22ddc544d6bb5a588f514c80fe959e641884
refs/heads/master
2023-06-05T18:11:34.801760
2021-06-19T06:29:54
2021-06-19T06:29:54
343,900,386
1
1
null
null
null
null
UTF-8
Java
false
false
472
java
package com.codegym.task.task12.task1232; /* Adding new functionality */ public class Solution { public static void main(String[] args) { Pegasus horse = new Pegasus(); } public static interface CanFly { public void fly(); } public static class Horse { public void run() { } } public static class Pegasus extends Horse implements CanFly{ @Override public void fly() { } } }
[ "korwin-bieniek@wp.pl" ]
korwin-bieniek@wp.pl
9b692284defdab2f83723d1cdc064bde22f1f615
e67cb7ae1615e0c3cb4d7de261cff64b5ecd45e3
/app/src/main/java/com/example/ciyashop/activity/LogInActivity.java
6a0e0c8969063a9dd599751df76f041cae377dc6
[]
no_license
MubeenZamstudioss/Ciyashop
8ad694d35064c7021196f3a63977d4732d4de63d
bb2a6024083199d3f917854058757fcca13d9be4
refs/heads/master
2023-08-19T15:20:55.128390
2021-10-26T12:40:04
2021-10-26T12:40:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
27,185
java
package com.example.ciyashop.activity; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Color; import android.graphics.PorterDuff; import android.graphics.PorterDuffColorFilter; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.os.AsyncTask; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatDelegate; import android.text.Editable; import android.text.TextWatcher; import android.util.Base64; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.WindowManager; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; import com.ciyashop.library.apicall.PostApi; import com.ciyashop.library.apicall.URLS; import com.ciyashop.library.apicall.interfaces.OnResponseListner; import com.facebook.CallbackManager; import com.facebook.FacebookCallback; import com.facebook.FacebookException; import com.facebook.GraphRequest; import com.facebook.GraphResponse; import com.facebook.login.LoginManager; import com.facebook.login.LoginResult; import com.facebook.login.widget.LoginButton; import com.google.android.gms.auth.api.Auth; import com.google.android.gms.auth.api.signin.GoogleSignInAccount; import com.google.android.gms.auth.api.signin.GoogleSignInOptions; import com.google.android.gms.auth.api.signin.GoogleSignInResult; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.SignInButton; import com.google.android.gms.common.api.GoogleApiClient; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import com.example.ciyashop.R; import com.example.ciyashop.customview.edittext.EditTextMedium; import com.example.ciyashop.customview.edittext.EditTextRegular; import com.example.ciyashop.customview.textview.TextViewLight; import com.example.ciyashop.customview.textview.TextViewRegular; import com.example.ciyashop.model.LogIn; import com.example.ciyashop.utils.BaseActivity; import com.example.ciyashop.utils.Constant; import com.example.ciyashop.utils.RequestParamUtils; import com.example.ciyashop.utils.Utils; import com.squareup.picasso.Picasso; import org.json.JSONException; import org.json.JSONObject; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.net.URL; import java.util.Arrays; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; public class LogInActivity extends BaseActivity implements GoogleApiClient.OnConnectionFailedListener, OnResponseListner { private static final String TAG = LogInActivity.class.getSimpleName(); private static final int RC_SIGN_IN = 007; static { AppCompatDelegate.setCompatVectorFromResourcesEnabled(true); } @BindView(R.id.tvNewUser) TextView tvNewUser; @BindView(R.id.google_login_button) SignInButton google_login_button; @BindView(R.id.fb_login_button) LoginButton fb_login_button; CallbackManager callbackManager; @BindView(R.id.etEmail) EditTextRegular etEmail; @BindView(R.id.ivLogo) ImageView ivLogo; @BindView(R.id.etPass) EditTextRegular etPass; @BindView(R.id.tvSignIn) TextViewLight tvSignIn; @BindView(R.id.tvForgetPass) TextViewLight tvForgetPass; @BindView(R.id.ivBlackBackButton) ImageView ivBlackBackButton; AlertDialog alertDialog; AlertDialog alertDialog1; private GoogleApiClient mGoogleApiClient; private String pin, email, password; private String facbookImageUrl; private JSONObject fbjsonObject; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_log_in); ButterKnife.bind(this); setScreenLayoutDirection(); loginWithFB(); setColor(); if (Constant.APPLOGO != null && !Constant.APPLOGO.equals("")) { Picasso.with(this).load(Constant.APPLOGO).error(R.drawable.logo).into(ivLogo); } GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestEmail() .build(); mGoogleApiClient = new GoogleApiClient.Builder(this) .enableAutoManage(this, this) .addApi(Auth.GOOGLE_SIGN_IN_API, gso) .build(); // Customizing G+ button google_login_button.setSize(SignInButton.SIZE_STANDARD); google_login_button.setScopes(gso.getScopeArray()); ivBlackBackButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { finish(); } }); } public void setColor() { tvNewUser.setTextColor(Color.parseColor(getPreferences().getString(Constant.APP_COLOR, Constant.PRIMARY_COLOR))); tvSignIn.setBackgroundColor(Color.parseColor(getPreferences().getString(Constant.SECOND_COLOR, Constant.SECONDARY_COLOR))); tvForgetPass.setTextColor(Color.parseColor(getPreferences().getString(Constant.APP_COLOR, Constant.PRIMARY_COLOR))); Drawable mDrawable = getResources().getDrawable(R.drawable.login); mDrawable.setColorFilter(new PorterDuffColorFilter(Color.parseColor(getPreferences().getString(Constant.APP_COLOR, Constant.PRIMARY_COLOR)), PorterDuff.Mode.OVERLAY)); } @Override public void onConnectionFailed(@NonNull ConnectionResult connectionResult) { // An unresolvable error has occurred and Google APIs (including Sign-In) will not // be available. Log.d("hi", "onConnectionFailed:" + connectionResult); } @OnClick(R.id.tvSignIn) public void tvSignInClick() { if (etEmail.getText().toString().isEmpty()) { Toast.makeText(this, R.string.enter_email_address, Toast.LENGTH_SHORT).show(); } else { if (Utils.isValidEmail(etEmail.getText().toString())) { if (etPass.getText().toString().isEmpty()) { Toast.makeText(this, R.string.enter_password, Toast.LENGTH_SHORT).show(); } else { userlogin(); } } else { Toast.makeText(this, R.string.enter_valid_email_address, Toast.LENGTH_SHORT).show(); } } } public void userlogin() { if (Utils.isInternetConnected(this)) { showProgress(""); PostApi postApi = new PostApi(LogInActivity.this, RequestParamUtils.login, this, getlanuage()); JSONObject object = new JSONObject(); try { object.put(RequestParamUtils.email, etEmail.getText().toString()); object.put(RequestParamUtils.PASSWORD, etPass.getText().toString()); object.put(RequestParamUtils.deviceType, "2"); String token = getPreferences().getString(RequestParamUtils.NOTIFICATION_TOKEN, ""); object.put(RequestParamUtils.deviceToken, token); postApi.callPostApi(new URLS().LOGIN, object.toString()); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } } else { Toast.makeText(this, R.string.internet_not_working, Toast.LENGTH_LONG).show(); } } @OnClick(R.id.tvSignInWithGoogle) public void tvSignInWithGoogleClick() { Auth.GoogleSignInApi.signOut(mGoogleApiClient); signIn(); } private void signIn() { Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient); startActivityForResult(signInIntent, RC_SIGN_IN); } private void handleSignInResult(GoogleSignInResult result) { if (result.isSuccess()) { // Signed in successfully, show authenticated UI. GoogleSignInAccount acct = result.getSignInAccount(); Log.e("hi", "display name: " + acct.getDisplayName()); String personName = acct.getDisplayName(); String email = acct.getEmail(); Log.e("hi", "Name: " + personName + ", email: " + email); try { JSONObject jsonObject = new JSONObject(); jsonObject.put(RequestParamUtils.socialId, acct.getId()); jsonObject.put(RequestParamUtils.email, acct.getEmail()); jsonObject.put(RequestParamUtils.firstName, acct.getGivenName()); jsonObject.put(RequestParamUtils.lastName, acct.getFamilyName()); socialLogin(jsonObject); } catch (Exception e) { Log.e("error", e.getMessage()); } } } @OnClick(R.id.tvSignInwithFB) public void tvSignInwithFBClick() { LoginManager.getInstance().logOut(); LoginManager.getInstance().logInWithReadPermissions( this, Arrays.asList(RequestParamUtils.email, RequestParamUtils.publicProfile) ); } public void loginWithFB() { callbackManager = CallbackManager.Factory.create(); LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { // App code String accessToken = loginResult.getAccessToken() .getToken(); Log.e("accessToken", accessToken); GraphRequest request = GraphRequest.newMeRequest(loginResult.getAccessToken(), new GraphRequest.GraphJSONObjectCallback() { @Override public void onCompleted(JSONObject object, GraphResponse response) { Log.e("LoginActivity", response.toString()); try { String id = object.getString("id"); facbookImageUrl = "https://graph.facebook.com/" + id + "/picture?type=large"; // facbookImageUrl = "http://graph.facebook.com/" + id + "/picture?type=large"; fbjsonObject = object; // if (fbjsonObject != null) { new getBitmap().execute(); // }else { // socialLogin(fbjsonObject); // } } catch (JSONException e) { e.printStackTrace(); } } }); Bundle parameters = new Bundle(); parameters.putString("fields", "id, name, email, gender, first_name, last_name, picture.type(large)"); request.setParameters(parameters); request.executeAsync(); } @Override public void onCancel() { // App code } @Override public void onError(FacebookException exception) { Log.e(TAG, "onError: " + exception.toString()); // App code } }); } public String getBitmap() { try { URL url = new URL(facbookImageUrl); try { Bitmap mIcon = BitmapFactory.decodeStream(url.openConnection().getInputStream()); ByteArrayOutputStream baos = new ByteArrayOutputStream(); mIcon.compress(Bitmap.CompressFormat.JPEG, 100, baos); //bm is the bitmap object byte[] b = baos.toByteArray(); String encoded = Base64.encodeToString(b, Base64.DEFAULT); return encoded; } catch (IOException e) { Log.e("IOException ", e.getMessage()); } catch (Exception e) { Log.e("Exception ", e.getMessage()); } Log.e("Done", "Done"); } catch (IOException e) { Log.e("Exception Url ", e.getMessage()); } return null; } public void socialLogin(final JSONObject object) { if (Utils.isInternetConnected(LogInActivity.this)) { showProgress(""); final PostApi postApi = new PostApi(LogInActivity.this, RequestParamUtils.socialLogin, LogInActivity.this, getlanuage()); try { object.put(RequestParamUtils.deviceType, Constant.DEVICE_TYPE); String token = getPreferences().getString(RequestParamUtils.NOTIFICATION_TOKEN, ""); object.put(RequestParamUtils.deviceToken, token); postApi.callPostApi(new URLS().SOCIAL_LOGIN, object.toString()); } catch (Exception e) { Log.e("error", e.getMessage()); } } else { Toast.makeText(LogInActivity.this, R.string.internet_not_working, Toast.LENGTH_LONG).show(); } } // this part was missing thanks to wesely @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); callbackManager.onActivityResult(requestCode, resultCode, data); // Result returned from launching the Intent from GoogleSignInApi.getSignInIntent(...); if (requestCode == RC_SIGN_IN) { GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data); handleSignInResult(result); } } @OnClick(R.id.tvNewUser) public void tvNewUserClick() { Intent intent = new Intent(LogInActivity.this, SignUpActivity.class); startActivity(intent); finish(); } @OnClick(R.id.tvForgetPass) public void tvForgetPassClick() { showForgetPassDialog(); } public void showForgetPassDialog() { final AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this); LayoutInflater inflater = this.getLayoutInflater(); View dialogView = inflater.inflate(R.layout.layout_forget_password, null); dialogBuilder.setView(dialogView); TextViewRegular tvRequestPasswordReset = (TextViewRegular) dialogView.findViewById(R.id.tvRequestPasswordReset); tvRequestPasswordReset.setBackgroundColor(Color.parseColor(getPreferences().getString(Constant.SECOND_COLOR, Constant.SECONDARY_COLOR))); final EditTextRegular etForgetPassEmail = (EditTextRegular) dialogView.findViewById(R.id.etForgetPassEmail); alertDialog1 = dialogBuilder.create(); alertDialog1.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); WindowManager.LayoutParams lp = alertDialog1.getWindow().getAttributes(); lp.dimAmount = 0.0f; alertDialog1.getWindow().setAttributes(lp); alertDialog1.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); alertDialog1.show(); tvRequestPasswordReset.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if (etForgetPassEmail.getText().toString().isEmpty()) { Toast.makeText(LogInActivity.this, R.string.enter_email_address, Toast.LENGTH_SHORT).show(); } else { if (Utils.isValidEmail(etForgetPassEmail.getText().toString())) { email = etForgetPassEmail.getText().toString(); forgetPassword(); } else { Toast.makeText(LogInActivity.this, R.string.enter_valid_email_address, Toast.LENGTH_SHORT).show(); } } } }); } public void forgetPassword() { if (Utils.isInternetConnected(this)) { showProgress(""); PostApi postApi = new PostApi(this, RequestParamUtils.forgotPassword, this, getlanuage()); try { JSONObject jsonObject = new JSONObject(); jsonObject.put(RequestParamUtils.email, email); postApi.callPostApi(new URLS().FORGET_PASSWORD, jsonObject.toString()); } catch (Exception e) { Log.e("error", e.getMessage()); } } else { Toast.makeText(this, R.string.internet_not_working, Toast.LENGTH_LONG).show(); } } public void showSetPassDialog() { final AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this); LayoutInflater inflater = this.getLayoutInflater(); View dialogView = inflater.inflate(R.layout.layout_forget_password_pin, null); dialogBuilder.setView(dialogView); final TextViewRegular tvSetNewPass = (TextViewRegular) dialogView.findViewById(R.id.tvSetNewPass); tvSetNewPass.setBackgroundColor(Color.parseColor(getPreferences().getString(Constant.SECOND_COLOR, Constant.SECONDARY_COLOR))); final TextViewLight tvNowEnterPass = (TextViewLight) dialogView.findViewById(R.id.tvNowEnterPass); final EditTextMedium etPin = (EditTextMedium) dialogView.findViewById(R.id.etPin); final EditTextMedium etNewPassword = (EditTextMedium) dialogView.findViewById(R.id.etNewPassword); final EditTextMedium etConfirrmNewPassword = (EditTextMedium) dialogView.findViewById(R.id.etConfirrmNewPassword); alertDialog = dialogBuilder.create(); alertDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); WindowManager.LayoutParams lp = alertDialog.getWindow().getAttributes(); lp.dimAmount = 0.0f; alertDialog.getWindow().setAttributes(lp); alertDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); alertDialog.show(); etPin.addTextChangedListener(new TextWatcher() { @Override public void afterTextChanged(Editable s) { } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { if (etPin.getText().toString().equals(pin)) { tvNowEnterPass.setVisibility(View.VISIBLE); etNewPassword.setVisibility(View.VISIBLE); etConfirrmNewPassword.setVisibility(View.VISIBLE); } } }); tvSetNewPass.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if (etPin.getText().toString().isEmpty()) { Toast.makeText(LogInActivity.this, R.string.enter_pin, Toast.LENGTH_SHORT).show(); } else { if (etPin.getText().toString().equals(pin)) { if (etNewPassword.getText().toString().isEmpty()) { Toast.makeText(LogInActivity.this, R.string.enter_new_password, Toast.LENGTH_SHORT).show(); } else { if (etConfirrmNewPassword.getText().toString().isEmpty()) { Toast.makeText(LogInActivity.this, R.string.enter_confirm_password, Toast.LENGTH_SHORT).show(); } else { if (etNewPassword.getText().toString().equals(etConfirrmNewPassword.getText().toString())) { //apicalls password = etNewPassword.getText().toString(); updatePassword(); } else { Toast.makeText(LogInActivity.this, R.string.password_and_confirm_password_not_matched, Toast.LENGTH_SHORT).show(); } } } } else { Toast.makeText(LogInActivity.this, R.string.enter_proper_detail, Toast.LENGTH_SHORT).show(); } } } }); } public void updatePassword() { if (Utils.isInternetConnected(this)) { showProgress(""); PostApi postApi = new PostApi(this, RequestParamUtils.updatePassword, this, getlanuage()); try { JSONObject jsonObject = new JSONObject(); jsonObject.put(RequestParamUtils.email, email); jsonObject.put(RequestParamUtils.PASSWORD, password); jsonObject.put(RequestParamUtils.key, pin); postApi.callPostApi(new URLS().UPDATE_PASSWORD, jsonObject.toString()); } catch (Exception e) { Log.e("error", e.getMessage()); } } else { Toast.makeText(this, R.string.internet_not_working, Toast.LENGTH_LONG).show(); } } @Override public void onResponse(final String response, final String methodName) { if (methodName.equals(RequestParamUtils.login) || methodName.equals(RequestParamUtils.socialLogin)) { dismissProgress(); if (response != null && response.length() > 0) { try { JSONObject jsonObj = new JSONObject(response); String status = jsonObj.getString("status"); if (status.equals("success")) { final LogIn loginRider = new Gson().fromJson( response, new TypeToken<LogIn>() { }.getType()); runOnUiThread(new Runnable() { @Override public void run() { //set call here if (loginRider.status.equals("success")) { SharedPreferences.Editor pre = getPreferences().edit(); pre.putString(RequestParamUtils.CUSTOMER, ""); pre.putString(RequestParamUtils.ID, loginRider.user.id + ""); pre.putString(RequestParamUtils.PASSWORD, etPass.getText().toString()); if (methodName.equals(RequestParamUtils.socialLogin)) { pre.putString(RequestParamUtils.SOCIAL_SIGNIN, "1"); } pre.commit(); // Intent intent = new Intent(LogInActivity.this, AccountActivity.class); // startActivity(intent); dismissProgress(); finish(); } else { Toast.makeText(getApplicationContext(), R.string.enter_proper_detail, Toast.LENGTH_SHORT).show(); //display in long period of time } } }); } else { String msg = jsonObj.getString("message"); Toast.makeText(this, msg, Toast.LENGTH_SHORT).show(); } } catch (Exception e) { Log.e(methodName + "Gson Exception is ", e.getMessage()); Toast.makeText(getApplicationContext(), R.string.something_went_wrong, Toast.LENGTH_SHORT).show(); //display in long period of time } } } else if (methodName.equals(RequestParamUtils.forgotPassword)) { dismissProgress(); if (response != null && response.length() > 0) { try { JSONObject jsonObj = new JSONObject(response); String status = jsonObj.getString("status"); if (status.equals("success")) { alertDialog1.dismiss(); pin = jsonObj.getString("key"); showSetPassDialog(); } else { Toast.makeText(this, jsonObj.getString("error"), Toast.LENGTH_SHORT).show(); } } catch (Exception e) { Log.e(methodName + "Gson Exception is ", e.getMessage()); Toast.makeText(getApplicationContext(), R.string.something_went_wrong, Toast.LENGTH_SHORT).show(); //display in long period of time } } } else if (methodName.equals(RequestParamUtils.updatePassword)) { dismissProgress(); if (response != null && response.length() > 0) { try { JSONObject jsonObj = new JSONObject(response); String status = jsonObj.getString("status"); if (status.equals("success")) { alertDialog.dismiss(); Toast.makeText(this, jsonObj.getString("message"), Toast.LENGTH_SHORT).show(); } else { Toast.makeText(this, jsonObj.getString("error"), Toast.LENGTH_SHORT).show(); } } catch (Exception e) { Log.e(methodName + "Gson Exception is ", e.getMessage()); Toast.makeText(getApplicationContext(), R.string.something_went_wrong, Toast.LENGTH_SHORT).show(); //display in long period of time } } } } class getBitmap extends AsyncTask<String, String, String> { @Override protected String doInBackground(String... strings) { return getBitmap(); } @Override protected void onPostExecute(String encoded) { super.onPostExecute(encoded); try { JSONObject jsonObject = new JSONObject(); jsonObject.put(RequestParamUtils.data, encoded); jsonObject.put(RequestParamUtils.name, "image.jpg"); /* Log.e("name", fbjsonObject.getString("name")); Log.e("email", fbjsonObject.getString("email"));*/ if (fbjsonObject.has(RequestParamUtils.gender)) { Log.e("gender", fbjsonObject.getString(RequestParamUtils.gender)); } fbjsonObject.put(RequestParamUtils.userImage, jsonObject); fbjsonObject.put(RequestParamUtils.socialId, fbjsonObject.getString("id")); socialLogin(fbjsonObject); } catch (JSONException e) { e.printStackTrace(); } } } }
[ "91615917+Moazaslam12@users.noreply.github.com" ]
91615917+Moazaslam12@users.noreply.github.com
b7bde5c2901366608b0a425683289a14a76e3d09
52aad455fd6e20e8763e402c78e1ce7ac55c803d
/estaeslabuana/estadosJuego/Audio_Menu.java
447166ca2e179b20fe0dc376f154cdb3f625c114
[ "Apache-2.0" ]
permissive
TheHornios/Asteroids_Movil
8154215b52ee9dd2e600a628854c2dabf14fb209
15a41340b9d9ec0501047a783e909a2276e66e2c
refs/heads/master
2020-05-07T15:36:37.501071
2019-04-10T19:41:23
2019-04-10T19:41:23
180,644,651
1
0
null
null
null
null
UTF-8
Java
false
false
658
java
package com.example.ronri.estaeslabuana.estadosJuego; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import com.example.ronri.estaeslabuana.graficos.Assets; public class Audio_Menu extends Estados{ private Juego1 j; public Audio_Menu(Juego1 juego1){ j = juego1; } @Override public void draw(Canvas g) { Paint g2 = new Paint(); g2.setColor(Color.WHITE); g2.setTextSize(70); g.drawText("You Die <3",150,150,g2); g.drawText("Your Score= "+j.getHud().getScore(),150,300,g2); g.drawText("Tap To Go The Menu",150,450,g2); } @Override public void update() { } }
[ "noreply@github.com" ]
noreply@github.com
af6defce83681805302db95e5b74c9c0ff739a5b
6f3205d73ca1e4a0a70a4ebaaf053e95337f0688
/src/fast/dev/platform/android/constant/Constants.java
130d930dd7b56dd0f4ba221d5fda96acb207b77a
[]
no_license
anzhe/fast-dev-platform-android
6154a2ff22e81a31122dcbcb7b770e0e9cd9aac4
db673a67bd452fd9cbaa3a1291ee3ce760743e2d
refs/heads/master
2020-06-03T19:40:29.674750
2016-04-07T04:43:18
2016-04-07T04:43:18
82,751,117
1
0
null
2017-02-22T02:26:51
2017-02-22T02:26:51
null
UTF-8
Java
false
false
1,513
java
package fast.dev.platform.android.constant; public class Constants { /** * Bugly */ public static final String BUGLY_APP_ID = "900022302"; /** * 高德定位 */ public static final String GAODE_API_KEY = "213906e8c147efe269ebdbf03a9edebb"; public static final String DESCRIPTOR_SHARE = "com.umeng.share"; public static final String DESCRIPTOR_LOGIN = "com.umeng.login"; private static final String TIPS = "请移步官方网站 "; private static final String END_TIPS = ", 查看相关说明."; public static final String TENCENT_OPEN_URL = TIPS + "http://wiki.connect.qq.com/android_sdk使用说明" + END_TIPS; public static final String PERMISSION_URL = TIPS + "http://wiki.connect.qq.com/openapi权限申请" + END_TIPS; public static final String SOCIAL_LINK = "http://www.umeng.com/social"; public static final String SOCIAL_TITLE = "友盟社会化组件帮助应用快速整合分享功能"; public static final String SOCIAL_IMAGE = "http://www.umeng.com/images/pic/banner_module_social.png"; public static final String SOCIAL_CONTENT = "友盟社会化组件(SDK)让移动应用快速整合社交分享功能,我们简化了社交平台的接入,为开发者提供坚实的基础服务:(一)支持各大主流社交平台," + "(二)支持图片、文字、gif动图、音频、视频;@好友,关注官方微博等功能" + "(三)提供详尽的后台用户社交行为分析。http://www.umeng.com/social"; }
[ "cnlinrong@gmail.com" ]
cnlinrong@gmail.com
8706595c494d943ab5b0f54f5787f912cef19d0e
17bf02ddc4e9991cc3ccf9c50d71df832768f869
/practice/src/reverseString/ReverseString.java
dd454fcb0051b9087d0fa4d67f1d1f61332be4a4
[]
no_license
abhishekDautomator/JavaProgramsPractice
23b370b3db3e7276811d8437c30eb37898083f75
ffab0475dfe35a5e861f4b537abf10eecf382f31
refs/heads/master
2021-06-06T07:56:52.965753
2021-05-15T06:46:16
2021-05-15T06:46:16
158,269,008
0
0
null
null
null
null
UTF-8
Java
false
false
1,709
java
package reverseString; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class ReverseString { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("Enter the string"); Scanner scn=new Scanner(System.in); String s=scn.nextLine(); System.out.println("Actual String is "+s); //using substring System.out.print("Reverse of the String using substring concept is "); for(int i=s.length();i>0;i--) { System.out.print(s.substring(i-1,i)); } System.out.println(); //using in-built method String reverse=new StringBuffer(s).reverse().toString(); System.out.println("Reverse of the String using StringBuffer class reverse() method is "+reverse); scn.close(); StringBuilder sb=new StringBuilder(s); String Rev=sb.reverse().toString(); System.out.println("reverse of String using String builder is :"+Rev); //using character array char[] strArr=s.toCharArray(); System.out.print("Reverse of the String using Array concept is "); for(int i=s.length()-1;i>=0;i--) { System.out.print(strArr[i]); } System.out.println(); //using ArrayList object and Collections class List<String> arrList=new ArrayList<String>(); char[] chrArray=s.toCharArray(); for(int i=0;i<chrArray.length;i++) { arrList.add(Character.toString(chrArray[i])); } Collections.reverse(arrList); String rev=""; for(int i=0;i<arrList.size();i++) { rev+=arrList.get(i).toString(); } System.out.print("Reverse of the String using ArrayList object and Collections class is "+rev); } }
[ "noreply@github.com" ]
noreply@github.com
f974078d29244b2efba0d16457cbc1a7a47e4ea4
b2271b499761cd51eefc3a9b447c0c6480e24eb4
/src/main/java/com/csl/test/controller/SixAndCslThymeleafController.java
f80cb4d0fedb9db833f5108ac7e309b98b30faa3
[]
no_license
a258079/spring-session-demo
9efc87e7109b233df2375d3cecf2d862eb0311b0
d531fc577eae9377942118c4fb645c4bd10e03f8
refs/heads/master
2023-01-28T10:36:55.143706
2020-12-06T05:52:12
2020-12-06T05:52:12
318,962,144
0
0
null
null
null
null
UTF-8
Java
false
false
451
java
package com.csl.test.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; /** * 将数据message填充到templates/csl.html * * @author * @date 2020/12/4 0004 21:41:14 */ @Controller public class SixAndCslThymeleafController { @GetMapping("/six") public String six(Model model){ return "index6"; } }
[ "2250@tom.com" ]
2250@tom.com
acfc6a353f9fd3d95f11dc24c93cde68fa001ef0
0379225a183d18444480b1b088ba46b93935161e
/banking/src/main/java/com/banking/TestAccountClass.java
9456b40e4202f925869f0c35a09d610fdc577155
[]
no_license
agbenitez01/banking
9f39b4c653f2c6bec4f535f288438022961e25fe
9b90b796bb49b6d812021b100d22ae8292341bd9
refs/heads/master
2020-05-05T13:04:22.824245
2019-04-16T14:21:24
2019-04-16T14:21:24
180,057,938
0
0
null
2019-04-08T02:53:23
2019-04-08T02:53:23
null
UTF-8
Java
false
false
286
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.banking; /** * * @author Sam */ public class TestAccountClass { }
[ "samuel.l.graham1@gmail.com" ]
samuel.l.graham1@gmail.com
a6c99d7d16b2c3e6c49803bf7750eea26fb6c584
8f8f115c3423b2d088c0e0950cb2a2bc1cf0264f
/src/com/matheesh/concurrency/synchronization/collections/Product.java
3af60193eddaedf56cebb9638bf3eb99e0a51cbd
[]
no_license
Matheeshprabhu/JavaConcepts
e45fa23dee7f38b9cc6190c681aa8bfe81822803
a9f08195c73cc3d3715c2175d65ecc31a31586be
refs/heads/master
2023-05-11T01:07:52.216091
2021-06-02T18:24:50
2021-06-02T18:24:50
363,998,060
0
1
null
2021-05-03T18:34:02
2021-05-03T16:48:55
Java
UTF-8
Java
false
false
387
java
package com.matheesh.concurrency.synchronization.collections; public class Product { int prodId; String prodName; @Override public String toString() { return "Product{" + "prodId=" + prodId + '}'; } public Product(int prodId, String prodName) { this.prodId = prodId; this.prodName = prodName; } }
[ "matheesh.prabhu@tcs.com" ]
matheesh.prabhu@tcs.com
8354f8d878e7bf899d682ba2217efa1184d7aeeb
bbad06d47f4082ff2f469bdab3f0f84e1a3703d8
/src/test/java/com/wzx/leetcode/No707DesignLinkedListTest.java
b55438f6f60fe6c7f04282cfbd51a0c25cf77903
[]
no_license
wzx140/LeetCode
b6ac8e824676ea85f7d17a459bf86b83d4cbfeab
fdb3f45d3b9cdc161471c859af23fa8e44c3d1e7
refs/heads/master
2022-02-20T09:48:59.077744
2022-01-27T05:00:01
2022-01-27T05:00:01
170,458,336
1
0
null
2020-10-14T03:22:57
2019-02-13T07:05:27
C++
UTF-8
Java
false
false
929
java
package com.wzx.leetcode; import org.junit.Test; import com.wzx.leetcode.No707DesignLinkedList.MyLinkedList; import static org.junit.Assert.*; public class No707DesignLinkedListTest { @Test public void testLinkedList1() { MyLinkedList linkedList = new MyLinkedList(); linkedList.addAtHead(1); linkedList.addAtTail(3); linkedList.addAtIndex(1, 2); assertEquals(2, linkedList.get(1)); linkedList.deleteAtIndex(1); assertEquals(3, linkedList.get(1)); } @Test public void testLinkedList2() { MyLinkedList linkedList = new MyLinkedList(); linkedList.addAtHead(7); linkedList.addAtHead(2); linkedList.addAtHead(1); linkedList.addAtIndex(3, 0); linkedList.deleteAtIndex(2); linkedList.addAtHead(6); linkedList.addAtTail(4); assertEquals(4, linkedList.get(4)); linkedList.addAtHead(4); linkedList.addAtIndex(5, 0); linkedList.addAtHead(6); } }
[ "masterwangzx@gmail.com" ]
masterwangzx@gmail.com
451e090b0dbb6af2bfd6fd61d1d965c11d65f84e
d8e4c95854e81269b6427e14f56b5dcff1bca46e
/utils/mkcmrecord/java/ConnectionException.java
dfc157fcd81704e6bcbedbc34e73d34df95a86b1
[]
no_license
starseeker/stepmod_mirror
8e969a9e14c5f49133a8fb9529289e93cb0c8de4
8a16abf7b753f03924246d037f061a9d00a14336
refs/heads/master
2021-04-08T15:20:36.973769
2017-11-28T17:39:49
2017-11-28T17:39:49
248,778,650
1
0
null
null
null
null
UTF-8
Java
false
false
134
java
public class ConnectionException extends Exception { public ConnectionException(String message) { super(message); } }
[ "radack" ]
radack
68fbeba43c3002a482dfa6fc6cc05711cb0eb98f
82b7e1b6ebfb2a80ca57753d539fe423e4495aec
/SpringDay2/src/main/java/com/htc/spring4/main/DepinAnnoTest.java
ea28b1d8cbb9239b4ef4f733fbc9f2289202ea53
[]
no_license
kittuvamsi2767/HTC-Training-JEE2
8cb8eb2e26e2c91237aa73c03acee5489e440ac0
40436a25c921a5da04d3786a751590e187ee28c4
refs/heads/master
2021-01-25T12:13:42.918308
2018-02-21T06:07:54
2018-02-21T06:07:54
123,458,915
0
0
null
null
null
null
UTF-8
Java
false
false
770
java
package com.htc.spring4.main; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.htc.spring4.beans.Student; import com.htc.spring4.config.StudentConfig; public class DepinAnnoTest { public static void main(String[] args) { ApplicationContext context = new AnnotationConfigApplicationContext(StudentConfig.class); Student student = (Student) context.getBean("student"); System.out.println(student.getStudentName()); System.out.println(student.getRegno()); System.out.println(student.getAddress()); System.out.println(student.getCollege()); } }
[ "noreply@github.com" ]
noreply@github.com
f3d67821a29fbe4e9780cdf7192942f1f287a32d
c052942026f6aff563a6261c801df6a3e91411c7
/src/ac/bbt/sp2014f_groupa/models/NotFoundException.java
2722c5cfb765f9109659af3f80c72a7eba78b268
[ "MIT" ]
permissive
bbtuit/sp2014f_groupa
892f2de648387106fb70ce9ca5fdbf3a73f99b35
b4d18b7ca78ec7c4013454bc25f1439af0746211
refs/heads/master
2020-04-21T06:55:16.044102
2014-12-20T21:59:37
2014-12-20T21:59:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
689
java
package ac.bbt.sp2014f_groupa.models; /** * IDからモデルオブジェクトを生成するときに、 * 該当のデータがないときに発行される例外 * * @author ueharamasato */ public class NotFoundException extends RuntimeException { private static final long serialVersionUID = 1L; /** * コンストラクタ */ public NotFoundException() { super("該当データがありません"); } public NotFoundException(String detailMessage, Throwable throwable) { super(detailMessage, throwable); } public NotFoundException(String detailMessage) { super(detailMessage); } public NotFoundException(Throwable throwable) { super(throwable); } }
[ "masato.uehara.1975@gmail.com" ]
masato.uehara.1975@gmail.com
de23f3bea8455bc8f92b6b4a35efad4fbf551366
81404aa3ded8aad72449c4ae037268b48d1bf533
/src/main/java/org/afdemp/wellness/dao/UserstatsDaoImpl.java
723891d28cea75ae28c921f1e3e24836951373f5
[ "MIT" ]
permissive
christosponirakos/Group-Project
bc77b91a4da71e8c695a72cbb636c97e7aaf05ef
c36a44aa34ea63129c728c89bcd823e3868c8799
refs/heads/master
2023-02-15T15:33:57.164100
2021-01-11T09:39:15
2021-01-11T09:39:15
263,682,209
1
0
MIT
2021-01-11T09:38:40
2020-05-13T16:18:12
Java
UTF-8
Java
false
false
1,791
java
package org.afdemp.wellness.dao; import java.util.List; import org.afdemp.wellness.entities.UserStats; import org.hibernate.Criteria; import org.springframework.stereotype.Repository; @Repository("userstatsDao") public class UserstatsDaoImpl extends AbstractDao<Integer, UserStats> implements IObjectDao { @Override public List<UserStats> findAll() { Criteria criteria = createEntityCriteria(); return (List<UserStats>) criteria.list(); } @Override public UserStats findById(long id) { UserStats us = getByKey((int) id); if (us != null) { return us; } return null; } @Override public boolean save(Object entity) { UserStats contactform = (UserStats) entity; boolean save = persist(contactform); if (save) { return false; } return true; } @Override public boolean delete(long id) { UserStats us = getByKey((int) id); if (us != null) { delete(us); if (getByKey((int) id) == null) { return true; } } return false; } @Override public boolean update(Object entity) { UserStats userstats = (UserStats) entity; UserStats us = (UserStats) findById(userstats.getId()); if (us != null) { us.setAge(userstats.getAge()); us.setSex(userstats.getSex()); us.setHeight(userstats.getHeight()); us.setWeight(userstats.getWeight()); us.setBmi(userstats.getBmi()); us.setKnownallergies(userstats.getKnownallergies()); us.setUserId(userstats.getUserId()); return save(us); } return false; } }
[ "steliospavlo@gmail.com" ]
steliospavlo@gmail.com
195fa285774065533ab76f0b22f3aa6f72c19729
7c9f40c50e5cabcb320195e3116384de139002c6
/Plugin_Core/src/tinyos/yeti/model/IDeclarationCollection.java
c6ff6902a14f056f4d7795ca75e332b3f4a5ee63
[]
no_license
phsommer/yeti
8e89ad89f1a4053e46693244256d03e71fe830a8
dec8c79e75b99c2a2a43aa5425f608128b883e39
refs/heads/master
2021-01-10T05:33:57.285499
2015-05-21T19:41:02
2015-05-21T19:41:02
36,033,399
3
0
null
null
null
null
UTF-8
Java
false
false
2,674
java
/* * Yeti 2, NesC development in Eclipse. * Copyright (C) 2009 ETH Zurich * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Web: http://tos-ide.ethz.ch * Mail: tos-ide@tik.ee.ethz.ch */ package tinyos.yeti.model; import java.util.Collection; import tinyos.yeti.ep.parser.IDeclaration; import tinyos.yeti.ep.parser.IDeclaration.Kind; import tinyos.yeti.model.ProjectModel.DeclarationFilter; /** * A collection containing some {@link IDeclaration}s. It is up to the collection * how the declarations are stored. These collections are unmodifiable. * @author Benjamin Sigg */ public interface IDeclarationCollection{ /** * Gets all declarations which are stored in this collection.<br> * Note: this method will be called often. * @return an array containing all declarations */ public IDeclaration[] toArray(); /** * Searches all declarations which have one of the given <code>kind</code> * and the name <code>name</code> and fills them into <code>declarations</code>. * @param declarations some collection to fill with declarations * @param name the name of the declarations to search * @param kind the kind of declarations that are searched */ public void fillDeclarations( Collection<? super IDeclaration> declarations, String name, Kind... kind ); /** * Searches all declarations which have one of the given <code>kind</code> and * fills them into <code>declarations</code>. * @param declarations some collection to fill with declarations * @param kind the kind of declaration to search */ public void fillDeclarations( Collection<? super IDeclaration> declarations, Kind... kind ); /** * Fills all declarations which pass through <code>filter</code> into * <code>declarations</code>. * @param declarations some collection to fill with declarations * @param filter the filter which must be passed */ public void fillDeclarations( Collection<? super IDeclaration> declarations, DeclarationFilter filter ); }
[ "besigg@2a69fd7c-12de-fc47-e5bb-db751a41839b" ]
besigg@2a69fd7c-12de-fc47-e5bb-db751a41839b
3f519653fc71514ebf0a8b1ad932a43695450f70
ef34c02c1e7804ec8ae86e2217f115fab5b4b4bf
/excercise1/src/main/java/com/trong/excercise1/Excercise1Application.java
02778586bb7d2caa20797815b1411f774167ba67
[]
no_license
TranThienTrong/spring-excercises
1009a07d16d7fec15994155c4b665c21fcadf3a7
858dfd8d327ef29136ac388ed448e978e2d1c19c
refs/heads/master
2023-07-07T20:07:56.869281
2021-09-02T13:38:49
2021-09-02T13:38:49
395,290,256
1
0
null
null
null
null
UTF-8
Java
false
false
1,337
java
package com.trong.excercise1; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.Arrays; @SpringBootApplication @ComponentScan(basePackages={"com.trong"}) @RestController public class Excercise1Application { public static void main(String[] args) { ApplicationContext context = SpringApplication.run(Excercise1Application.class, args); String[] beanNames = context.getBeanDefinitionNames(); Arrays.sort(beanNames); for (String beanName : beanNames) { System.out.println(beanName); } } @Bean public CommandLineRunner commandLineRunner(ApplicationContext ctx) { return args -> { System.out.println("Let's inspect the beans provided by Spring Boot:"); String[] beanNames = ctx.getBeanDefinitionNames(); Arrays.sort(beanNames); for (String beanName : beanNames) { System.out.println(beanName); } }; } }
[ "noreply@github.com" ]
noreply@github.com
4868c0dd5760a4661a916b25c5b01dcf8b8fe4ca
44e7adc9a1c5c0a1116097ac99c2a51692d4c986
/aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/model/GetRequestValidatorsResult.java
1842057a4c73a8a74c2f540087025152399053b5
[ "Apache-2.0" ]
permissive
QiAnXinCodeSafe/aws-sdk-java
f93bc97c289984e41527ae5bba97bebd6554ddbe
8251e0a3d910da4f63f1b102b171a3abf212099e
refs/heads/master
2023-01-28T14:28:05.239019
2020-12-03T22:09:01
2020-12-03T22:09:01
318,460,751
1
0
Apache-2.0
2020-12-04T10:06:51
2020-12-04T09:05:03
null
UTF-8
Java
false
false
6,327
java
/* * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.apigateway.model; import java.io.Serializable; import javax.annotation.Generated; /** * <p> * A collection of <a>RequestValidator</a> resources of a given <a>RestApi</a>. * </p> * <div class="remarks"> * <p> * In OpenAPI, the <a>RequestValidators</a> of an API is defined by the <a href= * "https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html#api-gateway-swagger-extensions-request-validators.html" * >x-amazon-apigateway-request-validators</a> extension. * </p> * </div> <div class="seeAlso"><a * href="https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-method-request-validation.html">Enable * Basic Request Validation in API Gateway</a></div> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetRequestValidatorsResult extends com.amazonaws.AmazonWebServiceResult<com.amazonaws.ResponseMetadata> implements Serializable, Cloneable { private String position; /** * <p> * The current page of elements from this collection. * </p> */ private java.util.List<RequestValidator> items; /** * @param position */ public void setPosition(String position) { this.position = position; } /** * @return */ public String getPosition() { return this.position; } /** * @param position * @return Returns a reference to this object so that method calls can be chained together. */ public GetRequestValidatorsResult withPosition(String position) { setPosition(position); return this; } /** * <p> * The current page of elements from this collection. * </p> * * @return The current page of elements from this collection. */ public java.util.List<RequestValidator> getItems() { return items; } /** * <p> * The current page of elements from this collection. * </p> * * @param items * The current page of elements from this collection. */ public void setItems(java.util.Collection<RequestValidator> items) { if (items == null) { this.items = null; return; } this.items = new java.util.ArrayList<RequestValidator>(items); } /** * <p> * The current page of elements from this collection. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setItems(java.util.Collection)} or {@link #withItems(java.util.Collection)} if you want to override the * existing values. * </p> * * @param items * The current page of elements from this collection. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRequestValidatorsResult withItems(RequestValidator... items) { if (this.items == null) { setItems(new java.util.ArrayList<RequestValidator>(items.length)); } for (RequestValidator ele : items) { this.items.add(ele); } return this; } /** * <p> * The current page of elements from this collection. * </p> * * @param items * The current page of elements from this collection. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRequestValidatorsResult withItems(java.util.Collection<RequestValidator> items) { setItems(items); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getPosition() != null) sb.append("Position: ").append(getPosition()).append(","); if (getItems() != null) sb.append("Items: ").append(getItems()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetRequestValidatorsResult == false) return false; GetRequestValidatorsResult other = (GetRequestValidatorsResult) obj; if (other.getPosition() == null ^ this.getPosition() == null) return false; if (other.getPosition() != null && other.getPosition().equals(this.getPosition()) == false) return false; if (other.getItems() == null ^ this.getItems() == null) return false; if (other.getItems() != null && other.getItems().equals(this.getItems()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPosition() == null) ? 0 : getPosition().hashCode()); hashCode = prime * hashCode + ((getItems() == null) ? 0 : getItems().hashCode()); return hashCode; } @Override public GetRequestValidatorsResult clone() { try { return (GetRequestValidatorsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }
[ "" ]
7c70047213ea72d90540ca913ee1f1ec9b8f8a0f
95e944448000c08dd3d6915abb468767c9f29d3c
/sources/com/bytedance/p263im/core/proto/MessagesPerUserInitResponseBody.java
8ef83e2b7ab1b5bbf51e4da08c32c4ed4c9dafe0
[]
no_license
xrealm/tiktok-src
261b1faaf7b39d64bb7cb4106dc1a35963bd6868
90f305b5f981d39cfb313d75ab231326c9fca597
refs/heads/master
2022-11-12T06:43:07.401661
2020-07-04T20:21:12
2020-07-04T20:21:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
11,001
java
package com.bytedance.p263im.core.proto; import com.squareup.wire.FieldEncoding; import com.squareup.wire.Message; import com.squareup.wire.ProtoAdapter; import com.squareup.wire.ProtoReader; import com.squareup.wire.ProtoWriter; import com.squareup.wire.WireField; import com.squareup.wire.WireField.Label; import com.squareup.wire.internal.Internal; import java.io.IOException; import java.util.List; import okio.ByteString; /* renamed from: com.bytedance.im.core.proto.MessagesPerUserInitResponseBody */ public final class MessagesPerUserInitResponseBody extends Message<MessagesPerUserInitResponseBody, Builder> { public static final ProtoAdapter<MessagesPerUserInitResponseBody> ADAPTER = new ProtoAdapter_MessagesPerUserInitResponseBody(); public static final Boolean DEFAULT_HAS_MORE = Boolean.valueOf(false); public static final Long DEFAULT_NEXT_CURSOR = Long.valueOf(0); public static final Long DEFAULT_PER_USER_CURSOR = Long.valueOf(0); private static final long serialVersionUID = 0; @WireField(adapter = "com.bytedance.im.core.proto.ConversationInfo#ADAPTER", label = Label.REPEATED, tag = 2) public final List<ConversationInfo> conversations; @WireField(adapter = "com.squareup.wire.ProtoAdapter#BOOL", tag = 5) public final Boolean has_more; @WireField(adapter = "com.bytedance.im.core.proto.MessageBody#ADAPTER", label = Label.REPEATED, tag = 1) public final List<MessageBody> messages; @WireField(adapter = "com.squareup.wire.ProtoAdapter#INT64", tag = 4) public final Long next_cursor; @WireField(adapter = "com.squareup.wire.ProtoAdapter#INT64", tag = 3) public final Long per_user_cursor; /* renamed from: com.bytedance.im.core.proto.MessagesPerUserInitResponseBody$Builder */ public static final class Builder extends com.squareup.wire.Message.Builder<MessagesPerUserInitResponseBody, Builder> { public List<ConversationInfo> conversations = Internal.newMutableList(); public Boolean has_more; public List<MessageBody> messages = Internal.newMutableList(); public Long next_cursor; public Long per_user_cursor; public final MessagesPerUserInitResponseBody build() { MessagesPerUserInitResponseBody messagesPerUserInitResponseBody = new MessagesPerUserInitResponseBody(this.messages, this.conversations, this.per_user_cursor, this.next_cursor, this.has_more, super.buildUnknownFields()); return messagesPerUserInitResponseBody; } public final Builder has_more(Boolean bool) { this.has_more = bool; return this; } public final Builder next_cursor(Long l) { this.next_cursor = l; return this; } public final Builder per_user_cursor(Long l) { this.per_user_cursor = l; return this; } public final Builder conversations(List<ConversationInfo> list) { Internal.checkElementsNotNull(list); this.conversations = list; return this; } public final Builder messages(List<MessageBody> list) { Internal.checkElementsNotNull(list); this.messages = list; return this; } } /* renamed from: com.bytedance.im.core.proto.MessagesPerUserInitResponseBody$ProtoAdapter_MessagesPerUserInitResponseBody */ static final class ProtoAdapter_MessagesPerUserInitResponseBody extends ProtoAdapter<MessagesPerUserInitResponseBody> { public ProtoAdapter_MessagesPerUserInitResponseBody() { super(FieldEncoding.LENGTH_DELIMITED, MessagesPerUserInitResponseBody.class); } public final MessagesPerUserInitResponseBody redact(MessagesPerUserInitResponseBody messagesPerUserInitResponseBody) { Builder newBuilder = messagesPerUserInitResponseBody.newBuilder(); Internal.redactElements(newBuilder.messages, MessageBody.ADAPTER); Internal.redactElements(newBuilder.conversations, ConversationInfo.ADAPTER); newBuilder.clearUnknownFields(); return newBuilder.build(); } public final MessagesPerUserInitResponseBody decode(ProtoReader protoReader) throws IOException { Builder builder = new Builder(); long beginMessage = protoReader.beginMessage(); while (true) { int nextTag = protoReader.nextTag(); if (nextTag != -1) { switch (nextTag) { case 1: builder.messages.add(MessageBody.ADAPTER.decode(protoReader)); break; case 2: builder.conversations.add(ConversationInfo.ADAPTER.decode(protoReader)); break; case 3: builder.per_user_cursor((Long) ProtoAdapter.INT64.decode(protoReader)); break; case 4: builder.next_cursor((Long) ProtoAdapter.INT64.decode(protoReader)); break; case 5: builder.has_more((Boolean) ProtoAdapter.BOOL.decode(protoReader)); break; default: FieldEncoding peekFieldEncoding = protoReader.peekFieldEncoding(); builder.addUnknownField(nextTag, peekFieldEncoding, peekFieldEncoding.rawProtoAdapter().decode(protoReader)); break; } } else { protoReader.endMessage(beginMessage); return builder.build(); } } } public final int encodedSize(MessagesPerUserInitResponseBody messagesPerUserInitResponseBody) { return MessageBody.ADAPTER.asRepeated().encodedSizeWithTag(1, messagesPerUserInitResponseBody.messages) + ConversationInfo.ADAPTER.asRepeated().encodedSizeWithTag(2, messagesPerUserInitResponseBody.conversations) + ProtoAdapter.INT64.encodedSizeWithTag(3, messagesPerUserInitResponseBody.per_user_cursor) + ProtoAdapter.INT64.encodedSizeWithTag(4, messagesPerUserInitResponseBody.next_cursor) + ProtoAdapter.BOOL.encodedSizeWithTag(5, messagesPerUserInitResponseBody.has_more) + messagesPerUserInitResponseBody.unknownFields().size(); } public final void encode(ProtoWriter protoWriter, MessagesPerUserInitResponseBody messagesPerUserInitResponseBody) throws IOException { MessageBody.ADAPTER.asRepeated().encodeWithTag(protoWriter, 1, messagesPerUserInitResponseBody.messages); ConversationInfo.ADAPTER.asRepeated().encodeWithTag(protoWriter, 2, messagesPerUserInitResponseBody.conversations); ProtoAdapter.INT64.encodeWithTag(protoWriter, 3, messagesPerUserInitResponseBody.per_user_cursor); ProtoAdapter.INT64.encodeWithTag(protoWriter, 4, messagesPerUserInitResponseBody.next_cursor); ProtoAdapter.BOOL.encodeWithTag(protoWriter, 5, messagesPerUserInitResponseBody.has_more); protoWriter.writeBytes(messagesPerUserInitResponseBody.unknownFields()); } } public final Builder newBuilder() { Builder builder = new Builder(); builder.messages = Internal.copyOf("messages", this.messages); builder.conversations = Internal.copyOf("conversations", this.conversations); builder.per_user_cursor = this.per_user_cursor; builder.next_cursor = this.next_cursor; builder.has_more = this.has_more; builder.addUnknownFields(unknownFields()); return builder; } public final int hashCode() { int i; int i2; int i3 = this.hashCode; if (i3 != 0) { return i3; } int hashCode = ((((unknownFields().hashCode() * 37) + this.messages.hashCode()) * 37) + this.conversations.hashCode()) * 37; int i4 = 0; if (this.per_user_cursor != null) { i = this.per_user_cursor.hashCode(); } else { i = 0; } int i5 = (hashCode + i) * 37; if (this.next_cursor != null) { i2 = this.next_cursor.hashCode(); } else { i2 = 0; } int i6 = (i5 + i2) * 37; if (this.has_more != null) { i4 = this.has_more.hashCode(); } int i7 = i6 + i4; this.hashCode = i7; return i7; } public final String toString() { StringBuilder sb = new StringBuilder(); if (!this.messages.isEmpty()) { sb.append(", messages="); sb.append(this.messages); } if (!this.conversations.isEmpty()) { sb.append(", conversations="); sb.append(this.conversations); } if (this.per_user_cursor != null) { sb.append(", per_user_cursor="); sb.append(this.per_user_cursor); } if (this.next_cursor != null) { sb.append(", next_cursor="); sb.append(this.next_cursor); } if (this.has_more != null) { sb.append(", has_more="); sb.append(this.has_more); } StringBuilder replace = sb.replace(0, 2, "MessagesPerUserInitResponseBody{"); replace.append('}'); return replace.toString(); } public final boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof MessagesPerUserInitResponseBody)) { return false; } MessagesPerUserInitResponseBody messagesPerUserInitResponseBody = (MessagesPerUserInitResponseBody) obj; if (!unknownFields().equals(messagesPerUserInitResponseBody.unknownFields()) || !this.messages.equals(messagesPerUserInitResponseBody.messages) || !this.conversations.equals(messagesPerUserInitResponseBody.conversations) || !Internal.equals(this.per_user_cursor, messagesPerUserInitResponseBody.per_user_cursor) || !Internal.equals(this.next_cursor, messagesPerUserInitResponseBody.next_cursor) || !Internal.equals(this.has_more, messagesPerUserInitResponseBody.has_more)) { return false; } return true; } public MessagesPerUserInitResponseBody(List<MessageBody> list, List<ConversationInfo> list2, Long l, Long l2, Boolean bool) { this(list, list2, l, l2, bool, ByteString.EMPTY); } public MessagesPerUserInitResponseBody(List<MessageBody> list, List<ConversationInfo> list2, Long l, Long l2, Boolean bool, ByteString byteString) { super(ADAPTER, byteString); this.messages = Internal.immutableCopyOf("messages", list); this.conversations = Internal.immutableCopyOf("conversations", list2); this.per_user_cursor = l; this.next_cursor = l2; this.has_more = bool; } }
[ "65450641+Xyzdesk@users.noreply.github.com" ]
65450641+Xyzdesk@users.noreply.github.com
a5367faf81c99e166dd7a19dac0e420fd1107efd
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
/methods/Method_33720.java
5a5c7fb2d1bfb30083a08e4441ed166861f8111e
[]
no_license
P79N6A/icse_20_user_study
5b9c42c6384502fdc9588430899f257761f1f506
8a3676bc96059ea2c4f6d209016f5088a5628f3c
refs/heads/master
2020-06-24T08:25:22.606717
2019-07-25T15:31:16
2019-07-25T15:31:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
411
java
/** * ???????(????) * @param imgNumber ????????,????? * @param imageUrl ?????url * @param imageView ?????? */ public static void displayRandom(int imgNumber,String imageUrl,ImageView imageView){ Glide.with(imageView.getContext()).load(imageUrl).placeholder(getMusicDefaultPic(imgNumber)).error(getMusicDefaultPic(imgNumber)).transition(DrawableTransitionOptions.withCrossFade(1500)).into(imageView); }
[ "sonnguyen@utdallas.edu" ]
sonnguyen@utdallas.edu
1811150edc2bacc7f63de30697bdf2d095d09240
26e8c4723264c3d076ffde8213d9c585ae31baae
/src/robot/ascii/AbstractASCIIBot.java
049569e7c20ba5572246686dfb03d7c5bcb7f0af
[]
no_license
jeromy-cassar/robot-arm
3d16a3d0b908931e64100ba09cda759a0f4d2eee
79084f08f0282e6b435750b6365647ecbd4fde95
refs/heads/main
2023-01-23T07:03:45.898814
2020-11-11T05:15:22
2020-11-11T05:15:22
311,869,614
0
0
null
null
null
null
UTF-8
Java
false
false
2,124
java
package robot.ascii; import javax.swing.JFrame; import com.googlecode.lanterna.TerminalSize; import com.googlecode.lanterna.terminal.DefaultTerminalFactory; import com.googlecode.lanterna.terminal.swing.SwingTerminalFrame; import control.Control; import robot.Robot; import robot.ascii.impl.Drawable; // ASCIIBot designed by Caspar, additional code by Ross // DO NOT CHANGE THIS CLASS .. IT PROVIDES BASIC SUPPORT TO INITIALISE AND // PROVIDES KEYBOARD FUNCTIONALITY FOR MANUAL MOVEMENT AND SPEED CONTROL public abstract class AbstractASCIIBot implements Robot { // these two instance variables are given in startup code protected SwingTerminalFrame terminalFrame; private int speed = (Drawable.START_PAUSED ? 0 : 5); // MUST CALL FROM SUBCLASS .. DO NOT CHANGE THIS CONSTRUCTOR! public AbstractASCIIBot() { // create the terminal and set size DefaultTerminalFactory factory = new DefaultTerminalFactory(); factory.setInitialTerminalSize(new TerminalSize((Control.MAX_WIDTH + 1) * Drawable.H_SCALE_FACTOR, Control.MAX_HEIGHT * Drawable.V_SCALE_FACTOR)); terminalFrame = factory.createSwingTerminal(); // required by Lanterna framework to initialise terminalFrame.enterPrivateMode(); terminalFrame.setCursorVisible(false); terminalFrame.setLocation(200, 400); terminalFrame.setVisible(true); // set close operation so program with exit if "X" clicked terminalFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } @Override public void speedUp(int amount) { if (speed == -1) return; speed += amount; speed = speed <= 10 ? speed : 10; } @Override public void slowDown(int amount) { if (speed == -1) return; speed -= amount; speed = speed >= 0 ? speed : 0; } // you can call this method between each complete screen draw protected void delayAnimation() { final int[] delays = { 6, 144, 89, 55, 34, 21, 13, 8, 5, 3, 2 }; int delayCounter = (speed == -1) ? 16 : delays[speed]; terminalFrame.flush(); do { try { Thread.sleep(5); } catch (InterruptedException e) { } } while (--delayCounter > 0 || speed == 0); } }
[ "37432428+jeromycassar@users.noreply.github.com" ]
37432428+jeromycassar@users.noreply.github.com
f4393c1062ef05074344204285662de0ff108712
ce3c22467cf82be02f2aa86cb970db902f0f74eb
/auto-routine-generator/src/main/java/io/naztech/routine/RoutineRepository.java
5bb0f5806bb18f8d8ad4d6ac1cd08e940a89b382
[]
no_license
KAFI033/SpringBoot
db768c1c33d3ca509d2a886654c03a114416b147
954f3008893a2d331adf9467f59e3648b0c00682
refs/heads/master
2021-07-07T02:15:05.846917
2019-09-03T10:56:43
2019-09-03T10:56:43
193,884,014
0
0
null
2020-10-13T14:09:26
2019-06-26T10:34:56
HTML
UTF-8
Java
false
false
183
java
package io.naztech.routine; import org.springframework.data.jpa.repository.JpaRepository; public interface RoutineRepository extends JpaRepository<Routine, Integer> { }
[ "noreply@github.com" ]
noreply@github.com
5f660fa9529aa2d71f90e8d7855ebdb5e835ea78
165e9b936b3c16c0316c4b5c7811d553dacefa12
/src/thesis/sentence/analysis/common/package-info.java
d0479d65420090be2bb448a5a80fb4c6342e7563
[]
no_license
ailoan/thesisNLP
74edc61cc6086e76a16537cf9263b007710222cb
694faaec2313350a67af296decee9eea449937df
refs/heads/master
2021-01-02T23:12:18.840995
2015-07-15T10:26:50
2015-07-15T10:26:50
39,128,318
0
0
null
null
null
null
UTF-8
Java
false
false
89
java
/** * */ /** * @author lohuynh * */ package thesis.sentence.analysis.common;
[ "loanhuynh89@gmail.com" ]
loanhuynh89@gmail.com
95698a71d200ab9cb23996aca5c5de16f4fb9448
4f82c5de0f0bbe05b7a0a83f8055799740eb80bd
/src/exams/endterm/exam/task05/SGTM.java
d2af7b84b34bd8e1d97b516895e555ae0a518ed8
[]
no_license
fpavletic/NatProg
a3a1aece79c0af5ee09d95ff8cccc5c237d526c4
85e10daa49fe2594729ceaa4b42aa97041df68cd
refs/heads/master
2020-04-16T21:24:56.306394
2019-02-23T16:27:12
2019-02-23T16:27:12
165,924,665
2
1
null
2019-02-22T15:16:41
2019-01-15T21:14:57
Java
UTF-8
Java
false
false
1,254
java
package exams.endterm.exam.task05; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class SGTM { public static void main(String[] args){ Scanner sysIn = new Scanner(System.in); int n = sysIn.nextInt(); List<Event> events = new ArrayList<>( n * 2); for ( int i = 0; i < n; i++ ){ events.add(new Event(sysIn.nextFloat(), true)); events.add(new Event(sysIn.nextFloat(), false)); } Collections.sort(events); int currentSprayCount = 0; int maxSprayCount = 0; for ( Event event : events){ currentSprayCount += event.value ? 1 : -1; if (maxSprayCount < currentSprayCount){ maxSprayCount = currentSprayCount; } } System.out.println(maxSprayCount); } private static class Event implements Comparable<Event>{ private float guid; private boolean value; public Event(float guid, boolean value){ this.guid = guid; this.value = value; } @Override public int compareTo(Event o){ return Float.compare(guid, o.guid); } } }
[ "filip.pavletic@fer.hr" ]
filip.pavletic@fer.hr
b20cb2cdddc0cf554fc3f09db9c36c704553823a
6a3de094867c62b844d217da4062d43ba1f098b8
/dropwizard-core/src/main/java/com/yammer/dropwizard/json/LogbackModule.java
23804ecb0f1e6fd1adc50c210853d22df208d8aa
[ "Apache-2.0" ]
permissive
jamesward/dropwizard
398e06b3139a61d1f5fde751b3e51702c4602f93
57124df445d3ef7414b4c1fadc226bef81ff3b7e
refs/heads/master
2021-01-17T04:57:28.351156
2012-03-20T12:04:46
2012-03-20T12:04:46
3,744,369
1
0
null
null
null
null
UTF-8
Java
false
false
1,660
java
package com.yammer.dropwizard.json; import ch.qos.logback.classic.Level; import org.codehaus.jackson.JsonParser; import org.codehaus.jackson.Version; import org.codehaus.jackson.map.*; import org.codehaus.jackson.type.JavaType; import java.io.IOException; class LogbackModule extends Module { private static class LevelDeserializer extends JsonDeserializer<Level> { @Override public Level deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException { return Level.toLevel(jp.getText()); } } private static class Log4jDeserializers extends Deserializers.Base { @Override public JsonDeserializer<?> findBeanDeserializer(JavaType type, DeserializationConfig config, DeserializerProvider provider, BeanDescription beanDesc, BeanProperty property) throws JsonMappingException { if (Level.class.isAssignableFrom(type.getRawClass())) { return new LevelDeserializer(); } return super.findBeanDeserializer(type, config, provider, beanDesc, property); } } @Override public String getModuleName() { return "log4j"; } @Override public Version version() { return Version.unknownVersion(); } @Override public void setupModule(SetupContext context) { context.addDeserializers(new Log4jDeserializers()); } }
[ "coda.hale@gmail.com" ]
coda.hale@gmail.com
407c951b024460a343e9ccd1ebad05be71dc91c4
6f024865f86614117e73ff1ad784398884edf765
/src/main/java/com/google/android/gms/tagmanager/PreviewActivity.java
bc51df0a2b2e95f175e3de65259fe75ec4e0566f
[]
no_license
chakaponden/neuroon-classic-app
0df0ef593dd3e55bbffc325cdd0a399265dffb73
aa337afe4764a3af5094b3a0bc8cea54aa23dd34
refs/heads/main
2022-12-25T21:52:49.184564
2020-10-09T15:42:36
2020-10-09T15:42:36
302,444,442
0
0
null
null
null
null
UTF-8
Java
false
false
1,716
java
package com.google.android.gms.tagmanager; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.net.Uri; import android.os.Bundle; public class PreviewActivity extends Activity { private void zzm(String str, String str2, String str3) { AlertDialog create = new AlertDialog.Builder(this).create(); create.setTitle(str); create.setMessage(str2); create.setButton(-1, str3, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }); create.show(); } public void onCreate(Bundle savedInstanceState) { try { super.onCreate(savedInstanceState); zzbg.zzaJ("Preview activity"); Uri data = getIntent().getData(); if (!TagManager.getInstance(this).zzp(data)) { String str = "Cannot preview the app with the uri: " + data + ". Launching current version instead."; zzbg.zzaK(str); zzm("Preview failure", str, "Continue"); } Intent launchIntentForPackage = getPackageManager().getLaunchIntentForPackage(getPackageName()); if (launchIntentForPackage != null) { zzbg.zzaJ("Invoke the launch activity for package name: " + getPackageName()); startActivity(launchIntentForPackage); return; } zzbg.zzaJ("No launch activity found for package name: " + getPackageName()); } catch (Exception e) { zzbg.e("Calling preview threw an exception: " + e.getMessage()); } } }
[ "motometalor@gmail.com" ]
motometalor@gmail.com
cff944449e29a41d4d9997fee40d10c8f124868c
9b99b52aeb98c1660250aa1d884fef588de80528
/SITracker/src/main/java/com/andrada/sitracker/ui/fragment/AboutDialog.java
b3841878673fc5bb12a736b6cc9b693492847b4b
[]
no_license
herohd/SITracker
66bb7a63880403d85003b91608050961f85ce3a2
a94fcc0b83de7d93bba2fc8ebef511f6c467fedb
refs/heads/master
2021-01-14T09:42:21.029406
2014-11-01T10:58:04
2014-11-01T10:58:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,856
java
package com.andrada.sitracker.ui.fragment; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.text.SpannableString; import android.text.SpannableStringBuilder; import android.text.style.ClickableSpan; import android.view.View; import android.webkit.WebView; import com.andrada.sitracker.R; import com.andrada.sitracker.ui.components.AboutDialogView; import com.andrada.sitracker.ui.components.AboutDialogView_; public class AboutDialog extends DialogFragment { public static final String FRAGMENT_TAG = "about_dialog"; private static final String VERSION_UNAVAILABLE = "N/A"; public AboutDialog() { } @Override public Dialog onCreateDialog(Bundle savedInstanceState) { PackageManager pm = getActivity().getPackageManager(); String packageName = getActivity().getPackageName(); String versionName; try { PackageInfo info = pm.getPackageInfo(packageName, 0); versionName = info.versionName; } catch (PackageManager.NameNotFoundException e) { versionName = VERSION_UNAVAILABLE; } SpannableStringBuilder aboutBody = new SpannableStringBuilder(); SpannableString licensesLink = new SpannableString(getString(R.string.about_licenses)); licensesLink.setSpan(new ClickableSpan() { @Override public void onClick(View view) { showOpenSourceLicenses(getActivity()); } }, 0, licensesLink.length(), 0); SpannableString whatsNewLink = new SpannableString(getString(R.string.whats_new)); whatsNewLink.setSpan(new ClickableSpan() { @Override public void onClick(View view) { showWhatsNew(getActivity()); } }, 0, whatsNewLink.length(), 0); aboutBody.append(licensesLink); aboutBody.append("\n\n"); aboutBody.append(whatsNewLink); AboutDialogView aboutBodyView = AboutDialogView_.build(getActivity()); aboutBodyView.bindData(getString(R.string.app_version_format, versionName), aboutBody); return new AlertDialog.Builder(getActivity()) .setTitle(R.string.action_about) .setView(aboutBodyView) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { dialog.dismiss(); } } ).create(); } public static void showWhatsNew(FragmentActivity activity) { FragmentManager fm = activity.getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); Fragment prev = fm.findFragmentByTag(WhatsNewDialog.FRAGMENT_TAG); if (prev != null) { ft.remove(prev); } ft.addToBackStack(null); new WhatsNewDialog().show(ft, WhatsNewDialog.FRAGMENT_TAG); } public static void showOpenSourceLicenses(FragmentActivity activity) { FragmentManager fm = activity.getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); Fragment prev = fm.findFragmentByTag(OpenSourceLicensesDialog.FRAGMENT_TAG); if (prev != null) { ft.remove(prev); } ft.addToBackStack(null); new OpenSourceLicensesDialog().show(ft, OpenSourceLicensesDialog.FRAGMENT_TAG); } public static class WhatsNewDialog extends DialogFragment { public static final String FRAGMENT_TAG = "dialog_whatsnew"; public WhatsNewDialog() { } @Override public Dialog onCreateDialog(Bundle savedInstanceState) { WebView webView = new WebView(getActivity()); webView.loadData(getString(R.string.change_log), "text/html; charset=utf-8", "utf-8"); return new AlertDialog.Builder(getActivity()) .setTitle(R.string.whats_new) .setView(webView) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { dialog.dismiss(); } } ) .create(); } } public static class OpenSourceLicensesDialog extends DialogFragment { public static final String FRAGMENT_TAG = "dialog_licenses"; public OpenSourceLicensesDialog() { } @Override public Dialog onCreateDialog(Bundle savedInstanceState) { WebView webView = new WebView(getActivity()); webView.loadUrl("file:///android_asset/licenses.html"); return new AlertDialog.Builder(getActivity()) .setTitle(R.string.about_licenses) .setView(webView) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { dialog.dismiss(); } } ) .create(); } } }
[ "gleb.godonoga@gmail.com" ]
gleb.godonoga@gmail.com
bc16c3775ca0669cbc194486bff68de4257d2911
8dc9aaec39b7f07fd22adc9b36dc4e66a9af866b
/jcarafe-core/src/main/java/cern/colt/map/OpenIntIntHashMap.java
d8ef14d6de5e8f2e45e5c8257d3d38b147e154b5
[]
no_license
wellner/jcarafe
de147229665172795d72b260b11a07a90da1664e
ab8b0a83dbf600fe80c27711815c90bd3055b217
refs/heads/master
2021-01-17T10:10:37.105090
2018-01-02T21:22:32
2018-01-02T21:22:32
5,969,237
9
1
null
2012-10-15T19:27:40
2012-09-26T17:10:51
Java
UTF-8
Java
false
false
19,016
java
/* Copyright 1999 CERN - European Organization for Nuclear Research. Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. CERN makes no representations about the suitability of this software for any purpose. It is provided "as is" without expressed or implied warranty. */ package cern.colt.map; import cern.colt.function.IntIntProcedure; import cern.colt.function.IntProcedure; import cern.colt.list.ByteArrayList; import cern.colt.list.IntArrayList; /** Hash map holding (key,value) associations of type <tt>(int-->int)</tt>; Automatically grows and shrinks as needed; Implemented using open addressing with double hashing. First see the <a href="package-summary.html">package summary</a> and javadoc <a href="package-tree.html">tree view</a> to get the broad picture. Overrides many methods for performance reasons only. @author wolfgang.hoschek@cern.ch @version 1.0, 09/24/99 @see java.util.HashMap */ public class OpenIntIntHashMap extends AbstractIntIntMap { /** * The hash table keys. * @serial */ protected int table[]; /** * The hash table values. * @serial */ protected int values[]; /** * The state of each hash table entry (FREE, FULL, REMOVED). * @serial */ protected byte state[]; /** * The number of table entries in state==FREE. * @serial */ protected int freeEntries; protected static final byte FREE = 0; protected static final byte FULL = 1; protected static final byte REMOVED = 2; /** * Constructs an empty map with default capacity and default load factors. */ public OpenIntIntHashMap() { this(defaultCapacity); } /** * Constructs an empty map with the specified initial capacity and default load factors. * * @param initialCapacity the initial capacity of the map. * @throws IllegalArgumentException if the initial capacity is less * than zero. */ public OpenIntIntHashMap(int initialCapacity) { this(initialCapacity, defaultMinLoadFactor, defaultMaxLoadFactor); } /** * Constructs an empty map with * the specified initial capacity and the specified minimum and maximum load factor. * * @param initialCapacity the initial capacity. * @param minLoadFactor the minimum load factor. * @param maxLoadFactor the maximum load factor. * @throws IllegalArgumentException if <tt>initialCapacity < 0 || (minLoadFactor < 0.0 || minLoadFactor >= 1.0) || (maxLoadFactor <= 0.0 || maxLoadFactor >= 1.0) || (minLoadFactor >= maxLoadFactor)</tt>. */ public OpenIntIntHashMap(int initialCapacity, double minLoadFactor, double maxLoadFactor) { setUp(initialCapacity,minLoadFactor,maxLoadFactor); } /** * Removes all (key,value) associations from the receiver. * Implicitly calls <tt>trimToSize()</tt>. */ public void clear() { new ByteArrayList(this.state).fillFromToWith(0, this.state.length-1, FREE); //new IntArrayList(values).fillFromToWith(0, state.length-1, 0); // delta this.distinct = 0; this.freeEntries = table.length; // delta trimToSize(); } /** * Returns a deep copy of the receiver. * * @return a deep copy of the receiver. */ public Object clone() { OpenIntIntHashMap copy = (OpenIntIntHashMap) super.clone(); copy.table = (int[]) copy.table.clone(); copy.values = (int[]) copy.values.clone(); copy.state = (byte[]) copy.state.clone(); return copy; } /** * Returns <tt>true</tt> if the receiver contains the specified key. * * @return <tt>true</tt> if the receiver contains the specified key. */ public boolean containsKey(int key) { return indexOfKey(key) >= 0; } /** * Returns <tt>true</tt> if the receiver contains the specified value. * * @return <tt>true</tt> if the receiver contains the specified value. */ public boolean containsValue(int value) { return indexOfValue(value) >= 0; } /** * Ensures that the receiver can hold at least the specified number of associations without needing to allocate new internal memory. * If necessary, allocates new internal memory and increases the capacity of the receiver. * <p> * This method never need be called; it is for performance tuning only. * Calling this method before <tt>put()</tt>ing a large number of associations boosts performance, * because the receiver will grow only once instead of potentially many times and hash collisions get less probable. * * @param minCapacity the desired minimum capacity. */ public void ensureCapacity(int minCapacity) { if (table.length < minCapacity) { int newCapacity = nextPrime(minCapacity); rehash(newCapacity); } } /** * Applies a procedure to each key of the receiver, if any. * Note: Iterates over the keys in no particular order. * Subclasses can define a particular order, for example, "sorted by key". * All methods which <i>can</i> be expressed in terms of this method (most methods can) <i>must guarantee</i> to use the <i>same</i> order defined by this method, even if it is no particular order. * This is necessary so that, for example, methods <tt>keys</tt> and <tt>values</tt> will yield association pairs, not two uncorrelated lists. * * @param procedure the procedure to be applied. Stops iteration if the procedure returns <tt>false</tt>, otherwise continues. * @return <tt>false</tt> if the procedure stopped before all keys where iterated over, <tt>true</tt> otherwise. */ public boolean forEachKey(IntProcedure procedure) { for (int i = table.length ; i-- > 0 ;) { if (state[i]==FULL) if (! procedure.apply(table[i])) return false; } return true; } /** * Applies a procedure to each (key,value) pair of the receiver, if any. * Iteration order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(IntProcedure)}. * * @param procedure the procedure to be applied. Stops iteration if the procedure returns <tt>false</tt>, otherwise continues. * @return <tt>false</tt> if the procedure stopped before all keys where iterated over, <tt>true</tt> otherwise. */ public boolean forEachPair(final IntIntProcedure procedure) { for (int i = table.length ; i-- > 0 ;) { if (state[i]==FULL) if (! procedure.apply(table[i],values[i])) return false; } return true; } /** * Returns the value associated with the specified key. * It is often a good idea to first check with {@link #containsKey(int)} whether the given key has a value associated or not, i.e. whether there exists an association for the given key or not. * * @param key the key to be searched for. * @return the value associated with the specified key; <tt>0</tt> if no such key is present. */ public int get(int key) { int i = indexOfKey(key); if (i<0) return 0; //not contained return values[i]; } /** * @param key the key to be added to the receiver. * @return the index where the key would need to be inserted, if it is not already contained. * Returns -index-1 if the key is already contained at slot index. * Therefore, if the returned index < 0, then it is already contained at slot -index-1. * If the returned index >= 0, then it is NOT already contained and should be inserted at slot index. */ protected int indexOfInsertion(int key) { //System.out.println("key="+key); final int tab[] = table; final byte stat[] = state; final int length = tab.length; final int hash = HashFunctions.hash(key) & 0x7FFFFFFF; int i = hash % length; int decrement = hash % (length-2); // double hashing, see http://www.eece.unm.edu/faculty/heileman/hash/node4.html //int decrement = (hash / length) % length; if (decrement == 0) decrement = 1; // stop if we find a removed or free slot, or if we find the key itself // do NOT skip over removed slots (yes, open addressing is like that...) while (stat[i] == FULL && tab[i] != key) { i -= decrement; //hashCollisions++; if (i<0) i+=length; } if (stat[i] == REMOVED) { // stop if we find a free slot, or if we find the key itself. // do skip over removed slots (yes, open addressing is like that...) // assertion: there is at least one FREE slot. int j = i; while (stat[i] != FREE && (stat[i] == REMOVED || tab[i] != key)) { i -= decrement; //hashCollisions++; if (i<0) i+=length; } if (stat[i] == FREE) i = j; } if (stat[i] == FULL) { // key already contained at slot i. // return a negative number identifying the slot. return -i-1; } // not already contained, should be inserted at slot i. // return a number >= 0 identifying the slot. return i; } /** * @param key the key to be searched in the receiver. * @return the index where the key is contained in the receiver, returns -1 if the key was not found. */ protected int indexOfKey(int key) { final int tab[] = table; final byte stat[] = state; final int length = tab.length; final int hash = HashFunctions.hash(key) & 0x7FFFFFFF; int i = hash % length; int decrement = hash % (length-2); // double hashing, see http://www.eece.unm.edu/faculty/heileman/hash/node4.html //int decrement = (hash / length) % length; if (decrement == 0) decrement = 1; // stop if we find a free slot, or if we find the key itself. // do skip over removed slots (yes, open addressing is like that...) while (stat[i] != FREE && (stat[i] == REMOVED || tab[i] != key)) { i -= decrement; //hashCollisions++; if (i<0) i+=length; } if (stat[i] == FREE) return -1; // not found return i; //found, return index where key is contained } /** * @param value the value to be searched in the receiver. * @return the index where the value is contained in the receiver, returns -1 if the value was not found. */ protected int indexOfValue(int value) { final int val[] = values; final byte stat[] = state; for (int i=stat.length; --i >= 0;) { if (stat[i]==FULL && val[i]==value) return i; } return -1; // not found } /** * Returns the first key the given value is associated with. * It is often a good idea to first check with {@link #containsValue(int)} whether there exists an association from a key to this value. * Search order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(IntProcedure)}. * * @param value the value to search for. * @return the first key for which holds <tt>get(key) == value</tt>; * returns <tt>Integer.MIN_VALUE</tt> if no such key exists. */ public int keyOf(int value) { //returns the first key found; there may be more matching keys, however. int i = indexOfValue(value); if (i<0) return Integer.MIN_VALUE; return table[i]; } /** * Fills all keys contained in the receiver into the specified list. * Fills the list, starting at index 0. * After this call returns the specified list has a new size that equals <tt>this.size()</tt>. * Iteration order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(IntProcedure)}. * <p> * This method can be used to iterate over the keys of the receiver. * * @param list the list to be filled, can have any size. */ public void keys(IntArrayList list) { list.setSize(distinct); int[] elements = list.elements(); int[] tab = table; byte[] stat = state; int j=0; for (int i = tab.length ; i-- > 0 ;) { if (stat[i]==FULL) elements[j++]=tab[i]; } } /** Fills all pairs satisfying a given condition into the specified lists. Fills into the lists, starting at index 0. After this call returns the specified lists both have a new size, the number of pairs satisfying the condition. Iteration order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(IntProcedure)}. <p> <b>Example:</b> <br> <pre> IntIntProcedure condition = new IntIntProcedure() { // match even keys only public boolean apply(int key, int value) { return key%2==0; } } keys = (8,7,6), values = (1,2,2) --> keyList = (6,8), valueList = (2,1)</tt> </pre> @param condition the condition to be matched. Takes the current key as first and the current value as second argument. @param keyList the list to be filled with keys, can have any size. @param valueList the list to be filled with values, can have any size. */ public void pairsMatching(final IntIntProcedure condition, final IntArrayList keyList, final IntArrayList valueList) { keyList.clear(); valueList.clear(); for (int i = table.length ; i-- > 0 ;) { if (state[i]==FULL && condition.apply(table[i],values[i])) { keyList.add(table[i]); valueList.add(values[i]); } } } /** * Associates the given key with the given value. * Replaces any old <tt>(key,someOtherValue)</tt> association, if existing. * * @param key the key the value shall be associated with. * @param value the value to be associated. * @return <tt>true</tt> if the receiver did not already contain such a key; * <tt>false</tt> if the receiver did already contain such a key - the new value has now replaced the formerly associated value. */ public boolean put(int key, int value) { int i = indexOfInsertion(key); if (i<0) { //already contained i = -i -1; this.values[i]=value; return false; } if (this.distinct > this.highWaterMark) { int newCapacity = chooseGrowCapacity(this.distinct+1,this.minLoadFactor, this.maxLoadFactor); //System.out.print("grow rehashing "); //System.out.println("at distinct="+distinct+", capacity="+table.length+" to newCapacity="+newCapacity+" ..."); rehash(newCapacity); return put(key, value); } this.table[i]=key; this.values[i]=value; if (this.state[i]==FREE) this.freeEntries--; this.state[i]=FULL; this.distinct++; if (this.freeEntries < 1) { //delta int newCapacity = chooseGrowCapacity(this.distinct+1,this.minLoadFactor, this.maxLoadFactor); rehash(newCapacity); } return true; } /** * Rehashes the contents of the receiver into a new table * with a smaller or larger capacity. * This method is called automatically when the * number of keys in the receiver exceeds the high water mark or falls below the low water mark. */ protected void rehash(int newCapacity) { int oldCapacity = table.length; //if (oldCapacity == newCapacity) return; int oldTable[] = table; int oldValues[] = values; byte oldState[] = state; int newTable[] = new int[newCapacity]; int newValues[] = new int[newCapacity]; byte newState[] = new byte[newCapacity]; this.lowWaterMark = chooseLowWaterMark(newCapacity,this.minLoadFactor); this.highWaterMark = chooseHighWaterMark(newCapacity,this.maxLoadFactor); this.table = newTable; this.values = newValues; this.state = newState; this.freeEntries = newCapacity-this.distinct; // delta for (int i = oldCapacity ; i-- > 0 ;) { if (oldState[i]==FULL) { int element = oldTable[i]; int index = indexOfInsertion(element); newTable[index]=element; newValues[index]=oldValues[i]; newState[index]=FULL; } } } /** * Removes the given key with its associated element from the receiver, if present. * * @param key the key to be removed from the receiver. * @return <tt>true</tt> if the receiver contained the specified key, <tt>false</tt> otherwise. */ public boolean removeKey(int key) { int i = indexOfKey(key); if (i<0) return false; // key not contained this.state[i]=REMOVED; //this.values[i]=0; // delta this.distinct--; if (this.distinct < this.lowWaterMark) { int newCapacity = chooseShrinkCapacity(this.distinct,this.minLoadFactor, this.maxLoadFactor); /* if (table.length != newCapacity) { System.out.print("shrink rehashing "); System.out.println("at distinct="+distinct+", capacity="+table.length+" to newCapacity="+newCapacity+" ..."); } */ rehash(newCapacity); } return true; } /** * Initializes the receiver. * * @param initialCapacity the initial capacity of the receiver. * @param minLoadFactor the minLoadFactor of the receiver. * @param maxLoadFactor the maxLoadFactor of the receiver. * @throws IllegalArgumentException if <tt>initialCapacity < 0 || (minLoadFactor < 0.0 || minLoadFactor >= 1.0) || (maxLoadFactor <= 0.0 || maxLoadFactor >= 1.0) || (minLoadFactor >= maxLoadFactor)</tt>. */ protected void setUp(int initialCapacity, double minLoadFactor, double maxLoadFactor) { int capacity = initialCapacity; super.setUp(capacity, minLoadFactor, maxLoadFactor); capacity = nextPrime(capacity); if (capacity==0) capacity=1; // open addressing needs at least one FREE slot at any time. this.table = new int[capacity]; this.values = new int[capacity]; this.state = new byte[capacity]; // memory will be exhausted long before this pathological case happens, anyway. this.minLoadFactor = minLoadFactor; if (capacity == PrimeFinder.largestPrime) this.maxLoadFactor = 1.0; else this.maxLoadFactor = maxLoadFactor; this.distinct = 0; this.freeEntries = capacity; // delta // lowWaterMark will be established upon first expansion. // establishing it now (upon instance construction) would immediately make the table shrink upon first put(...). // After all the idea of an "initialCapacity" implies violating lowWaterMarks when an object is young. // See ensureCapacity(...) this.lowWaterMark = 0; this.highWaterMark = chooseHighWaterMark(capacity, this.maxLoadFactor); } /** * Trims the capacity of the receiver to be the receiver's current * size. Releases any superfluous internal memory. An application can use this operation to minimize the * storage of the receiver. */ public void trimToSize() { // * 1.2 because open addressing's performance exponentially degrades beyond that point // so that even rehashing the table can take very long int newCapacity = nextPrime((int)(1 + 1.2*size())); if (table.length > newCapacity) { rehash(newCapacity); } } /** * Fills all values contained in the receiver into the specified list. * Fills the list, starting at index 0. * After this call returns the specified list has a new size that equals <tt>this.size()</tt>. * Iteration order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(IntProcedure)}. * <p> * This method can be used to iterate over the values of the receiver. * * @param list the list to be filled, can have any size. */ public void values(IntArrayList list) { list.setSize(distinct); int[] elements = list.elements(); int[] val = values; byte[] stat = state; int j=0; for (int i = stat.length ; i-- > 0 ;) { if (stat[i]==FULL) elements[j++]=val[i]; } } }
[ "wellner@mitre.org" ]
wellner@mitre.org
f0af6a97a9b591f79b476d40cf284f1e55c8bd96
95edf090ae3bf2edc4a9be4527fd41a5fa285143
/src/com/oa/service/BaseService.java
0d2c4be82d79b173b4df7ab4c1e77aff3ad48d6a
[]
no_license
XMFBee/OA
573e4b2bb384a4d353d8452eef93ae78b9d2074e
a38d0a21bb90f81a104ccaf4f23712f91abbcd0c
refs/heads/master
2020-06-22T03:23:37.871506
2017-06-13T12:40:22
2017-06-13T12:40:22
94,209,910
1
0
null
null
null
null
UTF-8
Java
false
false
611
java
package com.oa.service; import com.oa.common.bean.Pager4EasyUI; import java.io.Serializable; import java.util.List; /** * Created by xiao-kang on 2016/12/13. */ public interface BaseService<T> { public T save(T t); public void delete(T t); public void update(T t); public T queryById(Class<?> clazz, Serializable id); public List<T> queryAll(Serializable beanName); public Pager4EasyUI<T> queryPager(String beanName, Pager4EasyUI<T> pager); public long count(Serializable beanName); public void updateStatus(String beanName,String beanId,int status,String id); }
[ "1626470874@qq.com" ]
1626470874@qq.com
5248347ada245b1404d99b6e24fe21243eaa3dd1
a1e9d81036d44d43149755d96a4e5c862a4c794d
/trunk/tair_2_2_mon/src/com/taobao/common/tair/packet/ResponseGetPacket.java
d9fd477c18fe753845eceec7caa21882f0eb4359
[]
no_license
jasonjoo2010/tair-monitor
59945ceffbc08d53bedf3967e1d48ecd9a16b68b
97dbd6ca0b5842d671a74539787638cca0a20d61
refs/heads/master
2021-03-08T13:59:56.756366
2018-03-08T04:25:27
2018-03-08T04:25:27
246,350,943
0
0
null
null
null
null
GB18030
Java
false
false
3,234
java
package com.taobao.common.tair.packet; import java.util.ArrayList; import java.util.List; import com.taobao.common.tair.DataEntry; import com.taobao.common.tair.comm.Transcoder; import com.taobao.common.tair.etc.TairConstant; public class ResponseGetPacket extends BasePacket { private int configVersion; private List<DataEntry> entryList; /** * 构造函数 * * @param transcoder */ public ResponseGetPacket(Transcoder transcoder) { super(transcoder); this.pcode = TairConstant.TAIR_RESP_GET_PACKET; } /** * encode */ public int encode() { List<byte[]> list = new ArrayList<byte[]>(); int capacity = 0; for (DataEntry de : entryList) { byte[] keyByte = transcoder.encode(de.getKey()); byte[] dataByte = transcoder.encode(de.getValue()); capacity += (8 + keyByte.length + dataByte.length); list.add(keyByte); list.add(dataByte); } // 分配一ByteBuffer, 并写packetHeader writePacketBegin(capacity); // body int index = 0; byteBuffer.putInt(configVersion); byteBuffer.putInt(list.size() / 2); for (byte[] keyByte : list) { if ((index++ % 2) == 0) { byteBuffer.putShort((short) keyByte.length); } else { byteBuffer.putInt(keyByte.length); } byteBuffer.put(keyByte); } // 结束, 计算出长度 writePacketEnd(); return 0; } /** * decode */ public boolean decode() { this.configVersion = byteBuffer.getInt(); int count = byteBuffer.getInt(); int size = 0; int version = 0; Object key = null; Object value = null; this.entryList = new ArrayList<DataEntry>(count); for (int i = 0; i < count; i++) { version = byteBuffer.getShort(); size = byteBuffer.getShort(); if (size > 0) { key = transcoder.decode(byteBuffer.array(), byteBuffer.position(), size); byteBuffer.position(byteBuffer.position() + size); } size = byteBuffer.getInt(); if (size > 0) { value = transcoder.decode(byteBuffer.array(), byteBuffer.position(), size); byteBuffer.position(byteBuffer.position() + size); } this.entryList.add(new DataEntry(key, value, version)); } return true; } public List<DataEntry> getEntryList() { return entryList; } public void setEntryList(List<DataEntry> entryList) { this.entryList = entryList; } /** * * @return the configVersion */ public int getConfigVersion() { return configVersion; } /** * * @param configVersion the configVersion to set */ public void setConfigVersion(int configVersion) { this.configVersion = configVersion; } }
[ "jason@dayima.com" ]
jason@dayima.com
4dfb9c723d4dfaaa1b68d21982cf8a6798e30a16
a795d3046c8d9fed809be646d16eaa0f01bad2d0
/app/src/main/java/casier/billsplitter/Utils.java
c316e865d9b12c2178db30dc267a3af9a482ee99
[]
no_license
Casier/BillSplitter
d86f670b6989975f7e121ac96fc597873966d42b
80c22557cfd436fbbfcbb620b29aaf482f6d5f97
refs/heads/master
2020-03-23T23:02:30.797433
2018-11-17T20:47:26
2018-11-17T20:47:26
142,212,835
1
0
null
null
null
null
UTF-8
Java
false
false
2,835
java
package casier.billsplitter; import android.content.Context; import android.content.Intent; import com.google.firebase.database.DatabaseReference; import com.google.firebase.database.FirebaseDatabase; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import casier.billsplitter.Model.Account; import casier.billsplitter.Model.Bill; import casier.billsplitter.Model.LocalUser; import casier.billsplitter.Model.User; public class Utils { private FirebaseDatabase mDatabase; private Account selectedAccount; private ArrayList<BillDataObserver> mBillObservers = new ArrayList<>(); private ArrayList<FriendDataObserver> mFriendObservers = new ArrayList<>(); private static Utils mInstance = null; private Map<String, String> usersImageUrl = new HashMap<>(); private static DAO data = DAO.getInstance(); private List<String> currency = Arrays.asList("$", "€", "¥", "₡", "£", "₪", "₦", "₱", "zł", "₲", "฿", "₴", "₫"); public static Utils getInstance(){ if(mInstance == null) { mInstance = new Utils(); } return mInstance; } public void addFriend(String friendID){ LocalUser currentUser = LocalUser.getInstance(); currentUser.addFriend(friendID); DatabaseReference reference = mDatabase.getReference("users").child(LocalUser.getInstance().getUserId()); reference.child("friends").setValue(currentUser.getFriendList()); } public void sendInviteToFriend(Context context){ Intent i = new Intent(Intent.ACTION_SEND); i.setType("text/plain"); i.putExtra(Intent.EXTRA_SUBJECT, "BillSplitter"); String strShareMessage = "\nLet me recommend you this application\n\n"; strShareMessage = strShareMessage + "https://play.google.com/store/apps/details?id=" + context.getPackageName(); i.setType("image/png"); i.putExtra(Intent.EXTRA_TEXT, strShareMessage); context.startActivity(Intent.createChooser(i, "Share via")); } public void addUserImageUrl(String id, String url){ usersImageUrl.put(id, url); } public String getImageUrlByUserId(String userId){ return usersImageUrl.get(userId); } public Account getSelectedAccount(){ return this.selectedAccount; } public void setSelectedAccount(Account account){ this.selectedAccount = account; } public User getUserById(String id){ for(User u : data.userList){ if(u.getUserId().equals(id)) return u; } return null; } public List<Bill> getBillList(){ return this.selectedAccount.getBills(); } public List<String> getCurrency(){ return this.currency; } }
[ "arthurmercier01@gmail.com" ]
arthurmercier01@gmail.com
76da70faac0821cc1a981241cf454a96578ab4d1
75b1e60ac7d1f4af802f31852bd0c7e3f3aa338a
/src/main/java/com/schibsted/dirfinder/directories/basic/BasicDirectory.java
b0fad6f74e8e88527caff2761513d0ea665decc8
[]
no_license
olivernoguera/dirfinder
9d68a8cd3cd189d66a57754579cf680cbedbb496
8f36780ac58a9676378871deb6709a90e25087d3
refs/heads/master
2020-04-04T15:09:04.746166
2018-11-04T23:04:59
2018-11-04T23:04:59
156,026,139
0
1
null
null
null
null
UTF-8
Java
false
false
1,110
java
package com.schibsted.dirfinder.directories.basic; import com.schibsted.dirfinder.directories.Directory; import com.schibsted.dirfinder.directories.DirectoryMap; import com.schibsted.dirfinder.directories.DirectorySearch; import java.io.File; public class BasicDirectory implements Directory { private File directory; private DirectoryMap directoryMap; public void setPathDirectory(String directoryPath) { directory = new File(directoryPath); if (!directory.canRead()) { throw new IllegalArgumentException(" Path can not read"); } if (!directory.isDirectory()) { throw new IllegalArgumentException(" Path is not a directory"); } this.directoryMap = new MapDirectory(); directoryMap.load(directory); } @Override public DirectorySearch findWordsInDirectory(String line) { return directoryMap.findWordsInDirectory(line); } public Integer getNumberReadFiles() { return directoryMap.filesScanned(); } public String getPath() { return directory.getPath(); } }
[ "oliverzf@gmail.com" ]
oliverzf@gmail.com
fc6cef29cd82fdb70cf988893c102ba1726ea3db
bd100ab6cf7f2fa79d9a883e6da721c9da24af67
/ACompiler/src/ast/APrimaryIdentifier.java
492b8e46a0eaafeef386d40ea1b23966684a5b5c
[]
no_license
alonsovb/compiler-codegenerator
300080863f815ab05dff3b512f9e2d8c81fbf3e3
b272c20e0213d54fbe0b5a32361ac6ca18b57866
refs/heads/master
2020-12-24T13:44:11.409619
2012-06-23T03:24:06
2012-06-23T03:24:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
347
java
package ast; import java_cup.runtime.Symbol; public class APrimaryIdentifier extends PrimaryExpression { public Symbol id1; public AST declaration = null; public APrimaryIdentifier(Symbol ID1) { id1 = ID1; } public Object visit(Visitor v, Object arg) { return v.visitAPrimaryIdentifier(this, arg); } }
[ "lavb91@gmail.com" ]
lavb91@gmail.com
fd2708893d74245972a2355508f24931425b6c23
1a3ebdac389f6ad988a78cbb902bc0acde9e64bd
/Final/Main.java
c73383be3e7eb78fda88e4b8beb9639df5dac467
[ "MIT" ]
permissive
smbarajas/Meatbacon
afc9fd82b0839eb50775a43b0f67bbb7ca430175
f077c6aaecf3ee1f50c116b68d2e3c1de8c33013
refs/heads/master
2020-04-16T12:14:09.152687
2019-03-20T21:49:05
2019-03-20T21:49:05
165,569,906
0
0
null
null
null
null
UTF-8
Java
false
false
624
java
// Designed and coded items in a library including books, DVDs, and CDs class Main { public static void main(String[] args) { //add items to the library Item[] Item = {new Item("book", "Time Traveler's Wife", "02242374"), new Item("cd", "Backstreet Boys", "006812386"), new Item("dvd", "Pokemon", "00688756"), new Item("book", "The Great Gatsby", "02123374")}; //check out the first item Item[0].checkOut(); // print information about every item for (int i = 0; i < Item.length; i++) { Item[i].printItemInfo(); } } }
[ "noreply@github.com" ]
noreply@github.com
346ecaf0f9cec0f57da5803c07b237f4dab6901e
3e28328b5f193cc01f524c241929cc5f8f9fcd37
/src/main/java/model/LineItem.java
a2d24f35321d1880246220e9c2439f7016124967
[]
no_license
srgong/data-migration
573645a868abc40b82d1a4ef2a7c0b6f37f76854
a99fd91ae7823ab24aba239a23cbcac8832fadf5
refs/heads/master
2020-04-24T12:09:40.363390
2019-02-27T03:33:31
2019-02-27T03:33:31
171,948,064
0
0
null
null
null
null
UTF-8
Java
false
false
2,098
java
package model; import com.fasterxml.jackson.annotation.JsonProperty; import org.apache.commons.lang3.builder.ToStringBuilder; /** * Created by Sharon on 2/26/19. */ public class LineItem { @JsonProperty("id") private long id; @JsonProperty("variant_id") private long variantId; @JsonProperty("quantity") private long quantity; @JsonProperty("product_id") private long productId; private long orderId; public LineItem() {} /** * * @param id * @param quantity * @param variantId * @param productId */ public LineItem(long id, long variantId, long quantity, long productId) { super(); this.id = id; this.variantId = variantId; this.quantity = quantity; this.productId = productId; } public long getOrderId() { return orderId; } public void setOrderId(long orderId) { this.orderId = orderId; } @JsonProperty("id") public long getId() { return id; } @JsonProperty("id") public void setId(long id) { this.id = id; } @JsonProperty("variant_id") public long getVariantId() { return variantId; } @JsonProperty("variant_id") public void setVariantId(long variantId) { this.variantId = variantId; } @JsonProperty("quantity") public long getQuantity() { return quantity; } @JsonProperty("quantity") public void setQuantity(long quantity) { this.quantity = quantity; } @JsonProperty("product_id") public long getProductId() { return productId; } @JsonProperty("product_id") public void setProductId(long productId) { this.productId = productId; } public void setOrderId(Long orderId) { this.orderId = orderId; } @Override public String toString() { return new ToStringBuilder(this).append("quantity",quantity).append(",").append("productId",productId).toString(); // return "\nquantity: " + quantity+ "\nproductId: " + productId; } }
[ "g.sharonr@gmail.com" ]
g.sharonr@gmail.com
49711018f47f495181cb90424be9ea45380b2e4b
a869aa6ffbd99fe77d4d5aa0b4d739958ebd35c0
/src/cerchioanimato/Finesta.java
8d4f455af2e4e9829371ebdd87a5ef06124b157d
[]
no_license
DBFArianna/CerchioAnimato
fe8852238464d3412f884b06d1e29b05b1bac0b5
d1a7d42031f0acd90bbfadbc25d66589bbf9ff69
refs/heads/master
2020-04-02T09:50:16.923021
2018-10-24T07:14:10
2018-10-24T07:14:10
154,311,966
0
0
null
null
null
null
UTF-8
Java
false
false
1,420
java
package cerchioanimato; //importo tutti gli oggetti di awt import java.awt.*; //importo tutti gli oggetti di swing import javax.swing.*; //classe concreta //estende JFrame public class Finesta extends JFrame { // varibili e costanti globali // misure della Finestra public final static int SIZE_FRAME_X = 600; public final static int SIZE_FRAME_Y = 500; // Costruttore public Finesta() { // chiamo costruttore di JFrame super("Vogliamo vederlo scorrere"); // setta cosa fare quando chiacci sulla X setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // misure Frame setPreferredSize(new Dimension(SIZE_FRAME_X, SIZE_FRAME_Y)); // setto il layout della fiestra setLayout(new FlowLayout()); // creo cerchi Cerchio c1 = new Cerchio(); Cerchio c2 = new Cerchio(); Cerchio c3 = new Cerchio(); // aggiungi i cerchi al Frame // e decidiamo disposizione nella finestra add(c1);//, BorderLayout.CENTER); add(c2);//, BorderLayout.SOUTH); add(c3);//, BorderLayout.WEST); // aggiungiamo le componenti grafiche pack(); // setta visibilità a true setVisible(true); } // metodo statico di test public static void test() { // creo Finestra Finesta f = new Finesta(); } }
[ "Corso@PC-037.homenet.telecomitalia.it" ]
Corso@PC-037.homenet.telecomitalia.it
19cce8b24fadab72a690f69bbbcc97a3e829ab3e
d90d4c663cd7a06112150ad7323b20ed0ca2f76d
/src/main/java/jp/co/yahoo/yosegi/spread/analyzer/LongColumnAnalizer.java
e83cbd7f5c3e933fcba39b19a32fe5d1bf2979a2
[ "Apache-2.0" ]
permissive
yohto/yosegi
1cf2cd740a78c2a00dcaeece135d4c93ce84ac4b
300fe0015fd1e36aea84b9b70cd963837ea99cb3
refs/heads/master
2021-07-10T16:54:33.290744
2020-08-07T05:55:18
2020-08-07T05:55:18
192,878,849
0
0
Apache-2.0
2019-06-20T08:15:47
2019-06-20T08:15:47
null
UTF-8
Java
false
false
2,954
java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jp.co.yahoo.yosegi.spread.analyzer; import jp.co.yahoo.yosegi.spread.column.ColumnType; import jp.co.yahoo.yosegi.spread.column.ICell; import jp.co.yahoo.yosegi.spread.column.IColumn; import jp.co.yahoo.yosegi.spread.column.PrimitiveCell; import jp.co.yahoo.yosegi.util.io.rle.RleConverter; import java.io.IOException; import java.util.HashSet; import java.util.Set; public class LongColumnAnalizer implements IColumnAnalizer { private final IColumn column; public LongColumnAnalizer( final IColumn column ) { this.column = column; } @Override public IColumnAnalizeResult analize() throws IOException { boolean maybeSorted = true; Long currentSortCheckValue = Long.MIN_VALUE; int nullCount = 0; int rowCount = 0; Set<Long> dicSet = new HashSet<Long>(); Long min = Long.MAX_VALUE; Long max = Long.MIN_VALUE; RleConverter<Long> rleConverter = null; for ( int i = 0 ; i < column.size() ; i++ ) { ICell cell = column.get(i); if ( cell.getType() == ColumnType.NULL ) { nullCount++; continue; } Long target = Long.valueOf( ( (PrimitiveCell) cell).getRow().getLong() ); if ( maybeSorted && currentSortCheckValue.compareTo( target ) <= 0 ) { currentSortCheckValue = target; } else { maybeSorted = false; } if ( rleConverter == null ) { rleConverter = new RleConverter<Long>( target , null ); } rleConverter.add( target ); rowCount++; if ( ! dicSet.contains( target ) ) { dicSet.add( target ); if ( 0 < min.compareTo( target ) ) { min = Long.valueOf( target ); } if ( max.compareTo( target ) < 0 ) { max = Long.valueOf( target ); } } } rleConverter.finish(); int uniqCount = dicSet.size(); return new LongColumnAnalizeResult( column.getColumnName() , column.size() , maybeSorted , nullCount , rowCount , uniqCount , min , max , rleConverter.getRowGroupCount() , rleConverter.getMaxGroupLength() ); } }
[ "kijima@yahoo-corp.jp" ]
kijima@yahoo-corp.jp
744bb0c1d3273adaf4d17394d438b795aa961b74
7dd4ddbd52624145d8bd10641fba3a97a84e8fd6
/taotao-search/taotao-search-interface/src/main/java/taotao/search/service/SearchItemService.java
831d128ffb2466c5fb11446ccc551fc257683cc6
[]
no_license
huangpeng5100/test
ac2d476aac2cf1a5a0b1332907850f4993455b4a
9d96c85fff6b4ee781ce15ef8d75018b97f4914f
refs/heads/master
2021-06-28T03:20:40.251790
2019-12-11T08:58:54
2019-12-11T09:14:36
227,308,417
0
0
null
null
null
null
UTF-8
Java
false
false
223
java
package taotao.search.service; import com.taotao.common.pojo.TaotaoResult; public interface SearchItemService { TaotaoResult importAllItems() throws Exception; TaotaoResult addDocument(long itemId) throws Exception; }
[ "huangpeng5100@163.com" ]
huangpeng5100@163.com
231fd558cf906da67c2fc131f75564f5a68b5921
9d444fbc2b60e773217c8d03b50153013d492647
/Selenium_TestNG_Suit/src/TestNG_pack/Demo5_TestNG_Dataprovider.java
d8c14ad0700904e50a71c5cc1d75aa8cee361760
[]
no_license
Sankushw/TestNgSuit
abc69240e208a2ec80b8dbf765845fd689e4a2dc
8bab89b2e9edec14d1ca94dd4fecd286255bb1db
refs/heads/master
2023-04-09T00:57:11.530286
2021-04-18T10:35:00
2021-04-18T10:35:00
359,112,890
0
0
null
null
null
null
UTF-8
Java
false
false
1,724
java
package TestNG_pack; import org.testng.annotations.Test; import org.testng.annotations.BeforeMethod; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.AfterMethod; import org.testng.annotations.DataProvider; public class Demo5_TestNG_Dataprovider { //Listeners are used to customize the reposts //make a listerners class and implement ItestListner in that and use @Listener annotation in this class above the classname to call it //we can also declare it at @suite level in .xml file when there are multiple classes //If running the xml file then remove the @Listeners notation from here WebDriver driver; @BeforeMethod public void beforeMethod() { System.setProperty("webdriver.chrome.driver","C:\\Users\\SanjayKushwaha\\Desktop\\Selenium\\chromedriver.exe"); driver=new ChromeDriver(); driver.manage().window().maximize(); driver.get("https://opensource-demo.orangehrmlive.com/"); } @Test(dataProvider = "dp") public void f(String n, String s) throws InterruptedException { driver.findElement(By.id("txtUsername")).sendKeys(n); driver.findElement(By.id("txtPassword")).sendKeys(s); WebElement Login=driver.findElement(By.id("btnLogin")); Thread.sleep(3000); driver.findElement(By.id("welcome")).click(); driver.findElement(By.xpath("//*[@id='welcome-menu']/ul/li[3]/a")).click(); Thread.sleep(3000); } @AfterMethod public void afterMethod() { driver.close(); } @DataProvider public Object[][] dp() { return new Object[][] { new Object[] { "manzoor", "manzoor" }, new Object[] { "linda.anderson", "linda.anderson" }, }; } }
[ "SanjayKushwaha@9.206.158.74" ]
SanjayKushwaha@9.206.158.74
fdf532dfa4b572c33aecb3102fade9e410e8956a
afb837166c7b2e4717c6dd1b86785031ceded41b
/src/main/java/com/aerotop/enums/FrameTypeEnum.java
cb5ab16ae5d8f87388e339fb2808000e0aeca0ca
[]
no_license
gaosong119/LoggerRecord
c7514176cb0ff8b6256b8079dfb63ef43c72cf75
a8b4bee5a15389cb5a4d21356e7d216239be92b8
refs/heads/master
2023-02-08T00:01:09.045868
2020-12-17T07:43:40
2020-12-17T07:43:40
303,575,359
0
0
null
null
null
null
UTF-8
Java
false
false
688
java
package com.aerotop.enums; /** * @ClassName: FrameTypeEnum * @Description: 帧类型枚举类 * @Author: gaosong * @Date 2020/10/9 13:58 */ public enum FrameTypeEnum { DATAFRAME, COMMANDFRAME; /** * @Description:将帧类型字段枚举类型转为数字类型 * @Author: gaosong * @Date: 2020/11/17 18:35 * @param frameTypeEnum: 帧类型枚举数据 * @return: byte **/ public static byte frameTypeToNum(FrameTypeEnum frameTypeEnum){ byte b = 0; switch (frameTypeEnum){ case DATAFRAME: break; case COMMANDFRAME:b=1; break; } return b; } }
[ "gaosongdj@163.com" ]
gaosongdj@163.com