blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
410
content_id
stringlengths
40
40
detected_licenses
listlengths
0
51
license_type
stringclasses
2 values
repo_name
stringlengths
5
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
80
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
684M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
132 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
9.45M
extension
stringclasses
28 values
content
stringlengths
3
9.45M
authors
listlengths
1
1
author_id
stringlengths
0
352
20342b97978356abd48529110c4df573c3ec64f3
25db460a113de0fc779798f0566eae17c0aee1ae
/java8Demo/src/com/zfc/java8/demo03.java
9d08f4cdbe10330eaa9174269805496f35863bd3
[]
no_license
Zhangfc682/workplacedemo
4222955e147d8bf2a3b0817941d5a204e20e4a1a
e04af4498f785843033a6b533cf93b0537203dee
refs/heads/master
2023-04-01T21:58:04.870635
2021-04-14T09:09:35
2021-04-14T09:09:35
357,844,572
0
0
null
null
null
null
UTF-8
Java
false
false
1,360
java
package com.zfc.java8;/** * @version: 0.1.0 * @author: Zhangfucai * @Description: * @create: 2021-04-12 21:40 * @Modified By: */ import org.junit.Test; import java.io.PrintStream; import java.util.function.Consumer; /** * @ClassName: demo03 * @Description 方法引用 * 当要传递给Lambda体的操作,已经有了实现的方法,可以使用方法引用。 * 方法引用就是lambda表达式,通过方法的名字指向一个方法,可以认为是lambda表达式的一个语法糖。 * lambda表达式作为函数式接口的实例,所以,方法引用也是函数式接口的实例。 * * 要求:实现接口的抽象方法的参数列表和返回值类型,必须与方法引用的方法的参数列表和返回值类型保持一致。 * 格式:使用操作符“ :: ”将类或对象与方法名分隔开来。 * * 对象::实例方法名 * 类::静态方法名 * 类::实例方法名 * * @Author: Zhangfucai * @Date: 2021/4/12 21:40 * @Version: 1.0 */ public class demo03 { @Test public void test(){ Consumer<String> con = s -> System.out.println(s); con.accept("你好吗"); //println方法属于System.out对象的方法,所以通过对象调用 PrintStream ps = System.out; Consumer<String> con1 = ps::println; con1.accept("我很好"); } }
[ "546641398@qq.com" ]
546641398@qq.com
0d106e248d424a8316f80d5c5c655f09372e7231
4139c954de6c4247c772116fdc6176212767377f
/src/test/java/src/test/rough/LoginTest.java
7c6ee83918ec6f9084c18ad0c44cccc5e9a55e9f
[]
no_license
julielearncoding/PageObjectModelBasic
24e5cfbadc998aaec2e29dc02587a11b71973437
ea78afc0b2aa24456e2ca8a0d7906f258f2ed99c
refs/heads/master
2021-07-06T01:44:58.038281
2020-02-20T08:34:38
2020-02-20T08:34:38
241,827,950
0
0
null
2021-06-07T18:41:28
2020-02-20T08:11:03
HTML
UTF-8
Java
false
false
735
java
package src.test.rough; import org.testng.annotations.Test; import src.test.base.Page; import src.test.pages.HomePage; import src.test.pages.LoginPage; import src.test.pages.ZohoAppPage; import src.test.pages.crm.accounts.AccountsPage; import src.test.pages.crm.accounts.CreateAccountPage; public class LoginTest { @Test() public void loginAndOthersTest() { HomePage home = new HomePage(); LoginPage lp = home.goToLogin(); ZohoAppPage zp = lp.doLogin("tuoanh0307@gmail.com", "P@ssw0rd#"); zp.goToCRM(); Page.menu.goToAccounts(); AccountsPage ap = new AccountsPage(); ap.goToCreateAccount(); CreateAccountPage cap = new CreateAccountPage(); cap.createAccount("julie"); // driver.quit(); } }
[ "tuoanh0307@gmail.com" ]
tuoanh0307@gmail.com
492d6f2b534d0cb55ac164238259d233dbc1be33
3461dc0eb90aed23f85b6ba3adad3ca3935cbf07
/Lab12-1/src/main/java/lab/web/model/Person.java
81b65b3460bd45d9d598730ccae2dcd814b5f8bc
[]
no_license
jeongeunson/newclass1
12efe3424828c2cf732d04f207d3b5381fc6968d
8ed2e96e84c48abddd0ba0f62db9f32f173e4dcd
refs/heads/master
2020-05-18T16:04:53.223673
2019-05-09T02:01:30
2019-05-09T02:01:30
184,516,851
0
0
null
null
null
null
UTF-8
Java
false
false
591
java
package lab.web.model; public class Person { private String name; private String company; private String phone; private String email; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getCompany() { return company; } public void setCompany(String company) { this.company = company; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } }
[ "imich@nate.com" ]
imich@nate.com
5853bfe0ac15202c4fa9f99421b5b54746b8be9e
24549c9e13550680e2b9e015f4c1d8974774b6ac
/src/org/xml/sax/helpers/ConfigurableParserAdapter.java
fcda0556905438a4c019d7029edca6c6376c5614
[]
no_license
aerhard/xerces2-j
95bc867ee0e8d6cbf26c5aef238a7c668bb30216
3de90a60d021fee411918cd7e6c8769393fdcfd0
refs/heads/apache
2020-12-30T13:28:47.496944
1999-11-09T01:11:22
1999-11-09T01:11:22
91,222,432
0
0
null
2017-05-14T05:34:34
2017-05-14T05:34:34
null
UTF-8
Java
false
false
6,676
java
// ConfigurableParserAdapter.java - adapt a SAX 1.0 Parser to Configurable. // $Id$ package org.xml.sax.helpers; import java.io.IOException; import java.util.Locale; import org.xml.sax.Configurable; import org.xml.sax.SAXNotSupportedException; import org.xml.sax.SAXNotRecognizedException; import org.xml.sax.Parser; import org.xml.sax.InputSource; import org.xml.sax.EntityResolver; import org.xml.sax.DTDHandler; import org.xml.sax.DocumentHandler; import org.xml.sax.ErrorHandler; import org.xml.sax.SAXException; /** * Adapt a SAX1 parser to implement the Configurable interface. * * This class implements the SAX1 Parser interface and the * SAX2 Configurable interface by embedding another Parser * instance. If the embedded parser already implements the * Configurable interface, it will be used directly; otherwise, * the parser will not know about any features or properties, * and will throw a SAXNotRecognizedException for all of them. * * @author David Megginson &lt;david@megginson.com&gt; * @version * @see org.xml.sax.Parser * @see org.xml.sax.Configurable */ public class ConfigurableParserAdapter implements Parser, Configurable { //////////////////////////////////////////////////////////////////// // Constructor. //////////////////////////////////////////////////////////////////// /** * Construct a SAX2 parser by embedding another SAX parser. * * If the embedded parser does not know about the Configurable * interface, this class will implement the interface for it. * * @param parser The embedded SAX parser. */ public ConfigurableParserAdapter (Parser parser) { super(); this.parser = parser; if (parser instanceof org.xml.sax.Configurable) { configurable = (Configurable)parser; } } //////////////////////////////////////////////////////////////////// // Implementation of org.xml.sax.Parser. //////////////////////////////////////////////////////////////////// /** * Set the locale for error reporting. * * Pass on to the embedded parser. * * @param The locale for error reporting. * @exception org.xml.sax.SAXException If the locale is not supported. * @see org.xml.sax.Parser#setLocale */ public void setLocale (Locale locale) throws SAXException { parser.setLocale(locale); } /** * Set the parser's entity resolver. * * Pass on to the embedded parser. * * @param resolver The application-provided entity resolver. * @see org.xml.sax.Parser#setEntityResolver */ public void setEntityResolver (EntityResolver resolver) { parser.setEntityResolver(resolver); } /** * Set the parser's DTD event handler. * * Pass on to the embedded parser. * * @param handler The application-provided DTD event handler. * @see org.xml.sax.Parser#setDTDHandler */ public void setDTDHandler (DTDHandler handler) { parser.setDTDHandler(handler); } /** * Set the parser's document event handler. * * Pass on to the embedded parser. * * @param handler The application-provided document event handler. * @see org.xml.sax.Parser#setDocumentHandler */ public void setDocumentHandler (DocumentHandler handler) { parser.setDocumentHandler(handler); } /** * Set the parser's error event handler. * * Pass on to the embedded parser. * * @param handler The application-provided error event handler. * @see org.xml.sax.Parser#setErrorHandler */ public void setErrorHandler (ErrorHandler handler) { parser.setErrorHandler(handler); } /** * Parse an XML document from an InputSource. * * Pass on to the embedded parser. * * @param source The InputSource for the XML document. * @see org.xml.sax.Parser#parse(org.xml.sax.InputSource) */ public void parse (InputSource source) throws SAXException, IOException { parser.parse(source); } /** * Parse an XML document from a fully-qualified system ID. * * Pass on to the embedded parser. * * @param systemId The system identifier (URI) for the document. * @see org.xml.sax.Parser#parse(java.lang.String) */ public void parse (String systemId) throws SAXException, IOException { parser.parse(systemId); } //////////////////////////////////////////////////////////////////// // Implementation of org.xml.sax.Configurable. //////////////////////////////////////////////////////////////////// /** * Set the state of a feature. * * Always fails unless the embedded parser supports Configurable. * * @see org.xml.sax.Configurable#setFeature */ public void setFeature (String featureId, boolean state) throws SAXException { if (configurable == null) { throw new SAXNotRecognizedException("Feature: " + featureId); } else { configurable.setFeature(featureId, state); } } /** * Get the state of a feature. * * Always fails unless the embedded parser supports Configurable. * * @see org.xml.sax.Configurable#getFeature */ public boolean getFeature (String featureId) throws SAXException { if (configurable == null) { throw new SAXNotRecognizedException("Feature: " + featureId); } else { return configurable.getFeature(featureId); } } /** * Set the state of a property. * * Always fails unless the embedded parser supports Configurable. * * @see org.xml.sax.Configurable#setProperty */ public void setProperty (String propertyId, Object value) throws SAXException { if (configurable == null) { throw new SAXNotRecognizedException("Property: " + propertyId); } else { configurable.setProperty(propertyId, value); } } /** * Get the state of a property. * * Always fails unless the embedded parser supports Configurable. * * @see org.xml.sax.Configurable#getProperty */ public Object getProperty (String propertyId) throws SAXException { if (configurable == null) { throw new SAXNotRecognizedException("Property: " + propertyId); } else { return configurable.getProperty(propertyId); } } //////////////////////////////////////////////////////////////////// // Internal state. //////////////////////////////////////////////////////////////////// private Parser parser = null; private Configurable configurable = null; } // end of ConfigurableParserAdapter.java
[ "twl@apache.org" ]
twl@apache.org
a8533d7951087e8d5b1a5e123d34a268a40446eb
1e6bfb9839958516bf616a726d4f9e4370b12065
/SchemaMigration-4.0/src/com/datasphere/db/migration/scheduler/impl/PGSql2HiveMigrationScheduler.java
153dc97290c3cabea47c60d21629915cb378194a
[]
no_license
muniao/datasphere-integration
9ceb6684d81bbe3e3954b600e760a6d9b52b2c3c
ff3ab267d4202a5eaf916c2f9925ac11911f37fd
refs/heads/master
2020-12-03T11:22:46.310850
2019-12-31T06:02:33
2019-12-31T06:02:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,895
java
package com.datasphere.db.migration.scheduler.impl; import java.util.Collection; import java.util.Iterator; import java.util.UUID; import com.datasphere.db.dao.IBaseDao; import com.datasphere.db.dao.impl.PGDao; import com.datasphere.db.dao.impl.HiveDao; import com.datasphere.db.dao.impl.MySQLDao; import com.datasphere.db.entity.Column; import com.datasphere.db.exception.ColumnTypeUnsurported; import com.datasphere.db.migration.scheduler.AbstractMigrationScheduler; public class PGSql2HiveMigrationScheduler extends AbstractMigrationScheduler { public static int HIVE_CHAR_MAX_LENGTH = 254; public static int HIVE_NUMERIC_MAX_PRECISION = 127; public final static String TYPE_TIMESTAMP = "TIMESTAMP"; public final static String TYPE_TIME_ZONE = "WITH TIME ZONE"; public final static String TYPE_LOCAL_TIME_ZONE = "WITH LOCAL TIME ZONE"; @Override public Column convert(Column column) { Column newColumn = super.convert(column); String columnType = column.getType(); columnType = column.getType().startsWith(TYPE_TIMESTAMP) ? TYPE_TIMESTAMP : columnType; switch (columnType.toLowerCase()) { // 处理二进制类型 case "binary": case "varbinary": case "bytea": newColumn.setType("binary"); break; // 处理布尔类型 case "boolean": case "bit": newColumn.setType("boolean"); break; // 处理集合类型 case "enum": case "set": newColumn.setType("struct"); break; //处理字符类型 case "char": case "nchar": case "nvarchar2": case "varchar": case "tinyblob": case "tinytext": case "blob": case "text": case "mediumblob": case "mediumtext": case "longblob": case "longtext": case "json": newColumn.setType("string"); break; //处理数值类型 case "tinyint": newColumn.setType("tinyint"); break; case "smallint": newColumn.setType("smallint"); break; case "int": newColumn.setType("int"); break; case "bigint": newColumn.setType("bitint"); break; case "float": newColumn.setPrecision(newColumn.getPrecision()); newColumn.setScale(newColumn.getScale()); newColumn.setType("float"); break; case "double": newColumn.setPrecision(newColumn.getPrecision()); newColumn.setScale(newColumn.getScale()); newColumn.setType("double"); break; case "decimal": if(column.getLength() > HIVE_NUMERIC_MAX_PRECISION) { throw new ColumnTypeUnsurported("The length of decimal exceeds!column=" + column.getName() + ",table=" + column.getTableName()); } if((column.getPrecision()==null || column.getPrecision() == 0)){ newColumn.setPrecision(HIVE_NUMERIC_MAX_PRECISION); if(column.getScale()==null || column.getScale()==0){ newColumn.setScale(4); } }else{ newColumn.setPrecision(column.getPrecision()); newColumn.setScale(column.getScale()); } newColumn.setType("decimal"); break; case "date": newColumn.setType("date"); break; case "time": case "timestamp": case "datetime": newColumn.setType("timestamp"); break; default: { //不支持的类型 INTERVAL DAY,INTERVAL YEAR ROWID UROWID BFILE throw new ColumnTypeUnsurported("Unsurport Type ["+columnType.toUpperCase()+"]"); } } return newColumn; } @Override public void convert(Collection<Column> srcColumns, Collection<Column> destColumns, Object[][] data) { Iterator<Column> it1 = srcColumns.iterator(); Iterator<Column> it2 = destColumns.iterator(); int colIndex = 0; while(it1.hasNext()) { Column srcCol = it1.next(); Column destCol = it2.next(); switch(srcCol.getType().toLowerCase() + "_" + destCol.getType().toLowerCase()) { case "bool_smallint": { for(Object[] rowData: data) { if(rowData[colIndex] != null) { Boolean bv = (Boolean)rowData[colIndex]; if(bv) { rowData[colIndex] = Short.valueOf((short) 1); } else { rowData[colIndex] = Short.valueOf((short) 0); } } } break; } case "uuid_varchar": { for(Object[] rowData: data) { if(rowData[colIndex] != null) { UUID v = (UUID)rowData[colIndex]; rowData[colIndex] = v.toString(); } } break; } } colIndex++; } } @Override public IBaseDao createSourceDao() { PGDao pgDao = new PGDao(); pgDao.setConfig(this.getMigration().getSourceConfig()); return pgDao; } @Override public IBaseDao createDestDao() { HiveDao hiveDao = new HiveDao(); hiveDao.setConfig(this.getMigration().getDestConfig()); return hiveDao; } }
[ "theseusyang@theseusyangdeMacBook-Pro.local" ]
theseusyang@theseusyangdeMacBook-Pro.local
04dd747fe675bf10db943d7ecf802f803bec95f4
5d76b555a3614ab0f156bcad357e45c94d121e2d
/src-v2/com/google/android/gms/internal/bc.java
552b0e0bf866ea4e5a62a1dccb4b6fc8da5f319d
[]
no_license
BinSlashBash/xcrumby
8e09282387e2e82d12957d22fa1bb0322f6e6227
5b8b1cc8537ae1cfb59448d37b6efca01dded347
refs/heads/master
2016-09-01T05:58:46.144411
2016-02-15T13:23:25
2016-02-15T13:23:25
51,755,603
5
1
null
null
null
null
UTF-8
Java
false
false
189
java
/* * Decompiled with CFR 0_110. */ package com.google.android.gms.internal; import java.util.ArrayList; public interface bc { public void a(String var1, ArrayList<String> var2); }
[ "binslashbash@otaking.top" ]
binslashbash@otaking.top
36ad14a0f07d86b024bcf6eedc4d51b5cd0f2ce7
2ea1219ab522f4cabc695b065064830791c6b2c9
/Amin-Erdene/Classwork05012019_Aminerdene/Classwork/logicaloperationwithgiven3parameters.java
43373cc014bf7708ca47093297c03c32312fb679
[]
no_license
khangaikhuu/cs_intro_2019
d6f1ab58942a26ddde7bb89e8997eea6b219944e
98b096ba8648afcba60538fad320c64686530ea7
refs/heads/master
2020-05-05T13:32:02.548969
2019-06-04T06:32:26
2019-06-04T06:32:26
180,082,134
0
0
null
null
null
null
UTF-8
Java
false
false
269
java
public class logicaloperationwithgiven3parameters { public boolean A; public boolean B; public boolean C; public boolean logicaloperationwithgiven3parameters(boolean A, boolean B, boolean C) { return (A && B && C) || (A || C) || (C && B); } }
[ "g12@asu.local" ]
g12@asu.local
53f6a955f0a0f3be7a1ae3323bfdeaebbb3e02d0
6b3a244ba7d2ce7eb10c20435add186186aaa2ef
/app/src/main/java/com/codepath/apps/restclienttemplate/models/Tweet.java
4b0989e0a7adb3b2865b518d57e04277aa886e6e
[ "MIT", "Apache-2.0" ]
permissive
AdrianaOlv15/SimpleTweet06
db6d04371bc17c353f9417d3249bc83a2ea2b2d1
586fea92c9af2fd0ce48e884755a71857afffa59
refs/heads/master
2023-08-15T01:59:48.883098
2021-10-03T22:58:51
2021-10-03T22:58:51
410,168,545
0
0
null
null
null
null
UTF-8
Java
false
false
908
java
package com.codepath.apps.restclienttemplate.models; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; import java.util.List; public class Tweet { public String body; public String createdAt; public User user; public static Tweet fromJson(JSONObject jsonObject) throws JSONException { Tweet tweet = new Tweet(); tweet.body = jsonObject.getString("text"); tweet.createdAt = jsonObject.getString("created_at"); tweet.user = User.fromJson(jsonObject.getJSONObject("user")); return tweet; } public static List<Tweet> fromJsonArray(JSONArray jsonArray) throws JSONException { List<Tweet> tweets = new ArrayList<>(); for(int i = 0; i < jsonArray.length(); i++){ tweets.add(fromJson(jsonArray.getJSONObject(i))); } return tweets; } }
[ "aolver6@uic.edu" ]
aolver6@uic.edu
4acfbce23c94361247f12850db451345aee24e62
2768d83d5313679de93fca0ffdfc20ea168a5f2e
/src/hashtab/HashTabDemo.java
257b885771a563e5558644bca89d97ff8e9cec31
[]
no_license
bury997/HashTab
129a9854bef4522d8b8f16e6bfde38f5355853fd
64f2453971ae1a2aefd84e1df5c2b86845be18ae
refs/heads/master
2020-09-28T21:20:22.463396
2019-12-09T12:36:06
2019-12-09T12:36:06
226,867,446
0
0
null
null
null
null
UTF-8
Java
false
false
3,782
java
package hashtab; import java.util.Scanner; /** * 哈希表(散列) */ public class HashTabDemo { public static void main(String[] args) { Scanner sc = new Scanner(System.in); HashTab hashTab = new HashTab(5); while (true){ System.out.println("add:添加"); System.out.println("list:遍历"); System.out.println("find:查找"); System.out.println("exit退出"); String input = sc.next(); switch (input){ case "add": System.out.println("id"); int id = sc.nextInt(); System.out.println("name"); String name = sc.next(); Emp emp = new Emp(id, name); hashTab.add(emp); break; case "list": hashTab.list(); break; case "find": System.out.println("ID"); id = sc.nextInt(); hashTab.find(id); break; case "exit": sc.close(); System.exit(0); } } } } class Emp{ public int id; public String name; public Emp next; public Emp(int id, String name) { this.id = id; this.name = name; } } class EmpLinkedList{ //头指针 默认null private Emp head; public void add(Emp emp){ if (head==null){ head=emp; return; } Emp currentEmp = head; while (true){ if (currentEmp.next == null){ break; } currentEmp = currentEmp.next; } currentEmp.next = emp; } public void list(){ if (head==null){ System.out.println("当前链表为空"); return; } Emp currentEmp = head; while (true){ System.out.print("\t=>id="+currentEmp.id+" ,name="+currentEmp.name); if (currentEmp.next==null){ break; } currentEmp = currentEmp.next; } System.out.println(); } public Emp findById(int id){ if (head==null){ System.out.println("链表为空"); return null; } Emp currentEmp = head; while (true){ if (currentEmp.id==id){ break; } if (currentEmp.next==null){ currentEmp = null; break; } currentEmp = currentEmp.next; } return currentEmp; } } class HashTab{ private int size; private EmpLinkedList[] empLinkedListArr; public HashTab(int size){ this.size = size; empLinkedListArr = new EmpLinkedList[size]; for (int i=0;i<size;i++){ empLinkedListArr[i] = new EmpLinkedList(); } } public void add(Emp emp){ int empLinkedListNo = hashFun(emp.id); empLinkedListArr[empLinkedListNo].add(emp); } public void list(){ for (int i=0;i<size;i++){ empLinkedListArr[i].list(); } } public void find(int id){ int empLinkedListNo = hashFun(id); Emp emp = empLinkedListArr[empLinkedListNo].findById(id); if (emp!=null){ System.out.println("找到id为:"+id+" ,姓名为:"+emp.name); }else { System.out.println("未找到"); } } public int hashFun(int id){ return id % size; } }
[ "2658341228@qq.com" ]
2658341228@qq.com
dbe5c0ff982e1e81c8aa385452e14d949d8df284
d64ef92119b2b567add75d9763d4c167d223cf75
/EcurieLoup/generiqueUtil/src/main/java/fr/ecurie_du_loup/generique_util/service/test/DataBaseServiceIntegrationTest.java
a803c9cba21f47545819e1154227102e0f571d70
[]
no_license
krack/Ecuries-du-loup
194ca0e8283f3652467736300d9ac6f427906789
ad0a51990f93fa634b291e9df14dd36e2bbb5ec5
refs/heads/master
2020-12-12T21:00:47.470504
2012-10-22T17:38:59
2012-10-22T17:38:59
884,119
0
2
null
null
null
null
UTF-8
Java
false
false
1,435
java
package fr.ecurie_du_loup.generique_util.service.test; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.util.List; import org.junit.Test; import fr.ecurie_du_loup.generique_util.service.DataBaseService; import fr.ecurie_du_loup.generique_util.test.Comparator; import fr.ecurie_du_loup.generique_util.test.GeneriqueTest; public abstract class DataBaseServiceIntegrationTest<T> extends GeneriqueTest<T>{ protected DataBaseService<T> service; private void testPresenceEqualsInBase(T t) { List<T> listGetAll = this.service.getAll(); assertTrue(listGetAll.contains(t)); for(T object : listGetAll){ if(object.equals(t)){ Comparator.compareJUnit(t, object, this.notCheckedValue); } } } @Test public void testAdd() { T t = this.getNewObject(); this.service.add(t); this.testPresenceEqualsInBase(t); } @Test public void testGetAll() { T objectTestInBase =this.getObjectInBase(); this.testPresenceEqualsInBase(objectTestInBase); } @Test public void testRemove() { T t = this.getNewObject(); this.service.add(t); this.service.delete(t); List<T> listGetAll = this.service.getAll(); assertFalse(listGetAll.contains(t)); } @Test public void testUpdate() { T t = this.getNewObject(); this.service.add(t); this.modificationObject(t); this.service.update(t); this.testPresenceEqualsInBase(t); } }
[ "krack_6@hotmail.com" ]
krack_6@hotmail.com
69f6290790ee89d45d2263491506b4c74545fd86
efff0b34aef6a75ba02908f5bda7a015f4efeaca
/src/day13/Homework2.java
6b7bea073834054453a7ecd546b0da050c14cbc2
[]
no_license
JUNGYUMI/DIGITAL-JAVA
95d16004755d0070ed34b982fc45691efcc23aec
c0cd51f14ae2b8c5005f3e22b43b869794e5733e
refs/heads/master
2022-11-14T10:39:32.185066
2020-07-07T08:12:33
2020-07-07T08:12:33
256,374,873
0
0
null
null
null
null
UTF-8
Java
false
false
1,625
java
package day13; import java.util.Scanner; public class Homework2 { /* * 상품을 등록하고, 등록된 상품을 출력하는 코드를 작성하세요. ex) 상품을 등록하시겠습니까?(y/n) : y 상품명 : 가방 가격 : 10000 상품을 등록하시겠습니까?(y/n) : y 상품명 : 마우스 가격 : 1000 상품을 등록하시겠습니까?(y/n) : n 지금까지 등록된 상품 리스트 1. 상품명 : 가방, 가격 : 10000원 2. 상품명 : 마우스, 가격 : 1000원 */ public static void main(String[] args) { int size = 50; String[] productName = new String[size]; int [] productPrice = new int [size]; char menu = 'y'; Scanner scan = new Scanner(System.in); int cnt = 0; // 현재 저장된 제품의 개수 // 1. 반복문 while(menu != 'n') { // 2. 입력을 받음 (y/n) System.out.print("상품을 등록하시겠습니까?(y/s) : "); menu = scan.next().charAt(0); // 3. 입력받은 값을 통해 제품 리스트를 출력할지 제품을 등록할지를 결정 if(menu == 'y') { //제품등록 System.out.print("상품명 : "); productName[cnt] = scan.next(); System.out.print("가 격 : "); productPrice[cnt] = scan.nextInt(); cnt++; } } int total = 0; // 등록된 제품 리스트 출력 for(int i = 0; i < cnt; i++) { System.out.printf("%d. 상품명 : %s, 가격 : %d원\n", i+1, productName[i], productPrice[i]); total += productPrice[i]; } System.out.println("총 가격 :" + total + "원"); scan.close(); } }
[ "dbal7749@naver.com" ]
dbal7749@naver.com
d2f5887601a1cf82c8565a2383b38c2f1eb7714a
3a492d87ffc0e673878dbce45a5e171ce13eefb7
/implementation/src/main/java/io/smallrye/mutiny/operators/multi/MultiMapOp.java
304f5e9a073b47cf1c8073bb6f41c70e1fb321ee
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jlafourc/smallrye-mutiny
a56b48f4951bfe6a52b2a984989d7869154eff9e
66e7b19e2b85fb1b7037a613a997531ad0f59e9b
refs/heads/master
2022-11-25T21:20:51.021945
2020-07-23T16:54:07
2020-07-23T16:54:07
282,053,757
0
0
Apache-2.0
2020-07-23T20:55:48
2020-07-23T20:55:48
null
UTF-8
Java
false
false
1,735
java
package io.smallrye.mutiny.operators.multi; import static io.smallrye.mutiny.helpers.ParameterValidation.MAPPER_RETURNED_NULL; import java.util.function.Function; import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.helpers.ParameterValidation; import io.smallrye.mutiny.subscription.MultiSubscriber; public final class MultiMapOp<T, U> extends AbstractMultiOperator<T, U> { private final Function<? super T, ? extends U> mapper; public MultiMapOp(Multi<T> upstream, Function<? super T, ? extends U> mapper) { super(upstream); this.mapper = ParameterValidation.nonNull(mapper, "mapper"); } @Override public void subscribe(MultiSubscriber<? super U> downstream) { if (downstream == null) { throw new NullPointerException("Subscriber is `null`"); } upstream.subscribe().withSubscriber(new MapProcessor<T, U>(downstream, mapper)); } static class MapProcessor<I, O> extends MultiOperatorProcessor<I, O> { private final Function<? super I, ? extends O> mapper; MapProcessor(MultiSubscriber<? super O> actual, Function<? super I, ? extends O> mapper) { super(actual); this.mapper = mapper; } @Override public void onItem(I item) { if (isDone()) { return; } O v; try { v = mapper.apply(item); } catch (Throwable ex) { failAndCancel(ex); return; } if (v == null) { failAndCancel(new NullPointerException(MAPPER_RETURNED_NULL)); } else { downstream.onItem(v); } } } }
[ "clement.escoffier@gmail.com" ]
clement.escoffier@gmail.com
2f2ec22d9170ed5f54a697ec7767b93daf0f0c7e
be88dde4d4966f7aada0ee045dda107b21082905
/src/main/java/cn/jt/mapper/ReasonMapper.java
3ec31fda72881ba65ee0a99960970da846efc6c0
[]
no_license
Auggie-12/salary
0719bedd03eb13a3cc2ddfe36d9a56e7fbc39a6c
84785a6e87efada4fccc79eca45eda34cde63265
refs/heads/master
2023-02-16T11:36:07.932470
2021-01-14T08:36:51
2021-01-14T08:36:51
329,552,068
0
0
null
null
null
null
UTF-8
Java
false
false
525
java
package cn.jt.mapper; import cn.jt.pojo.Reason; import cn.jt.pojo.Record; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.*; @Mapper public interface ReasonMapper { // 列表 List<Reason> selectAllReasons(); // 根据变动原因编号查询变动原因 Reason selectReasonById(@Param("id")int id); // 根据一级变动类型编号编号查询具体变动类型 List<Reason> selectAllReasonsByChangeId(@Param("changeId")int changeId); }
[ "2651704677@qq.com" ]
2651704677@qq.com
4528decbfb875070d3ad5ad350476886b56f582a
cd8843d24154202f92eaf7d6986d05a7266dea05
/saaf-base-5.0/1008_saaf-schedule-model/src/main/java/com/sie/saaf/schedule/model/inter/server/ScheduleJobRespServer.java
6686d264144ee05bda1a08bcf202c6df62fede64
[]
no_license
lingxiaoti/tta_system
fbc46c7efc4d408b08b0ebb58b55d2ad1450438f
b475293644bfabba9aeecfc5bd6353a87e8663eb
refs/heads/master
2023-03-02T04:24:42.081665
2021-02-07T06:48:02
2021-02-07T06:48:02
336,717,227
0
0
null
null
null
null
UTF-8
Java
false
false
6,329
java
package com.sie.saaf.schedule.model.inter.server; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import com.sie.saaf.common.model.inter.server.BaseCommonServer; import com.sie.saaf.common.util.SaafToolUtils; import com.sie.saaf.schedule.model.entities.ScheduleJobRespEntity_HI; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.yhg.base.utils.SToolUtils; import com.yhg.hibernate.core.dao.DynamicViewObjectImpl; import com.yhg.hibernate.core.dao.ViewObject; import com.yhg.hibernate.core.paging.Pagination; import com.sie.saaf.schedule.model.entities.readonly.ScheduleJobsRespEntity_HI_RO; import com.sie.saaf.schedule.model.inter.IScheduleJobResp; @Component("scheduleJobRespServer") public class ScheduleJobRespServer extends BaseCommonServer<ScheduleJobRespEntity_HI> implements IScheduleJobResp { private static final Logger LOGGER = LoggerFactory.getLogger(ScheduleJobRespServer.class); @Autowired private ViewObject<ScheduleJobRespEntity_HI> scheduleJobRespDAO_HI; @Autowired DynamicViewObjectImpl<ScheduleJobsRespEntity_HI_RO> scheduleJobsRespDAO_HI_RO; public ScheduleJobRespServer() { super(); } public List<ScheduleJobRespEntity_HI> findSaafJobRespInfo(JSONObject queryParamJSON) { Map<String, Object> queryParamMap = SToolUtils.fastJsonObj2Map(queryParamJSON); List<ScheduleJobRespEntity_HI> findListResult = scheduleJobRespDAO_HI.findList("from SaafJobRespEntity_HI", queryParamMap); return findListResult; } public Object saveSaafJobRespInfo(JSONObject queryParamJSON) { ScheduleJobRespEntity_HI saafJobRespEntity_HI = JSON.parseObject(queryParamJSON.toString(), ScheduleJobRespEntity_HI.class); Object resultData = scheduleJobRespDAO_HI.save(saafJobRespEntity_HI); return resultData; } public Pagination<ScheduleJobsRespEntity_HI_RO> findJobRespAll(JSONObject queryParamJSON) { StringBuffer querySql = new StringBuffer(); querySql.append(ScheduleJobsRespEntity_HI_RO.QUERY_JOBS_SQL); Map<String, Object> map = new HashMap<String, Object>(); map.put("jobId", queryParamJSON.getInteger("jobId")); Pagination<ScheduleJobsRespEntity_HI_RO> rowSet = scheduleJobsRespDAO_HI_RO.findPagination(querySql, map, 1, 20); return rowSet; } /** * LOV:查询未分配给用户的所有职责 * @param parameters * @return */ public Pagination findRemainderJobResp(JSONObject parameters, Integer pageIndex, Integer pageRows) { try { StringBuffer querySql = new StringBuffer(); querySql.append(ScheduleJobsRespEntity_HI_RO.QUERY_ASSIGNED_RESP_TO_JOB_SQL); Map<String, Object> map = new HashMap<String, Object>(); map.put("jobId", SToolUtils.object2Int(parameters.getInteger("jobId"))); SaafToolUtils.parperParam(parameters, "sr.RESPONSIBILITY_NAME", "responsibilityName", querySql, map, "like"); //按平台控制分配权限 SaafToolUtils.parperParam(parameters, "sr.platform_code", "platformCode", querySql, map, "="); Pagination<ScheduleJobsRespEntity_HI_RO> rowSet = scheduleJobsRespDAO_HI_RO.findPagination(querySql, map, pageIndex, pageRows); return rowSet; } catch (Exception e) { LOGGER.info("saaf.commmon.fmw.schedule.model.inter.server.SaafJobRespServer.findRemainderJobResp(JSONObject, Integer, Integer) error:"+e.getMessage()); } return null; } /** * 编辑或创建用户职责 * @param parameters * @return */ public List saveSaafJobResp(JSONObject parameters) { ScheduleJobRespEntity_HI row = null; List userRespList = new ArrayList(); //获取页面数据 int varUserId = SToolUtils.object2Int(parameters.get("varUserId")); try { JSONArray valuesArray = parameters.getJSONArray("jobRespData"); for (int i = 0; i < valuesArray.size(); i++) { JSONObject valuesJson = valuesArray.getJSONObject(i); //判断是新增还是修改 row = new ScheduleJobRespEntity_HI(); row.setCreatedBy(varUserId); // 用户登录的userId,从session里面获取 row.setCreationDate(new Date()); row.setLastUpdatedBy(varUserId); row.setLastUpdateDate(new Date()); row.setLastUpdateLogin(varUserId); row.setStartDateActive(new Date()); row.setPlatformCode(SToolUtils.object2String(valuesJson.get("varPlatformCode") == null ? parameters.get("varPlatformCode") : valuesJson.get("varPlatformCode"))); row.setJobId(SToolUtils.object2Int(valuesJson.get("jobId"))); row.setResponsibilityId(SToolUtils.object2Int(valuesJson.get("respId") == null ? parameters.get("respId") : valuesJson.get("respId"))); row.setJobRespName(SToolUtils.object2String(valuesJson.get("JobRespName"))); userRespList.add(row); } scheduleJobRespDAO_HI.saveOrUpdateAll(userRespList); return userRespList; } catch (Exception e) { LOGGER.info("saaf.commmon.fmw.schedule.model.inter.server.SaafJobRespServer.saveSaafJobResp(JSONObject) error:"+e.getMessage()); } return null; } /** * 删除JOB职责 * @param parameters * @return */ public JSONObject deleteSaafJobResp(JSONObject parameters) { try { Integer jobRespId = null; jobRespId = parameters.getInteger("jobRespId"); ScheduleJobRespEntity_HI row = scheduleJobRespDAO_HI.getById(SToolUtils.object2Int(jobRespId)); scheduleJobRespDAO_HI.delete(row); return SToolUtils.convertResultJSONObj("S", "删除成功", 0, null); } catch (Exception e) { LOGGER.info("saaf.commmon.fmw.schedule.model.inter.server.SaafJobRespServer.deleteSaafJobResp(JSONObject) error:"+e.getMessage()); } return null; } }
[ "huang491591@qq.com" ]
huang491591@qq.com
b8c7a9985b7b9f18f4ae723417fdf91e698856c3
22300befdc501818afe3dd75792657ca698521aa
/src/com/cice/ejercicios/Ejercicio07.java
a9291c5f3e2543527cf775385088810613fb0231
[]
no_license
josmara-garca/EjerciciosStrings
4dffdc9312b5ab46db8a4e628c49b719de04a6a1
b9c1b1e46b921878aa30a51b6304ccf5df35db05
refs/heads/master
2020-03-23T01:40:06.759203
2018-07-14T08:42:48
2018-07-14T08:42:48
140,930,596
0
0
null
null
null
null
UTF-8
Java
false
false
2,118
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.cice.ejercicios; import java.util.Scanner; /** * * @author TrendingPC */ public class Ejercicio07 { /** * @param args the command line arguments */ public static void main(String[] args) { int op = 0; int a = 0; int b = 0; Scanner sc = new Scanner(System.in); do{ System.out.println("MENU PRINCIPAL CALCULADORA V1.0"); System.out.println("==============================="); System.out.println("Elije una opción"); System.out.println("1- suma"); System.out.println("2- resta"); System.out.println("0- salir"); System.out.println("================================"); System.out.print("Has elejido la opción: "); op = sc.nextInt(); if (op == 1){ System.out.print("Introduce el numero a: "); a = sc.nextInt(); System.out.print("Introduce el numero b: "); b = sc.nextInt(); System.out.println("El resultado de la suma es: " +(a + b)); }else if (op == 2){ System.out.print("Introduce el numero a: "); a = sc.nextInt(); System.out.print("Introduce el numero b: "); b = sc.nextInt(); System.out.println("El resultado de la resta es: " + (a - b)); }else{ System.out.println("HASTA PRONTO !!!"); } }while (op != 0);{ System.out.println("HASTA PRONTO !!!!!"); } } }
[ "TrendingPC@192.168.1.121" ]
TrendingPC@192.168.1.121
71e1657e09d055c8b929003f8f2d6d59b1d57ef5
8e93a41785c722965a280279917e05acbb85f35d
/Main.java
219cf8512f261b3cac49819afd14725cb1267a58
[]
no_license
cbuse/Projectiles
a9530c6652979f106b58bca15165f19199997f54
bc32124b795813eb8f0e5e89c2b8208b6184703d
refs/heads/master
2016-09-06T00:26:54.701337
2014-07-21T19:40:04
2014-07-21T19:40:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,137
java
import FileParser.FileParser; import FileParser.WriteFile; import ProcessingManagers.TimeManager; import Projectiles.CanisterShot; import Projectiles.Carcass; import Projectiles.ChainShot; import Projectiles.HeatedShot; import Projectiles.Shrapnel; import Projectiles.SimpleShell; import Projectiles.SpiderShot; import Projectiles.TriGrapeShot; import Screen.Screen; import Shapes.Point; /*** * * @author Cristina Buse * * The Main class processes the projectiles from a file given as an argument * and writes the screen into a file. * */ public class Main { public static void main(String[] args) { if (args.length != 1) { System.err.println("Usage: java -cp <classpath> Main <text file> "); System.exit(1); } FileParser textFile = new FileParser(args[0]); textFile.open(); String word; //the dimension of the screen on the OX axis word = textFile.getNextWord(); int ex = Integer.parseInt(word); //the dimension of the screen on the OX axis word = textFile.getNextWord(); int ey = Integer.parseInt(word); //initialize the screen Screen screen = new Screen(ex,ey); //the number of projectiles from the input file word = textFile.getNextWord(); int N = Integer.parseInt(word); for(int i = 0; i < N; i ++){ String projectile = textFile.getNextWord(); int ref = Integer.parseInt(textFile.getNextWord()); //the time in the format hh:mm:ss word = textFile.getNextWord(); //extract the h,m,s from time and make them Integers int pos1 = word.indexOf(':'); int h = Integer.parseInt(word.substring(0,pos1)); int pos2 = word.lastIndexOf(':'); int m = Integer.parseInt(word.substring(pos1+1,pos2)); int s = Integer.parseInt(word.substring(pos2+1)); //the dtance from the screen int dist = Integer.parseInt(textFile.getNextWord()); //the position of the shooter int posx = Integer.parseInt(textFile.getNextWord()); int posy = Integer.parseInt(textFile.getNextWord()); //in functie de tipul proiectilului, il initializez if (projectile.equals("trigrapeshot")){ //initialize the time TimeManager time = new TimeManager(h, m, s); //initialize the projectile TriGrapeShot tgs = new TriGrapeShot(screen,ref,time); //initialize the shooter's position Point shooterPosition = new Point(posx,posy); //the projectile is shot possibly changing its shape tgs.shoot(dist, shooterPosition); //the projectile hits the screen and leaves a trace on the screen tgs.hitScreenAction(shooterPosition, ref); } else if (projectile.equals("carcass")){ TimeManager time = new TimeManager(h, m, s); Carcass c = new Carcass(screen,ref,time); Point shooterPosition = new Point(posx,posy); c.shoot(dist, shooterPosition); c.hitScreenAction(shooterPosition, ref); } else if (projectile.equals("canistershot")){ TimeManager time = new TimeManager(h, m, s); CanisterShot c = new CanisterShot(screen,ref,time); Point shooterPosition = new Point(posx,posy); c.shoot(dist, shooterPosition); c.hitScreenAction(shooterPosition, ref); } else if (projectile.equals("heatedshot")){ TimeManager time = new TimeManager(h, m, s); HeatedShot c = new HeatedShot(screen,ref,time); Point shooterPosition = new Point(posx,posy); c.shoot(dist, shooterPosition); c.hitScreenAction(shooterPosition, ref); } else if (projectile.equals("chainshot")){ TimeManager time = new TimeManager(h, m, s); ChainShot c = new ChainShot(screen,ref,time); Point shooterPosition = new Point(posx, posy); c.shoot(dist, shooterPosition); c.hitScreenAction(shooterPosition, ref); } else if (projectile.equals("shrapnel")){ TimeManager time = new TimeManager(h, m, s); Shrapnel c = new Shrapnel(screen,ref,time); Point shooterPosition = new Point(posx,posy); c.shoot(dist, shooterPosition); c.hitScreenAction(shooterPosition, ref); } else if (projectile.equals("spidershot")){ TimeManager time = new TimeManager(h, m, s); SpiderShot c = new SpiderShot(screen,ref,time); Point shooterPosition = new Point(posx,posy); c.shoot(dist, shooterPosition); c.hitScreenAction(shooterPosition, ref); } else if (projectile.equals("simpleshell")){ TimeManager time = new TimeManager(h, m, s); SimpleShell ss = new SimpleShell(screen,ref,time); Point shooterPosition = new Point(posx,posy); ss.shoot(dist, shooterPosition); ss.hitScreenAction(shooterPosition, ref); } } textFile.close(); //write the screen in a file WriteFile output = new WriteFile(args[0]+"_out"); output.open(); output.write(screen); output.close(); } }
[ "cristina_buse@yahoo.com" ]
cristina_buse@yahoo.com
9d06733c763005e80cc5c2abaef3525c3430db69
5af25e5964cbe460761bd19ff95592a23a1b52f4
/src/co/airdo/spring/service/OffersService.java
720bca0cafa89b72ec197ef2508e8fa470c6632e
[]
no_license
dworak/MIAB
db7d11894f81b03375454dacab01c3ff8897d0db
f516056cbd975e2627791a4e403c0d66d513474a
refs/heads/master
2021-01-10T21:32:50.397696
2015-01-21T01:25:29
2015-01-21T01:25:29
29,432,015
0
0
null
null
null
null
UTF-8
Java
false
false
1,699
java
package co.airdo.spring.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.mail.SimpleMailMessage; import org.springframework.mail.javamail.JavaMailSender; import org.springframework.stereotype.Service; import co.airdo.spring.dao.Offer; import co.airdo.spring.dao.OffersDAO; @Service("offersService") public class OffersService { private OffersDAO offersDao; @Autowired private JavaMailSender mailSender; @Autowired public void setOffersDao(OffersDAO offersDao) { this.offersDao = offersDao; } public List<Offer> getCurrent() { return offersDao.getOffers(); } public void create(Offer offer) { SimpleMailMessage email = new SimpleMailMessage(); email.setTo(offer.getEmail()); email.setSubject("You repair request has been just created"); email.setText("Your reapair request has been just created"); sendMailInBackground(email); offersDao.create(offer); } public void update(Offer offer) { SimpleMailMessage email = new SimpleMailMessage(); email.setTo(offer.getEmail()); email.setSubject("You repair request has been changed"); email.setText("Administrator has changed your repair request"); sendMailInBackground(email); offersDao.update(offer); } public Offer findOfferById(int id) { return offersDao.findByOfferId(id); } public boolean delete(int id) { return offersDao.delete(id); } public void throwTestException() { offersDao.getOffer(99999); } public void sendMailInBackground(final SimpleMailMessage email) { Runnable r = new Runnable() { public void run() { mailSender.send(email); } }; Thread t = new Thread(r); t.start(); } }
[ "dworakowski.lukasz@gmail.com" ]
dworakowski.lukasz@gmail.com
7b5050b4138adfa4c1ca63ccefb68eb49c4f8b01
092fafdc03ef032df497024443a1124c72cd1c77
/Binarytree/RecoverBST.java
bc577aecdae34f5a4c7086ac2e0601fcb928348c
[]
no_license
Braden98/Algorithm
17ff139e8ac409d27ed7f02ddf39c20050a821f8
c1468eb34a739dfe05d86f517a040de5f22dbe07
refs/heads/master
2022-02-23T07:33:31.136130
2019-09-06T14:27:59
2019-09-06T14:27:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
15,796
java
package Algorithm.Binarytree; import java.util.Stack; /** * @Description * @Author ubique * @Date 2019/7/28 10:39 PM */ public class RecoverBST { public static class Node { public int value; public Node left; public Node right; public Node(int data) { this.value = data; } } public static Node[] getTwoErrNodes(Node head) { Node[] errs = new Node[2]; if (head == null) { return errs; } Stack<Node> stack = new Stack<Node>(); Node pre = null; while (!stack.isEmpty() || head != null) { if (head != null) { stack.push(head); head = head.left; } else { head = stack.pop(); if (pre != null && pre.value > head.value) { errs[0] = errs[0] == null ? pre : errs[0]; errs[1] = head; } pre = head; head = head.right; } } return errs; } public static Node[] getTwoErrParents(Node head, Node e1, Node e2) { Node[] parents = new Node[2]; if (head == null) { return parents; } Stack<Node> stack = new Stack<Node>(); while (!stack.isEmpty() || head != null) { if (head != null) { stack.push(head); head = head.left; } else { head = stack.pop(); if (head.left == e1 || head.right == e1) { parents[0] = head; } if (head.left == e2 || head.right == e2) { parents[1] = head; } head = head.right; } } return parents; } public static Node recoverTree(Node head) { Node[] errs = getTwoErrNodes(head); Node[] parents = getTwoErrParents(head, errs[0], errs[1]); Node e1 = errs[0]; Node e1P = parents[0]; Node e1L = e1.left; Node e1R = e1.right; Node e2 = errs[1]; Node e2P = parents[1]; Node e2L = e2.left; Node e2R = e2.right; if (e1 == head) { if (e1 == e2P) { // 情况一 e1.left = e2L; e1.right = e2R; e2.right = e1; e2.left = e1L; } else if (e2P.left == e2) { // 情况二 e2P.left = e1; e2.left = e1L; e2.right = e1R; e1.left = e2L; e1.right = e2R; } else { // 情况三 e2P.right = e1; e2.left = e1L; e2.right = e1R; e1.left = e2L; e1.right = e2R; } head = e2; } else if (e2 == head) { if (e2 == e1P) { // 情况四 e2.left = e1L; e2.right = e1R; e1.left = e2; e1.right = e2R; } else if (e1P.left == e1) { // 情况五 e1P.left = e2; e1.left = e2L; e1.right = e2R; e2.left = e1L; e2.right = e1R; } else { // 情况六 e1P.right = e2; e1.left = e2L; e1.right = e2R; e2.left = e1L; e2.right = e1R; } head = e1; } else { if (e1 == e2P) { if (e1P.left == e1) { // 情况七 e1P.left = e2; e1.left = e2L; e1.right = e2R; e2.left = e1L; e2.right = e1; } else { // 情况八 e1P.right = e2; e1.left = e2L; e1.right = e2R; e2.left = e1L; e2.right = e1; } } else if (e2 == e1P) { if (e2P.left == e2) { // 情况九 e2P.left = e1; e2.left = e1L; e2.right = e1R; e1.left = e2; e1.right = e2R; } else { // 情况十 e2P.right = e1; e2.left = e1L; e2.right = e1R; e1.left = e2; e1.right = e2R; } } else { if (e1P.left == e1) { if (e2P.left == e2) { // 情况十一 e1.left = e2L; e1.right = e2R; e2.left = e1L; e2.right = e1R; e1P.left = e2; e2P.left = e1; } else { // 情况十二 e1.left = e2L; e1.right = e2R; e2.left = e1L; e2.right = e1R; e1P.left = e2; e2P.right = e1; } } else { if (e2P.left == e2) { // 情况十三 e1.left = e2L; e1.right = e2R; e2.left = e1L; e2.right = e1R; e1P.right = e2; e2P.left = e1; } else { // 情况十四 e1.left = e2L; e1.right = e2R; e2.left = e1L; e2.right = e1R; e1P.right = e2; e2P.right = e1; } } } } return head; } // for test -- print tree public static void printTree(Node head) { System.out.println("Binary Tree:"); printInOrder(head, 0, "H", 17); System.out.println(); } public static void printInOrder(Node head, int height, String to, int len) { if (head == null) { return; } printInOrder(head.right, height + 1, "v", len); String val = to + head.value + to; int lenM = val.length(); int lenL = (len - lenM) / 2; int lenR = len - lenM - lenL; val = getSpace(lenL) + val + getSpace(lenR); System.out.println(getSpace(height * len) + val); printInOrder(head.left, height + 1, "^", len); } public static String getSpace(int num) { String space = " "; StringBuffer buf = new StringBuffer(""); for (int i = 0; i < num; i++) { buf.append(space); } return buf.toString(); } // for test public static boolean isBST(Node head) { if (head == null) { return false; } Stack<Node> stack = new Stack<Node>(); Node pre = null; while (!stack.isEmpty() || head != null) { if (head != null) { stack.push(head); head = head.left; } else { head = stack.pop(); if (pre != null && pre.value > head.value) { return false; } pre = head; head = head.right; } } return true; } public static void main(String[] args) { Node head = new Node(5); head.left = new Node(3); head.right = new Node(7); head.left.left = new Node(2); head.left.right = new Node(4); head.right.left = new Node(6); head.right.right = new Node(8); head.left.left.left = new Node(1); printTree(head); System.out.println(isBST(head)); // 情况1, 7 -> e1, 5 -> e2 System.out.println("situation 1"); Node head1 = new Node(7); head1.left = new Node(3); head1.right = new Node(5); head1.left.left = new Node(2); head1.left.right = new Node(4); head1.right.left = new Node(6); head1.right.right = new Node(8); head1.left.left.left = new Node(1); printTree(head1); System.out.println(isBST(head1)); Node res1 = recoverTree(head1); printTree(res1); System.out.println(isBST(res1)); // 情况2, 6 -> e1, 5 -> e2 System.out.println("situation 2"); Node head2 = new Node(6); head2.left = new Node(3); head2.right = new Node(7); head2.left.left = new Node(2); head2.left.right = new Node(4); head2.right.left = new Node(5); head2.right.right = new Node(8); head2.left.left.left = new Node(1); printTree(head2); System.out.println(isBST(head2)); Node res2 = recoverTree(head2); printTree(res2); System.out.println(isBST(res2)); // 情况3, 8 -> e1, 5 -> e2 System.out.println("situation 3"); Node head3 = new Node(8); head3.left = new Node(3); head3.right = new Node(7); head3.left.left = new Node(2); head3.left.right = new Node(4); head3.right.left = new Node(6); head3.right.right = new Node(5); head3.left.left.left = new Node(1); printTree(head3); System.out.println(isBST(head3)); Node res3 = recoverTree(head3); printTree(res3); System.out.println(isBST(res3)); // 情况4, 5 -> e1, 3 -> e2 System.out.println("situation 4"); Node head4 = new Node(3); head4.left = new Node(5); head4.right = new Node(7); head4.left.left = new Node(2); head4.left.right = new Node(4); head4.right.left = new Node(6); head4.right.right = new Node(8); head4.left.left.left = new Node(1); printTree(head4); System.out.println(isBST(head4)); Node res4 = recoverTree(head4); printTree(res4); System.out.println(isBST(res4)); // 情况5, 5 -> e1, 2 -> e2 System.out.println("situation 5"); Node head5 = new Node(2); head5.left = new Node(3); head5.right = new Node(7); head5.left.left = new Node(5); head5.left.right = new Node(4); head5.right.left = new Node(6); head5.right.right = new Node(8); head5.left.left.left = new Node(1); printTree(head5); System.out.println(isBST(head5)); Node res5 = recoverTree(head5); printTree(res5); System.out.println(isBST(res5)); // 情况6, 5 -> e1, 4 -> e2 System.out.println("situation 6"); Node head6 = new Node(4); head6.left = new Node(3); head6.right = new Node(7); head6.left.left = new Node(2); head6.left.right = new Node(5); head6.right.left = new Node(6); head6.right.right = new Node(8); head6.left.left.left = new Node(1); printTree(head6); System.out.println(isBST(head6)); Node res6 = recoverTree(head6); printTree(res6); System.out.println(isBST(res6)); // 情况7, 4 -> e1, 3 -> e2 System.out.println("situation 7"); Node head7 = new Node(5); head7.left = new Node(4); head7.right = new Node(7); head7.left.left = new Node(2); head7.left.right = new Node(3); head7.right.left = new Node(6); head7.right.right = new Node(8); head7.left.left.left = new Node(1); printTree(head7); System.out.println(isBST(head7)); Node res7 = recoverTree(head7); printTree(res7); System.out.println(isBST(res7)); // 情况8, 8 -> e1, 7 -> e2 System.out.println("situation 8"); Node head8 = new Node(5); head8.left = new Node(3); head8.right = new Node(8); head8.left.left = new Node(2); head8.left.right = new Node(4); head8.right.left = new Node(6); head8.right.right = new Node(7); head8.left.left.left = new Node(1); printTree(head8); System.out.println(isBST(head8)); Node res8 = recoverTree(head8); printTree(res8); System.out.println(isBST(res8)); // 情况9, 3 -> e1, 2 -> e2 System.out.println("situation 9"); Node head9 = new Node(5); head9.left = new Node(2); head9.right = new Node(7); head9.left.left = new Node(3); head9.left.right = new Node(4); head9.right.left = new Node(6); head9.right.right = new Node(8); head9.left.left.left = new Node(1); printTree(head9); System.out.println(isBST(head9)); Node res9 = recoverTree(head9); printTree(res9); System.out.println(isBST(res9)); // 情况10, 7 -> e1, 6 -> e2 System.out.println("situation 10"); Node head10 = new Node(5); head10.left = new Node(3); head10.right = new Node(6); head10.left.left = new Node(2); head10.left.right = new Node(4); head10.right.left = new Node(7); head10.right.right = new Node(8); head10.left.left.left = new Node(1); printTree(head10); System.out.println(isBST(head10)); Node res10 = recoverTree(head10); printTree(res10); System.out.println(isBST(res10)); // 情况11, 6 -> e1, 2 -> e2 System.out.println("situation 11"); Node head11 = new Node(5); head11.left = new Node(3); head11.right = new Node(7); head11.left.left = new Node(6); head11.left.right = new Node(4); head11.right.left = new Node(2); head11.right.right = new Node(8); head11.left.left.left = new Node(1); printTree(head11); System.out.println(isBST(head11)); Node res11 = recoverTree(head11); printTree(res11); System.out.println(isBST(res11)); // 情况12, 8 -> e1, 2 -> e2 System.out.println("situation 12"); Node head12 = new Node(5); head12.left = new Node(3); head12.right = new Node(7); head12.left.left = new Node(8); head12.left.right = new Node(4); head12.right.left = new Node(6); head12.right.right = new Node(2); head12.left.left.left = new Node(1); printTree(head12); System.out.println(isBST(head12)); Node res12 = recoverTree(head12); printTree(res12); System.out.println(isBST(res12)); // 情况13, 6 -> e1, 4 -> e2 System.out.println("situation 13"); Node head13 = new Node(5); head13.left = new Node(3); head13.right = new Node(7); head13.left.left = new Node(2); head13.left.right = new Node(6); head13.right.left = new Node(4); head13.right.right = new Node(8); head13.left.left.left = new Node(1); printTree(head13); System.out.println(isBST(head13)); Node res13 = recoverTree(head13); printTree(res13); System.out.println(isBST(res13)); // 情况14, 8 -> e1, 4 -> e2 System.out.println("situation 14"); Node head14 = new Node(5); head14.left = new Node(3); head14.right = new Node(7); head14.left.left = new Node(2); head14.left.right = new Node(8); head14.right.left = new Node(6); head14.right.right = new Node(4); head14.left.left.left = new Node(1); printTree(head14); System.out.println(isBST(head14)); Node res14 = recoverTree(head14); printTree(res14); System.out.println(isBST(res14)); } }
[ "1071763478@qq.com" ]
1071763478@qq.com
60bda533113c3478a531d9fc177713b79d1b60c2
554c6d505b98c9133ddd8b7991dfd29a16207190
/JDBC/empapp/src/com/ustglobal/empapp/dao/EmployeeDAO.java
c65594e41263f1ed35a98f9301422388c51e0f2d
[]
no_license
syedsumiah/USTGlobal-16sep19-Sumiah
f6221de6ec3bcedd7e9deee7f727bd86c341b624
3a28709edec3af91154fcdd51490b2f0f0eaeb50
refs/heads/master
2023-01-08T22:48:56.020866
2019-12-21T13:42:10
2019-12-21T13:42:10
215,538,034
0
0
null
2023-01-07T17:47:06
2019-10-16T12:03:39
Java
UTF-8
Java
false
false
380
java
package com.ustglobal.empapp.dao; import java.util.List; import com.ustglobal.empapp.dto.EmployeeBean; public interface EmployeeDAO { public List<EmployeeBean> getAllEmployeeData(); public EmployeeBean searchEmployeeData(int id); public int insertEmployeeData(EmployeeBean bean); public int updateEmployeeData(EmployeeBean bean); public int deleteEmployeeData(int id); }
[ "sumiya.syed96@gmail.com" ]
sumiya.syed96@gmail.com
035ba4640cdcfefecb565d3e5de8018a4c94767c
4d7e6664cc75a9e0a2a7f0f5813fbb480c4ba092
/src/test/java/com/moilioncircle/redis/replicator/cmd/parser/PublishParserTest.java
c03286a4665e6d7fe33f42a8f511a95e56587aac
[ "Apache-2.0" ]
permissive
huangtianan/redis-replicator
95a2b80de2a37639b8b5850e5111719897bc3973
f4dd50ecdfe18697028d5c6de7045bcc13263829
refs/heads/master
2021-01-01T18:19:20.368729
2017-07-17T05:01:20
2017-07-17T05:01:20
98,303,151
1
0
null
2017-07-25T12:21:36
2017-07-25T12:21:36
null
UTF-8
Java
false
false
1,228
java
/* * Copyright 2016 leon chen * * 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 com.moilioncircle.redis.replicator.cmd.parser; import com.moilioncircle.redis.replicator.cmd.impl.PublishCommand; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * @author Leon Chen * @since 2.1.0 */ public class PublishParserTest extends AbstractParserTest { @Test public void parse() throws Exception { PublishParser parser = new PublishParser(); PublishCommand cmd = parser.parse(toObjectArray("publish channel msg".split(" "))); assertEquals("channel", cmd.getChannel()); assertEquals("msg", cmd.getMessage()); System.out.println(cmd); } }
[ "chen.bao.yi@qq.com" ]
chen.bao.yi@qq.com
c205fd3f9ecf015c16d6fa21b75f28f22222e865
036a13b90c6f734f8ebe6317b2ccf58d79d49c1b
/src/java/WebService/ServicePagina.java
3835b4cf93dfc7cacd288e3fff72fba60ab044b4
[]
no_license
moiAbarca/PortafolioSushi
40021d4087e83ae8cc04c116a52b904f39bfcb2a
11bfebc38663e34bf35c4977d8b63aa12debfb3d
refs/heads/master
2021-08-24T11:48:57.784885
2017-12-09T16:22:13
2017-12-09T16:22:13
106,370,558
0
0
null
null
null
null
UTF-8
Java
false
false
2,183
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 WebService; import CapaDTO.Pagina; import CapaNegocio.OraclePagina; import Clasesinterface.PaginaDao; import java.util.List; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.WebParam; /** * * @author moi */ @WebService(serviceName = "ServicePagina") public class ServicePagina { List<Pagina> Pagina; //comienzo de los webServices @WebMethod(operationName = "obtenerPagina") public List<Pagina> obtenerPagina() { try{ PaginaDao dao = new OraclePagina(); Pagina = dao.obtenerPagina(); } catch(Exception ex) {} return Pagina; } @WebMethod(operationName = "agregarPagina") public void agregarPagina(@WebParam(name = "pagina") Pagina pagina) { try{ PaginaDao dao = new OraclePagina(); dao.agregarPagina(pagina); } catch(Exception ex) {} } @WebMethod(operationName = "modificarPagina") public void modificarPagina(@WebParam(name = "pagina") Pagina pagina) { try{ PaginaDao dao = new OraclePagina(); dao.modificarPagina(pagina); } catch(Exception ex) {} } @WebMethod(operationName = "eliminarPagina") public void eliminarPagina(@WebParam(name = "id") Integer id) { try{ PaginaDao dao = new OraclePagina(); dao.eliminarPagina(id); } catch(Exception ex) {} } @WebMethod(operationName = "buscarPagina") public Pagina buscarPagina(@WebParam(name = "id") Integer id) { Pagina pa = new Pagina(); try{ PaginaDao dao = new OraclePagina(); pa = dao.buscarPagina(id); } catch(Exception ex) {} return pa; } }
[ "moi@10.211.55.3" ]
moi@10.211.55.3
dbce1ce6f7f1c0f5f0608aa8f90a4be5b34f4e3d
e71b5c7a699340373fbb1dc1a18703d3e927461f
/Week4/Day2/PlanetAPIV2/src/main/java/com/revature/service/PlanetService.java
70fa44b03c454bad18f6f9e206a42f1d28ea07d4
[]
no_license
lilmissrayna/Curriculum-Resources
20532514f25fc9fde8687b8f74d1051c064b3a5e
00b6bbd4e3d51628ac70009d8f144e39668872c9
refs/heads/main
2023-08-22T03:23:05.005118
2021-10-27T18:26:18
2021-10-27T18:26:18
414,344,454
0
0
null
2021-10-06T19:27:05
2021-10-06T19:27:04
null
UTF-8
Java
false
false
1,854
java
package com.revature.service; import java.util.ArrayList; import java.util.List; import com.revature.models.Planet; public class PlanetService { public PlanetService() { this.initalize(); } private List<Planet> planetList = new ArrayList<>(); public void initalize() { planetList.add(new Planet(0,"Mercury","small",false)); planetList.add(new Planet(1,"Venus","hot",false)); planetList.add(new Planet(2,"Earth","blue",false)); planetList.add(new Planet(3,"Mars","red",false)); planetList.add(new Planet(4,"Jupiter","BIG",true)); } public boolean addPlanet(Planet p) { return planetList.add(p); } public boolean deletePlanet(Planet p) { int index = -1; for(int i = 0; i< this.planetList.size(); i++) { if(p!= null && p.getId() == planetList.get(i).getId()) { index = i; }if(p == null) { return true; } } if(index > -1) { planetList.remove(index); return true; }else { return false; } } public Planet getPlanet(int id) { Planet p = null; try { for(int i = 0; i< this.planetList.size(); i++) { if(id == planetList.get(i).getId()) { p = planetList.get(i); } } }catch(Exception e) { return null; } return p; } public boolean updatePlanet(Planet updateDetails) { Planet p = this.getPlanet(updateDetails.getId()); p.setDescription(updateDetails.getDescription()); p.setRings(updateDetails.isRings()); p.setName(updateDetails.getName()); return true; } public Planet getPlanet(String name) { Planet planet = null; for(Planet p: planetList) { if(p.equals(name)) { planet = p; } } return planet; } public List<Planet> getAllPlanets(){ return planetList; } }
[ "ben.arayathel@gmail.com" ]
ben.arayathel@gmail.com
d8a17b1f50353ce7963b80ec4684f56ac16f62cc
7f5329e845cf6c63d4999a3a1cc5aa1ee1bfc636
/src/chapter7_5/Classes.java
a6d90b22fa14fb184e7efb2593f826ceca1612d6
[]
no_license
taka0824/JavaPractice
f8e89a9840677b35871a17da9c87a8794cd199c6
31594fbc680f100805386a5592a03b06e4e441f7
refs/heads/master
2023-03-08T20:15:17.234196
2021-02-20T07:37:11
2021-02-20T07:37:11
336,132,187
0
0
null
null
null
null
UTF-8
Java
false
false
431
java
package chapter7_5; public class Classes { } class Person{ void work() { System.out.println("人です。働きます。"); } } class Teacher extends Person{ void work() { System.out.println("教師です。授業をします。"); } void makeTest() { System.out.println("テストを作ります"); } } class Student extends Person { void work() { System.out.println("生徒です。勉強します。"); } }
[ "taka0824nari@gmail.com" ]
taka0824nari@gmail.com
b9f19412179423aae22ab0527aa8711b27710f48
dc3764950611628f008b1b961efaf304ce6146b1
/app/src/main/java/com/example/multitablesqlite/Features/StudentCRUD/CreateStudent/Student.java
1149a8093fe4933801766a90e9f7b6973a3fa948
[]
no_license
nilaarta/MultiTabelSQLite
3e14f400cbc21d092fc5f15a2ee865ca6bd94e57
393550119e252ebc68481e7f826d3da83df3df52
refs/heads/master
2020-08-29T16:56:13.996485
2019-10-28T17:30:44
2019-10-28T17:30:44
218,101,730
0
0
null
null
null
null
UTF-8
Java
false
false
1,280
java
package com.example.multitablesqlite.Features.StudentCRUD.CreateStudent; public class Student { private long id; private String name; private long registrationNumber; private String phoneNumber; private String email; public Student(int id, String name, long registrationNumber, String phoneNumber, String email) { this.id = id; this.name = name; this.registrationNumber = registrationNumber; this.phoneNumber = phoneNumber; this.email = email; } 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 long getRegistrationNumber() { return registrationNumber; } public void setRegistrationNumber(long registrationNumber) { this.registrationNumber = registrationNumber; } public String getPhoneNumber() { return phoneNumber; } public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } }
[ "37109093+nilaarta@users.noreply.github.com" ]
37109093+nilaarta@users.noreply.github.com
4984e097825d63d183c83ba0020569f1ccb078ab
0fc415728abcad9313dfe2b62b6c98fc1582e4b0
/app/src/main/java/com/petroprix/appmodlyd/fragment/FragmentMapa.java
6b50f263293b4e6bf82e1b4a2de750e79c3eab9d
[]
no_license
fhfrias/ModeloLyd
72a0df524603d84b549403e1ea6d827a6c9a4951
b67ee52f8e8ca44cc50d9ab6734e9d91015b7f45
refs/heads/master
2020-05-04T21:46:48.034191
2019-04-05T10:09:46
2019-04-05T10:09:46
179,488,255
0
0
null
null
null
null
UTF-8
Java
false
false
615
java
package com.petroprix.appmodlyd.fragment; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.petroprix.appmodlyd.R; public class FragmentMapa extends Fragment { @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_mapa, container, false); } }
[ "friasjavi45@gmail.com" ]
friasjavi45@gmail.com
88e7600cc993b92417d0544d749552437f96b2ee
6a522d536c7677a47be51c58deb8fe9a6a27cfb3
/FraudDetectionEngine/src/main/java/com/bcd/fraud/bpmn/ProcessVariables.java
6ac894aa293211fbbd850ecc8d663e5b00b00513
[]
no_license
iDanielBot/daniels-jar
2813100211323f99c42c28c20feb2aa030088449
a75a3d3424dac84e9bdec72476c460242cb84a7c
refs/heads/master
2022-10-07T00:15:10.684160
2017-08-23T16:56:38
2017-08-23T16:56:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
212
java
package com.bcd.fraud.bpmn; public interface ProcessVariables { String TRANSACTION = "transaction"; String IS_VALID = "isTransactionValid"; String IS_RULE_TRIGGERED = "isRuleTriggered"; }
[ "botdaniel11@gmail.com" ]
botdaniel11@gmail.com
8e12d1d9ede46d1174a8cd1c94d0807c451fe9b2
bc9ea5c65a9143803b026e76f919a4d2d89c532c
/MockitoPOC/src/com/OrderPlacemetService.java
129dd80722199aa029c7c32aa6edd1d5e4bed9f1
[]
no_license
mandarnamdas/POC
2b18574e81da1f853b689153c2042cfe7b4fc79b
78be1f975431c5e08802737a4001d3f00571fbd0
refs/heads/master
2020-04-06T07:05:16.746581
2016-07-19T17:04:23
2016-07-19T17:04:23
35,213,458
0
0
null
null
null
null
UTF-8
Java
false
false
943
java
package com; import static org.mockito.Mockito.doThrow; import java.util.ArrayList; import java.util.List; public class OrderPlacemetService { private List<String> mockedList = new ArrayList<String>(); private List<String> spyList = new ArrayList<String>(); public void verify(){ mockedList.add("One"); mockedList.clear(); } public void stub() { System.out.println(mockedList.get(0)); } public void argumentMatcher() { System.out.println(mockedList.get(999)); } public void argumentCapture(){ mockedList.add("Argument"); } public void methodCalls(){ mockedList.add("one"); mockedList.add("two");mockedList.add("two"); mockedList.add("three");mockedList.add("three");mockedList.add("three"); } public void throwError(){ mockedList.clear(); } public void spy(){ spyList.add("One"); spyList.add("Two"); System.out.println(spyList.get(0)); System.out.println(spyList.get(1)); } }
[ "mandar.namdas@ntpc01073.FPS.NIHILENT.COM" ]
mandar.namdas@ntpc01073.FPS.NIHILENT.COM
6a3d09bcb5b32d8816676d16d38aa46a3f7f11f2
c885ef92397be9d54b87741f01557f61d3f794f3
/results/JxPath-22/org.apache.commons.jxpath.ri.model.dom.DOMNodePointer/BBC-F0-opt-50/tests/22/org/apache/commons/jxpath/ri/model/dom/DOMNodePointer_ESTest.java
e0f60d822faaff6de0c6004ae14129f3f04d6315
[ "CC-BY-4.0", "MIT" ]
permissive
pderakhshanfar/EMSE-BBC-experiment
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
fea1a92c2e7ba7080b8529e2052259c9b697bbda
refs/heads/main
2022-11-25T00:39:58.983828
2022-04-12T16:04:26
2022-04-12T16:04:26
309,335,889
0
1
null
2021-11-05T11:18:43
2020-11-02T10:30:38
null
UTF-8
Java
false
false
98,276
java
/* * This file was automatically generated by EvoSuite * Sat Oct 23 00:08:54 GMT 2021 */ package org.apache.commons.jxpath.ri.model.dom; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import java.util.Locale; import org.apache.commons.jxpath.BasicVariables; import org.apache.commons.jxpath.JXPathContext; import org.apache.commons.jxpath.ri.NamespaceResolver; import org.apache.commons.jxpath.ri.QName; import org.apache.commons.jxpath.ri.compiler.NodeNameTest; import org.apache.commons.jxpath.ri.compiler.NodeTest; import org.apache.commons.jxpath.ri.compiler.NodeTypeTest; import org.apache.commons.jxpath.ri.compiler.ProcessingInstructionTest; import org.apache.commons.jxpath.ri.model.NodeIterator; import org.apache.commons.jxpath.ri.model.NodePointer; import org.apache.commons.jxpath.ri.model.VariablePointer; import org.apache.commons.jxpath.ri.model.beans.NullPointer; import org.apache.commons.jxpath.ri.model.dom.DOMNodePointer; import org.apache.html.dom.HTMLDirectoryElementImpl; import org.apache.html.dom.HTMLDocumentImpl; import org.apache.html.dom.HTMLFormElementImpl; import org.apache.html.dom.HTMLLegendElementImpl; import org.apache.html.dom.HTMLMapElementImpl; import org.apache.html.dom.HTMLMetaElementImpl; import org.apache.html.dom.HTMLObjectElementImpl; import org.apache.html.dom.HTMLOptGroupElementImpl; import org.apache.html.dom.HTMLScriptElementImpl; import org.apache.html.dom.HTMLTableRowElementImpl; import org.apache.html.dom.HTMLTextAreaElementImpl; import org.apache.wml.dom.WMLBigElementImpl; import org.apache.wml.dom.WMLDoElementImpl; import org.apache.wml.dom.WMLDocumentImpl; import org.apache.wml.dom.WMLIElementImpl; import org.apache.wml.dom.WMLOneventElementImpl; import org.apache.wml.dom.WMLPElementImpl; import org.apache.wml.dom.WMLTimerElementImpl; import org.apache.xerces.dom.AttrNSImpl; import org.apache.xerces.dom.CDATASectionImpl; import org.apache.xerces.dom.CommentImpl; import org.apache.xerces.dom.CoreDocumentImpl; import org.apache.xerces.dom.DeferredDocumentImpl; import org.apache.xerces.dom.DocumentFragmentImpl; import org.apache.xerces.dom.DocumentImpl; import org.apache.xerces.dom.DocumentTypeImpl; import org.apache.xerces.dom.ElementDefinitionImpl; import org.apache.xerces.dom.EntityImpl; import org.apache.xerces.dom.EntityReferenceImpl; import org.apache.xerces.dom.PSVIAttrNSImpl; import org.apache.xerces.dom.PSVIDocumentImpl; import org.apache.xerces.dom.PSVIElementNSImpl; import org.apache.xerces.dom.ProcessingInstructionImpl; import org.apache.xerces.dom.TextImpl; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; import org.w3c.dom.Attr; import org.w3c.dom.CDATASection; import org.w3c.dom.Comment; import org.w3c.dom.DOMException; import org.w3c.dom.DocumentFragment; import org.w3c.dom.DocumentType; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.Text; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true) public class DOMNodePointer_ESTest extends DOMNodePointer_ESTest_scaffolding { @Test(timeout = 4000) public void test000() throws Throwable { Locale locale0 = Locale.US; DocumentImpl documentImpl0 = new DocumentImpl(); DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl(documentImpl0, (String) null, (String) null, "zt<p64WH]cCV"); PSVIDocumentImpl pSVIDocumentImpl0 = new PSVIDocumentImpl(documentTypeImpl0); Attr attr0 = pSVIDocumentImpl0.createAttributeNS("zt<p64WH]cCV", "TABINDE9X", "<<unknown namespace>>"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(attr0, locale0); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(documentTypeImpl0, locale0); int int0 = dOMNodePointer1.compareChildNodePointers(dOMNodePointer0, dOMNodePointer1); assertEquals((-1), int0); } @Test(timeout = 4000) public void test001() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Text text0 = hTMLDocumentImpl0.createTextNode("#2}~?"); Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(text0, locale0, "#2}~?"); DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl(hTMLDocumentImpl0, "_dap#oy", "[", "_dap#oy"); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(dOMNodePointer0, documentTypeImpl0); NullPointer nullPointer0 = (NullPointer)dOMNodePointer1.getPointerByID((JXPathContext) null, (String) null); assertTrue(nullPointer0.isRoot()); } @Test(timeout = 4000) public void test002() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); TextImpl textImpl0 = new TextImpl(); QName qName0 = new QName("LEGEND"); VariablePointer variablePointer0 = new VariablePointer(qName0); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(variablePointer0, textImpl0); HTMLObjectElementImpl hTMLObjectElementImpl0 = new HTMLObjectElementImpl(hTMLDocumentImpl0, "org.apache.html.dom.HTMLLabelElementImpl"); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(dOMNodePointer0, hTMLObjectElementImpl0); String string0 = dOMNodePointer1.asPath(); assertEquals("$LEGEND/text()[1]/ORG.APACHE.HTML.DOM.HTMLLABELELEMENTIMPL[1]", string0); } @Test(timeout = 4000) public void test003() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = new Locale(""); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); QName qName0 = new QName("G/4", (String) null); // Undeclared exception! try { dOMNodePointer0.createChild((JXPathContext) null, qName0, (-3063), (Object) "G/4"); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.NodePointer", e); } } @Test(timeout = 4000) public void test004() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Element element0 = hTMLDocumentImpl0.getDocumentElement(); hTMLDocumentImpl0.getAnchors(); Locale locale0 = Locale.FRENCH; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(element0, locale0); dOMNodePointer0.setValue(hTMLDocumentImpl0); assertEquals(Integer.MIN_VALUE, dOMNodePointer0.getIndex()); } @Test(timeout = 4000) public void test005() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.TAIWAN; AttrNSImpl attrNSImpl0 = new AttrNSImpl(hTMLDocumentImpl0, "", "={{", (String) null); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(attrNSImpl0, locale0); QName qName0 = dOMNodePointer0.getName(); assertNull(qName0.getPrefix()); } @Test(timeout = 4000) public void test006() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLOptGroupElementImpl hTMLOptGroupElementImpl0 = new HTMLOptGroupElementImpl(hTMLDocumentImpl0, ""); QName qName0 = new QName("<<unknown namespace>>", ""); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, "BtZ=R["); boolean boolean0 = DOMNodePointer.testNode((Node) hTMLOptGroupElementImpl0, (NodeTest) nodeNameTest0); assertFalse(boolean0); } @Test(timeout = 4000) public void test007() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLOptGroupElementImpl hTMLOptGroupElementImpl0 = new HTMLOptGroupElementImpl(hTMLDocumentImpl0, ";l8WL5>mLlf"); Locale locale0 = Locale.KOREA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLOptGroupElementImpl0, locale0); dOMNodePointer0.setValue(";l8WL5>mLlf"); assertFalse(dOMNodePointer0.isAttribute()); } @Test(timeout = 4000) public void test008() throws Throwable { QName qName0 = new QName("", "#2}~?"); HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Text text0 = hTMLDocumentImpl0.createTextNode("}B-:'"); Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(text0, locale0, "#2}~?"); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, "#2}~?"); boolean boolean0 = dOMNodePointer0.testNode((NodeTest) nodeNameTest0); assertFalse(boolean0); } @Test(timeout = 4000) public void test009() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLOptGroupElementImpl hTMLOptGroupElementImpl0 = new HTMLOptGroupElementImpl(hTMLDocumentImpl0, ";l8WL5>mLlf"); Locale locale0 = Locale.KOREA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLOptGroupElementImpl0, locale0); boolean boolean0 = dOMNodePointer0.isLanguage(""); assertTrue(boolean0); } @Test(timeout = 4000) public void test010() throws Throwable { PSVIDocumentImpl pSVIDocumentImpl0 = new PSVIDocumentImpl(); Element element0 = pSVIDocumentImpl0.createElementNS("}", "marginwidth"); String string0 = DOMNodePointer.getNamespaceURI((Node) element0); assertEquals("}", string0); assertNotNull(string0); } @Test(timeout = 4000) public void test011() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0, "xmlns"); PSVIElementNSImpl pSVIElementNSImpl0 = new PSVIElementNSImpl(hTMLDocumentImpl0, "D", "HTMLBRElementImpl"); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(dOMNodePointer0, pSVIElementNSImpl0); String string0 = dOMNodePointer1.getNamespaceURI(); assertNotNull(string0); assertEquals("D", string0); } @Test(timeout = 4000) public void test012() throws Throwable { PSVIDocumentImpl pSVIDocumentImpl0 = new PSVIDocumentImpl(); Element element0 = pSVIDocumentImpl0.createElementNS("", "", "Egr/X!"); Locale locale0 = Locale.UK; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(element0, locale0); String string0 = dOMNodePointer0.getNamespaceURI(); assertEquals("", string0); assertNotNull(string0); } @Test(timeout = 4000) public void test013() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.CANADA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); NamespaceResolver namespaceResolver0 = dOMNodePointer0.getNamespaceResolver(); namespaceResolver0.seal(); NamespaceResolver namespaceResolver1 = dOMNodePointer0.getNamespaceResolver(); assertTrue(namespaceResolver1.isSealed()); } @Test(timeout = 4000) public void test014() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLOptGroupElementImpl hTMLOptGroupElementImpl0 = new HTMLOptGroupElementImpl(hTMLDocumentImpl0, ""); String string0 = DOMNodePointer.getLocalName(hTMLOptGroupElementImpl0); assertEquals("", string0); } @Test(timeout = 4000) public void test015() throws Throwable { Locale locale0 = Locale.JAPAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer((Node) null, locale0); Object object0 = dOMNodePointer0.getImmediateNode(); assertNull(object0); } @Test(timeout = 4000) public void test016() throws Throwable { QName qName0 = new QName("HTMLInputElementImpl", "HTMLInputElementImpl"); VariablePointer variablePointer0 = new VariablePointer(qName0); HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Element element0 = hTMLDocumentImpl0.createElement("HTMLInputElementImpl"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(variablePointer0, element0); Object object0 = dOMNodePointer0.getImmediateNode(); assertSame(object0, element0); } @Test(timeout = 4000) public void test017() throws Throwable { QName qName0 = new QName(""); VariablePointer variablePointer0 = new VariablePointer(qName0); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(variablePointer0, (Node) null); Object object0 = dOMNodePointer0.getBaseValue(); assertNull(object0); } @Test(timeout = 4000) public void test018() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Element element0 = hTMLDocumentImpl0.getDocumentElement(); Locale locale0 = Locale.TAIWAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(element0, locale0, "Cannot remove root DOM node"); Object object0 = dOMNodePointer0.getBaseValue(); assertSame(object0, element0); } @Test(timeout = 4000) public void test019() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Element element0 = hTMLDocumentImpl0.getDocumentElement(); Locale locale0 = Locale.TAIWAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(element0, locale0, "Cannot remove root DOM node"); QName qName0 = dOMNodePointer0.getName(); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, ""); NodeIterator nodeIterator0 = dOMNodePointer0.childIterator(nodeNameTest0, true, dOMNodePointer0); assertEquals(0, nodeIterator0.getPosition()); } @Test(timeout = 4000) public void test020() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Comment comment0 = hTMLDocumentImpl0.createComment(""); Locale locale0 = Locale.SIMPLIFIED_CHINESE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(comment0, locale0); NodeIterator nodeIterator0 = dOMNodePointer0.attributeIterator((QName) null); assertEquals(0, nodeIterator0.getPosition()); } @Test(timeout = 4000) public void test021() throws Throwable { QName qName0 = new QName("&c[oHUUCCHr6", "do"); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, "hKg,neXLyH9XcYTi0O"); // Undeclared exception! try { DOMNodePointer.testNode((Node) null, (NodeTest) nodeNameTest0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test022() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLDirectoryElementImpl hTMLDirectoryElementImpl0 = new HTMLDirectoryElementImpl(hTMLDocumentImpl0, "http://www.w3.org/2000/xmlns/"); Locale locale0 = Locale.SIMPLIFIED_CHINESE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDirectoryElementImpl0, locale0, "http://www.w3.org/2000/xmlns/"); NodeNameTest nodeNameTest0 = new NodeNameTest((QName) null, "http://www.w3.org/XML/1998/namespace"); // Undeclared exception! try { dOMNodePointer0.testNode((NodeTest) nodeNameTest0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.compiler.NodeNameTest", e); } } @Test(timeout = 4000) public void test023() throws Throwable { QName qName0 = new QName("", "#2}~?"); VariablePointer variablePointer0 = new VariablePointer(qName0); HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Text text0 = hTMLDocumentImpl0.createTextNode("}B-:'"); Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(text0, locale0, "#2}~?"); // Undeclared exception! try { dOMNodePointer0.setValue(variablePointer0); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { // // Undefined variable: :#2}~? // verifyException("org.apache.commons.jxpath.ri.model.VariablePointer$1", e); } } @Test(timeout = 4000) public void test024() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); BasicVariables basicVariables0 = new BasicVariables(); QName qName0 = new QName("N"); VariablePointer variablePointer0 = new VariablePointer(basicVariables0, qName0); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(variablePointer0, hTMLDocumentImpl0); // Undeclared exception! try { dOMNodePointer0.setValue(variablePointer0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // No such variable: 'N' // verifyException("org.apache.commons.jxpath.BasicVariables", e); } } @Test(timeout = 4000) public void test025() throws Throwable { CoreDocumentImpl coreDocumentImpl0 = new CoreDocumentImpl(); EntityReferenceImpl entityReferenceImpl0 = new EntityReferenceImpl(coreDocumentImpl0, "]"); coreDocumentImpl0.setErrorChecking(false); Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(entityReferenceImpl0, locale0, "!qBzmq@ N P'"); PSVIAttrNSImpl pSVIAttrNSImpl0 = new PSVIAttrNSImpl(coreDocumentImpl0, "]", "!qBzmq@ N P'", "]"); // Undeclared exception! try { dOMNodePointer0.setValue(pSVIAttrNSImpl0); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test026() throws Throwable { CoreDocumentImpl coreDocumentImpl0 = new CoreDocumentImpl(); ElementDefinitionImpl elementDefinitionImpl0 = new ElementDefinitionImpl(coreDocumentImpl0, "xml:lang"); Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(elementDefinitionImpl0, locale0); PSVIAttrNSImpl pSVIAttrNSImpl0 = new PSVIAttrNSImpl(coreDocumentImpl0, "D", (String) null, "http://www.w3.org/XML/1998/namespace"); // Undeclared exception! try { dOMNodePointer0.setValue(pSVIAttrNSImpl0); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test027() throws Throwable { DOMNodePointer dOMNodePointer0 = new DOMNodePointer((Node) null, (Locale) null); // Undeclared exception! try { dOMNodePointer0.remove(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test028() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); hTMLDocumentImpl0.setReadOnly(true, true); Locale locale0 = new Locale("http", "y", "y"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0, "Zdq}5`_"); // Undeclared exception! try { dOMNodePointer0.namespaceIterator(); fail("Expecting exception: DOMException"); } catch(DOMException e) { // // NO_MODIFICATION_ALLOWED_ERR: An attempt is made to modify an object where modifications are not allowed. // verifyException("org.apache.xerces.dom.ParentNode", e); } } @Test(timeout = 4000) public void test029() throws Throwable { Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer((Node) null, locale0); // Undeclared exception! try { dOMNodePointer0.namespaceIterator(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNamespaceIterator", e); } } @Test(timeout = 4000) public void test030() throws Throwable { Locale locale0 = Locale.FRENCH; DOMNodePointer dOMNodePointer0 = new DOMNodePointer((Node) null, locale0); // Undeclared exception! try { dOMNodePointer0.isLeaf(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test031() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLOptGroupElementImpl hTMLOptGroupElementImpl0 = new HTMLOptGroupElementImpl(hTMLDocumentImpl0, "HTMLInputElementImpl"); Locale locale0 = Locale.KOREA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLOptGroupElementImpl0, locale0); // Undeclared exception! try { dOMNodePointer0.isLanguage((String) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.NodePointer", e); } } @Test(timeout = 4000) public void test032() throws Throwable { DeferredDocumentImpl deferredDocumentImpl0 = new DeferredDocumentImpl(true, true); DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl(deferredDocumentImpl0, "b&3{,d5", "s75)FNT}", "s75)FNT}"); PSVIDocumentImpl pSVIDocumentImpl0 = new PSVIDocumentImpl(documentTypeImpl0); Attr attr0 = pSVIDocumentImpl0.createAttributeNS("41iyF", "B"); Locale locale0 = Locale.FRANCE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(attr0, locale0, "B"); // Undeclared exception! try { dOMNodePointer0.getValue(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test033() throws Throwable { PSVIDocumentImpl pSVIDocumentImpl0 = new PSVIDocumentImpl(); Attr attr0 = pSVIDocumentImpl0.createAttributeNS("A Text is not allowed at the document root", (String) null, (String) null); // Undeclared exception! try { DOMNodePointer.getPrefix(attr0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.xerces.dom.AttrNSImpl", e); } } @Test(timeout = 4000) public void test034() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); hTMLDocumentImpl0.setReadOnly(true, true); // Undeclared exception! try { DOMNodePointer.getNamespaceURI((Node) hTMLDocumentImpl0); fail("Expecting exception: DOMException"); } catch(DOMException e) { // // NO_MODIFICATION_ALLOWED_ERR: An attempt is made to modify an object where modifications are not allowed. // verifyException("org.apache.xerces.dom.ParentNode", e); } } @Test(timeout = 4000) public void test035() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl(hTMLDocumentImpl0, ""); WMLDocumentImpl wMLDocumentImpl0 = new WMLDocumentImpl(documentTypeImpl0); // Undeclared exception! try { DOMNodePointer.getNamespaceURI((Node) wMLDocumentImpl0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test036() throws Throwable { DocumentFragmentImpl documentFragmentImpl0 = new DocumentFragmentImpl(); // Undeclared exception! try { DOMNodePointer.getNamespaceURI((Node) documentFragmentImpl0); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // org.apache.xerces.dom.DocumentFragmentImpl cannot be cast to org.w3c.dom.Element // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test037() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); hTMLDocumentImpl0.setReadOnly(true, true); Locale locale0 = Locale.GERMAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0, "/"); // Undeclared exception! try { dOMNodePointer0.getNamespaceURI("/"); fail("Expecting exception: DOMException"); } catch(DOMException e) { // // NO_MODIFICATION_ALLOWED_ERR: An attempt is made to modify an object where modifications are not allowed. // verifyException("org.apache.xerces.dom.ParentNode", e); } } @Test(timeout = 4000) public void test038() throws Throwable { DeferredDocumentImpl deferredDocumentImpl0 = new DeferredDocumentImpl(); Locale locale0 = new Locale("e%V2@)EF", "e%V2@)EF", "org.apache.commons.jxpath.ri.model.dom.DOMNodePointer"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(deferredDocumentImpl0, locale0); // Undeclared exception! try { dOMNodePointer0.getNamespaceURI("xmlns:"); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.xerces.dom.DeferredDocumentImpl", e); } } @Test(timeout = 4000) public void test039() throws Throwable { DeferredDocumentImpl deferredDocumentImpl0 = new DeferredDocumentImpl(); deferredDocumentImpl0.setDeferredAttribute(566, "e%V2@)EF", "e%V2@)EF", "e%V2@)EF", false, false, (Object) "org.apache.commons.jxpath.ri.model.dom.DOMNodePointer"); Locale locale0 = new Locale("e%V2@)EF", "e%V2@)EF", "org.apache.commons.jxpath.ri.model.dom.DOMNodePointer"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(deferredDocumentImpl0, locale0); // Undeclared exception! try { dOMNodePointer0.getNamespaceURI("xmlns:"); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // type: 20 // verifyException("org.apache.xerces.dom.DeferredDocumentImpl", e); } } @Test(timeout = 4000) public void test040() throws Throwable { Locale locale0 = Locale.ITALY; DeferredDocumentImpl deferredDocumentImpl0 = new DeferredDocumentImpl(); DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl(deferredDocumentImpl0, "/", "/", "|c&]e*P.Z:i6"); WMLDocumentImpl wMLDocumentImpl0 = new WMLDocumentImpl(documentTypeImpl0); WMLTimerElementImpl wMLTimerElementImpl0 = new WMLTimerElementImpl(wMLDocumentImpl0, "|c&]e*P.Z:i6"); deferredDocumentImpl0.setDeferredAttribute(91, "http://www.w3.org/XML/1998/namespace", "http://www.w3.org/XML/1998/namespace", "http://www.w3.org/XML/1998/namespace", false, true, (Object) wMLTimerElementImpl0); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(deferredDocumentImpl0, locale0, "/"); // Undeclared exception! try { dOMNodePointer0.getNamespaceURI("/"); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // org.apache.xerces.dom.DeferredDocumentImpl cannot be cast to org.w3c.dom.Element // verifyException("org.apache.xerces.dom.DeferredDocumentImpl", e); } } @Test(timeout = 4000) public void test041() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.US; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); hTMLDocumentImpl0.setReadOnly(true, true); // Undeclared exception! try { dOMNodePointer0.getNamespaceURI(); fail("Expecting exception: DOMException"); } catch(DOMException e) { // // NO_MODIFICATION_ALLOWED_ERR: An attempt is made to modify an object where modifications are not allowed. // verifyException("org.apache.xerces.dom.ParentNode", e); } } @Test(timeout = 4000) public void test042() throws Throwable { Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer((Node) null, locale0); // Undeclared exception! try { dOMNodePointer0.getNamespaceURI(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test043() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); DocumentFragment documentFragment0 = hTMLDocumentImpl0.createDocumentFragment(); Locale locale0 = Locale.ENGLISH; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(documentFragment0, locale0); // Undeclared exception! try { dOMNodePointer0.getNamespaceURI(); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // org.apache.xerces.dom.DocumentFragmentImpl cannot be cast to org.w3c.dom.Element // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test044() throws Throwable { Locale locale0 = new Locale("http://www.w3.org/2000/xmlns/"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer((Node) null, locale0); // Undeclared exception! try { dOMNodePointer0.getName(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test045() throws Throwable { // Undeclared exception! try { DOMNodePointer.getLocalName((Node) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test046() throws Throwable { WMLPElementImpl wMLPElementImpl0 = new WMLPElementImpl((WMLDocumentImpl) null, "Fv/Omp=Gotdc"); Locale locale0 = Locale.FRANCE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(wMLPElementImpl0, locale0, "xml"); // Undeclared exception! try { dOMNodePointer0.getLanguage(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.xerces.dom.ElementImpl", e); } } @Test(timeout = 4000) public void test047() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); hTMLDocumentImpl0.setReadOnly(true, true); Locale locale0 = new Locale("http", "y", "y"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0, "Zdq}5`_"); // Undeclared exception! try { dOMNodePointer0.getDefaultNamespaceURI(); fail("Expecting exception: DOMException"); } catch(DOMException e) { // // NO_MODIFICATION_ALLOWED_ERR: An attempt is made to modify an object where modifications are not allowed. // verifyException("org.apache.xerces.dom.ParentNode", e); } } @Test(timeout = 4000) public void test048() throws Throwable { WMLOneventElementImpl wMLOneventElementImpl0 = new WMLOneventElementImpl((WMLDocumentImpl) null, "km"); // Undeclared exception! try { DOMNodePointer.findEnclosingAttribute(wMLOneventElementImpl0, "org.apache.commons.jxpath.JXPathContext"); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.xerces.dom.ElementImpl", e); } } @Test(timeout = 4000) public void test049() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLOptGroupElementImpl hTMLOptGroupElementImpl0 = new HTMLOptGroupElementImpl(hTMLDocumentImpl0, ""); Locale locale0 = Locale.KOREA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLOptGroupElementImpl0, locale0); DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl(hTMLDocumentImpl0, "<<unknown namespace>>"); WMLDocumentImpl wMLDocumentImpl0 = new WMLDocumentImpl(documentTypeImpl0); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(wMLDocumentImpl0, locale0); QName qName0 = dOMNodePointer1.getName(); // Undeclared exception! try { dOMNodePointer0.createAttribute((JXPathContext) null, qName0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.html.dom.HTMLElementImpl", e); } } @Test(timeout = 4000) public void test050() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); QName qName0 = new QName("org.apache.html.dom.HTMLHRElementImpl", (String) null); VariablePointer variablePointer0 = new VariablePointer(qName0); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(variablePointer0, hTMLDocumentImpl0); // Undeclared exception! try { dOMNodePointer0.compareChildNodePointers(variablePointer0, variablePointer0); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { // // Undefined variable: org.apache.html.dom.HTMLHRElementImpl:null // verifyException("org.apache.commons.jxpath.ri.model.VariablePointer", e); } } @Test(timeout = 4000) public void test051() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.KOREA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0, "}W^"); // Undeclared exception! try { dOMNodePointer0.compareChildNodePointers(dOMNodePointer0, (NodePointer) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test052() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.KOREA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); QName qName0 = new QName("<<unknown namespace>>", "W({j"); BasicVariables basicVariables0 = new BasicVariables(); VariablePointer variablePointer0 = new VariablePointer(basicVariables0, qName0); // Undeclared exception! try { dOMNodePointer0.compareChildNodePointers(variablePointer0, variablePointer0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // No such variable: '<<unknown namespace>>:W({j' // verifyException("org.apache.commons.jxpath.BasicVariables", e); } } @Test(timeout = 4000) public void test053() throws Throwable { PSVIDocumentImpl pSVIDocumentImpl0 = new PSVIDocumentImpl(); PSVIElementNSImpl pSVIElementNSImpl0 = new PSVIElementNSImpl(pSVIDocumentImpl0, "{!Vg<$+9|aA;:6Y[", "{!Vg<$+9|aA;:6Y[", "{!Vg<$+9|aA;:6Y["); Locale locale0 = Locale.ROOT; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(pSVIElementNSImpl0, locale0); QName qName0 = dOMNodePointer0.getName(); // Undeclared exception! try { NodePointer.newNodePointer(qName0, "{!Vg<$+9|aA;:6Y[", locale0); // fail("Expecting exception: NoClassDefFoundError"); // Unstable assertion } catch(NoClassDefFoundError e) { // // Could not initialize class org.apache.commons.jxpath.ri.JXPathContextReferenceImpl // verifyException("org.apache.commons.jxpath.ri.model.NodePointer", e); } } @Test(timeout = 4000) public void test054() throws Throwable { QName qName0 = new QName("lu+bQetYltl6Aw0<8"); VariablePointer variablePointer0 = new VariablePointer(qName0); DeferredDocumentImpl deferredDocumentImpl0 = new DeferredDocumentImpl(true, false); DocumentFragment documentFragment0 = deferredDocumentImpl0.createDocumentFragment(); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(variablePointer0, documentFragment0); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(Integer.MIN_VALUE); // Undeclared exception! try { dOMNodePointer0.childIterator(nodeTypeTest0, false, variablePointer0); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { // // Undefined variable: lu+bQetYltl6Aw0<8 // verifyException("org.apache.commons.jxpath.ri.model.VariablePointer$1", e); } } @Test(timeout = 4000) public void test055() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = new Locale("http://www.w3.org/XML/1998/namespace", "http://www.w3.org/XML/1998/namespace", "http://www.w3.org/XML/1998/namespace"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); BasicVariables basicVariables0 = new BasicVariables(); QName qName0 = new QName("@K]PiV~Oee~:W;id["); VariablePointer variablePointer0 = new VariablePointer(basicVariables0, qName0); // Undeclared exception! try { dOMNodePointer0.childIterator((NodeTest) null, true, variablePointer0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // No such variable: '@K]PiV~Oee~:W;id[' // verifyException("org.apache.commons.jxpath.BasicVariables", e); } } @Test(timeout = 4000) public void test056() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = new Locale("http://www.w3.org/XML/1998/namespace", "http://www.w3.org/XML/1998/namespace", "http://www.w3.org/XML/1998/namespace"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(Integer.MIN_VALUE); QName qName0 = new QName("<<unknown namespace>>"); // Undeclared exception! try { NodePointer.newChildNodePointer(dOMNodePointer0, qName0, "http://www.w3.org/XML/1998/namespace"); // fail("Expecting exception: NoClassDefFoundError"); // Unstable assertion } catch(NoClassDefFoundError e) { // // Could not initialize class org.apache.commons.jxpath.ri.JXPathContextReferenceImpl // verifyException("org.apache.commons.jxpath.ri.model.NodePointer", e); } } @Test(timeout = 4000) public void test057() throws Throwable { DOMNodePointer dOMNodePointer0 = new DOMNodePointer((Node) null, (Locale) null, "/processing-instruction('"); QName qName0 = new QName("http://www.w3.org/XML/1998/namespace"); // Undeclared exception! try { dOMNodePointer0.attributeIterator(qName0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMAttributeIterator", e); } } @Test(timeout = 4000) public void test058() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); PSVIElementNSImpl pSVIElementNSImpl0 = new PSVIElementNSImpl(hTMLDocumentImpl0, "8m", "8m", "8m"); Locale locale0 = Locale.JAPANESE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(dOMNodePointer0, pSVIElementNSImpl0); hTMLDocumentImpl0.setReadOnly(true, true); // Undeclared exception! try { dOMNodePointer1.asPath(); fail("Expecting exception: DOMException"); } catch(DOMException e) { // // NO_MODIFICATION_ALLOWED_ERR: An attempt is made to modify an object where modifications are not allowed. // verifyException("org.apache.xerces.dom.ParentNode", e); } } @Test(timeout = 4000) public void test059() throws Throwable { QName qName0 = new QName(""); EntityImpl entityImpl0 = new EntityImpl((CoreDocumentImpl) null, "tabindex"); // Undeclared exception! try { NodePointer.newNodePointer(qName0, entityImpl0, (Locale) null); // fail("Expecting exception: NoClassDefFoundError"); // Unstable assertion } catch(NoClassDefFoundError e) { // // Could not initialize class org.apache.commons.jxpath.ri.JXPathContextReferenceImpl // verifyException("org.apache.commons.jxpath.ri.model.NodePointer", e); } } @Test(timeout = 4000) public void test060() throws Throwable { PSVIDocumentImpl pSVIDocumentImpl0 = new PSVIDocumentImpl(); Element element0 = pSVIDocumentImpl0.createElementNS("", "", "Egr/X!"); String string0 = DOMNodePointer.getNamespaceURI((Node) element0); assertEquals("", string0); assertNotNull(string0); } @Test(timeout = 4000) public void test061() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); String string0 = DOMNodePointer.getNamespaceURI((Node) hTMLDocumentImpl0); assertNull(string0); } @Test(timeout = 4000) public void test062() throws Throwable { CoreDocumentImpl coreDocumentImpl0 = new CoreDocumentImpl(); DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl(coreDocumentImpl0, "WP(qDdL&`'tWo`RU"); WMLDocumentImpl wMLDocumentImpl0 = new WMLDocumentImpl(documentTypeImpl0); WMLBigElementImpl wMLBigElementImpl0 = new WMLBigElementImpl(wMLDocumentImpl0, ":<hR"); String string0 = DOMNodePointer.getNamespaceURI((Node) wMLBigElementImpl0); assertNull(string0); } @Test(timeout = 4000) public void test063() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLOptGroupElementImpl hTMLOptGroupElementImpl0 = new HTMLOptGroupElementImpl(hTMLDocumentImpl0, "3:TUI?tjFB0zU\u0002r"); String string0 = DOMNodePointer.getLocalName(hTMLOptGroupElementImpl0); assertEquals("TUI?TJFB0ZU\u0002R", string0); } @Test(timeout = 4000) public void test064() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Attr attr0 = hTMLDocumentImpl0.createAttributeNS("igpve3", "igpve3"); String string0 = DOMNodePointer.getLocalName(attr0); assertEquals("igpve3", string0); } @Test(timeout = 4000) public void test065() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLMapElementImpl hTMLMapElementImpl0 = new HTMLMapElementImpl(hTMLDocumentImpl0, ":*)"); String string0 = DOMNodePointer.getPrefix(hTMLMapElementImpl0); assertEquals("", string0); } @Test(timeout = 4000) public void test066() throws Throwable { DeferredDocumentImpl deferredDocumentImpl0 = new DeferredDocumentImpl(); DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl(deferredDocumentImpl0, "["); WMLDocumentImpl wMLDocumentImpl0 = new WMLDocumentImpl(documentTypeImpl0); Element element0 = wMLDocumentImpl0.createElementNS((String) null, "HTMLStyleElementImpl"); String string0 = DOMNodePointer.getPrefix(element0); assertNull(string0); } @Test(timeout = 4000) public void test067() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLOptGroupElementImpl hTMLOptGroupElementImpl0 = new HTMLOptGroupElementImpl(hTMLDocumentImpl0, "3:TUI?tjFB0zU\u0002r"); Locale locale0 = Locale.ITALY; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLOptGroupElementImpl0, locale0); dOMNodePointer0.printPointerChain(); assertTrue(dOMNodePointer0.isActual()); } @Test(timeout = 4000) public void test068() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.US; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); String string0 = dOMNodePointer0.asPath(); assertEquals("", string0); } @Test(timeout = 4000) public void test069() throws Throwable { TextImpl textImpl0 = new TextImpl(); Locale locale0 = Locale.FRANCE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(textImpl0, locale0); dOMNodePointer0.printPointerChain(); assertEquals(Integer.MIN_VALUE, NodePointer.WHOLE_COLLECTION); } @Test(timeout = 4000) public void test070() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.GERMAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); QName qName0 = new QName("<<unknown namespace>>", "{"); // Undeclared exception! try { dOMNodePointer0.createChild((JXPathContext) null, qName0, Integer.MIN_VALUE); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.NodePointer", e); } } @Test(timeout = 4000) public void test071() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = new Locale("http://www.w3.org/XML/1998/namespace", "http://www.w3.org/XML/1998/namespace", "http://www.w3.org/XML/1998/namespace"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); String string0 = dOMNodePointer0.getDefaultNamespaceURI(); assertNull(string0); } @Test(timeout = 4000) public void test072() throws Throwable { Locale locale0 = Locale.CANADA; DeferredDocumentImpl deferredDocumentImpl0 = new DeferredDocumentImpl(); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(deferredDocumentImpl0, locale0, "Cannot allocate dynamic property handler of class "); // Undeclared exception! try { dOMNodePointer0.getDefaultNamespaceURI(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.xerces.dom.DeferredDocumentImpl", e); } } @Test(timeout = 4000) public void test073() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.KOREA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0, "}W^"); String string0 = dOMNodePointer0.getNamespaceURI("xmlns"); assertNotNull(string0); assertEquals("http://www.w3.org/2000/xmlns/", string0); } @Test(timeout = 4000) public void test074() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.TAIWAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0, ""); String string0 = dOMNodePointer0.getNamespaceURI("xml"); assertEquals("http://www.w3.org/XML/1998/namespace", string0); } @Test(timeout = 4000) public void test075() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); ProcessingInstructionImpl processingInstructionImpl0 = new ProcessingInstructionImpl(hTMLDocumentImpl0, "D", "D"); Locale locale0 = Locale.GERMANY; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(processingInstructionImpl0, locale0); NamespaceResolver namespaceResolver0 = dOMNodePointer0.getNamespaceResolver(); assertFalse(namespaceResolver0.isSealed()); } @Test(timeout = 4000) public void test076() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLDirectoryElementImpl hTMLDirectoryElementImpl0 = new HTMLDirectoryElementImpl(hTMLDocumentImpl0, ""); Locale locale0 = Locale.CANADA_FRENCH; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDirectoryElementImpl0, locale0, ""); QName qName0 = dOMNodePointer0.getName(); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, "http://www.w3.org/XML/1998/namespace"); boolean boolean0 = DOMNodePointer.testNode((Node) hTMLDirectoryElementImpl0, (NodeTest) nodeNameTest0); assertTrue(boolean0); } @Test(timeout = 4000) public void test077() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl(hTMLDocumentImpl0, "http://www.w3.org/2000/xmlns/", "http://www.w3.org/XML/1998/namespace", "<<unknown namespace>>"); WMLDocumentImpl wMLDocumentImpl0 = new WMLDocumentImpl(documentTypeImpl0); boolean boolean0 = DOMNodePointer.testNode((Node) wMLDocumentImpl0, (NodeTest) null); assertTrue(boolean0); } @Test(timeout = 4000) public void test078() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.TAIWAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0, "org.apache.html.dom.HTMLDocumentImpl@0000000001"); dOMNodePointer0.namespaceIterator(); // Undeclared exception! try { dOMNodePointer0.getPointerByID((JXPathContext) null, (String) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.html.dom.HTMLDocumentImpl", e); } } @Test(timeout = 4000) public void test079() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLOptGroupElementImpl hTMLOptGroupElementImpl0 = new HTMLOptGroupElementImpl(hTMLDocumentImpl0, "3:TUI?tjFB0zU\u0002r"); Locale locale0 = Locale.ITALY; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLOptGroupElementImpl0, locale0); QName qName0 = dOMNodePointer0.getName(); dOMNodePointer0.attributeIterator(qName0); assertEquals("3:TUI?TJFB0ZU\u0002R", qName0.toString()); } @Test(timeout = 4000) public void test080() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.KOREA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); HTMLScriptElementImpl hTMLScriptElementImpl0 = new HTMLScriptElementImpl(hTMLDocumentImpl0, "}B-:'"); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(hTMLScriptElementImpl0, locale0); String string0 = dOMNodePointer0.getNamespaceURI("Factory could not create a child node for path: "); assertNull(string0); int int0 = dOMNodePointer0.compareChildNodePointers(dOMNodePointer0, dOMNodePointer1); assertEquals(0, int0); } @Test(timeout = 4000) public void test081() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Element element0 = hTMLDocumentImpl0.getDocumentElement(); Locale locale0 = Locale.ITALIAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(element0, locale0); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(hTMLDocumentImpl0, locale0); int int0 = dOMNodePointer1.compareChildNodePointers(dOMNodePointer0, dOMNodePointer1); assertEquals((-1), int0); } @Test(timeout = 4000) public void test082() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.TAIWAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0, ""); PSVIAttrNSImpl pSVIAttrNSImpl0 = new PSVIAttrNSImpl(hTMLDocumentImpl0, "Factory did not assign a collection to variable '", "<<unknown namespace>>", "4U4%L4{M?)O"); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(pSVIAttrNSImpl0, locale0); int int0 = dOMNodePointer0.compareChildNodePointers(dOMNodePointer0, dOMNodePointer1); assertEquals(1, int0); } @Test(timeout = 4000) public void test083() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Element element0 = hTMLDocumentImpl0.getDocumentElement(); Locale locale0 = Locale.ITALIAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(element0, locale0); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(hTMLDocumentImpl0, locale0); int int0 = dOMNodePointer1.compareChildNodePointers(dOMNodePointer1, dOMNodePointer0); assertEquals(1, int0); } @Test(timeout = 4000) public void test084() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.KOREA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); int int0 = dOMNodePointer0.compareChildNodePointers(dOMNodePointer0, dOMNodePointer0); assertEquals(0, int0); } @Test(timeout = 4000) public void test085() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.TAIWAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); dOMNodePointer0.getNamespaceURI(""); DOMNodePointer dOMNodePointer1 = (DOMNodePointer)dOMNodePointer0.getPointerByID((JXPathContext) null, ""); assertEquals(1, dOMNodePointer1.getLength()); } @Test(timeout = 4000) public void test086() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Text text0 = hTMLDocumentImpl0.createTextNode("#2}~?"); Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(text0, locale0, "#2}~?"); NullPointer nullPointer0 = (NullPointer)dOMNodePointer0.getPointerByID((JXPathContext) null, (String) null); assertTrue(nullPointer0.isLeaf()); } @Test(timeout = 4000) public void test087() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); ProcessingInstructionImpl processingInstructionImpl0 = new ProcessingInstructionImpl(hTMLDocumentImpl0, "xml", "xml"); Locale locale0 = Locale.CANADA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(processingInstructionImpl0, locale0, "s_>,9c!stP"); Object object0 = dOMNodePointer0.getValue(); assertEquals("xml", object0); } @Test(timeout = 4000) public void test088() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); ProcessingInstructionImpl processingInstructionImpl0 = new ProcessingInstructionImpl(hTMLDocumentImpl0, (String) null, (String) null); Locale locale0 = Locale.CANADA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(processingInstructionImpl0, locale0, "yl=s,E4^FG#&RbyGA"); Object object0 = dOMNodePointer0.getValue(); assertEquals("", object0); } @Test(timeout = 4000) public void test089() throws Throwable { Locale locale0 = Locale.CANADA_FRENCH; DocumentImpl documentImpl0 = new DocumentImpl(); CDATASectionImpl cDATASectionImpl0 = new CDATASectionImpl(documentImpl0, "]"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(cDATASectionImpl0, locale0); Object object0 = dOMNodePointer0.getValue(); assertEquals("]", object0); } @Test(timeout = 4000) public void test090() throws Throwable { TextImpl textImpl0 = new TextImpl(); Locale locale0 = Locale.FRANCE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(textImpl0, locale0); Object object0 = dOMNodePointer0.getValue(); assertEquals("", object0); } @Test(timeout = 4000) public void test091() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); CommentImpl commentImpl0 = new CommentImpl(hTMLDocumentImpl0, ""); hTMLDocumentImpl0.appendChild(commentImpl0); QName qName0 = new QName(""); Locale locale0 = Locale.CANADA; // Undeclared exception! try { NodePointer.newNodePointer(qName0, hTMLDocumentImpl0, locale0); // fail("Expecting exception: NoClassDefFoundError"); // Unstable assertion } catch(NoClassDefFoundError e) { // // Could not initialize class org.apache.commons.jxpath.ri.JXPathContextReferenceImpl // verifyException("org.apache.commons.jxpath.ri.model.NodePointer", e); } } @Test(timeout = 4000) public void test092() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Comment comment0 = hTMLDocumentImpl0.createComment(""); Locale locale0 = Locale.SIMPLIFIED_CHINESE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(comment0, locale0); Object object0 = dOMNodePointer0.getValue(); assertEquals("", object0); } @Test(timeout = 4000) public void test093() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Comment comment0 = hTMLDocumentImpl0.createComment((String) null); Locale locale0 = Locale.JAPAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(comment0, locale0); Object object0 = dOMNodePointer0.getValue(); assertEquals("", object0); } @Test(timeout = 4000) public void test094() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.US; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); String string0 = dOMNodePointer0.getNamespaceURI(); assertNull(string0); } @Test(timeout = 4000) public void test095() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); PSVIElementNSImpl pSVIElementNSImpl0 = new PSVIElementNSImpl(hTMLDocumentImpl0, "F0.", "FD::4=k)VZ'tfs*+", "FD::4=k)VZ'tfs*+"); String string0 = DOMNodePointer.getPrefix(pSVIElementNSImpl0); assertEquals("FD", string0); } @Test(timeout = 4000) public void test096() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.GERMANY; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); HTMLMapElementImpl hTMLMapElementImpl0 = new HTMLMapElementImpl(hTMLDocumentImpl0, "AMn\"sKdUU|u"); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(hTMLMapElementImpl0, locale0); boolean boolean0 = dOMNodePointer0.equals(dOMNodePointer1); assertFalse(boolean0); } @Test(timeout = 4000) public void test097() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.GERMANY; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(hTMLDocumentImpl0, locale0, "xml"); boolean boolean0 = dOMNodePointer1.equals(dOMNodePointer0); assertTrue(boolean0); } @Test(timeout = 4000) public void test098() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); TextImpl textImpl0 = new TextImpl(); Locale locale0 = Locale.FRANCE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(textImpl0, locale0); HTMLTextAreaElementImpl hTMLTextAreaElementImpl0 = new HTMLTextAreaElementImpl(hTMLDocumentImpl0, ""); boolean boolean0 = dOMNodePointer0.equals(hTMLTextAreaElementImpl0); assertFalse(boolean0); } @Test(timeout = 4000) public void test099() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = new Locale("c$L2-", "http://www.w3.or,/XML/1998/namespace"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0, "http://www.w3.or,/XML/1998/namespace"); boolean boolean0 = dOMNodePointer0.equals(dOMNodePointer0); assertTrue(boolean0); } @Test(timeout = 4000) public void test100() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.ITALY; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); HTMLTableRowElementImpl hTMLTableRowElementImpl0 = new HTMLTableRowElementImpl(hTMLDocumentImpl0, "http://www.w3.org/2000/xmlns/"); hTMLDocumentImpl0.setBody(hTMLTableRowElementImpl0); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(dOMNodePointer0, hTMLTableRowElementImpl0); String string0 = dOMNodePointer1.asPath(); assertEquals("///WWW.W3.ORG/2000/XMLNS/[1]", string0); } @Test(timeout = 4000) public void test101() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Element element0 = hTMLDocumentImpl0.getDocumentElement(); Locale locale0 = new Locale("nodVe()"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(element0, locale0, "nodVe()"); PSVIElementNSImpl pSVIElementNSImpl0 = new PSVIElementNSImpl(hTMLDocumentImpl0, "byte", "<<unknown namespace>>", "<<unknown namespace>>"); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(dOMNodePointer0, pSVIElementNSImpl0); dOMNodePointer1.asPath(); NamespaceResolver namespaceResolver0 = dOMNodePointer1.getNamespaceResolver(); assertFalse(namespaceResolver0.isSealed()); } @Test(timeout = 4000) public void test102() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLTableRowElementImpl hTMLTableRowElementImpl0 = new HTMLTableRowElementImpl(hTMLDocumentImpl0, "{x~{:xYhjLkeqnveM"); QName qName0 = new QName("@IcZvmD<A/"); VariablePointer variablePointer0 = new VariablePointer(qName0); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(variablePointer0, hTMLDocumentImpl0); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(dOMNodePointer0, hTMLTableRowElementImpl0); String string0 = dOMNodePointer1.asPath(); assertEquals("$@IcZvmD<A/XYHJLKEQNVEM[1]", string0); } @Test(timeout = 4000) public void test103() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.KOREA; DocumentFragment documentFragment0 = hTMLDocumentImpl0.createDocumentFragment(); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(documentFragment0, locale0); dOMNodePointer0.printPointerChain(); assertEquals(Integer.MIN_VALUE, dOMNodePointer0.getIndex()); } @Test(timeout = 4000) public void test104() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Comment comment0 = hTMLDocumentImpl0.createComment(""); Locale locale0 = Locale.SIMPLIFIED_CHINESE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(comment0, locale0); dOMNodePointer0.printPointerChain(); assertEquals(1, dOMNodePointer0.getLength()); } @Test(timeout = 4000) public void test105() throws Throwable { Locale locale0 = Locale.forLanguageTag("#2}~?"); HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); ProcessingInstructionImpl processingInstructionImpl0 = new ProcessingInstructionImpl(hTMLDocumentImpl0, "#2}~?", "OhKH~LB]CC"); QName qName0 = new QName("Cannot remove root DOM node", "&ZtY bA=utEJ-+fi"); // Undeclared exception! try { NodePointer.newNodePointer(qName0, "HTM013 Argument 'name' is null.", locale0); // fail("Expecting exception: NoClassDefFoundError"); // Unstable assertion } catch(NoClassDefFoundError e) { // // Could not initialize class org.apache.commons.jxpath.ri.JXPathContextReferenceImpl // verifyException("org.apache.commons.jxpath.ri.model.NodePointer", e); } } @Test(timeout = 4000) public void test106() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.JAPANESE; EntityImpl entityImpl0 = new EntityImpl(hTMLDocumentImpl0, "]"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(entityImpl0, locale0); String string0 = dOMNodePointer0.asPath(); assertEquals("", string0); } @Test(timeout = 4000) public void test107() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.TAIWAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); EntityReferenceImpl entityReferenceImpl0 = new EntityReferenceImpl(hTMLDocumentImpl0, "<<unknown namespace>>"); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(dOMNodePointer0, entityReferenceImpl0); String string0 = dOMNodePointer1.asPath(); assertEquals("", string0); } @Test(timeout = 4000) public void test108() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.CHINA; CDATASection cDATASection0 = hTMLDocumentImpl0.createCDATASection("XUm"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(cDATASection0, locale0); dOMNodePointer0.printPointerChain(); assertTrue(dOMNodePointer0.isNode()); } @Test(timeout = 4000) public void test109() throws Throwable { Locale locale0 = Locale.TRADITIONAL_CHINESE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer((Node) null, locale0, "/text()"); AttrNSImpl attrNSImpl0 = new AttrNSImpl(); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(dOMNodePointer0, attrNSImpl0); String string0 = dOMNodePointer1.toString(); assertEquals("id('/text()')", string0); } @Test(timeout = 4000) public void test110() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Text text0 = hTMLDocumentImpl0.createTextNode("HTML"); Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(text0, locale0, "LalYb8 w\tL^6$&\"xCU"); String string0 = dOMNodePointer0.asPath(); assertEquals("id('LalYb8 w\tL^6$&&quot;xCU')", string0); } @Test(timeout = 4000) public void test111() throws Throwable { DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl((CoreDocumentImpl) null, "<<unknown namespace>>"); WMLDocumentImpl wMLDocumentImpl0 = new WMLDocumentImpl(documentTypeImpl0); Locale locale0 = Locale.CANADA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(wMLDocumentImpl0, locale0); // Undeclared exception! try { dOMNodePointer0.remove(); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { // // Cannot remove root DOM node // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test112() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl(hTMLDocumentImpl0, "http://www.w3.org/2000/xmlns/"); WMLDocumentImpl wMLDocumentImpl0 = new WMLDocumentImpl(documentTypeImpl0); DOMNodePointer dOMNodePointer0 = new DOMNodePointer((NodePointer) null, documentTypeImpl0); dOMNodePointer0.remove(); assertEquals(Integer.MIN_VALUE, dOMNodePointer0.getIndex()); } @Test(timeout = 4000) public void test113() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Element element0 = hTMLDocumentImpl0.getDocumentElement(); Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(element0, locale0); QName qName0 = dOMNodePointer0.getName(); dOMNodePointer0.createAttribute((JXPathContext) null, qName0); NodePointer nodePointer0 = dOMNodePointer0.createAttribute((JXPathContext) null, qName0); assertFalse(nodePointer0.isRoot()); } @Test(timeout = 4000) public void test114() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = new Locale("optional"); HTMLScriptElementImpl hTMLScriptElementImpl0 = new HTMLScriptElementImpl(hTMLDocumentImpl0, "http://www.w3.org/2000/xmlns/"); QName qName0 = new QName("7J53GbJ/OL+/nO^", "A?"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLScriptElementImpl0, locale0); // Undeclared exception! try { dOMNodePointer0.createAttribute((JXPathContext) null, qName0); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { // // Unknown namespace prefix: 7J53GbJ/OL+/nO^ // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test115() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.FRANCE; PSVIElementNSImpl pSVIElementNSImpl0 = new PSVIElementNSImpl(hTMLDocumentImpl0, "fD,8,)R\"fY)_x+U", "n3nH>LZ", "fD,8,)R\"fY)_x+U"); QName qName0 = new QName("LS"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(pSVIElementNSImpl0, locale0); // Undeclared exception! try { dOMNodePointer0.createAttribute((JXPathContext) null, qName0); fail("Expecting exception: IndexOutOfBoundsException"); } catch(IndexOutOfBoundsException e) { // // Index: 0, Size: 0 // verifyException("java.util.ArrayList", e); } } @Test(timeout = 4000) public void test116() throws Throwable { TextImpl textImpl0 = new TextImpl(); QName qName0 = new QName("LEGEND"); VariablePointer variablePointer0 = new VariablePointer(qName0); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(variablePointer0, textImpl0); // Undeclared exception! try { dOMNodePointer0.createAttribute((JXPathContext) null, qName0); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { // // Cannot create an attribute for path $LEGEND/text()[1]/@LEGEND, operation is not allowed for this type of node // verifyException("org.apache.commons.jxpath.ri.model.NodePointer", e); } } @Test(timeout = 4000) public void test117() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.KOREA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); dOMNodePointer0.setValue(""); assertEquals(1, dOMNodePointer0.getLength()); } @Test(timeout = 4000) public void test118() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLOptGroupElementImpl hTMLOptGroupElementImpl0 = new HTMLOptGroupElementImpl(hTMLDocumentImpl0, "HTMLInputElementImpl"); Locale locale0 = Locale.KOREA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLOptGroupElementImpl0, locale0); dOMNodePointer0.setValue((Object) null); assertFalse(dOMNodePointer0.isAttribute()); } @Test(timeout = 4000) public void test119() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.TAIWAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); WMLDocumentImpl wMLDocumentImpl0 = new WMLDocumentImpl((DocumentType) null); WMLDoElementImpl wMLDoElementImpl0 = new WMLDoElementImpl(wMLDocumentImpl0, "axis"); dOMNodePointer0.setValue(wMLDoElementImpl0); assertFalse(dOMNodePointer0.isAttribute()); } @Test(timeout = 4000) public void test120() throws Throwable { CoreDocumentImpl coreDocumentImpl0 = new CoreDocumentImpl(); EntityReferenceImpl entityReferenceImpl0 = new EntityReferenceImpl(coreDocumentImpl0, "]"); Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(entityReferenceImpl0, locale0, "!qBzmq@ N P'"); PSVIAttrNSImpl pSVIAttrNSImpl0 = new PSVIAttrNSImpl(coreDocumentImpl0, "]", "!qBzmq@ N P'", "]"); // Undeclared exception! try { dOMNodePointer0.setValue(pSVIAttrNSImpl0); fail("Expecting exception: DOMException"); } catch(DOMException e) { // // NO_MODIFICATION_ALLOWED_ERR: An attempt is made to modify an object where modifications are not allowed. // verifyException("org.apache.xerces.dom.ParentNode", e); } } @Test(timeout = 4000) public void test121() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.CANADA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); QName qName0 = new QName("{"); dOMNodePointer0.getNamespaceURI("http://www.w3.org/XML/1998/namespace"); // Undeclared exception! try { dOMNodePointer0.setValue(qName0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test122() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Text text0 = hTMLDocumentImpl0.createTextNode("L"); Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0, "G/4"); DOMNodePointer dOMNodePointer1 = new DOMNodePointer(text0, locale0, "Cannot remove root DOM node"); // Undeclared exception! try { dOMNodePointer1.setValue(dOMNodePointer0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test123() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.JAPAN; CDATASectionImpl cDATASectionImpl0 = new CDATASectionImpl(hTMLDocumentImpl0, "org.jdom.Element"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(cDATASectionImpl0, locale0, "org.jdom.Element"); WMLIElementImpl wMLIElementImpl0 = new WMLIElementImpl((WMLDocumentImpl) null, "5@jn-A*RC0;b[WWP"); dOMNodePointer0.setValue(wMLIElementImpl0); assertTrue(dOMNodePointer0.isActual()); } @Test(timeout = 4000) public void test124() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Text text0 = hTMLDocumentImpl0.createTextNode("}~?"); Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(text0, locale0, "}~?"); // Undeclared exception! try { dOMNodePointer0.setValue((Object) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.dom.DOMNodePointer", e); } } @Test(timeout = 4000) public void test125() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLLegendElementImpl hTMLLegendElementImpl0 = new HTMLLegendElementImpl(hTMLDocumentImpl0, "org.apache.commons.jxpath.PackageFunctions"); hTMLLegendElementImpl0.setAttribute("org.apache.commons.jxpath.PackageFunctions", "8lR"); String string0 = DOMNodePointer.findEnclosingAttribute(hTMLLegendElementImpl0, "org.apache.commons.jxpath.PackageFunctions"); assertEquals("8lR", string0); assertNotNull(string0); } @Test(timeout = 4000) public void test126() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLLegendElementImpl hTMLLegendElementImpl0 = new HTMLLegendElementImpl(hTMLDocumentImpl0, "org.apache.commons.jxpath.PackageFunctions"); String string0 = DOMNodePointer.findEnclosingAttribute(hTMLLegendElementImpl0, "org.apache.commons.jxpath.PackageFunctions"); assertNull(string0); } @Test(timeout = 4000) public void test127() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); ProcessingInstructionImpl processingInstructionImpl0 = new ProcessingInstructionImpl(hTMLDocumentImpl0, "xml", "xml"); Locale locale0 = Locale.CANADA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(processingInstructionImpl0, locale0, "s_>,9c!stP"); boolean boolean0 = dOMNodePointer0.isLanguage("5T4p.RDdw/\"r]|+?,("); assertFalse(boolean0); } @Test(timeout = 4000) public void test128() throws Throwable { PSVIDocumentImpl pSVIDocumentImpl0 = new PSVIDocumentImpl((DocumentType) null); Element element0 = pSVIDocumentImpl0.createElementNS("A?", "xmlns", "92e|).a3p2~U4I_"); Locale locale0 = Locale.PRC; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(element0, locale0); boolean boolean0 = dOMNodePointer0.isLeaf(); assertTrue(boolean0); } @Test(timeout = 4000) public void test129() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.SIMPLIFIED_CHINESE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); dOMNodePointer0.getNamespaceURI("Cannot compare pointers that do not belong to the same tree: '"); boolean boolean0 = dOMNodePointer0.isLeaf(); assertFalse(boolean0); } @Test(timeout = 4000) public void test130() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); QName qName0 = new QName("xml"); HTMLFormElementImpl hTMLFormElementImpl0 = new HTMLFormElementImpl(hTMLDocumentImpl0, "xml"); // Undeclared exception! try { NodePointer.newNodePointer(qName0, hTMLFormElementImpl0, (Locale) null); // fail("Expecting exception: NoClassDefFoundError"); // Unstable assertion } catch(NoClassDefFoundError e) { // // Could not initialize class org.apache.commons.jxpath.ri.JXPathContextReferenceImpl // verifyException("org.apache.commons.jxpath.ri.model.NodePointer", e); } } @Test(timeout = 4000) public void test131() throws Throwable { Locale locale0 = Locale.US; DocumentImpl documentImpl0 = new DocumentImpl(); DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl(documentImpl0, (String) null, (String) null, "zt<p64WH]cCV"); PSVIDocumentImpl pSVIDocumentImpl0 = new PSVIDocumentImpl(documentTypeImpl0); Attr attr0 = pSVIDocumentImpl0.createAttributeNS("zt<p64WH]cCV", "TABINDE9X", "<<unknown namespace>>"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(attr0, locale0); String string0 = dOMNodePointer0.getNamespaceURI("n3nH>LZ"); assertNull(string0); } @Test(timeout = 4000) public void test132() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.TAIWAN; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); dOMNodePointer0.getNamespaceURI("http://www.w3.org/XML/1998/namespace"); String string0 = dOMNodePointer0.getNamespaceURI("http://www.w3.org/XML/1998/namespace"); assertNull(string0); } @Test(timeout = 4000) public void test133() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Element element0 = hTMLDocumentImpl0.getDocumentElement(); Locale locale0 = Locale.PRC; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(element0, locale0); QName qName0 = new QName("xmlns", "http://www.w3.org/2000/xmlns/"); // Undeclared exception! try { dOMNodePointer0.createAttribute((JXPathContext) null, qName0); fail("Expecting exception: DOMException"); } catch(DOMException e) { // // NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces. // verifyException("org.apache.xerces.dom.CoreDocumentImpl", e); } } @Test(timeout = 4000) public void test134() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.SIMPLIFIED_CHINESE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); dOMNodePointer0.getNamespaceURI(""); String string0 = dOMNodePointer0.getDefaultNamespaceURI(); assertNull(string0); } @Test(timeout = 4000) public void test135() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = new Locale(""); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); String string0 = dOMNodePointer0.getNamespaceURI((String) null); assertNull(string0); } @Test(timeout = 4000) public void test136() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); ProcessingInstructionImpl processingInstructionImpl0 = new ProcessingInstructionImpl(hTMLDocumentImpl0, "xml", "xml"); Locale locale0 = Locale.CANADA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(processingInstructionImpl0, locale0, "s_>,9c!stP"); QName qName0 = dOMNodePointer0.getName(); assertEquals("xml", qName0.toString()); } @Test(timeout = 4000) public void test137() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); ProcessingInstructionImpl processingInstructionImpl0 = new ProcessingInstructionImpl(hTMLDocumentImpl0, "D", "D"); ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest("http://www.w3.org/XML/1998/namespace"); boolean boolean0 = DOMNodePointer.testNode((Node) processingInstructionImpl0, (NodeTest) processingInstructionTest0); assertFalse(boolean0); } @Test(timeout = 4000) public void test138() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); ProcessingInstructionImpl processingInstructionImpl0 = new ProcessingInstructionImpl(hTMLDocumentImpl0, "JW\"P+Blk{l{", "JW\"P+Blk{l{"); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(4); boolean boolean0 = DOMNodePointer.testNode((Node) processingInstructionImpl0, (NodeTest) nodeTypeTest0); assertTrue(boolean0); } @Test(timeout = 4000) public void test139() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(3); boolean boolean0 = DOMNodePointer.testNode((Node) hTMLDocumentImpl0, (NodeTest) nodeTypeTest0); assertFalse(boolean0); } @Test(timeout = 4000) public void test140() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Text text0 = hTMLDocumentImpl0.createTextNode(""); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(2); boolean boolean0 = DOMNodePointer.testNode((Node) text0, (NodeTest) nodeTypeTest0); assertTrue(boolean0); } @Test(timeout = 4000) public void test141() throws Throwable { NodeTypeTest nodeTypeTest0 = new NodeTypeTest(2); DeferredDocumentImpl deferredDocumentImpl0 = new DeferredDocumentImpl(true, true); CDATASection cDATASection0 = deferredDocumentImpl0.createCDATASection("http://www.w3.org/2000/xmlns/"); boolean boolean0 = DOMNodePointer.testNode((Node) cDATASection0, (NodeTest) nodeTypeTest0); assertTrue(boolean0); } @Test(timeout = 4000) public void test142() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); CommentImpl commentImpl0 = new CommentImpl(hTMLDocumentImpl0, (String) null); NodeTypeTest nodeTypeTest0 = new NodeTypeTest((-2110500553)); boolean boolean0 = DOMNodePointer.testNode((Node) commentImpl0, (NodeTest) nodeTypeTest0); assertFalse(boolean0); } @Test(timeout = 4000) public void test143() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(4); boolean boolean0 = DOMNodePointer.testNode((Node) hTMLDocumentImpl0, (NodeTest) nodeTypeTest0); assertFalse(boolean0); } @Test(timeout = 4000) public void test144() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(2); boolean boolean0 = DOMNodePointer.testNode((Node) hTMLDocumentImpl0, (NodeTest) nodeTypeTest0); assertFalse(boolean0); } @Test(timeout = 4000) public void test145() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); CommentImpl commentImpl0 = new CommentImpl(hTMLDocumentImpl0, "http://www.w3.org/XML/1998/namespace"); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(1); boolean boolean0 = DOMNodePointer.testNode((Node) commentImpl0, (NodeTest) nodeTypeTest0); assertTrue(boolean0); } @Test(timeout = 4000) public void test146() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); CommentImpl commentImpl0 = new CommentImpl(hTMLDocumentImpl0, ""); ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest(""); boolean boolean0 = DOMNodePointer.testNode((Node) commentImpl0, (NodeTest) processingInstructionTest0); assertFalse(boolean0); } @Test(timeout = 4000) public void test147() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLDirectoryElementImpl hTMLDirectoryElementImpl0 = new HTMLDirectoryElementImpl(hTMLDocumentImpl0, ""); Locale locale0 = Locale.SIMPLIFIED_CHINESE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDirectoryElementImpl0, locale0, ""); QName qName0 = dOMNodePointer0.getName(); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, "http://www.w3.org/XML/1998/namespace"); boolean boolean0 = dOMNodePointer0.testNode((NodeTest) nodeNameTest0); assertTrue(boolean0); assertEquals("", nodeNameTest0.toString()); } @Test(timeout = 4000) public void test148() throws Throwable { Locale locale0 = Locale.ROOT; HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLOptGroupElementImpl hTMLOptGroupElementImpl0 = new HTMLOptGroupElementImpl(hTMLDocumentImpl0, "//WWW.W3.ORG/2000/XMLNS/"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLOptGroupElementImpl0, locale0); HTMLScriptElementImpl hTMLScriptElementImpl0 = new HTMLScriptElementImpl(hTMLDocumentImpl0, "http://www.w3.org/2000/xmlns/"); QName qName0 = dOMNodePointer0.getName(); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, "-`StFrH<~6>3h\"_&uPf"); boolean boolean0 = DOMNodePointer.testNode((Node) hTMLScriptElementImpl0, (NodeTest) nodeNameTest0); assertEquals("//WWW.W3.ORG/2000/XMLNS/", nodeNameTest0.toString()); assertFalse(boolean0); } @Test(timeout = 4000) public void test149() throws Throwable { DeferredDocumentImpl deferredDocumentImpl0 = new DeferredDocumentImpl(false); DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl(deferredDocumentImpl0, "/text()"); WMLDocumentImpl wMLDocumentImpl0 = new WMLDocumentImpl(documentTypeImpl0); Element element0 = wMLDocumentImpl0.createElementNS("/text()", "/text()", "/text()"); QName qName0 = new QName("/text()"); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0); boolean boolean0 = DOMNodePointer.testNode((Node) element0, (NodeTest) nodeNameTest0); assertFalse(boolean0); } @Test(timeout = 4000) public void test150() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); HTMLMetaElementImpl hTMLMetaElementImpl0 = new HTMLMetaElementImpl(hTMLDocumentImpl0, ":Ro J}o^-"); QName qName0 = new QName("o|"); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0); boolean boolean0 = DOMNodePointer.testNode((Node) hTMLMetaElementImpl0, (NodeTest) nodeNameTest0); assertFalse(boolean0); } @Test(timeout = 4000) public void test151() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); QName qName0 = new QName("*"); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0); DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl(hTMLDocumentImpl0, "*", "*", "*"); WMLDocumentImpl wMLDocumentImpl0 = new WMLDocumentImpl(documentTypeImpl0); WMLBigElementImpl wMLBigElementImpl0 = new WMLBigElementImpl(wMLDocumentImpl0, "*"); boolean boolean0 = DOMNodePointer.testNode((Node) wMLBigElementImpl0, (NodeTest) nodeNameTest0); assertTrue(boolean0); } @Test(timeout = 4000) public void test152() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); QName qName0 = new QName("-(E:+Vtvh70d", "*"); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0); String string0 = "e\\u"; DocumentTypeImpl documentTypeImpl0 = new DocumentTypeImpl(hTMLDocumentImpl0, "*", "*", string0); WMLDocumentImpl wMLDocumentImpl0 = new WMLDocumentImpl(documentTypeImpl0); WMLBigElementImpl wMLBigElementImpl0 = new WMLBigElementImpl(wMLDocumentImpl0, string0); boolean boolean0 = DOMNodePointer.testNode((Node) wMLBigElementImpl0, (NodeTest) nodeNameTest0); assertTrue(boolean0); } @Test(timeout = 4000) public void test153() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); CDATASection cDATASection0 = hTMLDocumentImpl0.createCDATASection(""); QName qName0 = new QName("HTMLOptGroupElementImpl", "HTMLOptGroupElementImpl"); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, "HTMLOptGroupElementImpl"); boolean boolean0 = DOMNodePointer.testNode((Node) cDATASection0, (NodeTest) nodeNameTest0); assertFalse(boolean0); } @Test(timeout = 4000) public void test154() throws Throwable { NodeTypeTest nodeTypeTest0 = new NodeTypeTest(3); HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Comment comment0 = hTMLDocumentImpl0.createComment("xml"); boolean boolean0 = DOMNodePointer.testNode((Node) comment0, (NodeTest) nodeTypeTest0); assertTrue(boolean0); } @Test(timeout = 4000) public void test155() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.US; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(58); BasicVariables basicVariables0 = new BasicVariables(); VariablePointer variablePointer0 = new VariablePointer(basicVariables0, (QName) null); // Undeclared exception! try { dOMNodePointer0.childIterator(nodeTypeTest0, false, variablePointer0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.jxpath.ri.model.VariablePointer", e); } } @Test(timeout = 4000) public void test156() throws Throwable { PSVIDocumentImpl pSVIDocumentImpl0 = new PSVIDocumentImpl(); Locale locale0 = Locale.forLanguageTag("input"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(pSVIDocumentImpl0, locale0); boolean boolean0 = dOMNodePointer0.isActual(); assertTrue(boolean0); } @Test(timeout = 4000) public void test157() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Element element0 = hTMLDocumentImpl0.getDocumentElement(); Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(element0, locale0); dOMNodePointer0.hashCode(); } @Test(timeout = 4000) public void test158() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.CHINA; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0, (String) null); int int0 = dOMNodePointer0.getLength(); assertEquals(1, int0); } @Test(timeout = 4000) public void test159() throws Throwable { QName qName0 = new QName("HTMLInputElementImpl", "HTMLInputElementImpl"); VariablePointer variablePointer0 = new VariablePointer(qName0); HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Element element0 = hTMLDocumentImpl0.createElement("HTMLInputElementImpl"); DOMNodePointer dOMNodePointer0 = new DOMNodePointer(variablePointer0, element0); NodePointer nodePointer0 = dOMNodePointer0.namespacePointer(""); assertEquals(Integer.MIN_VALUE, NodePointer.WHOLE_COLLECTION); } @Test(timeout = 4000) public void test160() throws Throwable { PSVIDocumentImpl pSVIDocumentImpl0 = new PSVIDocumentImpl(); Element element0 = pSVIDocumentImpl0.createElementNS("", "", "Egr/X!"); Locale locale0 = Locale.UK; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(element0, locale0); boolean boolean0 = dOMNodePointer0.isCollection(); assertFalse(boolean0); } @Test(timeout = 4000) public void test161() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Locale locale0 = Locale.JAPANESE; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(hTMLDocumentImpl0, locale0); String string0 = dOMNodePointer0.getLanguage(); assertNull(string0); } @Test(timeout = 4000) public void test162() throws Throwable { HTMLDocumentImpl hTMLDocumentImpl0 = new HTMLDocumentImpl(); Element element0 = hTMLDocumentImpl0.getDocumentElement(); Locale locale0 = Locale.PRC; DOMNodePointer dOMNodePointer0 = new DOMNodePointer(element0, locale0); QName qName0 = new QName("xml", "xml"); NodePointer nodePointer0 = dOMNodePointer0.createAttribute((JXPathContext) null, qName0); int int0 = dOMNodePointer0.compareChildNodePointers(nodePointer0, dOMNodePointer0); assertEquals((-1), int0); } }
[ "pderakhshanfar@serg2.ewi.tudelft.nl" ]
pderakhshanfar@serg2.ewi.tudelft.nl
2ee0d9eb7fa68a2a0b95594dd933973eee12c705
8c23f10cc061c4fa00d107ee954f81da2dc1c134
/4.JavaCollections/src/com/javarush/task/task32/task3212/ServiceLocator.java
54bccda3077510cc646e0983c45be2e12cc402d5
[]
no_license
Alexxxov/JavaRush-2.0
202d2040248e428a3e7adf9b9ca44d2e54816e27
cbe4381545557db4cc1f4760f5cf3522f8da2d1b
refs/heads/master
2021-01-22T05:00:50.431455
2017-12-13T19:52:32
2017-12-13T19:52:32
81,605,956
0
0
null
null
null
null
UTF-8
Java
false
false
990
java
package com.javarush.task.task32.task3212; import com.javarush.task.task32.task3212.contex.InitialContext; import com.javarush.task.task32.task3212.service.Service; public class ServiceLocator { private static Cache cache; static { cache = new Cache(); } /** * First check the service object available in cache * If service object not available in cache do the lookup using * JNDI initial context and get the service object. Add it to * the cache for future use. * * @param jndiName The name of service object in context * @return Object mapped to name in context */ public static Service getService(String jndiName) { Service service = cache.getService(jndiName); if (service != null) return service; InitialContext context = new InitialContext(); Service service1 = (Service) context.lookup(jndiName); cache.addService(service1); return service1; } }
[ "aav94@yandex.ru" ]
aav94@yandex.ru
0e71364db5981b578c58c1189c5b5497545bfc37
d84421cad517512cfdf247358f9d1bb2424fd7a7
/app/src/main/java/com/std/screenadvertise/AdvertiseApi.java
ef6f2281443fe616f9e3cd8c456fb28f37dc392d
[]
no_license
shiki-ma/ScreenAdvertise
afdd7e620e6a7f3f1f115fb4600b5fc622dd5e7f
a50152a04cba87c8dbaf3a914b3cb598ff2998db
refs/heads/master
2020-03-30T02:59:33.518170
2016-07-25T03:20:16
2016-07-25T03:20:16
60,907,979
0
0
null
null
null
null
UTF-8
Java
false
false
541
java
package com.std.screenadvertise; /** * Created by Maik on 2016/6/9. */ public class AdvertiseApi { public static final String HTTP = "http://"; public static final String HEAERBEAT_URL = "getConnection"; public static final String CONFIG_URL = "getConfig"; public static final String MEDIA_URL = "getPlayList3"; public static final String UPDATE_URL = "submit"; public static final String URL_UPDATE = "http://61.129.70.157:8089/Telecom/getAppVersion"; public static final String APK_NAME = "budweiser.apk"; }
[ "Maik@maqingpingdeMacBook-Air.local" ]
Maik@maqingpingdeMacBook-Air.local
39200a5d63a5c335ef490bd5d92447091d205f74
44f32201be3c8e610b5c72a8ae487d64056d68e5
/.history/demo/test0325/src/main/java/com/hello/test0325/web/WebSecurityConfig_20200327160241.java
640175f3eda53550c5680134aeaea0328c4fac80
[]
no_license
hisouske/test0325
19e421ce5019a949e5a7887d863b1b997a9d5a3b
8efd4169cf6e6d2b70d32a991e3747174be9c7e9
refs/heads/master
2021-05-16T20:28:30.546404
2020-04-22T06:39:58
2020-04-22T06:39:58
250,457,284
0
0
null
null
null
null
UTF-8
Java
false
false
3,555
java
package com.hello.test0325.web; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.security.provisioning.InMemoryUserDetailsManager; @Configuration @EnableWebSecurity //Spring Security 설정한 클래스 public class WebSecurityConfig extends WebSecurityConfigurerAdapter /** WebSecurityConfig instence 생성 하기 위한 클래스 **/{ @Autowired AuthProvider authProvider; public void configAuthentication(AuthenticationManagerBuilder auth) throws Exception { //모든 인증 Manager auth.userDetailsService(userservice).passwordEncoder(passwordEncoder()); auth.eraseCredentials(false); } private UserService userservice; @Bean // 비밀번호 암호화 객체 public PasswordEncoder passwordEncoder(){ return new BCryptPasswordEncoder(); } @Override protected void configure(HttpSecurity http)/** HTTP 요청에 대한 웹 기반 보안 구성 */ throws Exception { http .authorizeRequests() //페이지 접근 권한 설정.사용자 인증이 된 요청에 대해서만 요청을 허용한다. .antMatchers("/", "/home","/join","/login/*").permitAll() // home 경로 권한없이 접근 가능 .anyRequest().authenticated() //인증된 사용자만 접근 가능 하도록 설정 .and() .formLogin() //로그인 설정, httpSession 기본적 이용. 사용자는 폼기반 로그인으로 인증 할 수 있습니다. .loginPage("/login") //커스텀 로그인 폼, action 경로랑 일치 해야함 .failureUrl("/login?error") //로그인 실패시 이동 하는 페이지 설정 .defaultSuccessUrl("/home",true) // 로그인 성공시 이동 하는 페이지 설정 .permitAll() //로그인 페이지 모든 권한 설정 .and() .logout() //로그아웃 설정 .permitAll() //update 예정 // 로그인 프로세스가 진행될 provider .and() .httpBasic();//사용자는 HTTP기반 인증으로 인증 할 수 있습니다. // .authenticationProvider(authProvider); System.out.println("++++++//////"+http.formLogin()); System.out.println(authProvider); System.out.println(http); } // @Bean // @Override // public UserDetailsService userDetailsService() { // UserDetails user = // User.withDefaultPasswordEncoder() // .username("user") // .password("password") // .roles("USER") // .build(); // System.out.println("websecurityconfig : userpassword : "+user.getPassword()); // return new InMemoryUserDetailsManager(user); // } //회원가입시 필요 // @Override // protected void configure(AuthenticationManagerBuilder auth)throws Exception{ // auth.eraseCredentials(false).userDetailsService(userservice).passwordEncoder(passwordEnoder()); // } }
[ "zzang22yn@naver.com" ]
zzang22yn@naver.com
fa4af2078f19d0a17d78a5ec71dbc2b5b8849293
cbe8720d0a3b546cc4d7315607258013b8276e86
/Spiral Matrix2.java
b1235c66ced8bd6d27ec253ba3cd3bbb384dd169
[]
no_license
countthree/leetcode
93c8017322a6cff8fc8c572f433f4581e114ee87
8bd3544f6cef78bb05dba689b2c638595deb681f
refs/heads/master
2021-01-20T11:24:15.831723
2013-10-14T19:01:08
2013-10-14T19:01:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
977
java
public class Solution { public int[][] generateMatrix(int n) { // Start typing your Java solution below // DO NOT write main() function int [][]matrix = new int[n][n]; int w = n, next = 1; int layer = 0; while (w > 0) { next = addLayer(matrix, layer, w, next); ++layer; w = n - 2 * layer; } return matrix; } public int addLayer(int [][]matrix, int layer, int w, int val) { for (int i = 0; i < w; ++i) matrix[layer][layer+i] = val++; for (int i = 1; i < w-1; ++i) matrix[layer+i][layer+w-1] = val++; if (w != 1) { for (int i = w-1; i >= 0; --i) matrix[layer+w-1][layer+i] = val++; for (int i = w-2; i >= 1; --i) matrix[layer+i][layer] = val++; } return val; } }
[ "omega115210@gmail.com" ]
omega115210@gmail.com
6dccba3ac9643097b6f43d90bd461bd5bb42c246
c4b56742efe25b0fb6ab64b4445351adc0493ffd
/ui/castafioreframework/src/main/java/org/castafiore/utils/CookieUtil.java
822abafa48d06ff405968165bfe3db550eb9cba9
[]
no_license
nuving/castafioreframework
459332ad67554617445b3476471c89803ce5b0ab
775a4c535d7910a7335aa8cddebcd1b7c95c5e13
refs/heads/master
2021-01-15T19:22:25.042926
2013-09-08T16:43:36
2013-09-08T16:43:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,206
java
/* * Copyright (C) 2007-2010 Castafiore * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Affero 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/>. */ package org.castafiore.utils; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; public class CookieUtil { public static String getCookieValue(HttpServletRequest request, String cookieName, String defaultValue) { Cookie[] cookies = request.getCookies(); for (int i = 0; i < cookies.length; i++) { Cookie cookie = cookies[i]; if (cookieName.equals(cookie.getName())) return (cookie.getValue()); } return (defaultValue); } }
[ "kureem@gmail.com" ]
kureem@gmail.com
221eb01b7dab8457663782a9cbdb4e331902b301
04fe245087a3c212a11c761cc5da1d6c46de0a24
/restaurant/src/views/MainPanel.java
ff812c4823394ccdffbb75889ae3994ce73f85b2
[]
no_license
giacomobartoli/restaurant-ordering-system
b9f9c37e12b71d7c175f1f46f0a20a2c3c309950
255fd7538dbc73b61569e11112a457a94f89d18a
refs/heads/master
2021-01-21T16:54:05.601617
2017-05-21T21:00:11
2017-05-21T21:00:11
91,915,336
0
0
null
null
null
null
UTF-8
Java
false
false
2,882
java
package views; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JDialog; import Model.Comanda; import Model.Portata; import controller.ComandaTable; import controller.PortataTable; import controller.SharedClass; public class MainPanel extends AbstractPanel implements ActionListener { private static final long serialVersionUID = 1L; private JComboBox<String> comboBox; final private JButton loginButton; public MainPanel(final String panelName,final MainFrame mainFrame){ //pannello del login super(panelName,mainFrame); mainFrame.setTitleText("Ristorante"); this.setFrameAttributes(); this.comboBox=new JComboBox<String>(new String[]{"Sala","Cucina","Bar","Cassa","Prenotazione","Impostazioni"}); this.comboBox.setBounds(45, 20, 140, 30); this.add(this.comboBox); loginButton = new JButton("Entra"); loginButton.setBounds(215, 20, 140, 30); this.add(loginButton); this.mainFrame.getRootPane().setDefaultButton(loginButton); loginButton.addActionListener(this); } @Override public void actionPerformed(final ActionEvent e) { int indice= this.comboBox.getSelectedIndex(); this.caricaPannello(indice); } @Override public final void setFrameAttributes() { this.mainFrame.setJMenuBar(null); this.mainFrame.setSize(400,100); } private void caricaPannello(int i){ switch(i){ case 0: // this.mainFrame.removePanel("sala"); new DialogSala(this.mainFrame); break; case 1: if(this.controlloCucinaBar("cucina")){ this.mainFrame.removePanel("cucina"); }else{ new Dialog("Non ci sono comande"); } break; case 2: if(this.controlloCucinaBar("bar")){ this.mainFrame.removePanel("bar"); }else{ new Dialog("Non ci sono comande"); } break; case 3: this.mainFrame.removePanel("cassa"); break; case 4: this.mainFrame.removePanel("prenotazione"); break; case 5: new DialogImpostazioni(this.mainFrame); //this.mainFrame.removePanel("impostazioni"); break; } } private boolean controlloCucinaBar(String s){ ArrayList<Comanda> listaComande=new ComandaTable().caricaComande(SharedClass.getSingleton().getConnection()) ; ArrayList<Comanda> temp=new ArrayList<>(); if(listaComande==null){ return false; } for(Comanda c:listaComande){ Portata p=new PortataTable().cercaPortata(c.getCodicePortata(), SharedClass.getSingleton().getConnection()); if(s.equals("cucina")){ if(!p.getTipo().equals("Bevanda")){ temp.add(c); } } if(s.equals("bar")){ if(p.getTipo().equals("Bevanda")){ temp.add(c); } } } if(temp.size()!=0){ return true; } return false; } }
[ "giacomo.bartoli3@studio.unibo.it" ]
giacomo.bartoli3@studio.unibo.it
063527e26faab45a77fce64161b05393879cd456
13062ec55d5be44dac0bf0d904d7663a46613939
/app/src/main/java/com/univbechar/pfe/messervices/ShowMessage2.java
ca5e7a301e9f2d5c4cdc3c19f3d68cb8486b8812
[]
no_license
dhiya15/MesServices
f885f0cac94a6eb18254d8007cfd17209330baa6
78bc91c73fa11087da865ff10eb0111cfda368b2
refs/heads/master
2023-01-04T22:22:33.867154
2020-11-01T14:35:30
2020-11-01T14:35:30
309,127,771
0
0
null
null
null
null
UTF-8
Java
false
false
681
java
package com.univbechar.pfe.messervices; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.TextView; public class ShowMessage2 extends AppCompatActivity { TextView msg; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_show_message2); msg = findViewById(R.id.textView17); Intent intent = getIntent(); if(intent.getStringExtra("msg") != null) { String msg2 = intent.getStringExtra("msg"); msg.setText("Message : " + msg2); } } }
[ "47550535+dhiya15@users.noreply.github.com" ]
47550535+dhiya15@users.noreply.github.com
37a5a9d30de00884f5d3093e3bd1e7c842e443e3
6a0e82d471b16a89c330eadc7778d040e60508c2
/src/main/java/org/joda/beans/impl/direct/DirectMetaPropertyMap.java
5649fd0c287ca6bd3022c726b8a622a89913efa1
[ "Apache-2.0" ]
permissive
luiz158/joda-beans
11f880ba9242663ff0e673d4bb9584ad31cd9179
570b8267bebc7eae898f9c53f9d684420e0e5d0d
refs/heads/master
2021-04-09T14:00:25.587520
2012-12-10T19:08:54
2012-12-10T19:08:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
8,373
java
/* * Copyright 2001-2012 Stephen Colebourne * * 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 org.joda.beans.impl.direct; import java.util.AbstractCollection; import java.util.AbstractMap; import java.util.AbstractSet; import java.util.Arrays; import java.util.Collection; import java.util.Iterator; import java.util.Map; import java.util.Set; import org.joda.beans.MetaProperty; /** * A map of name to meta-property designed for use by {@code DirectBean}. * <p> * This meta-property map implementation is designed primarily for code-generation. * It stores a reference to the meta-bean and the meta-properties. * The meta-properties are accessed using {@link DirectMetaBean#metaPropertyGet(String)}. * <p> * This class is immutable and thread-safe. * * @author Stephen Colebourne */ @SuppressWarnings("rawtypes") public final class DirectMetaPropertyMap implements Map<String, MetaProperty<?>> { /** The meta-bean. */ private final DirectMetaBean metaBean; /** The property names. */ private final Set<String> keys; /** The meta-properties. */ private final Collection<MetaProperty<?>> values; /** The map entries. */ private final Set<Entry<String, MetaProperty<?>>> entries; /** * Constructor. * * @param metaBean the meta-bean, not null * @param parent the superclass parent, may be null * @param propertyNames the property names, not null */ @SuppressWarnings("unchecked") public DirectMetaPropertyMap(final DirectMetaBean metaBean, DirectMetaPropertyMap parent, String... propertyNames) { if (metaBean == null) { throw new NullPointerException("MetaBean must not be null"); } this.metaBean = metaBean; int parentSize = 0; final Entry<String, MetaProperty<?>>[] metaProperties; if (parent != null) { parentSize = parent.size(); metaProperties = Arrays.copyOf(((Entries) parent.entries).metaProperties, parentSize + propertyNames.length); } else { metaProperties = new Entry[propertyNames.length]; } for (int i = 0 ; i < propertyNames.length; i++) { metaProperties[i + parentSize] = new AbstractMap.SimpleImmutableEntry(propertyNames[i], metaBean.metaPropertyGet(propertyNames[i])); } keys = new Keys(metaProperties); values = new Values(metaProperties); entries = new Entries(metaProperties); } //----------------------------------------------------------------------- @Override public int size() { return keys.size(); } @Override public boolean isEmpty() { return size() == 0; } @SuppressWarnings("unchecked") @Override public MetaProperty<Object> get(Object propertyName) { if (propertyName instanceof String) { return (MetaProperty<Object>) metaBean.metaPropertyGet((String) propertyName); } return null; } @Override public boolean containsKey(Object propertyName) { return propertyName instanceof String && metaBean.metaPropertyGet(propertyName.toString()) != null; } @Override public boolean containsValue(Object value) { return value instanceof MetaProperty && metaBean.metaPropertyGet(((MetaProperty<?>) value).name()) != null; } //----------------------------------------------------------------------- @Override public MetaProperty<?> put(String key, MetaProperty<?> value) { throw new UnsupportedOperationException("DirectBean meta-property map cannot be modified"); } @Override public MetaProperty<?> remove(Object key) { throw new UnsupportedOperationException("DirectBean meta-property map cannot be modified"); } @Override public void putAll(Map<? extends String, ? extends MetaProperty<?>> m) { throw new UnsupportedOperationException("DirectBean meta-property map cannot be modified"); } @Override public void clear() { throw new UnsupportedOperationException("DirectBean meta-property map cannot be modified"); } //----------------------------------------------------------------------- @Override public Set<String> keySet() { return keys; } @Override public Collection<MetaProperty<?>> values() { return values; } @Override public Set<Entry<String, MetaProperty<?>>> entrySet() { return entries; } //----------------------------------------------------------------------- /** * Collection implementation for the keys. */ private static final class Keys extends AbstractSet<String> { private final Entry<String, MetaProperty<?>>[] metaProperties; private Keys(Entry<String, MetaProperty<?>>[] metaProperties) { this.metaProperties = metaProperties; } @Override public Iterator<String> iterator() { return new Iterator<String>() { int index; @Override public boolean hasNext() { return index < metaProperties.length; } @Override public String next() { return metaProperties[index++].getKey(); } @Override public void remove() { throw new UnsupportedOperationException(); } }; } @Override public int size() { return metaProperties.length; } } /** * Collection implementation for the values. */ private static final class Values extends AbstractCollection<MetaProperty<?>> { private final Entry<String, MetaProperty<?>>[] metaProperties; private Values(Entry<String, MetaProperty<?>>[] metaProperties) { this.metaProperties = metaProperties; } @Override public Iterator<MetaProperty<?>> iterator() { return new Iterator<MetaProperty<?>>() { int index; @Override public boolean hasNext() { return index < metaProperties.length; } @Override public MetaProperty<?> next() { return metaProperties[index++].getValue(); } @Override public void remove() { throw new UnsupportedOperationException(); } }; } @Override public int size() { return metaProperties.length; } } /** * Collection implementation for the entries. */ private static final class Entries extends AbstractSet<Entry<String, MetaProperty<?>>> { private final Entry<String, MetaProperty<?>>[] metaProperties; private Entries(Entry<String, MetaProperty<?>>[] metaProperties) { this.metaProperties = metaProperties; } @Override public Iterator<Entry<String, MetaProperty<?>>> iterator() { return new Iterator<Entry<String, MetaProperty<?>>>() { int index; @Override public boolean hasNext() { return index < metaProperties.length; } @Override public Entry<String, MetaProperty<?>> next() { return metaProperties[index++]; } @Override public void remove() { throw new UnsupportedOperationException(); } }; } @Override public int size() { return metaProperties.length; } } }
[ "scolebourne@joda.org" ]
scolebourne@joda.org
9f22de95556fd5b0ac3c35dbcc2ee28fc18b4db3
d49ac5010fda0fa30ccf4da2fffae60da50aa4a4
/src/org/framework/core/udp/UdpServerNetty.java
657bcbc6153282ee8b40c9266c478c218665f4d2
[]
no_license
LaneMa/nhjkpt
624edc93afaba3d86f307d4f4c8dc70962501203
7c598f4016ce84f70bc3f7c95baf3a690e07978c
refs/heads/master
2021-09-11T17:48:21.843976
2018-04-10T14:05:01
2018-04-10T14:05:01
117,777,725
0
2
null
null
null
null
UTF-8
Java
false
false
2,860
java
package org.framework.core.udp; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.util.concurrent.Executors; import org.apache.log4j.Logger; import org.framework.core.util.ResourceUtil; import org.jboss.netty.bootstrap.ConnectionlessBootstrap; import org.jboss.netty.channel.Channel; import org.jboss.netty.channel.ChannelFutureListener; import org.jboss.netty.channel.ChannelPipeline; import org.jboss.netty.channel.ChannelPipelineFactory; import org.jboss.netty.channel.DefaultChannelPipeline; import org.jboss.netty.channel.socket.DatagramChannelFactory; import org.jboss.netty.channel.socket.nio.NioDatagramChannelFactory; import org.jboss.netty.handler.codec.string.StringDecoder; import org.jboss.netty.handler.codec.string.StringEncoder; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @Component("udpServerNetty") public class UdpServerNetty { @Autowired private ReceiverHandler receiverHandler; private Channel channel; private static final Logger logger = Logger.getLogger(UdpServerNetty.class .getName()); public void start() { DatagramChannelFactory udpChannelFactory = new NioDatagramChannelFactory( Executors.newCachedThreadPool()); ConnectionlessBootstrap bootstrap = new ConnectionlessBootstrap(udpChannelFactory); bootstrap.setOption("reuseAddress", false); bootstrap.setOption("child.reuseAddress", false); bootstrap.setOption("readBufferSize", 1024); bootstrap.setOption("writeBufferSize", 1024); bootstrap.setPipelineFactory(new ChannelPipelineFactory() { @Override public ChannelPipeline getPipeline() throws Exception { ChannelPipeline pipleline = new DefaultChannelPipeline(); pipleline.addLast("encode", new StringEncoder()); pipleline.addLast("decode", new StringDecoder()); pipleline.addLast("handler", receiverHandler); return pipleline; } }); int udpPort=Integer.valueOf(ResourceUtil.getConfigByName("udpPort")); SocketAddress serverAddress = new InetSocketAddress(udpPort); this.channel = bootstrap.bind(serverAddress); logger.info("服务器启动 端口: " + serverAddress); } public void restart() { this.stop(); this.start(); } public void stop() { if (this.channel != null) { this.channel.close().addListener(ChannelFutureListener.CLOSE); } } }
[ "lane0217@hotmail.com" ]
lane0217@hotmail.com
fdce670a53c3477d25b58c3aed9aeca9a59972bd
fa8aefc66af2bf593cf8572a87c4a0ebdda2dae6
/src/main/java/com/upgrad/TechnicalBlogApplication/controller/UserController.java
25a7817987810a0dd88543b7abc70f03829a095b
[]
no_license
2710ankit/BlogpostApplication
7582b5aa199708fb0f3bcee7e2111546c493d6e8
eb8d1a7b81577e6e8ee7473ab0a55c834304ff99
refs/heads/master
2023-03-17T03:59:45.592062
2021-03-07T07:40:43
2021-03-07T07:40:43
339,985,889
0
0
null
null
null
null
UTF-8
Java
false
false
1,506
java
package com.upgrad.TechnicalBlogApplication.controller; import com.upgrad.TechnicalBlogApplication.model.User; import com.upgrad.TechnicalBlogApplication.service.UserService; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @Controller public class UserController { private UserService userService = new UserService(); // GET Request to "/users/login @RequestMapping(method = RequestMethod.GET, value = "/users/login") public String login(Model model) { model.addAttribute("user", new User()); return "users/login"; } // POST Request to "/users/login" @RequestMapping(method = RequestMethod.POST, value = "/users/login") public String loginUser(User user) { // check if the credentials match if(userService.login(user)) { return "redirect:/posts"; } else { return "users/login"; } } @RequestMapping(method = RequestMethod.GET, value = "/users/registration") public String registration(){ return "/users/registration"; } @RequestMapping(method = RequestMethod.POST, value="/users/registration") public String userRegistration(User user){ return "redirect:/users/login"; } @RequestMapping("/users/logout") public String userLogout(Model model){ return "redirect:/"; } }
[ "aggarwal12321@gmail.com" ]
aggarwal12321@gmail.com
e82918b4fc88af8a9a8ac55e938465dcaac12519
bab3fe2a1a15b08785e89733fda310f9d8bac1cb
/txframework/src/test/java/org/jboss/narayana/compensations/functional/compensationManager/CompensationManagerTest.java
636fa6c0f9931015ab7e3cf0c9b47eddd6b97c7d
[]
no_license
dmlloyd/narayana
e7f1b84bb107baf20d0b448a445f9cd9a7735bd9
2371d2ff713a9224ce4dc6e09711cd4dd93eb5e7
refs/heads/master
2023-07-22T20:30:42.730284
2013-06-28T14:55:14
2013-06-28T14:55:19
11,094,632
0
0
null
null
null
null
UTF-8
Java
false
false
8,060
java
/* * JBoss, Home of Professional Open Source. * Copyright 2013, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.jboss.narayana.compensations.functional.compensationManager; import com.arjuna.mw.wst11.UserBusinessActivity; import com.arjuna.mw.wst11.UserBusinessActivityFactory; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit.Arquillian; import org.jboss.jbossts.xts.bytemanSupport.BMScript; import org.jboss.jbossts.xts.bytemanSupport.participantCompletion.ParticipantCompletionCoordinatorRules; import org.jboss.narayana.compensations.api.TransactionCompensatedException; import org.jboss.narayana.compensations.functional.common.DummyCompensationHandler1; import org.jboss.narayana.compensations.functional.common.DummyCompensationHandler2; import org.jboss.narayana.compensations.functional.common.DummyConfirmationHandler1; import org.jboss.narayana.compensations.functional.common.DummyConfirmationHandler2; import org.jboss.narayana.compensations.functional.common.DummyTransactionLoggedHandler1; import org.jboss.narayana.compensations.functional.common.DummyTransactionLoggedHandler2; import org.jboss.narayana.compensations.functional.common.MyRuntimeException; import org.jboss.shrinkwrap.api.ArchivePaths; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.jboss.shrinkwrap.api.spec.JavaArchive; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import javax.inject.Inject; /** * @author paul.robinson@redhat.com 22/03/2013 */ @RunWith(Arquillian.class) public class CompensationManagerTest { @Inject CompensationManagerService compensationManagerService; UserBusinessActivity uba = UserBusinessActivityFactory.userBusinessActivity(); @Deployment public static JavaArchive createTestArchive() { JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "test.jar") .addPackages(true, "org.jboss.narayana.compensations.functional") .addClass(ParticipantCompletionCoordinatorRules.class) .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml") .addAsManifestResource("META-INF/services/javax.enterprise.inject.spi.Extension", "services/javax.enterprise.inject.spi.Extension"); archive.delete(ArchivePaths.create("META-INF/MANIFEST.MF")); String ManifestMF = "Manifest-Version: 1.0\n" + "Dependencies: org.jboss.narayana.txframework,org.jboss.xts\n"; archive.setManifest(new StringAsset(ManifestMF)); return archive; } @BeforeClass() public static void submitBytemanScript() throws Exception { BMScript.submit(ParticipantCompletionCoordinatorRules.RESOURCE_PATH); } @AfterClass() public static void removeBytemanScript() { BMScript.remove(ParticipantCompletionCoordinatorRules.RESOURCE_PATH); } @After public void tearDown() { try { uba.close(); } catch (Exception e) { // do nothing } } @Before public void resetParticipants() { DummyCompensationHandler1.reset(); DummyConfirmationHandler1.reset(); DummyTransactionLoggedHandler1.reset(); DummyCompensationHandler2.reset(); DummyConfirmationHandler2.reset(); DummyTransactionLoggedHandler2.reset(); } @Test public void testSimple() throws Exception { try { compensationManagerService.doWork(); Assert.fail("Expected TransactionRolledBackException to be thrown, but it was not"); } catch (MyRuntimeException e) { //expected } Assert.assertEquals(false, DummyCompensationHandler1.getCalled()); Assert.assertEquals(false, DummyConfirmationHandler1.getCalled()); Assert.assertEquals(false, DummyTransactionLoggedHandler1.getCalled()); } @Test public void testNested() throws Exception { ParticipantCompletionCoordinatorRules.setParticipantCount(3); try { compensationManagerService.doWorkRecursively(); Assert.fail("Expected TransactionRolledBackException to be thrown, but it was not"); } catch (TransactionCompensatedException e) { //expected } Assert.assertEquals(true, DummyCompensationHandler1.getCalled()); Assert.assertEquals(false, DummyConfirmationHandler1.getCalled()); Assert.assertEquals(true, DummyTransactionLoggedHandler1.getCalled()); Assert.assertEquals(false, DummyCompensationHandler2.getCalled()); Assert.assertEquals(false, DummyConfirmationHandler2.getCalled()); Assert.assertEquals(false, DummyTransactionLoggedHandler2.getCalled()); } @Test public void testSimpleCompensateIfFail() throws Exception { try { compensationManagerService.doWorkCompensateIfFail(); Assert.fail("Expected TransactionRolledBackException to be thrown, but it was not"); } catch (MyRuntimeException e) { //expected } Assert.assertEquals(false, DummyCompensationHandler1.getCalled()); Assert.assertEquals(false, DummyConfirmationHandler1.getCalled()); Assert.assertEquals(false, DummyTransactionLoggedHandler1.getCalled()); } @Test public void testNestedCancelOnFailureWithFailure() throws Exception { ParticipantCompletionCoordinatorRules.setParticipantCount(3); try { compensationManagerService.doWorkRecursivelyCompensateIfFail(true); Assert.fail("Expected TransactionRolledBackException to be thrown, but it was not"); } catch (TransactionCompensatedException e) { //expected } Assert.assertEquals(true, DummyCompensationHandler1.getCalled()); Assert.assertEquals(false, DummyConfirmationHandler1.getCalled()); Assert.assertEquals(true, DummyTransactionLoggedHandler1.getCalled()); Assert.assertEquals(false, DummyCompensationHandler2.getCalled()); Assert.assertEquals(false, DummyConfirmationHandler2.getCalled()); Assert.assertEquals(false, DummyTransactionLoggedHandler2.getCalled()); } @Test public void testNestedCancelOnFailureWithNoFailure() throws Exception { ParticipantCompletionCoordinatorRules.setParticipantCount(6); compensationManagerService.doWorkRecursivelyCompensateIfFail(false); Assert.assertEquals(false, DummyCompensationHandler1.getCalled()); Assert.assertEquals(true, DummyConfirmationHandler1.getCalled()); Assert.assertEquals(true, DummyTransactionLoggedHandler1.getCalled()); Assert.assertEquals(false, DummyCompensationHandler2.getCalled()); Assert.assertEquals(true, DummyConfirmationHandler2.getCalled()); Assert.assertEquals(true, DummyTransactionLoggedHandler2.getCalled()); } }
[ "paul.robinson@redhat.com" ]
paul.robinson@redhat.com
4eb51ea45c7b622901787324a3c9f3851c912e9d
01563cf663b502102e22b73bd3ff6a16dde701d0
/src/main/java/com/jk51/modules/trades/mapper/MemberMapper.java
c23ac7b1d52ac7d46f0ece2f2d969c9441cd90b2
[]
no_license
tomzhang/springTestB
17cc2d866723d7200302b068a30239732a9cda26
af4bd2d5cc90d44f0b786fb115577a811d1eaac7
refs/heads/master
2020-05-02T04:35:50.729767
2018-10-24T02:24:35
2018-10-24T02:24:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,197
java
package com.jk51.modules.trades.mapper; import com.jk51.model.order.Member; import com.jk51.model.order.YBMember; import com.jk51.model.packageEntity.StoreAdminCloseIndex; import com.jk51.modules.appInterface.util.MemberInfo; import org.apache.ibatis.annotations.MapKey; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.*; /** * 版权所有(C) 2017 上海伍壹健康科技有限公司 * 描述: * 作者: hulan * 创建日期: 2017-02-20 * 修改记录: */ @Mapper public interface MemberMapper { void updateIntegral(Member member); Member getMember(int siteId, int buyerId); List<StoreAdminCloseIndex> findStoreAdminCloseIndex(@Param("now") Date now, @Param("before") Date before); Member findUserAndPasswordByMembersId(Integer siteId, String mobile, String passwd); /** * 通过手机号查找会员 * * @param siteId * @param mobile * @return */ Member findMobileById(Integer siteId, String mobile); //查询所有会员用于发放优惠券 List<Member> findAllMember(Integer siteId); List<Member> findMembersByMemberIds(@Param("siteId") Integer siteId, @Param("ids") List<String> ids); //查询所有会员用于发放优惠券 List<Member> findAllMemberByPage(@Param("siteId") int siteId, @Param("pageNum") int pageNum, @Param(value = "pageNo") int pageNo); void updateVipMember(@Param(value = "vipMemberAddSelectParams") Member member); Member getMemberByMemberId(int siteId, int memberId); Member getMemberByOpenId(@Param("siteId") int siteId, @Param("openId") String openId); Integer saveMemberInfo(@Param("member") Member member); Integer insertYbUser(@Param("member") YBMember member); YBMember selectYbMemberByPhone(String phone); Member selectByMobileAndSiteId(@Param("mobile") String mobile, @Param("siteId") int siteId); Member selectByMemberIdAndSiteId(@Param("memberId") String memberId, @Param("siteId") int siteId); int del(@Param("id") Integer id); Member getMemberById(@Param("member_id") String id); int update(@Param("member") Member membert); Map checkMember(Map m); int updatePassword(Map m); int updatePasswordByMobile(Map m); //-----------------------以下是web中迁移过来的方法 HashMap queryMemberInfoByPhoneNum(@Param("phone") String phone, @Param("site_id") Integer site_id); Integer updateMemberInfo(Map<String, Object> params); Integer updateMember(Map<String, Object> params); Integer queryMemberExist(@Param("phone") String phone, @Param("siteId") Integer siteId); Member queryMember(@Param("phone") String phone, @Param("siteId") Integer siteId); Map queryBStoreAdminExt(@Param("site_id") int site_id, @Param("store_user_id") int store_user_id); Integer saveMember(Map<String, Object> parameterMap); Integer saveMemberInfoMap(Map<String, Object> parameterMap); Map<String, Object> getIntegrateByBuyerId(@Param("buyerId") String buyerId, @Param("siteId") String siteId); Integer saveYbMember(Map<String, Object> parameterMap); List<HashMap> findBTriggerByTriggerCode(Integer site_id); Map queryGoodCatNameByCatId(@Param("siteId") int siteId, @Param("catId") String catId); Integer setCheckin(@Param("siteId") Integer siteId, @Param("memberId") Integer memberId, @Param("checkinNum") Integer checkinNum); Map<String, Object> getCheckin(@Param("siteId") Integer siteId, @Param("memberId") Integer memberId); //-----统计 List<Map<String, Object>> selectMemberCountBydays(@Param("siteId") Integer siteId, @Param("start") String startTime, @Param("end") String endTime); List<Map<String, Object>> getPullNewCount(@Param("siteId") Integer siteId, @Param("nowDay") String nowDay); List<Member> queryMemberListForCouponActive(@Param("siteId") Integer siteId, @Param("memberlist") Set paramSet); //-----查询 @MapKey("phone") Map<String, Map<String, Object>> queryForImportByPhoneAndSiteId(@Param("phoneList") List<String> phoneList, @Param("siteId") Integer siteId); String findMobilesByMemberIds(@Param("siteId") Integer siteId, @Param("ids") List<String> ids); List<Map<String, Object>> queryMembersInfoByMemberIds(@Param("siteId") Integer siteId, @Param("ids") List<String> ids); List<Map<String, Object>> selectMemberInfoList(Map<String, Object> params); int updateOpenId(@Param("member") Member membert); String findMobileByIdByTime(@Param("siteId") Integer siteId, @Param("mobile") String mobile); //查询APP会员详情 Map<String,Object> queryMemberInfoByBuyerId(@Param("buyerId") Integer buyerId,@Param("siteId") Integer siteId); Map<String,Object> getMembersLngAndLat(@Param("siteId")Integer siteId, @Param("memberId")Integer memberId); Map<String,Object> calculateDistance(Map<String,Object> map); List<String> queryMemberId(@Param("siteId") Integer siteId); MemberInfo getMemberByMobile(@Param("siteId") Integer siteId, @Param("mobile") String mobile); //APP查询会员列表 List<Map<String,Object>> queryCustomerByInfo(Map<String, Object> parameterMap); List<Map<String,Object>> queryCustomerByDrug(Map<String, Object> parameterMap); //根据标签查询会员列表 List<Map<String,Object>> getCustomerByLabel(Map<String, Object> parameterMap); String getMobileByTradesId(@Param("siteId") Integer siteId, @Param("tradesId") String tradesId); //根据OpenId查询会员信息 Map<String,Object> getMemberInfoByOpenId(Map<String, Object> parameterMap); Map<String,Object> queryMemInfo(@Param("openId") String openId, @Param("siteId") Integer siteId); //保存用户注册数据 int inserUserInfoLog(Map<String, Object> parameterMap); //保存检查结果 int saveCheckLog(Map<String, Object> parameterMap); Map<String,Object> queryBySiteIdAndPhone(@Param("siteId") Integer siteId, @Param("userPhone") String userPhone); //查询设备信息 Map<String,Object> queryEquipment(Map<String, Object> equipmentNumber); Map<String,Object> queryUserInfo(Map<String, Object> parameterMap); }
[ "gaojie@51jk.com" ]
gaojie@51jk.com
7c61feccf37d4f31bf10520b89879e7cfe5165b9
8b15962d5e55754c0db65c30027bb5b32090a339
/src/main/java/org/agilewiki/vcow/System_Realm.java
7ef00e1fc3263cf2a65919a91edf24bfedf41512
[]
no_license
laforge49/VirtualCow
4af6fd6bf043d659a442adc1a58a3e29ea4cd0f5
b8ef30433e08c064bacd703ff307b5120df2db38
refs/heads/master
2021-01-22T02:21:15.489705
2015-07-10T00:34:35
2015-07-10T00:34:35
34,136,810
0
0
null
null
null
null
UTF-8
Java
false
false
590
java
package org.agilewiki.vcow; import org.agilewiki.awdb.Node; import org.agilewiki.awdb.nodes.Lnk1_NodeFactory; import org.agilewiki.awdb.nodes.Realm_Node; import org.agilewiki.awdb.nodes.User_NodeFactory; public class System_Realm extends Realm_Node { public System_Realm(String nodeId, long timestamp) { super(nodeId, timestamp); } @Override public void newNode(Node node, String userId) { if (!User_NodeFactory.SYSTEM_USER_ID.equals(userId)) { node.createLnk1(Lnk1_NodeFactory.OF_DOMAIN_ID, NameIds.USERS_SYSTEM_DOMAIN_ID); } } }
[ "laforge49@gmail.com" ]
laforge49@gmail.com
6bb31907e93370d3735034c6472d18e74c82977a
6a9f10c887b0f4951de9eea37e34e445c6df2cbe
/src/main/java/com/raiffeisen/cources/weapons/Main.java
8aa1ca043be674cbe03f87cc8b33df6e4ba67511
[]
no_license
nirrorland/dz1
297a67e4d0231d887f86c77a3ec8da1f655b492d
b11b4b20afc72cc5eea219a450d8515f568c9834
refs/heads/master
2020-03-22T07:45:41.070166
2018-07-04T17:47:14
2018-07-04T17:47:14
139,723,170
0
0
null
null
null
null
UTF-8
Java
false
false
415
java
package com.raiffeisen.cources.weapons; public class Main { public static void main(String[] args) { Weapon[] weapons = new Weapon[5]; weapons[0] = new Gun(5); weapons[1] = new Shotgun(10); weapons[2] = new BFG(1000); weapons[3] = new Shotgun(50); weapons[4] = new Gun(7); for (Weapon weapon: weapons) { weapon.shoot(); } } }
[ "Kirill.CHETVERTKOV@raiffeisen.ru" ]
Kirill.CHETVERTKOV@raiffeisen.ru
254beb4aee0d749e33c05eb0029e860ff866c446
f76554837058e6c1c9ab9d5b803918f433a9cd20
/src/test/java/com/aop/article/example/AopArticleExampleApplicationTests.java
a522f86cc7c4898f9d8beb4c7f6f31c1216f287b
[]
no_license
microgenius/AOP-Article-Example
6d2f331b687f074b46e10ff7ecc8bb2139edf3ec
40c108ae28d7cc458c83358c554e09cce7730e53
refs/heads/master
2020-04-28T01:06:10.697471
2019-03-11T18:02:41
2019-03-11T18:02:41
174,841,623
2
0
null
null
null
null
UTF-8
Java
false
false
351
java
package com.aop.article.example; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class AopArticleExampleApplicationTests { @Test public void contextLoads() { } }
[ "sezer.tanriverdioglu@etiya.com" ]
sezer.tanriverdioglu@etiya.com
1b072daff753107b9605a5328486de2e6484da79
ed5159d056e98d6715357d0d14a9b3f20b764f89
/test/irvine/oeis/a179/A179824Test.java
027e3da44e7bcb75489097a2f66a9f73c4b5f671
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080552
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
195
java
package irvine.oeis.a179; import irvine.oeis.AbstractSequenceTest; /** * Tests the corresponding class. * @author Sean A. Irvine */ public class A179824Test extends AbstractSequenceTest { }
[ "sairvin@gmail.com" ]
sairvin@gmail.com
011c92d1f7994b6bb71220bb097323fa61a31e97
33f2099599700dce1154b7cc3e76c22a1aad6f46
/src/me/aleksilassila/islands/IslandLayout.java
a0b76a8ca35f0dadedb45b394a0409dc6c98f728
[]
no_license
inrhor/Islands
336130a02e5e78d66df39671bef5c3c445a7a050
59eb45128471aeda9d0e2bd203ea4392bd9a6f66
refs/heads/master
2023-01-04T11:04:26.505332
2020-10-30T20:18:02
2020-10-30T20:18:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
14,593
java
package me.aleksilassila.islands; import com.sun.istack.internal.NotNull; import com.sun.istack.internal.Nullable; import me.aleksilassila.islands.generation.IslandGeneration; import me.aleksilassila.islands.utils.BiomeMaterials; import org.bukkit.Location; import org.bukkit.block.Biome; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.entity.Player; import java.util.*; public class IslandLayout { private final Islands plugin; public final int islandSpacing; public final int verticalSpacing; public IslandLayout(Islands plugin) { this.plugin = plugin; this.islandSpacing = plugin.getConfig().getInt("generation.islandGridSpacing"); this.verticalSpacing = plugin.getConfig().getInt("generation.islandGridVerticalSpacing"); } private FileConfiguration getIslandsConfig() { return plugin.getIslandsConfig(); } public String createIsland(UUID uuid, int islandSize, int height, Biome biome) { int index = 0; while (true) { int[] pos = placement.getIslandPos(index); if (!getIslandsConfig().getKeys(false).contains(posToIslandId(pos[0], pos[1]))) { return addIslandToConfig(pos[0], pos[1], islandSize, height, uuid, String.valueOf(getNewHomeId(uuid)), biome); } index++; } } @NotNull private String addIslandToConfig(int xIndex, int zIndex, int islandSize, int height, UUID uuid, String name, Biome biome) { int realX = xIndex * islandSpacing + islandSpacing / 2 - islandSize / 2; int realY = getIslandY(xIndex, zIndex); int realZ = zIndex * islandSpacing + islandSpacing / 2 - islandSize / 2; int home = getNewHomeId(uuid); String islandId = posToIslandId(xIndex, zIndex); getIslandsConfig().set(islandId + ".xIndex", xIndex); getIslandsConfig().set(islandId + ".zIndex", zIndex); getIslandsConfig().set(islandId + ".x", realX); getIslandsConfig().set(islandId + ".y", realY); getIslandsConfig().set(islandId + ".z", realZ); getIslandsConfig().set(islandId + ".spawnPoint.x", realX + islandSize / 2); getIslandsConfig().set(islandId + ".spawnPoint.z", realZ + islandSize / 2); getIslandsConfig().set(islandId + ".UUID", uuid.toString()); getIslandsConfig().set(islandId + ".name", name); getIslandsConfig().set(islandId + ".home", home); getIslandsConfig().set(islandId + ".size", islandSize); getIslandsConfig().set(islandId + ".height", height); getIslandsConfig().set(islandId + ".public", false); getIslandsConfig().set(islandId + ".biome", biome.name()); plugin.saveIslandsConfig(); return islandId; } @Nullable public String getIslandId(int x, int z) { for (String islandId : getIslandsConfig().getKeys(false)) { if (x / islandSpacing == getIslandsConfig().getInt(islandId + ".xIndex")) { if (z / islandSpacing == getIslandsConfig().getInt(islandId + ".zIndex")) { return islandId; } } } return null; } @NotNull public List<String> getIslandIds(UUID uuid) { List<String> islands = new ArrayList<>(); for (String islandId : getIslandsConfig().getKeys(false)) { String islandUUID = getIslandsConfig().getString(islandId + ".UUID"); if (islandUUID != null && islandUUID.equals(uuid.toString())) islands.add(islandId); } return islands; } @NotNull public Map<String, Map<String, String>> getIslandsInfo(boolean publicOnly) { Map<String, Map<String, String>> islands = new HashMap<>(); for (String islandId : getIslandsConfig().getKeys(false)) { boolean isPublic = getIslandsConfig().getBoolean(islandId + ".public"); if (!publicOnly || isPublic) { String name = isPublic ? getIslandsConfig().getString(islandId + ".name") : islandId; String ownerUUID = getIslandsConfig().getString(islandId + ".UUID"); Map<String, String> values = new HashMap<>(); values.put("name", name); values.put("owner", ownerUUID); try { String biome = getIslandsConfig().getString(islandId + ".biome"); values.put("material", BiomeMaterials.valueOf(biome).name()); } catch (Exception e) { values.put("material", BiomeMaterials.DEFAULT.name()); } values.put("public", String.valueOf(isPublic ? 1 : 0)); islands.put(islandId, values); } } return islands; } @NotNull public Map<String, Map<String, String>> getIslandsInfo(String uuid) { Map<String, Map<String, String>> islands = new HashMap<>(); for (String islandId : getIslandsConfig().getKeys(false)) { String ownerUUID = getIslandsConfig().getString(islandId + ".UUID"); if (!uuid.equalsIgnoreCase(ownerUUID)) continue; String name = getIslandsConfig().getBoolean(islandId + ".public") ? getIslandsConfig().getString(islandId + ".name") : islandId; Map<String, String> values = new HashMap<>(); values.put("name", name); try { String biome = getIslandsConfig().getString(islandId + ".biome"); values.put("material", BiomeMaterials.valueOf(biome).name()); } catch (Exception e) { values.put("material", BiomeMaterials.DEFAULT.name()); } islands.put(islandId, values); } return islands; } @NotNull public Map<String, Integer> getPlayers() { Map<String, Integer> players = new HashMap<>(); for (String islandId : getIslandsConfig().getKeys(false)) { String uuid = getIslandsConfig().getString(islandId + ".UUID"); if (uuid != null) { if (players.containsKey(uuid)) { players.put(uuid, players.get(uuid) + 1); } else { players.put(uuid, 1); } } } return players; } @Nullable public String getIslandByName(String name) { for (String islandId : getIslandsConfig().getKeys(false)) { if (name.equalsIgnoreCase(getIslandsConfig().getString(islandId + ".name")) && getIslandsConfig().getBoolean(islandId + ".public")) { return islandId; } } return null; } @Nullable public String getHomeIsland(UUID uuid, int homeId) { List<String> allIslands = getIslandIds(uuid); for (String islandId : allIslands) { if (getIslandsConfig().getInt(islandId + ".home") == homeId) { return islandId; } } return null; } @Nullable public Location getIslandSpawn(String islandId) { if (getIslandsConfig().getKeys(false).contains(islandId)) { return new Location( plugin.islandsWorld, getIslandsConfig().getInt(islandId + ".spawnPoint.x"), getIslandsConfig().getInt(islandId + ".y") + 100, getIslandsConfig().getInt(islandId + ".spawnPoint.z") ); } else { return null; } } @Nullable public String getSpawnIsland() { for (String islandId : getIslandsConfig().getKeys(false)) { if (getIslandsConfig().getBoolean(islandId + ".isSpawn")) { return islandId; } } return null; } public boolean isBlockInIslandSphere(int x, int y, int z) { int xIndex = x / islandSpacing; int zIndex = z / islandSpacing; int islandLowY = getIslandY(xIndex, zIndex); int islandSize = getIslandsConfig().getInt(posToIslandId(xIndex, zIndex) + ".size"); int relativeX = x - (xIndex * islandSpacing + islandSpacing / 2 - islandSize / 2); int relativeZ = z - (zIndex * islandSpacing + islandSpacing / 2 - islandSize / 2); int relativeY = y - islandLowY; return IslandGeneration.isBlockInIslandSphere(relativeX, relativeY, relativeZ, islandSize); } @Nullable public String getBlockOwnerUUID(int x, int z) { int xIndex = x / islandSpacing; int zIndex = z / islandSpacing; int islandSize = getIslandsConfig().getInt(posToIslandId(xIndex, zIndex) + ".size"); int relativeX = x - (xIndex * islandSpacing + islandSpacing / 2 - islandSize / 2); int relativeZ = z - (zIndex * islandSpacing + islandSpacing / 2 - islandSize / 2); boolean isInside = IslandGeneration.isBlockInIslandCylinder(relativeX + 2, relativeZ + 2, islandSize + 4); if (!isInside) return null; return getIslandsConfig().getString(posToIslandId(xIndex, zIndex) + ".UUID"); } public int getNewHomeId(UUID uuid) { List<String> ids = getIslandIds(uuid); List<Integer> homeIds = new ArrayList<>(); for (String islandId : ids) { int homeNumber = getIslandsConfig().getInt(islandId + ".home"); homeIds.add(homeNumber); } int home = getNumberOfIslands(uuid) + 1; for (int i = 1; i <= getNumberOfIslands(uuid) + 1; i++) { if (!homeIds.contains(i)) home = i; } return home; } // UTILS private int getIslandY(int xIndex, int zIndex) { return 10 + ((xIndex + zIndex) % 3) * verticalSpacing; } public int getNumberOfIslands(UUID uuid) { return getIslandIds(uuid).size(); } @NotNull public List<String> getTrusted(String islandId) { return getIslandsConfig().getStringList(islandId + ".trusted"); } String posToIslandId(int xIndex, int zIndex) { return xIndex + "x" + zIndex; } @NotNull public String getUUID(String islandId) { return Optional.ofNullable(getIslandsConfig().getString(islandId + ".UUID")).orElse(""); } // MANAGMENT public void updateIsland(String islandId, int islandSize, int height, Biome biome) { int xIndex = getIslandsConfig().getInt(islandId + ".xIndex"); int zIndex = getIslandsConfig().getInt(islandId + ".zIndex"); int realX = xIndex * islandSpacing + islandSpacing / 2 - islandSize / 2; int realZ = zIndex * islandSpacing + islandSpacing / 2 - islandSize / 2; getIslandsConfig().set(islandId + ".x", realX); getIslandsConfig().set(islandId + ".z", realZ); getIslandsConfig().set(islandId + ".size", islandSize); getIslandsConfig().set(islandId + ".height", height); getIslandsConfig().set(islandId + ".biome", biome.name()); plugin.saveIslandsConfig(); } public void addTrusted(String islandId, String UUID) { List<String> trusted = getIslandsConfig().getStringList(islandId + ".trusted"); trusted.add(UUID); getIslandsConfig().set(islandId + ".trusted", trusted); plugin.saveIslandsConfig(); } public void removeTrusted(String islandId, String UUID) { List<String> trusted = getIslandsConfig().getStringList(islandId + ".trusted"); trusted.remove(UUID); getIslandsConfig().set(islandId + ".trusted", trusted); plugin.saveIslandsConfig(); } public void setSpawnPoint(String islandId, int x, int z) { getIslandsConfig().set(islandId + ".spawnPoint.x", x); getIslandsConfig().set(islandId + ".spawnPoint.z", z); plugin.saveIslandsConfig(); } public void unnameIsland(String islandId) { int homeId = getIslandsConfig().getInt(islandId + ".home"); getIslandsConfig().set(islandId + ".name", String.valueOf(homeId)); getIslandsConfig().set(islandId + ".public", false); plugin.saveIslandsConfig(); } public void nameIsland(String islandId, String name){ getIslandsConfig().set(islandId + ".name", name); getIslandsConfig().set(islandId + ".public", true); plugin.saveIslandsConfig(); } public void giveIsland(String islandId, Player player) { getIslandsConfig().set(islandId + ".home", getNewHomeId(player.getUniqueId())); getIslandsConfig().set(islandId + ".UUID", player.getUniqueId().toString()); plugin.saveIslandsConfig(); } public void giveIsland(String islandId) { getIslandsConfig().set(islandId + ".home", -1); getIslandsConfig().set(islandId + ".UUID", null); plugin.saveIslandsConfig(); } public void deleteIsland(String islandId) { getIslandsConfig().set(islandId, null); plugin.saveIslandsConfig(); } public boolean setSpawnIsland(String islandId) { if (getIslandsConfig().getConfigurationSection(islandId) == null) return false; if (getIslandsConfig().getBoolean(islandId + ".isSpawn")) { getIslandsConfig().set(islandId + ".isSpawn", false); return true; } for (String island : getIslandsConfig().getKeys(false)) { if (getIslandsConfig().getBoolean(island + ".isSpawn")) { getIslandsConfig().set(island + ".isSpawn", false); } } getIslandsConfig().set(islandId + ".isSpawn", true); return true; } public static class placement { public static int getLayer(int index) { return (int) Math.floor(Math.sqrt(index)); } public static int getLayerSize(int layer) { return 2 * layer + 1; } public static int firstOfLayer(int layer) { return layer * layer; } public static int[] getIslandPos(int index) { int layer = getLayer(index); int x = Math.min(index - firstOfLayer(layer), layer); int z = (index - firstOfLayer(layer) < layer + 1) ? layer : firstOfLayer(layer) + getLayerSize(layer) - 1 - index; return new int[]{x, z}; } // TODO: Optimize public static int getIslandIndex(int[] pos) { int index = 0; while (!Arrays.equals(getIslandPos(index), pos)) { index++; } return index; } } }
[ "aleksi.emil.lassila@gmail.com" ]
aleksi.emil.lassila@gmail.com
218685291e9e9949106b8f820a72621772deb491
01b7af545cff6bc9c69e3b813148b7484449f104
/MODEL/PROGRAM/JPO/emxChange_mxJPO.java
484ca460e55ee6a4b1cec47b3c69798626026d5d
[]
no_license
rgarbhe-processia/Tiger-DEV
c674b417935076ef41e8cb99a60ba423f51a89a1
75d8ad323df5cbb309e52ae4017cc2d00f6d1f0e
refs/heads/master
2020-04-14T10:57:45.934483
2020-01-10T09:55:41
2020-01-10T09:55:41
163,800,729
0
0
null
null
null
null
UTF-8
Java
false
false
2,004
java
/* * emxChange.java * * Copyright (c) 1992-2015 Dassault Systemes. * * All Rights Reserved. This program contains proprietary and trade secret information of MatrixOne, Inc. Copyright notice is precautionary only and does not evidence any actual or intended * publication of such program. * */ import matrix.db.Context; import com.matrixone.apps.domain.util.EnoviaResourceBundle; import com.matrixone.apps.domain.util.i18nNow; /** * The <code>emxChange</code> JPO class is Wrapper JPO for emxChangeBase JPO which holds methods for executing JPO operations related to objects of the type Change. * @author Cambridge * @version Engineering Central - X3 - Copyright (c) 2007, MatrixOne, Inc. */ public class emxChange_mxJPO extends emxChangeBase_mxJPO { /** * Create a new Change object from a given id * @param context * context for this request * @param args * holds no arguments * @throws Exception * when unable to find object id in the AEF * @since EngineeringCentral X3 */ public emxChange_mxJPO(Context context, String[] args) throws Exception { super(context, args); } /** * Main entry point * @param context * context for this request * @param args * holds no arguments * @return an integer status code (0 = success) * @throws Exception * when problems occurred in the AEF * @since EngineeringCentral X3 */ public int mxMain(Context context, String[] args) throws Exception { if (!context.isConnected()) { i18nNow i18nnow = new i18nNow(); String strLanguage = context.getSession().getLanguage(); String strContentLabel = EnoviaResourceBundle.getProperty(context, "emxComponentsStringResource", context.getLocale(), "emxComponents.Error.UnsupportedClient"); throw new Exception(strContentLabel); } return 0; } }
[ "rgarbhe@processia.com" ]
rgarbhe@processia.com
befe6b5dfb7201c1cfc8192feb9af38e28917efe
7f51a61cc07068a2489b222a0aad620f228c7bca
/mobileacademy/src/main/java/org/motechproject/nms/mobileacademy/domain/QuizContent.java
71f3a593f4382932fb17b996f690042343a4a27d
[ "BSD-2-Clause" ]
permissive
motech-implementations/bbc-nms
996c52fe249a552a42af80b86dc7cb3d6e76bb63
4796bed392227e847b0511c5bd30ede3a0d4ea6a
refs/heads/master
2021-01-02T08:09:26.700539
2015-02-24T16:27:06
2015-03-20T17:35:47
28,104,008
2
5
null
null
null
null
UTF-8
Java
false
false
1,562
java
package org.motechproject.nms.mobileacademy.domain; import java.util.List; import org.motechproject.mds.annotations.Cascade; import org.motechproject.mds.annotations.Entity; import org.motechproject.mds.annotations.Field; import org.motechproject.mds.domain.MdsEntity; /** * QuizContent object to refer quiz related data. * */ @Entity public class QuizContent extends MdsEntity { @Field private String name; @Field private String audioFile; @Field @Cascade(delete = true) private List<QuestionContent> questions; /** * constructor with 0 arguments. */ public QuizContent() { } /** * constructor with all arguments. * * @param name name of the meta field i.e quiz header * @param audioFile name of the audio file * @param questions list of questions associated with this quiz */ public QuizContent(String name, String audioFile, List<QuestionContent> questions) { this.name = name; this.audioFile = audioFile; this.questions = questions; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAudioFile() { return audioFile; } public void setAudioFile(String audioFile) { this.audioFile = audioFile; } public List<QuestionContent> getQuestions() { return questions; } public void setQuestions(List<QuestionContent> questions) { this.questions = questions; } }
[ "kthirumalai@grameenfoundation.org" ]
kthirumalai@grameenfoundation.org
f47ac769a4f6225927ee8f30e6698e879eb56ee0
5b686a48f0e29aaccd23d1b00213c02ecaacc9bb
/src/main/java/selim/rifts/proxy/ClientProxy.java
9b03c3ed24159fa831a3c0354c588898ec508cd3
[ "MIT" ]
permissive
Selim042/Rifts
ce749423a715737747ed1e70a0999cea99d45d14
54a2563a15327916bcdcad8f9669ad9722223964
refs/heads/master
2021-03-22T03:28:28.392939
2018-10-18T19:11:33
2018-10-18T19:11:33
123,740,270
0
0
null
null
null
null
UTF-8
Java
false
false
10,944
java
package selim.rifts.proxy; import java.lang.reflect.Field; import java.util.HashMap; import java.util.Map; import org.lwjgl.input.Keyboard; import net.minecraft.block.Block; import net.minecraft.block.BlockDoor; import net.minecraft.block.properties.IProperty; import net.minecraft.block.state.IBlockState; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.EntityRenderer; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.client.renderer.block.statemap.IStateMapper; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.client.settings.KeyBinding; import net.minecraft.client.shader.ShaderGroup; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemDoor; import net.minecraft.util.ResourceLocation; import net.minecraft.world.DimensionType; import net.minecraftforge.client.event.ModelRegistryEvent; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.client.registry.ClientRegistry; import net.minecraftforge.fml.client.registry.IRenderFactory; import net.minecraftforge.fml.client.registry.RenderingRegistry; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import selim.rifts.EnderRifts; import selim.rifts.ModInfo; import selim.rifts.PersistencyHandler; import selim.rifts.RiftRegistry; import selim.rifts.blocks.BlockNewSlab; import selim.rifts.blocks.BlockWillowSapling; import selim.rifts.entities.EntityPhantomCart; import selim.rifts.entities.EntityReverseFallingBlock; import selim.rifts.entities.render.RenderPhantomCart; import selim.rifts.entities.render.RenderReverseFallingBlock; import selim.rifts.events.handlers.AmethystTooltip; import selim.rifts.events.handlers.ClientTicks; import selim.rifts.events.handlers.EyeTooltipHandler; import selim.rifts.items.ItemUniversalDye.UniversalDyeItemColor; import selim.rifts.render.TileRiftPortalRenderer; import selim.rifts.tiles.TileRiftPortal; import selim.rifts.utils.MiscUtils; @SideOnly(Side.CLIENT) @Mod.EventBusSubscriber(Side.CLIENT) public class ClientProxy extends CommonProxy { public static final KeyBinding EYE_SHORTCUT = new KeyBinding("key." + ModInfo.ID + ":eye_shortcut", Keyboard.KEY_LCONTROL, "key." + ModInfo.ID + ".category"); @SubscribeEvent public static void registerModels(ModelRegistryEvent event) { Class<RiftRegistry.Items> clazz = RiftRegistry.Items.class; Field[] fields = clazz.getDeclaredFields(); try { for (Field f : fields) { Object obj = f.get(null); if (obj == null || obj == Items.AIR) continue; // System.out.print("BLERP:" + f.getName() + "," + // obj.getClass().getName() + ":" + obj); if (obj instanceof Item && ((Item) obj).getHasSubtypes()) { // System.out.println("Item, with subtypes. Not // registered."); continue; } else if (obj instanceof ItemBlock) { // System.out.println("ItemBlock. Registered."); registerModel((ItemBlock) obj); } else if (obj instanceof ItemDoor) { // System.out.println("ItemDoor. Registered."); registerModel((ItemDoor) obj); } else if (!f.getName().equals("DEBUG_ITEM")) { // System.out.println("Item, not DEBUG_ITEM. Registered."); registerModel((Item) obj); } else if (obj instanceof Item) { // System.out.println("Item. Registered."); registerModel((Item) obj); } else System.out.println("Failed to register: " + f.getName()); } } catch (IllegalArgumentException | IllegalAccessException e) { EnderRifts.LOGGER.error("An " + e.getClass().getName() + " was thrown when attempting to load ItemBlock models."); e.printStackTrace(); } for (int i = 0; i < 17; i++) registerModel(RiftRegistry.Items.UNIVERSAL_DYE, i); registerModel(RiftRegistry.Items.BARITE, 0); registerModel(RiftRegistry.Items.BARITE, 1, "_smooth"); registerModel(RiftRegistry.Items.BARITE, 2, "_brick"); ModelLoader.setCustomStateMapper(RiftRegistry.Blocks.WILLOW_LEAVES, NormalStateMapper.NORMAL); ModelLoader.setCustomStateMapper(RiftRegistry.Blocks.OPAQUE_AIR, NormalStateMapper.NORMAL); ModelLoader.setCustomStateMapper(RiftRegistry.Blocks.WILLOW_SAPLING, new IgnoreStateMapper(BlockWillowSapling.STAGE)); IgnoreStateMapper slabIgnore = new IgnoreStateMapper(BlockNewSlab.VARIANT); IgnoreStateMapper doorIngore = new IgnoreStateMapper(BlockDoor.POWERED); for (Field f : RiftRegistry.Blocks.class.getFields()) { try { Object obj = f.get(null); if (obj instanceof BlockNewSlab) ModelLoader.setCustomStateMapper((BlockNewSlab) obj, slabIgnore); else if (obj instanceof BlockDoor) ModelLoader.setCustomStateMapper((BlockDoor) obj, doorIngore); } catch (IllegalArgumentException | IllegalAccessException e) { EnderRifts.LOGGER.error("An " + e.getClass().getName() + " was thrown when attempting to set " + f.getName() + " StateMapper."); e.printStackTrace(); } } if (MiscUtils.isDevEnvironment()) registerModel(RiftRegistry.Items.DEBUG_ITEM); } protected static class NormalStateMapper implements IStateMapper { public static final NormalStateMapper NORMAL = new NormalStateMapper(); @Override public Map<IBlockState, ModelResourceLocation> putStateModelLocations(Block block) { ModelResourceLocation defLoc = new ModelResourceLocation(block.getRegistryName(), "normal"); HashMap<IBlockState, ModelResourceLocation> locs = new HashMap<IBlockState, ModelResourceLocation>(); for (IBlockState state : block.getBlockState().getValidStates()) locs.put(state, defLoc); return locs; } } protected static class IgnoreStateMapper implements IStateMapper { private final IProperty<?>[] properties; public IgnoreStateMapper(IProperty<?>... properties) { this.properties = properties; } @Override public Map<IBlockState, ModelResourceLocation> putStateModelLocations(Block block) { HashMap<IBlockState, ModelResourceLocation> locs = new HashMap<IBlockState, ModelResourceLocation>(); for (IBlockState state : block.getBlockState().getValidStates()) { String loc = ""; for (IProperty<?> p : state.getPropertyKeys()) { if (arrContains(this.properties, p)) continue; if (!loc.equals("")) loc += ","; loc += p.getName() + "=" + state.getValue(p); } locs.put(state, new ModelResourceLocation(block.getRegistryName(), loc)); } return locs; } } private static <T> boolean arrContains(T[] arr, T val) { for (T t : arr) if (t != null && t.equals(val)) return true; return false; } private static void registerModel(Item item) { registerModel(item, 0); } private static void registerModel(Item item, int meta) { registerModel(item, meta, ""); } private static void registerModel(Item item, int meta, String postfix) { if (item == null) return; ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item.getRegistryName() + postfix, "inventory")); } @Override public void preInit() { super.preInit(); MinecraftForge.EVENT_BUS.register(new ClientTicks()); RenderingRegistry.registerEntityRenderingHandler(EntityReverseFallingBlock.class, new IRenderFactory<EntityReverseFallingBlock>() { @Override public Render<EntityReverseFallingBlock> createRenderFor(RenderManager manager) { return new RenderReverseFallingBlock(manager); } }); // RenderingRegistry.registerEntityRenderingHandler(EntityPhantomPearl.class, // new IRenderFactory<EntityPhantomPearl>() { // // @Override // public Render<? super EntityPhantomPearl> // createRenderFor(RenderManager manager) { // return new RenderSnowball<EntityPhantomPearl>(manager, // RiftRegistry.Items.PHANTOM_PEARL, // Minecraft.getMinecraft().getRenderItem()); // } // }); RenderingRegistry.registerEntityRenderingHandler(EntityPhantomCart.class, new IRenderFactory<EntityPhantomCart>() { @Override public Render<? super EntityPhantomCart> createRenderFor(RenderManager manager) { return new RenderPhantomCart(manager); } }); ClientRegistry.bindTileEntitySpecialRenderer(TileRiftPortal.class, new TileRiftPortalRenderer()); ClientRegistry.registerKeyBinding(EYE_SHORTCUT); } @Override public void init() { super.init(); Minecraft.getMinecraft().getItemColors().registerItemColorHandler(UniversalDyeItemColor.INSTANCE, RiftRegistry.Items.UNIVERSAL_DYE); // TODO: See about possibly fixing this (only updates color on chunk // draw) // try { // for (Field f : RiftRegistry.Items.class.getFields()) { // Object obj = f.get(null); // if (obj instanceof ItemBlock // && ((ItemBlock) obj).getBlock() instanceof BlockUnstableBlock) { // ItemBlock item = (ItemBlock) obj; // System.out.println("blerp:" + f.getName()); // Minecraft.getMinecraft().getItemColors() // .registerItemColorHandler(UniversalDyeItemColor.INSTANCE, item); // Minecraft.getMinecraft().getBlockColors() // .registerBlockColorHandler(UniversalDyeItemColor.INSTANCE, // item.getBlock()); // } // } // } catch (IllegalArgumentException | IllegalAccessException e) { // EnderRifts.LOGGER.error("An " + e.getClass().getName() // + " was thrown when attempting to set BlockUnstableBlock color."); // e.printStackTrace(); // } } @Override public void postInit() { super.postInit(); // Minecraft mc = Minecraft.getMinecraft(); // Minecraft.getMinecraft().fontRenderer = new // CustomFontRenderer(mc.gameSettings, // new ResourceLocation("textures/font/ascii.png"), mc.renderEngine, // false); } private Minecraft mc = Minecraft.getMinecraft(); private ShaderGroup oldGroup; private ResourceLocation rift = new ResourceLocation(ModInfo.ID, "shaders/post/desaturate.json"); @Override public void setRiftShader(boolean enabled) { EntityRenderer renderer = mc.entityRenderer; if (enabled) { this.oldGroup = renderer.getShaderGroup(); renderer.loadShader(rift); } else if (this.oldGroup != null) { renderer.loadShader(new ResourceLocation(this.oldGroup.getShaderGroupName())); this.oldGroup = null; } else { renderer.stopUseShader(); this.oldGroup = null; } } @Override public void addVisitedToPersistance(DimensionType type) { PersistencyHandler.addVisited(type); } @Override public boolean hasVisitedFromPersistance(DimensionType type) { return PersistencyHandler.hasVisited(type); } @Override public void registerEventHandlers() { super.registerEventHandlers(); MinecraftForge.EVENT_BUS.register(new AmethystTooltip()); MinecraftForge.EVENT_BUS.register(new EyeTooltipHandler()); } }
[ "Selim042@users.noreply.github.com" ]
Selim042@users.noreply.github.com
4b85f6bd6d2af92403f7f7aca08a59e98ffbcca5
b3581646621a7c6dd20737da75395781e10edcfa
/P-Medianas/src/Grafo.java
685a6c65b09bb6cda808d61e118c0222252fb7a2
[]
no_license
fonseca741/6903-MOA
901cdd0d3190d0e6bb5db1465487488444e6d64b
28cf5cdd93c3752051f40e82bf82a32a7fd0533d
refs/heads/master
2022-11-13T12:51:50.621273
2020-01-31T02:48:50
2020-01-31T02:48:50
222,451,862
0
0
null
null
null
null
UTF-8
Java
false
false
3,944
java
import java.util.ArrayList; import java.util.Collections; import java.util.List; public class Grafo implements Comparable<Grafo>{ public int numVertice; public int numMedianas; public List<Vertice> vertices = new ArrayList<>(); public List<Vertice> medianas = new ArrayList<>(); public double fitness; public Grafo(int numVertice, int numMedianas) { this.numVertice = numVertice; this.numMedianas = numMedianas; } public Grafo(int numVertice, int numMedianas, List<Vertice> vertices, List<Vertice> medianas, double fitness) { this.numVertice = numVertice; this.numMedianas = numMedianas; this.vertices = vertices; this.medianas = medianas; this.fitness = fitness; } public void gerarMedianas() { List numeros = new ArrayList(); for (int i = 0; i < this.numVertice; i++) { numeros.add(i); } Collections.shuffle(numeros); this.medianas.clear(); for (int i = 0; i < this.numMedianas; i++) { int index = Integer.parseInt(numeros.get(i).toString()); this.medianas.add(this.vertices.get(index)); } } public void calcularFitness() { double somaFinal = 0; for (Vertice v : this.vertices) { somaFinal += v.distancia; } this.fitness = somaFinal; } public void printFitness() { System.out.printf("%.0f %n ", this.fitness); } public Grafo deepCopy() { List<Vertice> verticesCopia = new ArrayList<>(); List<Vertice> medianaCopia = new ArrayList<>(); for (Vertice origem:this.vertices) { verticesCopia.add(new Vertice(origem.capacidadeMax, origem.capacidadeAtual, origem.demanda, origem.posx, origem.posy, origem.distancia)); } for (Vertice origem:this.medianas) { medianaCopia.add(new Vertice(origem.capacidadeMax, origem.capacidadeAtual, origem.demanda, origem.posx, origem.posy, origem.distancia)); } Grafo copia = new Grafo(this.numVertice, this.numMedianas, verticesCopia, medianaCopia, this.fitness); return copia; } public void resetarCapacidadeAndDistancia() { for (Vertice v : this.vertices) { v.capacidadeAtual = v.capacidadeMax; v.distancia = 0; } for (Vertice v : this.medianas) { v.capacidadeAtual = v.capacidadeMax; v.distancia = 0; } } public void attCapacidadeAndDistancia() { double distanciaAtual; int medianaIndice = 0; double distanciaMin; boolean flag = false; for (Vertice v : this.medianas) { v.capacidadeAtual -= v.demanda; } for (Vertice comum : this.vertices) { distanciaMin = 99999999; int indice = 0; for (Vertice mediana : this.medianas) { if (comum.equals(mediana)) { flag = true; break; } else { distanciaAtual = comum.calcularDistancia(mediana); if (distanciaAtual < distanciaMin && comum.demanda < mediana.capacidadeAtual) { distanciaMin = distanciaAtual; medianaIndice = indice; comum.distancia = distanciaMin; } indice++; } } if (!flag) { this.medianas.get(medianaIndice).capacidadeAtual -= comum.demanda; } else { flag = false; comum.distancia = 0; } } } @Override public int compareTo(Grafo grafo) { if (this.fitness > grafo.fitness) { return 1; } else if (this.fitness < grafo.fitness) { return -1; }else { return 0; } } }
[ "h.marquesluiz@gmail.com" ]
h.marquesluiz@gmail.com
3f1638b7f040d51dc4e05c333a7cd7f8e049972c
cead6dcdae8fb4a96aa62ab19ceee101c5b75588
/app/src/main/java/com/yuan/camera/simple/UVCCameraActivity.java
1250d0805ece6ea0c2af668c664c270d5828d586
[]
no_license
hookYuan/Camera
9d5c37dbfc92172473311e6ec5b3988c7d5fd2c6
b94ac842ffe725b0de0c142fd49a44373064de0b
refs/heads/master
2020-03-29T09:03:10.130209
2018-09-27T08:04:33
2018-09-27T08:04:33
149,738,774
8
6
null
null
null
null
UTF-8
Java
false
false
1,447
java
package com.yuan.camera.simple; import android.os.Build; import android.support.annotation.RequiresApi; import android.support.constraint.ConstraintLayout; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.yuan.camera.R; import com.yuan.camera.camerauvc.UVCHelper; import com.yuan.camera.common.CameraUtil; import com.yuan.camera.glsurface.GLView; import com.yuan.camera.glsurface.GLViewManager; import com.yuan.camera.glsurface.TextureUtil; /** * USB摄像头,需要在设备上连接USB摄像头生效 */ public class UVCCameraActivity extends AppCompatActivity { private GLView glCamera; @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_glsurface_camera); glCamera = findViewById(R.id.glCameraView); GLViewManager.getInstance().addPreview(glCamera); //异步开启摄像头 UVCHelper.getInstance().openCamera(this, 800, 600, new UVCHelper.OpenCameraCallBack() { @Override public void onOpen() { //摄像头开启完成回调 UVCHelper.getInstance().startPreview(TextureUtil.getInstance()); } }); } @Override protected void onDestroy() { UVCHelper.getInstance().close(); super.onDestroy(); } }
[ "yy962851730@126.com" ]
yy962851730@126.com
f9e4f555ddbaf0c07cf1320478b5ee05f2b94e3b
edfb435ee89eec4875d6405e2de7afac3b2bc648
/tags/selenium-core/RELEASE_1_2_0/java/main/com/thoughtworks/selenium/TjwsSeleniumServer.java
6ad833064c4c524f69318e760081295428d3fefa
[]
no_license
Escobita/selenium
6c1c78fcf0fb71604e7b07a3259517048e584037
f4173df37a79ab6dd6ae3f1489ae0cd6cc7db6f1
refs/heads/master
2021-01-23T21:01:17.948880
2012-12-06T22:47:50
2012-12-06T22:47:50
8,271,631
1
0
null
null
null
null
UTF-8
Java
false
false
2,399
java
package com.thoughtworks.selenium; import Acme.Serve.Serve; import edu.emory.mathcs.util.concurrent.Exchanger; import edu.emory.mathcs.util.concurrent.Executors; import marquee.xmlrpc.XmlRpcServer; import marquee.xmlrpc.handlers.ReflectiveInvocationHandler; import java.io.IOException; /** * This is the local web server for Selenium. It serves the following content: * <ul> * <li>/ - the selenium html and js files * </li> * <li>/xmlrpc - test scripts * </li> * <li>/site - the site to be tested (via an internal tunnel) TODO * </li> * </ul> * @author Aslak Helles&oslash;y * @version $Revision: 1.1 $ */ public class TjwsSeleniumServer implements SeleniumServer { private class StoppableServe extends Serve { public void notifyStop() throws IOException { super.notifyStop(); } } private final Exchanger wikiRowExchanger; private final Exchanger resultExchanger; private StoppableServe webserver; public TjwsSeleniumServer(Exchanger commandExchanger, Exchanger resultExchanger) { this.wikiRowExchanger = commandExchanger; this.resultExchanger = resultExchanger; } public void start() { webserver = new StoppableServe(); // This makes it possible to serve files from the file system webserver.addDefaultServlets(null); XmlRpcServer xmlRpcServer = mountXmlRpcServlet(webserver); registerWikiTableRows(xmlRpcServer); Executors.newSingleThreadExecutor().execute(new Runnable() { public void run() { webserver.serve(); } }); } public void shutdown() { try { webserver.notifyStop(); } catch (IOException e) { throw new SeleniumException(e); } } private void registerWikiTableRows(XmlRpcServer xmlRpcServer) { WikiTableRows wikiTableRows = new WikiTableRows(wikiRowExchanger, resultExchanger); ReflectiveInvocationHandler wikiRowTableRowsHandler = new ReflectiveInvocationHandler(wikiTableRows); xmlRpcServer.registerInvocationHandler("wikiTableRows", wikiRowTableRowsHandler); } private XmlRpcServer mountXmlRpcServlet(Serve serve) { XmlRpcServer xmlRpcServer = new XmlRpcServer(); serve.addServlet("/xmlrpc", new XmlRpcServlet(xmlRpcServer)); return xmlRpcServer; } }
[ "simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9" ]
simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9
e04b8565d2a7f5bb61640bf8973b322c8f641c27
7a488e9461f09a8fc164faeff5c2f4adeae7cd8e
/src/main/java/uk/gov/moj/cpp/sandl/parser/util/RotaPayload.java
bf375da4ebe7f09d449d1dfe10407b9fd8bff407
[]
no_license
shettyshrikanth/sandl-blob-event-processor
aad0cde01bb50e09170d0cab17ab870b212d79f7
cf9e8722c44d0c4864aa051fb5b6578b6cfca0d6
refs/heads/master
2022-03-18T14:31:24.988136
2019-12-12T12:01:52
2019-12-12T12:01:52
211,562,295
0
0
null
2022-02-10T00:11:07
2019-09-28T21:12:51
Java
UTF-8
Java
false
false
142
java
package uk.gov.moj.cpp.sandl.parser.util; public enum RotaPayload { ROTA_PERIOD, MAGISTRATES,DISTRICT_JUDGES, COURT_LISTING, SCHEDULE; }
[ "rajesh.narasimha@hmtcs.net" ]
rajesh.narasimha@hmtcs.net
5cc27a669496f5acd3629485bc70e39c99a02208
9d9dd22a7f7b74c888b1f30726c360c63c5ac488
/app/src/main/java/com/ajibigad/udacity/plato/CastFragment.java
972ac7a0293cdddc79ec614654105d436abc55ef
[]
no_license
ajibigad/plato
73746babe455df9871970fb05e1262468ff75c27
b50efaf6d90528faa83af62550e0489a9c7431d6
refs/heads/master
2021-01-19T17:17:41.666415
2017-08-15T04:13:33
2017-08-15T04:13:33
88,317,997
0
0
null
null
null
null
UTF-8
Java
false
false
4,628
java
package com.ajibigad.udacity.plato; import android.content.Context; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.ajibigad.udacity.plato.adapters.CastAdapter; import com.ajibigad.udacity.plato.data.Cast; import com.ajibigad.udacity.plato.data.Movie; import com.ajibigad.udacity.plato.events.MovieFetchedEvent; import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMode; import java.util.Collections; import java.util.List; import butterknife.BindView; import butterknife.ButterKnife; /** * A fragment representing a list of Items. * <p/> * Activities containing this fragment MUST implement the {@link OnListFragmentInteractionListener} * interface. */ public class CastFragment extends Fragment { private OnListFragmentInteractionListener mListener; private CastAdapter castAdapter; private List<Cast> casts; @BindView(R.id.tv_error_message_display) TextView tvErrorMessage; @BindView(R.id.list) RecyclerView recyclerView; private int mColumnCount = 2; /** * Mandatory empty constructor for the fragment manager to instantiate the * fragment (e.g. upon screen orientation changes). */ public CastFragment() { } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_cast_list, container, false); ButterKnife.bind(this, view); // Set the adapter if (mColumnCount <= 1) { recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); } else { recyclerView.setLayoutManager(new GridLayoutManager(getContext(), mColumnCount)); } castAdapter = new CastAdapter(Collections.<Cast>emptyList(), mListener, getContext()); recyclerView.setAdapter(castAdapter); return view; } @Override public void onStart() { super.onStart(); Movie selectedMovie = ((DetailsActivity) getActivity()).getSelectedMovie(); if(selectedMovie != null){ displayCasts(selectedMovie.getCasts()); } EventBus.getDefault().register(this); } private void displayCasts(List<Cast> casts) { if (casts == null || casts.isEmpty()) { showErrorMessage(); } else { //display casts showMovieCastsView(); castAdapter.setData(casts); } } @Override public void onStop() { super.onStop(); EventBus.getDefault().unregister(this); } @Override public void onAttach(Context context) { super.onAttach(context); if (context instanceof OnListFragmentInteractionListener) { mListener = (OnListFragmentInteractionListener) context; } else { throw new RuntimeException(context.toString() + " must implement OnListFragmentInteractionListener"); } } @Override public void onDetach() { super.onDetach(); mListener = null; } @Subscribe(threadMode = ThreadMode.MAIN) public void handleMovieFetchedEvent(MovieFetchedEvent event) { displayCasts(event.getMovie().getCasts()); } private void showMovieCastsView() { tvErrorMessage.setVisibility(View.INVISIBLE); recyclerView.setVisibility(View.VISIBLE); } private void showErrorMessage() { tvErrorMessage.setVisibility(View.VISIBLE); recyclerView.setVisibility(View.INVISIBLE); } /** * This interface must be implemented by activities that contain this * fragment to allow an interaction in this fragment to be communicated * to the activity and potentially other fragments contained in that * activity. * <p/> * See the Android Training lesson <a href= * "http://developer.android.com/training/basics/fragments/communicating.html" * >Communicating with Other Fragments</a> for more information. */ public interface OnListFragmentInteractionListener { void onListFragmentInteraction(Cast cast); } }
[ "ajibigad@gmail.com" ]
ajibigad@gmail.com
65a746b06e9633e8ef1e474bda7a1ea87bf44c79
802d2ca28ed5a59ab4cd253684d3060916e880bc
/src/main/java/com/illichso/configuration/guice/module/UserModule.java
f67990a4bb3a5622d649ad8e5fc08b717170188d
[ "Apache-2.0" ]
permissive
illichso/non-reactive-money-transfer
6473ee35825aca203076003ba991d6a7ed0580df
ad6569449752c57b341019b87117362240018063
refs/heads/master
2022-02-21T06:44:05.670109
2019-09-03T20:58:37
2019-09-03T20:58:37
116,261,188
0
0
null
null
null
null
UTF-8
Java
false
false
501
java
package com.illichso.configuration.guice.module; import com.google.inject.AbstractModule; import com.illichso.repository.UserRepository; import com.illichso.repository.impl.UserRepositoryJPA; import com.illichso.service.UserService; import com.illichso.service.impl.UserServiceImpl; public class UserModule extends AbstractModule { protected void configure() { bind(UserService.class).to(UserServiceImpl.class); bind(UserRepository.class).to(UserRepositoryJPA.class); } }
[ "illichso@gmail.com" ]
illichso@gmail.com
d207436cc89bcb42bd7404399002dd342276c5be
023c488a2833a04113b854bb53cd6853d73d34cf
/platform/com.netifera.platform.net/org.jboss.netty/src/org/jboss/netty/logging/OsgiLogger.java
83b8403909e8e203ac4b359a4ec0034dd4b996e0
[]
no_license
len/netifera
d6046a76c2426a1dacfaed7cef76ee0f715599d1
05053c1b9626b12a745bacbe12e0dcede9a00c6e
refs/heads/master
2020-12-24T23:49:24.449080
2010-01-09T21:39:25
2010-01-09T21:39:25
175,323
1
0
null
null
null
null
UTF-8
Java
false
false
4,027
java
/* * Copyright 2009 Red Hat, Inc. * * Red Hat 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 org.jboss.netty.logging; import org.osgi.service.log.LogService; /** * <a href="http://www.osgi.org/">OSGi</a> {@link LogService} logger. * * @author The Netty Project (netty-dev@lists.jboss.org) * @author Trustin Lee (trustin@gmail.com) * * @version $Rev: 1783 $, $Date: 2009-10-14 14:46:40 +0900 (수, 14 10 2009) $ * */ class OsgiLogger extends AbstractInternalLogger { private final OsgiLoggerFactory parent; private final InternalLogger fallback; private final String name; private final String prefix; OsgiLogger(OsgiLoggerFactory parent, String name, InternalLogger fallback) { this.parent = parent; this.name = name; this.fallback = fallback; prefix = "[" + name + "] "; } public void debug(String msg) { LogService logService = parent.getLogService(); if (logService != null) { logService.log(LogService.LOG_DEBUG, prefix + msg); } else { fallback.debug(msg); } } public void debug(String msg, Throwable cause) { LogService logService = parent.getLogService(); if (logService != null) { logService.log(LogService.LOG_DEBUG, prefix + msg, cause); } else { fallback.debug(msg, cause); } } public void error(String msg) { LogService logService = parent.getLogService(); if (logService != null) { logService.log(LogService.LOG_ERROR, prefix + msg); } else { fallback.error(msg); } } public void error(String msg, Throwable cause) { LogService logService = parent.getLogService(); if (logService != null) { logService.log(LogService.LOG_ERROR, prefix + msg, cause); } else { fallback.error(msg, cause); } } public void info(String msg) { LogService logService = parent.getLogService(); if (logService != null) { logService.log(LogService.LOG_INFO, prefix + msg); } else { fallback.info(msg); } } public void info(String msg, Throwable cause) { LogService logService = parent.getLogService(); if (logService != null) { logService.log(LogService.LOG_INFO, prefix + msg, cause); } else { fallback.info(msg, cause); } } public boolean isDebugEnabled() { return true; } public boolean isErrorEnabled() { return true; } public boolean isInfoEnabled() { return true; } public boolean isWarnEnabled() { return true; } public void warn(String msg) { LogService logService = parent.getLogService(); if (logService != null) { logService.log(LogService.LOG_WARNING, prefix + msg); } else { fallback.warn(msg); } } public void warn(String msg, Throwable cause) { LogService logService = parent.getLogService(); if (logService != null) { logService.log(LogService.LOG_WARNING, prefix + msg, cause); } else { fallback.warn(msg, cause); } } @Override public String toString() { return name; } }
[ "luciano@netifera.com" ]
luciano@netifera.com
e6fdd7766ecb7c2fd7caa8cfc9565d302bfaf8df
ca249c6af8a15ef96947f200a4bef7bbb66cdbeb
/src/main/java/com/xiehua/design/pattern/strategy/promotion/CouponStrategy.java
898b7d7b998b6331a94d4aaa0c180046c146bac7
[]
no_license
xiehuaa/design-pattern
db4aa38fc382f08239429dcc65c3114b45cbf565
d9939ea7b7c9bfd0a9981f36ef5cc5d5ea76cecb
refs/heads/master
2020-04-28T03:57:31.179029
2019-03-25T01:33:14
2019-03-25T01:33:14
174,958,976
0
0
null
null
null
null
UTF-8
Java
false
false
287
java
package com.xiehua.design.pattern.strategy.promotion; /** * This is Description * * @author xiehua * @date 2019/03/18 */ public class CouponStrategy implements PromotionStrategy { @Override public void doPromotion() { System.out.println("领取优惠券"); } }
[ "xiehua@Koolearn-inc.com" ]
xiehua@Koolearn-inc.com
2771d3bf9d89929b0bb8d67eafb856a142c65430
faefb54ae72db051ce3e4a1d76a2e5b3f87a0bcc
/model/src/main/java/ar/edu/itba/paw/model/Factory.java
e0c77ad7aed4088dc850728eae341928127bd93a
[]
no_license
lobo/PAW-final
5873ae5fd2eb64bda6b65f5d4e6b94fe632912da
918a10a02a9bce6783afda8812eda091bdd62bd5
refs/heads/master
2021-05-03T15:10:30.906999
2018-02-06T14:42:28
2018-02-06T14:42:28
120,471,882
0
0
null
null
null
null
UTF-8
Java
false
false
8,077
java
package ar.edu.itba.paw.model; import ar.edu.itba.paw.model.packages.BuyLimits; import ar.edu.itba.paw.model.packages.Implementations.*; import org.jetbrains.annotations.NotNull; import javax.persistence.*; import java.io.Serializable; import java.math.BigDecimal; import java.util.Map; import static java.math.BigDecimal.ROUND_FLOOR; import static java.math.RoundingMode.DOWN; import static java.math.RoundingMode.HALF_DOWN; import static java.math.RoundingMode.HALF_EVEN; @Entity @Table(name = "factories") @IdClass(Factory.FactoryID.class) public class Factory implements Comparable<Factory> { @Id @Column(nullable = false) private long userid; @Id @Column(name = "type", nullable = false) private int _type; @Transient private FactoryType type; @Column(name = "amount") private BigDecimal amount; @Column(name = "inputreduction") private BigDecimal inputReduction; @Column(name = "outputmultiplier") private BigDecimal outputMultiplier; @Column(name = "costreduction") private BigDecimal costReduction; @Column(name = "level") private int level; @PostLoad private void postLoad(){ type = FactoryType.fromId(_type); } public Factory(){} static class FactoryID implements Serializable { @Column(nullable = false) private long userid; @Column(name = "type", nullable = false) private int _type; FactoryID(){}; FactoryID(long userid,int _type){ this.userid = userid; this._type = _type; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; FactoryID that = (FactoryID) o; if (getUserid() != that.getUserid()) return false; return getType() == that.getType() ; } @Override public int hashCode() { int result = (int) (getUserid() ^ (getUserid() >>> 32)); result = 31 * result + getType(); return result; } public long getUserid() { return userid; } public void setUserid(long userid) { this.userid = userid; } public int getType() { return _type; } public void setType(int type) { this._type = type; } } public Factory(long userid, @NotNull FactoryType type, BigDecimal amount, BigDecimal inputReduction, BigDecimal outputMultiplier, BigDecimal costReduction, int level) { this.userid = userid; this.type = type; this.amount = amount; this.inputReduction = inputReduction; this.outputMultiplier = outputMultiplier; this.costReduction = costReduction; this.level = level; this._type = type.getId(); } public long getUserid() { return userid; } public FactoryType getType() { return type; } public BigDecimal getAmount() { return amount; } public BigDecimal getInputReduction() { return inputReduction; } public BigDecimal getOutputMultiplier() { return outputMultiplier; } public BigDecimal getCostReduction() { return costReduction; } public Recipe getRecipe() { return type.getBaseRecipe() .calculateRecipe(inputReduction,outputMultiplier,level); } public FactoryCost getCost() { return getCost(1); } public FactoryCost getCost(long amountToBuy) { return type.getBaseCost().calculateCost(amount,costReduction,amountToBuy); } public FactoriesProduction getFactoriesProduction() { return type.getBaseRecipe().calculateProduction(amount,inputReduction,outputMultiplier,level); } public String getImage(){ return getType().getId() + ".jpg"; } public Factory purchaseResult(long amountToBuy) { return new Factory(userid,type, amount.add(BigDecimal.valueOf(amountToBuy)), inputReduction,outputMultiplier,costReduction,level); } public Factory upgradeResult(){ Upgrade newUpgrade = getNextUpgrade(); return new Factory(userid,type,amount, newUpgrade.getInputReduction(), newUpgrade.getOutputMultiplier(), newUpgrade.getCostReduction(), level + 1 ); } public boolean isBuyable(Wealth w, long amountToBuy) { if(amountToBuy==0) return false; FactoryCost cost = getCost(amountToBuy); Storage storage = w.getStorage(); for (ResourceType r: cost.getResources()) { if(cost.getValue(r).compareTo(storage.getValue(r))>0){ return false; } } Map<ResourceType,BigDecimal> need = getRecipe().getInputs(); Productions productions = w.getProductions(); for (ResourceType r: need.keySet()) { if(need.get(r).multiply(BigDecimal.valueOf(amountToBuy)).compareTo(productions.getValue(r)) > 0){ return false; } } return true; } /** * Given an amount it checks how many factories can be bought for that resource */ public BigDecimal maxFactoriesLimitedByStorage(ResourceType resource, BigDecimal price, Wealth wealth) { BigDecimal resourcesAvailable = wealth.getStorage().getValue(resource); BigDecimal a = BigDecimal.ONE; BigDecimal b = BigDecimal.ONE; BigDecimal c = BigDecimal.valueOf(-2) .multiply( resourcesAvailable.divide(costReduction.multiply(price),ROUND_FLOOR) .add(BaseCost.baseCostOfFactories(amount)) ); Double delta = b.multiply(b).subtract(a.multiply(c).multiply(BigDecimal.valueOf(4))).doubleValue(); if(delta < 0) { return BigDecimal.ZERO; } BigDecimal sol1 = b.negate() .add(BigDecimal.valueOf(Math.sqrt(delta))) .divide(a.multiply(BigDecimal.valueOf(2)), ROUND_FLOOR); BigDecimal sol2 = b.negate() .subtract(BigDecimal.valueOf(Math.sqrt(delta))) .divide(a.multiply(BigDecimal.valueOf(2)), ROUND_FLOOR); BigDecimal realSol = sol1.max(sol2).subtract(amount).setScale(0,ROUND_FLOOR); return realSol; } public BigDecimal maxFactoriesLimitedByProduction(ResourceType resource, BigDecimal productionNeeded, Wealth wealth) { BigDecimal currentProduction = wealth.getProductions().rawMap().get(resource); BigDecimal realSol = currentProduction.divide(productionNeeded,ROUND_FLOOR).setScale(0,ROUND_FLOOR); if(isBuyable(wealth, realSol.longValue() + 1)) { throw new IllegalStateException("IMPOSIBLE"); } return realSol; } public BuyLimits getLimits(Wealth w){ return new BuyLimits(w, this); } public Upgrade getNextUpgrade() { return Upgrade.getUpgrade(getType(),getLevel() + 1); } public int compareTo(Factory f) { return this.getType().getId() - f.getType().getId(); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Factory factory = (Factory) o; if (userid != factory.userid) return false; return type == factory.type; } @Override public int hashCode() { int result = (int) (userid ^ (userid >>> 32)); result = 31 * result + (type != null ? type.hashCode() : 0); return result; } public int getLevel() { return level; } public boolean isUpgreadable(Wealth w) { if(getAmount().signum()>0) { return getNextUpgrade().isBuyable(w); } return false; } }
[ "dlobo@itba.edu.ar" ]
dlobo@itba.edu.ar
ec4c6f87adfc9dc42915037288e30778082cec7c
617a0c615aa0e353e2715362d0f959d2f7783538
/edu-imi-data/src/main/java/edu/imi/ir/eduimiws/services/edu/RegisterServiceImpl.java
b40a804132448b715447066085beb2e8663edf74
[]
no_license
omidashouri/edu-imi-ws
eb74c1f761eeed63d91ea7c44640df1ceb234b0a
051cf1e843d26b99203c9927b8a3bafb2fd56f49
refs/heads/master
2023-07-08T02:21:18.845768
2023-07-01T10:22:16
2023-07-01T10:22:16
233,212,293
0
0
null
null
null
null
UTF-8
Java
false
false
4,545
java
package edu.imi.ir.eduimiws.services.edu; import edu.imi.ir.eduimiws.domain.edu.RegisterEntity; import edu.imi.ir.eduimiws.mapper.CycleAvoidingMappingContext; import edu.imi.ir.eduimiws.mapper.edu.RegisterOnlyMapper; import edu.imi.ir.eduimiws.models.projections.edu.RegisterOnly; import edu.imi.ir.eduimiws.repositories.edu.RegisterRepository; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; import javax.transaction.Transactional; import java.util.Comparator; import java.util.List; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @Service @Transactional @RequiredArgsConstructor(onConstructor = @__(@Autowired)) @Slf4j public class RegisterServiceImpl implements RegisterService{ private final RegisterRepository registerRepository; private final RegisterOnlyMapper registerOnlyMapper; @Override public Long countRegisterByIdLessThanEqual(Long registerId) { Long registerCount = registerRepository.countByIdLessThanEqual(registerId); return registerCount; } @Override public RegisterEntity selectLastRecord() { return registerRepository.findFirstByOrderByIdDesc(); } @Override public RegisterEntity saveNewRegister(RegisterEntity newRegister) { return registerRepository.save(newRegister); } @Override public Page<RegisterEntity> findAllByOrderPageable(Pageable pageable) { Page<RegisterEntity> registerPages = registerRepository .findAllByDeleteStatusIsNotNull(pageable); return registerPages; } @Override public List<RegisterEntity> findAllByDeleteStatusIsNotNull() { return registerRepository.findAllByDeleteStatusIsNotNull(); } @Async("asyncExecutor") @Override public CompletableFuture<List<RegisterEntity>> findAllByDeleteStatusIsNotNullThread() throws ExecutionException, InterruptedException { System.out.println(" >>> is currently running in " + Thread.currentThread().getName()); // final List<RegisterEntity> registers = registerRepository.findAllByDeleteStatusIsNotNull(); return CompletableFuture.completedFuture(registerRepository.findAllByDeleteStatusIsNotNull()); } @Override public Page<RegisterEntity> findAllWithStudentPeriodNameByOrderPageable(Pageable pageable) { Page<RegisterEntity> registerPages = registerRepository .readAllByDeleteStatusIsNotNull(pageable); return registerPages; } @Override public RegisterEntity findByRegisterPublicId(String registerPublicId) { RegisterEntity register = registerRepository .findByRegisterApi_RegisterPublicIdAndDeleteStatusNotNull(registerPublicId); return register; } @Override public RegisterEntity findWithStudentPeriodNameByRegisterPublicId(String registerPublicId) { RegisterEntity register = registerRepository .readByRegisterApi_RegisterPublicIdAndDeleteStatusNotNull(registerPublicId); return register; } @Override public List<RegisterEntity> findAllRegisterOnlyByIdBetween(Long startId, Long endId) { List<RegisterOnly> allRegisterOnlys = registerRepository.findAllRegisterOnlyByIdBetween(startId,endId); List<RegisterEntity> allRegisters = registerOnlyMapper .toRegisterEntities(allRegisterOnlys, new CycleAvoidingMappingContext()); return allRegisters; } @Override public List<RegisterEntity> selectAllRegisterOnly() { List<RegisterOnly> registerOnlys = registerRepository.findAllRegisterOnly(); registerOnlys.sort(Comparator.comparing(RegisterOnly::getId)); List<RegisterEntity> allRegisters = registerOnlyMapper .toRegisterEntities(registerOnlys, new CycleAvoidingMappingContext()); return allRegisters; } @Override public RegisterEntity findFirstByIdLessThanOrderByIdDesc(Long registerId) { RegisterEntity register = registerRepository .findFirstByIdLessThanEqualOrderByIdDesc(registerId); return register; } @Override public Long selectRegisterLastSequenceNumber() { return registerRepository.selectLastSequenceNumber(); } }
[ "omidashouri@gmail.com" ]
omidashouri@gmail.com
096066126d887ffb27e31897feb60a436e434d65
cb48d006a057fa73e6619a3706692a367958b87e
/src/main/java/com/steiner/web/rest/UserResource.java
41e3e5b6dfcb38f92542b2c4d57fd19427e37bdc
[]
no_license
BulkSecurityGeneratorProject1/crud
f7bd0fd6010d4b0b07eca33d3c9be11f619fc7e6
a91db198b1160fe304296f10b754d75d95a406d9
refs/heads/master
2022-12-15T14:46:02.691292
2017-05-20T22:44:02
2017-05-20T22:44:02
296,632,433
0
0
null
2020-09-18T13:42:32
2020-09-18T13:42:31
null
UTF-8
Java
false
false
8,511
java
package com.steiner.web.rest; import com.steiner.config.Constants; import com.codahale.metrics.annotation.Timed; import com.steiner.domain.User; import com.steiner.repository.UserRepository; import com.steiner.security.AuthoritiesConstants; import com.steiner.service.MailService; import com.steiner.service.UserService; import com.steiner.service.dto.UserDTO; import com.steiner.web.rest.vm.ManagedUserVM; import com.steiner.web.rest.util.HeaderUtil; import com.steiner.web.rest.util.PaginationUtil; import io.github.jhipster.web.util.ResponseUtil; import io.swagger.annotations.ApiParam; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.security.access.annotation.Secured; import org.springframework.web.bind.annotation.*; import java.net.URI; import java.net.URISyntaxException; import java.util.*; /** * REST controller for managing users. * * <p>This class accesses the User entity, and needs to fetch its collection of authorities.</p> * <p> * For a normal use-case, it would be better to have an eager relationship between User and Authority, * and send everything to the client side: there would be no View Model and DTO, a lot less code, and an outer-join * which would be good for performance. * </p> * <p> * We use a View Model and a DTO for 3 reasons: * <ul> * <li>We want to keep a lazy association between the user and the authorities, because people will * quite often do relationships with the user, and we don't want them to get the authorities all * the time for nothing (for performance reasons). This is the #1 goal: we should not impact our users' * application because of this use-case.</li> * <li> Not having an outer join causes n+1 requests to the database. This is not a real issue as * we have by default a second-level cache. This means on the first HTTP call we do the n+1 requests, * but then all authorities come from the cache, so in fact it's much better than doing an outer join * (which will get lots of data from the database, for each HTTP call).</li> * <li> As this manages users, for security reasons, we'd rather have a DTO layer.</li> * </ul> * <p>Another option would be to have a specific JPA entity graph to handle this case.</p> */ @RestController @RequestMapping("/api") public class UserResource { private final Logger log = LoggerFactory.getLogger(UserResource.class); private static final String ENTITY_NAME = "userManagement"; private final UserRepository userRepository; private final MailService mailService; private final UserService userService; public UserResource(UserRepository userRepository, MailService mailService, UserService userService) { this.userRepository = userRepository; this.mailService = mailService; this.userService = userService; } /** * POST /users : Creates a new user. * <p> * Creates a new user if the login and email are not already used, and sends an * mail with an activation link. * The user needs to be activated on creation. * </p> * * @param managedUserVM the user to create * @return the ResponseEntity with status 201 (Created) and with body the new user, or with status 400 (Bad Request) if the login or email is already in use * @throws URISyntaxException if the Location URI syntax is incorrect */ @PostMapping("/users") @Timed @Secured(AuthoritiesConstants.ADMIN) public ResponseEntity createUser(@RequestBody ManagedUserVM managedUserVM) throws URISyntaxException { log.debug("REST request to save User : {}", managedUserVM); if (managedUserVM.getId() != null) { return ResponseEntity.badRequest() .headers(HeaderUtil.createFailureAlert(ENTITY_NAME, "idexists", "A new user cannot already have an ID")) .body(null); // Lowercase the user login before comparing with database } else if (userRepository.findOneByLogin(managedUserVM.getLogin().toLowerCase()).isPresent()) { return ResponseEntity.badRequest() .headers(HeaderUtil.createFailureAlert(ENTITY_NAME, "userexists", "Login already in use")) .body(null); } else if (userRepository.findOneByEmail(managedUserVM.getEmail()).isPresent()) { return ResponseEntity.badRequest() .headers(HeaderUtil.createFailureAlert(ENTITY_NAME, "emailexists", "Email already in use")) .body(null); } else { User newUser = userService.createUser(managedUserVM); mailService.sendCreationEmail(newUser); return ResponseEntity.created(new URI("/api/users/" + newUser.getLogin())) .headers(HeaderUtil.createAlert( "A user is created with identifier " + newUser.getLogin(), newUser.getLogin())) .body(newUser); } } /** * PUT /users : Updates an existing User. * * @param managedUserVM the user to update * @return the ResponseEntity with status 200 (OK) and with body the updated user, * or with status 400 (Bad Request) if the login or email is already in use, * or with status 500 (Internal Server Error) if the user couldn't be updated */ @PutMapping("/users") @Timed @Secured(AuthoritiesConstants.ADMIN) public ResponseEntity<UserDTO> updateUser(@RequestBody ManagedUserVM managedUserVM) { log.debug("REST request to update User : {}", managedUserVM); Optional<User> existingUser = userRepository.findOneByEmail(managedUserVM.getEmail()); if (existingUser.isPresent() && (!existingUser.get().getId().equals(managedUserVM.getId()))) { return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, "emailexists", "Email already in use")).body(null); } existingUser = userRepository.findOneByLogin(managedUserVM.getLogin().toLowerCase()); if (existingUser.isPresent() && (!existingUser.get().getId().equals(managedUserVM.getId()))) { return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, "userexists", "Login already in use")).body(null); } Optional<UserDTO> updatedUser = userService.updateUser(managedUserVM); return ResponseUtil.wrapOrNotFound(updatedUser, HeaderUtil.createAlert("A user is updated with identifier " + managedUserVM.getLogin(), managedUserVM.getLogin())); } /** * GET /users : get all users. * * @param pageable the pagination information * @return the ResponseEntity with status 200 (OK) and with body all users */ @GetMapping("/users") @Timed public ResponseEntity<List<UserDTO>> getAllUsers(@ApiParam Pageable pageable) { final Page<UserDTO> page = userService.getAllManagedUsers(pageable); HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, "/api/users"); return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK); } /** * GET /users/:login : get the "login" user. * * @param login the login of the user to find * @return the ResponseEntity with status 200 (OK) and with body the "login" user, or with status 404 (Not Found) */ @GetMapping("/users/{login:" + Constants.LOGIN_REGEX + "}") @Timed public ResponseEntity<UserDTO> getUser(@PathVariable String login) { log.debug("REST request to get User : {}", login); return ResponseUtil.wrapOrNotFound( userService.getUserWithAuthoritiesByLogin(login) .map(UserDTO::new)); } /** * DELETE /users/:login : delete the "login" User. * * @param login the login of the user to delete * @return the ResponseEntity with status 200 (OK) */ @DeleteMapping("/users/{login:" + Constants.LOGIN_REGEX + "}") @Timed @Secured(AuthoritiesConstants.ADMIN) public ResponseEntity<Void> deleteUser(@PathVariable String login) { log.debug("REST request to delete User: {}", login); userService.deleteUser(login); return ResponseEntity.ok().headers(HeaderUtil.createAlert( "A user is deleted with identifier " + login, login)).build(); } }
[ "thiagosteiner@gmail.com" ]
thiagosteiner@gmail.com
215d56e4db011d081645e1228cdca674e699bcad
01554abb15f5c0adae4d766282980c2ec414b3b0
/code/oldWorkspacesEclipse/workspaceMars/TuringMach2/src/Console.java
9777bfff7c264bd417996fa4081061a90fac6624
[]
no_license
EmilZahariev/MyWorkAndAssignments
3f8cd83377c81b4a0a42e02e25767fbe6141db5d
c04b5b09584fe6dc640210979ef54a37d5a1dfaa
refs/heads/master
2021-06-20T12:49:51.688668
2017-07-26T20:05:00
2017-07-26T20:05:00
98,434,741
1
1
null
null
null
null
UTF-8
Java
false
false
20,791
java
/** * TuringMachineConsole handles all of the user interface operations. * The console maps various AWT components onto the screen, and manages * the buttons. The user can click on the buttons and fill out dialog * boxes to send information back to the TuringMachine. The information * gathered from the Console is used to modify rules, retrieve rules from * a URL, start the machine, and cause the machine to show its rules. * * @author Tom Briggs * @version %I%, %G% * @see TuringMachine * @see TuringMachineEnvironment * @since JDK1.1 */ import java.awt.*; import java.util.*; import Environment; public class Console extends Environment { Button okay, show, input, rules, url,inputtape; // buttons TextArea textarea; // text window Panel panel, button; Environment theParent; GridBagLayout gridbag = new GridBagLayout(); Vector ConsoleBuffer = new Vector(); int StartRow; /** * Constructs the Turing machine console. Creates two panels, one * to hold the text area, and another to hold the various buttons. * The overal panel holds only these two panels. * The layout manager for the console is GridBag. This gives greater * control over the placement of the widgets on the screen. Further, * the layout manager controls resize events. * <P> * The console uses AWT 1.1's ActionListener, which is new for AWT. * A more versatile version would use the older, deprecated event handler. * <P> * This event needs to pass strings back and forth other other TM * objects. This is actually the job of the TMEnvironment. To facilitate * this message passing, the TMEnvironment registers itself when it * instantiates the TMConsole. * * @param TuringMachineEnvironment Pass strings back and forth * @see TuringMachineEnvironment * @see java.awt.* * @see GridBagLayout * @see Panel * @see Button * @see TextArea * @see Label * @see ActionListener * @see constrain */ public Console( Environment E) // Environment parent ) { theParent = E; StartRow = 0; // setup the gui environment. Since this is applet, // the TMEnvironment is a child of the default display panel. setLayout(gridbag); // set the layout manager to be gridbag. // create a panel to hold a label and text area, and make it a gridbag panel = new Panel(); panel.setLayout(gridbag); // create another panel to hold buttons, and make it a gridbag. button = new Panel(); button.setLayout(gridbag); // create a series of buttons. okay = new Button("Start"); input = new Button("Input Language"); rules = new Button("Add / Edit Rules"); url = new Button("Load Rule from URL"); show = new Button("Show"); inputtape = new Button("Input Tape"); // create a textarea, which cannot be edited // the text area does not send any pertient information, // so there is no action listener on this item. textarea = new TextArea (20,70); textarea.setEditable(false); // constrain setups the information with the layout manager. // every object that is going to be controlled as a gridbag // needs to be constrained. Constrain also adds the item // which makes it visible. // constrain is not part of AWT, but is from 'java in a nutshell' // which presented several methods of constrain (all implemented here) // which make it very easy to use. constrain(panel, new Label("Console Messages"), 0,0,5,1); constrain(panel, textarea, 0,1,1,1, GridBagConstraints.BOTH, GridBagConstraints.NORTHWEST, 0.0, 0.0, 10, 10,5,5); constrain(button, okay, 0,2,1,1, GridBagConstraints.NONE, GridBagConstraints.WEST, 0.3, 0.0, 10, 10,5,5); constrain(button, show, 1,2,1,1, GridBagConstraints.NONE, GridBagConstraints.CENTER, 0.3, 0.0, 10, 10,5,5); constrain(button, input, 2,2,1,1, GridBagConstraints.NONE, GridBagConstraints.EAST, 0.3, 0.0, 10, 10,5,5); constrain(button, rules, 3,2,1,1, GridBagConstraints.NONE, GridBagConstraints.EAST, 0.3, 0.0, 10, 10,5,5); constrain(button, url, 4,2,1,1, GridBagConstraints.NONE, GridBagConstraints.EAST, 0.3, 0.0, 10, 10,5,5); constrain(button, inputtape, 5,2,1,1, GridBagConstraints.NONE, GridBagConstraints.EAST, 0.3, 0.0, 10, 10,5,5); constrain(this, panel, 0,0,1,1,GridBagConstraints.VERTICAL, GridBagConstraints.NORTHWEST, 0.0,1.0,10,10,5,5); constrain(this, button, 0,1,2,1,GridBagConstraints.HORIZONTAL, GridBagConstraints.CENTER,1.0, 0.0, 5,0,0,0); } /** * Set the contents of the console buffer, and then set the contents of * the text area to the console buffer. * * @param text text to display on the window * @see TextArea */ public void SetText(String text) { // ConsoleBuffer.removeAllElements(); ConsoleBuffer.addElement(text); StartRow++; textarea.setText(text); } /** * Append a message to the ConsoleBuffer. If the buffer is over a set * limit, truncate it. If the buffer is truncated, set the text of the * text area to the contents of the buffer, otherwise, append the text * onto the text area. Note, there is a stepped truncation / overflow * in place here, that is, if the buffer goes over a certain size, it * is not truncated back to maximum size, but 1k less. * * @param text text to add to the display * @see TextArea * @see StringBuffer */ public void SendText(String text) { if (ConsoleBuffer.size() - StartRow > 150 ) TrimConsoleBuffer( ); textarea.appendText(text); ConsoleBuffer.addElement(text); } void TrimConsoleBuffer( ) { int loop, start, end; String NewConsoleText = new String(""); end = ConsoleBuffer.size(); start = StartRow+100; for (loop = start; loop < end; loop++) { NewConsoleText.concat( (String) ConsoleBuffer.elementAt(loop)); } StartRow = start; SetText( NewConsoleText ); } /** * This is the full version of constrain. The general idea of this * constrain is to create a new GridBag constraint object for the * object to be constrained. Constrains specify information for the * layout manager, such as what directions to grow or shrink the item * when the window itself is resized, where to place the item, what margin * to use around the item, what row and column within the grid to place the * item (relative to its size). * <P> * In addition to creating this meta-information about a container, also * create an inset if it is required. Finally, constrain the object with * the layout manager, and add the item to the display. This makes the * item visible. * <P> * NOTE: the other constrain which are overloaded in this object all * eventually call this version of constrain. * * @param container where to add the object * @param component object to add * @param grid_x horizontal location in grid * @param grid_y vertical location in grid * @param grid_width width of object in grid cells * @param grid_height height of object in grid cells * @param fill directions which object can be resized * @param anchor where to anchor the component in its cells * @param weight_x weight given to object on horizontal resize * <code>0</code>no resize, * <code>1.0</code>max weight resize, * all other values in ratio. * @param weight_y weight given to object on vertical resize * @param top top margin * @param left left margin * @param bottom bottom margin * @param right right margin * @see GridBagConstraints */ public void constrain(Container container, Component component, int grid_x, int grid_y, int grid_width, int grid_height, int fill, int anchor, double weight_x, double weight_y, int top, int left, int bottom, int right) { // Create a new constraint object GridBagConstraints c = new GridBagConstraints(); // Copy variables from call into new constraint object c.gridx = grid_x; c.gridy = grid_y; c.gridwidth = grid_width; c.gridheight = grid_height; c.fill = fill; c.anchor = anchor; c.weightx = weight_x; c.weighty = weight_y; // Determine if an insent needs to be created. // Insets determine the top, bottom, left, and right margins // of an object. Value is in pixels. if (top + bottom + left + right > 0) c.insets = new Insets(top, left, bottom, right); // The following expression is: // method: get the layout manager instanciated with the given container, // typecast: typecast it as a GridBagLayout(compile/abort if cannot) // method: GridBagLayout.setContraints to associate layout info with // a given component. // Add the component to the container with new layouts ((GridBagLayout)container.getLayout()).setConstraints(component,c); container.add(component); } /** * overloaded constrain which only gives x,y,width,and height options * * @param container where to add the object * @param component object to add * @param grid_x horizontal location in grid * @param grid_y vertical location in grid * @param grid_width width of object in grid cells * @param grid_height height of object in grid cells * @see constrain * @see GridBagConstraints */ public void constrain (Container container, Component component, int grid_x, int grid_y, int grid_width, int grid_height) { constrain(container, component, grid_x, grid_y, grid_width, grid_height, GridBagConstraints.NONE, GridBagConstraints.NORTHWEST, 0.0, 0.0, 0,0,0,0); } /** * constrain a component that doesn't grow. * * @param container where to add the object * @param component object to add * @param grid_x horizontal location in grid * @param grid_y vertical location in grid * @param grid_width width of object in grid cells * @param grid_height height of object in grid cells * @param fill directions which object can be resized * @param anchor where to anchor the component in its cells * @param weight_x weight given to object on horizontal resize */ public void constrain (Container container, Component component, int grid_x, int grid_y, int grid_width, int grid_height, int top, int left, int bottom, int right) { constrain(container,component, grid_x, grid_y, grid_width, grid_height, GridBagConstraints.NONE, GridBagConstraints.NORTHWEST, 0.0, 0.0, top, left, bottom, right); } /** * handle an action event (button click, etc) * * @param event * @deprecated * @see actionEvent */ public boolean action (Event event, Object arg) { if (event.target == show) { theParent.Show(); } else if (event.target == okay) { theParent.Run(); // start the TM running } else if (event.target == input) { createDialog("Tape Language: ", "Enter the Tape Languaage: ", 0); } else if (event.target == url) { createDialog("Load Rule Table through URL", "Enter a URL to the rule table: ", 3); theParent.LoadRuleURL(); } else if (event.target == rules) { Frame f = new Frame("Add Rules Dialog"); AddRuleDialog addDialog = new AddRuleDialog(theParent, f,"Add New TM Rules", true, theParent.getString(0), theParent.getString(0)); addDialog.show(); } else if (event.target == inputtape) { createDialog("Input Tape", "Enter the Input Tape: ", 2); } else { return false; } return true; } /** * Create a diloag box with a title, a prompt, and which TM string to * modify; 0 = input language, 1 = not used, 2 = input tape, 3 = URL * * @param Title title of the dialog box * @param Prompt prompt to give users * @param which which string to get and send back to TM */ public void createDialog(String Title, String Prompt, int Which) { Frame f = new Frame(Title); System.out.println("createDialog\n"); AddLanguageDialog d = new AddLanguageDialog(theParent, f, Title, true, theParent.getString(Which), Prompt, Which); d.show(); } } // End Console Task /** * create a dialog box to accept rules from the user. * the rule editor will replace an existing rule or add a new one * using the criteria described for TMRuleTable.FindRule. * AddRuleDialog creates a modal pop-up dialog box, which have * several buttons, labels, and choice fields. * The rule dialog sends the rule to be added to the Environment, * which in turn sends it to the Rule table. * * @author Tom Briggs */ class AddRuleDialog extends Dialog { Environment E; TextField ruleField, nextField; // Text entry fields Choice readChoice, writeChoice, directionChoice; // Choice fields Button okay, cancel, exit; // some nice buttons Label label, ruleP, readP,writeP,nextP,directP; // some prompts Panel Top, Middle, Bottom; // panels to hold everything together GridBagLayout G; // GridBag Layout Manager GridBagConstraints GC; // GridBag Constraints int LoopIndex; // a loop index char ch; // hold a misc. character String str = new String(); // Misc. string /** * construct and instantiate an AddRuleDialog box * * @param f parent frame to map itself into * @param title title of dialog * @param modal modality of this box * @param InputLanguage Input alphabet * @param TapeLanguage Tape alphabet */ AddRuleDialog(Environment Env , Frame f, String title, boolean modal, String InputLanguage, String TapeLanguage ) { // send the frame constructor messsage super(f,title,modal); E = Env; G = new GridBagLayout(); // create a new gridbag this.setLayout(G); // make it the layoutmanager Top = new Panel(); // create 3 panels Middle = new Panel(); Bottom = new Panel(); Top.setLayout(new GridLayout(1,1,15,15)); // set their layouts Middle.setLayout(new GridLayout(6,2,15,15)); Bottom.setLayout(new GridLayout(1,5,15,15)); // make the labels and inputs label = new Label("Enter new rules"); Top.add(label); ruleP = new Label("Rule number: "); ruleField = new TextField(2); Middle.add(ruleP); Middle.add(ruleField); readP = new Label("Input Character: "); readChoice = new Choice(); // because Read Choice is a string, and the ChoiceField wants an // an array, loop across the string, pick out the chars, and // build the choice field readChoice.addItem(" "); for (LoopIndex = 0; LoopIndex < InputLanguage.length(); LoopIndex++) { ch = InputLanguage.charAt(LoopIndex); str = ""; str = str + ch; readChoice.addItem(str); } Middle.add(readP); Middle.add(readChoice); writeP = new Label("Write Character: "); writeChoice = new Choice(); writeChoice.addItem(" "); for (LoopIndex = 0; LoopIndex < TapeLanguage.length(); LoopIndex++) { ch = TapeLanguage.charAt(LoopIndex); str = ""; str = str + ch; writeChoice.addItem(str); } Middle.add(writeP); Middle.add(writeChoice); nextP = new Label("Next Rule: "); nextField = new TextField(2); Middle.add(nextP); Middle.add(nextField); directP = new Label("Direction: "); directionChoice = new Choice(); directionChoice.addItem("Right"); directionChoice.addItem("Left"); directionChoice.select("Right"); Middle.add(directP); Middle.add(directionChoice); // Add some buttons okay = new Button("Okay"); Bottom.add( okay); cancel = new Button("Cancel"); Bottom.add( cancel); exit = new Button("Exit"); Bottom.add(exit); // Create constraint information GC = new GridBagConstraints(); GC.gridx = 1; GC.gridy = 1; GC.gridwidth=100; GC.gridheight=1; GC.fill=GridBagConstraints.NONE; GC.ipadx = 10; GC.ipady = 10; GC.anchor= GridBagConstraints.NORTHWEST; GC.weightx = 0.0; GC.weighty = 0.0; G.setConstraints(Top,GC); this.add(Top); GC.gridy = 2; GC.gridheight= 6; GC.gridwidth = 100; GC.anchor = GridBagConstraints.CENTER; G.setConstraints(Middle,GC); this.add(Middle); GC.gridy = 9; GC.gridwidth = 100; GC.gridheight = 1; GC.anchor = GridBagConstraints.SOUTH; G.setConstraints(Bottom,GC); // Add and pack the manager this.add(Bottom); this.pack(); } public boolean action(Event event, Object arg) { String Rule, Read, Write, Next, Direction; if (event.target == exit) { this.hide(); this.dispose(); } else if (event.target == okay) { Rule = new String(); Read = new String(); Write = new String(); Next = new String(); Direction = new String(); Rule = ruleField.getText(); Read = readChoice.getSelectedItem(); Write = writeChoice.getSelectedItem(); Next = nextField.getText(); Direction = directionChoice.getSelectedItem(); ruleField.setText(""); nextField.setText(""); if (Direction == "Right") Direction = "R"; else if (Direction == "Left") Direction = "L"; else Direction = "-"; E.SendRule(Rule, Read, Write, Direction, Next); } // end if okay else { return false; } return true; } // end Action event } // end Class AddRuleDialog class AddLanguageDialog extends Dialog { Environment E; TextField LangField; Button okay, cancel, exit; Label label, langP; Panel Top, Middle, Bottom; GridBagLayout G; GridBagConstraints GC; String Language; int Which; AddLanguageDialog(Environment Env, Frame f, String title, boolean modal, String theLanguage, String LabelText, int which ) { super(f,title,modal); System.out.println("AddLanguagedialog"); E = Env; Language = theLanguage; Which = which; G = new GridBagLayout(); this.setLayout(G); Top = new Panel(); Middle = new Panel(); Bottom = new Panel(); Top.setLayout(new GridLayout(1,1,15,15)); Middle.setLayout(new GridLayout(1,8,10,10)); Bottom.setLayout(new GridLayout(1,5,15,15)); label = new Label(LabelText); Top.add(label); // langP - P = Prompt // langP = new Label("Enter Language: "); if (which == 3) LangField = new TextField(40); else LangField = new TextField(10); LangField.setText(Language); Middle.add(langP); Middle.add(LangField); okay = new Button("Okay"); Bottom.add( okay); cancel = new Button("Cancel"); Bottom.add( cancel); exit = new Button("Exit"); Bottom.add(exit); GC = new GridBagConstraints(); GC.gridx = 1; GC.gridy = 1; GC.gridwidth=1; GC.gridheight=1; GC.fill=GridBagConstraints.NONE; GC.ipadx = 10; GC.ipady = 10; GC.anchor= GridBagConstraints.NORTHWEST; GC.weightx = 0.0; GC.weighty = 0.0; G.setConstraints(Top,GC); this.add(Top); GC.gridy = 1; GC.gridheight= 1; GC.gridwidth = 2; GC.anchor = GridBagConstraints.CENTER; G.setConstraints(Middle,GC); this.add(Middle); GC.gridy = 6; GC.gridwidth = 1; GC.gridheight = 1; GC.anchor = GridBagConstraints.SOUTH; G.setConstraints(Bottom,GC); this.add(Bottom); this.pack(); } public boolean action (Event event, Object arg) { if (event.target == exit) { this.hide(); this.dispose(); } else if (event.target == cancel) { LangField.setText(Language); } else if (event.target == okay) { E.sendString( LangField.getText(), Which ); this.hide(); this.dispose(); } // end if else { return false; } return true; } // end ActionPerformed } // end Language Dialog
[ "ezahariev94@gmail.com" ]
ezahariev94@gmail.com
ff8e775459c72681a33390b6445eff9347830b83
1d0287df21254b0ebe8bea778436d2118e633a7d
/src/main/java/org/wechatapplet/service/Impl/RenzhengServiceImpl.java
ba2a0b039ab089eb9ab61b5e010ae37427222234
[]
no_license
DaZemommy/WeChatApplet2
a89f867eadb0314c3f1d60dd374e0d8fa5991eff
264779bd46685da653f60634294908064b7bafdd
refs/heads/master
2020-12-30T11:27:26.657017
2017-06-07T10:20:09
2017-06-07T10:20:09
91,553,843
0
0
null
null
null
null
UTF-8
Java
false
false
3,900
java
package org.wechatapplet.service.Impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.wechatapplet.dao.RenzhengDao; import org.wechatapplet.model.ListResult; import org.wechatapplet.model.Renzheng; import org.wechatapplet.model.RenzhengExample; import org.wechatapplet.model.RenzhengExample.Criteria; import org.wechatapplet.service.RenzhengService; import org.wechatapplet.utils.RandomUtil; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; @Service("RenzhengService") public class RenzhengServiceImpl implements RenzhengService { @Autowired private RenzhengDao renzhengDao; @Override public void addRenzheng(Renzheng renzheng) { String rKey = "XCX"+RandomUtil.getResult(); RenzhengExample renzhengExample = new RenzhengExample(); Criteria criteria = renzhengExample.createCriteria(); criteria.andRkeyEqualTo(rKey); List<Renzheng> list = renzhengDao.selectByExample(renzhengExample); if (list.size()>0) { renzheng.setRkey("XCX"+RandomUtil.getResult()); renzhengDao.insert(renzheng); } //自动生成证书 renzheng.setRkey(rKey); renzhengDao.insert(renzheng); } /** * 认证显示(有条件) */ @Override public ListResult showList(int pageNum, int pageSize, String sousuo) { PageHelper.startPage(pageNum+1, pageSize); RenzhengExample renzhengExample = new RenzhengExample(); Criteria criteria = renzhengExample.createCriteria(); criteria.andRnameLike("%"+sousuo+"%"); List<Renzheng> list = renzhengDao.selectByExample(renzhengExample); if (list.size()>0) { PageInfo<Renzheng> pageInfo = new PageInfo<Renzheng>(list); pageInfo.setList(list); ListResult listResult = new ListResult(); listResult.setList(pageInfo.getList()); listResult.setTotal((int)pageInfo.getTotal()); return listResult; } return showList2(pageNum, pageSize, sousuo); } //模糊查询证书(上面方法的子方法) public ListResult showList2(int pageNum, int pageSize, String sousuo) { PageHelper.startPage(pageNum+1, pageSize); RenzhengExample renzhengExample = new RenzhengExample(); Criteria criteria = renzhengExample.createCriteria(); criteria.andRkeyLike("%"+sousuo+"%"); List<Renzheng> list = renzhengDao.selectByExample(renzhengExample); if (list.size()>0) { PageInfo<Renzheng> pageInfo = new PageInfo<Renzheng>(list); pageInfo.setList(list); ListResult listResult = new ListResult(); listResult.setList(pageInfo.getList()); listResult.setTotal((int)pageInfo.getTotal()); return listResult; } return null; } /** * 认证显示(无条件) */ @Override public ListResult showListNoQuery(int pageNum, int pageSize) { PageHelper.startPage(pageNum+1, pageSize); RenzhengExample renzhengExample = new RenzhengExample(); List<Renzheng> list = renzhengDao.selectByExample(renzhengExample); PageInfo<Renzheng> pageInfo = new PageInfo<Renzheng>(list); ListResult listResult = new ListResult(); listResult.setList(pageInfo.getList()); listResult.setTotal((int)pageInfo.getTotal()); return listResult; } @Override public void delRenzheng(Renzheng renzheng) { RenzhengExample renzhengExample = new RenzhengExample(); Criteria criteria = renzhengExample.createCriteria(); criteria.andRnameEqualTo(renzheng.getRname()); renzhengDao.deleteByExample(renzhengExample); } @Override public Renzheng findOne(Renzheng renzheng) { RenzhengExample renzhengExample = new RenzhengExample(); Criteria criteria = renzhengExample.createCriteria(); criteria.andRnameEqualTo(renzheng.getRname()); List<Renzheng> list = renzhengDao.selectByExample(renzhengExample); if (list.size()>0) { return list.get(0); } return null; } @Override public void editRenzheng(Renzheng renzheng) { renzhengDao.updateByPrimaryKeySelective(renzheng); } }
[ "923457798@qq.com" ]
923457798@qq.com
7ac9057329ec276b6fd675919a4e1ba3ed23694e
6189252b6bfabf326452a2133e4f53a95a7422fe
/lab403-DeviceAPI-Web/src/main/java/egovframework/hyb/add/itf/web/EgovInterfaceAndroidAPIController.java
0e9e62b660e37cbff832add7f64d5af553952270
[]
no_license
sec9590/egovframe
d013fd542284e3ee4bd5ed206bef84958696b9c2
7103722df0d10ff76a4b6dba10469f7c9da4e4f5
refs/heads/master
2022-12-16T06:32:46.576711
2019-07-04T02:09:43
2019-07-04T02:09:43
194,581,045
0
1
null
2022-12-06T00:32:16
2019-07-01T01:42:10
Java
UTF-8
Java
false
false
10,299
java
/* * Copyright 2008-2009 the original author or authors. * * 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 egovframework.hyb.add.itf.web; import egovframework.hyb.add.itf.service.EgovInterfaceAndroidAPIService; import egovframework.hyb.add.itf.service.InterfaceAndroidAPIDefaultVO; import egovframework.hyb.add.itf.service.InterfaceAndroidAPIVO; import egovframework.rte.fdl.property.EgovPropertyService; import javax.annotation.Resource; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; 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.ResponseBody; import org.springframework.web.bind.support.SessionStatus; import org.springframework.web.servlet.ModelAndView; /** * @Class Name : EgovInterfaceAndroidAPIController * @Description : EgovInterfaceAndroidAPIController Controller Class * @Modification Information * @ * @ 수정일 수정자 수정내용 * @ --------- --------- ------------------------------- * @ 2012.07.09 나신일 최초생성 * * @author 모바일 디바이스 API 팀 * @since 2012. 07. 09 * @version 1.0 * @see * * Copyright (C) by MOPAS All right reserved. */ @Controller public class EgovInterfaceAndroidAPIController { /** EgovInterfaceAPIService */ @Resource(name = "EgovInterfaceAndroidAPIService") private EgovInterfaceAndroidAPIService egovInterfaceAPIService; /** propertiesService */ @Resource(name = "propertiesService") protected EgovPropertyService propertiesService; /** * 회원가입 정보를 등록한다. * * @param searchVO * - 등록할 정보가 담긴 InterfaceAPIDefaultVO * @param interfaceVO * @return MedelAndView(Json) * @exception Exception */ @RequestMapping("/itf/addInterfaceInfo.do") public ModelAndView addInterfaceInfo( @ModelAttribute("searchVO") InterfaceAndroidAPIDefaultVO searchVO, InterfaceAndroidAPIVO interfaceVO, BindingResult bindingResult, Model model, SessionStatus status) throws Exception { ModelAndView jsonView = new ModelAndView("jsonView"); int cnt = egovInterfaceAPIService .selectInterfaceInfoListTotCnt(interfaceVO); if (cnt > 0) { jsonView.addObject("resultState", "FAIL"); jsonView.addObject("resultMessage", "ID가 존재합니다."); } else { int success = egovInterfaceAPIService .insertInterfaceInfo(interfaceVO); if (success > 0) { jsonView.addObject("resultState", "OK"); jsonView.addObject("resultMessage", "가입에 성공하였습니다."); } else { jsonView.addObject("resultState", "FAIL"); jsonView.addObject("resultMessage", "가입에 실패하였습니다."); } } return jsonView; } /** * 회원가입 정보를 등록한다. * * @param searchVO * - 등록할 정보가 담긴 InterfaceAPIDefaultVO * @param InterfaceAndroidAPIVO * @return InterfaceAndroidAPIVO (XML) * @exception Exception */ @RequestMapping("/itf/xml/addInterfaceInfo.do") public @ResponseBody InterfaceAndroidAPIVO addInterfaceInfoXml( @ModelAttribute("searchVO") InterfaceAndroidAPIDefaultVO searchVO, InterfaceAndroidAPIVO interfaceVO, BindingResult bindingResult, Model model, SessionStatus status) throws Exception { int cnt = egovInterfaceAPIService .selectInterfaceInfoListTotCnt(interfaceVO); InterfaceAndroidAPIVO interfaceAPIVO = new InterfaceAndroidAPIVO(); if (cnt > 0) { interfaceAPIVO.setResultState("FAIL"); interfaceAPIVO.setResultMessage("ID가 존재합니다."); } else { int success = egovInterfaceAPIService .insertInterfaceInfo(interfaceVO); if (success > 0) { interfaceAPIVO.setResultState("OK"); interfaceAPIVO.setResultMessage("가입에 성공하였습니다."); } else { interfaceAPIVO.setResultState("FAIL"); interfaceAPIVO.setResultMessage("가입에 실패하였습니다."); } } return interfaceAPIVO; } /** * 로그인을 한다. * * @param interfaceVO * - 로그인 할 정보가 담긴 InterfaceAndroidAPIVO * @param status * @return MedelAndView(Json) * @exception Exception */ @RequestMapping("/itf/logIn.do") public ModelAndView logIn( @ModelAttribute("searchVO") InterfaceAndroidAPIDefaultVO searchVO, InterfaceAndroidAPIVO interfaceVO, BindingResult bindingResult, Model model, SessionStatus status) throws Exception { ModelAndView jsonView = new ModelAndView("jsonView"); InterfaceAndroidAPIVO interfaceAndroidAPIVO = null; interfaceAndroidAPIVO = egovInterfaceAPIService .selectInterfaceInfo(interfaceVO); if (interfaceAndroidAPIVO == null) { int cnt = egovInterfaceAPIService.selectInterfaceInfoListTotCnt(interfaceVO); if(cnt > 0) { jsonView.addObject("resultState", "FAIL"); jsonView.addObject("resultMessage", "패스워드가 일치하지 않습니다."); } else { jsonView.addObject("resultState", "FAIL"); jsonView.addObject("resultMessage", "아이디가 존재하지 않습니다."); } } else { jsonView.addObject("resultState", "OK"); jsonView.addObject("resultMessage", "로그인에 성공하였습니다."); } return jsonView; } /** * 로그인을 한다. * * @param interfaceVO * - 로그인 할 정보가 담긴 InterfaceAndroidAPIVO * @param InterfaceAndroidAPIVO * @return InterfaceAndroidAPIVO (XML) * @exception Exception */ @RequestMapping("/itf/xml/logIn.do") public @ResponseBody InterfaceAndroidAPIVO logInXml( @ModelAttribute("searchVO") InterfaceAndroidAPIDefaultVO searchVO, InterfaceAndroidAPIVO interfaceVO, BindingResult bindingResult, Model model, SessionStatus status) throws Exception { InterfaceAndroidAPIVO interfaceAndroidAPIVO = null; interfaceAndroidAPIVO = egovInterfaceAPIService .selectInterfaceInfo(interfaceVO); if (interfaceAndroidAPIVO == null) { interfaceAndroidAPIVO = new InterfaceAndroidAPIVO(); int cnt = egovInterfaceAPIService.selectInterfaceInfoListTotCnt(interfaceVO); if(cnt > 0) { interfaceAndroidAPIVO.setResultState("FAIL"); interfaceAndroidAPIVO.setResultMessage("패스워드가 일치하지 않습니다."); } else { interfaceAndroidAPIVO.setResultState("FAIL"); interfaceAndroidAPIVO.setResultMessage("아이디가 존재하지 않습니다."); } } else { interfaceAndroidAPIVO.setResultState("OK"); interfaceAndroidAPIVO.setResultMessage("로그인에 성공하였습니다."); } return interfaceAndroidAPIVO; } /** * 회원탈퇴 한다. * * @param interfaceVO * - 탈퇴 할 정보가 담긴 InterfaceAndroidAPIVO * @param status * @return MedelAndView(Json) * @exception Exception */ @RequestMapping("/itf/withdrawal.do") public ModelAndView withdrawal( @ModelAttribute("searchVO") InterfaceAndroidAPIDefaultVO searchVO, InterfaceAndroidAPIVO interfaceVO, BindingResult bindingResult, Model model, SessionStatus status) throws Exception { ModelAndView jsonView = new ModelAndView("jsonView"); int cnt = egovInterfaceAPIService.deleteInterfaceInfo(interfaceVO); if (cnt > 0) { jsonView.addObject("resultState", "OK"); jsonView.addObject("resultMessage", "탈퇴에 성공하였습니다."); } else { jsonView.addObject("resultState", "FAIL"); jsonView.addObject("resultMessage", "탈퇴에 실패하였습니다."); } return jsonView; } /** * 회원탈퇴 한다. * * @param interfaceVO * - 탈퇴 할 정보가 담긴 InterfaceAndroidAPIVO * @param InterfaceAndroidAPIVO * @return InterfaceAndroidAPIVO (XML) * @exception Exception */ @RequestMapping("/itf/xml/withdrawal.do") public @ResponseBody InterfaceAndroidAPIVO withdrawalXml( @ModelAttribute("searchVO") InterfaceAndroidAPIDefaultVO searchVO, InterfaceAndroidAPIVO interfaceVO, BindingResult bindingResult, Model model, SessionStatus status) throws Exception { int cnt = egovInterfaceAPIService.deleteInterfaceInfo(interfaceVO); InterfaceAndroidAPIVO interfaceAPIVO = new InterfaceAndroidAPIVO(); if (cnt > 0) { interfaceAPIVO.setResultState("OK"); interfaceAPIVO.setResultMessage("탈퇴에 성공하였습니다."); } else { interfaceAPIVO.setResultState("FAIL"); interfaceAPIVO.setResultMessage("탈퇴에 실패하였습니다."); } return interfaceAPIVO; } }
[ "sec9590@gmail.com" ]
sec9590@gmail.com
3f0333e99758ce545687db050a951a55126cd0c0
5cf36891c55807aef3e4b1c267193c1e3bcec89a
/app/src/main/java/apps/morad/com/poker/thirdParty/widget/InboxBackgroundScrollView.java
1f8819c7ab8470d6a4f47987b736633d4ba6320a
[]
no_license
Moradf90/p0k3r-m-f-16
dc021b5573c4005137d1a6c784c0afc846b833bc
0ed7e2d01edcf92ff02b3b0549cbae4f536595bc
refs/heads/master
2021-01-10T16:22:31.382742
2016-03-18T15:19:44
2016-03-18T15:19:44
51,206,524
0
0
null
null
null
null
UTF-8
Java
false
false
3,482
java
package apps.morad.com.poker.thirdParty.widget; import android.content.Context; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.graphics.drawable.GradientDrawable; import android.util.AttributeSet; import android.view.MotionEvent; import android.widget.ScrollView; /** * Created by zzt on 2015/1/27. */ public class InboxBackgroundScrollView extends ScrollView{ private boolean mTouchable = true; public boolean needToDrawSmallShadow = false; public boolean needToDrawShadow = false; protected static final int MAX_MENU_OVERLAY_ALPHA = 185; private Drawable mTopSmallShadowDrawable; private Drawable mBottomSmallShadowDrawable; private Drawable mTopShadow = new ColorDrawable(0xff000000); private Drawable mBottomShadow = new ColorDrawable(0xff000000); private int smallShadowHeight; public InboxBackgroundScrollView(Context context) { this(context, null); } public InboxBackgroundScrollView(Context context, AttributeSet attrs) { this(context, attrs, 0); } public InboxBackgroundScrollView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); mTopSmallShadowDrawable = new GradientDrawable( GradientDrawable.Orientation.BOTTOM_TOP, new int[]{0x77101010, 0}); mBottomSmallShadowDrawable = new GradientDrawable( GradientDrawable.Orientation.TOP_BOTTOM, new int[]{0x77101010, 0}); smallShadowHeight = dpToPx(10); } @Override protected void dispatchDraw(Canvas canvas) { super.dispatchDraw(canvas); drawOverlay(canvas); } protected void drawOverlay(Canvas canvas){ if(needToDrawShadow) { mTopShadow.draw(canvas); mBottomShadow.draw(canvas); } if(needToDrawSmallShadow){ mTopSmallShadowDrawable.draw(canvas); mBottomSmallShadowDrawable.draw(canvas); } } public void drawTopShadow(int top, int height, int alpha){ mTopShadow.setBounds(0, top, getWidth(), top+height); mTopShadow.setAlpha(alpha); if(needToDrawSmallShadow) { mTopSmallShadowDrawable.setBounds(0, top + height - smallShadowHeight, getWidth(), top + height); } //invalidate(); } public void drawBottomShadow(int top, int bottom, int alpha){ mBottomShadow.setBounds(0, top, getWidth(), bottom); mBottomShadow.setAlpha(alpha); if(needToDrawSmallShadow) { mBottomSmallShadowDrawable.setBounds(0, top, getWidth(), top + smallShadowHeight); } //invalidate(); } public void setTouchable(boolean touchable){ mTouchable = touchable; } public void setShadowColor(int color){ mTopShadow = new ColorDrawable(color); mBottomShadow = new ColorDrawable(color); } @Override public boolean onTouchEvent(MotionEvent ev) { if(!mTouchable) { /* * just eat the touch event * */ return true; } return super.onTouchEvent(ev); } public int getScrollRange(){ return computeVerticalScrollRange(); } public int dpToPx(int dp){ //不需要context的 return (int) (dp * Resources.getSystem().getDisplayMetrics().density); } }
[ "morad.f.90@gmail.com" ]
morad.f.90@gmail.com
8ef57eb97c95f691f835f235b800c6d3f6c4b347
d44e99520adb4252c25b9511bc63814cf253c6f2
/src/java/com/java/base/dynmic/MyInvocationHandler.java
0aa280a27f0d9c9b13b485dfe8d4bde1bd876420
[]
no_license
loveofyou1/sunNio
8263fa2294c2ed6608dd62c4ed618cf80c090ac1
144a6b68efe208e495e629267b588b1d58fceeff
refs/heads/master
2021-06-24T17:09:41.055548
2021-02-01T01:10:08
2021-02-01T01:10:08
199,293,818
0
0
null
2020-10-13T15:05:34
2019-07-28T13:57:15
Java
UTF-8
Java
false
false
913
java
package com.java.base.dynmic; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; public class MyInvocationHandler implements InvocationHandler { /** * 动态代理执行方法 * * @param proxy 代表动态代理对象 * @param method 代表正在执行的方法 * @param args 代理调用目标方法传入的实参 * @return * @throws Throwable */ public synchronized Object invoke(Object proxy, Method method, Object[] args) throws Throwable { System.out.println("=====正在执行的方法" + method); if (args != null) { System.out.println("下面执行该方法时传入的实参:"); for (Object obj : args) { System.out.println(obj); } } else { System.out.println("调用该方法没有实参。"); } return null; } }
[ "sunwenlei9@126.com" ]
sunwenlei9@126.com
a0fa59ad50e576efd5991cb50a885c5d6ec8bd78
ca8f0323c0b9e9ee20954edcd7395b0bb7047284
/app/src/main/java/com/tansen/example/eventreporter/Comment.java
8bc5902240b2a7d163b067ce9c8b1d0fd7b6c70f
[]
no_license
CHAOSKNIGHT572/EventReporter
4911f8b0396473ab6fce530a259438fe2aa7adc2
904a7fbde21c98c754dfc4f1504fb5aa25287b09
refs/heads/master
2021-04-12T08:43:21.873323
2018-04-02T00:32:40
2018-04-02T00:32:40
126,262,163
0
0
null
null
null
null
UTF-8
Java
false
false
1,166
java
package com.tansen.example.eventreporter; /** * Created by tansen on 4/1/18. */ public class Comment { private String commentId; private String commenter; private String eventId; private String description; private long time; private int good; public String getEventId() { return eventId; } public void setEventId(String eventId) { this.eventId = eventId; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public long getTime() { return time; } public void setTime(long time) { this.time = time; } public int getGood() { return good; } public void setGood(int good) { this.good = good; } public String getCommenter() { return commenter; } public void setCommenter(String commenter) { this.commenter = commenter; } public String getCommentId() { return commentId; } public void setCommentId(String commentId) { this.commentId = commentId; } }
[ "stan04@syr.edu" ]
stan04@syr.edu
e3d40b7e78110d9a544a08c1e6a2e564e146ba4f
aaf3d39e7557811c59b0f7a2bd2a94bb30c4640d
/wheelpicker/src/main/java/com/zpf/wheelpicker/interfaces/ILinkageViewData.java
7589f21fc9dd7133563034e537a1f6cd0fbe3d8e
[]
no_license
FirstLetterZ/Dependence
5c4ca5c6050b7f4e5a59cc4bb2bb8d7191582b7f
5d825bcc96fac61c1516b86f4c68ecad84421fa6
refs/heads/master
2023-08-09T03:29:27.377021
2023-08-03T11:43:10
2023-08-03T11:43:10
173,079,426
3
1
null
null
null
null
UTF-8
Java
false
false
181
java
package com.zpf.wheelpicker.interfaces; import java.util.List; public interface ILinkageViewData<T extends ILinkageViewData<T>> extends IPickerViewData { List<T> getNext(); }
[ "philip@littlelights.ai" ]
philip@littlelights.ai
6c92c95a36506f23dac3cf40d9fab84b37b70633
23a3d50f4ca237c3941e6048e15903736f990221
/build/generated/source/r/debug/android/support/v7/appcompat/R.java
a749f948129cbe42390a55ae1229d0856f3e29ea
[]
no_license
sailingam2/PlaceSaver
e4608ab537cde33667c7040a779fd4dc62cea60a
12ae252c8b5bffe92e9eb8de67328db38c82a867
refs/heads/master
2020-03-21T09:41:36.260275
2018-06-23T15:48:19
2018-06-23T15:48:19
138,412,758
0
0
null
null
null
null
UTF-8
Java
false
false
101,377
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package android.support.v7.appcompat; public final class R { public static final class anim { public static final int abc_fade_in = 0x7f010000; public static final int abc_fade_out = 0x7f010001; public static final int abc_grow_fade_in_from_bottom = 0x7f010002; public static final int abc_popup_enter = 0x7f010003; public static final int abc_popup_exit = 0x7f010004; public static final int abc_shrink_fade_out_from_bottom = 0x7f010005; public static final int abc_slide_in_bottom = 0x7f010006; public static final int abc_slide_in_top = 0x7f010007; public static final int abc_slide_out_bottom = 0x7f010008; public static final int abc_slide_out_top = 0x7f010009; } public static final class attr { public static final int actionBarDivider = 0x7f030001; public static final int actionBarItemBackground = 0x7f030002; public static final int actionBarPopupTheme = 0x7f030003; public static final int actionBarSize = 0x7f030004; public static final int actionBarSplitStyle = 0x7f030005; public static final int actionBarStyle = 0x7f030006; public static final int actionBarTabBarStyle = 0x7f030007; public static final int actionBarTabStyle = 0x7f030008; public static final int actionBarTabTextStyle = 0x7f030009; public static final int actionBarTheme = 0x7f03000a; public static final int actionBarWidgetTheme = 0x7f03000b; public static final int actionButtonStyle = 0x7f03000c; public static final int actionDropDownStyle = 0x7f03000d; public static final int actionLayout = 0x7f03000e; public static final int actionMenuTextAppearance = 0x7f03000f; public static final int actionMenuTextColor = 0x7f030010; public static final int actionModeBackground = 0x7f030011; public static final int actionModeCloseButtonStyle = 0x7f030012; public static final int actionModeCloseDrawable = 0x7f030013; public static final int actionModeCopyDrawable = 0x7f030014; public static final int actionModeCutDrawable = 0x7f030015; public static final int actionModeFindDrawable = 0x7f030016; public static final int actionModePasteDrawable = 0x7f030017; public static final int actionModePopupWindowStyle = 0x7f030018; public static final int actionModeSelectAllDrawable = 0x7f030019; public static final int actionModeShareDrawable = 0x7f03001a; public static final int actionModeSplitBackground = 0x7f03001b; public static final int actionModeStyle = 0x7f03001c; public static final int actionModeWebSearchDrawable = 0x7f03001d; public static final int actionOverflowButtonStyle = 0x7f03001e; public static final int actionOverflowMenuStyle = 0x7f03001f; public static final int actionProviderClass = 0x7f030020; public static final int actionViewClass = 0x7f030021; public static final int activityChooserViewStyle = 0x7f030022; public static final int alertDialogButtonGroupStyle = 0x7f030026; public static final int alertDialogCenterButtons = 0x7f030027; public static final int alertDialogStyle = 0x7f030028; public static final int alertDialogTheme = 0x7f030029; public static final int allowStacking = 0x7f03002b; public static final int alpha = 0x7f03002c; public static final int arrowHeadLength = 0x7f03002f; public static final int arrowShaftLength = 0x7f030030; public static final int autoCompleteTextViewStyle = 0x7f030031; public static final int background = 0x7f030032; public static final int backgroundSplit = 0x7f030033; public static final int backgroundStacked = 0x7f030034; public static final int backgroundTint = 0x7f030035; public static final int backgroundTintMode = 0x7f030036; public static final int barLength = 0x7f030037; public static final int borderlessButtonStyle = 0x7f03003d; public static final int buttonBarButtonStyle = 0x7f030040; public static final int buttonBarNegativeButtonStyle = 0x7f030041; public static final int buttonBarNeutralButtonStyle = 0x7f030042; public static final int buttonBarPositiveButtonStyle = 0x7f030043; public static final int buttonBarStyle = 0x7f030044; public static final int buttonGravity = 0x7f030045; public static final int buttonPanelSideLayout = 0x7f030046; public static final int buttonStyle = 0x7f030048; public static final int buttonStyleSmall = 0x7f030049; public static final int buttonTint = 0x7f03004a; public static final int buttonTintMode = 0x7f03004b; public static final int checkboxStyle = 0x7f03007b; public static final int checkedTextViewStyle = 0x7f03007c; public static final int closeIcon = 0x7f03007e; public static final int closeItemLayout = 0x7f03007f; public static final int collapseContentDescription = 0x7f030080; public static final int collapseIcon = 0x7f030081; public static final int color = 0x7f030084; public static final int colorAccent = 0x7f030085; public static final int colorBackgroundFloating = 0x7f030086; public static final int colorButtonNormal = 0x7f030087; public static final int colorControlActivated = 0x7f030088; public static final int colorControlHighlight = 0x7f030089; public static final int colorControlNormal = 0x7f03008a; public static final int colorPrimary = 0x7f03008b; public static final int colorPrimaryDark = 0x7f03008c; public static final int colorSwitchThumbNormal = 0x7f03008e; public static final int commitIcon = 0x7f03008f; public static final int contentInsetEnd = 0x7f030091; public static final int contentInsetEndWithActions = 0x7f030092; public static final int contentInsetLeft = 0x7f030093; public static final int contentInsetRight = 0x7f030094; public static final int contentInsetStart = 0x7f030095; public static final int contentInsetStartWithNavigation = 0x7f030096; public static final int controlBackground = 0x7f03009e; public static final int customNavigationLayout = 0x7f0300a5; public static final int defaultQueryHint = 0x7f0300a9; public static final int dialogPreferredPadding = 0x7f0300aa; public static final int dialogTheme = 0x7f0300ab; public static final int displayOptions = 0x7f0300ac; public static final int divider = 0x7f0300ad; public static final int dividerHorizontal = 0x7f0300ae; public static final int dividerPadding = 0x7f0300af; public static final int dividerVertical = 0x7f0300b0; public static final int drawableSize = 0x7f0300b2; public static final int drawerArrowStyle = 0x7f0300b3; public static final int dropDownListViewStyle = 0x7f0300b4; public static final int dropdownListPreferredItemHeight = 0x7f0300b5; public static final int editTextBackground = 0x7f0300b6; public static final int editTextColor = 0x7f0300b7; public static final int editTextStyle = 0x7f0300b8; public static final int elevation = 0x7f0300b9; public static final int expandActivityOverflowButtonDrawable = 0x7f0300bd; public static final int gapBetweenBars = 0x7f0300cc; public static final int goIcon = 0x7f0300cd; public static final int height = 0x7f0300cf; public static final int hideOnContentScroll = 0x7f0300d0; public static final int homeAsUpIndicator = 0x7f0300d4; public static final int homeLayout = 0x7f0300d5; public static final int icon = 0x7f0300d6; public static final int iconifiedByDefault = 0x7f0300d7; public static final int imageButtonStyle = 0x7f0300da; public static final int indeterminateProgressStyle = 0x7f0300db; public static final int initialActivityCount = 0x7f0300dd; public static final int isLightTheme = 0x7f0300e0; public static final int itemPadding = 0x7f0300e3; public static final int layout = 0x7f0300eb; public static final int listChoiceBackgroundIndicator = 0x7f030120; public static final int listDividerAlertDialog = 0x7f030121; public static final int listItemLayout = 0x7f030122; public static final int listLayout = 0x7f030123; public static final int listMenuViewStyle = 0x7f030124; public static final int listPopupWindowStyle = 0x7f030125; public static final int listPreferredItemHeight = 0x7f030126; public static final int listPreferredItemHeightLarge = 0x7f030127; public static final int listPreferredItemHeightSmall = 0x7f030128; public static final int listPreferredItemPaddingLeft = 0x7f030129; public static final int listPreferredItemPaddingRight = 0x7f03012a; public static final int logo = 0x7f03012c; public static final int logoDescription = 0x7f03012d; public static final int maxButtonHeight = 0x7f030137; public static final int measureWithLargestChild = 0x7f030138; public static final int multiChoiceItemLayout = 0x7f03014e; public static final int navigationContentDescription = 0x7f03014f; public static final int navigationIcon = 0x7f030150; public static final int navigationMode = 0x7f030151; public static final int overlapAnchor = 0x7f030153; public static final int paddingEnd = 0x7f030154; public static final int paddingStart = 0x7f030155; public static final int panelBackground = 0x7f030156; public static final int panelMenuListTheme = 0x7f030157; public static final int panelMenuListWidth = 0x7f030158; public static final int popupMenuStyle = 0x7f03015c; public static final int popupTheme = 0x7f03015d; public static final int popupWindowStyle = 0x7f03015e; public static final int preserveIconSpacing = 0x7f03015f; public static final int progressBarPadding = 0x7f030161; public static final int progressBarStyle = 0x7f030162; public static final int queryBackground = 0x7f030163; public static final int queryHint = 0x7f030164; public static final int radioButtonStyle = 0x7f030165; public static final int ratingBarStyle = 0x7f030166; public static final int ratingBarStyleIndicator = 0x7f030167; public static final int ratingBarStyleSmall = 0x7f030168; public static final int searchHintIcon = 0x7f030171; public static final int searchIcon = 0x7f030172; public static final int searchViewStyle = 0x7f030174; public static final int seekBarStyle = 0x7f03017a; public static final int selectableItemBackground = 0x7f03017b; public static final int selectableItemBackgroundBorderless = 0x7f03017c; public static final int showAsAction = 0x7f03017f; public static final int showDividers = 0x7f030180; public static final int showText = 0x7f030181; public static final int singleChoiceItemLayout = 0x7f030182; public static final int spinBars = 0x7f030185; public static final int spinnerDropDownItemStyle = 0x7f030186; public static final int spinnerStyle = 0x7f030187; public static final int splitTrack = 0x7f030188; public static final int srcCompat = 0x7f030189; public static final int state_above_anchor = 0x7f03018b; public static final int subMenuArrow = 0x7f030190; public static final int submitBackground = 0x7f030191; public static final int subtitle = 0x7f030193; public static final int subtitleTextAppearance = 0x7f030194; public static final int subtitleTextColor = 0x7f030195; public static final int subtitleTextStyle = 0x7f030196; public static final int suggestionRowLayout = 0x7f030197; public static final int switchMinWidth = 0x7f030198; public static final int switchPadding = 0x7f030199; public static final int switchStyle = 0x7f03019a; public static final int switchTextAppearance = 0x7f03019b; public static final int textAllCaps = 0x7f0301ac; public static final int textAppearanceLargePopupMenu = 0x7f0301ad; public static final int textAppearanceListItem = 0x7f0301ae; public static final int textAppearanceListItemSmall = 0x7f0301af; public static final int textAppearancePopupMenuHeader = 0x7f0301b0; public static final int textAppearanceSearchResultSubtitle = 0x7f0301b1; public static final int textAppearanceSearchResultTitle = 0x7f0301b2; public static final int textAppearanceSmallPopupMenu = 0x7f0301b3; public static final int textColorAlertDialogListItem = 0x7f0301b4; public static final int textColorSearchUrl = 0x7f0301b6; public static final int theme = 0x7f0301b7; public static final int thickness = 0x7f0301b8; public static final int thumbTextPadding = 0x7f0301b9; public static final int thumbTint = 0x7f0301ba; public static final int thumbTintMode = 0x7f0301bb; public static final int tickMark = 0x7f0301bc; public static final int tickMarkTint = 0x7f0301bd; public static final int tickMarkTintMode = 0x7f0301be; public static final int title = 0x7f0301bf; public static final int titleMargin = 0x7f0301c1; public static final int titleMarginBottom = 0x7f0301c2; public static final int titleMarginEnd = 0x7f0301c3; public static final int titleMarginStart = 0x7f0301c4; public static final int titleMarginTop = 0x7f0301c5; public static final int titleMargins = 0x7f0301c6; public static final int titleTextAppearance = 0x7f0301c7; public static final int titleTextColor = 0x7f0301c8; public static final int titleTextStyle = 0x7f0301c9; public static final int toolbarNavigationButtonStyle = 0x7f0301cc; public static final int toolbarStyle = 0x7f0301cd; public static final int track = 0x7f0301cf; public static final int trackTint = 0x7f0301d0; public static final int trackTintMode = 0x7f0301d1; public static final int voiceIcon = 0x7f0301df; public static final int windowActionBar = 0x7f0301e0; public static final int windowActionBarOverlay = 0x7f0301e1; public static final int windowActionModeOverlay = 0x7f0301e2; public static final int windowFixedHeightMajor = 0x7f0301e3; public static final int windowFixedHeightMinor = 0x7f0301e4; public static final int windowFixedWidthMajor = 0x7f0301e5; public static final int windowFixedWidthMinor = 0x7f0301e6; public static final int windowMinWidthMajor = 0x7f0301e7; public static final int windowMinWidthMinor = 0x7f0301e8; public static final int windowNoTitle = 0x7f0301e9; } public static final class bool { public static final int abc_action_bar_embed_tabs = 0x7f040000; public static final int abc_allow_stacked_button_bar = 0x7f040001; public static final int abc_config_actionMenuItemAllCaps = 0x7f040002; public static final int abc_config_closeDialogWhenTouchOutside = 0x7f040003; public static final int abc_config_showMenuShortcutsWhenKeyboardPresent = 0x7f040004; } public static final class color { public static final int abc_background_cache_hint_selector_material_dark = 0x7f050000; public static final int abc_background_cache_hint_selector_material_light = 0x7f050001; public static final int abc_btn_colored_borderless_text_material = 0x7f050002; public static final int abc_color_highlight_material = 0x7f050003; public static final int abc_input_method_navigation_guard = 0x7f050004; public static final int abc_primary_text_disable_only_material_dark = 0x7f050005; public static final int abc_primary_text_disable_only_material_light = 0x7f050006; public static final int abc_primary_text_material_dark = 0x7f050007; public static final int abc_primary_text_material_light = 0x7f050008; public static final int abc_search_url_text = 0x7f050009; public static final int abc_search_url_text_normal = 0x7f05000a; public static final int abc_search_url_text_pressed = 0x7f05000b; public static final int abc_search_url_text_selected = 0x7f05000c; public static final int abc_secondary_text_material_dark = 0x7f05000d; public static final int abc_secondary_text_material_light = 0x7f05000e; public static final int abc_tint_btn_checkable = 0x7f05000f; public static final int abc_tint_default = 0x7f050010; public static final int abc_tint_edittext = 0x7f050011; public static final int abc_tint_seek_thumb = 0x7f050012; public static final int abc_tint_spinner = 0x7f050013; public static final int abc_tint_switch_thumb = 0x7f050014; public static final int abc_tint_switch_track = 0x7f050015; public static final int accent_material_dark = 0x7f050016; public static final int accent_material_light = 0x7f050017; public static final int background_floating_material_dark = 0x7f050018; public static final int background_floating_material_light = 0x7f050019; public static final int background_material_dark = 0x7f05001a; public static final int background_material_light = 0x7f05001b; public static final int bright_foreground_disabled_material_dark = 0x7f05001c; public static final int bright_foreground_disabled_material_light = 0x7f05001d; public static final int bright_foreground_inverse_material_dark = 0x7f05001e; public static final int bright_foreground_inverse_material_light = 0x7f05001f; public static final int bright_foreground_material_dark = 0x7f050020; public static final int bright_foreground_material_light = 0x7f050021; public static final int button_material_dark = 0x7f050022; public static final int button_material_light = 0x7f050023; public static final int dim_foreground_disabled_material_dark = 0x7f05004b; public static final int dim_foreground_disabled_material_light = 0x7f05004c; public static final int dim_foreground_material_dark = 0x7f05004d; public static final int dim_foreground_material_light = 0x7f05004e; public static final int foreground_material_dark = 0x7f05004f; public static final int foreground_material_light = 0x7f050050; public static final int highlighted_text_material_dark = 0x7f050051; public static final int highlighted_text_material_light = 0x7f050052; public static final int hint_foreground_material_dark = 0x7f050053; public static final int hint_foreground_material_light = 0x7f050054; public static final int material_blue_grey_800 = 0x7f050055; public static final int material_blue_grey_900 = 0x7f050056; public static final int material_blue_grey_950 = 0x7f050057; public static final int material_deep_teal_200 = 0x7f050058; public static final int material_deep_teal_500 = 0x7f050059; public static final int material_grey_100 = 0x7f05005a; public static final int material_grey_300 = 0x7f05005b; public static final int material_grey_50 = 0x7f05005c; public static final int material_grey_600 = 0x7f05005d; public static final int material_grey_800 = 0x7f05005e; public static final int material_grey_850 = 0x7f05005f; public static final int material_grey_900 = 0x7f050060; public static final int primary_dark_material_dark = 0x7f050067; public static final int primary_dark_material_light = 0x7f050068; public static final int primary_material_dark = 0x7f050069; public static final int primary_material_light = 0x7f05006a; public static final int primary_text_default_material_dark = 0x7f05006b; public static final int primary_text_default_material_light = 0x7f05006c; public static final int primary_text_disabled_material_dark = 0x7f05006d; public static final int primary_text_disabled_material_light = 0x7f05006e; public static final int ripple_material_dark = 0x7f05006f; public static final int ripple_material_light = 0x7f050070; public static final int secondary_text_default_material_dark = 0x7f050071; public static final int secondary_text_default_material_light = 0x7f050072; public static final int secondary_text_disabled_material_dark = 0x7f050073; public static final int secondary_text_disabled_material_light = 0x7f050074; public static final int switch_thumb_disabled_material_dark = 0x7f050075; public static final int switch_thumb_disabled_material_light = 0x7f050076; public static final int switch_thumb_material_dark = 0x7f050077; public static final int switch_thumb_material_light = 0x7f050078; public static final int switch_thumb_normal_material_dark = 0x7f050079; public static final int switch_thumb_normal_material_light = 0x7f05007a; } public static final class dimen { public static final int abc_action_bar_content_inset_material = 0x7f060000; public static final int abc_action_bar_content_inset_with_nav = 0x7f060001; public static final int abc_action_bar_default_height_material = 0x7f060002; public static final int abc_action_bar_default_padding_end_material = 0x7f060003; public static final int abc_action_bar_default_padding_start_material = 0x7f060004; public static final int abc_action_bar_icon_vertical_padding_material = 0x7f060005; public static final int abc_action_bar_overflow_padding_end_material = 0x7f060006; public static final int abc_action_bar_overflow_padding_start_material = 0x7f060007; public static final int abc_action_bar_progress_bar_size = 0x7f060008; public static final int abc_action_bar_stacked_max_height = 0x7f060009; public static final int abc_action_bar_stacked_tab_max_width = 0x7f06000a; public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f06000b; public static final int abc_action_bar_subtitle_top_margin_material = 0x7f06000c; public static final int abc_action_button_min_height_material = 0x7f06000d; public static final int abc_action_button_min_width_material = 0x7f06000e; public static final int abc_action_button_min_width_overflow_material = 0x7f06000f; public static final int abc_alert_dialog_button_bar_height = 0x7f060010; public static final int abc_button_inset_horizontal_material = 0x7f060011; public static final int abc_button_inset_vertical_material = 0x7f060012; public static final int abc_button_padding_horizontal_material = 0x7f060013; public static final int abc_button_padding_vertical_material = 0x7f060014; public static final int abc_cascading_menus_min_smallest_width = 0x7f060015; public static final int abc_config_prefDialogWidth = 0x7f060016; public static final int abc_control_corner_material = 0x7f060017; public static final int abc_control_inset_material = 0x7f060018; public static final int abc_control_padding_material = 0x7f060019; public static final int abc_dialog_fixed_height_major = 0x7f06001a; public static final int abc_dialog_fixed_height_minor = 0x7f06001b; public static final int abc_dialog_fixed_width_major = 0x7f06001c; public static final int abc_dialog_fixed_width_minor = 0x7f06001d; public static final int abc_dialog_list_padding_vertical_material = 0x7f06001e; public static final int abc_dialog_min_width_major = 0x7f06001f; public static final int abc_dialog_min_width_minor = 0x7f060020; public static final int abc_dialog_padding_material = 0x7f060021; public static final int abc_dialog_padding_top_material = 0x7f060022; public static final int abc_disabled_alpha_material_dark = 0x7f060023; public static final int abc_disabled_alpha_material_light = 0x7f060024; public static final int abc_dropdownitem_icon_width = 0x7f060025; public static final int abc_dropdownitem_text_padding_left = 0x7f060026; public static final int abc_dropdownitem_text_padding_right = 0x7f060027; public static final int abc_edit_text_inset_bottom_material = 0x7f060028; public static final int abc_edit_text_inset_horizontal_material = 0x7f060029; public static final int abc_edit_text_inset_top_material = 0x7f06002a; public static final int abc_floating_window_z = 0x7f06002b; public static final int abc_list_item_padding_horizontal_material = 0x7f06002c; public static final int abc_panel_menu_list_width = 0x7f06002d; public static final int abc_progress_bar_height_material = 0x7f06002e; public static final int abc_search_view_preferred_height = 0x7f06002f; public static final int abc_search_view_preferred_width = 0x7f060030; public static final int abc_seekbar_track_background_height_material = 0x7f060031; public static final int abc_seekbar_track_progress_height_material = 0x7f060032; public static final int abc_select_dialog_padding_start_material = 0x7f060033; public static final int abc_switch_padding = 0x7f060034; public static final int abc_text_size_body_1_material = 0x7f060035; public static final int abc_text_size_body_2_material = 0x7f060036; public static final int abc_text_size_button_material = 0x7f060037; public static final int abc_text_size_caption_material = 0x7f060038; public static final int abc_text_size_display_1_material = 0x7f060039; public static final int abc_text_size_display_2_material = 0x7f06003a; public static final int abc_text_size_display_3_material = 0x7f06003b; public static final int abc_text_size_display_4_material = 0x7f06003c; public static final int abc_text_size_headline_material = 0x7f06003d; public static final int abc_text_size_large_material = 0x7f06003e; public static final int abc_text_size_medium_material = 0x7f06003f; public static final int abc_text_size_menu_header_material = 0x7f060040; public static final int abc_text_size_menu_material = 0x7f060041; public static final int abc_text_size_small_material = 0x7f060042; public static final int abc_text_size_subhead_material = 0x7f060043; public static final int abc_text_size_subtitle_material_toolbar = 0x7f060044; public static final int abc_text_size_title_material = 0x7f060045; public static final int abc_text_size_title_material_toolbar = 0x7f060046; public static final int disabled_alpha_material_dark = 0x7f060086; public static final int disabled_alpha_material_light = 0x7f060087; public static final int highlight_alpha_material_colored = 0x7f060089; public static final int highlight_alpha_material_dark = 0x7f06008a; public static final int highlight_alpha_material_light = 0x7f06008b; public static final int notification_large_icon_height = 0x7f060095; public static final int notification_large_icon_width = 0x7f060096; public static final int notification_subtext_size = 0x7f060097; } public static final class drawable { public static final int abc_ab_share_pack_mtrl_alpha = 0x7f070000; public static final int abc_action_bar_item_background_material = 0x7f070001; public static final int abc_btn_borderless_material = 0x7f070002; public static final int abc_btn_check_material = 0x7f070003; public static final int abc_btn_check_to_on_mtrl_000 = 0x7f070004; public static final int abc_btn_check_to_on_mtrl_015 = 0x7f070005; public static final int abc_btn_colored_material = 0x7f070006; public static final int abc_btn_default_mtrl_shape = 0x7f070007; public static final int abc_btn_radio_material = 0x7f070008; public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f070009; public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f07000a; public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f07000b; public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f07000c; public static final int abc_cab_background_internal_bg = 0x7f07000d; public static final int abc_cab_background_top_material = 0x7f07000e; public static final int abc_cab_background_top_mtrl_alpha = 0x7f07000f; public static final int abc_control_background_material = 0x7f070010; public static final int abc_dialog_material_background = 0x7f070011; public static final int abc_edit_text_material = 0x7f070012; public static final int abc_ic_ab_back_material = 0x7f070013; public static final int abc_ic_arrow_drop_right_black_24dp = 0x7f070014; public static final int abc_ic_clear_material = 0x7f070015; public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f070016; public static final int abc_ic_go_search_api_material = 0x7f070017; public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f070018; public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f070019; public static final int abc_ic_menu_overflow_material = 0x7f07001a; public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f07001b; public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f07001c; public static final int abc_ic_menu_share_mtrl_alpha = 0x7f07001d; public static final int abc_ic_search_api_material = 0x7f07001e; public static final int abc_ic_star_black_16dp = 0x7f07001f; public static final int abc_ic_star_black_36dp = 0x7f070020; public static final int abc_ic_star_black_48dp = 0x7f070021; public static final int abc_ic_star_half_black_16dp = 0x7f070022; public static final int abc_ic_star_half_black_36dp = 0x7f070023; public static final int abc_ic_star_half_black_48dp = 0x7f070024; public static final int abc_ic_voice_search_api_material = 0x7f070025; public static final int abc_item_background_holo_dark = 0x7f070026; public static final int abc_item_background_holo_light = 0x7f070027; public static final int abc_list_divider_mtrl_alpha = 0x7f070028; public static final int abc_list_focused_holo = 0x7f070029; public static final int abc_list_longpressed_holo = 0x7f07002a; public static final int abc_list_pressed_holo_dark = 0x7f07002b; public static final int abc_list_pressed_holo_light = 0x7f07002c; public static final int abc_list_selector_background_transition_holo_dark = 0x7f07002d; public static final int abc_list_selector_background_transition_holo_light = 0x7f07002e; public static final int abc_list_selector_disabled_holo_dark = 0x7f07002f; public static final int abc_list_selector_disabled_holo_light = 0x7f070030; public static final int abc_list_selector_holo_dark = 0x7f070031; public static final int abc_list_selector_holo_light = 0x7f070032; public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f070033; public static final int abc_popup_background_mtrl_mult = 0x7f070034; public static final int abc_ratingbar_indicator_material = 0x7f070035; public static final int abc_ratingbar_material = 0x7f070036; public static final int abc_ratingbar_small_material = 0x7f070037; public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f070038; public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f070039; public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f07003a; public static final int abc_scrubber_primary_mtrl_alpha = 0x7f07003b; public static final int abc_scrubber_track_mtrl_alpha = 0x7f07003c; public static final int abc_seekbar_thumb_material = 0x7f07003d; public static final int abc_seekbar_tick_mark_material = 0x7f07003e; public static final int abc_seekbar_track_material = 0x7f07003f; public static final int abc_spinner_mtrl_am_alpha = 0x7f070040; public static final int abc_spinner_textfield_background_material = 0x7f070041; public static final int abc_switch_thumb_material = 0x7f070042; public static final int abc_switch_track_mtrl_alpha = 0x7f070043; public static final int abc_tab_indicator_material = 0x7f070044; public static final int abc_tab_indicator_mtrl_alpha = 0x7f070045; public static final int abc_text_cursor_material = 0x7f070046; public static final int abc_textfield_activated_mtrl_alpha = 0x7f070047; public static final int abc_textfield_default_mtrl_alpha = 0x7f070048; public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f070049; public static final int abc_textfield_search_default_mtrl_alpha = 0x7f07004a; public static final int abc_textfield_search_material = 0x7f07004b; public static final int notification_template_icon_bg = 0x7f070145; } public static final class id { public static final int action0 = 0x7f080000; public static final int action_bar = 0x7f080001; public static final int action_bar_activity_content = 0x7f080002; public static final int action_bar_container = 0x7f080003; public static final int action_bar_root = 0x7f080004; public static final int action_bar_spinner = 0x7f080005; public static final int action_bar_subtitle = 0x7f080006; public static final int action_bar_title = 0x7f080007; public static final int action_context_bar = 0x7f080008; public static final int action_divider = 0x7f080009; public static final int action_menu_divider = 0x7f08000a; public static final int action_menu_presenter = 0x7f08000b; public static final int action_mode_bar = 0x7f08000c; public static final int action_mode_bar_stub = 0x7f08000d; public static final int action_mode_close_button = 0x7f08000e; public static final int activity_chooser_view_content = 0x7f08000f; public static final int add = 0x7f080014; public static final int alertTitle = 0x7f080019; public static final int always = 0x7f08001b; public static final int beginning = 0x7f080026; public static final int bottom = 0x7f080029; public static final int buttonPanel = 0x7f08002b; public static final int cancel_action = 0x7f080035; public static final int checkbox = 0x7f080048; public static final int chronometer = 0x7f080049; public static final int collapseActionView = 0x7f08004d; public static final int contentPanel = 0x7f080052; public static final int custom = 0x7f080055; public static final int customPanel = 0x7f080056; public static final int decor_content_parent = 0x7f080059; public static final int default_activity_button = 0x7f08005a; public static final int disableHome = 0x7f080062; public static final int edit_query = 0x7f080065; public static final int end = 0x7f080067; public static final int end_padder = 0x7f080068; public static final int expand_activities_button = 0x7f08006d; public static final int expanded_menu = 0x7f08006f; public static final int home = 0x7f08007a; public static final int homeAsUp = 0x7f08007b; public static final int icon = 0x7f08007e; public static final int ifRoom = 0x7f080082; public static final int image = 0x7f080083; public static final int info = 0x7f080088; public static final int line1 = 0x7f080093; public static final int line3 = 0x7f080094; public static final int listMode = 0x7f080095; public static final int list_item = 0x7f080096; public static final int media_actions = 0x7f08009e; public static final int middle = 0x7f08009f; public static final int multiply = 0x7f0800ba; public static final int never = 0x7f0800bd; public static final int none = 0x7f0800c2; public static final int normal = 0x7f0800c3; public static final int parentPanel = 0x7f0800c9; public static final int progress_circular = 0x7f0800d6; public static final int progress_horizontal = 0x7f0800d7; public static final int radio = 0x7f0800d8; public static final int screen = 0x7f0800df; public static final int scrollIndicatorDown = 0x7f0800e1; public static final int scrollIndicatorUp = 0x7f0800e2; public static final int scrollView = 0x7f0800e3; public static final int search_badge = 0x7f0800e5; public static final int search_bar = 0x7f0800e6; public static final int search_button = 0x7f0800e7; public static final int search_close_btn = 0x7f0800e8; public static final int search_edit_frame = 0x7f0800e9; public static final int search_go_btn = 0x7f0800ea; public static final int search_mag_icon = 0x7f0800eb; public static final int search_plate = 0x7f0800ec; public static final int search_src_text = 0x7f0800ed; public static final int search_voice_btn = 0x7f0800ee; public static final int select_dialog_listview = 0x7f0800f1; public static final int shortcut = 0x7f0800f3; public static final int showCustom = 0x7f0800f4; public static final int showHome = 0x7f0800f5; public static final int showTitle = 0x7f0800f6; public static final int spacer = 0x7f0800fb; public static final int split_action_bar = 0x7f0800fc; public static final int src_atop = 0x7f0800ff; public static final int src_in = 0x7f080100; public static final int src_over = 0x7f080101; public static final int status_bar_latest_event_content = 0x7f080105; public static final int submenuarrow = 0x7f080108; public static final int submit_area = 0x7f080109; public static final int tabMode = 0x7f08010b; public static final int text = 0x7f080110; public static final int text2 = 0x7f080112; public static final int textSpacerNoButtons = 0x7f080113; public static final int time = 0x7f08011c; public static final int title = 0x7f08011d; public static final int title_template = 0x7f08011e; public static final int top = 0x7f080121; public static final int topPanel = 0x7f080122; public static final int up = 0x7f080124; public static final int useLogo = 0x7f080126; public static final int withText = 0x7f08012a; public static final int wrap_content = 0x7f08012c; } public static final class integer { public static final int abc_config_activityDefaultDur = 0x7f090000; public static final int abc_config_activityShortDur = 0x7f090001; public static final int cancel_button_image_alpha = 0x7f090003; public static final int status_bar_notification_info_maxnum = 0x7f09000a; } public static final class layout { public static final int abc_action_bar_title_item = 0x7f0b0000; public static final int abc_action_bar_up_container = 0x7f0b0001; public static final int abc_action_bar_view_list_nav_layout = 0x7f0b0002; public static final int abc_action_menu_item_layout = 0x7f0b0003; public static final int abc_action_menu_layout = 0x7f0b0004; public static final int abc_action_mode_bar = 0x7f0b0005; public static final int abc_action_mode_close_item_material = 0x7f0b0006; public static final int abc_activity_chooser_view = 0x7f0b0007; public static final int abc_activity_chooser_view_list_item = 0x7f0b0008; public static final int abc_alert_dialog_button_bar_material = 0x7f0b0009; public static final int abc_alert_dialog_material = 0x7f0b000a; public static final int abc_dialog_title_material = 0x7f0b000b; public static final int abc_expanded_menu_layout = 0x7f0b000c; public static final int abc_list_menu_item_checkbox = 0x7f0b000d; public static final int abc_list_menu_item_icon = 0x7f0b000e; public static final int abc_list_menu_item_layout = 0x7f0b000f; public static final int abc_list_menu_item_radio = 0x7f0b0010; public static final int abc_popup_menu_header_item_layout = 0x7f0b0011; public static final int abc_popup_menu_item_layout = 0x7f0b0012; public static final int abc_screen_content_include = 0x7f0b0013; public static final int abc_screen_simple = 0x7f0b0014; public static final int abc_screen_simple_overlay_action_mode = 0x7f0b0015; public static final int abc_screen_toolbar = 0x7f0b0016; public static final int abc_search_dropdown_item_icons_2line = 0x7f0b0017; public static final int abc_search_view = 0x7f0b0018; public static final int abc_select_dialog_material = 0x7f0b0019; public static final int notification_media_action = 0x7f0b0039; public static final int notification_media_cancel_action = 0x7f0b003a; public static final int notification_template_big_media = 0x7f0b003b; public static final int notification_template_big_media_narrow = 0x7f0b003c; public static final int notification_template_lines = 0x7f0b003d; public static final int notification_template_media = 0x7f0b003e; public static final int notification_template_part_chronometer = 0x7f0b003f; public static final int notification_template_part_time = 0x7f0b0040; public static final int select_dialog_item_material = 0x7f0b0046; public static final int select_dialog_multichoice_material = 0x7f0b0047; public static final int select_dialog_singlechoice_material = 0x7f0b0048; public static final int support_simple_spinner_dropdown_item = 0x7f0b0049; } public static final class string { public static final int abc_action_bar_home_description = 0x7f0e0000; public static final int abc_action_bar_home_description_format = 0x7f0e0001; public static final int abc_action_bar_home_subtitle_description_format = 0x7f0e0002; public static final int abc_action_bar_up_description = 0x7f0e0003; public static final int abc_action_menu_overflow_description = 0x7f0e0004; public static final int abc_action_mode_done = 0x7f0e0005; public static final int abc_activity_chooser_view_see_all = 0x7f0e0006; public static final int abc_activitychooserview_choose_application = 0x7f0e0007; public static final int abc_capital_off = 0x7f0e0008; public static final int abc_capital_on = 0x7f0e0009; public static final int abc_font_family_body_1_material = 0x7f0e000a; public static final int abc_font_family_body_2_material = 0x7f0e000b; public static final int abc_font_family_button_material = 0x7f0e000c; public static final int abc_font_family_caption_material = 0x7f0e000d; public static final int abc_font_family_display_1_material = 0x7f0e000e; public static final int abc_font_family_display_2_material = 0x7f0e000f; public static final int abc_font_family_display_3_material = 0x7f0e0010; public static final int abc_font_family_display_4_material = 0x7f0e0011; public static final int abc_font_family_headline_material = 0x7f0e0012; public static final int abc_font_family_menu_material = 0x7f0e0013; public static final int abc_font_family_subhead_material = 0x7f0e0014; public static final int abc_font_family_title_material = 0x7f0e0015; public static final int abc_search_hint = 0x7f0e0016; public static final int abc_searchview_description_clear = 0x7f0e0017; public static final int abc_searchview_description_query = 0x7f0e0018; public static final int abc_searchview_description_search = 0x7f0e0019; public static final int abc_searchview_description_submit = 0x7f0e001a; public static final int abc_searchview_description_voice = 0x7f0e001b; public static final int abc_shareactionprovider_share_with = 0x7f0e001c; public static final int abc_shareactionprovider_share_with_application = 0x7f0e001d; public static final int abc_toolbar_collapse_description = 0x7f0e001e; public static final int status_bar_notification_info_overflow = 0x7f0e0083; } public static final class style { public static final int AlertDialog_AppCompat = 0x7f0f0000; public static final int AlertDialog_AppCompat_Light = 0x7f0f0001; public static final int Animation_AppCompat_Dialog = 0x7f0f0002; public static final int Animation_AppCompat_DropDownUp = 0x7f0f0003; public static final int Base_AlertDialog_AppCompat = 0x7f0f0009; public static final int Base_AlertDialog_AppCompat_Light = 0x7f0f000a; public static final int Base_Animation_AppCompat_Dialog = 0x7f0f000b; public static final int Base_Animation_AppCompat_DropDownUp = 0x7f0f000c; public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0f000f; public static final int Base_DialogWindowTitle_AppCompat = 0x7f0f000e; public static final int Base_TextAppearance_AppCompat = 0x7f0f0010; public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f0f0011; public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f0f0012; public static final int Base_TextAppearance_AppCompat_Button = 0x7f0f0013; public static final int Base_TextAppearance_AppCompat_Caption = 0x7f0f0014; public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f0f0015; public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f0f0016; public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f0f0017; public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f0f0018; public static final int Base_TextAppearance_AppCompat_Headline = 0x7f0f0019; public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f0f001a; public static final int Base_TextAppearance_AppCompat_Large = 0x7f0f001b; public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f0f001c; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0f001d; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0f001e; public static final int Base_TextAppearance_AppCompat_Medium = 0x7f0f001f; public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f0f0020; public static final int Base_TextAppearance_AppCompat_Menu = 0x7f0f0021; public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f0f0022; public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0f0023; public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f0f0024; public static final int Base_TextAppearance_AppCompat_Small = 0x7f0f0025; public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f0f0026; public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f0f0027; public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f0f0028; public static final int Base_TextAppearance_AppCompat_Title = 0x7f0f0029; public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f0f002a; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0f002b; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0f002c; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0f002d; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0f002e; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0f002f; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0f0030; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0f0031; public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f0f0032; public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0f0033; public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0f0034; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0f0035; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0f0036; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0f0037; public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f0f0038; public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0f0039; public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0f003a; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0f003b; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0f003c; public static final int Base_ThemeOverlay_AppCompat = 0x7f0f004b; public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0f004c; public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0f004d; public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0f004e; public static final int Base_ThemeOverlay_AppCompat_Dialog = 0x7f0f004f; public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0f0050; public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0f0051; public static final int Base_Theme_AppCompat = 0x7f0f003d; public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0f003e; public static final int Base_Theme_AppCompat_Dialog = 0x7f0f003f; public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f0f0043; public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f0f0040; public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0f0041; public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f0f0042; public static final int Base_Theme_AppCompat_Light = 0x7f0f0044; public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0f0045; public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f0f0046; public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f0f004a; public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f0f0047; public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0f0048; public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0f0049; public static final int Base_V11_ThemeOverlay_AppCompat_Dialog = 0x7f0f0054; public static final int Base_V11_Theme_AppCompat_Dialog = 0x7f0f0052; public static final int Base_V11_Theme_AppCompat_Light_Dialog = 0x7f0f0053; public static final int Base_V12_Widget_AppCompat_AutoCompleteTextView = 0x7f0f0055; public static final int Base_V12_Widget_AppCompat_EditText = 0x7f0f0056; public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 0x7f0f005b; public static final int Base_V21_Theme_AppCompat = 0x7f0f0057; public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f0f0058; public static final int Base_V21_Theme_AppCompat_Light = 0x7f0f0059; public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f0f005a; public static final int Base_V22_Theme_AppCompat = 0x7f0f005c; public static final int Base_V22_Theme_AppCompat_Light = 0x7f0f005d; public static final int Base_V23_Theme_AppCompat = 0x7f0f005e; public static final int Base_V23_Theme_AppCompat_Light = 0x7f0f005f; public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 0x7f0f0064; public static final int Base_V7_Theme_AppCompat = 0x7f0f0060; public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0f0061; public static final int Base_V7_Theme_AppCompat_Light = 0x7f0f0062; public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0f0063; public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0f0065; public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0f0066; public static final int Base_Widget_AppCompat_ActionBar = 0x7f0f0067; public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0f0068; public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0f0069; public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f0f006a; public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f0f006b; public static final int Base_Widget_AppCompat_ActionButton = 0x7f0f006c; public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f0f006d; public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f0f006e; public static final int Base_Widget_AppCompat_ActionMode = 0x7f0f006f; public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0f0070; public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f0f0071; public static final int Base_Widget_AppCompat_Button = 0x7f0f0072; public static final int Base_Widget_AppCompat_ButtonBar = 0x7f0f0078; public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0f0079; public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f0f0073; public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f0f0074; public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0f0075; public static final int Base_Widget_AppCompat_Button_Colored = 0x7f0f0076; public static final int Base_Widget_AppCompat_Button_Small = 0x7f0f0077; public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f0f007a; public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f0f007b; public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0f007c; public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f0f007d; public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0f007e; public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f0f007f; public static final int Base_Widget_AppCompat_EditText = 0x7f0f0080; public static final int Base_Widget_AppCompat_ImageButton = 0x7f0f0081; public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f0f0082; public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0f0083; public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0f0084; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f0f0085; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0f0086; public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f0f0087; public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f0f0088; public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0f0089; public static final int Base_Widget_AppCompat_ListMenuView = 0x7f0f008a; public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f0f008b; public static final int Base_Widget_AppCompat_ListView = 0x7f0f008c; public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f0f008d; public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f0f008e; public static final int Base_Widget_AppCompat_PopupMenu = 0x7f0f008f; public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f0f0090; public static final int Base_Widget_AppCompat_PopupWindow = 0x7f0f0091; public static final int Base_Widget_AppCompat_ProgressBar = 0x7f0f0092; public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f0f0093; public static final int Base_Widget_AppCompat_RatingBar = 0x7f0f0094; public static final int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f0f0095; public static final int Base_Widget_AppCompat_RatingBar_Small = 0x7f0f0096; public static final int Base_Widget_AppCompat_SearchView = 0x7f0f0097; public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0f0098; public static final int Base_Widget_AppCompat_SeekBar = 0x7f0f0099; public static final int Base_Widget_AppCompat_SeekBar_Discrete = 0x7f0f009a; public static final int Base_Widget_AppCompat_Spinner = 0x7f0f009b; public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f0f009c; public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f0f009d; public static final int Base_Widget_AppCompat_Toolbar = 0x7f0f009e; public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0f009f; public static final int Platform_AppCompat = 0x7f0f00a9; public static final int Platform_AppCompat_Light = 0x7f0f00aa; public static final int Platform_ThemeOverlay_AppCompat = 0x7f0f00ab; public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f0f00ac; public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f0f00ad; public static final int Platform_V11_AppCompat = 0x7f0f00ae; public static final int Platform_V11_AppCompat_Light = 0x7f0f00af; public static final int Platform_V14_AppCompat = 0x7f0f00b0; public static final int Platform_V14_AppCompat_Light = 0x7f0f00b1; public static final int Platform_Widget_AppCompat_Spinner = 0x7f0f00b2; public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f0f00b3; public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f0f00b4; public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f0f00b5; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f0f00b6; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f0f00b7; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f0f00b8; public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f0f00be; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f0f00b9; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f0f00ba; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f0f00bb; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f0f00bc; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f0f00bd; public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f0f00bf; public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f0f00c0; public static final int TextAppearance_AppCompat = 0x7f0f00c1; public static final int TextAppearance_AppCompat_Body1 = 0x7f0f00c2; public static final int TextAppearance_AppCompat_Body2 = 0x7f0f00c3; public static final int TextAppearance_AppCompat_Button = 0x7f0f00c4; public static final int TextAppearance_AppCompat_Caption = 0x7f0f00c5; public static final int TextAppearance_AppCompat_Display1 = 0x7f0f00c6; public static final int TextAppearance_AppCompat_Display2 = 0x7f0f00c7; public static final int TextAppearance_AppCompat_Display3 = 0x7f0f00c8; public static final int TextAppearance_AppCompat_Display4 = 0x7f0f00c9; public static final int TextAppearance_AppCompat_Headline = 0x7f0f00ca; public static final int TextAppearance_AppCompat_Inverse = 0x7f0f00cb; public static final int TextAppearance_AppCompat_Large = 0x7f0f00cc; public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0f00cd; public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0f00ce; public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0f00cf; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0f00d0; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0f00d1; public static final int TextAppearance_AppCompat_Medium = 0x7f0f00d2; public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0f00d3; public static final int TextAppearance_AppCompat_Menu = 0x7f0f00d4; public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0f00d5; public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0f00d6; public static final int TextAppearance_AppCompat_Small = 0x7f0f00d7; public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0f00d8; public static final int TextAppearance_AppCompat_Subhead = 0x7f0f00d9; public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0f00da; public static final int TextAppearance_AppCompat_Title = 0x7f0f00db; public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0f00dc; public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0f00dd; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0f00de; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0f00df; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0f00e0; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0f00e1; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0f00e2; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0f00e3; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0f00e4; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0f00e5; public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0f00e6; public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0f00e7; public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0f00e8; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0f00e9; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0f00ea; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0f00eb; public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f0f00ec; public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0f00ed; public static final int TextAppearance_StatusBar_EventContent = 0x7f0f00f9; public static final int TextAppearance_StatusBar_EventContent_Info = 0x7f0f00fa; public static final int TextAppearance_StatusBar_EventContent_Line2 = 0x7f0f00fb; public static final int TextAppearance_StatusBar_EventContent_Time = 0x7f0f00fc; public static final int TextAppearance_StatusBar_EventContent_Title = 0x7f0f00fd; public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0f00fe; public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0f00ff; public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0f0100; public static final int ThemeOverlay_AppCompat = 0x7f0f0123; public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f0f0124; public static final int ThemeOverlay_AppCompat_Dark = 0x7f0f0125; public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0f0126; public static final int ThemeOverlay_AppCompat_Dialog = 0x7f0f0127; public static final int ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0f0128; public static final int ThemeOverlay_AppCompat_Light = 0x7f0f0129; public static final int Theme_AppCompat = 0x7f0f0101; public static final int Theme_AppCompat_CompactMenu = 0x7f0f0102; public static final int Theme_AppCompat_DayNight = 0x7f0f0103; public static final int Theme_AppCompat_DayNight_DarkActionBar = 0x7f0f0104; public static final int Theme_AppCompat_DayNight_Dialog = 0x7f0f0105; public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f0f0108; public static final int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f0f0106; public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f0f0107; public static final int Theme_AppCompat_DayNight_NoActionBar = 0x7f0f0109; public static final int Theme_AppCompat_Dialog = 0x7f0f010a; public static final int Theme_AppCompat_DialogWhenLarge = 0x7f0f010d; public static final int Theme_AppCompat_Dialog_Alert = 0x7f0f010b; public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f0f010c; public static final int Theme_AppCompat_Light = 0x7f0f010e; public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f0f010f; public static final int Theme_AppCompat_Light_Dialog = 0x7f0f0110; public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f0f0113; public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f0f0111; public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0f0112; public static final int Theme_AppCompat_Light_NoActionBar = 0x7f0f0114; public static final int Theme_AppCompat_NoActionBar = 0x7f0f0115; public static final int Widget_AppCompat_ActionBar = 0x7f0f012e; public static final int Widget_AppCompat_ActionBar_Solid = 0x7f0f012f; public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f0f0130; public static final int Widget_AppCompat_ActionBar_TabText = 0x7f0f0131; public static final int Widget_AppCompat_ActionBar_TabView = 0x7f0f0132; public static final int Widget_AppCompat_ActionButton = 0x7f0f0133; public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f0f0134; public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f0f0135; public static final int Widget_AppCompat_ActionMode = 0x7f0f0136; public static final int Widget_AppCompat_ActivityChooserView = 0x7f0f0137; public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f0f0138; public static final int Widget_AppCompat_Button = 0x7f0f0139; public static final int Widget_AppCompat_ButtonBar = 0x7f0f013f; public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0f0140; public static final int Widget_AppCompat_Button_Borderless = 0x7f0f013a; public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f0f013b; public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0f013c; public static final int Widget_AppCompat_Button_Colored = 0x7f0f013d; public static final int Widget_AppCompat_Button_Small = 0x7f0f013e; public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f0f0141; public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f0f0142; public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f0f0143; public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f0f0144; public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f0f0145; public static final int Widget_AppCompat_EditText = 0x7f0f0146; public static final int Widget_AppCompat_ImageButton = 0x7f0f0147; public static final int Widget_AppCompat_Light_ActionBar = 0x7f0f0148; public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f0f0149; public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f0f014a; public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0f014b; public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f0f014c; public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f0f014d; public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0f014e; public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f0f014f; public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f0f0150; public static final int Widget_AppCompat_Light_ActionButton = 0x7f0f0151; public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f0f0152; public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f0f0153; public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f0f0154; public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f0f0155; public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f0f0156; public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f0f0157; public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f0f0158; public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f0f0159; public static final int Widget_AppCompat_Light_PopupMenu = 0x7f0f015a; public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0f015b; public static final int Widget_AppCompat_Light_SearchView = 0x7f0f015c; public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f0f015d; public static final int Widget_AppCompat_ListMenuView = 0x7f0f015e; public static final int Widget_AppCompat_ListPopupWindow = 0x7f0f015f; public static final int Widget_AppCompat_ListView = 0x7f0f0160; public static final int Widget_AppCompat_ListView_DropDown = 0x7f0f0161; public static final int Widget_AppCompat_ListView_Menu = 0x7f0f0162; public static final int Widget_AppCompat_PopupMenu = 0x7f0f0163; public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f0f0164; public static final int Widget_AppCompat_PopupWindow = 0x7f0f0165; public static final int Widget_AppCompat_ProgressBar = 0x7f0f0166; public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f0f0167; public static final int Widget_AppCompat_RatingBar = 0x7f0f0168; public static final int Widget_AppCompat_RatingBar_Indicator = 0x7f0f0169; public static final int Widget_AppCompat_RatingBar_Small = 0x7f0f016a; public static final int Widget_AppCompat_SearchView = 0x7f0f016b; public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f0f016c; public static final int Widget_AppCompat_SeekBar = 0x7f0f016d; public static final int Widget_AppCompat_SeekBar_Discrete = 0x7f0f016e; public static final int Widget_AppCompat_Spinner = 0x7f0f016f; public static final int Widget_AppCompat_Spinner_DropDown = 0x7f0f0170; public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f0f0171; public static final int Widget_AppCompat_Spinner_Underlined = 0x7f0f0172; public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f0f0173; public static final int Widget_AppCompat_Toolbar = 0x7f0f0174; public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0f0175; } public static final class styleable { public static final int[] ActionBar = { 0x7f030032, 0x7f030033, 0x7f030034, 0x7f030091, 0x7f030092, 0x7f030093, 0x7f030094, 0x7f030095, 0x7f030096, 0x7f0300a5, 0x7f0300ac, 0x7f0300ad, 0x7f0300b9, 0x7f0300cf, 0x7f0300d0, 0x7f0300d4, 0x7f0300d5, 0x7f0300d6, 0x7f0300db, 0x7f0300e3, 0x7f03012c, 0x7f030151, 0x7f03015d, 0x7f030161, 0x7f030162, 0x7f030193, 0x7f030196, 0x7f0301bf, 0x7f0301c9 }; public static final int ActionBar_background = 0; public static final int ActionBar_backgroundSplit = 1; public static final int ActionBar_backgroundStacked = 2; public static final int ActionBar_contentInsetEnd = 3; public static final int ActionBar_contentInsetEndWithActions = 4; public static final int ActionBar_contentInsetLeft = 5; public static final int ActionBar_contentInsetRight = 6; public static final int ActionBar_contentInsetStart = 7; public static final int ActionBar_contentInsetStartWithNavigation = 8; public static final int ActionBar_customNavigationLayout = 9; public static final int ActionBar_displayOptions = 10; public static final int ActionBar_divider = 11; public static final int ActionBar_elevation = 12; public static final int ActionBar_height = 13; public static final int ActionBar_hideOnContentScroll = 14; public static final int ActionBar_homeAsUpIndicator = 15; public static final int ActionBar_homeLayout = 16; public static final int ActionBar_icon = 17; public static final int ActionBar_indeterminateProgressStyle = 18; public static final int ActionBar_itemPadding = 19; public static final int ActionBar_logo = 20; public static final int ActionBar_navigationMode = 21; public static final int ActionBar_popupTheme = 22; public static final int ActionBar_progressBarPadding = 23; public static final int ActionBar_progressBarStyle = 24; public static final int ActionBar_subtitle = 25; public static final int ActionBar_subtitleTextStyle = 26; public static final int ActionBar_title = 27; public static final int ActionBar_titleTextStyle = 28; public static final int[] ActionBarLayout = { 0x010100b3 }; public static final int ActionBarLayout_android_layout_gravity = 0; public static final int[] ActionMenuItemView = { 0x0101013f }; public static final int ActionMenuItemView_android_minWidth = 0; public static final int[] ActionMenuView = { }; public static final int[] ActionMode = { 0x7f030032, 0x7f030033, 0x7f03007f, 0x7f0300cf, 0x7f030196, 0x7f0301c9 }; public static final int ActionMode_background = 0; public static final int ActionMode_backgroundSplit = 1; public static final int ActionMode_closeItemLayout = 2; public static final int ActionMode_height = 3; public static final int ActionMode_subtitleTextStyle = 4; public static final int ActionMode_titleTextStyle = 5; public static final int[] ActivityChooserView = { 0x7f0300bd, 0x7f0300dd }; public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0; public static final int ActivityChooserView_initialActivityCount = 1; public static final int[] AlertDialog = { 0x010100f2, 0x7f030046, 0x7f030122, 0x7f030123, 0x7f03014e, 0x7f030182 }; public static final int AlertDialog_android_layout = 0; public static final int AlertDialog_buttonPanelSideLayout = 1; public static final int AlertDialog_listItemLayout = 2; public static final int AlertDialog_listLayout = 3; public static final int AlertDialog_multiChoiceItemLayout = 4; public static final int AlertDialog_singleChoiceItemLayout = 5; public static final int[] AppCompatImageView = { 0x01010119, 0x7f030189 }; public static final int AppCompatImageView_android_src = 0; public static final int AppCompatImageView_srcCompat = 1; public static final int[] AppCompatSeekBar = { 0x01010142, 0x7f0301bc, 0x7f0301bd, 0x7f0301be }; public static final int AppCompatSeekBar_android_thumb = 0; public static final int AppCompatSeekBar_tickMark = 1; public static final int AppCompatSeekBar_tickMarkTint = 2; public static final int AppCompatSeekBar_tickMarkTintMode = 3; public static final int[] AppCompatTextView = { 0x01010034, 0x7f0301ac }; public static final int AppCompatTextView_android_textAppearance = 0; public static final int AppCompatTextView_textAllCaps = 1; public static final int[] AppCompatTheme = { 0x01010057, 0x010100ae, 0x7f030001, 0x7f030002, 0x7f030003, 0x7f030004, 0x7f030005, 0x7f030006, 0x7f030007, 0x7f030008, 0x7f030009, 0x7f03000a, 0x7f03000b, 0x7f03000c, 0x7f03000d, 0x7f03000f, 0x7f030010, 0x7f030011, 0x7f030012, 0x7f030013, 0x7f030014, 0x7f030015, 0x7f030016, 0x7f030017, 0x7f030018, 0x7f030019, 0x7f03001a, 0x7f03001b, 0x7f03001c, 0x7f03001d, 0x7f03001e, 0x7f03001f, 0x7f030022, 0x7f030026, 0x7f030027, 0x7f030028, 0x7f030029, 0x7f030031, 0x7f03003d, 0x7f030040, 0x7f030041, 0x7f030042, 0x7f030043, 0x7f030044, 0x7f030048, 0x7f030049, 0x7f03007b, 0x7f03007c, 0x7f030085, 0x7f030086, 0x7f030087, 0x7f030088, 0x7f030089, 0x7f03008a, 0x7f03008b, 0x7f03008c, 0x7f03008e, 0x7f03009e, 0x7f0300aa, 0x7f0300ab, 0x7f0300ae, 0x7f0300b0, 0x7f0300b4, 0x7f0300b5, 0x7f0300b6, 0x7f0300b7, 0x7f0300b8, 0x7f0300d4, 0x7f0300da, 0x7f030120, 0x7f030121, 0x7f030124, 0x7f030125, 0x7f030126, 0x7f030127, 0x7f030128, 0x7f030129, 0x7f03012a, 0x7f030156, 0x7f030157, 0x7f030158, 0x7f03015c, 0x7f03015e, 0x7f030165, 0x7f030166, 0x7f030167, 0x7f030168, 0x7f030174, 0x7f03017a, 0x7f03017b, 0x7f03017c, 0x7f030186, 0x7f030187, 0x7f03019a, 0x7f0301ad, 0x7f0301ae, 0x7f0301af, 0x7f0301b0, 0x7f0301b1, 0x7f0301b2, 0x7f0301b3, 0x7f0301b4, 0x7f0301b6, 0x7f0301cc, 0x7f0301cd, 0x7f0301e0, 0x7f0301e1, 0x7f0301e2, 0x7f0301e3, 0x7f0301e4, 0x7f0301e5, 0x7f0301e6, 0x7f0301e7, 0x7f0301e8, 0x7f0301e9 }; public static final int AppCompatTheme_android_windowIsFloating = 0; public static final int AppCompatTheme_android_windowAnimationStyle = 1; public static final int AppCompatTheme_actionBarDivider = 2; public static final int AppCompatTheme_actionBarItemBackground = 3; public static final int AppCompatTheme_actionBarPopupTheme = 4; public static final int AppCompatTheme_actionBarSize = 5; public static final int AppCompatTheme_actionBarSplitStyle = 6; public static final int AppCompatTheme_actionBarStyle = 7; public static final int AppCompatTheme_actionBarTabBarStyle = 8; public static final int AppCompatTheme_actionBarTabStyle = 9; public static final int AppCompatTheme_actionBarTabTextStyle = 10; public static final int AppCompatTheme_actionBarTheme = 11; public static final int AppCompatTheme_actionBarWidgetTheme = 12; public static final int AppCompatTheme_actionButtonStyle = 13; public static final int AppCompatTheme_actionDropDownStyle = 14; public static final int AppCompatTheme_actionMenuTextAppearance = 15; public static final int AppCompatTheme_actionMenuTextColor = 16; public static final int AppCompatTheme_actionModeBackground = 17; public static final int AppCompatTheme_actionModeCloseButtonStyle = 18; public static final int AppCompatTheme_actionModeCloseDrawable = 19; public static final int AppCompatTheme_actionModeCopyDrawable = 20; public static final int AppCompatTheme_actionModeCutDrawable = 21; public static final int AppCompatTheme_actionModeFindDrawable = 22; public static final int AppCompatTheme_actionModePasteDrawable = 23; public static final int AppCompatTheme_actionModePopupWindowStyle = 24; public static final int AppCompatTheme_actionModeSelectAllDrawable = 25; public static final int AppCompatTheme_actionModeShareDrawable = 26; public static final int AppCompatTheme_actionModeSplitBackground = 27; public static final int AppCompatTheme_actionModeStyle = 28; public static final int AppCompatTheme_actionModeWebSearchDrawable = 29; public static final int AppCompatTheme_actionOverflowButtonStyle = 30; public static final int AppCompatTheme_actionOverflowMenuStyle = 31; public static final int AppCompatTheme_activityChooserViewStyle = 32; public static final int AppCompatTheme_alertDialogButtonGroupStyle = 33; public static final int AppCompatTheme_alertDialogCenterButtons = 34; public static final int AppCompatTheme_alertDialogStyle = 35; public static final int AppCompatTheme_alertDialogTheme = 36; public static final int AppCompatTheme_autoCompleteTextViewStyle = 37; public static final int AppCompatTheme_borderlessButtonStyle = 38; public static final int AppCompatTheme_buttonBarButtonStyle = 39; public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 40; public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 41; public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 42; public static final int AppCompatTheme_buttonBarStyle = 43; public static final int AppCompatTheme_buttonStyle = 44; public static final int AppCompatTheme_buttonStyleSmall = 45; public static final int AppCompatTheme_checkboxStyle = 46; public static final int AppCompatTheme_checkedTextViewStyle = 47; public static final int AppCompatTheme_colorAccent = 48; public static final int AppCompatTheme_colorBackgroundFloating = 49; public static final int AppCompatTheme_colorButtonNormal = 50; public static final int AppCompatTheme_colorControlActivated = 51; public static final int AppCompatTheme_colorControlHighlight = 52; public static final int AppCompatTheme_colorControlNormal = 53; public static final int AppCompatTheme_colorPrimary = 54; public static final int AppCompatTheme_colorPrimaryDark = 55; public static final int AppCompatTheme_colorSwitchThumbNormal = 56; public static final int AppCompatTheme_controlBackground = 57; public static final int AppCompatTheme_dialogPreferredPadding = 58; public static final int AppCompatTheme_dialogTheme = 59; public static final int AppCompatTheme_dividerHorizontal = 60; public static final int AppCompatTheme_dividerVertical = 61; public static final int AppCompatTheme_dropDownListViewStyle = 62; public static final int AppCompatTheme_dropdownListPreferredItemHeight = 63; public static final int AppCompatTheme_editTextBackground = 64; public static final int AppCompatTheme_editTextColor = 65; public static final int AppCompatTheme_editTextStyle = 66; public static final int AppCompatTheme_homeAsUpIndicator = 67; public static final int AppCompatTheme_imageButtonStyle = 68; public static final int AppCompatTheme_listChoiceBackgroundIndicator = 69; public static final int AppCompatTheme_listDividerAlertDialog = 70; public static final int AppCompatTheme_listMenuViewStyle = 71; public static final int AppCompatTheme_listPopupWindowStyle = 72; public static final int AppCompatTheme_listPreferredItemHeight = 73; public static final int AppCompatTheme_listPreferredItemHeightLarge = 74; public static final int AppCompatTheme_listPreferredItemHeightSmall = 75; public static final int AppCompatTheme_listPreferredItemPaddingLeft = 76; public static final int AppCompatTheme_listPreferredItemPaddingRight = 77; public static final int AppCompatTheme_panelBackground = 78; public static final int AppCompatTheme_panelMenuListTheme = 79; public static final int AppCompatTheme_panelMenuListWidth = 80; public static final int AppCompatTheme_popupMenuStyle = 81; public static final int AppCompatTheme_popupWindowStyle = 82; public static final int AppCompatTheme_radioButtonStyle = 83; public static final int AppCompatTheme_ratingBarStyle = 84; public static final int AppCompatTheme_ratingBarStyleIndicator = 85; public static final int AppCompatTheme_ratingBarStyleSmall = 86; public static final int AppCompatTheme_searchViewStyle = 87; public static final int AppCompatTheme_seekBarStyle = 88; public static final int AppCompatTheme_selectableItemBackground = 89; public static final int AppCompatTheme_selectableItemBackgroundBorderless = 90; public static final int AppCompatTheme_spinnerDropDownItemStyle = 91; public static final int AppCompatTheme_spinnerStyle = 92; public static final int AppCompatTheme_switchStyle = 93; public static final int AppCompatTheme_textAppearanceLargePopupMenu = 94; public static final int AppCompatTheme_textAppearanceListItem = 95; public static final int AppCompatTheme_textAppearanceListItemSmall = 96; public static final int AppCompatTheme_textAppearancePopupMenuHeader = 97; public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 98; public static final int AppCompatTheme_textAppearanceSearchResultTitle = 99; public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 100; public static final int AppCompatTheme_textColorAlertDialogListItem = 101; public static final int AppCompatTheme_textColorSearchUrl = 102; public static final int AppCompatTheme_toolbarNavigationButtonStyle = 103; public static final int AppCompatTheme_toolbarStyle = 104; public static final int AppCompatTheme_windowActionBar = 105; public static final int AppCompatTheme_windowActionBarOverlay = 106; public static final int AppCompatTheme_windowActionModeOverlay = 107; public static final int AppCompatTheme_windowFixedHeightMajor = 108; public static final int AppCompatTheme_windowFixedHeightMinor = 109; public static final int AppCompatTheme_windowFixedWidthMajor = 110; public static final int AppCompatTheme_windowFixedWidthMinor = 111; public static final int AppCompatTheme_windowMinWidthMajor = 112; public static final int AppCompatTheme_windowMinWidthMinor = 113; public static final int AppCompatTheme_windowNoTitle = 114; public static final int[] ButtonBarLayout = { 0x7f03002b }; public static final int ButtonBarLayout_allowStacking = 0; public static final int[] ColorStateListItem = { 0x010101a5, 0x0101031f, 0x7f03002c }; public static final int ColorStateListItem_android_color = 0; public static final int ColorStateListItem_android_alpha = 1; public static final int ColorStateListItem_alpha = 2; public static final int[] CompoundButton = { 0x01010107, 0x7f03004a, 0x7f03004b }; public static final int CompoundButton_android_button = 0; public static final int CompoundButton_buttonTint = 1; public static final int CompoundButton_buttonTintMode = 2; public static final int[] DrawerArrowToggle = { 0x7f03002f, 0x7f030030, 0x7f030037, 0x7f030084, 0x7f0300b2, 0x7f0300cc, 0x7f030185, 0x7f0301b8 }; public static final int DrawerArrowToggle_arrowHeadLength = 0; public static final int DrawerArrowToggle_arrowShaftLength = 1; public static final int DrawerArrowToggle_barLength = 2; public static final int DrawerArrowToggle_color = 3; public static final int DrawerArrowToggle_drawableSize = 4; public static final int DrawerArrowToggle_gapBetweenBars = 5; public static final int DrawerArrowToggle_spinBars = 6; public static final int DrawerArrowToggle_thickness = 7; public static final int[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f0300ad, 0x7f0300af, 0x7f030138, 0x7f030180 }; public static final int LinearLayoutCompat_android_gravity = 0; public static final int LinearLayoutCompat_android_orientation = 1; public static final int LinearLayoutCompat_android_baselineAligned = 2; public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; public static final int LinearLayoutCompat_android_weightSum = 4; public static final int LinearLayoutCompat_divider = 5; public static final int LinearLayoutCompat_dividerPadding = 6; public static final int LinearLayoutCompat_measureWithLargestChild = 7; public static final int LinearLayoutCompat_showDividers = 8; public static final int[] LinearLayoutCompat_Layout = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 }; public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0; public static final int LinearLayoutCompat_Layout_android_layout_width = 1; public static final int LinearLayoutCompat_Layout_android_layout_height = 2; public static final int LinearLayoutCompat_Layout_android_layout_weight = 3; public static final int[] ListPopupWindow = { 0x010102ac, 0x010102ad }; public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0; public static final int ListPopupWindow_android_dropDownVerticalOffset = 1; public static final int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 }; public static final int MenuGroup_android_enabled = 0; public static final int MenuGroup_android_id = 1; public static final int MenuGroup_android_visible = 2; public static final int MenuGroup_android_menuCategory = 3; public static final int MenuGroup_android_orderInCategory = 4; public static final int MenuGroup_android_checkableBehavior = 5; public static final int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f03000e, 0x7f030020, 0x7f030021, 0x7f03017f }; public static final int MenuItem_android_icon = 0; public static final int MenuItem_android_enabled = 1; public static final int MenuItem_android_id = 2; public static final int MenuItem_android_checked = 3; public static final int MenuItem_android_visible = 4; public static final int MenuItem_android_menuCategory = 5; public static final int MenuItem_android_orderInCategory = 6; public static final int MenuItem_android_title = 7; public static final int MenuItem_android_titleCondensed = 8; public static final int MenuItem_android_alphabeticShortcut = 9; public static final int MenuItem_android_numericShortcut = 10; public static final int MenuItem_android_checkable = 11; public static final int MenuItem_android_onClick = 12; public static final int MenuItem_actionLayout = 13; public static final int MenuItem_actionProviderClass = 14; public static final int MenuItem_actionViewClass = 15; public static final int MenuItem_showAsAction = 16; public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f03015f, 0x7f030190 }; public static final int MenuView_android_windowAnimationStyle = 0; public static final int MenuView_android_itemTextAppearance = 1; public static final int MenuView_android_horizontalDivider = 2; public static final int MenuView_android_verticalDivider = 3; public static final int MenuView_android_headerBackground = 4; public static final int MenuView_android_itemBackground = 5; public static final int MenuView_android_itemIconDisabledAlpha = 6; public static final int MenuView_preserveIconSpacing = 7; public static final int MenuView_subMenuArrow = 8; public static final int[] PopupWindow = { 0x01010176, 0x010102c9, 0x7f030153 }; public static final int PopupWindow_android_popupBackground = 0; public static final int PopupWindow_android_popupAnimationStyle = 1; public static final int PopupWindow_overlapAnchor = 2; public static final int[] PopupWindowBackgroundState = { 0x7f03018b }; public static final int PopupWindowBackgroundState_state_above_anchor = 0; public static final int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f03007e, 0x7f03008f, 0x7f0300a9, 0x7f0300cd, 0x7f0300d7, 0x7f0300eb, 0x7f030163, 0x7f030164, 0x7f030171, 0x7f030172, 0x7f030191, 0x7f030197, 0x7f0301df }; public static final int SearchView_android_focusable = 0; public static final int SearchView_android_maxWidth = 1; public static final int SearchView_android_inputType = 2; public static final int SearchView_android_imeOptions = 3; public static final int SearchView_closeIcon = 4; public static final int SearchView_commitIcon = 5; public static final int SearchView_defaultQueryHint = 6; public static final int SearchView_goIcon = 7; public static final int SearchView_iconifiedByDefault = 8; public static final int SearchView_layout = 9; public static final int SearchView_queryBackground = 10; public static final int SearchView_queryHint = 11; public static final int SearchView_searchHintIcon = 12; public static final int SearchView_searchIcon = 13; public static final int SearchView_submitBackground = 14; public static final int SearchView_suggestionRowLayout = 15; public static final int SearchView_voiceIcon = 16; public static final int[] Spinner = { 0x010100b2, 0x01010176, 0x0101017b, 0x01010262, 0x7f03015d }; public static final int Spinner_android_entries = 0; public static final int Spinner_android_popupBackground = 1; public static final int Spinner_android_prompt = 2; public static final int Spinner_android_dropDownWidth = 3; public static final int Spinner_popupTheme = 4; public static final int[] SwitchCompat = { 0x01010124, 0x01010125, 0x01010142, 0x7f030181, 0x7f030188, 0x7f030198, 0x7f030199, 0x7f03019b, 0x7f0301b9, 0x7f0301ba, 0x7f0301bb, 0x7f0301cf, 0x7f0301d0, 0x7f0301d1 }; public static final int SwitchCompat_android_textOn = 0; public static final int SwitchCompat_android_textOff = 1; public static final int SwitchCompat_android_thumb = 2; public static final int SwitchCompat_showText = 3; public static final int SwitchCompat_splitTrack = 4; public static final int SwitchCompat_switchMinWidth = 5; public static final int SwitchCompat_switchPadding = 6; public static final int SwitchCompat_switchTextAppearance = 7; public static final int SwitchCompat_thumbTextPadding = 8; public static final int SwitchCompat_thumbTint = 9; public static final int SwitchCompat_thumbTintMode = 10; public static final int SwitchCompat_track = 11; public static final int SwitchCompat_trackTint = 12; public static final int SwitchCompat_trackTintMode = 13; public static final int[] TextAppearance = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x7f0301ac }; public static final int TextAppearance_android_textSize = 0; public static final int TextAppearance_android_typeface = 1; public static final int TextAppearance_android_textStyle = 2; public static final int TextAppearance_android_textColor = 3; public static final int TextAppearance_android_shadowColor = 4; public static final int TextAppearance_android_shadowDx = 5; public static final int TextAppearance_android_shadowDy = 6; public static final int TextAppearance_android_shadowRadius = 7; public static final int TextAppearance_textAllCaps = 8; public static final int[] Toolbar = { 0x010100af, 0x01010140, 0x7f030045, 0x7f030080, 0x7f030081, 0x7f030091, 0x7f030092, 0x7f030093, 0x7f030094, 0x7f030095, 0x7f030096, 0x7f03012c, 0x7f03012d, 0x7f030137, 0x7f03014f, 0x7f030150, 0x7f03015d, 0x7f030193, 0x7f030194, 0x7f030195, 0x7f0301bf, 0x7f0301c1, 0x7f0301c2, 0x7f0301c3, 0x7f0301c4, 0x7f0301c5, 0x7f0301c6, 0x7f0301c7, 0x7f0301c8 }; public static final int Toolbar_android_gravity = 0; public static final int Toolbar_android_minHeight = 1; public static final int Toolbar_buttonGravity = 2; public static final int Toolbar_collapseContentDescription = 3; public static final int Toolbar_collapseIcon = 4; public static final int Toolbar_contentInsetEnd = 5; public static final int Toolbar_contentInsetEndWithActions = 6; public static final int Toolbar_contentInsetLeft = 7; public static final int Toolbar_contentInsetRight = 8; public static final int Toolbar_contentInsetStart = 9; public static final int Toolbar_contentInsetStartWithNavigation = 10; public static final int Toolbar_logo = 11; public static final int Toolbar_logoDescription = 12; public static final int Toolbar_maxButtonHeight = 13; public static final int Toolbar_navigationContentDescription = 14; public static final int Toolbar_navigationIcon = 15; public static final int Toolbar_popupTheme = 16; public static final int Toolbar_subtitle = 17; public static final int Toolbar_subtitleTextAppearance = 18; public static final int Toolbar_subtitleTextColor = 19; public static final int Toolbar_title = 20; public static final int Toolbar_titleMargin = 21; public static final int Toolbar_titleMarginBottom = 22; public static final int Toolbar_titleMarginEnd = 23; public static final int Toolbar_titleMarginStart = 24; public static final int Toolbar_titleMarginTop = 25; public static final int Toolbar_titleMargins = 26; public static final int Toolbar_titleTextAppearance = 27; public static final int Toolbar_titleTextColor = 28; public static final int[] View = { 0x01010000, 0x010100da, 0x7f030154, 0x7f030155, 0x7f0301b7 }; public static final int View_android_theme = 0; public static final int View_android_focusable = 1; public static final int View_paddingEnd = 2; public static final int View_paddingStart = 3; public static final int View_theme = 4; public static final int[] ViewBackgroundHelper = { 0x010100d4, 0x7f030035, 0x7f030036 }; public static final int ViewBackgroundHelper_android_background = 0; public static final int ViewBackgroundHelper_backgroundTint = 1; public static final int ViewBackgroundHelper_backgroundTintMode = 2; public static final int[] ViewStubCompat = { 0x010100d0, 0x010100f2, 0x010100f3 }; public static final int ViewStubCompat_android_id = 0; public static final int ViewStubCompat_android_layout = 1; public static final int ViewStubCompat_android_inflatedId = 2; } }
[ "mlingam@asu.edu" ]
mlingam@asu.edu
02b49d079d3b841eca77507fbc87b92b9cd73d67
338869dfe73f8bedd663cfd6ea97936e7e9aa527
/app/src/main/java/android/xwpeng/testipc/service/PushService.java
7053ea2e172fce72668673e8dadbf249a36d098b
[ "Apache-2.0" ]
permissive
xwpeng/TestIPC
22f5b3edabd6fb672808668aeb37e5fcd4cb3840
38cd0ed9ec3ca0dc8738c7dae8264b1d49a21037
refs/heads/master
2020-09-14T02:45:43.382825
2016-12-16T08:08:09
2016-12-16T08:08:09
66,817,470
0
0
null
null
null
null
UTF-8
Java
false
false
6,618
java
package android.xwpeng.testipc.service; import android.app.Service; import android.content.Intent; import android.content.pm.PackageManager; import android.os.IBinder; import android.os.Parcel; import android.os.Process; import android.os.RemoteCallbackList; import android.os.RemoteException; import android.support.annotation.Nullable; import android.util.Log; import android.xwpeng.testipc.IBookManager; import android.xwpeng.testipc.IOnNewBookArrivedListener; import android.xwpeng.testipc.entity.Book; import android.xwpeng.testipc.entity.User2; import android.xwpeng.testipc.util.ProcessUtil; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicBoolean; /** * test private process and remote Service * Created by xwpeng on 16-11-23. */ public class PushService extends Service { private final static String TAG = PushService.class.getSimpleName(); private MyBinder mBinder = new MyBinder(); private CopyOnWriteArrayList<Book> mBooks; private CopyOnWriteArrayList<User2> mUsers; private AtomicBoolean mIsServiceDestroyed = new AtomicBoolean(false); private RemoteCallbackList<IOnNewBookArrivedListener> mListeners = new RemoteCallbackList<>(); @Nullable @Override public IBinder onBind(Intent intent) { Log.d(TAG, "onBind"); // int check = checkCallingOrSelfPermission("android.xwpeng.permission.ACCESS_PUSH_SERVICE"); // if (check == PackageManager.PERMISSION_DENIED) { // return null; // } return mBinder; } @Override public void onCreate() { super.onCreate(); Log.d(TAG, "onCreate"); Log.e(TAG, "processname: " + ProcessUtil.getProcessName() + " pid: " + Process.myPid()); if (mBooks == null) { mBooks = new CopyOnWriteArrayList<>(); Book book = new Book(); book.id = 1; book.name = "pushCreateBook"; book.price = 99.00; mBooks.add(book); } if (mUsers == null) { mUsers = new CopyOnWriteArrayList<>(); User2 u = new User2(); Book book = new Book(); book.id = 1; book.name = "pushCreateBook"; book.price = 99.00; u.book = book; u.userId = 1; u.gender = "male"; u.userName = "pushUser"; mUsers.add(u); } new Thread(new AddBookWorker()).start(); } @Override public int onStartCommand(Intent intent, int flags, int startId) { Log.d(TAG, "onStartCommand"); return super.onStartCommand(intent, flags, startId); } @Override public void onDestroy() { mIsServiceDestroyed.set(true); Log.d(TAG, "onDestroy"); super.onDestroy(); } private void onNewBookArrived(Book book) throws RemoteException { mBooks.add(book); //notify all listeners // for (IOnNewBookArrivedListener l : mListeners) { // l.onNewBookArrived(book); // } int size = mListeners.beginBroadcast(); for (int i = 0; i< size; i++) { mListeners.getBroadcastItem(i).onNewBookArrived(book); } mListeners.finishBroadcast(); } private class MyBinder extends IBookManager.Stub { @Override public void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat, double aDouble, String aString) throws RemoteException { } @Override public List<Book> getBookList() throws RemoteException { // SystemClock.sleep(5000); return mBooks; } @Override public Book addBookIn(Book b) throws RemoteException { Log.e(TAG, "in->receive:" + b.toString()); Log.e(TAG, "in->receive book's hash:" + b.hashCode()); mBooks.add(b); b.name = "pushAddIn"; return b; } @Override public Book addBookOut(Book b) throws RemoteException { Log.e(TAG, "out->receive:" + b.toString()); Log.e(TAG, "out->receive book's hash:" + b.hashCode()); mBooks.add(b); b.name = "pushAddOut"; return b; } @Override public Book addBookInOut(Book b) throws RemoteException { Log.e(TAG, "inout->receive:" + b.toString()); Log.e(TAG, "inout->receive book's hash:" + b.hashCode()); mBooks.add(b); b.name = "pushAddInOut"; return b; } @Override public List<User2> getUserList() throws RemoteException { return mUsers; } @Override public void addUser(User2 u) throws RemoteException { mUsers.add(u); } @Override public void registerListener(android.xwpeng.testipc.IOnNewBookArrivedListener listener) throws RemoteException { mListeners.register(listener); } @Override public void unregisterListener(android.xwpeng.testipc.IOnNewBookArrivedListener listener) throws RemoteException { mListeners.unregister(listener); } @Override public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException { int check = checkCallingOrSelfPermission("android.xwpeng.permission.ACCESS_PUSH_SERVICE"); if (check == PackageManager.PERMISSION_DENIED) { return false; } String packageName = null; String[] packages = getPackageManager().getPackagesForUid(getCallingUid()); if (packages != null && packages.length > 0) { packageName = packages[0]; } if (!packageName.startsWith("android.xwpeng")) { return false; } return super.onTransact(code, data, reply, flags); } } private class AddBookWorker implements Runnable { @Override public void run() { while (!mIsServiceDestroyed.get()) { try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } int bookId = mBooks.size() + 1; Book b = new Book(bookId, "Love Android " + bookId, bookId * 100); try { onNewBookArrived(b); } catch (RemoteException e) { e.printStackTrace(); } } } } }
[ "cocpl0101001@gamil.com" ]
cocpl0101001@gamil.com
29f0abd3823cb15090c78e82728f509cfb346c73
88c62d0cabf7f0a884336f76ad4db8d4050d6ecd
/vcell-math/src/main/java/jscl/math/operator/product/MatrixProduct.java
c1b7bc7a804b4ffebb92ab911de3798597fb9933
[ "MIT" ]
permissive
virtualcell/vcell
51aadcd59c4c756aa7dcd43774f9236a8ddcbc37
a4783fec69c30d0a182da50293bfc3ee63af353e
refs/heads/master
2023-08-31T11:14:32.525164
2023-08-30T20:28:25
2023-08-30T20:28:25
101,466,853
55
21
NOASSERTION
2023-09-13T20:02:46
2017-08-26T06:14:17
Java
UTF-8
Java
false
false
1,070
java
package jscl.math.operator.product; import jscl.math.Generic; import jscl.math.Matrix; import jscl.math.Variable; import jscl.math.operator.VectorOperator; import jscl.mathml.MathML; public class MatrixProduct extends VectorOperator { public MatrixProduct(Generic matrix1, Generic matrix2) { super("matrix",new Generic[] {matrix1,matrix2}); } public Generic compute() { if(Matrix.product(parameter[0],parameter[1])) { return parameter[0].multiply(parameter[1]); } return expressionValue(); } public String toJava() { StringBuffer buffer=new StringBuffer(); buffer.append(parameter[0].toJava()); buffer.append(".multiply("); buffer.append(parameter[1].toJava()); buffer.append(")"); return buffer.toString(); } protected void bodyToMathML(MathML element) { parameter[0].toMathML(element,null); parameter[1].toMathML(element,null); } protected Variable newinstance() { return new MatrixProduct(null,null); } }
[ "schaff@uchc.edu" ]
schaff@uchc.edu
1b86b0a21de1cefa8b539e56cf7be5ed5dac57c7
e3282288f53de43326522ae4b5ea312adf261c3e
/My Little Baby(육아일기앱)/03. 소스코드/My Little Baby/CalendarTest/src/com/example/calendartest/Oneday.java
98c0de56303d4eddaf4f7fb6a2d118a3ac19e104
[]
no_license
Yian-Kim/Toy-Project-Collection
0ad7614687341bde89a07ff6c968862dde62cc88
32930ca5671bf9aa92a4a7a2d7d9239302fc71e6
refs/heads/master
2022-01-19T16:43:10.300414
2019-06-29T13:38:06
2019-06-29T13:38:06
null
0
0
null
null
null
null
UHC
Java
false
false
7,991
java
package com.example.calendartest; import java.util.Calendar; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.view.View; public class Oneday extends View { private int year; private int month; private int day; private int dayOfWeek; private String textDay; private String textActCnt; private Paint bgDayPaint; private Paint bgSelectedDayPaint; private Paint bgActcntPaint; private Paint bgTodayPaint; private Paint textDayPaint; private Paint textActcntPaint; private int textDayTopPadding; private int textDayLeftPadding; private int textActcntTopPadding; private int textActcntLeftPadding; private Paint mPaint; private boolean mSelected; public boolean isToday = false; public Oneday(Context context , android.util.AttributeSet attrs) { super(context, attrs); init(); } public Oneday(Context context) { super(context); init(); } private void init() { bgDayPaint = new Paint(); bgSelectedDayPaint = new Paint(); bgActcntPaint = new Paint(); textDayPaint = new Paint(); textActcntPaint = new Paint(); bgTodayPaint = new Paint(); bgDayPaint.setColor(Color.WHITE); bgActcntPaint.setColor(Color.YELLOW); textDayPaint.setColor(Color.WHITE); textDayPaint.setAntiAlias(true); textActcntPaint.setColor(Color.WHITE); textActcntPaint.setAntiAlias(true); bgTodayPaint.setColor(Color.GREEN); rect = new RectF(); setTextDayTopPadding(0); setTextDayLeftPadding(0); setTextActcntTopPadding(0); setTextActcntLeftPadding(0); mPaint = new Paint(); mSelected = false; } RectF rect; @Override protected void onDraw(Canvas canvas) { if(mSelected){ canvas.drawPaint(bgSelectedDayPaint); }else{ if(isToday){ canvas.drawPaint(bgTodayPaint); } else { canvas.drawPaint(bgDayPaint); } } int width = this.getWidth()/2; int height = this.getHeight()/2; int textDaysize = (int)textDayPaint.measureText(getTextDay()) / 2; int textActsize = (int)textActcntPaint.measureText(getTextActCnt()) / 2; canvas.drawText(getTextDay(), width - textDaysize + getTextDayLeftPadding(), height + getTextDayTopPadding(), textDayPaint); // 할일 표시 삭제 // if(getTextActCnt() != "") // { // rect.set(10, 45, 55, 65); // canvas.drawRoundRect(rect, 10, 30, bgActcntPaint); // } canvas.drawText(getTextActCnt(), width - textActsize + getTextActcntLeftPadding(), height + getTextActcntTopPadding(), textActcntPaint); mPaint.setStyle(Paint.Style.STROKE); mPaint.setColor(Color.BLACK); canvas.drawLine(0, this.getHeight()-1, this.getWidth()-1, this.getHeight()-1, mPaint); canvas.drawLine(this.getWidth()-1, 0, this.getWidth()-1, this.getHeight()-1, mPaint); } public int getTextDayTopPadding() { return this.textDayTopPadding; } public int getTextDayLeftPadding() { return this.textDayLeftPadding; } public void setTextDayTopPadding(int top){ this.textDayTopPadding = top; } public void setTextDayLeftPadding(int left){ this.textDayLeftPadding = left; } public int getTextActcntTopPadding() { return this.textActcntTopPadding; } public int getTextActcntLeftPadding() { return this.textActcntLeftPadding; } public void setTextActcntTopPadding(int top){ this.textActcntTopPadding = top; } public void setTextActcntLeftPadding(int left){ this.textActcntLeftPadding = left; } public void setBgTodayPaint(int color){ this.bgTodayPaint.setColor(color); } public void setBgDayPaint(int color){ this.bgDayPaint.setColor(color); } public void setBgSelectedDayPaint(int color){ this.bgSelectedDayPaint.setColor(color); } public void setBgActcntPaint(int color){ this.bgActcntPaint.setColor(color); } public void setSelected(boolean selected){ this.mSelected = selected; } public boolean getSelected() { return this.mSelected; } /** * 일자에 표시된 글 리턴 * @return */ public String getTextDay() { return this.textDay; } /** * 일자에 표시할 글 입력 * @param string */ public void setTextDay(String string) { this.textDay = string; } /** * 부가 설명에 표시된 글 리턴 * @return */ public String getTextActCnt(){ return this.textActCnt; } /** * 부가 설명에 표시할 글 입력 * @param string */ public void setTextActCnt(String string){ this.textActCnt = string; } /** * 일자 글씨 색상 * @param color */ public void setTextDayColor(int color){ this.textDayPaint.setColor(color); } /** * 일자 글씨 크기 * @param size */ public void setTextDaySize(int size){ this.textDayPaint.setTextSize(size); } /** * 부가 설명 글자 색상 * @param color */ public void setTextActcntColor(int color){ this.textActcntPaint.setColor(color); } /** * 부가 설명 글자 크기 * @param size */ public void setTextActcntSize(int size){ this.textActcntPaint.setTextSize(size); } /** * 년도 * @param _year */ public void setYear(int _year){ year = _year; } /** * @return 년도 */ public int getYear(){ return year; } /** * 월 * * @param _month 0~11, Calendar.JANUARY ~ Calendar.DECEMBER */ public void setMonth(int _month){ month = Math.min(Calendar.DECEMBER, Math.max(Calendar.JANUARY, _month)); month = _month; } /** * @return 월 0~11, Calendar.JANUARY ~ Calendar.DECEMBER */ public int getMonth(){ return month; } /** * 일 1~31 */ public void setDay(int _day){ day = Math.min(31, Math.max(1, _day)); day = _day; } /** * @return 일 1~31 */ public int getDay(){ return day; } /** * 요일 1~7<br/> * Calendar.SUNDAY ~ Calendar.SATURDAY */ public void setDayOfWeek(int _dayOfWeek){ dayOfWeek = Math.min(Calendar.SATURDAY, Math.max(Calendar.SUNDAY, _dayOfWeek)); dayOfWeek = _dayOfWeek; } /** * @return 요일 1~7, Calendar.SUNDAY ~ Calendar.SATURDAY */ public int getDayOfWeek(){ return dayOfWeek; } /** * 해당 요일을 한글로 리턴 * @return "일", "월", "화", "수", "목", "금", "토" */ public String getDayOfWeekKorean(){ final String[]korean = {"오류", "일", "월", "화", "수", "목", "금", "토"}; return korean[dayOfWeek]; } /** * 해당 요일을 영어로 리턴 * @return "Sun", "Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur" */ public String getDayOfWeekEnglish(){ final String[]korean = {"E", "Sun", "Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur"}; return korean[dayOfWeek]; } /** * 기본 정보 복사 * @param srcDay */ public void copyData(Oneday srcDay){ setYear(srcDay.getYear()); setMonth(srcDay.getMonth()); setDay(srcDay.getDay()); setDayOfWeek(srcDay.getDayOfWeek()); setTextDay(srcDay.getTextDay()); setTextActCnt(srcDay.getTextActCnt()); } }
[ "chanmi_dev@naver.com" ]
chanmi_dev@naver.com
9ca823d195c998e77c19c9df279b88b39f2353de
705a4392a9b8e8734f37c1db3dfddffc45e15b6f
/sc-socket/src/main/java/com/sc/socket/core/ssl/facade/ITasks.java
22de709b282f02e3357c0aa2b91cc0ed40f44a1b
[ "Apache-2.0" ]
permissive
fullshit/com-sc
64f473804d1bbdeacd49a248a7e90e092f0a1466
76b66580185fab0d595619956ae6c40f60a00633
refs/heads/master
2020-05-31T15:52:33.690141
2019-03-04T11:34:54
2019-03-04T11:34:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
163
java
package com.sc.socket.core.ssl.facade; import javax.net.ssl.SSLException; public interface ITasks { Runnable next(); void done() throws SSLException; }
[ "senssic@foxmail.com" ]
senssic@foxmail.com
17fa9d49fe5d33afec68629c87148c5ebf3d6f7c
cf35003c7b1f39a8795c81aad1e828facd39154a
/src/epconstrucao/controller/MaterialTelaController.java
30c9eb3211796e035f91f09a14cc1137e8594edb
[]
no_license
jairnb/projectoFinal
4a40114701c9d45441cc79c68d254e3470f5c322
d568135cd9c149f4da2598da97bb5eded36acfe4
refs/heads/master
2020-03-21T17:45:15.070919
2018-06-29T11:59:07
2018-06-29T11:59:07
138,851,160
0
1
null
null
null
null
UTF-8
Java
false
false
5,393
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 epconstrucao.controller; import com.jfoenix.controls.JFXTextField; import epconstrucao.model.dao.MaterialDAO; import epconstrucao.model.database.Database; import epconstrucao.model.database.DatabaseFactory; import epconstrucao.model.domain.Material; import java.io.IOException; import java.net.URL; import java.sql.Connection; import java.util.List; import java.util.ResourceBundle; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.fxml.Initializable; import javafx.scene.Scene; import javafx.scene.control.TableColumn; import javafx.scene.control.TableView; import javafx.scene.control.cell.PropertyValueFactory; import javafx.scene.input.KeyEvent; import javafx.scene.layout.AnchorPane; import javafx.stage.Stage; import javax.swing.JOptionPane; /** * FXML Controller class * * @author Sándra Helena */ public class MaterialTelaController implements Initializable { @FXML private TableColumn<Material, String> nomeColuna; @FXML private TableColumn<Material, Integer> quantidadeColuna; @FXML private TableColumn<Material, String> medidaColuna; @FXML private TableColumn<Material, Float> precoColuna; @FXML private TableView<Material> materialTabela; @FXML private TableColumn<Material, Integer> codigoColuna; @FXML private JFXTextField pesquisaTextFiled; private List<Material> materialLista; private ObservableList<Material> materialObservList; MaterialDAO materialDAO = new MaterialDAO(); private final Database _bd = DatabaseFactory.getDatabase(); private Connection conexao = _bd.conectar(); @Override public void initialize(URL url, ResourceBundle rb) { materialDAO.setConexao(conexao); carregarTabela(); pesquisaTextFiled.setOnKeyReleased((KeyEvent e) -> { pesquisarMaterial(); }); } @FXML public void adicionarMaterialBtn() throws IOException{ Material material = new Material(); boolean botaoConfirmarClick = showAddEditMaterial(material); if(botaoConfirmarClick){ boolean sucesso = materialDAO.adicoanarMaterial(material); if(!sucesso){ JOptionPane.showMessageDialog(null,"Não Possivel Concluir a operação"); }else{ JOptionPane.showMessageDialog(null,"Sucesso"); } carregarTabela(); } } public void carregarTabela(){ codigoColuna.setCellValueFactory(new PropertyValueFactory<>("idMaterial")); nomeColuna.setCellValueFactory(new PropertyValueFactory<>("nome")); quantidadeColuna.setCellValueFactory(new PropertyValueFactory<>("quantidade")); precoColuna.setCellValueFactory(new PropertyValueFactory<>("preco")); medidaColuna.setCellValueFactory(new PropertyValueFactory<>("unidadeMedida")); materialLista = materialDAO.ListarMaterial(); materialObservList = FXCollections.observableArrayList(materialLista); materialTabela.setItems(materialObservList); } @FXML public void editarMaterial() throws IOException{ Material material = materialTabela.getSelectionModel().getSelectedItem(); if(material != null){ boolean botaoConfirmarClick = showAddEditMaterial(material); if(botaoConfirmarClick){ boolean sucesso = materialDAO.editarMaterial(material); if(!sucesso){ JOptionPane.showMessageDialog(null,"Nome existente"); } carregarTabela(); } }else { JOptionPane.showMessageDialog(null,"Selecionar Primeiro"); } } public boolean showAddEditMaterial(Material material) throws IOException{ FXMLLoader loader = new FXMLLoader(); loader.setLocation(MaterialAdcionarTelaController.class.getResource("/epconstrucao/view/MaterialAdcionarTela.fxml")); AnchorPane pane = (AnchorPane) loader.load(); Stage dialogStage = new Stage(); dialogStage.setResizable(false); dialogStage.setTitle("Material"); Scene scene = new Scene(pane); dialogStage.setScene(scene); MaterialAdcionarTelaController controller = loader.getController(); controller.setDialogStage(dialogStage); controller.setMaterial(material); dialogStage.setAlwaysOnTop(true); dialogStage.showAndWait(); return controller.isBotaoConfirmar(); } public void pesquisarMaterial(){ materialObservList = FXCollections.observableArrayList(); materialLista = materialDAO.ListarMaterial(); for(int i = 0; i < materialLista.size(); i++){ if(materialLista.get(i).getNome().toLowerCase().contains(pesquisaTextFiled.getText().toLowerCase())){ materialObservList.add(materialLista.get(i)); materialTabela.setItems(materialObservList); } } } }
[ "jair10.nb@hotmail.com" ]
jair10.nb@hotmail.com
29bafa3f2bf96ebee2c0d4cf564ddaf431ff4f22
b55c1e4196221ea19d3091027cbe6b599d911648
/hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerSource.java
897ae840f8570cebb3f9f621b424a1c5ffbc43de
[ "Apache-2.0", "CPL-1.0", "MPL-1.0" ]
permissive
wangbin83-gmail-com/hbase-0.98.6-cdh5.3.1-rong
dc3b18a893a59aa75df7e4269723c71825ccd3fc
236648546ee847da2420c44c9a8d5040c2e45b40
refs/heads/master
2021-01-09T21:54:49.734109
2017-09-25T07:20:34
2017-09-25T07:20:34
50,658,326
0
1
Apache-2.0
2023-03-20T11:47:20
2016-01-29T11:24:29
Java
UTF-8
Java
false
false
11,658
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 org.apache.hadoop.hbase.regionserver; import org.apache.hadoop.hbase.metrics.BaseSource; /** * Interface for classes that expose metrics about the regionserver. */ public interface MetricsRegionServerSource extends BaseSource { /** * The name of the metrics */ String METRICS_NAME = "Server"; /** * The name of the metrics context that metrics will be under. */ String METRICS_CONTEXT = "regionserver"; /** * Description */ String METRICS_DESCRIPTION = "Metrics about HBase RegionServer"; /** * The name of the metrics context that metrics will be under in jmx */ String METRICS_JMX_CONTEXT = "RegionServer,sub=" + METRICS_NAME; /** * Update the Put time histogram * * @param t time it took */ void updatePut(long t); /** * Update the Delete time histogram * * @param t time it took */ void updateDelete(long t); /** * Update the Get time histogram . * * @param t time it took */ void updateGet(long t); /** * Update the Increment time histogram. * * @param t time it took */ void updateIncrement(long t); /** * Update the Append time histogram. * * @param t time it took */ void updateAppend(long t); /** * Update the Replay time histogram. * * @param t time it took */ void updateReplay(long t); /** * Increment the number of slow Puts that have happened. */ void incrSlowPut(); /** * Increment the number of slow Deletes that have happened. */ void incrSlowDelete(); /** * Increment the number of slow Gets that have happened. */ void incrSlowGet(); /** * Increment the number of slow Increments that have happened. */ void incrSlowIncrement(); /** * Increment the number of slow Appends that have happened. */ void incrSlowAppend(); // Strings used for exporting to metrics system. String REGION_COUNT = "regionCount"; String REGION_COUNT_DESC = "Number of regions"; String STORE_COUNT = "storeCount"; String STORE_COUNT_DESC = "Number of Stores"; String HLOGFILE_COUNT = "hlogFileCount"; String HLOGFILE_COUNT_DESC = "Number of HLog Files"; String HLOGFILE_SIZE = "hlogFileSize"; String HLOGFILE_SIZE_DESC = "Size of all HLog Files"; String STOREFILE_COUNT = "storeFileCount"; String STOREFILE_COUNT_DESC = "Number of Store Files"; String MEMSTORE_SIZE = "memStoreSize"; String MEMSTORE_SIZE_DESC = "Size of the memstore"; String STOREFILE_SIZE = "storeFileSize"; String STOREFILE_SIZE_DESC = "Size of storefiles being served."; String TOTAL_REQUEST_COUNT = "totalRequestCount"; String TOTAL_REQUEST_COUNT_DESC = "Total number of requests this RegionServer has answered."; String READ_REQUEST_COUNT = "readRequestCount"; String READ_REQUEST_COUNT_DESC = "Number of read requests this region server has answered."; String WRITE_REQUEST_COUNT = "writeRequestCount"; String WRITE_REQUEST_COUNT_DESC = "Number of mutation requests this region server has answered."; String CHECK_MUTATE_FAILED_COUNT = "checkMutateFailedCount"; String CHECK_MUTATE_FAILED_COUNT_DESC = "Number of Check and Mutate calls that failed the checks."; String CHECK_MUTATE_PASSED_COUNT = "checkMutatePassedCount"; String CHECK_MUTATE_PASSED_COUNT_DESC = "Number of Check and Mutate calls that passed the checks."; String STOREFILE_INDEX_SIZE = "storeFileIndexSize"; String STOREFILE_INDEX_SIZE_DESC = "Size of indexes in storefiles on disk."; String STATIC_INDEX_SIZE = "staticIndexSize"; String STATIC_INDEX_SIZE_DESC = "Uncompressed size of the static indexes."; String STATIC_BLOOM_SIZE = "staticBloomSize"; String STATIC_BLOOM_SIZE_DESC = "Uncompressed size of the static bloom filters."; String NUMBER_OF_MUTATIONS_WITHOUT_WAL = "mutationsWithoutWALCount"; String NUMBER_OF_MUTATIONS_WITHOUT_WAL_DESC = "Number of mutations that have been sent by clients with the write ahead logging turned off."; String DATA_SIZE_WITHOUT_WAL = "mutationsWithoutWALSize"; String DATA_SIZE_WITHOUT_WAL_DESC = "Size of data that has been sent by clients with the write ahead logging turned off."; String PERCENT_FILES_LOCAL = "percentFilesLocal"; String PERCENT_FILES_LOCAL_DESC = "The percent of HFiles that are stored on the local hdfs data node."; String COMPACTION_QUEUE_LENGTH = "compactionQueueLength"; String LARGE_COMPACTION_QUEUE_LENGTH = "largeCompactionQueueLength"; String SMALL_COMPACTION_QUEUE_LENGTH = "smallCompactionQueueLength"; String COMPACTION_QUEUE_LENGTH_DESC = "Length of the queue for compactions."; String FLUSH_QUEUE_LENGTH = "flushQueueLength"; String FLUSH_QUEUE_LENGTH_DESC = "Length of the queue for region flushes"; String BLOCK_CACHE_FREE_SIZE = "blockCacheFreeSize"; String BLOCK_CACHE_FREE_DESC = "Size of the block cache that is not occupied."; String BLOCK_CACHE_COUNT = "blockCacheCount"; String BLOCK_CACHE_COUNT_DESC = "Number of block in the block cache."; String BLOCK_CACHE_SIZE = "blockCacheSize"; String BLOCK_CACHE_SIZE_DESC = "Size of the block cache."; String BLOCK_CACHE_HIT_COUNT = "blockCacheHitCount"; String BLOCK_CACHE_HIT_COUNT_DESC = "Count of the hit on the block cache."; String BLOCK_CACHE_MISS_COUNT = "blockCacheMissCount"; String BLOCK_COUNT_MISS_COUNT_DESC = "Number of requests for a block that missed the block cache."; String BLOCK_CACHE_EVICTION_COUNT = "blockCacheEvictionCount"; String BLOCK_CACHE_EVICTION_COUNT_DESC = "Count of the number of blocks evicted from the block cache."; String BLOCK_CACHE_HIT_PERCENT = "blockCountHitPercent"; String BLOCK_CACHE_HIT_PERCENT_DESC = "Percent of block cache requests that are hits"; String BLOCK_CACHE_EXPRESS_HIT_PERCENT = "blockCacheExpressHitPercent"; String BLOCK_CACHE_EXPRESS_HIT_PERCENT_DESC = "The percent of the time that requests with the cache turned on hit the cache."; String RS_START_TIME_NAME = "regionServerStartTime"; String ZOOKEEPER_QUORUM_NAME = "zookeeperQuorum"; String SERVER_NAME_NAME = "serverName"; String CLUSTER_ID_NAME = "clusterId"; String RS_START_TIME_DESC = "RegionServer Start Time"; String ZOOKEEPER_QUORUM_DESC = "Zookeeper Quorum"; String SERVER_NAME_DESC = "Server Name"; String CLUSTER_ID_DESC = "Cluster Id"; String UPDATES_BLOCKED_TIME = "updatesBlockedTime"; String UPDATES_BLOCKED_DESC = "Number of MS updates have been blocked so that the memstore can be flushed."; String DELETE_KEY = "delete"; String GET_KEY = "get"; String INCREMENT_KEY = "increment"; String MUTATE_KEY = "mutate"; String APPEND_KEY = "append"; String REPLAY_KEY = "replay"; String SCAN_NEXT_KEY = "scanNext"; String SLOW_MUTATE_KEY = "slowPutCount"; String SLOW_GET_KEY = "slowGetCount"; String SLOW_DELETE_KEY = "slowDeleteCount"; String SLOW_INCREMENT_KEY = "slowIncrementCount"; String SLOW_APPEND_KEY = "slowAppendCount"; String SLOW_MUTATE_DESC = "The number of Multis that took over 1000ms to complete"; String SLOW_DELETE_DESC = "The number of Deletes that took over 1000ms to complete"; String SLOW_GET_DESC = "The number of Gets that took over 1000ms to complete"; String SLOW_INCREMENT_DESC = "The number of Increments that took over 1000ms to complete"; String SLOW_APPEND_DESC = "The number of Appends that took over 1000ms to complete"; String FLUSHED_CELLS = "flushedCellsCount"; String FLUSHED_CELLS_DESC = "The number of cells flushed to disk"; String FLUSHED_CELLS_SIZE = "flushedCellsSize"; String FLUSHED_CELLS_SIZE_DESC = "The total amount of data flushed to disk, in bytes"; String COMPACTED_CELLS = "compactedCellsCount"; String COMPACTED_CELLS_DESC = "The number of cells processed during minor compactions"; String COMPACTED_CELLS_SIZE = "compactedCellsSize"; String COMPACTED_CELLS_SIZE_DESC = "The total amount of data processed during minor compactions, in bytes"; String MAJOR_COMPACTED_CELLS = "majorCompactedCellsCount"; String MAJOR_COMPACTED_CELLS_DESC = "The number of cells processed during major compactions"; String MAJOR_COMPACTED_CELLS_SIZE = "majorCompactedCellsSize"; String MAJOR_COMPACTED_CELLS_SIZE_DESC = "The total amount of data processed during major compactions, in bytes"; String MOB_COMPACTED_INTO_MOB_CELLS_COUNT = "mobCompactedIntoMobCellsCount"; String MOB_COMPACTED_INTO_MOB_CELLS_COUNT_DESC = "The number of cells moved to mob during compaction"; String MOB_COMPACTED_FROM_MOB_CELLS_COUNT = "mobCompactedFromMobCellsCount"; String MOB_COMPACTED_FROM_MOB_CELLS_COUNT_DESC = "The number of cells moved from mob during compaction"; String MOB_COMPACTED_INTO_MOB_CELLS_SIZE = "mobCompactedIntoMobCellsSize"; String MOB_COMPACTED_INTO_MOB_CELLS_SIZE_DESC = "The total amount of cells move to mob during compaction, in bytes"; String MOB_COMPACTED_FROM_MOB_CELLS_SIZE = "mobCompactedFromMobCellsSize"; String MOB_COMPACTED_FROM_MOB_CELLS_SIZE_DESC = "The total amount of cells move from mob during compaction, in bytes"; String MOB_FLUSH_COUNT = "mobFlushCount"; String MOB_FLUSH_COUNT_DESC = "The number of the flushes in mob-enabled stores"; String MOB_FLUSHED_CELLS_COUNT = "mobFlushedCellsCount"; String MOB_FLUSHED_CELLS_COUNT_DESC = "The number of mob cells flushed to disk"; String MOB_FLUSHED_CELLS_SIZE = "mobFlushedCellsSize"; String MOB_FLUSHED_CELLS_SIZE_DESC = "The total amount of mob cells flushed to disk, in bytes"; String MOB_SCAN_CELLS_COUNT = "mobScanCellsCount"; String MOB_SCAN_CELLS_COUNT_DESC = "The number of scanned mob cells"; String MOB_SCAN_CELLS_SIZE = "mobScanCellsSize"; String MOB_SCAN_CELLS_SIZE_DESC = "The total amount of scanned mob cells, in bytes"; String MOB_FILE_CACHE_ACCESS_COUNT = "mobFileCacheAccessCount"; String MOB_FILE_CACHE_ACCESS_COUNT_DESC = "The count of accesses to the mob file cache"; String MOB_FILE_CACHE_MISS_COUNT = "mobFileCacheMissCount"; String MOB_FILE_CACHE_MISS_COUNT_DESC = "The count of misses to the mob file cache"; String MOB_FILE_CACHE_HIT_PERCENT = "mobFileCacheHitPercent"; String MOB_FILE_CACHE_HIT_PERCENT_DESC = "The hit percent to the mob file cache"; String MOB_FILE_CACHE_EVICTED_COUNT = "mobFileCacheEvictedCount"; String MOB_FILE_CACHE_EVICTED_COUNT_DESC = "The number of items evicted from the mob file cache"; String MOB_FILE_CACHE_COUNT = "mobFileCacheCount"; String MOB_FILE_CACHE_COUNT_DESC = "The count of cached mob files"; String HEDGED_READS = "hedgedReads"; String HEDGED_READS_DESC = "The number of times we started a hedged read"; String HEDGED_READ_WINS = "hedgedReadWins"; String HEDGED_READ_WINS_DESC = "The number of times we started a hedged read and a hedged read won"; }
[ "wangbin@ipa.rong360.com" ]
wangbin@ipa.rong360.com
b8ae47d399a202460ab65e7db405a1d85fc45774
0cc3358e3e8f81b854f9409d703724f0f5ea2ff7
/src/za/co/mmagon/jwebswing/plugins/bootstrap/forms/controls/BSInput.java
f2861a4c0921f364df5f3be803332888b2c82490
[]
no_license
jsdelivrbot/JWebMP-CompleteFree
c229dd405fe44d6c29ab06eedaecb7a733cbb183
d5f020a19165418eb21507204743e596bee2c011
refs/heads/master
2020-04-10T15:12:35.635284
2018-12-10T01:03:58
2018-12-10T01:03:58
161,101,028
0
0
null
2018-12-10T01:45:25
2018-12-10T01:45:25
null
UTF-8
Java
false
false
2,100
java
/* * Copyright (C) 2017 Marc Magon * * 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/>. */ package za.co.mmagon.jwebswing.plugins.bootstrap.forms.controls; import za.co.mmagon.jwebswing.base.html.Input; import za.co.mmagon.jwebswing.base.html.attributes.GlobalAttributes; import za.co.mmagon.jwebswing.base.html.attributes.InputTypes; import za.co.mmagon.jwebswing.plugins.bootstrap.BootstrapPageConfigurator; import za.co.mmagon.jwebswing.plugins.bootstrap.forms.groups.BSComponentFormGroupOptions; import za.co.mmagon.jwebswing.plugins.bootstrap.forms.groups.BSFormGroupChildren; /** * Denotes a bootstrap input type * * @author GedMarc * @since 17 Jan 2017 * */ public class BSInput extends Input implements BSFormGroupChildren { private static final long serialVersionUID = 1L; /** * Allows construction of a bootstrap input component */ public BSInput() { BootstrapPageConfigurator.setBootstrapRequired(this, true); } /** * Allows construction of a bootstrap input component * * @param inputType */ public BSInput(InputTypes inputType) { super(inputType); BootstrapPageConfigurator.setBootstrapRequired(this, true); } @Override public void preConfigure() { if (!isConfigured()) { addAttribute(GlobalAttributes.Name, getID()); addClass(BSComponentFormGroupOptions.Form_Control); } super.preConfigure(); } }
[ "ged_marc@hotmail.com" ]
ged_marc@hotmail.com
09a598c95b84f287a1fb081450db082597e1f29d
d662680677ef34863020bdcd825ae9035fc0ae70
/EAJA_Project/src/com/eaja/dao/CompanyDAO.java
d03b0fd3c652883ee4daf51a2deb4621c0360837
[]
no_license
yejee/EAJA_Project
e94bd7e45645439d7dd2899b0841e577df0eaa23
baf1249f5048e5d0e281db080edc0144ac0e7a5e
refs/heads/master
2021-09-03T15:34:54.534101
2018-01-10T23:47:26
2018-01-10T23:47:26
116,918,370
0
0
null
2018-01-10T06:37:50
2018-01-10T06:37:50
null
UTF-8
Java
false
false
61
java
package com.eaja.dao; public interface CompanyDAO { }
[ "jeonhj920@gmail.com" ]
jeonhj920@gmail.com
d4bfe3b2b5dfe0a886e0f983b82145860c749e21
f8ecda3f5caa37b8ad4fb45879a6236557468f14
/src/main/java/com/dwicke/evm/EVM.java
b245eec25fe048f8c174df55cd0c0aec34cdbe68
[]
no_license
dwicke/evm
f495664c3539bcd62649f27352edc6e21821603d
830d2dee1793e8aac620216158b93037fdfd9ba8
refs/heads/master
2020-04-11T00:26:21.916963
2018-04-18T19:58:26
2018-04-18T19:58:26
124,313,389
2
0
null
null
null
null
UTF-8
Java
false
false
12,963
java
package com.dwicke.evm; import java.util.*; import java.util.stream.Collectors; import java.util.stream.IntStream; public class EVM { boolean COSINE = false; boolean EUCLID = false; boolean L1 = false; public class Model { List<WeibullParams> psi_l; int label; double xs[][]; public Model(int label, List<WeibullParams> psi_l, double[][] examples) { this.label = label; // each row of examples corresponds to this.psi_l = psi_l; this.xs = examples; } } public EVM(boolean useCosine) { COSINE = useCosine; } /** * * @param X key is the class label and the value is an array of examples where each row is an example * @param tau is the number of features to use * @param sigma is the coverage threshold * @param labels is the list of labels for the data * @param numSamples the total number of examples */ public List<Model> train(Map<Integer, double[][]> X, int tau, int labels[], int numSamples, double sigma, int maxEVs, double tolerance) { List<Model> perClassModel = new ArrayList<>(); for (int i = 0; i < labels.length; i++) { List<WeibullParams> psi_l = fit(X, tau, labels[i], numSamples); List<Integer> indices = fixedSizeReduction(X.get(labels[i]), psi_l,maxEVs, tolerance);//reduce(X.get(labels[i]), psi_l, sigma); List<WeibullParams> reduced_psi_l = new ArrayList<>(); double reduced_X_l[][] = new double[indices.size()][X.get(i)[0].length]; int count = 0; for (Integer index : indices) { reduced_psi_l.add(psi_l.get(index)); reduced_X_l[count] = X.get(i)[index]; } perClassModel.add(new Model(labels[i], reduced_psi_l, reduced_X_l)); } return perClassModel; } /** * Predict the class label or return -1 for unknown * @param model the trained model * @param x the example to predict * @param threshold the threshold for rejecting * @return */ public int predict(List<Model> model, double x[], double threshold) { int predicted = -1; double maxPsiValClass = -1; for (Model m : model) { double maxPsi = -1; int i = 0; for (WeibullParams params : m.psi_l) { double psiVal = psi(params, getDistance(m.xs[i], x)); if (psiVal > maxPsi) { maxPsi = psiVal; } } if (maxPsi > maxPsiValClass) { maxPsiValClass = maxPsi; predicted = m.label; } } if (maxPsiValClass > threshold) { return predicted; } return -1; } public double psi(WeibullParams params, double dist) { //System.err.println("e^ = ((" + (- dist / params.lam) + ") ^"+params.k + ") = " + Math.exp(Math.pow(- dist / params.lam, params.k))); // System.err.println("lam = " + params.lam + " k = " + params.k + " dist = " + dist); return Math.exp(Math.pow(- dist / params.lam, params.k)); } public List<WeibullParams> fit(Map<Integer, double[][]> X, int tau, int label, int numSamples) { // create the distance matrix // this could probably be greatly improved double[][] distMatrix = new double[X.get(label).length][numSamples - X.get(label).length]; double[][] inclass = X.get(label); // System.err.println("label = " + label); // System.err.println("Dist " + X.get(label).length + ", " + (numSamples - X.get(label).length)); // System.err.println("inClass " + inclass.length); for (int i = 0; i < inclass.length; i++) { // for each int start = 0; for (Map.Entry<Integer, double[][]> someClass : X.entrySet()) { if (someClass.getKey() != label) { //System.err.println(" some class label = " + someClass.getKey()); double[][] outclass = someClass.getValue(); for (int j = 0; j < outclass.length; j++) { distMatrix[i][start] = getDistance(inclass[i], outclass[j]); // System.err.println("Dist = " + distMatrix[i][start]); start++; } } } } List<WeibullParams> evs = new ArrayList<>(); // now create the EV's for (int i = 0; i < distMatrix.length; i++) { // com.dwicke.evm.Weibull fit low( 1/2 × sort(Di)[: τ ]) // first sort then remove the zeros // then List<Double> a = Arrays.stream(distMatrix[i]).sorted().dropWhile(n -> n == 0).boxed().collect(Collectors.toList()).subList(0,tau).stream().map(val -> .5 * val).collect(Collectors.toList()); System.err.println(i + " Sorted = " + a.size() + ": "); for (double ab : a) { System.err.print(ab + ", "); } System.err.println("end sorted"); evs.add(fit(Arrays.stream(distMatrix[i]).sorted().dropWhile(n -> n == 0).boxed().collect(Collectors.toList()).subList(0,tau).stream().map(val -> .5 * val).collect(Collectors.toList()))); } return evs; } /** * Reduce the size of the model * @param X matrix corresponding to examples all within the same class (each row corresponds to a feature vector) * @param psi_l the weibull parameters for each feature vector * @param sigma the * @return */ public List<Integer> reduce(double[][] X, List<WeibullParams> psi_l, double sigma) { // corresponds to Set Cover Model Reduction // So the idea is that we first generate a N_l x N_l pairwise distance matrix double[][] distMatrix = new double[X.length][X.length]; for (int i = 0; i < X.length; i++) { for (int j = 0; j < X.length; j++) { distMatrix[i][j] = getDistance(X[i], X[j]); //System.err.println("i = " + X[i].toString() + " j = " + X[j].toString() + "dist matrix = " + distMatrix[i][j]); } } HashMap<Integer, Set<Integer>> S = new HashMap<>(); Set<Integer> universe = new HashSet<>(); for (int i = 0; i < X.length; i++) { universe.add(i); for (int j = 0; j < X.length; j++) { if (psi(psi_l.get(i), distMatrix[i][j]) >= sigma) { Set<Integer> a = S.getOrDefault(i, new HashSet<>()); a.add(j); S.putIfAbsent(i, a); // System.err.println("Adding " + j); } else { // System.err.println("Not adding " + j); // System.err.println("psi = " + psi(psi_l.get(i), distMatrix[i][j])); } } } List<Integer> indices = new ArrayList<>(); Set<Integer> C = new HashSet<>(); // now do greedy set cover while(!C.containsAll(universe)) { Set<Integer> maxS = null; Integer index = -1; int maxDif = -1; for (Map.Entry<Integer, Set<Integer>> e : S.entrySet()) { int dif = difference(e.getValue(), C).size(); if (dif > maxDif) { index = e.getKey(); maxS = e.getValue(); maxDif = dif; } } C.addAll(maxS); indices.add(index); S.remove(index); } return indices; } public Set<Integer> difference(Set<Integer> a, Set<Integer> b) { Set<Integer> diff = new HashSet<>(); for (Integer i : a) { diff.add(i); } // a - b for (Integer i : a) { if (b.contains(i)) { diff.remove(i); } } return diff; } public List<Integer> fixedSizeReduction(double[][] X, List<WeibullParams> psi_l, int maxEVs, double tolerance) { double sigma_min = 0.0; double sigma_old = 1.0; double sigma_max = 1.0; while(true) { double sigma = (sigma_min + sigma_max) / 2.0; List<Integer> I = reduce(X, psi_l, sigma); int M = I.size(); boolean Cfour = M == maxEVs || Math.abs(sigma - sigma_old) <= tolerance; if (X.length - maxEVs >= M - maxEVs && M - maxEVs > 0) { sigma_max = sigma; } else if ((X.length - maxEVs >= M - maxEVs && M - maxEVs < 0) || (X.length - maxEVs < M - maxEVs)) { sigma_min = sigma; } if (Cfour) { return I.stream().collect(Collectors.toList()).subList(0,maxEVs); } } } public double getDistance(double[] a, double[] b) { if (COSINE) { return cosineSimilarity(a, b); }else if (EUCLID){ return euclideanDist(a, b); } else if (L1){ return LoneDist(a, b); } else { return jacardDist(a, b); } } public static double jacardDist(double[] vectorA, double[] vectorB) { double num = 0; double den = 0; for (int i = 0; i < vectorA.length; i++) { if (vectorA[i] > 0 || vectorB[i] > 0) { den++; if (vectorA[i] > 0 && vectorB[i] > 0) { num++; } } } return 1.0 - num / den; } public static double LoneDist(double[] vectorA, double[] vectorB) { double dotProduct = 0.0; for (int i = 0; i < vectorA.length; i++) { dotProduct += Math.abs(vectorA[i] - vectorB[i]); } return dotProduct; } public static double euclideanDist(double[] vectorA, double[] vectorB) { double dotProduct = 0.0; for (int i = 0; i < vectorA.length; i++) { dotProduct += vectorA[i] * vectorB[i]; } return Math.sqrt(dotProduct); } public static double cosineSimilarity(double[] vectorA, double[] vectorB) { double dotProduct = 0.0; double normA = 0.0; double normB = 0.0; for (int i = 0; i < vectorA.length; i++) { dotProduct += vectorA[i] * vectorB[i]; normA += Math.pow(vectorA[i], 2); normB += Math.pow(vectorB[i], 2); } return dotProduct / (Math.sqrt(normA) * Math.sqrt(normB)); } public class WeibullParams { public double k = 1.0; public double lam; } double eps = .000006; int iters = 100; /** * Fits a 2-parameter com.dwicke.evm.Weibull distribution to the given data using maximum-likelihood estimation. * each value in x must be > 0 * based off python version here: * https://github.com/mlosch/python-weibullfit/blob/master/weibull/backend_numpy.py * @param x > 0 for all values * @return weibull parameters populated in a WeibullParams object */ public WeibullParams fit(List<Double> x) { // System.err.println("fitting"); // for (Double d : x) { // // System.err.println(d); // // } List<Double> ln_x = x.stream().map(val -> Math.log(val)).collect(Collectors.toList()); double mean_ln_x = ln_x.stream().mapToDouble(Double::doubleValue).sum() / (double) ln_x.size(); WeibullParams params = new WeibullParams(); double kPlusOne = params.k; for (int i = 0; i < iters; i++) { List<Double> x_k = x.stream().map(val -> Math.pow(val, params.k)).collect(Collectors.toList()); List<Double> x_k_ln_x = IntStream.range(0, Math.min(x_k.size(), ln_x.size())).mapToDouble(p -> x_k.get(p) * ln_x.get(p)).boxed().collect(Collectors.toList()); double ff = x_k_ln_x.stream().mapToDouble(Double::doubleValue).sum(); double fg = x_k.stream().mapToDouble(Double::doubleValue).sum(); double f = ff / fg - mean_ln_x - (1.0 / params.k); // Calculate second derivative d^2f/dk^2 double ff_prime = IntStream.range(0, Math.min(x_k_ln_x.size(), ln_x.size())).mapToDouble(p -> x_k_ln_x.get(p) * ln_x.get(p)).sum(); double fg_prime = ff; double f_prime = (ff_prime / fg - (ff/fg * fg_prime/fg)) + (1.0 / (params.k * params.k)); // Newton-Raphson method k = k - f(k;x)/f'(k;x) params.k -= f / f_prime; if (Math.abs(params.k - kPlusOne) < eps) { break; } kPlusOne = params.k; } double x_k_avg = x.stream().mapToDouble(val -> Math.pow(val,params.k)).sum() / (double) x.size(); params.lam = Math.pow(x_k_avg, (1.0 / params.k)); return params; } }
[ "drewwicke@gmail.com" ]
drewwicke@gmail.com
fc59949d6e6b807139fdb06b4ef777d69d3d1d56
1f2da99564bf3ae96c63f5d7d1efd806817798af
/e3-manager/e3-manager-pojo/src/main/java/cn/e3mall/pojo/TbContent.java
a90282925790b53d42c5a830658024a3542633bf
[]
no_license
bofeng023/e3-idea
7c7fd283612016ddad8c3e9147964bc57e04e968
f355d1d61a475442b2ac2a6d31669d1a3518cf34
refs/heads/master
2022-12-28T06:07:33.779165
2019-07-18T00:47:59
2019-07-18T00:47:59
165,462,511
4
0
null
2022-12-16T07:12:49
2019-01-13T03:42:03
TSQL
UTF-8
Java
false
false
2,179
java
package cn.e3mall.pojo; import java.io.Serializable; import java.util.Date; public class TbContent implements Serializable{ private Long id; private Long categoryId; private String title; private String subTitle; private String titleDesc; private String url; private String pic; private String pic2; private Date created; private Date updated; private String content; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getCategoryId() { return categoryId; } public void setCategoryId(Long categoryId) { this.categoryId = categoryId; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title == null ? null : title.trim(); } public String getSubTitle() { return subTitle; } public void setSubTitle(String subTitle) { this.subTitle = subTitle == null ? null : subTitle.trim(); } public String getTitleDesc() { return titleDesc; } public void setTitleDesc(String titleDesc) { this.titleDesc = titleDesc == null ? null : titleDesc.trim(); } public String getUrl() { return url; } public void setUrl(String url) { this.url = url == null ? null : url.trim(); } public String getPic() { return pic; } public void setPic(String pic) { this.pic = pic == null ? null : pic.trim(); } public String getPic2() { return pic2; } public void setPic2(String pic2) { this.pic2 = pic2 == null ? null : pic2.trim(); } public Date getCreated() { return created; } public void setCreated(Date created) { this.created = created; } public Date getUpdated() { return updated; } public void setUpdated(Date updated) { this.updated = updated; } public String getContent() { return content; } public void setContent(String content) { this.content = content == null ? null : content.trim(); } }
[ "20152543@cqu.edu.cn" ]
20152543@cqu.edu.cn
1fa2e73b3a7179de319f0616ea28a9ff9f70f6dd
be61c5abaa65d542e69109ff0c58268ace1c5fca
/trunk/ipo/src/com/ejoysoft/util/CacheableBoolean.java
aa248ceeb7db0aecf13e9e64eaf470d7e7be598d
[]
no_license
BGCX261/zhishichanquan-svn-to-git
5152cebad62d49add7c7dcd515b4d5ec26038bb7
ecf3dc755640cfa09379c8b0797b7e1922b639e4
refs/heads/master
2016-09-16T10:52:19.964264
2015-08-25T15:43:58
2015-08-25T15:43:58
41,593,894
0
0
null
null
null
null
UTF-8
Java
false
false
1,065
java
/** * $RCSfile: CacheableBoolean.java,v $ * $Revision: 1.1.1.1 $ * $Date: 2002/09/09 13:51:09 $ * * New Jive from Jdon.com. * * This software is the proprietary information of CoolServlets, Inc. * Use is subject to license terms. */ package com.ejoysoft.util; /** * Wrapper for boolean values so they can be treated as Cacheable objects. */ public class CacheableBoolean implements Cacheable { /** * Wrapped int value. */ private boolean booleanValue; /** * Creates a new CacheableBoolean. * * @param booleanValue the boolean value to wrap. */ public CacheableBoolean(boolean booleanValue) { this.booleanValue = booleanValue; } /** * Returns the underlying boolean value. * * @return the boolean value. */ public boolean getBoolean() { return booleanValue; } //FROM THE CACHEABLE INTERFACE// public long getSize() { return CacheSizes.sizeOfObject() + CacheSizes.sizeOfBoolean(); } }
[ "you@example.com" ]
you@example.com
8420ddd5b95567cf775a40d9ea583767787b4a23
14d0e31e9cdf5269f1ab988b673bf82d579a64cc
/src/main/java/Ejercicio12/Main.java
c23dfd11b03e9d5b2afe78f7c1859a6ff08c9a21
[]
no_license
MiguelRamirez97/EjerciciosJava
fd4224681ff136b63cdd1df25c91a09322884588
4b774c95e0a741606a2f6abaebb7534386ce8c4d
refs/heads/main
2023-03-30T11:29:32.400580
2021-04-03T23:53:49
2021-04-03T23:53:49
352,819,127
0
0
null
null
null
null
UTF-8
Java
false
false
171
java
package Ejercicio12; public class Main { public static void main(String[] args) { Comparar comparar = new Comparar(); comparar.PedirFrases(); } }
[ "miguel.ramirez@udea.edu.co" ]
miguel.ramirez@udea.edu.co
d2f88e7d72222be9ac628be6efa2d8065ca31fb2
05bb28d0a91c34382232108b58efd9de8a2f1810
/src/br/com/wcc/Model/ComponenteEnum.java
2ee5c83efcd1fe802066afc01dc0e1105d654b8f
[]
no_license
crisromanato/Montador-java
aba71675d21cd10ab40ee68c7c613a828a4d96e9
5cf48d7bbfd272c27a2f45739466fbcbf2c201cd
refs/heads/master
2021-03-10T05:10:50.823748
2020-03-11T17:25:58
2020-03-11T17:25:58
246,422,837
1
0
null
null
null
null
UTF-8
Java
false
false
162
java
package br.com.wcc.Model; /** * Componente */ public enum ComponenteEnum { CONECTORES, CAPACITORES, SENSORMOV, RESISTORES, SEMICONDUTOR; }
[ "cristina.romanato@br.bosch.com" ]
cristina.romanato@br.bosch.com
42d476b1500e3c196970f98504e777ec79395319
f261421b43e2a3da5b3d9238b79747f71025ac25
/chuxin-common/chuxin-common-core/src/main/java/com/chuxin/chuxincommon/core/web/domain/BaseDTO.java
b22523d52789b5d60122e7111f51665fe61d77f0
[]
no_license
calmlan/chuxin-cloud
b5e4c56bdfa860da873945f8914986232377cd8e
8d652820670e3c838f75802e7f1bbb9ce2509624
refs/heads/master
2023-08-11T01:07:07.276826
2021-09-01T08:39:00
2021-09-01T08:39:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
749
java
package com.chuxin.chuxincommon.core.web.domain; import lombok.Getter; import lombok.Setter; import java.io.Serializable; import java.util.Collections; import java.util.Date; import java.util.Map; /** * @author 初心 * @date 2021/8/29 10:35 */ @Setter @Getter public class BaseDTO implements Serializable { private static final long serialVersionUID = 8896998873102224097L; private String value; private String createByUserId; private Date createTime; private String updateByUserId; private Date modifiedTime; private Map<String, Object> params; public Map<String, Object> getParams() { if (null == params) { params = Collections.emptyMap(); } return params; } }
[ "87849092@qq.com" ]
87849092@qq.com
78656f4e1b2b656d1f0c47d40e3d2161180c0c39
516004e60baa5b7c5659c319434166122bdfeb2b
/src/leetcode/binarytree/Solution94.java
923b43ab742201deba1e79e3cdbe6c2671a079e1
[]
no_license
ClearMindzj/leetcode
b0aee866278fa4bb3c9a33b5b3884996665c1f7c
aa80acae34c2d93b0f4e441f9573935d44922f6e
refs/heads/master
2022-10-31T20:47:57.188787
2020-06-15T02:04:51
2020-06-15T02:04:51
232,229,683
0
0
null
null
null
null
UTF-8
Java
false
false
553
java
package leetcode.binarytree; import java.util.ArrayList; import java.util.List; /** * Created by zhengjie on 2020/2/22. * 二叉树中序遍历 */ public class Solution94 { public List<Integer> inorderTraversal(TreeNode root) { List<Integer> ans = new ArrayList<>(); getAns(root, ans); return ans; } private void getAns(TreeNode root, List<Integer> ans) { if(root==null){ return; } getAns(root.left,ans); ans.add(root.val); getAns(root.right,ans); } }
[ "1106646009@qq.com" ]
1106646009@qq.com
76e07be10fadd335ba52043281b0d4b4c43e69f4
3577a2c844caddd28b252056a30d2247b7529968
/src/main/java/ru/netology/pyas/Main.java
f32b3b16eb4c72459c0316fa3f00cf1952b70e63
[]
no_license
The-o/jadv-7-1-2
7bcbd978dbf0171bf4bc25f3b851d454bcbcbc1c
77b0401d61902a049d4214057f4a5b0246977536
refs/heads/master
2023-06-03T04:15:20.222743
2021-06-16T20:30:35
2021-06-16T20:30:35
377,618,066
0
0
null
null
null
null
UTF-8
Java
false
false
2,253
java
/* * This Java source file was generated by the Gradle 'init' task. */ package ru.netology.pyas; import java.util.ArrayList; import java.util.List; import java.util.Random; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; public class Main { private final static int THREADS_COUNT = 4; private final static int MIN_TIMEOUT = 2000; private final static int MAX_TIMEOUT = 3000; private final static int MIN_TIME = 10000; private final static int MAX_TIME = 20000; public static void main(String[] args) { List<BabblingCallable> babblers = getBabblers(); ExecutorService pool = Executors.newFixedThreadPool(THREADS_COUNT); try { List<Future<Integer>> result = pool.invokeAll(babblers); for (int i = 0; i < result.size(); ++i) { BabblingCallable babbler = babblers.get(i); try { int count = result.get(i).get(); System.out.printf("%s сказал %d раз%n", babbler.getName(), count); } catch (ExecutionException e) { System.out.printf("Ошибка в %s%n", babbler.getName()); } } } catch (InterruptedException e) { } System.out.println(); babblers = getBabblers(); try { int count = pool.invokeAny(babblers); System.out.printf("Самый быстрый поток сказал %d раз%n", count); } catch (InterruptedException e) { } catch (ExecutionException e) { } pool.shutdown(); } private static List<BabblingCallable> getBabblers() { Random rng = new Random(); List<BabblingCallable> result = new ArrayList<>(); for (int i = 1; i <= THREADS_COUNT; ++i) { String name = "Поток " + String.valueOf(i); long timeout = rng.nextInt(MAX_TIMEOUT - MIN_TIMEOUT) + MIN_TIMEOUT; long time = rng.nextInt(MAX_TIME - MIN_TIME) + MIN_TIME; result.add(new BabblingCallable(name, timeout, time)); } return result; } }
[ "otsu.ni@gmail.com" ]
otsu.ni@gmail.com
c1448213f90d80686ba8daf24a5e7ccef1785443
45b6792972548405236641b3d3eaae7f29fe57c4
/src/test/java/org/jujubeframework/util/TextsTest.java
553b27f697f6c87f0324fc4afe1137f493d7f3aa
[ "Apache-2.0" ]
permissive
xuanyuanli/jujube-core
3ccdf9f0355fa336def588afdf35cacf8c89c78e
5f49ade7e922bc6d77e80d06a6cf77d948fcfa93
refs/heads/master
2023-05-08T22:42:31.176258
2021-05-28T07:01:38
2021-05-28T07:01:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,479
java
package org.jujubeframework.util; import org.apache.commons.text.StringEscapeUtils; import org.junit.jupiter.api.Test; import java.util.List; import static org.assertj.core.api.Assertions.assertThat; public class TextsTest { @Test public void getChinese() { assertThat(Texts.getChinese("hello李world万贯")).isEqualTo("李万贯"); assertThat(Texts.getChinese("*李--万贯")).isEqualTo("李万贯"); assertThat(Texts.getChinese("*李|万贯·")).isEqualTo("李万贯"); } @Test public void format() { assertThat(Texts.format("{0}-{1}", "1", null)).isEqualTo("1-"); assertThat(Texts.format("{1}-{0}", "1", "2")).isEqualTo("2-1"); assertThat(Texts.format("{}-{}", "1", "2")).isEqualTo("1-2"); assertThat(Texts.format("{}-{}$", "1", "2")).isEqualTo("1-2$"); assertThat(Texts.format("123")).isEqualTo("123"); assertThat(Texts.format("123{}")).isEqualTo("123"); assertThat(Texts.format("123{}456")).isEqualTo("123456"); assertThat(Texts.format("1{}2{}3", "-")).isEqualTo("1-23"); assertThat(Texts.format("{0}-{1}", 1, 2)).isEqualTo("1-2"); } @Test public void truncate() { assertThat(Texts.truncate("123", 1)).isEqualTo("12..."); assertThat(Texts.truncate("abc", 1)).isEqualTo("ab..."); assertThat(Texts.truncate("abcdefg", 4)).isEqualTo("abcdefg"); assertThat(Texts.truncate("123456", 3)).isEqualTo("123456"); assertThat(Texts.truncate("123中文", 4)).isEqualTo("123中文"); assertThat(Texts.truncate("123中文", 2)).isEqualTo("123中..."); assertThat(Texts.truncate("中文国家", 3)).isEqualTo("中文国..."); assertThat(Texts.truncate("中文国家", 4)).isEqualTo("中文国家"); } @Test public void unescapeHtml() { String html4 = StringEscapeUtils.escapeHtml4("http://\""); assertThat(html4).isEqualTo("http://&quot;"); html4 = Texts.unescapeHtml("http://&quot;"); assertThat(html4).isEqualTo("http://\""); } @Test public void getGroup() { String group = Texts.getGroup("^[a-zA-Z]*", "B08"); assertThat(group).isEqualTo("B"); group = Texts.getGroup("\\(.*?\\)", "22 Feb 2020 11:00 CET (10:00 GMT)"); assertThat(group).isEqualTo("(10:00 GMT)"); } @Test public void getHideName() { assertThat(Texts.getHideName("13478967895", 4, 3, 4)).isEqualTo("134****7895"); assertThat(Texts.getHideName("1347896789", 4, 3, 4)).isEqualTo("134****6789"); assertThat(Texts.getHideName("134896789", 4, 3, 4)).isEqualTo("134****6789"); assertThat(Texts.getHideName("13489", 4, 3, 4)).isEqualTo("134****9"); assertThat(Texts.getHideName("189", 4, 3, 4)).isEqualTo("189****"); } @Test public void regQuery() { List<Texts.RegexQueryInfo> regexQueryInfos = Texts.regQuery("offset=(\\w+)", "&offset=5#"); assertThat(regexQueryInfos).hasSize(1); assertThat(regexQueryInfos.get(0).getGroup()).isEqualTo("offset=5"); assertThat(regexQueryInfos.get(0).getGroups().get(0)).isEqualTo("5"); } @Test public void replaceBlank(){ assertThat(Texts.replaceBlank("78 78 ")).isEqualTo("7878"); assertThat(Texts.replaceBlank(" 1")).isEqualTo("1"); assertThat(Texts.replaceBlank("1\n2")).isEqualTo("12"); assertThat(Texts.replaceBlank("1 \n 2")).isEqualTo("12"); } }
[ "li15038043160@163.com" ]
li15038043160@163.com
bce3726fde32df2c9d44bd7fa5f8b1e473cff247
ae81808dfb7edad19f580619c7eb7b1f9f0e89c7
/Coffe/src/file/model/bean/ThongTinDatBan.java
1cabf866e6cd86cf70bb12937a0dc9d22701cf2f
[]
no_license
tranthikimthanh/Java-CoffeCode
58ad761a91c52f686dab591cd905cfcac580afa1
11a0eca8a1d442a3c57da9bcc372de018ac33348
refs/heads/master
2020-12-06T01:31:55.514583
2020-01-07T10:36:52
2020-01-07T10:36:52
232,302,377
0
0
null
null
null
null
UTF-8
Java
false
false
1,664
java
package fpt.model.bean; /** * Thong tin đặt bàn * @author vTr * */ public class ThongTinDatBan { private long maThongTinDatBan; private String tenKH; private String SDT; private String ngay; private String gio; private String maBan; public long getMaThongTinDatBan() { return maThongTinDatBan; } public void setMaThongTinDatBan(long maThongTinDatBan) { this.maThongTinDatBan = maThongTinDatBan; } public String getTenKH() { return tenKH; } public void setTenKH(String tenKH) { this.tenKH = tenKH; } public String getSDT() { return SDT; } public void setSDT(String sDT) { SDT = sDT; } public String getNgay() { return ngay; } public void setNgay(String ngay) { this.ngay = ngay; } public String getGio() { return gio; } public void setGio(String gio) { this.gio = gio; } public String getMaBan() { return maBan; } public void setMaBan(String maBan) { this.maBan = maBan; } /** * * @param tenKH * @param sDT * @param ngay * @param gio * @param maBan */ public ThongTinDatBan(String tenKH, String sDT, String ngay, String gio, String maBan) { super(); this.tenKH = tenKH; SDT = sDT; this.ngay = ngay; this.gio = gio; this.maBan = maBan; } public ThongTinDatBan() { super(); } /** * * @param maThongTinDatBan * @param tenKH * @param sDT * @param ngay * @param gio * @param maBan */ public ThongTinDatBan(long maThongTinDatBan, String tenKH, String sDT, String ngay, String gio, String maBan) { super(); this.maThongTinDatBan = maThongTinDatBan; this.tenKH = tenKH; SDT = sDT; this.ngay = ngay; this.gio = gio; this.maBan = maBan; } }
[ "54876683+maiphuong98@users.noreply.github.com" ]
54876683+maiphuong98@users.noreply.github.com
2d1a96f78bbfc1593c2e3f6fc96b691c1a9f1944
b0bd8fb1d507a219563c25635cca2138d81e03a7
/src/day65/MapView_EntrySet.java
7424ce27e2d27f1ee42a449366da6c984690549f
[]
no_license
sharifamiri/JavaCodeExercises
8c490e65de79748950dc75caf28875e46f87cc4f
b2160e213d4a8bfb583e1878f916110860b7d5ce
refs/heads/master
2022-12-30T10:08:29.663767
2020-10-14T06:57:59
2020-10-14T06:57:59
222,198,225
0
0
null
null
null
null
UTF-8
Java
false
false
1,299
java
package day65; import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import java.util.Set; public class MapView_EntrySet { public static void main(String[] args) { Map<String, Double> priceMap = new HashMap<>(); priceMap.put("Cucumber", 4.12); priceMap.put("Potato", 3.02); priceMap.put("Celery", 1.2); priceMap.put("Corn", 0.99); priceMap.put("Tomato", 3.99); System.out.println(priceMap); //Set<Map.Entry<K, V>> entrySet(); // Map is not an Iterable so we can not iterate over them // However we can set entrySet view out of the map // and it will store the keyValue pair as single Entry // and store it into the Set Set< Entry<String, Double> > myEntry = priceMap.entrySet(); for (Entry<String, Double> entry : myEntry) { System.out.println("entry : " + entry); System.out.println("entry.getKey() : " + entry.getKey() ); System.out.println("entry.getValue() : " + entry.getValue() ); // update everything that more than 2$ to 0.55 if(entry.getValue() > 2.0 ) { entry.setValue(0.55); } } System.out.println(priceMap); } }
[ "sharif.amiri4@gmail.com" ]
sharif.amiri4@gmail.com
8a3382fcfa65f510300152e7c16ade976adf87fe
f9f1fd2f6c56d13db49e7571bff59e7347b327e9
/src/main/java/dfsbfs/GenerateParent.java
b5966d63e4904b2a6dead6a7857768e11d841dd0
[]
no_license
shanjunwei/LeetCode
5097470802857ad08283e5be5424de81309c9360
f52ea6cff51b80ad242d5cf1388eaecc0e710494
refs/heads/master
2022-07-20T01:03:49.914553
2022-07-08T08:18:17
2022-07-08T08:18:17
231,750,341
0
0
null
null
null
null
UTF-8
Java
false
false
2,023
java
package dfsbfs; import com.sun.deploy.util.StringUtils; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Stack; /** * 括号生成 */ public class GenerateParent { public List<String> generateParenthesis(int n) { List<String> result = new ArrayList<>(); generateParenthesisDfs(n,n,new Stack<>(),result,new ArrayList<>()); return result; } /** * dfs 回溯算法实现 */ public static void generateParenthesisDfs(int leftSize,int rightSize, Stack<String> stack, List<String> result, List<String> path) { if (leftSize == 0 && rightSize == 0) { result.add(StringUtils.join(path, "")); return; } // 横向选择 List<String> ParenthesisList = Arrays.asList("(",")"); for (String item :ParenthesisList){ String stackTop = stack.isEmpty() ? "" : stack.peek(); String chooseStr = ""; if(leftSize > 0 && "(".equals(item)){ chooseStr = item; stack.add(item); leftSize--; } if(rightSize > 0 && "(".equals(stackTop) && ")".equals(item)){ chooseStr = item; stack.pop(); rightSize--; } if(!"".equals(chooseStr) ){ path.add(item); generateParenthesisDfs(leftSize,rightSize,stack,result,path); path.remove(path.size() -1); // 回溯之前做的事情全部回退 if("(".equals(item)){ stack.pop(); leftSize++; } if(")".equals(item)) { stack.push("("); rightSize++; } } } } public static void main(String[] args) { GenerateParent generateParent = new GenerateParent(); System.out.println(generateParent.generateParenthesis(3)); } }
[ "shanjunwei@xiaohongshu.com" ]
shanjunwei@xiaohongshu.com
0203d88bd78e3274419480609d7ca706e8295969
55486e812e2449fe8bcc8c972b2e721a231083a0
/Assignments/TUANTD/Assignment6/src/ffse1703/edu/vn/model/HinhTamGiac.java
8f6017c03d9c7abba417420578fcbb5d29b8d081
[]
no_license
FASTTRACKSE/FFSE1703.JavaCore
15bdcfe15fbdf7fbc94a99c11f58b940149f0b01
14ba6725f3424724cf5ac20c57321162ae9ddd0a
refs/heads/master
2021-07-11T20:33:02.506208
2018-12-28T01:06:07
2018-12-28T01:06:07
125,818,158
4
1
null
null
null
null
UTF-8
Java
false
false
794
java
package ffse1703.edu.vn.model; public class HinhTamGiac extends HinhHoc { private int canhA; private int canhB; private int canhC; public HinhTamGiac() { } public HinhTamGiac(int canhA,int canhB,int canhC) { this.canhA=canhA; this.canhB=canhB; this.canhC=canhC; } public int getCanhA() { return canhA; } public void setCanhA(int canhA) { this.canhA = canhA; } public int getCanhB() { return canhB; } public void setCanhB(int canhB) { this.canhB = canhB; } public int getCanhC() { return canhC; } public void setCanhC(int canhC) { this.canhC = canhC; } public double getChuVi() { return (canhA + canhB + canhC); } public double getDienTich() { double q = getChuVi()/2; return (Math.sqrt(q*(q-canhA)*(q-canhB)*(q-canhC))); } }
[ "FFSE1703020@st.fasttrack.edu.vn" ]
FFSE1703020@st.fasttrack.edu.vn
98d4a6a742772deac710737091457ba21da08df3
defe15b5c618d2c1956a448d6b40578d70067f64
/app/src/main/java/com/example/carlh/diaryclock/cloud/tasks/DeleteSystemFileTask.java
4b7afb260fa257fc7b511401a729af77c95eb01c
[]
no_license
biocarl/DiaryClock
e11e9f5c6a19b71e6b0efcf47f7cf8036f0d72ca
32e11c731e647af3671e9710ecf6c41d8f15af37
refs/heads/master
2020-04-13T16:09:04.204570
2017-11-19T15:40:01
2017-11-19T15:40:01
163,313,900
1
0
null
null
null
null
UTF-8
Java
false
false
1,147
java
package com.example.carlh.diaryclock.cloud.tasks; import android.os.AsyncTask; import com.example.carlh.diaryclock.UnexpectedException; import com.example.carlh.diaryclock.cloud.Cloud; import java.io.File; import java.net.ConnectException; /** * Async task to list items in a folder */ public class DeleteSystemFileTask extends AsyncTask<String, Void, Void> { private Cloud cloud; private String tag; private final Callback mCallback; private Exception mException; private File db_file; public interface Callback { void onDataLoaded(String result); void onError(Exception e); } public DeleteSystemFileTask(Cloud cloud, File db_file, Callback callback) { this.cloud = cloud; this.tag = tag; this.db_file = db_file; mCallback = callback; } @Override protected Void doInBackground(String... params) { try { cloud.deleteSystemFile(db_file); } catch (ConnectException e) { e.printStackTrace(); } catch (UnexpectedException e) { e.printStackTrace(); } return null; } }
[ "cahauck@students.uni-mainz.de" ]
cahauck@students.uni-mainz.de
00bcd0c8a6cbad1a9ccd5e57a8877e3965408eaa
a812918152e7116a061e1d6bd398e71756653944
/src/main/java/bill/shawn/domain/User.java
b05c165751062456708080163b671a1f6cd9b683
[]
no_license
billshawnbill/repo2
73182b83fa5f3e7c2658e35574593fd056bb4a20
211207449fe98a4c658d6fe5c016cba1d298dde0
refs/heads/master
2020-04-30T15:12:20.420448
2019-03-21T10:31:29
2019-03-21T10:34:50
176,913,988
0
0
null
null
null
null
UTF-8
Java
false
false
2,397
java
package bill.shawn.domain; import bill.shawn.util.Invisible; import bill.shawn.util.InvisibleId; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; public class User implements Serializable{ //当执行update操作时,就可以将id字段过滤掉 @InvisibleId private Integer id; private String username; private Date birthday; private String sex; //自定义注解:查询的时候,不可见 @Invisible private String address; @Invisible private List<Role> roles; @Invisible private List<Account> accounts; public User() { } public User(Integer id, String username, Date birthday, String sex, String address, List<Role> roles, List<Account> accounts) { this.id = id; this.username = username; this.birthday = birthday; this.sex = sex; this.address = address; this.roles = roles; this.accounts = accounts; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public Date getBirthday() { return birthday; } public void setBirthday(Date birthday) { this.birthday = birthday; } public String getSex() { return sex; } public void setSex(String sex) { this.sex = sex; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public List<Role> getRoles() { return roles; } public void setRoles(List<Role> roles) { this.roles = roles; } public List<Account> getAccounts() { return accounts; } public void setAccounts(List<Account> accounts) { this.accounts = accounts; } @Override public String toString() { return "User{" + "id=" + id + ", username='" + username + '\'' + ", birthday=" + birthday + ", sex='" + sex + '\'' + ", address='" + address + '\'' + ", roles=" + roles + ", accounts=" + accounts + '}'; } }
[ "448000895@qq.com" ]
448000895@qq.com
501ed876031315a4b475c91d6cd014e782ed66a4
60ed1710cb03f7f17c9b9d9224d445ee4565a9d3
/SpringDemo/src/org/manav/javabrains/MyEventListener.java
66abf50a81f5f8d1f6cc3c17332bcb3dff5a3771
[]
no_license
reachmanav/Spring-basics
153fc738f724b58898cb9c1daf9b3d593db521bb
52023e10ba4036b40cefbae68227b2ceea643989
refs/heads/master
2021-04-27T09:52:09.687218
2018-02-22T19:18:59
2018-02-22T19:18:59
122,523,442
0
0
null
null
null
null
UTF-8
Java
false
false
457
java
package org.manav.javabrains; import org.springframework.context.ApplicationEvent; import org.springframework.context.ApplicationListener; import org.springframework.stereotype.Component; @Component public class MyEventListener implements ApplicationListener { @Override public void onApplicationEvent(ApplicationEvent event) { System.out.println("onApplicationEvent Listener has been called: " + event.toString() + ".Listner finished." ); } }
[ "MANAVS@amdocs.com" ]
MANAVS@amdocs.com
1d013b60da3f1f214c2ec4fffb204c9033d34a8e
12fb7886e2ca3c314304b6f47f79bc803f67d814
/hm-auth-server/src/main/java/com/xp/auth/AuthMain9000.java
0ad58dca9960ef59659a90115d0587c766138017
[]
no_license
luckyxp/help-me-java
4c6624066378a38743ed770bd5d454b50fe08dc7
45a57442b8a2338fa82ca8dbd706de86690f7566
refs/heads/master
2022-12-29T00:17:42.731787
2020-10-14T01:07:08
2020-10-14T01:07:08
303,865,032
0
0
null
null
null
null
UTF-8
Java
false
false
453
java
package com.xp.auth; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; /** * @author Climb.Xu * @date 2020/9/22 20:14 */ @SpringBootApplication @EnableDiscoveryClient public class AuthMain9000 { public static void main(String[] args) { SpringApplication.run(AuthMain9000.class, args); } }
[ "2271613696@qq.com" ]
2271613696@qq.com
ff0bb65167d578a3e2f95b42456dbc591fa6973f
24b322a6383d6666d56115b53d2cd4cc30237762
/src/main/java/com/tom/io/WriteTester.java
4904d8b812c3909985350af5cd1b12e84526eadf
[]
no_license
Faithpan/myproject
705f0ce8edaf101537d9bfa3b564a179b3aa3ef9
2e44ab276c2de9bac6b74c75a81c25d1bc561073
refs/heads/master
2020-04-19T22:43:24.098765
2019-02-20T00:37:29
2019-02-20T00:37:29
168,477,304
0
0
null
null
null
null
UTF-8
Java
false
false
392
java
package com.tom.io; import java.io.File; import java.io.FileWriter; import java.io.IOException; public class WriteTester { public static void main(String[] args) throws IOException { File jkDir = new File("D:\\jk"); jkDir.mkdir(); FileWriter fw = new FileWriter("D:\\jk\\output.txt"); fw.write("abcdefg"); fw.flush(); fw.close(); } }
[ "faith16212000@gmail.com" ]
faith16212000@gmail.com
9cceaa8487b1e71ffd07b2f77be399e002c58d3a
a88404e860f9e81f175d80c51b8e735fa499c93c
/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/V3TribalEntityUS.java
8a5a5815f03e510c4a14959646ac0aead7a61f63
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
sabri0/hapi-fhir
4a53409d31b7f40afe088aa0ee8b946860b8372d
c7798fee4880ee8ffc9ed2e42c29c3b8f6753a1c
refs/heads/master
2020-06-07T20:02:33.258075
2019-06-18T09:40:00
2019-06-18T09:40:00
193,081,738
2
0
Apache-2.0
2019-06-21T10:46:17
2019-06-21T10:46:17
null
UTF-8
Java
false
false
192,139
java
package org.hl7.fhir.instance.model.valuesets; /* Copyright (c) 2011+, HL7, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of HL7 nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Generated on Wed, Nov 11, 2015 10:54-0500 for FHIR v1.0.2 public enum V3TribalEntityUS { /** * NATIVE ENTITIES WITHIN THE STATE OF ALASKA RECOGNIZED AND ELIGIBLE TO RECEIVE SERVICES FROM THE UNITED STATES BUREAU OF INDIAN AFFAIRS */ _NATIVEENTITYALASKA, /** * Village of Afognak */ _338, /** * Agdaagux Tribe of King Cove */ _339, /** * Native Village of Akhiok */ _340, /** * Akiachak Native Community */ _341, /** * Akiak Native Community */ _342, /** * Native Village of Akutan */ _343, /** * Village of Alakanuk */ _344, /** * Alatna Village */ _345, /** * Native Village of Aleknagik */ _346, /** * Algaaciq Native Village (St. Mary's) */ _347, /** * Allakaket Village */ _348, /** * Native Village of Ambler */ _349, /** * Village of Anaktuvuk Pass */ _350, /** * Yupiit of Andreafski */ _351, /** * Angoon Community Association */ _352, /** * Village of Aniak */ _353, /** * Anvik Village */ _354, /** * Arctic Village (See Native Village of Venetie Trib */ _355, /** * Asa carsarmiut Tribe (formerly Native Village of M */ _356, /** * Native Village of Atka */ _357, /** * Village of Atmautluak */ _358, /** * Atqasuk Village (Atkasook) */ _359, /** * Native Village of Barrow Inupiat Traditional Gover */ _360, /** * Beaver Village */ _361, /** * Native Village of Belkofski */ _362, /** * Village of Bill Moore's Slough */ _363, /** * Birch Creek Tribe */ _364, /** * Native Village of Brevig Mission */ _365, /** * Native Village of Buckland */ _366, /** * Native Village of Cantwell */ _367, /** * Native Village of Chanega (aka Chenega) */ _368, /** * Chalkyitsik Village */ _369, /** * Village of Chefornak */ _370, /** * Chevak Native Village */ _371, /** * Chickaloon Native Village */ _372, /** * Native Village of Chignik */ _373, /** * Native Village of Chignik Lagoon */ _374, /** * Chignik Lake Village */ _375, /** * Chilkat Indian Village (Klukwan) */ _376, /** * Chilkoot Indian Association (Haines) */ _377, /** * Chinik Eskimo Community (Golovin) */ _378, /** * Native Village of Chistochina */ _379, /** * Native Village of Chitina */ _380, /** * Native Village of Chuathbaluk (Russian Mission, Ku */ _381, /** * Chuloonawick Native Village */ _382, /** * Circle Native Community */ _383, /** * Village of Clark's Point */ _384, /** * Native Village of Council */ _385, /** * Craig Community Association */ _386, /** * Village of Crooked Creek */ _387, /** * Curyung Tribal Council (formerly Native Village of */ _388, /** * Native Village of Deering */ _389, /** * Native Village of Diomede (aka Inalik) */ _390, /** * Village of Dot Lake */ _391, /** * Douglas Indian Association */ _392, /** * Native Village of Eagle */ _393, /** * Native Village of Eek */ _394, /** * Egegik Village */ _395, /** * Eklutna Native Village */ _396, /** * Native Village of Ekuk */ _397, /** * Ekwok Village */ _398, /** * Native Village of Elim */ _399, /** * Emmonak Village */ _400, /** * Evansville Village (aka Bettles Field) */ _401, /** * Native Village of Eyak (Cordova) */ _402, /** * Native Village of False Pass */ _403, /** * Native Village of Fort Yukon */ _404, /** * Native Village of Gakona */ _405, /** * Galena Village (aka Louden Village) */ _406, /** * Native Village of Gambell */ _407, /** * Native Village of Georgetown */ _408, /** * Native Village of Goodnews Bay */ _409, /** * Organized Village of Grayling (aka Holikachuk) */ _410, /** * Gulkana Village */ _411, /** * Native Village of Hamilton */ _412, /** * Healy Lake Village */ _413, /** * Holy Cross Village */ _414, /** * Hoonah Indian Association */ _415, /** * Native Village of Hooper Bay */ _416, /** * Hughes Village */ _417, /** * Huslia Village */ _418, /** * Hydaburg Cooperative Association */ _419, /** * Igiugig Village */ _420, /** * Village of Iliamna */ _421, /** * Inupiat Community of the Arctic Slope */ _422, /** * Iqurmuit Traditional Council (formerly Native Vill */ _423, /** * Ivanoff Bay Village */ _424, /** * Kaguyak Village */ _425, /** * Organized Village of Kake */ _426, /** * Kaktovik Village (aka Barter Island) */ _427, /** * Village of Kalskag */ _428, /** * Village of Kaltag */ _429, /** * Native Village of Kanatak */ _430, /** * Native Village of Karluk */ _431, /** * Organized Village of Kasaan */ _432, /** * Native Village of Kasigluk */ _433, /** * Kenaitze Indian Tribe */ _434, /** * Ketchikan Indian Corporation */ _435, /** * Native Village of Kiana */ _436, /** * King Island Native Community */ _437, /** * King Salmon Tribe */ _438, /** * Native Village of Kipnuk */ _439, /** * Native Village of Kivalina */ _440, /** * Klawock Cooperative Association */ _441, /** * Native Village of Kluti Kaah (aka Copper Center) */ _442, /** * Knik Tribe */ _443, /** * Native Village of Kobuk */ _444, /** * Kokhanok Village */ _445, /** * Native Village of Kongiganak */ _446, /** * Village of Kotlik */ _447, /** * Native Village of Kotzebue */ _448, /** * Native Village of Koyuk */ _449, /** * Koyukuk Native Village */ _450, /** * Organized Village of Kwethluk */ _451, /** * Native Village of Kwigillingok */ _452, /** * Native Village of Kwinhagak (aka Quinhagak) */ _453, /** * Native Village of Larsen Bay */ _454, /** * Levelock Village */ _455, /** * Lesnoi Village (aka Woody Island) */ _456, /** * Lime Village */ _457, /** * Village of Lower Kalskag */ _458, /** * Manley Hot Springs Village */ _459, /** * Manokotak Village */ _460, /** * Native Village of Marshall (aka Fortuna Ledge) */ _461, /** * Native Village of Mary's Igloo */ _462, /** * McGrath Native Village */ _463, /** * Native Village of Mekoryuk */ _464, /** * Mentasta Traditional Council */ _465, /** * Metlakatla Indian Community, Annette Island Reserv */ _466, /** * Native Village of Minto */ _467, /** * Naknek Native Village */ _468, /** * Native Village of Nanwalek (aka English Bay) */ _469, /** * Native Village of Napaimute */ _470, /** * Native Village of Napakiak */ _471, /** * Native Village of Napaskiak */ _472, /** * Native Village of Nelson Lagoon */ _473, /** * Nenana Native Association */ _474, /** * New Koliganek Village Council (formerly Koliganek */ _475, /** * New Stuyahok Village */ _476, /** * Newhalen Village */ _477, /** * Newtok Village */ _478, /** * Native Village of Nightmute */ _479, /** * Nikolai Village */ _480, /** * Native Village of Nikolski */ _481, /** * Ninilchik Village */ _482, /** * Native Village of Noatak */ _483, /** * Nome Eskimo Community */ _484, /** * Nondalton Village */ _485, /** * Noorvik Native Community */ _486, /** * Northway Village */ _487, /** * Native Village of Nuiqsut (aka Nooiksut) */ _488, /** * Nulato Village */ _489, /** * Nunakauyarmiut Tribe (formerly Native Village of T */ _490, /** * Native Village of Nunapitchuk */ _491, /** * Village of Ohogamiut */ _492, /** * Village of Old Harbor */ _493, /** * Orutsararmuit Native Village (aka Bethel) */ _494, /** * Oscarville Traditional Village */ _495, /** * Native Village of Ouzinkie */ _496, /** * Native Village of Paimiut */ _497, /** * Pauloff Harbor Village */ _498, /** * Pedro Bay Village */ _499, /** * Native Village of Perryville */ _500, /** * Petersburg Indian Association */ _501, /** * Native Village of Pilot Point */ _502, /** * Pilot Station Traditional Village */ _503, /** * Native Village of Pitka's Point */ _504, /** * Platinum Traditional Village */ _505, /** * Native Village of Point Hope */ _506, /** * Native Village of Point Lay */ _507, /** * Native Village of Port Graham */ _508, /** * Native Village of Port Heiden */ _509, /** * Native Village of Port Lions */ _510, /** * Portage Creek Village (aka Ohgsenakale) */ _511, /** * Pribilof Islands Aleut Communities of St. Paul & S */ _512, /** * Qagan Tayagungin Tribe of Sand Point Village */ _513, /** * Qawalangin Tribe of Unalaska */ _514, /** * Rampart Village */ _515, /** * Village of Red Devil */ _516, /** * Native Village of Ruby */ _517, /** * Saint George Island(See Pribilof Islands Aleut Com */ _518, /** * Native Village of Saint Michael */ _519, /** * Saint Paul Island (See Pribilof Islands Aleut Comm */ _520, /** * Village of Salamatoff */ _521, /** * Native Village of Savoonga */ _522, /** * Organized Village of Saxman */ _523, /** * Native Village of Scammon Bay */ _524, /** * Native Village of Selawik */ _525, /** * Seldovia Village Tribe */ _526, /** * Shageluk Native Village */ _527, /** * Native Village of Shaktoolik */ _528, /** * Native Village of Sheldon's Point */ _529, /** * Native Village of Shishmaref */ _530, /** * Shoonaq Tribe of Kodiak */ _531, /** * Native Village of Shungnak */ _532, /** * Sitka Tribe of Alaska */ _533, /** * Skagway Village */ _534, /** * Village of Sleetmute */ _535, /** * Village of Solomon */ _536, /** * South Naknek Village */ _537, /** * Stebbins Community Association */ _538, /** * Native Village of Stevens */ _539, /** * Village of Stony River */ _540, /** * Takotna Village */ _541, /** * Native Village of Tanacross */ _542, /** * Native Village of Tanana */ _543, /** * Native Village of Tatitlek */ _544, /** * Native Village of Tazlina */ _545, /** * Telida Village */ _546, /** * Native Village of Teller */ _547, /** * Native Village of Tetlin */ _548, /** * Central Council of the Tlingit and Haida Indian Tb */ _549, /** * Traditional Village of Togiak */ _550, /** * Tuluksak Native Community */ _551, /** * Native Village of Tuntutuliak */ _552, /** * Native Village of Tununak */ _553, /** * Twin Hills Village */ _554, /** * Native Village of Tyonek */ _555, /** * Ugashik Village */ _556, /** * Umkumiute Native Village */ _557, /** * Native Village of Unalakleet */ _558, /** * Native Village of Unga */ _559, /** * Village of Venetie (See Native Village of Venetie */ _560, /** * Native Village of Venetie Tribal Government (Arcti */ _561, /** * Village of Wainwright */ _562, /** * Native Village of Wales */ _563, /** * Native Village of White Mountain */ _564, /** * Wrangell Cooperative Association */ _565, /** * Yakutat Tlingit Tribe */ _566, /** * NATIVE ENTITIES WITHIN THE CONTIGUOUS 48 STATES */ _NATIVEENTITYCONTIGUOUS, /** * Absentee-Shawnee Tribe of Indians of Oklahoma */ _1, /** * Assiniboine and Sioux Tribes of the Fort Peck Indi */ _10, /** * Havasupai Tribe of the Havasupai Reservation, Ariz */ _100, /** * Ho-Chunk Nation of Wisconsin (formerly known as th */ _101, /** * Hoh Indian Tribe of the Hoh Indian Reservation, Wa */ _102, /** * Hoopa Valley Tribe, California */ _103, /** * Hopi Tribe of Arizona */ _104, /** * Hopland Band of Pomo Indians of the Hopland Ranche */ _105, /** * Houlton Band of Maliseet Indians of Maine */ _106, /** * Hualapai Indian Tribe of the Hualapai Indian Reser */ _107, /** * Huron Potawatomi, Inc., Michigan */ _108, /** * Inaja Band of Diegueno Mission Indians of the Inaj */ _109, /** * Augustine Band of Cahuilla Mission Indians of the */ _11, /** * Ione Band of Miwok Indians of California */ _110, /** * Iowa Tribe of Kansas and Nebraska */ _111, /** * Iowa Tribe of Oklahoma */ _112, /** * Jackson Rancheria of Me-Wuk Indians of California */ _113, /** * Jamestown S'Klallam Tribe of Washington */ _114, /** * Jamul Indian Village of California */ _115, /** * Jena Band of Choctaw Indians, Louisiana */ _116, /** * Jicarilla Apache Tribe of the Jicarilla Apache Ind */ _117, /** * Kaibab Band of Paiute Indians of the Kaibab Indian */ _118, /** * Kalispel Indian Community of the Kalispel Reservat */ _119, /** * Bad River Band of the Lake Superior Tribe of Chipp */ _12, /** * Karuk Tribe of California */ _120, /** * Kashia Band of Pomo Indians of the Stewarts Point */ _121, /** * Kaw Nation, Oklahoma */ _122, /** * Keweenaw Bay Indian Community of L'Anse and Ontona */ _123, /** * Kialegee Tribal Town, Oklahoma */ _124, /** * Kickapoo Tribe of Indians of the Kickapoo Reservat */ _125, /** * Kickapoo Tribe of Oklahoma */ _126, /** * Kickapoo Traditional Tribe of Texas */ _127, /** * Kiowa Indian Tribe of Oklahoma */ _128, /** * Klamath Indian Tribe of Oregon */ _129, /** * Bay Mills Indian Community of the Sault Ste. Marie */ _13, /** * Kootenai Tribe of Idaho */ _130, /** * La Jolla Band of Luiseno Mission Indians of the La */ _131, /** * La Posta Band of Diegueno Mission Indians of the L */ _132, /** * Lac Courte Oreilles Band of Lake Superior Chippewa */ _133, /** * Lac du Flambeau Band of Lake Superior Chippewa Ind */ _134, /** * Lac Vieux Desert Band of Lake Superior Chippewa In */ _135, /** * Las Vegas Tribe of Paiute Indians of the Las Vegas */ _136, /** * Little River Band of Ottawa Indians of Michigan */ _137, /** * Little Traverse Bay Bands of Odawa Indians of Mich */ _138, /** * Lower Lake Rancheria, California */ _139, /** * Bear River Band of the Rohnerville Rancheria, Cali */ _14, /** * Los Coyotes Band of Cahuilla Mission Indians of th */ _140, /** * Lovelock Paiute Tribe of the Lovelock Indian Colon */ _141, /** * Lower Brule Sioux Tribe of the Lower Brule Reserva */ _142, /** * Lower Elwha Tribal Community of the Lower Elwha Re */ _143, /** * Lower Sioux Indian Community of Minnesota Mdewakan */ _144, /** * Lummi Tribe of the Lummi Reservation, Washington */ _145, /** * Lytton Rancheria of California */ _146, /** * Makah Indian Tribe of the Makah Indian Reservation */ _147, /** * Manchester Band of Pomo Indians of the Manchester- */ _148, /** * Manzanita Band of Diegueno Mission Indians of the */ _149, /** * Berry Creek Rancheria of Maidu Indians of Californ */ _15, /** * Mashantucket Pequot Tribe of Connecticut */ _150, /** * Match-e-be-nash-she-wish Band of Pottawatomi India */ _151, /** * Mechoopda Indian Tribe of Chico Rancheria, Califor */ _152, /** * Menominee Indian Tribe of Wisconsin */ _153, /** * Mesa Grande Band of Diegueno Mission Indians of th */ _154, /** * Mescalero Apache Tribe of the Mescalero Reservatio */ _155, /** * Miami Tribe of Oklahoma */ _156, /** * Miccosukee Tribe of Indians of Florida */ _157, /** * Middletown Rancheria of Pomo Indians of California */ _158, /** * Minnesota Chippewa Tribe, Minnesota (Six component */ _159, /** * Big Lagoon Rancheria, California */ _16, /** * Bois Forte Band (Nett Lake); Fond du Lac Band; Gra */ _160, /** * Mississippi Band of Choctaw Indians, Mississippi */ _161, /** * Moapa Band of Paiute Indians of the Moapa River In */ _162, /** * Modoc Tribe of Oklahoma */ _163, /** * Mohegan Indian Tribe of Connecticut */ _164, /** * Mooretown Rancheria of Maidu Indians of California */ _165, /** * Morongo Band of Cahuilla Mission Indians of the Mo */ _166, /** * Muckleshoot Indian Tribe of the Muckleshoot Reserv */ _167, /** * Muscogee (Creek) Nation, Oklahoma */ _168, /** * Narragansett Indian Tribe of Rhode Island */ _169, /** * Big Pine Band of Owens Valley Paiute Shoshone Indi */ _17, /** * Navajo Nation, Arizona, New Mexico & Utah */ _170, /** * Nez Perce Tribe of Idaho */ _171, /** * Nisqually Indian Tribe of the Nisqually Reservatio */ _172, /** * Nooksack Indian Tribe of Washington */ _173, /** * Northern Cheyenne Tribe of the Northern Cheyenne I */ _174, /** * Northfork Rancheria of Mono Indians of California */ _175, /** * Northwestern Band of Shoshoni Nation of Utah (Wash */ _176, /** * Oglala Sioux Tribe of the Pine Ridge Reservation, */ _177, /** * Omaha Tribe of Nebraska */ _178, /** * Oneida Nation of New York */ _179, /** * Big Sandy Rancheria of Mono Indians of California */ _18, /** * Oneida Tribe of Wisconsin */ _180, /** * Onondaga Nation of New York */ _181, /** * Osage Tribe, Oklahoma */ _182, /** * Ottawa Tribe of Oklahoma */ _183, /** * Otoe-Missouria Tribe of Indians, Oklahoma */ _184, /** * Paiute Indian Tribe of Utah */ _185, /** * Paiute-Shoshone Indians of the Bishop Community of */ _186, /** * Paiute-Shoshone Tribe of the Fallon Reservation an */ _187, /** * Paiute-Shoshone Indians of the Lone Pine Community */ _188, /** * Pala Band of Luiseno Mission Indians of the Pala R */ _189, /** * Big Valley Band of Pomo Indians of the Big Valley */ _19, /** * Pascua Yaqui Tribe of Arizona */ _190, /** * Paskenta Band of Nomlaki Indians of California */ _191, /** * Passamaquoddy Tribe of Maine */ _192, /** * Pauma Band of Luiseno Mission Indians of the Pauma */ _193, /** * Pawnee Nation of Oklahoma */ _194, /** * Pechanga Band of Luiseno Mission Indians of the Pe */ _195, /** * Penobscot Tribe of Maine */ _196, /** * Peoria Tribe of Indians of Oklahoma */ _197, /** * Picayune Rancheria of Chukchansi Indians of Califo */ _198, /** * Pinoleville Rancheria of Pomo Indians of Californi */ _199, /** * Agua Caliente Band of Cahuilla Indians of the Agua */ _2, /** * Blackfeet Tribe of the Blackfeet Indian Reservatio */ _20, /** * Pit River Tribe, California (includes Big Bend, Lo */ _200, /** * Poarch Band of Creek Indians of Alabama */ _201, /** * Pokagon Band of Potawatomi Indians of Michigan */ _202, /** * Ponca Tribe of Indians of Oklahoma */ _203, /** * Ponca Tribe of Nebraska */ _204, /** * Port Gamble Indian Community of the Port Gamble Re */ _205, /** * Potter Valley Rancheria of Pomo Indians of Califor */ _206, /** * Prairie Band of Potawatomi Indians, Kansas */ _207, /** * Prairie Island Indian Community of Minnesota Mdewa */ _208, /** * Pueblo of Acoma, New Mexico */ _209, /** * Blue Lake Rancheria, California */ _21, /** * Pueblo of Cochiti, New Mexico */ _210, /** * Pueblo of Jemez, New Mexico */ _211, /** * Pueblo of Isleta, New Mexico */ _212, /** * Pueblo of Laguna, New Mexico */ _213, /** * Pueblo of Nambe, New Mexico */ _214, /** * Pueblo of Picuris, New Mexico */ _215, /** * Pueblo of Pojoaque, New Mexico */ _216, /** * Pueblo of San Felipe, New Mexico */ _217, /** * Pueblo of San Juan, New Mexico */ _218, /** * Pueblo of San Ildefonso, New Mexico */ _219, /** * Bridgeport Paiute Indian Colony of California */ _22, /** * Pueblo of Sandia, New Mexico */ _220, /** * Pueblo of Santa Ana, New Mexico */ _221, /** * Pueblo of Santa Clara, New Mexico */ _222, /** * Pueblo of Santo Domingo, New Mexico */ _223, /** * Pueblo of Taos, New Mexico */ _224, /** * Pueblo of Tesuque, New Mexico */ _225, /** * Pueblo of Zia, New Mexico */ _226, /** * Puyallup Tribe of the Puyallup Reservation, Washin */ _227, /** * Pyramid Lake Paiute Tribe of the Pyramid Lake Rese */ _228, /** * Quapaw Tribe of Indians, Oklahoma */ _229, /** * Buena Vista Rancheria of Me-Wuk Indians of Califor */ _23, /** * Quartz Valley Indian Community of the Quartz Valle */ _230, /** * Quechan Tribe of the Fort Yuma Indian Reservation, */ _231, /** * Quileute Tribe of the Quileute Reservation, Washin */ _232, /** * Quinault Tribe of the Quinault Reservation, Washin */ _233, /** * Ramona Band or Village of Cahuilla Mission Indians */ _234, /** * Red Cliff Band of Lake Superior Chippewa Indians o */ _235, /** * Red Lake Band of Chippewa Indians of the Red Lake */ _236, /** * Redding Rancheria, California */ _237, /** * Redwood Valley Rancheria of Pomo Indians of Califo */ _238, /** * Reno-Sparks Indian Colony, Nevada */ _239, /** * Burns Paiute Tribe of the Burns Paiute Indian Colo */ _24, /** * Resighini Rancheria, California (formerly known as */ _240, /** * Rincon Band of Luiseno Mission Indians of the Rinc */ _241, /** * Robinson Rancheria of Pomo Indians of California */ _242, /** * Rosebud Sioux Tribe of the Rosebud Indian Reservat */ _243, /** * Round Valley Indian Tribes of the Round Valley Res */ _244, /** * Rumsey Indian Rancheria of Wintun Indians of Calif */ _245, /** * Sac and Fox Tribe of the Mississippi in Iowa */ _246, /** * Sac and Fox Nation of Missouri in Kansas and Nebra */ _247, /** * Sac and Fox Nation, Oklahoma */ _248, /** * Saginaw Chippewa Indian Tribe of Michigan, Isabell */ _249, /** * Cabazon Band of Cahuilla Mission Indians of the Ca */ _25, /** * Salt River Pima-Maricopa Indian Community of the S */ _250, /** * Samish Indian Tribe, Washington */ _251, /** * San Carlos Apache Tribe of the San Carlos Reservat */ _252, /** * San Juan Southern Paiute Tribe of Arizona */ _253, /** * San Manual Band of Serrano Mission Indians of the */ _254, /** * San Pasqual Band of Diegueno Mission Indians of Ca */ _255, /** * Santa Rosa Indian Community of the Santa Rosa Ranc */ _256, /** * Santa Rosa Band of Cahuilla Mission Indians of the */ _257, /** * Santa Ynez Band of Chumash Mission Indians of the */ _258, /** * Santa Ysabel Band of Diegueno Mission Indians of t */ _259, /** * Cachil DeHe Band of Wintun Indians of the Colusa I */ _26, /** * Santee Sioux Tribe of the Santee Reservation of Ne */ _260, /** * Sauk-Suiattle Indian Tribe of Washington */ _261, /** * Sault Ste. Marie Tribe of Chippewa Indians of Mich */ _262, /** * Scotts Valley Band of Pomo Indians of California */ _263, /** * Seminole Nation of Oklahoma */ _264, /** * Seminole Tribe of Florida, Dania, Big Cypress, Bri */ _265, /** * Seneca Nation of New York */ _266, /** * Seneca-Cayuga Tribe of Oklahoma */ _267, /** * Shakopee Mdewakanton Sioux Community of Minnesota */ _268, /** * Shawnee Tribe, Oklahoma */ _269, /** * Caddo Indian Tribe of Oklahoma */ _27, /** * Sherwood Valley Rancheria of Pomo Indians of Calif */ _270, /** * Shingle Springs Band of Miwok Indians, Shingle Spr */ _271, /** * Shoalwater Bay Tribe of the Shoalwater Bay Indian */ _272, /** * Shoshone Tribe of the Wind River Reservation, Wyom */ _273, /** * Shoshone-Bannock Tribes of the Fort Hall Reservati */ _274, /** * Shoshone-Paiute Tribes of the Duck Valley Reservat */ _275, /** * Sisseton-Wahpeton Sioux Tribe of the Lake Traverse */ _276, /** * Skokomish Indian Tribe of the Skokomish Reservatio */ _277, /** * Skull Valley Band of Goshute Indians of Utah */ _278, /** * Smith River Rancheria, California */ _279, /** * Cahuilla Band of Mission Indians of the Cahuilla R */ _28, /** * Snoqualmie Tribe, Washington */ _280, /** * Soboba Band of Luiseno Indians, California (former */ _281, /** * Sokaogon Chippewa Community of the Mole Lake Band */ _282, /** * Southern Ute Indian Tribe of the Southern Ute Rese */ _283, /** * Spirit Lake Tribe, North Dakota (formerly known as */ _284, /** * Spokane Tribe of the Spokane Reservation, Washingt */ _285, /** * Squaxin Island Tribe of the Squaxin Island Reserva */ _286, /** * St. Croix Chippewa Indians of Wisconsin, St. Croix */ _287, /** * St. Regis Band of Mohawk Indians of New York */ _288, /** * Standing Rock Sioux Tribe of North & South Dakota */ _289, /** * Cahto Indian Tribe of the Laytonville Rancheria, C */ _29, /** * Stockbridge-Munsee Community of Mohican Indians of */ _290, /** * Stillaguamish Tribe of Washington */ _291, /** * Summit Lake Paiute Tribe of Nevada */ _292, /** * Suquamish Indian Tribe of the Port Madison Reserva */ _293, /** * Susanville Indian Rancheria, California */ _294, /** * Swinomish Indians of the Swinomish Reservation, Wa */ _295, /** * Sycuan Band of Diegueno Mission Indians of Califor */ _296, /** * Table Bluff Reservation - Wiyot Tribe, California */ _297, /** * Table Mountain Rancheria of California */ _298, /** * Te-Moak Tribe of Western Shoshone Indians of Nevad */ _299, /** * Ak Chin Indian Community of the Maricopa (Ak Chin) */ _3, /** * California Valley Miwok Tribe, California (formerl */ _30, /** * Thlopthlocco Tribal Town, Oklahoma */ _300, /** * Three Affiliated Tribes of the Fort Berthold Reser */ _301, /** * Tohono O'odham Nation of Arizona */ _302, /** * Tonawanda Band of Seneca Indians of New York */ _303, /** * Tonkawa Tribe of Indians of Oklahoma */ _304, /** * Tonto Apache Tribe of Arizona */ _305, /** * Torres-Martinez Band of Cahuilla Mission Indians o */ _306, /** * Tule River Indian Tribe of the Tule River Reservat */ _307, /** * Tulalip Tribes of the Tulalip Reservation, Washing */ _308, /** * Tunica-Biloxi Indian Tribe of Louisiana */ _309, /** * Campo Band of Diegueno Mission Indians of the Camp */ _31, /** * Tuolumne Band of Me-Wuk Indians of the Tuolumne Ra */ _310, /** * Turtle Mountain Band of Chippewa Indians of North */ _311, /** * Tuscarora Nation of New York */ _312, /** * Twenty-Nine Palms Band of Mission Indians of Calif */ _313, /** * United Auburn Indian Community of the Auburn Ranch */ _314, /** * United Keetoowah Band of Cherokee Indians of Oklah */ _315, /** * Upper Lake Band of Pomo Indians of Upper Lake Ranc */ _316, /** * Upper Sioux Indian Community of the Upper Sioux Re */ _317, /** * Upper Skagit Indian Tribe of Washington */ _318, /** * Ute Indian Tribe of the Uintah & Ouray Reservation */ _319, /** * Capitan Grande Band of Diegueno Mission Indians of */ _32, /** * Ute Mountain Tribe of the Ute Mountain Reservation */ _320, /** * Utu Utu Gwaitu Paiute Tribe of the Benton Paiute R */ _321, /** * Walker River Paiute Tribe of the Walker River Rese */ _322, /** * Wampanoag Tribe of Gay Head (Aquinnah) of Massachu */ _323, /** * Washoe Tribe of Nevada & California (Carson Colony */ _324, /** * White Mountain Apache Tribe of the Fort Apache Res */ _325, /** * Wichita and Affiliated Tribes (Wichita, Keechi, Wa */ _326, /** * Winnebago Tribe of Nebraska */ _327, /** * Winnemucca Indian Colony of Nevada */ _328, /** * Wyandotte Tribe of Oklahoma */ _329, /** * Barona Group of Capitan Grande Band of Mission Ind */ _33, /** * Yankton Sioux Tribe of South Dakota */ _330, /** * Yavapai-Apache Nation of the Camp Verde Indian Res */ _331, /** * Yavapai-Prescott Tribe of the Yavapai Reservation, */ _332, /** * Yerington Paiute Tribe of the Yerington Colony & C */ _333, /** * Yomba Shoshone Tribe of the Yomba Reservation, Nev */ _334, /** * Ysleta Del Sur Pueblo of Texas */ _335, /** * Yurok Tribe of the Yurok Reservation, California */ _336, /** * Zuni Tribe of the Zuni Reservation, New Mexico */ _337, /** * Viejas (Baron Long) Group of Capitan Grande Band o */ _34, /** * Catawba Indian Nation (aka Catawba Tribe of South */ _35, /** * Cayuga Nation of New York */ _36, /** * Cedarville Rancheria, California */ _37, /** * Chemehuevi Indian Tribe of the Chemehuevi Reservat */ _38, /** * Cher-Ae Heights Indian Community of the Trinidad R */ _39, /** * Alabama-Coushatta Tribes of Texas */ _4, /** * Cherokee Nation, Oklahoma */ _40, /** * Cheyenne-Arapaho Tribes of Oklahoma */ _41, /** * Cheyenne River Sioux Tribe of the Cheyenne River R */ _42, /** * Chickasaw Nation, Oklahoma */ _43, /** * Chicken Ranch Rancheria of Me-Wuk Indians of Calif */ _44, /** * Chippewa-Cree Indians of the Rocky Boy's Reservati */ _45, /** * Chitimacha Tribe of Louisiana */ _46, /** * Choctaw Nation of Oklahoma */ _47, /** * Citizen Potawatomi Nation, Oklahoma */ _48, /** * Cloverdale Rancheria of Pomo Indians of California */ _49, /** * Alabama-Quassarte Tribal Town, Oklahoma */ _5, /** * Cocopah Tribe of Arizona */ _50, /** * Coeur D'Alene Tribe of the Coeur D'Alene Reservati */ _51, /** * Cold Springs Rancheria of Mono Indians of Californ */ _52, /** * Colorado River Indian Tribes of the Colorado River */ _53, /** * Comanche Indian Tribe, Oklahoma */ _54, /** * Confederated Salish & Kootenai Tribes of the Flath */ _55, /** * Confederated Tribes of the Chehalis Reservation, W */ _56, /** * Confederated Tribes of the Colville Reservation, W */ _57, /** * Confederated Tribes of the Coos, Lower Umpqua and */ _58, /** * Confederated Tribes of the Goshute Reservation, Ne */ _59, /** * Alturas Indian Rancheria, California */ _6, /** * Confederated Tribes of the Grand Ronde Community o */ _60, /** * Confederated Tribes of the Siletz Reservation, Ore */ _61, /** * Confederated Tribes of the Umatilla Reservation, O */ _62, /** * Confederated Tribes of the Warm Springs Reservatio */ _63, /** * Confederated Tribes and Bands of the Yakama Indian */ _64, /** * Coquille Tribe of Oregon */ _65, /** * Cortina Indian Rancheria of Wintun Indians of Cali */ _66, /** * Coushatta Tribe of Louisiana */ _67, /** * Cow Creek Band of Umpqua Indians of Oregon */ _68, /** * Coyote Valley Band of Pomo Indians of California */ _69, /** * Apache Tribe of Oklahoma */ _7, /** * Crow Tribe of Montana */ _70, /** * Crow Creek Sioux Tribe of the Crow Creek Reservati */ _71, /** * Cuyapaipe Community of Diegueno Mission Indians of */ _72, /** * Death Valley Timbi-Sha Shoshone Band of California */ _73, /** * Delaware Nation, Oklahoma (formerly Delaware Tribe */ _74, /** * Delaware Tribe of Indians, Oklahoma */ _75, /** * Dry Creek Rancheria of Pomo Indians of California */ _76, /** * Duckwater Shoshone Tribe of the Duckwater Reservat */ _77, /** * Eastern Band of Cherokee Indians of North Carolina */ _78, /** * Eastern Shawnee Tribe of Oklahoma */ _79, /** * Arapahoe Tribe of the Wind River Reservation, Wyom */ _8, /** * Elem Indian Colony of Pomo Indians of the Sulphur */ _80, /** * Elk Valley Rancheria, California */ _81, /** * Ely Shoshone Tribe of Nevada */ _82, /** * Enterprise Rancheria of Maidu Indians of Californi */ _83, /** * Flandreau Santee Sioux Tribe of South Dakota */ _84, /** * Forest County Potawatomi Community of Wisconsin Po */ _85, /** * Fort Belknap Indian Community of the Fort Belknap */ _86, /** * Fort Bidwell Indian Community of the Fort Bidwell */ _87, /** * Fort Independence Indian Community of Paiute India */ _88, /** * Fort McDermitt Paiute and Shoshone Tribes of the F */ _89, /** * Aroostook Band of Micmac Indians of Maine */ _9, /** * Fort McDowell Yavapai Nation, Arizona (formerly th */ _90, /** * Fort Mojave Indian Tribe of Arizona, California */ _91, /** * Fort Sill Apache Tribe of Oklahoma */ _92, /** * Gila River Indian Community of the Gila River Indi */ _93, /** * Grand Traverse Band of Ottawa & Chippewa Indians o */ _94, /** * Graton Rancheria, California */ _95, /** * Greenville Rancheria of Maidu Indians of Californi */ _96, /** * Grindstone Indian Rancheria of Wintun-Wailaki Indi */ _97, /** * Guidiville Rancheria of California */ _98, /** * Hannahville Indian Community of Wisconsin Potawato */ _99, /** * added to help the parsers */ NULL; public static V3TribalEntityUS fromCode(String codeString) throws Exception { if (codeString == null || "".equals(codeString)) return null; if ("_NativeEntityAlaska".equals(codeString)) return _NATIVEENTITYALASKA; if ("338".equals(codeString)) return _338; if ("339".equals(codeString)) return _339; if ("340".equals(codeString)) return _340; if ("341".equals(codeString)) return _341; if ("342".equals(codeString)) return _342; if ("343".equals(codeString)) return _343; if ("344".equals(codeString)) return _344; if ("345".equals(codeString)) return _345; if ("346".equals(codeString)) return _346; if ("347".equals(codeString)) return _347; if ("348".equals(codeString)) return _348; if ("349".equals(codeString)) return _349; if ("350".equals(codeString)) return _350; if ("351".equals(codeString)) return _351; if ("352".equals(codeString)) return _352; if ("353".equals(codeString)) return _353; if ("354".equals(codeString)) return _354; if ("355".equals(codeString)) return _355; if ("356".equals(codeString)) return _356; if ("357".equals(codeString)) return _357; if ("358".equals(codeString)) return _358; if ("359".equals(codeString)) return _359; if ("360".equals(codeString)) return _360; if ("361".equals(codeString)) return _361; if ("362".equals(codeString)) return _362; if ("363".equals(codeString)) return _363; if ("364".equals(codeString)) return _364; if ("365".equals(codeString)) return _365; if ("366".equals(codeString)) return _366; if ("367".equals(codeString)) return _367; if ("368".equals(codeString)) return _368; if ("369".equals(codeString)) return _369; if ("370".equals(codeString)) return _370; if ("371".equals(codeString)) return _371; if ("372".equals(codeString)) return _372; if ("373".equals(codeString)) return _373; if ("374".equals(codeString)) return _374; if ("375".equals(codeString)) return _375; if ("376".equals(codeString)) return _376; if ("377".equals(codeString)) return _377; if ("378".equals(codeString)) return _378; if ("379".equals(codeString)) return _379; if ("380".equals(codeString)) return _380; if ("381".equals(codeString)) return _381; if ("382".equals(codeString)) return _382; if ("383".equals(codeString)) return _383; if ("384".equals(codeString)) return _384; if ("385".equals(codeString)) return _385; if ("386".equals(codeString)) return _386; if ("387".equals(codeString)) return _387; if ("388".equals(codeString)) return _388; if ("389".equals(codeString)) return _389; if ("390".equals(codeString)) return _390; if ("391".equals(codeString)) return _391; if ("392".equals(codeString)) return _392; if ("393".equals(codeString)) return _393; if ("394".equals(codeString)) return _394; if ("395".equals(codeString)) return _395; if ("396".equals(codeString)) return _396; if ("397".equals(codeString)) return _397; if ("398".equals(codeString)) return _398; if ("399".equals(codeString)) return _399; if ("400".equals(codeString)) return _400; if ("401".equals(codeString)) return _401; if ("402".equals(codeString)) return _402; if ("403".equals(codeString)) return _403; if ("404".equals(codeString)) return _404; if ("405".equals(codeString)) return _405; if ("406".equals(codeString)) return _406; if ("407".equals(codeString)) return _407; if ("408".equals(codeString)) return _408; if ("409".equals(codeString)) return _409; if ("410".equals(codeString)) return _410; if ("411".equals(codeString)) return _411; if ("412".equals(codeString)) return _412; if ("413".equals(codeString)) return _413; if ("414".equals(codeString)) return _414; if ("415".equals(codeString)) return _415; if ("416".equals(codeString)) return _416; if ("417".equals(codeString)) return _417; if ("418".equals(codeString)) return _418; if ("419".equals(codeString)) return _419; if ("420".equals(codeString)) return _420; if ("421".equals(codeString)) return _421; if ("422".equals(codeString)) return _422; if ("423".equals(codeString)) return _423; if ("424".equals(codeString)) return _424; if ("425".equals(codeString)) return _425; if ("426".equals(codeString)) return _426; if ("427".equals(codeString)) return _427; if ("428".equals(codeString)) return _428; if ("429".equals(codeString)) return _429; if ("430".equals(codeString)) return _430; if ("431".equals(codeString)) return _431; if ("432".equals(codeString)) return _432; if ("433".equals(codeString)) return _433; if ("434".equals(codeString)) return _434; if ("435".equals(codeString)) return _435; if ("436".equals(codeString)) return _436; if ("437".equals(codeString)) return _437; if ("438".equals(codeString)) return _438; if ("439".equals(codeString)) return _439; if ("440".equals(codeString)) return _440; if ("441".equals(codeString)) return _441; if ("442".equals(codeString)) return _442; if ("443".equals(codeString)) return _443; if ("444".equals(codeString)) return _444; if ("445".equals(codeString)) return _445; if ("446".equals(codeString)) return _446; if ("447".equals(codeString)) return _447; if ("448".equals(codeString)) return _448; if ("449".equals(codeString)) return _449; if ("450".equals(codeString)) return _450; if ("451".equals(codeString)) return _451; if ("452".equals(codeString)) return _452; if ("453".equals(codeString)) return _453; if ("454".equals(codeString)) return _454; if ("455".equals(codeString)) return _455; if ("456".equals(codeString)) return _456; if ("457".equals(codeString)) return _457; if ("458".equals(codeString)) return _458; if ("459".equals(codeString)) return _459; if ("460".equals(codeString)) return _460; if ("461".equals(codeString)) return _461; if ("462".equals(codeString)) return _462; if ("463".equals(codeString)) return _463; if ("464".equals(codeString)) return _464; if ("465".equals(codeString)) return _465; if ("466".equals(codeString)) return _466; if ("467".equals(codeString)) return _467; if ("468".equals(codeString)) return _468; if ("469".equals(codeString)) return _469; if ("470".equals(codeString)) return _470; if ("471".equals(codeString)) return _471; if ("472".equals(codeString)) return _472; if ("473".equals(codeString)) return _473; if ("474".equals(codeString)) return _474; if ("475".equals(codeString)) return _475; if ("476".equals(codeString)) return _476; if ("477".equals(codeString)) return _477; if ("478".equals(codeString)) return _478; if ("479".equals(codeString)) return _479; if ("480".equals(codeString)) return _480; if ("481".equals(codeString)) return _481; if ("482".equals(codeString)) return _482; if ("483".equals(codeString)) return _483; if ("484".equals(codeString)) return _484; if ("485".equals(codeString)) return _485; if ("486".equals(codeString)) return _486; if ("487".equals(codeString)) return _487; if ("488".equals(codeString)) return _488; if ("489".equals(codeString)) return _489; if ("490".equals(codeString)) return _490; if ("491".equals(codeString)) return _491; if ("492".equals(codeString)) return _492; if ("493".equals(codeString)) return _493; if ("494".equals(codeString)) return _494; if ("495".equals(codeString)) return _495; if ("496".equals(codeString)) return _496; if ("497".equals(codeString)) return _497; if ("498".equals(codeString)) return _498; if ("499".equals(codeString)) return _499; if ("500".equals(codeString)) return _500; if ("501".equals(codeString)) return _501; if ("502".equals(codeString)) return _502; if ("503".equals(codeString)) return _503; if ("504".equals(codeString)) return _504; if ("505".equals(codeString)) return _505; if ("506".equals(codeString)) return _506; if ("507".equals(codeString)) return _507; if ("508".equals(codeString)) return _508; if ("509".equals(codeString)) return _509; if ("510".equals(codeString)) return _510; if ("511".equals(codeString)) return _511; if ("512".equals(codeString)) return _512; if ("513".equals(codeString)) return _513; if ("514".equals(codeString)) return _514; if ("515".equals(codeString)) return _515; if ("516".equals(codeString)) return _516; if ("517".equals(codeString)) return _517; if ("518".equals(codeString)) return _518; if ("519".equals(codeString)) return _519; if ("520".equals(codeString)) return _520; if ("521".equals(codeString)) return _521; if ("522".equals(codeString)) return _522; if ("523".equals(codeString)) return _523; if ("524".equals(codeString)) return _524; if ("525".equals(codeString)) return _525; if ("526".equals(codeString)) return _526; if ("527".equals(codeString)) return _527; if ("528".equals(codeString)) return _528; if ("529".equals(codeString)) return _529; if ("530".equals(codeString)) return _530; if ("531".equals(codeString)) return _531; if ("532".equals(codeString)) return _532; if ("533".equals(codeString)) return _533; if ("534".equals(codeString)) return _534; if ("535".equals(codeString)) return _535; if ("536".equals(codeString)) return _536; if ("537".equals(codeString)) return _537; if ("538".equals(codeString)) return _538; if ("539".equals(codeString)) return _539; if ("540".equals(codeString)) return _540; if ("541".equals(codeString)) return _541; if ("542".equals(codeString)) return _542; if ("543".equals(codeString)) return _543; if ("544".equals(codeString)) return _544; if ("545".equals(codeString)) return _545; if ("546".equals(codeString)) return _546; if ("547".equals(codeString)) return _547; if ("548".equals(codeString)) return _548; if ("549".equals(codeString)) return _549; if ("550".equals(codeString)) return _550; if ("551".equals(codeString)) return _551; if ("552".equals(codeString)) return _552; if ("553".equals(codeString)) return _553; if ("554".equals(codeString)) return _554; if ("555".equals(codeString)) return _555; if ("556".equals(codeString)) return _556; if ("557".equals(codeString)) return _557; if ("558".equals(codeString)) return _558; if ("559".equals(codeString)) return _559; if ("560".equals(codeString)) return _560; if ("561".equals(codeString)) return _561; if ("562".equals(codeString)) return _562; if ("563".equals(codeString)) return _563; if ("564".equals(codeString)) return _564; if ("565".equals(codeString)) return _565; if ("566".equals(codeString)) return _566; if ("_NativeEntityContiguous".equals(codeString)) return _NATIVEENTITYCONTIGUOUS; if ("1".equals(codeString)) return _1; if ("10".equals(codeString)) return _10; if ("100".equals(codeString)) return _100; if ("101".equals(codeString)) return _101; if ("102".equals(codeString)) return _102; if ("103".equals(codeString)) return _103; if ("104".equals(codeString)) return _104; if ("105".equals(codeString)) return _105; if ("106".equals(codeString)) return _106; if ("107".equals(codeString)) return _107; if ("108".equals(codeString)) return _108; if ("109".equals(codeString)) return _109; if ("11".equals(codeString)) return _11; if ("110".equals(codeString)) return _110; if ("111".equals(codeString)) return _111; if ("112".equals(codeString)) return _112; if ("113".equals(codeString)) return _113; if ("114".equals(codeString)) return _114; if ("115".equals(codeString)) return _115; if ("116".equals(codeString)) return _116; if ("117".equals(codeString)) return _117; if ("118".equals(codeString)) return _118; if ("119".equals(codeString)) return _119; if ("12".equals(codeString)) return _12; if ("120".equals(codeString)) return _120; if ("121".equals(codeString)) return _121; if ("122".equals(codeString)) return _122; if ("123".equals(codeString)) return _123; if ("124".equals(codeString)) return _124; if ("125".equals(codeString)) return _125; if ("126".equals(codeString)) return _126; if ("127".equals(codeString)) return _127; if ("128".equals(codeString)) return _128; if ("129".equals(codeString)) return _129; if ("13".equals(codeString)) return _13; if ("130".equals(codeString)) return _130; if ("131".equals(codeString)) return _131; if ("132".equals(codeString)) return _132; if ("133".equals(codeString)) return _133; if ("134".equals(codeString)) return _134; if ("135".equals(codeString)) return _135; if ("136".equals(codeString)) return _136; if ("137".equals(codeString)) return _137; if ("138".equals(codeString)) return _138; if ("139".equals(codeString)) return _139; if ("14".equals(codeString)) return _14; if ("140".equals(codeString)) return _140; if ("141".equals(codeString)) return _141; if ("142".equals(codeString)) return _142; if ("143".equals(codeString)) return _143; if ("144".equals(codeString)) return _144; if ("145".equals(codeString)) return _145; if ("146".equals(codeString)) return _146; if ("147".equals(codeString)) return _147; if ("148".equals(codeString)) return _148; if ("149".equals(codeString)) return _149; if ("15".equals(codeString)) return _15; if ("150".equals(codeString)) return _150; if ("151".equals(codeString)) return _151; if ("152".equals(codeString)) return _152; if ("153".equals(codeString)) return _153; if ("154".equals(codeString)) return _154; if ("155".equals(codeString)) return _155; if ("156".equals(codeString)) return _156; if ("157".equals(codeString)) return _157; if ("158".equals(codeString)) return _158; if ("159".equals(codeString)) return _159; if ("16".equals(codeString)) return _16; if ("160".equals(codeString)) return _160; if ("161".equals(codeString)) return _161; if ("162".equals(codeString)) return _162; if ("163".equals(codeString)) return _163; if ("164".equals(codeString)) return _164; if ("165".equals(codeString)) return _165; if ("166".equals(codeString)) return _166; if ("167".equals(codeString)) return _167; if ("168".equals(codeString)) return _168; if ("169".equals(codeString)) return _169; if ("17".equals(codeString)) return _17; if ("170".equals(codeString)) return _170; if ("171".equals(codeString)) return _171; if ("172".equals(codeString)) return _172; if ("173".equals(codeString)) return _173; if ("174".equals(codeString)) return _174; if ("175".equals(codeString)) return _175; if ("176".equals(codeString)) return _176; if ("177".equals(codeString)) return _177; if ("178".equals(codeString)) return _178; if ("179".equals(codeString)) return _179; if ("18".equals(codeString)) return _18; if ("180".equals(codeString)) return _180; if ("181".equals(codeString)) return _181; if ("182".equals(codeString)) return _182; if ("183".equals(codeString)) return _183; if ("184".equals(codeString)) return _184; if ("185".equals(codeString)) return _185; if ("186".equals(codeString)) return _186; if ("187".equals(codeString)) return _187; if ("188".equals(codeString)) return _188; if ("189".equals(codeString)) return _189; if ("19".equals(codeString)) return _19; if ("190".equals(codeString)) return _190; if ("191".equals(codeString)) return _191; if ("192".equals(codeString)) return _192; if ("193".equals(codeString)) return _193; if ("194".equals(codeString)) return _194; if ("195".equals(codeString)) return _195; if ("196".equals(codeString)) return _196; if ("197".equals(codeString)) return _197; if ("198".equals(codeString)) return _198; if ("199".equals(codeString)) return _199; if ("2".equals(codeString)) return _2; if ("20".equals(codeString)) return _20; if ("200".equals(codeString)) return _200; if ("201".equals(codeString)) return _201; if ("202".equals(codeString)) return _202; if ("203".equals(codeString)) return _203; if ("204".equals(codeString)) return _204; if ("205".equals(codeString)) return _205; if ("206".equals(codeString)) return _206; if ("207".equals(codeString)) return _207; if ("208".equals(codeString)) return _208; if ("209".equals(codeString)) return _209; if ("21".equals(codeString)) return _21; if ("210".equals(codeString)) return _210; if ("211".equals(codeString)) return _211; if ("212".equals(codeString)) return _212; if ("213".equals(codeString)) return _213; if ("214".equals(codeString)) return _214; if ("215".equals(codeString)) return _215; if ("216".equals(codeString)) return _216; if ("217".equals(codeString)) return _217; if ("218".equals(codeString)) return _218; if ("219".equals(codeString)) return _219; if ("22".equals(codeString)) return _22; if ("220".equals(codeString)) return _220; if ("221".equals(codeString)) return _221; if ("222".equals(codeString)) return _222; if ("223".equals(codeString)) return _223; if ("224".equals(codeString)) return _224; if ("225".equals(codeString)) return _225; if ("226".equals(codeString)) return _226; if ("227".equals(codeString)) return _227; if ("228".equals(codeString)) return _228; if ("229".equals(codeString)) return _229; if ("23".equals(codeString)) return _23; if ("230".equals(codeString)) return _230; if ("231".equals(codeString)) return _231; if ("232".equals(codeString)) return _232; if ("233".equals(codeString)) return _233; if ("234".equals(codeString)) return _234; if ("235".equals(codeString)) return _235; if ("236".equals(codeString)) return _236; if ("237".equals(codeString)) return _237; if ("238".equals(codeString)) return _238; if ("239".equals(codeString)) return _239; if ("24".equals(codeString)) return _24; if ("240".equals(codeString)) return _240; if ("241".equals(codeString)) return _241; if ("242".equals(codeString)) return _242; if ("243".equals(codeString)) return _243; if ("244".equals(codeString)) return _244; if ("245".equals(codeString)) return _245; if ("246".equals(codeString)) return _246; if ("247".equals(codeString)) return _247; if ("248".equals(codeString)) return _248; if ("249".equals(codeString)) return _249; if ("25".equals(codeString)) return _25; if ("250".equals(codeString)) return _250; if ("251".equals(codeString)) return _251; if ("252".equals(codeString)) return _252; if ("253".equals(codeString)) return _253; if ("254".equals(codeString)) return _254; if ("255".equals(codeString)) return _255; if ("256".equals(codeString)) return _256; if ("257".equals(codeString)) return _257; if ("258".equals(codeString)) return _258; if ("259".equals(codeString)) return _259; if ("26".equals(codeString)) return _26; if ("260".equals(codeString)) return _260; if ("261".equals(codeString)) return _261; if ("262".equals(codeString)) return _262; if ("263".equals(codeString)) return _263; if ("264".equals(codeString)) return _264; if ("265".equals(codeString)) return _265; if ("266".equals(codeString)) return _266; if ("267".equals(codeString)) return _267; if ("268".equals(codeString)) return _268; if ("269".equals(codeString)) return _269; if ("27".equals(codeString)) return _27; if ("270".equals(codeString)) return _270; if ("271".equals(codeString)) return _271; if ("272".equals(codeString)) return _272; if ("273".equals(codeString)) return _273; if ("274".equals(codeString)) return _274; if ("275".equals(codeString)) return _275; if ("276".equals(codeString)) return _276; if ("277".equals(codeString)) return _277; if ("278".equals(codeString)) return _278; if ("279".equals(codeString)) return _279; if ("28".equals(codeString)) return _28; if ("280".equals(codeString)) return _280; if ("281".equals(codeString)) return _281; if ("282".equals(codeString)) return _282; if ("283".equals(codeString)) return _283; if ("284".equals(codeString)) return _284; if ("285".equals(codeString)) return _285; if ("286".equals(codeString)) return _286; if ("287".equals(codeString)) return _287; if ("288".equals(codeString)) return _288; if ("289".equals(codeString)) return _289; if ("29".equals(codeString)) return _29; if ("290".equals(codeString)) return _290; if ("291".equals(codeString)) return _291; if ("292".equals(codeString)) return _292; if ("293".equals(codeString)) return _293; if ("294".equals(codeString)) return _294; if ("295".equals(codeString)) return _295; if ("296".equals(codeString)) return _296; if ("297".equals(codeString)) return _297; if ("298".equals(codeString)) return _298; if ("299".equals(codeString)) return _299; if ("3".equals(codeString)) return _3; if ("30".equals(codeString)) return _30; if ("300".equals(codeString)) return _300; if ("301".equals(codeString)) return _301; if ("302".equals(codeString)) return _302; if ("303".equals(codeString)) return _303; if ("304".equals(codeString)) return _304; if ("305".equals(codeString)) return _305; if ("306".equals(codeString)) return _306; if ("307".equals(codeString)) return _307; if ("308".equals(codeString)) return _308; if ("309".equals(codeString)) return _309; if ("31".equals(codeString)) return _31; if ("310".equals(codeString)) return _310; if ("311".equals(codeString)) return _311; if ("312".equals(codeString)) return _312; if ("313".equals(codeString)) return _313; if ("314".equals(codeString)) return _314; if ("315".equals(codeString)) return _315; if ("316".equals(codeString)) return _316; if ("317".equals(codeString)) return _317; if ("318".equals(codeString)) return _318; if ("319".equals(codeString)) return _319; if ("32".equals(codeString)) return _32; if ("320".equals(codeString)) return _320; if ("321".equals(codeString)) return _321; if ("322".equals(codeString)) return _322; if ("323".equals(codeString)) return _323; if ("324".equals(codeString)) return _324; if ("325".equals(codeString)) return _325; if ("326".equals(codeString)) return _326; if ("327".equals(codeString)) return _327; if ("328".equals(codeString)) return _328; if ("329".equals(codeString)) return _329; if ("33".equals(codeString)) return _33; if ("330".equals(codeString)) return _330; if ("331".equals(codeString)) return _331; if ("332".equals(codeString)) return _332; if ("333".equals(codeString)) return _333; if ("334".equals(codeString)) return _334; if ("335".equals(codeString)) return _335; if ("336".equals(codeString)) return _336; if ("337".equals(codeString)) return _337; if ("34".equals(codeString)) return _34; if ("35".equals(codeString)) return _35; if ("36".equals(codeString)) return _36; if ("37".equals(codeString)) return _37; if ("38".equals(codeString)) return _38; if ("39".equals(codeString)) return _39; if ("4".equals(codeString)) return _4; if ("40".equals(codeString)) return _40; if ("41".equals(codeString)) return _41; if ("42".equals(codeString)) return _42; if ("43".equals(codeString)) return _43; if ("44".equals(codeString)) return _44; if ("45".equals(codeString)) return _45; if ("46".equals(codeString)) return _46; if ("47".equals(codeString)) return _47; if ("48".equals(codeString)) return _48; if ("49".equals(codeString)) return _49; if ("5".equals(codeString)) return _5; if ("50".equals(codeString)) return _50; if ("51".equals(codeString)) return _51; if ("52".equals(codeString)) return _52; if ("53".equals(codeString)) return _53; if ("54".equals(codeString)) return _54; if ("55".equals(codeString)) return _55; if ("56".equals(codeString)) return _56; if ("57".equals(codeString)) return _57; if ("58".equals(codeString)) return _58; if ("59".equals(codeString)) return _59; if ("6".equals(codeString)) return _6; if ("60".equals(codeString)) return _60; if ("61".equals(codeString)) return _61; if ("62".equals(codeString)) return _62; if ("63".equals(codeString)) return _63; if ("64".equals(codeString)) return _64; if ("65".equals(codeString)) return _65; if ("66".equals(codeString)) return _66; if ("67".equals(codeString)) return _67; if ("68".equals(codeString)) return _68; if ("69".equals(codeString)) return _69; if ("7".equals(codeString)) return _7; if ("70".equals(codeString)) return _70; if ("71".equals(codeString)) return _71; if ("72".equals(codeString)) return _72; if ("73".equals(codeString)) return _73; if ("74".equals(codeString)) return _74; if ("75".equals(codeString)) return _75; if ("76".equals(codeString)) return _76; if ("77".equals(codeString)) return _77; if ("78".equals(codeString)) return _78; if ("79".equals(codeString)) return _79; if ("8".equals(codeString)) return _8; if ("80".equals(codeString)) return _80; if ("81".equals(codeString)) return _81; if ("82".equals(codeString)) return _82; if ("83".equals(codeString)) return _83; if ("84".equals(codeString)) return _84; if ("85".equals(codeString)) return _85; if ("86".equals(codeString)) return _86; if ("87".equals(codeString)) return _87; if ("88".equals(codeString)) return _88; if ("89".equals(codeString)) return _89; if ("9".equals(codeString)) return _9; if ("90".equals(codeString)) return _90; if ("91".equals(codeString)) return _91; if ("92".equals(codeString)) return _92; if ("93".equals(codeString)) return _93; if ("94".equals(codeString)) return _94; if ("95".equals(codeString)) return _95; if ("96".equals(codeString)) return _96; if ("97".equals(codeString)) return _97; if ("98".equals(codeString)) return _98; if ("99".equals(codeString)) return _99; throw new Exception("Unknown V3TribalEntityUS code '"+codeString+"'"); } public String toCode() { switch (this) { case _NATIVEENTITYALASKA: return "_NativeEntityAlaska"; case _338: return "338"; case _339: return "339"; case _340: return "340"; case _341: return "341"; case _342: return "342"; case _343: return "343"; case _344: return "344"; case _345: return "345"; case _346: return "346"; case _347: return "347"; case _348: return "348"; case _349: return "349"; case _350: return "350"; case _351: return "351"; case _352: return "352"; case _353: return "353"; case _354: return "354"; case _355: return "355"; case _356: return "356"; case _357: return "357"; case _358: return "358"; case _359: return "359"; case _360: return "360"; case _361: return "361"; case _362: return "362"; case _363: return "363"; case _364: return "364"; case _365: return "365"; case _366: return "366"; case _367: return "367"; case _368: return "368"; case _369: return "369"; case _370: return "370"; case _371: return "371"; case _372: return "372"; case _373: return "373"; case _374: return "374"; case _375: return "375"; case _376: return "376"; case _377: return "377"; case _378: return "378"; case _379: return "379"; case _380: return "380"; case _381: return "381"; case _382: return "382"; case _383: return "383"; case _384: return "384"; case _385: return "385"; case _386: return "386"; case _387: return "387"; case _388: return "388"; case _389: return "389"; case _390: return "390"; case _391: return "391"; case _392: return "392"; case _393: return "393"; case _394: return "394"; case _395: return "395"; case _396: return "396"; case _397: return "397"; case _398: return "398"; case _399: return "399"; case _400: return "400"; case _401: return "401"; case _402: return "402"; case _403: return "403"; case _404: return "404"; case _405: return "405"; case _406: return "406"; case _407: return "407"; case _408: return "408"; case _409: return "409"; case _410: return "410"; case _411: return "411"; case _412: return "412"; case _413: return "413"; case _414: return "414"; case _415: return "415"; case _416: return "416"; case _417: return "417"; case _418: return "418"; case _419: return "419"; case _420: return "420"; case _421: return "421"; case _422: return "422"; case _423: return "423"; case _424: return "424"; case _425: return "425"; case _426: return "426"; case _427: return "427"; case _428: return "428"; case _429: return "429"; case _430: return "430"; case _431: return "431"; case _432: return "432"; case _433: return "433"; case _434: return "434"; case _435: return "435"; case _436: return "436"; case _437: return "437"; case _438: return "438"; case _439: return "439"; case _440: return "440"; case _441: return "441"; case _442: return "442"; case _443: return "443"; case _444: return "444"; case _445: return "445"; case _446: return "446"; case _447: return "447"; case _448: return "448"; case _449: return "449"; case _450: return "450"; case _451: return "451"; case _452: return "452"; case _453: return "453"; case _454: return "454"; case _455: return "455"; case _456: return "456"; case _457: return "457"; case _458: return "458"; case _459: return "459"; case _460: return "460"; case _461: return "461"; case _462: return "462"; case _463: return "463"; case _464: return "464"; case _465: return "465"; case _466: return "466"; case _467: return "467"; case _468: return "468"; case _469: return "469"; case _470: return "470"; case _471: return "471"; case _472: return "472"; case _473: return "473"; case _474: return "474"; case _475: return "475"; case _476: return "476"; case _477: return "477"; case _478: return "478"; case _479: return "479"; case _480: return "480"; case _481: return "481"; case _482: return "482"; case _483: return "483"; case _484: return "484"; case _485: return "485"; case _486: return "486"; case _487: return "487"; case _488: return "488"; case _489: return "489"; case _490: return "490"; case _491: return "491"; case _492: return "492"; case _493: return "493"; case _494: return "494"; case _495: return "495"; case _496: return "496"; case _497: return "497"; case _498: return "498"; case _499: return "499"; case _500: return "500"; case _501: return "501"; case _502: return "502"; case _503: return "503"; case _504: return "504"; case _505: return "505"; case _506: return "506"; case _507: return "507"; case _508: return "508"; case _509: return "509"; case _510: return "510"; case _511: return "511"; case _512: return "512"; case _513: return "513"; case _514: return "514"; case _515: return "515"; case _516: return "516"; case _517: return "517"; case _518: return "518"; case _519: return "519"; case _520: return "520"; case _521: return "521"; case _522: return "522"; case _523: return "523"; case _524: return "524"; case _525: return "525"; case _526: return "526"; case _527: return "527"; case _528: return "528"; case _529: return "529"; case _530: return "530"; case _531: return "531"; case _532: return "532"; case _533: return "533"; case _534: return "534"; case _535: return "535"; case _536: return "536"; case _537: return "537"; case _538: return "538"; case _539: return "539"; case _540: return "540"; case _541: return "541"; case _542: return "542"; case _543: return "543"; case _544: return "544"; case _545: return "545"; case _546: return "546"; case _547: return "547"; case _548: return "548"; case _549: return "549"; case _550: return "550"; case _551: return "551"; case _552: return "552"; case _553: return "553"; case _554: return "554"; case _555: return "555"; case _556: return "556"; case _557: return "557"; case _558: return "558"; case _559: return "559"; case _560: return "560"; case _561: return "561"; case _562: return "562"; case _563: return "563"; case _564: return "564"; case _565: return "565"; case _566: return "566"; case _NATIVEENTITYCONTIGUOUS: return "_NativeEntityContiguous"; case _1: return "1"; case _10: return "10"; case _100: return "100"; case _101: return "101"; case _102: return "102"; case _103: return "103"; case _104: return "104"; case _105: return "105"; case _106: return "106"; case _107: return "107"; case _108: return "108"; case _109: return "109"; case _11: return "11"; case _110: return "110"; case _111: return "111"; case _112: return "112"; case _113: return "113"; case _114: return "114"; case _115: return "115"; case _116: return "116"; case _117: return "117"; case _118: return "118"; case _119: return "119"; case _12: return "12"; case _120: return "120"; case _121: return "121"; case _122: return "122"; case _123: return "123"; case _124: return "124"; case _125: return "125"; case _126: return "126"; case _127: return "127"; case _128: return "128"; case _129: return "129"; case _13: return "13"; case _130: return "130"; case _131: return "131"; case _132: return "132"; case _133: return "133"; case _134: return "134"; case _135: return "135"; case _136: return "136"; case _137: return "137"; case _138: return "138"; case _139: return "139"; case _14: return "14"; case _140: return "140"; case _141: return "141"; case _142: return "142"; case _143: return "143"; case _144: return "144"; case _145: return "145"; case _146: return "146"; case _147: return "147"; case _148: return "148"; case _149: return "149"; case _15: return "15"; case _150: return "150"; case _151: return "151"; case _152: return "152"; case _153: return "153"; case _154: return "154"; case _155: return "155"; case _156: return "156"; case _157: return "157"; case _158: return "158"; case _159: return "159"; case _16: return "16"; case _160: return "160"; case _161: return "161"; case _162: return "162"; case _163: return "163"; case _164: return "164"; case _165: return "165"; case _166: return "166"; case _167: return "167"; case _168: return "168"; case _169: return "169"; case _17: return "17"; case _170: return "170"; case _171: return "171"; case _172: return "172"; case _173: return "173"; case _174: return "174"; case _175: return "175"; case _176: return "176"; case _177: return "177"; case _178: return "178"; case _179: return "179"; case _18: return "18"; case _180: return "180"; case _181: return "181"; case _182: return "182"; case _183: return "183"; case _184: return "184"; case _185: return "185"; case _186: return "186"; case _187: return "187"; case _188: return "188"; case _189: return "189"; case _19: return "19"; case _190: return "190"; case _191: return "191"; case _192: return "192"; case _193: return "193"; case _194: return "194"; case _195: return "195"; case _196: return "196"; case _197: return "197"; case _198: return "198"; case _199: return "199"; case _2: return "2"; case _20: return "20"; case _200: return "200"; case _201: return "201"; case _202: return "202"; case _203: return "203"; case _204: return "204"; case _205: return "205"; case _206: return "206"; case _207: return "207"; case _208: return "208"; case _209: return "209"; case _21: return "21"; case _210: return "210"; case _211: return "211"; case _212: return "212"; case _213: return "213"; case _214: return "214"; case _215: return "215"; case _216: return "216"; case _217: return "217"; case _218: return "218"; case _219: return "219"; case _22: return "22"; case _220: return "220"; case _221: return "221"; case _222: return "222"; case _223: return "223"; case _224: return "224"; case _225: return "225"; case _226: return "226"; case _227: return "227"; case _228: return "228"; case _229: return "229"; case _23: return "23"; case _230: return "230"; case _231: return "231"; case _232: return "232"; case _233: return "233"; case _234: return "234"; case _235: return "235"; case _236: return "236"; case _237: return "237"; case _238: return "238"; case _239: return "239"; case _24: return "24"; case _240: return "240"; case _241: return "241"; case _242: return "242"; case _243: return "243"; case _244: return "244"; case _245: return "245"; case _246: return "246"; case _247: return "247"; case _248: return "248"; case _249: return "249"; case _25: return "25"; case _250: return "250"; case _251: return "251"; case _252: return "252"; case _253: return "253"; case _254: return "254"; case _255: return "255"; case _256: return "256"; case _257: return "257"; case _258: return "258"; case _259: return "259"; case _26: return "26"; case _260: return "260"; case _261: return "261"; case _262: return "262"; case _263: return "263"; case _264: return "264"; case _265: return "265"; case _266: return "266"; case _267: return "267"; case _268: return "268"; case _269: return "269"; case _27: return "27"; case _270: return "270"; case _271: return "271"; case _272: return "272"; case _273: return "273"; case _274: return "274"; case _275: return "275"; case _276: return "276"; case _277: return "277"; case _278: return "278"; case _279: return "279"; case _28: return "28"; case _280: return "280"; case _281: return "281"; case _282: return "282"; case _283: return "283"; case _284: return "284"; case _285: return "285"; case _286: return "286"; case _287: return "287"; case _288: return "288"; case _289: return "289"; case _29: return "29"; case _290: return "290"; case _291: return "291"; case _292: return "292"; case _293: return "293"; case _294: return "294"; case _295: return "295"; case _296: return "296"; case _297: return "297"; case _298: return "298"; case _299: return "299"; case _3: return "3"; case _30: return "30"; case _300: return "300"; case _301: return "301"; case _302: return "302"; case _303: return "303"; case _304: return "304"; case _305: return "305"; case _306: return "306"; case _307: return "307"; case _308: return "308"; case _309: return "309"; case _31: return "31"; case _310: return "310"; case _311: return "311"; case _312: return "312"; case _313: return "313"; case _314: return "314"; case _315: return "315"; case _316: return "316"; case _317: return "317"; case _318: return "318"; case _319: return "319"; case _32: return "32"; case _320: return "320"; case _321: return "321"; case _322: return "322"; case _323: return "323"; case _324: return "324"; case _325: return "325"; case _326: return "326"; case _327: return "327"; case _328: return "328"; case _329: return "329"; case _33: return "33"; case _330: return "330"; case _331: return "331"; case _332: return "332"; case _333: return "333"; case _334: return "334"; case _335: return "335"; case _336: return "336"; case _337: return "337"; case _34: return "34"; case _35: return "35"; case _36: return "36"; case _37: return "37"; case _38: return "38"; case _39: return "39"; case _4: return "4"; case _40: return "40"; case _41: return "41"; case _42: return "42"; case _43: return "43"; case _44: return "44"; case _45: return "45"; case _46: return "46"; case _47: return "47"; case _48: return "48"; case _49: return "49"; case _5: return "5"; case _50: return "50"; case _51: return "51"; case _52: return "52"; case _53: return "53"; case _54: return "54"; case _55: return "55"; case _56: return "56"; case _57: return "57"; case _58: return "58"; case _59: return "59"; case _6: return "6"; case _60: return "60"; case _61: return "61"; case _62: return "62"; case _63: return "63"; case _64: return "64"; case _65: return "65"; case _66: return "66"; case _67: return "67"; case _68: return "68"; case _69: return "69"; case _7: return "7"; case _70: return "70"; case _71: return "71"; case _72: return "72"; case _73: return "73"; case _74: return "74"; case _75: return "75"; case _76: return "76"; case _77: return "77"; case _78: return "78"; case _79: return "79"; case _8: return "8"; case _80: return "80"; case _81: return "81"; case _82: return "82"; case _83: return "83"; case _84: return "84"; case _85: return "85"; case _86: return "86"; case _87: return "87"; case _88: return "88"; case _89: return "89"; case _9: return "9"; case _90: return "90"; case _91: return "91"; case _92: return "92"; case _93: return "93"; case _94: return "94"; case _95: return "95"; case _96: return "96"; case _97: return "97"; case _98: return "98"; case _99: return "99"; default: return "?"; } } public String getSystem() { return "http://hl7.org/fhir/v3/TribalEntityUS"; } public String getDefinition() { switch (this) { case _NATIVEENTITYALASKA: return "NATIVE ENTITIES WITHIN THE STATE OF ALASKA RECOGNIZED AND ELIGIBLE TO RECEIVE SERVICES FROM THE UNITED STATES BUREAU OF INDIAN AFFAIRS"; case _338: return "Village of Afognak"; case _339: return "Agdaagux Tribe of King Cove"; case _340: return "Native Village of Akhiok"; case _341: return "Akiachak Native Community"; case _342: return "Akiak Native Community"; case _343: return "Native Village of Akutan"; case _344: return "Village of Alakanuk"; case _345: return "Alatna Village"; case _346: return "Native Village of Aleknagik"; case _347: return "Algaaciq Native Village (St. Mary's)"; case _348: return "Allakaket Village"; case _349: return "Native Village of Ambler"; case _350: return "Village of Anaktuvuk Pass"; case _351: return "Yupiit of Andreafski"; case _352: return "Angoon Community Association"; case _353: return "Village of Aniak"; case _354: return "Anvik Village"; case _355: return "Arctic Village (See Native Village of Venetie Trib"; case _356: return "Asa carsarmiut Tribe (formerly Native Village of M"; case _357: return "Native Village of Atka"; case _358: return "Village of Atmautluak"; case _359: return "Atqasuk Village (Atkasook)"; case _360: return "Native Village of Barrow Inupiat Traditional Gover"; case _361: return "Beaver Village"; case _362: return "Native Village of Belkofski"; case _363: return "Village of Bill Moore's Slough"; case _364: return "Birch Creek Tribe"; case _365: return "Native Village of Brevig Mission"; case _366: return "Native Village of Buckland"; case _367: return "Native Village of Cantwell"; case _368: return "Native Village of Chanega (aka Chenega)"; case _369: return "Chalkyitsik Village"; case _370: return "Village of Chefornak"; case _371: return "Chevak Native Village"; case _372: return "Chickaloon Native Village"; case _373: return "Native Village of Chignik"; case _374: return "Native Village of Chignik Lagoon"; case _375: return "Chignik Lake Village"; case _376: return "Chilkat Indian Village (Klukwan)"; case _377: return "Chilkoot Indian Association (Haines)"; case _378: return "Chinik Eskimo Community (Golovin)"; case _379: return "Native Village of Chistochina"; case _380: return "Native Village of Chitina"; case _381: return "Native Village of Chuathbaluk (Russian Mission, Ku"; case _382: return "Chuloonawick Native Village"; case _383: return "Circle Native Community"; case _384: return "Village of Clark's Point"; case _385: return "Native Village of Council"; case _386: return "Craig Community Association"; case _387: return "Village of Crooked Creek"; case _388: return "Curyung Tribal Council (formerly Native Village of"; case _389: return "Native Village of Deering"; case _390: return "Native Village of Diomede (aka Inalik)"; case _391: return "Village of Dot Lake"; case _392: return "Douglas Indian Association"; case _393: return "Native Village of Eagle"; case _394: return "Native Village of Eek"; case _395: return "Egegik Village"; case _396: return "Eklutna Native Village"; case _397: return "Native Village of Ekuk"; case _398: return "Ekwok Village"; case _399: return "Native Village of Elim"; case _400: return "Emmonak Village"; case _401: return "Evansville Village (aka Bettles Field)"; case _402: return "Native Village of Eyak (Cordova)"; case _403: return "Native Village of False Pass"; case _404: return "Native Village of Fort Yukon"; case _405: return "Native Village of Gakona"; case _406: return "Galena Village (aka Louden Village)"; case _407: return "Native Village of Gambell"; case _408: return "Native Village of Georgetown"; case _409: return "Native Village of Goodnews Bay"; case _410: return "Organized Village of Grayling (aka Holikachuk)"; case _411: return "Gulkana Village"; case _412: return "Native Village of Hamilton"; case _413: return "Healy Lake Village"; case _414: return "Holy Cross Village"; case _415: return "Hoonah Indian Association"; case _416: return "Native Village of Hooper Bay"; case _417: return "Hughes Village"; case _418: return "Huslia Village"; case _419: return "Hydaburg Cooperative Association"; case _420: return "Igiugig Village"; case _421: return "Village of Iliamna"; case _422: return "Inupiat Community of the Arctic Slope"; case _423: return "Iqurmuit Traditional Council (formerly Native Vill"; case _424: return "Ivanoff Bay Village"; case _425: return "Kaguyak Village"; case _426: return "Organized Village of Kake"; case _427: return "Kaktovik Village (aka Barter Island)"; case _428: return "Village of Kalskag"; case _429: return "Village of Kaltag"; case _430: return "Native Village of Kanatak"; case _431: return "Native Village of Karluk"; case _432: return "Organized Village of Kasaan"; case _433: return "Native Village of Kasigluk"; case _434: return "Kenaitze Indian Tribe"; case _435: return "Ketchikan Indian Corporation"; case _436: return "Native Village of Kiana"; case _437: return "King Island Native Community"; case _438: return "King Salmon Tribe"; case _439: return "Native Village of Kipnuk"; case _440: return "Native Village of Kivalina"; case _441: return "Klawock Cooperative Association"; case _442: return "Native Village of Kluti Kaah (aka Copper Center)"; case _443: return "Knik Tribe"; case _444: return "Native Village of Kobuk"; case _445: return "Kokhanok Village"; case _446: return "Native Village of Kongiganak"; case _447: return "Village of Kotlik"; case _448: return "Native Village of Kotzebue"; case _449: return "Native Village of Koyuk"; case _450: return "Koyukuk Native Village"; case _451: return "Organized Village of Kwethluk"; case _452: return "Native Village of Kwigillingok"; case _453: return "Native Village of Kwinhagak (aka Quinhagak)"; case _454: return "Native Village of Larsen Bay"; case _455: return "Levelock Village"; case _456: return "Lesnoi Village (aka Woody Island)"; case _457: return "Lime Village"; case _458: return "Village of Lower Kalskag"; case _459: return "Manley Hot Springs Village"; case _460: return "Manokotak Village"; case _461: return "Native Village of Marshall (aka Fortuna Ledge)"; case _462: return "Native Village of Mary's Igloo"; case _463: return "McGrath Native Village"; case _464: return "Native Village of Mekoryuk"; case _465: return "Mentasta Traditional Council"; case _466: return "Metlakatla Indian Community, Annette Island Reserv"; case _467: return "Native Village of Minto"; case _468: return "Naknek Native Village"; case _469: return "Native Village of Nanwalek (aka English Bay)"; case _470: return "Native Village of Napaimute"; case _471: return "Native Village of Napakiak"; case _472: return "Native Village of Napaskiak"; case _473: return "Native Village of Nelson Lagoon"; case _474: return "Nenana Native Association"; case _475: return "New Koliganek Village Council (formerly Koliganek"; case _476: return "New Stuyahok Village"; case _477: return "Newhalen Village"; case _478: return "Newtok Village"; case _479: return "Native Village of Nightmute"; case _480: return "Nikolai Village"; case _481: return "Native Village of Nikolski"; case _482: return "Ninilchik Village"; case _483: return "Native Village of Noatak"; case _484: return "Nome Eskimo Community"; case _485: return "Nondalton Village"; case _486: return "Noorvik Native Community"; case _487: return "Northway Village"; case _488: return "Native Village of Nuiqsut (aka Nooiksut)"; case _489: return "Nulato Village"; case _490: return "Nunakauyarmiut Tribe (formerly Native Village of T"; case _491: return "Native Village of Nunapitchuk"; case _492: return "Village of Ohogamiut"; case _493: return "Village of Old Harbor"; case _494: return "Orutsararmuit Native Village (aka Bethel)"; case _495: return "Oscarville Traditional Village"; case _496: return "Native Village of Ouzinkie"; case _497: return "Native Village of Paimiut"; case _498: return "Pauloff Harbor Village"; case _499: return "Pedro Bay Village"; case _500: return "Native Village of Perryville"; case _501: return "Petersburg Indian Association"; case _502: return "Native Village of Pilot Point"; case _503: return "Pilot Station Traditional Village"; case _504: return "Native Village of Pitka's Point"; case _505: return "Platinum Traditional Village"; case _506: return "Native Village of Point Hope"; case _507: return "Native Village of Point Lay"; case _508: return "Native Village of Port Graham"; case _509: return "Native Village of Port Heiden"; case _510: return "Native Village of Port Lions"; case _511: return "Portage Creek Village (aka Ohgsenakale)"; case _512: return "Pribilof Islands Aleut Communities of St. Paul & S"; case _513: return "Qagan Tayagungin Tribe of Sand Point Village"; case _514: return "Qawalangin Tribe of Unalaska"; case _515: return "Rampart Village"; case _516: return "Village of Red Devil"; case _517: return "Native Village of Ruby"; case _518: return "Saint George Island(See Pribilof Islands Aleut Com"; case _519: return "Native Village of Saint Michael"; case _520: return "Saint Paul Island (See Pribilof Islands Aleut Comm"; case _521: return "Village of Salamatoff"; case _522: return "Native Village of Savoonga"; case _523: return "Organized Village of Saxman"; case _524: return "Native Village of Scammon Bay"; case _525: return "Native Village of Selawik"; case _526: return "Seldovia Village Tribe"; case _527: return "Shageluk Native Village"; case _528: return "Native Village of Shaktoolik"; case _529: return "Native Village of Sheldon's Point"; case _530: return "Native Village of Shishmaref"; case _531: return "Shoonaq Tribe of Kodiak"; case _532: return "Native Village of Shungnak"; case _533: return "Sitka Tribe of Alaska"; case _534: return "Skagway Village"; case _535: return "Village of Sleetmute"; case _536: return "Village of Solomon"; case _537: return "South Naknek Village"; case _538: return "Stebbins Community Association"; case _539: return "Native Village of Stevens"; case _540: return "Village of Stony River"; case _541: return "Takotna Village"; case _542: return "Native Village of Tanacross"; case _543: return "Native Village of Tanana"; case _544: return "Native Village of Tatitlek"; case _545: return "Native Village of Tazlina"; case _546: return "Telida Village"; case _547: return "Native Village of Teller"; case _548: return "Native Village of Tetlin"; case _549: return "Central Council of the Tlingit and Haida Indian Tb"; case _550: return "Traditional Village of Togiak"; case _551: return "Tuluksak Native Community"; case _552: return "Native Village of Tuntutuliak"; case _553: return "Native Village of Tununak"; case _554: return "Twin Hills Village"; case _555: return "Native Village of Tyonek"; case _556: return "Ugashik Village"; case _557: return "Umkumiute Native Village"; case _558: return "Native Village of Unalakleet"; case _559: return "Native Village of Unga"; case _560: return "Village of Venetie (See Native Village of Venetie"; case _561: return "Native Village of Venetie Tribal Government (Arcti"; case _562: return "Village of Wainwright"; case _563: return "Native Village of Wales"; case _564: return "Native Village of White Mountain"; case _565: return "Wrangell Cooperative Association"; case _566: return "Yakutat Tlingit Tribe"; case _NATIVEENTITYCONTIGUOUS: return "NATIVE ENTITIES WITHIN THE CONTIGUOUS 48 STATES"; case _1: return "Absentee-Shawnee Tribe of Indians of Oklahoma"; case _10: return "Assiniboine and Sioux Tribes of the Fort Peck Indi"; case _100: return "Havasupai Tribe of the Havasupai Reservation, Ariz"; case _101: return "Ho-Chunk Nation of Wisconsin (formerly known as th"; case _102: return "Hoh Indian Tribe of the Hoh Indian Reservation, Wa"; case _103: return "Hoopa Valley Tribe, California"; case _104: return "Hopi Tribe of Arizona"; case _105: return "Hopland Band of Pomo Indians of the Hopland Ranche"; case _106: return "Houlton Band of Maliseet Indians of Maine"; case _107: return "Hualapai Indian Tribe of the Hualapai Indian Reser"; case _108: return "Huron Potawatomi, Inc., Michigan"; case _109: return "Inaja Band of Diegueno Mission Indians of the Inaj"; case _11: return "Augustine Band of Cahuilla Mission Indians of the"; case _110: return "Ione Band of Miwok Indians of California"; case _111: return "Iowa Tribe of Kansas and Nebraska"; case _112: return "Iowa Tribe of Oklahoma"; case _113: return "Jackson Rancheria of Me-Wuk Indians of California"; case _114: return "Jamestown S'Klallam Tribe of Washington"; case _115: return "Jamul Indian Village of California"; case _116: return "Jena Band of Choctaw Indians, Louisiana"; case _117: return "Jicarilla Apache Tribe of the Jicarilla Apache Ind"; case _118: return "Kaibab Band of Paiute Indians of the Kaibab Indian"; case _119: return "Kalispel Indian Community of the Kalispel Reservat"; case _12: return "Bad River Band of the Lake Superior Tribe of Chipp"; case _120: return "Karuk Tribe of California"; case _121: return "Kashia Band of Pomo Indians of the Stewarts Point"; case _122: return "Kaw Nation, Oklahoma"; case _123: return "Keweenaw Bay Indian Community of L'Anse and Ontona"; case _124: return "Kialegee Tribal Town, Oklahoma"; case _125: return "Kickapoo Tribe of Indians of the Kickapoo Reservat"; case _126: return "Kickapoo Tribe of Oklahoma"; case _127: return "Kickapoo Traditional Tribe of Texas"; case _128: return "Kiowa Indian Tribe of Oklahoma"; case _129: return "Klamath Indian Tribe of Oregon"; case _13: return "Bay Mills Indian Community of the Sault Ste. Marie"; case _130: return "Kootenai Tribe of Idaho"; case _131: return "La Jolla Band of Luiseno Mission Indians of the La"; case _132: return "La Posta Band of Diegueno Mission Indians of the L"; case _133: return "Lac Courte Oreilles Band of Lake Superior Chippewa"; case _134: return "Lac du Flambeau Band of Lake Superior Chippewa Ind"; case _135: return "Lac Vieux Desert Band of Lake Superior Chippewa In"; case _136: return "Las Vegas Tribe of Paiute Indians of the Las Vegas"; case _137: return "Little River Band of Ottawa Indians of Michigan"; case _138: return "Little Traverse Bay Bands of Odawa Indians of Mich"; case _139: return "Lower Lake Rancheria, California"; case _14: return "Bear River Band of the Rohnerville Rancheria, Cali"; case _140: return "Los Coyotes Band of Cahuilla Mission Indians of th"; case _141: return "Lovelock Paiute Tribe of the Lovelock Indian Colon"; case _142: return "Lower Brule Sioux Tribe of the Lower Brule Reserva"; case _143: return "Lower Elwha Tribal Community of the Lower Elwha Re"; case _144: return "Lower Sioux Indian Community of Minnesota Mdewakan"; case _145: return "Lummi Tribe of the Lummi Reservation, Washington"; case _146: return "Lytton Rancheria of California"; case _147: return "Makah Indian Tribe of the Makah Indian Reservation"; case _148: return "Manchester Band of Pomo Indians of the Manchester-"; case _149: return "Manzanita Band of Diegueno Mission Indians of the"; case _15: return "Berry Creek Rancheria of Maidu Indians of Californ"; case _150: return "Mashantucket Pequot Tribe of Connecticut"; case _151: return "Match-e-be-nash-she-wish Band of Pottawatomi India"; case _152: return "Mechoopda Indian Tribe of Chico Rancheria, Califor"; case _153: return "Menominee Indian Tribe of Wisconsin"; case _154: return "Mesa Grande Band of Diegueno Mission Indians of th"; case _155: return "Mescalero Apache Tribe of the Mescalero Reservatio"; case _156: return "Miami Tribe of Oklahoma"; case _157: return "Miccosukee Tribe of Indians of Florida"; case _158: return "Middletown Rancheria of Pomo Indians of California"; case _159: return "Minnesota Chippewa Tribe, Minnesota (Six component"; case _16: return "Big Lagoon Rancheria, California"; case _160: return "Bois Forte Band (Nett Lake); Fond du Lac Band; Gra"; case _161: return "Mississippi Band of Choctaw Indians, Mississippi"; case _162: return "Moapa Band of Paiute Indians of the Moapa River In"; case _163: return "Modoc Tribe of Oklahoma"; case _164: return "Mohegan Indian Tribe of Connecticut"; case _165: return "Mooretown Rancheria of Maidu Indians of California"; case _166: return "Morongo Band of Cahuilla Mission Indians of the Mo"; case _167: return "Muckleshoot Indian Tribe of the Muckleshoot Reserv"; case _168: return "Muscogee (Creek) Nation, Oklahoma"; case _169: return "Narragansett Indian Tribe of Rhode Island"; case _17: return "Big Pine Band of Owens Valley Paiute Shoshone Indi"; case _170: return "Navajo Nation, Arizona, New Mexico & Utah"; case _171: return "Nez Perce Tribe of Idaho"; case _172: return "Nisqually Indian Tribe of the Nisqually Reservatio"; case _173: return "Nooksack Indian Tribe of Washington"; case _174: return "Northern Cheyenne Tribe of the Northern Cheyenne I"; case _175: return "Northfork Rancheria of Mono Indians of California"; case _176: return "Northwestern Band of Shoshoni Nation of Utah (Wash"; case _177: return "Oglala Sioux Tribe of the Pine Ridge Reservation,"; case _178: return "Omaha Tribe of Nebraska"; case _179: return "Oneida Nation of New York"; case _18: return "Big Sandy Rancheria of Mono Indians of California"; case _180: return "Oneida Tribe of Wisconsin"; case _181: return "Onondaga Nation of New York"; case _182: return "Osage Tribe, Oklahoma"; case _183: return "Ottawa Tribe of Oklahoma"; case _184: return "Otoe-Missouria Tribe of Indians, Oklahoma"; case _185: return "Paiute Indian Tribe of Utah"; case _186: return "Paiute-Shoshone Indians of the Bishop Community of"; case _187: return "Paiute-Shoshone Tribe of the Fallon Reservation an"; case _188: return "Paiute-Shoshone Indians of the Lone Pine Community"; case _189: return "Pala Band of Luiseno Mission Indians of the Pala R"; case _19: return "Big Valley Band of Pomo Indians of the Big Valley"; case _190: return "Pascua Yaqui Tribe of Arizona"; case _191: return "Paskenta Band of Nomlaki Indians of California"; case _192: return "Passamaquoddy Tribe of Maine"; case _193: return "Pauma Band of Luiseno Mission Indians of the Pauma"; case _194: return "Pawnee Nation of Oklahoma"; case _195: return "Pechanga Band of Luiseno Mission Indians of the Pe"; case _196: return "Penobscot Tribe of Maine"; case _197: return "Peoria Tribe of Indians of Oklahoma"; case _198: return "Picayune Rancheria of Chukchansi Indians of Califo"; case _199: return "Pinoleville Rancheria of Pomo Indians of Californi"; case _2: return "Agua Caliente Band of Cahuilla Indians of the Agua"; case _20: return "Blackfeet Tribe of the Blackfeet Indian Reservatio"; case _200: return "Pit River Tribe, California (includes Big Bend, Lo"; case _201: return "Poarch Band of Creek Indians of Alabama"; case _202: return "Pokagon Band of Potawatomi Indians of Michigan"; case _203: return "Ponca Tribe of Indians of Oklahoma"; case _204: return "Ponca Tribe of Nebraska"; case _205: return "Port Gamble Indian Community of the Port Gamble Re"; case _206: return "Potter Valley Rancheria of Pomo Indians of Califor"; case _207: return "Prairie Band of Potawatomi Indians, Kansas"; case _208: return "Prairie Island Indian Community of Minnesota Mdewa"; case _209: return "Pueblo of Acoma, New Mexico"; case _21: return "Blue Lake Rancheria, California"; case _210: return "Pueblo of Cochiti, New Mexico"; case _211: return "Pueblo of Jemez, New Mexico"; case _212: return "Pueblo of Isleta, New Mexico"; case _213: return "Pueblo of Laguna, New Mexico"; case _214: return "Pueblo of Nambe, New Mexico"; case _215: return "Pueblo of Picuris, New Mexico"; case _216: return "Pueblo of Pojoaque, New Mexico"; case _217: return "Pueblo of San Felipe, New Mexico"; case _218: return "Pueblo of San Juan, New Mexico"; case _219: return "Pueblo of San Ildefonso, New Mexico"; case _22: return "Bridgeport Paiute Indian Colony of California"; case _220: return "Pueblo of Sandia, New Mexico"; case _221: return "Pueblo of Santa Ana, New Mexico"; case _222: return "Pueblo of Santa Clara, New Mexico"; case _223: return "Pueblo of Santo Domingo, New Mexico"; case _224: return "Pueblo of Taos, New Mexico"; case _225: return "Pueblo of Tesuque, New Mexico"; case _226: return "Pueblo of Zia, New Mexico"; case _227: return "Puyallup Tribe of the Puyallup Reservation, Washin"; case _228: return "Pyramid Lake Paiute Tribe of the Pyramid Lake Rese"; case _229: return "Quapaw Tribe of Indians, Oklahoma"; case _23: return "Buena Vista Rancheria of Me-Wuk Indians of Califor"; case _230: return "Quartz Valley Indian Community of the Quartz Valle"; case _231: return "Quechan Tribe of the Fort Yuma Indian Reservation,"; case _232: return "Quileute Tribe of the Quileute Reservation, Washin"; case _233: return "Quinault Tribe of the Quinault Reservation, Washin"; case _234: return "Ramona Band or Village of Cahuilla Mission Indians"; case _235: return "Red Cliff Band of Lake Superior Chippewa Indians o"; case _236: return "Red Lake Band of Chippewa Indians of the Red Lake"; case _237: return "Redding Rancheria, California"; case _238: return "Redwood Valley Rancheria of Pomo Indians of Califo"; case _239: return "Reno-Sparks Indian Colony, Nevada"; case _24: return "Burns Paiute Tribe of the Burns Paiute Indian Colo"; case _240: return "Resighini Rancheria, California (formerly known as"; case _241: return "Rincon Band of Luiseno Mission Indians of the Rinc"; case _242: return "Robinson Rancheria of Pomo Indians of California"; case _243: return "Rosebud Sioux Tribe of the Rosebud Indian Reservat"; case _244: return "Round Valley Indian Tribes of the Round Valley Res"; case _245: return "Rumsey Indian Rancheria of Wintun Indians of Calif"; case _246: return "Sac and Fox Tribe of the Mississippi in Iowa"; case _247: return "Sac and Fox Nation of Missouri in Kansas and Nebra"; case _248: return "Sac and Fox Nation, Oklahoma"; case _249: return "Saginaw Chippewa Indian Tribe of Michigan, Isabell"; case _25: return "Cabazon Band of Cahuilla Mission Indians of the Ca"; case _250: return "Salt River Pima-Maricopa Indian Community of the S"; case _251: return "Samish Indian Tribe, Washington"; case _252: return "San Carlos Apache Tribe of the San Carlos Reservat"; case _253: return "San Juan Southern Paiute Tribe of Arizona"; case _254: return "San Manual Band of Serrano Mission Indians of the"; case _255: return "San Pasqual Band of Diegueno Mission Indians of Ca"; case _256: return "Santa Rosa Indian Community of the Santa Rosa Ranc"; case _257: return "Santa Rosa Band of Cahuilla Mission Indians of the"; case _258: return "Santa Ynez Band of Chumash Mission Indians of the"; case _259: return "Santa Ysabel Band of Diegueno Mission Indians of t"; case _26: return "Cachil DeHe Band of Wintun Indians of the Colusa I"; case _260: return "Santee Sioux Tribe of the Santee Reservation of Ne"; case _261: return "Sauk-Suiattle Indian Tribe of Washington"; case _262: return "Sault Ste. Marie Tribe of Chippewa Indians of Mich"; case _263: return "Scotts Valley Band of Pomo Indians of California"; case _264: return "Seminole Nation of Oklahoma"; case _265: return "Seminole Tribe of Florida, Dania, Big Cypress, Bri"; case _266: return "Seneca Nation of New York"; case _267: return "Seneca-Cayuga Tribe of Oklahoma"; case _268: return "Shakopee Mdewakanton Sioux Community of Minnesota"; case _269: return "Shawnee Tribe, Oklahoma"; case _27: return "Caddo Indian Tribe of Oklahoma"; case _270: return "Sherwood Valley Rancheria of Pomo Indians of Calif"; case _271: return "Shingle Springs Band of Miwok Indians, Shingle Spr"; case _272: return "Shoalwater Bay Tribe of the Shoalwater Bay Indian"; case _273: return "Shoshone Tribe of the Wind River Reservation, Wyom"; case _274: return "Shoshone-Bannock Tribes of the Fort Hall Reservati"; case _275: return "Shoshone-Paiute Tribes of the Duck Valley Reservat"; case _276: return "Sisseton-Wahpeton Sioux Tribe of the Lake Traverse"; case _277: return "Skokomish Indian Tribe of the Skokomish Reservatio"; case _278: return "Skull Valley Band of Goshute Indians of Utah"; case _279: return "Smith River Rancheria, California"; case _28: return "Cahuilla Band of Mission Indians of the Cahuilla R"; case _280: return "Snoqualmie Tribe, Washington"; case _281: return "Soboba Band of Luiseno Indians, California (former"; case _282: return "Sokaogon Chippewa Community of the Mole Lake Band"; case _283: return "Southern Ute Indian Tribe of the Southern Ute Rese"; case _284: return "Spirit Lake Tribe, North Dakota (formerly known as"; case _285: return "Spokane Tribe of the Spokane Reservation, Washingt"; case _286: return "Squaxin Island Tribe of the Squaxin Island Reserva"; case _287: return "St. Croix Chippewa Indians of Wisconsin, St. Croix"; case _288: return "St. Regis Band of Mohawk Indians of New York"; case _289: return "Standing Rock Sioux Tribe of North & South Dakota"; case _29: return "Cahto Indian Tribe of the Laytonville Rancheria, C"; case _290: return "Stockbridge-Munsee Community of Mohican Indians of"; case _291: return "Stillaguamish Tribe of Washington"; case _292: return "Summit Lake Paiute Tribe of Nevada"; case _293: return "Suquamish Indian Tribe of the Port Madison Reserva"; case _294: return "Susanville Indian Rancheria, California"; case _295: return "Swinomish Indians of the Swinomish Reservation, Wa"; case _296: return "Sycuan Band of Diegueno Mission Indians of Califor"; case _297: return "Table Bluff Reservation - Wiyot Tribe, California"; case _298: return "Table Mountain Rancheria of California"; case _299: return "Te-Moak Tribe of Western Shoshone Indians of Nevad"; case _3: return "Ak Chin Indian Community of the Maricopa (Ak Chin)"; case _30: return "California Valley Miwok Tribe, California (formerl"; case _300: return "Thlopthlocco Tribal Town, Oklahoma"; case _301: return "Three Affiliated Tribes of the Fort Berthold Reser"; case _302: return "Tohono O'odham Nation of Arizona"; case _303: return "Tonawanda Band of Seneca Indians of New York"; case _304: return "Tonkawa Tribe of Indians of Oklahoma"; case _305: return "Tonto Apache Tribe of Arizona"; case _306: return "Torres-Martinez Band of Cahuilla Mission Indians o"; case _307: return "Tule River Indian Tribe of the Tule River Reservat"; case _308: return "Tulalip Tribes of the Tulalip Reservation, Washing"; case _309: return "Tunica-Biloxi Indian Tribe of Louisiana"; case _31: return "Campo Band of Diegueno Mission Indians of the Camp"; case _310: return "Tuolumne Band of Me-Wuk Indians of the Tuolumne Ra"; case _311: return "Turtle Mountain Band of Chippewa Indians of North"; case _312: return "Tuscarora Nation of New York"; case _313: return "Twenty-Nine Palms Band of Mission Indians of Calif"; case _314: return "United Auburn Indian Community of the Auburn Ranch"; case _315: return "United Keetoowah Band of Cherokee Indians of Oklah"; case _316: return "Upper Lake Band of Pomo Indians of Upper Lake Ranc"; case _317: return "Upper Sioux Indian Community of the Upper Sioux Re"; case _318: return "Upper Skagit Indian Tribe of Washington"; case _319: return "Ute Indian Tribe of the Uintah & Ouray Reservation"; case _32: return "Capitan Grande Band of Diegueno Mission Indians of"; case _320: return "Ute Mountain Tribe of the Ute Mountain Reservation"; case _321: return "Utu Utu Gwaitu Paiute Tribe of the Benton Paiute R"; case _322: return "Walker River Paiute Tribe of the Walker River Rese"; case _323: return "Wampanoag Tribe of Gay Head (Aquinnah) of Massachu"; case _324: return "Washoe Tribe of Nevada & California (Carson Colony"; case _325: return "White Mountain Apache Tribe of the Fort Apache Res"; case _326: return "Wichita and Affiliated Tribes (Wichita, Keechi, Wa"; case _327: return "Winnebago Tribe of Nebraska"; case _328: return "Winnemucca Indian Colony of Nevada"; case _329: return "Wyandotte Tribe of Oklahoma"; case _33: return "Barona Group of Capitan Grande Band of Mission Ind"; case _330: return "Yankton Sioux Tribe of South Dakota"; case _331: return "Yavapai-Apache Nation of the Camp Verde Indian Res"; case _332: return "Yavapai-Prescott Tribe of the Yavapai Reservation,"; case _333: return "Yerington Paiute Tribe of the Yerington Colony & C"; case _334: return "Yomba Shoshone Tribe of the Yomba Reservation, Nev"; case _335: return "Ysleta Del Sur Pueblo of Texas"; case _336: return "Yurok Tribe of the Yurok Reservation, California"; case _337: return "Zuni Tribe of the Zuni Reservation, New Mexico"; case _34: return "Viejas (Baron Long) Group of Capitan Grande Band o"; case _35: return "Catawba Indian Nation (aka Catawba Tribe of South"; case _36: return "Cayuga Nation of New York"; case _37: return "Cedarville Rancheria, California"; case _38: return "Chemehuevi Indian Tribe of the Chemehuevi Reservat"; case _39: return "Cher-Ae Heights Indian Community of the Trinidad R"; case _4: return "Alabama-Coushatta Tribes of Texas"; case _40: return "Cherokee Nation, Oklahoma"; case _41: return "Cheyenne-Arapaho Tribes of Oklahoma"; case _42: return "Cheyenne River Sioux Tribe of the Cheyenne River R"; case _43: return "Chickasaw Nation, Oklahoma"; case _44: return "Chicken Ranch Rancheria of Me-Wuk Indians of Calif"; case _45: return "Chippewa-Cree Indians of the Rocky Boy's Reservati"; case _46: return "Chitimacha Tribe of Louisiana"; case _47: return "Choctaw Nation of Oklahoma"; case _48: return "Citizen Potawatomi Nation, Oklahoma"; case _49: return "Cloverdale Rancheria of Pomo Indians of California"; case _5: return "Alabama-Quassarte Tribal Town, Oklahoma"; case _50: return "Cocopah Tribe of Arizona"; case _51: return "Coeur D'Alene Tribe of the Coeur D'Alene Reservati"; case _52: return "Cold Springs Rancheria of Mono Indians of Californ"; case _53: return "Colorado River Indian Tribes of the Colorado River"; case _54: return "Comanche Indian Tribe, Oklahoma"; case _55: return "Confederated Salish & Kootenai Tribes of the Flath"; case _56: return "Confederated Tribes of the Chehalis Reservation, W"; case _57: return "Confederated Tribes of the Colville Reservation, W"; case _58: return "Confederated Tribes of the Coos, Lower Umpqua and"; case _59: return "Confederated Tribes of the Goshute Reservation, Ne"; case _6: return "Alturas Indian Rancheria, California"; case _60: return "Confederated Tribes of the Grand Ronde Community o"; case _61: return "Confederated Tribes of the Siletz Reservation, Ore"; case _62: return "Confederated Tribes of the Umatilla Reservation, O"; case _63: return "Confederated Tribes of the Warm Springs Reservatio"; case _64: return "Confederated Tribes and Bands of the Yakama Indian"; case _65: return "Coquille Tribe of Oregon"; case _66: return "Cortina Indian Rancheria of Wintun Indians of Cali"; case _67: return "Coushatta Tribe of Louisiana"; case _68: return "Cow Creek Band of Umpqua Indians of Oregon"; case _69: return "Coyote Valley Band of Pomo Indians of California"; case _7: return "Apache Tribe of Oklahoma"; case _70: return "Crow Tribe of Montana"; case _71: return "Crow Creek Sioux Tribe of the Crow Creek Reservati"; case _72: return "Cuyapaipe Community of Diegueno Mission Indians of"; case _73: return "Death Valley Timbi-Sha Shoshone Band of California"; case _74: return "Delaware Nation, Oklahoma (formerly Delaware Tribe"; case _75: return "Delaware Tribe of Indians, Oklahoma"; case _76: return "Dry Creek Rancheria of Pomo Indians of California"; case _77: return "Duckwater Shoshone Tribe of the Duckwater Reservat"; case _78: return "Eastern Band of Cherokee Indians of North Carolina"; case _79: return "Eastern Shawnee Tribe of Oklahoma"; case _8: return "Arapahoe Tribe of the Wind River Reservation, Wyom"; case _80: return "Elem Indian Colony of Pomo Indians of the Sulphur"; case _81: return "Elk Valley Rancheria, California"; case _82: return "Ely Shoshone Tribe of Nevada"; case _83: return "Enterprise Rancheria of Maidu Indians of Californi"; case _84: return "Flandreau Santee Sioux Tribe of South Dakota"; case _85: return "Forest County Potawatomi Community of Wisconsin Po"; case _86: return "Fort Belknap Indian Community of the Fort Belknap"; case _87: return "Fort Bidwell Indian Community of the Fort Bidwell"; case _88: return "Fort Independence Indian Community of Paiute India"; case _89: return "Fort McDermitt Paiute and Shoshone Tribes of the F"; case _9: return "Aroostook Band of Micmac Indians of Maine"; case _90: return "Fort McDowell Yavapai Nation, Arizona (formerly th"; case _91: return "Fort Mojave Indian Tribe of Arizona, California"; case _92: return "Fort Sill Apache Tribe of Oklahoma"; case _93: return "Gila River Indian Community of the Gila River Indi"; case _94: return "Grand Traverse Band of Ottawa & Chippewa Indians o"; case _95: return "Graton Rancheria, California"; case _96: return "Greenville Rancheria of Maidu Indians of Californi"; case _97: return "Grindstone Indian Rancheria of Wintun-Wailaki Indi"; case _98: return "Guidiville Rancheria of California"; case _99: return "Hannahville Indian Community of Wisconsin Potawato"; default: return "?"; } } public String getDisplay() { switch (this) { case _NATIVEENTITYALASKA: return "NativeEntityAlaska"; case _338: return "Village of Afognak"; case _339: return "Agdaagux Tribe of King Cove"; case _340: return "Native Village of Akhiok"; case _341: return "Akiachak Native Community"; case _342: return "Akiak Native Community"; case _343: return "Native Village of Akutan"; case _344: return "Village of Alakanuk"; case _345: return "Alatna Village"; case _346: return "Native Village of Aleknagik"; case _347: return "Algaaciq Native Village (St. Mary's)"; case _348: return "Allakaket Village"; case _349: return "Native Village of Ambler"; case _350: return "Village of Anaktuvuk Pass"; case _351: return "Yupiit of Andreafski"; case _352: return "Angoon Community Association"; case _353: return "Village of Aniak"; case _354: return "Anvik Village"; case _355: return "Arctic Village (See Native Village of Venetie Trib"; case _356: return "Asa carsarmiut Tribe (formerly Native Village of M"; case _357: return "Native Village of Atka"; case _358: return "Village of Atmautluak"; case _359: return "Atqasuk Village (Atkasook)"; case _360: return "Native Village of Barrow Inupiat Traditional Gover"; case _361: return "Beaver Village"; case _362: return "Native Village of Belkofski"; case _363: return "Village of Bill Moore's Slough"; case _364: return "Birch Creek Tribe"; case _365: return "Native Village of Brevig Mission"; case _366: return "Native Village of Buckland"; case _367: return "Native Village of Cantwell"; case _368: return "Native Village of Chanega (aka Chenega)"; case _369: return "Chalkyitsik Village"; case _370: return "Village of Chefornak"; case _371: return "Chevak Native Village"; case _372: return "Chickaloon Native Village"; case _373: return "Native Village of Chignik"; case _374: return "Native Village of Chignik Lagoon"; case _375: return "Chignik Lake Village"; case _376: return "Chilkat Indian Village (Klukwan)"; case _377: return "Chilkoot Indian Association (Haines)"; case _378: return "Chinik Eskimo Community (Golovin)"; case _379: return "Native Village of Chistochina"; case _380: return "Native Village of Chitina"; case _381: return "Native Village of Chuathbaluk (Russian Mission, Ku"; case _382: return "Chuloonawick Native Village"; case _383: return "Circle Native Community"; case _384: return "Village of Clark's Point"; case _385: return "Native Village of Council"; case _386: return "Craig Community Association"; case _387: return "Village of Crooked Creek"; case _388: return "Curyung Tribal Council (formerly Native Village of"; case _389: return "Native Village of Deering"; case _390: return "Native Village of Diomede (aka Inalik)"; case _391: return "Village of Dot Lake"; case _392: return "Douglas Indian Association"; case _393: return "Native Village of Eagle"; case _394: return "Native Village of Eek"; case _395: return "Egegik Village"; case _396: return "Eklutna Native Village"; case _397: return "Native Village of Ekuk"; case _398: return "Ekwok Village"; case _399: return "Native Village of Elim"; case _400: return "Emmonak Village"; case _401: return "Evansville Village (aka Bettles Field)"; case _402: return "Native Village of Eyak (Cordova)"; case _403: return "Native Village of False Pass"; case _404: return "Native Village of Fort Yukon"; case _405: return "Native Village of Gakona"; case _406: return "Galena Village (aka Louden Village)"; case _407: return "Native Village of Gambell"; case _408: return "Native Village of Georgetown"; case _409: return "Native Village of Goodnews Bay"; case _410: return "Organized Village of Grayling (aka Holikachuk)"; case _411: return "Gulkana Village"; case _412: return "Native Village of Hamilton"; case _413: return "Healy Lake Village"; case _414: return "Holy Cross Village"; case _415: return "Hoonah Indian Association"; case _416: return "Native Village of Hooper Bay"; case _417: return "Hughes Village"; case _418: return "Huslia Village"; case _419: return "Hydaburg Cooperative Association"; case _420: return "Igiugig Village"; case _421: return "Village of Iliamna"; case _422: return "Inupiat Community of the Arctic Slope"; case _423: return "Iqurmuit Traditional Council (formerly Native Vill"; case _424: return "Ivanoff Bay Village"; case _425: return "Kaguyak Village"; case _426: return "Organized Village of Kake"; case _427: return "Kaktovik Village (aka Barter Island)"; case _428: return "Village of Kalskag"; case _429: return "Village of Kaltag"; case _430: return "Native Village of Kanatak"; case _431: return "Native Village of Karluk"; case _432: return "Organized Village of Kasaan"; case _433: return "Native Village of Kasigluk"; case _434: return "Kenaitze Indian Tribe"; case _435: return "Ketchikan Indian Corporation"; case _436: return "Native Village of Kiana"; case _437: return "King Island Native Community"; case _438: return "King Salmon Tribe"; case _439: return "Native Village of Kipnuk"; case _440: return "Native Village of Kivalina"; case _441: return "Klawock Cooperative Association"; case _442: return "Native Village of Kluti Kaah (aka Copper Center)"; case _443: return "Knik Tribe"; case _444: return "Native Village of Kobuk"; case _445: return "Kokhanok Village"; case _446: return "Native Village of Kongiganak"; case _447: return "Village of Kotlik"; case _448: return "Native Village of Kotzebue"; case _449: return "Native Village of Koyuk"; case _450: return "Koyukuk Native Village"; case _451: return "Organized Village of Kwethluk"; case _452: return "Native Village of Kwigillingok"; case _453: return "Native Village of Kwinhagak (aka Quinhagak)"; case _454: return "Native Village of Larsen Bay"; case _455: return "Levelock Village"; case _456: return "Lesnoi Village (aka Woody Island)"; case _457: return "Lime Village"; case _458: return "Village of Lower Kalskag"; case _459: return "Manley Hot Springs Village"; case _460: return "Manokotak Village"; case _461: return "Native Village of Marshall (aka Fortuna Ledge)"; case _462: return "Native Village of Mary's Igloo"; case _463: return "McGrath Native Village"; case _464: return "Native Village of Mekoryuk"; case _465: return "Mentasta Traditional Council"; case _466: return "Metlakatla Indian Community, Annette Island Reserv"; case _467: return "Native Village of Minto"; case _468: return "Naknek Native Village"; case _469: return "Native Village of Nanwalek (aka English Bay)"; case _470: return "Native Village of Napaimute"; case _471: return "Native Village of Napakiak"; case _472: return "Native Village of Napaskiak"; case _473: return "Native Village of Nelson Lagoon"; case _474: return "Nenana Native Association"; case _475: return "New Koliganek Village Council (formerly Koliganek"; case _476: return "New Stuyahok Village"; case _477: return "Newhalen Village"; case _478: return "Newtok Village"; case _479: return "Native Village of Nightmute"; case _480: return "Nikolai Village"; case _481: return "Native Village of Nikolski"; case _482: return "Ninilchik Village"; case _483: return "Native Village of Noatak"; case _484: return "Nome Eskimo Community"; case _485: return "Nondalton Village"; case _486: return "Noorvik Native Community"; case _487: return "Northway Village"; case _488: return "Native Village of Nuiqsut (aka Nooiksut)"; case _489: return "Nulato Village"; case _490: return "Nunakauyarmiut Tribe (formerly Native Village of T"; case _491: return "Native Village of Nunapitchuk"; case _492: return "Village of Ohogamiut"; case _493: return "Village of Old Harbor"; case _494: return "Orutsararmuit Native Village (aka Bethel)"; case _495: return "Oscarville Traditional Village"; case _496: return "Native Village of Ouzinkie"; case _497: return "Native Village of Paimiut"; case _498: return "Pauloff Harbor Village"; case _499: return "Pedro Bay Village"; case _500: return "Native Village of Perryville"; case _501: return "Petersburg Indian Association"; case _502: return "Native Village of Pilot Point"; case _503: return "Pilot Station Traditional Village"; case _504: return "Native Village of Pitka's Point"; case _505: return "Platinum Traditional Village"; case _506: return "Native Village of Point Hope"; case _507: return "Native Village of Point Lay"; case _508: return "Native Village of Port Graham"; case _509: return "Native Village of Port Heiden"; case _510: return "Native Village of Port Lions"; case _511: return "Portage Creek Village (aka Ohgsenakale)"; case _512: return "Pribilof Islands Aleut Communities of St. Paul & S"; case _513: return "Qagan Tayagungin Tribe of Sand Point Village"; case _514: return "Qawalangin Tribe of Unalaska"; case _515: return "Rampart Village"; case _516: return "Village of Red Devil"; case _517: return "Native Village of Ruby"; case _518: return "Saint George Island(See Pribilof Islands Aleut Com"; case _519: return "Native Village of Saint Michael"; case _520: return "Saint Paul Island (See Pribilof Islands Aleut Comm"; case _521: return "Village of Salamatoff"; case _522: return "Native Village of Savoonga"; case _523: return "Organized Village of Saxman"; case _524: return "Native Village of Scammon Bay"; case _525: return "Native Village of Selawik"; case _526: return "Seldovia Village Tribe"; case _527: return "Shageluk Native Village"; case _528: return "Native Village of Shaktoolik"; case _529: return "Native Village of Sheldon's Point"; case _530: return "Native Village of Shishmaref"; case _531: return "Shoonaq Tribe of Kodiak"; case _532: return "Native Village of Shungnak"; case _533: return "Sitka Tribe of Alaska"; case _534: return "Skagway Village"; case _535: return "Village of Sleetmute"; case _536: return "Village of Solomon"; case _537: return "South Naknek Village"; case _538: return "Stebbins Community Association"; case _539: return "Native Village of Stevens"; case _540: return "Village of Stony River"; case _541: return "Takotna Village"; case _542: return "Native Village of Tanacross"; case _543: return "Native Village of Tanana"; case _544: return "Native Village of Tatitlek"; case _545: return "Native Village of Tazlina"; case _546: return "Telida Village"; case _547: return "Native Village of Teller"; case _548: return "Native Village of Tetlin"; case _549: return "Central Council of the Tlingit and Haida Indian Tb"; case _550: return "Traditional Village of Togiak"; case _551: return "Tuluksak Native Community"; case _552: return "Native Village of Tuntutuliak"; case _553: return "Native Village of Tununak"; case _554: return "Twin Hills Village"; case _555: return "Native Village of Tyonek"; case _556: return "Ugashik Village"; case _557: return "Umkumiute Native Village"; case _558: return "Native Village of Unalakleet"; case _559: return "Native Village of Unga"; case _560: return "Village of Venetie (See Native Village of Venetie"; case _561: return "Native Village of Venetie Tribal Government (Arcti"; case _562: return "Village of Wainwright"; case _563: return "Native Village of Wales"; case _564: return "Native Village of White Mountain"; case _565: return "Wrangell Cooperative Association"; case _566: return "Yakutat Tlingit Tribe"; case _NATIVEENTITYCONTIGUOUS: return "NativeEntityContiguous"; case _1: return "Absentee-Shawnee Tribe of Indians of Oklahoma"; case _10: return "Assiniboine and Sioux Tribes of the Fort Peck Indi"; case _100: return "Havasupai Tribe of the Havasupai Reservation, Ariz"; case _101: return "Ho-Chunk Nation of Wisconsin (formerly known as th"; case _102: return "Hoh Indian Tribe of the Hoh Indian Reservation, Wa"; case _103: return "Hoopa Valley Tribe, California"; case _104: return "Hopi Tribe of Arizona"; case _105: return "Hopland Band of Pomo Indians of the Hopland Ranche"; case _106: return "Houlton Band of Maliseet Indians of Maine"; case _107: return "Hualapai Indian Tribe of the Hualapai Indian Reser"; case _108: return "Huron Potawatomi, Inc., Michigan"; case _109: return "Inaja Band of Diegueno Mission Indians of the Inaj"; case _11: return "Augustine Band of Cahuilla Mission Indians of the"; case _110: return "Ione Band of Miwok Indians of California"; case _111: return "Iowa Tribe of Kansas and Nebraska"; case _112: return "Iowa Tribe of Oklahoma"; case _113: return "Jackson Rancheria of Me-Wuk Indians of California"; case _114: return "Jamestown S'Klallam Tribe of Washington"; case _115: return "Jamul Indian Village of California"; case _116: return "Jena Band of Choctaw Indians, Louisiana"; case _117: return "Jicarilla Apache Tribe of the Jicarilla Apache Ind"; case _118: return "Kaibab Band of Paiute Indians of the Kaibab Indian"; case _119: return "Kalispel Indian Community of the Kalispel Reservat"; case _12: return "Bad River Band of the Lake Superior Tribe of Chipp"; case _120: return "Karuk Tribe of California"; case _121: return "Kashia Band of Pomo Indians of the Stewarts Point"; case _122: return "Kaw Nation, Oklahoma"; case _123: return "Keweenaw Bay Indian Community of L'Anse and Ontona"; case _124: return "Kialegee Tribal Town, Oklahoma"; case _125: return "Kickapoo Tribe of Indians of the Kickapoo Reservat"; case _126: return "Kickapoo Tribe of Oklahoma"; case _127: return "Kickapoo Traditional Tribe of Texas"; case _128: return "Kiowa Indian Tribe of Oklahoma"; case _129: return "Klamath Indian Tribe of Oregon"; case _13: return "Bay Mills Indian Community of the Sault Ste. Marie"; case _130: return "Kootenai Tribe of Idaho"; case _131: return "La Jolla Band of Luiseno Mission Indians of the La"; case _132: return "La Posta Band of Diegueno Mission Indians of the L"; case _133: return "Lac Courte Oreilles Band of Lake Superior Chippewa"; case _134: return "Lac du Flambeau Band of Lake Superior Chippewa Ind"; case _135: return "Lac Vieux Desert Band of Lake Superior Chippewa In"; case _136: return "Las Vegas Tribe of Paiute Indians of the Las Vegas"; case _137: return "Little River Band of Ottawa Indians of Michigan"; case _138: return "Little Traverse Bay Bands of Odawa Indians of Mich"; case _139: return "Lower Lake Rancheria, California"; case _14: return "Bear River Band of the Rohnerville Rancheria, Cali"; case _140: return "Los Coyotes Band of Cahuilla Mission Indians of th"; case _141: return "Lovelock Paiute Tribe of the Lovelock Indian Colon"; case _142: return "Lower Brule Sioux Tribe of the Lower Brule Reserva"; case _143: return "Lower Elwha Tribal Community of the Lower Elwha Re"; case _144: return "Lower Sioux Indian Community of Minnesota Mdewakan"; case _145: return "Lummi Tribe of the Lummi Reservation, Washington"; case _146: return "Lytton Rancheria of California"; case _147: return "Makah Indian Tribe of the Makah Indian Reservation"; case _148: return "Manchester Band of Pomo Indians of the Manchester-"; case _149: return "Manzanita Band of Diegueno Mission Indians of the"; case _15: return "Berry Creek Rancheria of Maidu Indians of Californ"; case _150: return "Mashantucket Pequot Tribe of Connecticut"; case _151: return "Match-e-be-nash-she-wish Band of Pottawatomi India"; case _152: return "Mechoopda Indian Tribe of Chico Rancheria, Califor"; case _153: return "Menominee Indian Tribe of Wisconsin"; case _154: return "Mesa Grande Band of Diegueno Mission Indians of th"; case _155: return "Mescalero Apache Tribe of the Mescalero Reservatio"; case _156: return "Miami Tribe of Oklahoma"; case _157: return "Miccosukee Tribe of Indians of Florida"; case _158: return "Middletown Rancheria of Pomo Indians of California"; case _159: return "Minnesota Chippewa Tribe, Minnesota (Six component"; case _16: return "Big Lagoon Rancheria, California"; case _160: return "Bois Forte Band (Nett Lake); Fond du Lac Band; Gra"; case _161: return "Mississippi Band of Choctaw Indians, Mississippi"; case _162: return "Moapa Band of Paiute Indians of the Moapa River In"; case _163: return "Modoc Tribe of Oklahoma"; case _164: return "Mohegan Indian Tribe of Connecticut"; case _165: return "Mooretown Rancheria of Maidu Indians of California"; case _166: return "Morongo Band of Cahuilla Mission Indians of the Mo"; case _167: return "Muckleshoot Indian Tribe of the Muckleshoot Reserv"; case _168: return "Muscogee (Creek) Nation, Oklahoma"; case _169: return "Narragansett Indian Tribe of Rhode Island"; case _17: return "Big Pine Band of Owens Valley Paiute Shoshone Indi"; case _170: return "Navajo Nation, Arizona, New Mexico & Utah"; case _171: return "Nez Perce Tribe of Idaho"; case _172: return "Nisqually Indian Tribe of the Nisqually Reservatio"; case _173: return "Nooksack Indian Tribe of Washington"; case _174: return "Northern Cheyenne Tribe of the Northern Cheyenne I"; case _175: return "Northfork Rancheria of Mono Indians of California"; case _176: return "Northwestern Band of Shoshoni Nation of Utah (Wash"; case _177: return "Oglala Sioux Tribe of the Pine Ridge Reservation,"; case _178: return "Omaha Tribe of Nebraska"; case _179: return "Oneida Nation of New York"; case _18: return "Big Sandy Rancheria of Mono Indians of California"; case _180: return "Oneida Tribe of Wisconsin"; case _181: return "Onondaga Nation of New York"; case _182: return "Osage Tribe, Oklahoma"; case _183: return "Ottawa Tribe of Oklahoma"; case _184: return "Otoe-Missouria Tribe of Indians, Oklahoma"; case _185: return "Paiute Indian Tribe of Utah"; case _186: return "Paiute-Shoshone Indians of the Bishop Community of"; case _187: return "Paiute-Shoshone Tribe of the Fallon Reservation an"; case _188: return "Paiute-Shoshone Indians of the Lone Pine Community"; case _189: return "Pala Band of Luiseno Mission Indians of the Pala R"; case _19: return "Big Valley Band of Pomo Indians of the Big Valley"; case _190: return "Pascua Yaqui Tribe of Arizona"; case _191: return "Paskenta Band of Nomlaki Indians of California"; case _192: return "Passamaquoddy Tribe of Maine"; case _193: return "Pauma Band of Luiseno Mission Indians of the Pauma"; case _194: return "Pawnee Nation of Oklahoma"; case _195: return "Pechanga Band of Luiseno Mission Indians of the Pe"; case _196: return "Penobscot Tribe of Maine"; case _197: return "Peoria Tribe of Indians of Oklahoma"; case _198: return "Picayune Rancheria of Chukchansi Indians of Califo"; case _199: return "Pinoleville Rancheria of Pomo Indians of Californi"; case _2: return "Agua Caliente Band of Cahuilla Indians of the Agua"; case _20: return "Blackfeet Tribe of the Blackfeet Indian Reservatio"; case _200: return "Pit River Tribe, California (includes Big Bend, Lo"; case _201: return "Poarch Band of Creek Indians of Alabama"; case _202: return "Pokagon Band of Potawatomi Indians of Michigan"; case _203: return "Ponca Tribe of Indians of Oklahoma"; case _204: return "Ponca Tribe of Nebraska"; case _205: return "Port Gamble Indian Community of the Port Gamble Re"; case _206: return "Potter Valley Rancheria of Pomo Indians of Califor"; case _207: return "Prairie Band of Potawatomi Indians, Kansas"; case _208: return "Prairie Island Indian Community of Minnesota Mdewa"; case _209: return "Pueblo of Acoma, New Mexico"; case _21: return "Blue Lake Rancheria, California"; case _210: return "Pueblo of Cochiti, New Mexico"; case _211: return "Pueblo of Jemez, New Mexico"; case _212: return "Pueblo of Isleta, New Mexico"; case _213: return "Pueblo of Laguna, New Mexico"; case _214: return "Pueblo of Nambe, New Mexico"; case _215: return "Pueblo of Picuris, New Mexico"; case _216: return "Pueblo of Pojoaque, New Mexico"; case _217: return "Pueblo of San Felipe, New Mexico"; case _218: return "Pueblo of San Juan, New Mexico"; case _219: return "Pueblo of San Ildefonso, New Mexico"; case _22: return "Bridgeport Paiute Indian Colony of California"; case _220: return "Pueblo of Sandia, New Mexico"; case _221: return "Pueblo of Santa Ana, New Mexico"; case _222: return "Pueblo of Santa Clara, New Mexico"; case _223: return "Pueblo of Santo Domingo, New Mexico"; case _224: return "Pueblo of Taos, New Mexico"; case _225: return "Pueblo of Tesuque, New Mexico"; case _226: return "Pueblo of Zia, New Mexico"; case _227: return "Puyallup Tribe of the Puyallup Reservation, Washin"; case _228: return "Pyramid Lake Paiute Tribe of the Pyramid Lake Rese"; case _229: return "Quapaw Tribe of Indians, Oklahoma"; case _23: return "Buena Vista Rancheria of Me-Wuk Indians of Califor"; case _230: return "Quartz Valley Indian Community of the Quartz Valle"; case _231: return "Quechan Tribe of the Fort Yuma Indian Reservation,"; case _232: return "Quileute Tribe of the Quileute Reservation, Washin"; case _233: return "Quinault Tribe of the Quinault Reservation, Washin"; case _234: return "Ramona Band or Village of Cahuilla Mission Indians"; case _235: return "Red Cliff Band of Lake Superior Chippewa Indians o"; case _236: return "Red Lake Band of Chippewa Indians of the Red Lake"; case _237: return "Redding Rancheria, California"; case _238: return "Redwood Valley Rancheria of Pomo Indians of Califo"; case _239: return "Reno-Sparks Indian Colony, Nevada"; case _24: return "Burns Paiute Tribe of the Burns Paiute Indian Colo"; case _240: return "Resighini Rancheria, California (formerly known as"; case _241: return "Rincon Band of Luiseno Mission Indians of the Rinc"; case _242: return "Robinson Rancheria of Pomo Indians of California"; case _243: return "Rosebud Sioux Tribe of the Rosebud Indian Reservat"; case _244: return "Round Valley Indian Tribes of the Round Valley Res"; case _245: return "Rumsey Indian Rancheria of Wintun Indians of Calif"; case _246: return "Sac and Fox Tribe of the Mississippi in Iowa"; case _247: return "Sac and Fox Nation of Missouri in Kansas and Nebra"; case _248: return "Sac and Fox Nation, Oklahoma"; case _249: return "Saginaw Chippewa Indian Tribe of Michigan, Isabell"; case _25: return "Cabazon Band of Cahuilla Mission Indians of the Ca"; case _250: return "Salt River Pima-Maricopa Indian Community of the S"; case _251: return "Samish Indian Tribe, Washington"; case _252: return "San Carlos Apache Tribe of the San Carlos Reservat"; case _253: return "San Juan Southern Paiute Tribe of Arizona"; case _254: return "San Manual Band of Serrano Mission Indians of the"; case _255: return "San Pasqual Band of Diegueno Mission Indians of Ca"; case _256: return "Santa Rosa Indian Community of the Santa Rosa Ranc"; case _257: return "Santa Rosa Band of Cahuilla Mission Indians of the"; case _258: return "Santa Ynez Band of Chumash Mission Indians of the"; case _259: return "Santa Ysabel Band of Diegueno Mission Indians of t"; case _26: return "Cachil DeHe Band of Wintun Indians of the Colusa I"; case _260: return "Santee Sioux Tribe of the Santee Reservation of Ne"; case _261: return "Sauk-Suiattle Indian Tribe of Washington"; case _262: return "Sault Ste. Marie Tribe of Chippewa Indians of Mich"; case _263: return "Scotts Valley Band of Pomo Indians of California"; case _264: return "Seminole Nation of Oklahoma"; case _265: return "Seminole Tribe of Florida, Dania, Big Cypress, Bri"; case _266: return "Seneca Nation of New York"; case _267: return "Seneca-Cayuga Tribe of Oklahoma"; case _268: return "Shakopee Mdewakanton Sioux Community of Minnesota"; case _269: return "Shawnee Tribe, Oklahoma"; case _27: return "Caddo Indian Tribe of Oklahoma"; case _270: return "Sherwood Valley Rancheria of Pomo Indians of Calif"; case _271: return "Shingle Springs Band of Miwok Indians, Shingle Spr"; case _272: return "Shoalwater Bay Tribe of the Shoalwater Bay Indian"; case _273: return "Shoshone Tribe of the Wind River Reservation, Wyom"; case _274: return "Shoshone-Bannock Tribes of the Fort Hall Reservati"; case _275: return "Shoshone-Paiute Tribes of the Duck Valley Reservat"; case _276: return "Sisseton-Wahpeton Sioux Tribe of the Lake Traverse"; case _277: return "Skokomish Indian Tribe of the Skokomish Reservatio"; case _278: return "Skull Valley Band of Goshute Indians of Utah"; case _279: return "Smith River Rancheria, California"; case _28: return "Cahuilla Band of Mission Indians of the Cahuilla R"; case _280: return "Snoqualmie Tribe, Washington"; case _281: return "Soboba Band of Luiseno Indians, California (former"; case _282: return "Sokaogon Chippewa Community of the Mole Lake Band"; case _283: return "Southern Ute Indian Tribe of the Southern Ute Rese"; case _284: return "Spirit Lake Tribe, North Dakota (formerly known as"; case _285: return "Spokane Tribe of the Spokane Reservation, Washingt"; case _286: return "Squaxin Island Tribe of the Squaxin Island Reserva"; case _287: return "St. Croix Chippewa Indians of Wisconsin, St. Croix"; case _288: return "St. Regis Band of Mohawk Indians of New York"; case _289: return "Standing Rock Sioux Tribe of North & South Dakota"; case _29: return "Cahto Indian Tribe of the Laytonville Rancheria, C"; case _290: return "Stockbridge-Munsee Community of Mohican Indians of"; case _291: return "Stillaguamish Tribe of Washington"; case _292: return "Summit Lake Paiute Tribe of Nevada"; case _293: return "Suquamish Indian Tribe of the Port Madison Reserva"; case _294: return "Susanville Indian Rancheria, California"; case _295: return "Swinomish Indians of the Swinomish Reservation, Wa"; case _296: return "Sycuan Band of Diegueno Mission Indians of Califor"; case _297: return "Table Bluff Reservation - Wiyot Tribe, California"; case _298: return "Table Mountain Rancheria of California"; case _299: return "Te-Moak Tribe of Western Shoshone Indians of Nevad"; case _3: return "Ak Chin Indian Community of the Maricopa (Ak Chin)"; case _30: return "California Valley Miwok Tribe, California (formerl"; case _300: return "Thlopthlocco Tribal Town, Oklahoma"; case _301: return "Three Affiliated Tribes of the Fort Berthold Reser"; case _302: return "Tohono O'odham Nation of Arizona"; case _303: return "Tonawanda Band of Seneca Indians of New York"; case _304: return "Tonkawa Tribe of Indians of Oklahoma"; case _305: return "Tonto Apache Tribe of Arizona"; case _306: return "Torres-Martinez Band of Cahuilla Mission Indians o"; case _307: return "Tule River Indian Tribe of the Tule River Reservat"; case _308: return "Tulalip Tribes of the Tulalip Reservation, Washing"; case _309: return "Tunica-Biloxi Indian Tribe of Louisiana"; case _31: return "Campo Band of Diegueno Mission Indians of the Camp"; case _310: return "Tuolumne Band of Me-Wuk Indians of the Tuolumne Ra"; case _311: return "Turtle Mountain Band of Chippewa Indians of North"; case _312: return "Tuscarora Nation of New York"; case _313: return "Twenty-Nine Palms Band of Mission Indians of Calif"; case _314: return "United Auburn Indian Community of the Auburn Ranch"; case _315: return "United Keetoowah Band of Cherokee Indians of Oklah"; case _316: return "Upper Lake Band of Pomo Indians of Upper Lake Ranc"; case _317: return "Upper Sioux Indian Community of the Upper Sioux Re"; case _318: return "Upper Skagit Indian Tribe of Washington"; case _319: return "Ute Indian Tribe of the Uintah & Ouray Reservation"; case _32: return "Capitan Grande Band of Diegueno Mission Indians of"; case _320: return "Ute Mountain Tribe of the Ute Mountain Reservation"; case _321: return "Utu Utu Gwaitu Paiute Tribe of the Benton Paiute R"; case _322: return "Walker River Paiute Tribe of the Walker River Rese"; case _323: return "Wampanoag Tribe of Gay Head (Aquinnah) of Massachu"; case _324: return "Washoe Tribe of Nevada & California (Carson Colony"; case _325: return "White Mountain Apache Tribe of the Fort Apache Res"; case _326: return "Wichita and Affiliated Tribes (Wichita, Keechi, Wa"; case _327: return "Winnebago Tribe of Nebraska"; case _328: return "Winnemucca Indian Colony of Nevada"; case _329: return "Wyandotte Tribe of Oklahoma"; case _33: return "Barona Group of Capitan Grande Band of Mission Ind"; case _330: return "Yankton Sioux Tribe of South Dakota"; case _331: return "Yavapai-Apache Nation of the Camp Verde Indian Res"; case _332: return "Yavapai-Prescott Tribe of the Yavapai Reservation,"; case _333: return "Yerington Paiute Tribe of the Yerington Colony & C"; case _334: return "Yomba Shoshone Tribe of the Yomba Reservation, Nev"; case _335: return "Ysleta Del Sur Pueblo of Texas"; case _336: return "Yurok Tribe of the Yurok Reservation, California"; case _337: return "Zuni Tribe of the Zuni Reservation, New Mexico"; case _34: return "Viejas (Baron Long) Group of Capitan Grande Band o"; case _35: return "Catawba Indian Nation (aka Catawba Tribe of South"; case _36: return "Cayuga Nation of New York"; case _37: return "Cedarville Rancheria, California"; case _38: return "Chemehuevi Indian Tribe of the Chemehuevi Reservat"; case _39: return "Cher-Ae Heights Indian Community of the Trinidad R"; case _4: return "Alabama-Coushatta Tribes of Texas"; case _40: return "Cherokee Nation, Oklahoma"; case _41: return "Cheyenne-Arapaho Tribes of Oklahoma"; case _42: return "Cheyenne River Sioux Tribe of the Cheyenne River R"; case _43: return "Chickasaw Nation, Oklahoma"; case _44: return "Chicken Ranch Rancheria of Me-Wuk Indians of Calif"; case _45: return "Chippewa-Cree Indians of the Rocky Boy's Reservati"; case _46: return "Chitimacha Tribe of Louisiana"; case _47: return "Choctaw Nation of Oklahoma"; case _48: return "Citizen Potawatomi Nation, Oklahoma"; case _49: return "Cloverdale Rancheria of Pomo Indians of California"; case _5: return "Alabama-Quassarte Tribal Town, Oklahoma"; case _50: return "Cocopah Tribe of Arizona"; case _51: return "Coeur D'Alene Tribe of the Coeur D'Alene Reservati"; case _52: return "Cold Springs Rancheria of Mono Indians of Californ"; case _53: return "Colorado River Indian Tribes of the Colorado River"; case _54: return "Comanche Indian Tribe, Oklahoma"; case _55: return "Confederated Salish & Kootenai Tribes of the Flath"; case _56: return "Confederated Tribes of the Chehalis Reservation, W"; case _57: return "Confederated Tribes of the Colville Reservation, W"; case _58: return "Confederated Tribes of the Coos, Lower Umpqua and"; case _59: return "Confederated Tribes of the Goshute Reservation, Ne"; case _6: return "Alturas Indian Rancheria, California"; case _60: return "Confederated Tribes of the Grand Ronde Community o"; case _61: return "Confederated Tribes of the Siletz Reservation, Ore"; case _62: return "Confederated Tribes of the Umatilla Reservation, O"; case _63: return "Confederated Tribes of the Warm Springs Reservatio"; case _64: return "Confederated Tribes and Bands of the Yakama Indian"; case _65: return "Coquille Tribe of Oregon"; case _66: return "Cortina Indian Rancheria of Wintun Indians of Cali"; case _67: return "Coushatta Tribe of Louisiana"; case _68: return "Cow Creek Band of Umpqua Indians of Oregon"; case _69: return "Coyote Valley Band of Pomo Indians of California"; case _7: return "Apache Tribe of Oklahoma"; case _70: return "Crow Tribe of Montana"; case _71: return "Crow Creek Sioux Tribe of the Crow Creek Reservati"; case _72: return "Cuyapaipe Community of Diegueno Mission Indians of"; case _73: return "Death Valley Timbi-Sha Shoshone Band of California"; case _74: return "Delaware Nation, Oklahoma (formerly Delaware Tribe"; case _75: return "Delaware Tribe of Indians, Oklahoma"; case _76: return "Dry Creek Rancheria of Pomo Indians of California"; case _77: return "Duckwater Shoshone Tribe of the Duckwater Reservat"; case _78: return "Eastern Band of Cherokee Indians of North Carolina"; case _79: return "Eastern Shawnee Tribe of Oklahoma"; case _8: return "Arapahoe Tribe of the Wind River Reservation, Wyom"; case _80: return "Elem Indian Colony of Pomo Indians of the Sulphur"; case _81: return "Elk Valley Rancheria, California"; case _82: return "Ely Shoshone Tribe of Nevada"; case _83: return "Enterprise Rancheria of Maidu Indians of Californi"; case _84: return "Flandreau Santee Sioux Tribe of South Dakota"; case _85: return "Forest County Potawatomi Community of Wisconsin Po"; case _86: return "Fort Belknap Indian Community of the Fort Belknap"; case _87: return "Fort Bidwell Indian Community of the Fort Bidwell"; case _88: return "Fort Independence Indian Community of Paiute India"; case _89: return "Fort McDermitt Paiute and Shoshone Tribes of the F"; case _9: return "Aroostook Band of Micmac Indians of Maine"; case _90: return "Fort McDowell Yavapai Nation, Arizona (formerly th"; case _91: return "Fort Mojave Indian Tribe of Arizona, California"; case _92: return "Fort Sill Apache Tribe of Oklahoma"; case _93: return "Gila River Indian Community of the Gila River Indi"; case _94: return "Grand Traverse Band of Ottawa & Chippewa Indians o"; case _95: return "Graton Rancheria, California"; case _96: return "Greenville Rancheria of Maidu Indians of Californi"; case _97: return "Grindstone Indian Rancheria of Wintun-Wailaki Indi"; case _98: return "Guidiville Rancheria of California"; case _99: return "Hannahville Indian Community of Wisconsin Potawato"; default: return "?"; } } }
[ "jamesagnew@gmail.com" ]
jamesagnew@gmail.com
4138cd882f405b5167f17823fec7d92970c32a33
8f4a16dc6e3714260f51fb61d0098da01ea3af2c
/src/com/viptrip/hotel/model/Response_RefundQueryByAlipay.java
42122b65a1dd8f0b84e894808d5611f8ff593443
[]
no_license
bournecao24/wetripT
4ce5fc3daf5cf452f1a3d97a91922fc8159b8a79
fadf580a729b170721522c6a7f037073b04c388e
refs/heads/master
2021-09-10T05:24:54.961044
2018-03-21T02:48:01
2018-03-21T02:48:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
644
java
package com.viptrip.hotel.model; import com.viptrip.hotel.model.base.Response_Base; import com.viptrip.hotel.model.pay.RefundQueryByAlipay_Data; public class Response_RefundQueryByAlipay extends Response_Base{ /** * */ private static final long serialVersionUID = 6588883374752089299L; private RefundQueryByAlipay_Data data; public Response_RefundQueryByAlipay() { super(); } public Response_RefundQueryByAlipay(RefundQueryByAlipay_Data data) { this.data = data; } public RefundQueryByAlipay_Data getData() { return data; } public void setData(RefundQueryByAlipay_Data data) { this.data = data; } }
[ "zhenlongla0824@163.com" ]
zhenlongla0824@163.com
a6c86b47444b9c5da697d68271172c9ada6e5c16
2c3dc448c14189582fe9761fa84177b41040f416
/vjudge/src/main/java/judge/remote/language/SGULanguageFinder.java
063659a727d7f1237701536f985b36ad7be28dc9
[]
no_license
zerubbabel/virtual-judge-2
4c41dfb28a52005080625699968da81262de4322
28acab69fa22a1c2e13b37b7c9ac9e392f18ac86
refs/heads/master
2021-01-22T19:03:50.355757
2014-09-20T16:14:21
2014-09-20T16:14:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,202
java
package judge.remote.language; import java.util.LinkedHashMap; import org.springframework.stereotype.Component; import judge.remote.RemoteOj; import judge.remote.language.common.LanguageFinder; import judge.tool.Handler; @Component public class SGULanguageFinder implements LanguageFinder { @Override public RemoteOj getOj() { return RemoteOj.SGU; } @Override public boolean isDiverse() { return false; } @Override public void getLanguages(String remoteProblemId, Handler<LinkedHashMap<String, String>> handler) { // TODO Auto-generated method stub } @Override public LinkedHashMap<String, String> getDefaultLanguages() { LinkedHashMap<String, String> languageList = new LinkedHashMap<String, String>(); languageList.put("GNU C (MinGW, GCC 4)", "GNU C (MinGW, GCC 4)"); languageList.put("GNU CPP (MinGW, GCC 4)", "GNU CPP (MinGW, GCC 4)"); languageList.put("Visual Studio C++ 2010", "Visual Studio C++ 2010"); languageList.put("C#", "C#"); languageList.put("Visual Studio C 2010", "Visual Studio C 2010"); languageList.put("JAVA 7", "JAVA 7"); languageList.put("Delphi 7.0", "Delphi 7.0"); return languageList; } }
[ "xh176233756@de93be47-ede6-e22e-746d-4a4661e0fcec" ]
xh176233756@de93be47-ede6-e22e-746d-4a4661e0fcec
3265fb2ef34b0487eac59650c9773f388ac3cd74
a472035b20f8884189b6912b7b7da00e77ab3078
/src/com/hrr3/controller/LogoutController.java
b48ec2bdd2ebaf364b571afadb27782405b5aba7
[]
no_license
arturosalgado/hrr3
fe26c4f2451c30407ee97733ffe4b07308bcf0a9
5833bcf136e2dec5df4dd171a7b879f26dd2cc71
refs/heads/master
2021-01-10T13:55:33.336912
2016-02-12T00:43:14
2016-02-12T00:43:14
51,557,759
0
0
null
null
null
null
UTF-8
Java
false
false
638
java
package com.hrr3.controller; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.Executions; import org.zkoss.zk.ui.select.SelectorComposer; import org.zkoss.zk.ui.select.annotation.Listen; import com.hrr3.authentication.AuthenticationServiceHRR3Impl; import com.hrr3.services.AuthenticationService; public class LogoutController extends SelectorComposer<Component> { private static final long serialVersionUID = 1L; //services AuthenticationService authService = new AuthenticationServiceHRR3Impl(); @Listen("onClick=#logout") public void doLogout(){ authService.logout(); Executions.sendRedirect("/"); } }
[ "arturodelosangees@hotmail.com" ]
arturodelosangees@hotmail.com
75a631d85542bbcbfbc43c3b28ece66972ab5367
04ac225a1e2b13091dbb2b4c79e366db0b7b0fa4
/PackagingPrinciples/src/main/java/BadPackaging/ProductController.java
86f342f719720d75817860776b802506c924fb94
[]
no_license
Dimix88/Ch4_Assignment
5b62de4c85cce2a0e45ffa5660330b6adec8c475
114fe000fcd865ae467849517b84cc9c0666d8f0
refs/heads/master
2020-04-29T08:55:17.169386
2019-03-16T17:30:55
2019-03-16T17:30:55
176,004,235
0
0
null
null
null
null
UTF-8
Java
false
false
58
java
package BadPackaging; public class ProductController { }
[ "dimitriruzandra1@gmail.com" ]
dimitriruzandra1@gmail.com
5c8e137ecd3a8ab2766f35e00c8d27d55065dc4c
b84ee4f4e3b09254fa7e05786a9de2322d235bd2
/Java/day1204/src/Study/HttpServletExample.java
c02e25e3a712dad3d7fefb71006eda2d6555c8a8
[]
no_license
blackcat0828/study
5f34b8d2263dc015820a6d15d56cf75eb33a76c6
87dbc4896ba284b858d7a6eba68d1c1d98ad1c9c
refs/heads/main
2023-04-21T21:26:52.679544
2021-05-07T11:11:49
2021-05-07T11:11:49
307,874,423
0
0
null
null
null
null
UTF-8
Java
false
false
277
java
package Study; public class HttpServletExample { public static void method(HttpServlet servlet){ servlet.service(); } public static void main(String[] args) { method(new LoginServlet()); method(new FileDownloadServlet()); } }
[ "watb88@gmail.com" ]
watb88@gmail.com
a731638022cb544a468d61cf10c7add2f6706d5c
d0090f4422e7c0b427bd515ccdec4319dc4a6bc3
/src/main/src/org/compass/core/impl/ExistingCompassSession.java
bcd26d78c03a485a1387dc43213dfe7520d5a5eb
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
gpc/compass
4e71e87cbcfe477482bd32fbe03587152a629590
6d9be5db0dfdb7d220e1d124b0d6de7ca796952f
refs/heads/master
2021-01-16T20:36:33.506173
2010-12-28T09:37:35
2011-05-25T05:37:52
1,797,357
1
0
null
null
null
null
UTF-8
Java
false
false
10,209
java
/* * Copyright 2004-2009 the original author or authors. * * 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 org.compass.core.impl; import org.compass.core.CompassAnalyzerHelper; import org.compass.core.CompassException; import org.compass.core.CompassHits; import org.compass.core.CompassQuery; import org.compass.core.CompassQueryBuilder; import org.compass.core.CompassQueryFilterBuilder; import org.compass.core.CompassSession; import org.compass.core.CompassTermFreqsBuilder; import org.compass.core.CompassTransaction; import org.compass.core.Resource; import org.compass.core.ResourceFactory; import org.compass.core.cache.first.FirstLevelCache; import org.compass.core.config.CompassSettings; import org.compass.core.engine.SearchEngine; import org.compass.core.mapping.CompassMapping; import org.compass.core.marshall.MarshallingContext; import org.compass.core.marshall.MarshallingStrategy; import org.compass.core.metadata.CompassMetaData; import org.compass.core.spi.DirtyOperationContext; import org.compass.core.spi.InternalCompass; import org.compass.core.spi.InternalCompassSession; import org.compass.core.spi.InternalSessionDelegateClose; /** * @author kimchy */ public class ExistingCompassSession implements InternalCompassSession { private final InternalCompassSession session; public ExistingCompassSession(InternalCompassSession session) { this.session = session; } public InternalCompassSession getActualSession() { return this.session; } public void rollback() throws CompassException { // do propagate rollback, so we rollback as soon as possible session.rollback(); } public void commit() throws CompassException { // do nothing, works with existsing one } public void close() throws CompassException { // do nothing, works with existing one } // simple delegates public InternalCompass getCompass() { return session.getCompass(); } public SearchEngine getSearchEngine() { return session.getSearchEngine(); } public MarshallingStrategy getMarshallingStrategy() { return session.getMarshallingStrategy(); } public FirstLevelCache getFirstLevelCache() { return session.getFirstLevelCache(); } public Object get(String alias, Object id, MarshallingContext context) throws CompassException { return session.get(alias, id, context); } public Object getByResource(Resource resource) throws CompassException { return session.getByResource(resource); } public Resource getResourceByIdResource(Resource idResource) throws CompassException { return session.getResourceByIdResource(idResource); } public Resource getResourceByIdResourceNoCache(Resource idResource) throws CompassException { return session.getResourceByIdResourceNoCache(idResource); } public CompassMapping getMapping() { return session.getMapping(); } public CompassMetaData getMetaData() { return session.getMetaData(); } public void addDelegateClose(InternalSessionDelegateClose delegateClose) { session.addDelegateClose(delegateClose); } public void startTransactionIfNeeded() { session.startTransactionIfNeeded(); } public void unbindTransaction() { session.unbindTransaction(); } public void create(String alias, Object object, DirtyOperationContext context) throws CompassException { session.create(alias, object, context); } public void create(Object object, DirtyOperationContext context) throws CompassException { session.create(object, context); } public void save(String alias, Object object, DirtyOperationContext context) throws CompassException { session.save(alias, object, context); } public void save(Object object, DirtyOperationContext context) throws CompassException { session.save(object, context); } public void delete(String alias, Object obj, DirtyOperationContext context) throws CompassException { session.delete(alias, obj, context); } public void delete(Class clazz, Object obj, DirtyOperationContext context) throws CompassException { session.delete(clazz, obj, context); } public void delete(Object obj, DirtyOperationContext context) throws CompassException { session.delete(obj, context); } public void setReadOnly() { session.setReadOnly(); } public boolean isReadOnly() { return session.isReadOnly(); } public CompassSession useLocalTransaction() { return session.useLocalTransaction(); } public ResourceFactory resourceFactory() { return session.resourceFactory(); } public CompassSettings getSettings() { return session.getSettings(); } public void flush() throws CompassException { session.flush(); } public void flushCommit(String... aliases) throws CompassException { session.flushCommit(aliases); } public CompassTransaction beginTransaction() throws CompassException { return session.beginTransaction(); } public CompassTransaction beginLocalTransaction() throws CompassException { return session.beginLocalTransaction(); } public CompassQueryBuilder queryBuilder() throws CompassException { return session.queryBuilder(); } public CompassQueryFilterBuilder queryFilterBuilder() throws CompassException { return session.queryFilterBuilder(); } public CompassTermFreqsBuilder termFreqsBuilder(String... names) throws CompassException { return session.termFreqsBuilder(names); } public CompassAnalyzerHelper analyzerHelper() throws CompassException { return session.analyzerHelper(); } public boolean isClosed() { return session.isClosed(); } public void delete(Resource resource) throws CompassException { session.delete(resource); } public Resource getResource(Class clazz, Object id) throws CompassException { return session.getResource(clazz, id); } public Resource getResource(Class clazz, Object... ids) throws CompassException { return session.getResource(clazz, ids); } public Resource getResource(String alias, Object id) throws CompassException { return session.getResource(alias, id); } public Resource getResource(String alias, Object... ids) throws CompassException { return session.getResource(alias, ids); } public Resource loadResource(Class clazz, Object id) throws CompassException { return session.loadResource(clazz, id); } public Resource loadResource(Class clazz, Object... ids) throws CompassException { return session.loadResource(clazz, ids); } public Resource loadResource(String alias, Object id) throws CompassException { return session.loadResource(alias, id); } public Resource loadResource(String alias, Object... ids) throws CompassException { return session.loadResource(alias, ids); } public void delete(Object obj) throws CompassException { session.delete(obj); } public void delete(String alias, Object obj) throws CompassException { session.delete(alias, obj); } public void delete(String alias, Object... ids) throws CompassException { session.delete(alias, ids); } public void delete(Class clazz, Object obj) throws CompassException { session.delete(clazz, obj); } public void delete(Class clazz, Object... ids) throws CompassException { session.delete(clazz, ids); } public <T> T get(Class<T> clazz, Object id) throws CompassException { return session.get(clazz, id); } public <T> T get(Class<T> clazz, Object... ids) throws CompassException { return session.get(clazz, ids); } public Object get(String alias, Object id) throws CompassException { return session.get(alias, id); } public Object get(String alias, Object... ids) throws CompassException { return session.get(alias, ids); } public <T> T load(Class<T> clazz, Object id) throws CompassException { return session.load(clazz, id); } public <T> T load(Class<T> clazz, Object... ids) throws CompassException { return session.load(clazz, ids); } public Object load(String alias, Object id) throws CompassException { return session.load(alias, id); } public Object load(String alias, Object... ids) throws CompassException { return session.load(alias, ids); } public void delete(CompassQuery query) throws CompassException { session.delete(query); } public CompassHits find(String query) throws CompassException { return session.find(query); } public void create(Object obj) throws CompassException { session.create(obj); } public void create(String alias, Object obj) throws CompassException { session.create(alias, obj); } public void save(Object obj) throws CompassException { session.save(obj); } public void save(String alias, Object obj) throws CompassException { session.save(alias, obj); } public void evict(Object obj) { session.evict(obj); } public void evict(String alias, Object id) { session.evict(alias, id); } public void evict(Resource resource) { session.evict(resource); } public void evictAll() { session.evictAll(); } }
[ "kimchy@gmail.com" ]
kimchy@gmail.com