blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 4
410
| content_id
stringlengths 40
40
| detected_licenses
sequencelengths 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
689M
⌀ | 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 131
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 32
values | content
stringlengths 3
9.45M
| authors
sequencelengths 1
1
| author_id
stringlengths 0
313
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a5bf19ed79df3bbb2669bdf6a7b973662e57ff4b | 719c2223ac22ac69f80821272876ce84fb3252d2 | /TDAMapeo/Trie.java | a041720139f458c46be26816324d49c3966e3681 | [] | no_license | fran-gomez/Estructuras-de-Datos | 7ef5001eda96fb3892603d43febb6d36e5295f48 | 6dfff058970ecaa92a8aba9a6aa34909d5e2df90 | refs/heads/master | 2020-03-27T18:12:01.623536 | 2018-08-31T15:17:29 | 2018-08-31T15:17:29 | 146,904,964 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 974 | java | package TDAMapeo;
public class Trie<V> implements Map<String, V> {
@Override
public int size() {
// TODO Auto-generated method stub
return 0;
}
@Override
public boolean isEmpty() {
// TODO Auto-generated method stub
return false;
}
@Override
public V get(String key) throws InvalidKeyException {
// TODO Auto-generated method stub
return null;
}
@Override
public V put(String key, V value) throws InvalidKeyException {
// TODO Auto-generated method stub
return null;
}
@Override
public V remove(String key) throws InvalidKeyException {
// TODO Auto-generated method stub
return null;
}
@Override
public Iterable<String> keys() {
// TODO Auto-generated method stub
return null;
}
@Override
public Iterable<V> values() {
// TODO Auto-generated method stub
return null;
}
@Override
public Iterable<Entry<String, V>> entries() {
// TODO Auto-generated method stub
return null;
}
private class Nodo<V> {
}
}
| [
"[email protected]"
] | |
ecea8bad29f7e6a13c4d7d8c5b4dc711c5412fa5 | 99023a3cfc185624e6203edca6d6f3d54ba11796 | /jfinal/com/jfinal/plugin/activerecord/dialect/.svn/text-base/MysqlDialect.java.svn-base | c813856a8d34c6bf615c42e4ecab0d7cffd2b5b3 | [] | no_license | chocoai/ebspos | e19c886c421a4f3729a174498926b7e87c1784f9 | c09e62ce3e521ede25550e8e277cce1a131558be | refs/heads/master | 2020-04-13T07:44:15.672768 | 2014-01-13T15:30:28 | 2014-01-13T15:30:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,570 | /**
* Copyright (c) 2011-2012, James Zhan 詹波 ([email protected]).
*
* 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.jfinal.plugin.activerecord.dialect;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Map.Entry;
import com.jfinal.plugin.activerecord.Record;
import com.jfinal.plugin.activerecord.TableInfo;
/**
* MysqlDialect.
*/
public class MysqlDialect extends Dialect {
public String forTableInfoBuilderDoBuildTableInfo(String tableName) {
return "select * from `" + tableName + "` where 1 = 2";
}
public void forModelSave(TableInfo tableInfo, Map<String, Object> attrs, StringBuilder sql, List<Object> paras) {
sql.append("insert into `").append(tableInfo.getTableName()).append("`(");
StringBuilder temp = new StringBuilder(") values(");
for (Entry<String, Object> e: attrs.entrySet()) {
String colName = e.getKey();
if (tableInfo.hasColumnLabel(colName)) {
if (paras.size() > 0) {
sql.append(", ");
temp.append(", ");
}
sql.append("`").append(colName).append("`");
temp.append("?");
paras.add(e.getValue());
}
}
sql.append(temp.toString()).append(")");
}
public String forModelDeleteById(TableInfo tInfo) {
String primaryKey = tInfo.getPrimaryKey();
StringBuilder sql = new StringBuilder(45);
sql.append("delete from `");
sql.append(tInfo.getTableName());
sql.append("` where `").append(primaryKey).append("` = ?");
return sql.toString();
}
public void forModelUpdate(TableInfo tableInfo, Map<String, Object> attrs, Set<String> modifyFlag, String primaryKey, Object id, StringBuilder sql, List<Object> paras) {
sql.append("update `").append(tableInfo.getTableName()).append("` set ");
for (Entry<String, Object> e : attrs.entrySet()) {
String colName = e.getKey();
if (!primaryKey.equalsIgnoreCase(colName) && modifyFlag.contains(colName) && tableInfo.hasColumnLabel(colName)) {
if (paras.size() > 0)
sql.append(", ");
sql.append("`").append(colName).append("` = ? ");
paras.add(e.getValue());
}
}
sql.append(" where `").append(primaryKey).append("` = ?"); // .append(" limit 1");
paras.add(id);
}
public String forModelFindById(TableInfo tInfo, String columns) {
StringBuilder sql = new StringBuilder("select ");
if (columns.trim().equals("*")) {
sql.append(columns);
}
else {
String[] columnsArray = columns.split(",");
for (int i=0; i<columnsArray.length; i++) {
if (i > 0)
sql.append(", ");
sql.append("`");
sql.append(columnsArray[i].trim());
sql.append("`");
}
}
sql.append(" from `");
sql.append(tInfo.getTableName());
sql.append("` where `").append(tInfo.getPrimaryKey()).append("` = ?");
return sql.toString();
}
public String forDbFindById(String tableName, String primaryKey, String columns) {
StringBuilder sql = new StringBuilder("select ");
if (columns.trim().equals("*")) {
sql.append(columns);
}
else {
String[] columnsArray = columns.split(",");
for (int i=0; i<columnsArray.length; i++) {
if (i > 0)
sql.append(", ");
sql.append("`").append(columnsArray[i].trim()).append("`");
}
}
sql.append(" from `");
sql.append(tableName.trim());
sql.append("` where `").append(primaryKey).append("` = ?");
return sql.toString();
}
public String forDbDeleteById(String tableName, String primaryKey) {
StringBuilder sql = new StringBuilder("delete from `");
sql.append(tableName.trim());
sql.append("` where `").append(primaryKey).append("` = ?");
return sql.toString();
}
public void forDbSave(StringBuilder sql, List<Object> paras, String tableName, Record record) {
sql.append("insert into `");
sql.append(tableName.trim()).append("`(");
StringBuilder temp = new StringBuilder();
temp.append(") values(");
for (Entry<String, Object> e: record.getColumns().entrySet()) {
if (paras.size() > 0) {
sql.append(", ");
temp.append(", ");
}
sql.append("`").append(e.getKey()).append("`");
temp.append("?");
paras.add(e.getValue());
}
sql.append(temp.toString()).append(")");
}
public void forDbUpdate(String tableName, String primaryKey, Object id, Record record, StringBuilder sql, List<Object> paras) {
sql.append("update `").append(tableName.trim()).append("` set ");
for (Entry<String, Object> e: record.getColumns().entrySet()) {
String colName = e.getKey();
if (!primaryKey.equalsIgnoreCase(colName)) {
if (paras.size() > 0) {
sql.append(", ");
}
sql.append("`").append(colName).append("` = ? ");
paras.add(e.getValue());
}
}
sql.append(" where `").append(primaryKey).append("` = ?"); // .append(" limit 1");
paras.add(id);
}
public void forPaginate(StringBuilder sql, int pageNumber, int pageSize, String select, String sqlExceptSelect) {
int offset = pageSize * (pageNumber - 1);
sql.append(select).append(" ");
sql.append(sqlExceptSelect);
sql.append(" limit ").append(offset).append(", ").append(pageSize); // limit can use one or two '?' to pass paras
}
}
| [
"[email protected]"
] | ||
c18daebe46a1ba28d244006e6b1bc398108cc8e0 | a3691522b85603a82ed4302787556d5eefcee12f | /src/main/java/de/hshn/se/aop/logging/LoggingAspect.java | 40353873507887fc6b14f34e124f316b47601b87 | [] | no_license | florensh/isa | 1f008f0116bb71df1587ae9fb3ac438922d73a80 | c142af8c812ed92a223d109188c36b634669dfa5 | refs/heads/master | 2021-01-12T09:31:23.166202 | 2017-05-10T13:56:01 | 2017-05-10T13:56:01 | 76,181,136 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,955 | java | package de.hshn.se.aop.logging;
import de.hshn.se.config.Constants;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.env.Environment;
import javax.inject.Inject;
import java.util.Arrays;
/**
* Aspect for logging execution of service and repository Spring components.
*
* By default, it only runs with the "dev" profile.
*/
@Aspect
public class LoggingAspect {
private final Logger log = LoggerFactory.getLogger(this.getClass());
@Inject
private Environment env;
/**
* Pointcut that matches all repositories, services and Web REST endpoints.
*/
@Pointcut("within(de.hshn.se.repository..*) || within(de.hshn.se.service..*) || within(de.hshn.se.web.rest..*)")
public void loggingPointcut() {
// Method is empty as this is just a Poincut, the implementations are in the advices.
}
/**
* Advice that logs methods throwing exceptions.
*/
@AfterThrowing(pointcut = "loggingPointcut()", throwing = "e")
public void logAfterThrowing(JoinPoint joinPoint, Throwable e) {
if (env.acceptsProfiles(Constants.SPRING_PROFILE_DEVELOPMENT)) {
log.error("Exception in {}.{}() with cause = \'{}\' and exception = \'{}\'", joinPoint.getSignature().getDeclaringTypeName(),
joinPoint.getSignature().getName(), e.getCause() != null? e.getCause() : "NULL", e.getMessage(), e);
} else {
log.error("Exception in {}.{}() with cause = {}", joinPoint.getSignature().getDeclaringTypeName(),
joinPoint.getSignature().getName(), e.getCause() != null? e.getCause() : "NULL");
}
}
/**
* Advice that logs when a method is entered and exited.
*/
@Around("loggingPointcut()")
public Object logAround(ProceedingJoinPoint joinPoint) throws Throwable {
if (log.isDebugEnabled()) {
log.debug("Enter: {}.{}() with argument[s] = {}", joinPoint.getSignature().getDeclaringTypeName(),
joinPoint.getSignature().getName(), Arrays.toString(joinPoint.getArgs()));
}
try {
Object result = joinPoint.proceed();
if (log.isDebugEnabled()) {
log.debug("Exit: {}.{}() with result = {}", joinPoint.getSignature().getDeclaringTypeName(),
joinPoint.getSignature().getName(), result);
}
return result;
} catch (IllegalArgumentException e) {
log.error("Illegal argument: {} in {}.{}()", Arrays.toString(joinPoint.getArgs()),
joinPoint.getSignature().getDeclaringTypeName(), joinPoint.getSignature().getName());
throw e;
}
}
}
| [
"[email protected]"
] | |
f580ac879afcefbae68d63014f6cd479ce153a0e | d10042b0c0a2ec31ee21d88a28e551fd056189fb | /MyBigNumber.java | e42ceba9c083b53b12cef536dc8d3bc1117a1482 | [] | no_license | nguyenhuunhan23/add2numbers | 1e513ab89bde6f0cb940c176c36fb4f083b9b558 | 966ec4216505a4d5d1ce1dbc50a7af1bc6fdc38c | refs/heads/master | 2020-04-09T04:09:47.102913 | 2018-12-02T04:20:43 | 2018-12-02T04:20:43 | 160,012,474 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,747 | 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 calculator;
import static java.awt.SystemColor.text;
import java.util.regex.Pattern;
/**
*
* @author Administrator
*/
/**
* Tác giả: Nguyễn Châu Thảo Quân.
* DesCription.
* Class MyBigNumber là lớp để Cộng 2 số lớn bằng 2 chuỗi.
* Hàm sum trong Class MyBigNumber là hàm để thực hiện phép cộng 2 chuỗi số
*/
public class MyBigNumber {
/**
* Để thực hiện phép cộng, ta cần 2 chuỗi làm tham số cho hàm sum trong đó:
* 2 chuỗi này đều chỉ chứa các kí số từ '0' đến '9'.
* <br/>
* @param s1 chuỗi số thứ nhất.
* @param s2 chuỗi số thứ hai.
* @return chuỗi có giá trị là tổng của hai số s1 và s2.
*/
public static String sum(final String s1, final String s2) {
if (Pattern.matches("[a-zA-Z]+", s1) == true || Pattern.matches("[a-zA-Z]+", s2) == true) {
return "Cac so khong duoc chua chu";
}
if (s1.length() == 0 || s2.length() == 0){
return "Co 1 o bi trong. Vui long kiem tra lai";
}
// Buoc 1: lay do dai 2 chuoi
// Phan khai bao
String result = "";
int length1 = s1.length();// do dai chuoi thu 1
int length2 = s2.length();// do dai chuoi thu 2
int max = (length1 > length2) ? length1 : length2;// lay do dau lon nhat giua a va b
int nho = 0;// Khởi tạo số nhớ = 0 để khi cộng sẽ có vài trường hợp lớn hơn 9
int pos1 = 0;// Vị trí chuỗi s1
int pos2 = 0;// Vị trí chuỗi s2
char c1;// kí tự c1 dùng để lấy kí tự cuối cùng của chuỗi s1
char c2;// kí tự c2 dùng để lấy kí tự cuối cùng của chuỗi s2
int tong = 0;// Khởi tạo biến tổng = 0 để cộng 2 kí tự cuối cùng lại với nhau
String direction = "";
// Lặp từ 0 đến max lần
for (int i = 0; i < max; i++) {
pos1 = length1 - i - 1;// cập nhật lại vị trí chuỗi s1
pos2 = length2 - i - 1;// cập nhật lại vị trí chuỗi s2
direction += "Bước " + (i + 1) + ":\n";
// Xét vị trí của 2 chuỗi xem có >= 0 hay không
if (pos1 >= 0) {
c1 = s1.charAt(length1 - i - 1);// Lấy kí tự ở vị trí cuối cùng của chuỗi
} else {
c1 = '0';
}
if (pos2 >= 0) {
c2 = s2.charAt(length2 - i - 1);// Lấy kí tự ở vị trí cuối cùng của chuỗi
} else {
c2 = '0';
}
tong = (c1 - '0') + (c2 - '0') + nho;// chuyển kí tự thành số xong cộng cho số nhớ
direction += c1 + " + " + c2 + " = " + (tong-nho) + " + " + nho + " = " + tong + " . Viết " + tong%10;
result = (tong % 10) + result;// Lấy kết quả tổng ở trên chia lấy dư cho 10 và ghép vào chuỗi kết quả
nho = tong / 10;// Cập nhật lại số nhớ
direction += " nhớ " + nho + ".\n";
}
if (nho >= 1) {
result = 1 + result;// Nếu số nhớ còn dư thì ghép vào chuỗi kết quả
}
return direction + "\nKết quả: " + result;// Trả về kết quả thu được
}
}
| [
"[email protected]"
] | |
708ef89ca901e3d8ec148d6714d4584e30b04fac | f1a0721f7aaeee34f1e4720c74e8fc4a0b21bed6 | /src/edu/cpp/cs4450/SimplexNoise_octave.java | 868b0ca9697a7ed3b1f29e7f397460896c01e964 | [] | no_license | pooya134/CS4450_FinalProject | cb2df20b177a86aef45058309fe0f3ace200d72d | 4320692662c9c62b1e231b4bb991fe048a9c6e0a | refs/heads/master | 2020-05-16T01:52:54.045769 | 2019-04-22T03:01:06 | 2019-04-22T03:01:06 | 182,613,193 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 15,737 | java | package edu.cpp.cs4450;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Random;
import javax.imageio.ImageIO;
public class SimplexNoise_octave {
public static int RANDOMSEED=0;
private static int NUMBEROFSWAPS=400;
private static Grad grad3[] = {new Grad(1,1,0),new Grad(-1,1,0),new Grad(1,-1,0),new Grad(-1,-1,0),
new Grad(1,0,1),new Grad(-1,0,1),new Grad(1,0,-1),new Grad(-1,0,-1),
new Grad(0,1,1),new Grad(0,-1,1),new Grad(0,1,-1),new Grad(0,-1,-1)};
private static Grad grad4[]= {new Grad(0,1,1,1),new Grad(0,1,1,-1),new Grad(0,1,-1,1),new Grad(0,1,-1,-1),
new Grad(0,-1,1,1),new Grad(0,-1,1,-1),new Grad(0,-1,-1,1),new Grad(0,-1,-1,-1),
new Grad(1,0,1,1),new Grad(1,0,1,-1),new Grad(1,0,-1,1),new Grad(1,0,-1,-1),
new Grad(-1,0,1,1),new Grad(-1,0,1,-1),new Grad(-1,0,-1,1),new Grad(-1,0,-1,-1),
new Grad(1,1,0,1),new Grad(1,1,0,-1),new Grad(1,-1,0,1),new Grad(1,-1,0,-1),
new Grad(-1,1,0,1),new Grad(-1,1,0,-1),new Grad(-1,-1,0,1),new Grad(-1,-1,0,-1),
new Grad(1,1,1,0),new Grad(1,1,-1,0),new Grad(1,-1,1,0),new Grad(1,-1,-1,0),
new Grad(-1,1,1,0),new Grad(-1,1,-1,0),new Grad(-1,-1,1,0),new Grad(-1,-1,-1,0)};
private static short p_supply[] = {151,160,137,91,90,15, //this contains all the numbers between 0 and 255, these are put in a random order depending upon the seed
131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,
190, 6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,
88,237,149,56,87,174,20,125,136,171,168, 68,175,74,165,71,134,139,48,27,166,
77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,
102,143,54, 65,25,63,161, 1,216,80,73,209,76,132,187,208, 89,18,169,200,196,
135,130,116,188,159,86,164,100,109,198,173,186, 3,64,52,217,226,250,124,123,
5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,
223,183,170,213,119,248,152, 2,44,154,163, 70,221,153,101,155,167, 43,172,9,
129,22,39,253, 19,98,108,110,79,113,224,232,178,185, 112,104,218,246,97,228,
251,34,242,193,238,210,144,12,191,179,162,241, 81,51,145,235,249,14,239,107,
49,192,214, 31,181,199,106,157,184, 84,204,176,115,121,50,45,127, 4,150,254,
138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180};
private short p[]=new short[p_supply.length];
// To remove the need for index wrapping, double the permutation table length
private short perm[] = new short[512];
private short permMod12[] = new short[512];
public SimplexNoise_octave(int seed) {
p=p_supply.clone();
if (seed==RANDOMSEED){
Random rand=new Random();
seed=rand.nextInt();
}
//the random for the swaps
Random rand=new Random(seed);
//the seed determines the swaps that occur between the default order and the order we're actually going to use
for(int i=0;i<NUMBEROFSWAPS;i++){
int swapFrom=rand.nextInt(p.length);
int swapTo=rand.nextInt(p.length);
short temp=p[swapFrom];
p[swapFrom]=p[swapTo];
p[swapTo]=temp;
}
for(int i=0; i<512; i++)
{
perm[i]=p[i & 255];
permMod12[i] = (short)(perm[i] % 12);
}
}
// Skewing and unskewing factors for 2, 3, and 4 dimensions
private static final double F2 = 0.5*(Math.sqrt(3.0)-1.0);
private static final double G2 = (3.0-Math.sqrt(3.0))/6.0;
private static final double F3 = 1.0/3.0;
private static final double G3 = 1.0/6.0;
private static final double F4 = (Math.sqrt(5.0)-1.0)/4.0;
private static final double G4 = (5.0-Math.sqrt(5.0))/20.0;
// This method is a *lot* faster than using (int)Math.floor(x)
private static int fastfloor(double x) {
int xi = (int)x;
return x<xi ? xi-1 : xi;
}
private static double dot(Grad g, double x, double y) {
return g.x*x + g.y*y; }
private static double dot(Grad g, double x, double y, double z) {
return g.x*x + g.y*y + g.z*z; }
private static double dot(Grad g, double x, double y, double z, double w) {
return g.x*x + g.y*y + g.z*z + g.w*w; }
// 2D simplex noise
public double noise(double xin, double yin) {
double n0, n1, n2; // Noise contributions from the three corners
// Skew the input space to determine which simplex cell we're in
double s = (xin+yin)*F2; // Hairy factor for 2D
int i = fastfloor(xin+s);
int j = fastfloor(yin+s);
double t = (i+j)*G2;
double X0 = i-t; // Unskew the cell origin back to (x,y) space
double Y0 = j-t;
double x0 = xin-X0; // The x,y distances from the cell origin
double y0 = yin-Y0;
// For the 2D case, the simplex shape is an equilateral triangle.
// Determine which simplex we are in.
int i1, j1; // Offsets for second (middle) corner of simplex in (i,j) coords
if(x0>y0) {i1=1; j1=0;} // lower triangle, XY order: (0,0)->(1,0)->(1,1)
else {i1=0; j1=1;} // upper triangle, YX order: (0,0)->(0,1)->(1,1)
// A step of (1,0) in (i,j) means a step of (1-c,-c) in (x,y), and
// a step of (0,1) in (i,j) means a step of (-c,1-c) in (x,y), where
// c = (3-sqrt(3))/6
double x1 = x0 - i1 + G2; // Offsets for middle corner in (x,y) unskewed coords
double y1 = y0 - j1 + G2;
double x2 = x0 - 1.0 + 2.0 * G2; // Offsets for last corner in (x,y) unskewed coords
double y2 = y0 - 1.0 + 2.0 * G2;
// Work out the hashed gradient indices of the three simplex corners
int ii = i & 255;
int jj = j & 255;
int gi0 = permMod12[ii+perm[jj]];
int gi1 = permMod12[ii+i1+perm[jj+j1]];
int gi2 = permMod12[ii+1+perm[jj+1]];
// Calculate the contribution from the three corners
double t0 = 0.5 - x0*x0-y0*y0;
if(t0<0) n0 = 0.0;
else {
t0 *= t0;
n0 = t0 * t0 * dot(grad3[gi0], x0, y0); // (x,y) of grad3 used for 2D gradient
}
double t1 = 0.5 - x1*x1-y1*y1;
if(t1<0) n1 = 0.0;
else {
t1 *= t1;
n1 = t1 * t1 * dot(grad3[gi1], x1, y1);
}
double t2 = 0.5 - x2*x2-y2*y2;
if(t2<0) n2 = 0.0;
else {
t2 *= t2;
n2 = t2 * t2 * dot(grad3[gi2], x2, y2);
}
// Add contributions from each corner to get the final noise value.
// The result is scaled to return values in the interval [-1,1].
return 70.0 * (n0 + n1 + n2);
}
// 3D simplex noise
public double noise(double xin, double yin, double zin) {
double n0, n1, n2, n3; // Noise contributions from the four corners
// Skew the input space to determine which simplex cell we're in
double s = (xin+yin+zin)*F3; // Very nice and simple skew factor for 3D
int i = fastfloor(xin+s);
int j = fastfloor(yin+s);
int k = fastfloor(zin+s);
double t = (i+j+k)*G3;
double X0 = i-t; // Unskew the cell origin back to (x,y,z) space
double Y0 = j-t;
double Z0 = k-t;
double x0 = xin-X0; // The x,y,z distances from the cell origin
double y0 = yin-Y0;
double z0 = zin-Z0;
// For the 3D case, the simplex shape is a slightly irregular tetrahedron.
// Determine which simplex we are in.
int i1, j1, k1; // Offsets for second corner of simplex in (i,j,k) coords
int i2, j2, k2; // Offsets for third corner of simplex in (i,j,k) coords
if(x0>=y0) {
if(y0>=z0)
{ i1=1; j1=0; k1=0; i2=1; j2=1; k2=0; } // X Y Z order
else if(x0>=z0) { i1=1; j1=0; k1=0; i2=1; j2=0; k2=1; } // X Z Y order
else { i1=0; j1=0; k1=1; i2=1; j2=0; k2=1; } // Z X Y order
}
else { // x0<y0
if(y0<z0) { i1=0; j1=0; k1=1; i2=0; j2=1; k2=1; } // Z Y X order
else if(x0<z0) { i1=0; j1=1; k1=0; i2=0; j2=1; k2=1; } // Y Z X order
else { i1=0; j1=1; k1=0; i2=1; j2=1; k2=0; } // Y X Z order
}
// A step of (1,0,0) in (i,j,k) means a step of (1-c,-c,-c) in (x,y,z),
// a step of (0,1,0) in (i,j,k) means a step of (-c,1-c,-c) in (x,y,z), and
// a step of (0,0,1) in (i,j,k) means a step of (-c,-c,1-c) in (x,y,z), where
// c = 1/6.
double x1 = x0 - i1 + G3; // Offsets for second corner in (x,y,z) coords
double y1 = y0 - j1 + G3;
double z1 = z0 - k1 + G3;
double x2 = x0 - i2 + 2.0*G3; // Offsets for third corner in (x,y,z) coords
double y2 = y0 - j2 + 2.0*G3;
double z2 = z0 - k2 + 2.0*G3;
double x3 = x0 - 1.0 + 3.0*G3; // Offsets for last corner in (x,y,z) coords
double y3 = y0 - 1.0 + 3.0*G3;
double z3 = z0 - 1.0 + 3.0*G3;
// Work out the hashed gradient indices of the four simplex corners
int ii = i & 255;
int jj = j & 255;
int kk = k & 255;
int gi0 = permMod12[ii+perm[jj+perm[kk]]];
int gi1 = permMod12[ii+i1+perm[jj+j1+perm[kk+k1]]];
int gi2 = permMod12[ii+i2+perm[jj+j2+perm[kk+k2]]];
int gi3 = permMod12[ii+1+perm[jj+1+perm[kk+1]]];
// Calculate the contribution from the four corners
double t0 = 0.6 - x0*x0 - y0*y0 - z0*z0;
if(t0<0) n0 = 0.0;
else {
t0 *= t0;
n0 = t0 * t0 * dot(grad3[gi0], x0, y0, z0);
}
double t1 = 0.6 - x1*x1 - y1*y1 - z1*z1;
if(t1<0) n1 = 0.0;
else {
t1 *= t1;
n1 = t1 * t1 * dot(grad3[gi1], x1, y1, z1);
}
double t2 = 0.6 - x2*x2 - y2*y2 - z2*z2;
if(t2<0) n2 = 0.0;
else {
t2 *= t2;
n2 = t2 * t2 * dot(grad3[gi2], x2, y2, z2);
}
double t3 = 0.6 - x3*x3 - y3*y3 - z3*z3;
if(t3<0) n3 = 0.0;
else {
t3 *= t3;
n3 = t3 * t3 * dot(grad3[gi3], x3, y3, z3);
}
// Add contributions from each corner to get the final noise value.
// The result is scaled to stay just inside [-1,1]
return 32.0*(n0 + n1 + n2 + n3);
}
// 4D simplex noise, better simplex rank ordering method 2012-03-09
public double noise(double x, double y, double z, double w) {
double n0, n1, n2, n3, n4; // Noise contributions from the five corners
// Skew the (x,y,z,w) space to determine which cell of 24 simplices we're in
double s = (x + y + z + w) * F4; // Factor for 4D skewing
int i = fastfloor(x + s);
int j = fastfloor(y + s);
int k = fastfloor(z + s);
int l = fastfloor(w + s);
double t = (i + j + k + l) * G4; // Factor for 4D unskewing
double X0 = i - t; // Unskew the cell origin back to (x,y,z,w) space
double Y0 = j - t;
double Z0 = k - t;
double W0 = l - t;
double x0 = x - X0; // The x,y,z,w distances from the cell origin
double y0 = y - Y0;
double z0 = z - Z0;
double w0 = w - W0;
// For the 4D case, the simplex is a 4D shape I won't even try to describe.
// To find out which of the 24 possible simplices we're in, we need to
// determine the magnitude ordering of x0, y0, z0 and w0.
// Six pair-wise comparisons are performed between each possible pair
// of the four coordinates, and the results are used to rank the numbers.
int rankx = 0;
int ranky = 0;
int rankz = 0;
int rankw = 0;
if(x0 > y0) rankx++; else ranky++;
if(x0 > z0) rankx++; else rankz++;
if(x0 > w0) rankx++; else rankw++;
if(y0 > z0) ranky++; else rankz++;
if(y0 > w0) ranky++; else rankw++;
if(z0 > w0) rankz++; else rankw++;
int i1, j1, k1, l1; // The integer offsets for the second simplex corner
int i2, j2, k2, l2; // The integer offsets for the third simplex corner
int i3, j3, k3, l3; // The integer offsets for the fourth simplex corner
// simplex[c] is a 4-vector with the numbers 0, 1, 2 and 3 in some order.
// Many values of c will never occur, since e.g. x>y>z>w makes x<z, y<w and x<w
// impossible. Only the 24 indices which have non-zero entries make any sense.
// We use a thresholding to set the coordinates in turn from the largest magnitude.
// Rank 3 denotes the largest coordinate.
i1 = rankx >= 3 ? 1 : 0;
j1 = ranky >= 3 ? 1 : 0;
k1 = rankz >= 3 ? 1 : 0;
l1 = rankw >= 3 ? 1 : 0;
// Rank 2 denotes the second largest coordinate.
i2 = rankx >= 2 ? 1 : 0;
j2 = ranky >= 2 ? 1 : 0;
k2 = rankz >= 2 ? 1 : 0;
l2 = rankw >= 2 ? 1 : 0;
// Rank 1 denotes the second smallest coordinate.
i3 = rankx >= 1 ? 1 : 0;
j3 = ranky >= 1 ? 1 : 0;
k3 = rankz >= 1 ? 1 : 0;
l3 = rankw >= 1 ? 1 : 0;
// The fifth corner has all coordinate offsets = 1, so no need to compute that.
double x1 = x0 - i1 + G4; // Offsets for second corner in (x,y,z,w) coords
double y1 = y0 - j1 + G4;
double z1 = z0 - k1 + G4;
double w1 = w0 - l1 + G4;
double x2 = x0 - i2 + 2.0*G4; // Offsets for third corner in (x,y,z,w) coords
double y2 = y0 - j2 + 2.0*G4;
double z2 = z0 - k2 + 2.0*G4;
double w2 = w0 - l2 + 2.0*G4;
double x3 = x0 - i3 + 3.0*G4; // Offsets for fourth corner in (x,y,z,w) coords
double y3 = y0 - j3 + 3.0*G4;
double z3 = z0 - k3 + 3.0*G4;
double w3 = w0 - l3 + 3.0*G4;
double x4 = x0 - 1.0 + 4.0*G4; // Offsets for last corner in (x,y,z,w) coords
double y4 = y0 - 1.0 + 4.0*G4;
double z4 = z0 - 1.0 + 4.0*G4;
double w4 = w0 - 1.0 + 4.0*G4;
// Work out the hashed gradient indices of the five simplex corners
int ii = i & 255;
int jj = j & 255;
int kk = k & 255;
int ll = l & 255;
int gi0 = perm[ii+perm[jj+perm[kk+perm[ll]]]] % 32;
int gi1 = perm[ii+i1+perm[jj+j1+perm[kk+k1+perm[ll+l1]]]] % 32;
int gi2 = perm[ii+i2+perm[jj+j2+perm[kk+k2+perm[ll+l2]]]] % 32;
int gi3 = perm[ii+i3+perm[jj+j3+perm[kk+k3+perm[ll+l3]]]] % 32;
int gi4 = perm[ii+1+perm[jj+1+perm[kk+1+perm[ll+1]]]] % 32;
// Calculate the contribution from the five corners
double t0 = 0.6 - x0*x0 - y0*y0 - z0*z0 - w0*w0;
if(t0<0) n0 = 0.0;
else {
t0 *= t0;
n0 = t0 * t0 * dot(grad4[gi0], x0, y0, z0, w0);
}
double t1 = 0.6 - x1*x1 - y1*y1 - z1*z1 - w1*w1;
if(t1<0) n1 = 0.0;
else {
t1 *= t1;
n1 = t1 * t1 * dot(grad4[gi1], x1, y1, z1, w1);
}
double t2 = 0.6 - x2*x2 - y2*y2 - z2*z2 - w2*w2;
if(t2<0) n2 = 0.0;
else {
t2 *= t2;
n2 = t2 * t2 * dot(grad4[gi2], x2, y2, z2, w2);
}
double t3 = 0.6 - x3*x3 - y3*y3 - z3*z3 - w3*w3;
if(t3<0) n3 = 0.0;
else {
t3 *= t3;
n3 = t3 * t3 * dot(grad4[gi3], x3, y3, z3, w3);
}
double t4 = 0.6 - x4*x4 - y4*y4 - z4*z4 - w4*w4;
if(t4<0) n4 = 0.0;
else {
t4 *= t4;
n4 = t4 * t4 * dot(grad4[gi4], x4, y4, z4, w4);
}
// Sum up and scale the result to cover the range [-1,1]
return 27.0 * (n0 + n1 + n2 + n3 + n4);
}
// Inner class to speed upp gradient computations
// (array access is a lot slower than member access)
private static class Grad
{
double x, y, z, w;
Grad(double x, double y, double z)
{
this.x = x;
this.y = y;
this.z = z;
}
Grad(double x, double y, double z, double w)
{
this.x = x;
this.y = y;
this.z = z;
this.w = w;
}
}
}
| [
"[email protected]"
] | |
d139787ff4342187c2b5c6b6ba39cd9e832d3d25 | a6cc2f07d50d675257d38c7a4125ea8c08cf6688 | /src/main/java/com/feiyangedu/petstore/util/MapUtil.java | 6f098fb32e2e81cc9edd1fecf3b510396400630f | [
"Apache-2.0"
] | permissive | akingde/petstore | e0756e661f596034d0e40c434fed19aeb86a39a6 | eaf5b2bb09295e8bb88d1ab88d8e714cab9d3181 | refs/heads/master | 2021-06-01T04:24:36.595176 | 2016-07-17T13:04:30 | 2016-07-17T13:04:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,589 | java | package com.feiyangedu.petstore.util;
import java.util.HashMap;
import java.util.Map;
public class MapUtil {
public static <K, V> Map<K, V> of() {
return new HashMap<K, V>();
}
public static <K, V> Map<K, V> of(K key1, V value1) {
Map<K, V> map = new HashMap<K, V>();
map.put(key1, value1);
return map;
}
public static <K, V> Map<K, V> of(K key1, V value1, K key2, V value2) {
Map<K, V> map = new HashMap<K, V>();
map.put(key1, value1);
map.put(key2, value2);
return map;
}
public static <K, V> Map<K, V> of(K key1, V value1, K key2, V value2, K key3, V value3) {
Map<K, V> map = new HashMap<K, V>();
map.put(key1, value1);
map.put(key2, value2);
map.put(key3, value3);
return map;
}
public static <K, V> Map<K, V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4) {
Map<K, V> map = new HashMap<K, V>();
map.put(key1, value1);
map.put(key2, value2);
map.put(key3, value3);
map.put(key4, value4);
return map;
}
public static <K, V> Map<K, V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4,
K key5, V value5) {
Map<K, V> map = new HashMap<K, V>();
map.put(key1, value1);
map.put(key2, value2);
map.put(key3, value3);
map.put(key4, value4);
map.put(key5, value5);
return map;
}
public static <K, V> Map<K, V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4,
K key5, V value5, K key6, V value6) {
Map<K, V> map = new HashMap<K, V>();
map.put(key1, value1);
map.put(key2, value2);
map.put(key3, value3);
map.put(key4, value4);
map.put(key5, value5);
map.put(key6, value6);
return map;
}
public static <K, V> Map<K, V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4,
K key5, V value5, K key6, V value6, K key7, V value7) {
Map<K, V> map = new HashMap<K, V>();
map.put(key1, value1);
map.put(key2, value2);
map.put(key3, value3);
map.put(key4, value4);
map.put(key5, value5);
map.put(key6, value6);
map.put(key7, value7);
return map;
}
public static <K, V> Map<K, V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4,
K key5, V value5, K key6, V value6, K key7, V value7, K key8, V value8) {
Map<K, V> map = new HashMap<K, V>();
map.put(key1, value1);
map.put(key2, value2);
map.put(key3, value3);
map.put(key4, value4);
map.put(key5, value5);
map.put(key6, value6);
map.put(key7, value7);
map.put(key8, value8);
return map;
}
}
| [
"[email protected]"
] | |
90f7ced14a1402fd0634cf713e48ed8878902a90 | 454090688f45329f6d4c0fdf34bfef023dd8c185 | /src/ClassRoom/model/Person.java | 6c79f4079ab846f6c79074c2df6f11e8749ceabf | [] | no_license | Evgeniy46/JavaLern | 24e2cc2739bf260b200d709cbe9541339390d3cc | b90fb813f6185564932c74a61657ffe625c761b9 | refs/heads/master | 2020-04-01T21:22:35.891890 | 2016-09-20T13:49:19 | 2016-09-20T13:49:19 | 68,714,948 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 607 | java | package ClassRoom.model;
/**
* Created by Евгений on 20.09.2016.
*/
public abstract class Person extends NamedEntity{
private String gender;
private int age;
public Person() {
}
public Person(String name, String gender, int age) {
super(name);
this.gender = gender;
this.age = age;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
}
| [
"[email protected]"
] | |
03b1ab59982aed2aa9872e997114c48d38ce31f6 | 1bd312825904d646af19fd695f2c3eaae7449ea3 | /binary.java | 5858e45f3df6b6b57fcadb3b16240fab5f710c3a | [] | no_license | sarvendrasingh/CodingMonth | 1857c7f58d39e70ce1dd864c73fab8c0619deeb1 | 4fcd6278710e5d6931c0add642f8fb35ede70761 | refs/heads/main | 2023-05-03T10:47:59.234099 | 2021-05-26T16:25:46 | 2021-05-26T16:25:46 | 365,459,636 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 837 | java | import java.util.Scanner;
public class binary {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter a number: ");
int n = sc.nextInt();
String bin = Integer.toBinaryString(n);
int count = 0;
// System.out.println(bin.length());
for (int i = 0; i < bin.length() ; i++) {
int flagCount = 0;
if (bin.charAt(i)=='1'){
while (i< bin.length() && bin.charAt(i)=='1'){
flagCount++;
i++;
}
if (flagCount > count){
count = flagCount;
}
}
}
System.out.print("Number of consecutive 1s in binary of "+n+" is: "+count);
// System.out.println(count);
}
}
| [
"[email protected]"
] | |
3b25ba1911d606bac8c2009f23a95700b17ad3a7 | dba8bcb988acb0c1c2a13c52645be762e21f975c | /src/main/java/lk/eDoc/service/impl/PrivatePracticeServiceImpl.java | 938dd0b0912d9de0c55ef017cb3d5a856c6e0a78 | [] | no_license | sahan1995/eDoc-BackEnd | 1d95f27bfcfbfd65be3aaaef567150f5e0b22385 | 0ed17bd572b0fad6f235c89f7a23de5a554dc9ac | refs/heads/master | 2020-04-24T03:51:23.317847 | 2019-04-01T18:52:33 | 2019-04-01T18:52:33 | 171,683,751 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,921 | java | package lk.eDoc.service.impl;
import lk.eDoc.dto.DoctorDTO;
import lk.eDoc.dto.PrivatePracticeDTO;
import lk.eDoc.entity.Doctor;
import lk.eDoc.entity.PrivatePrictice;
import lk.eDoc.repository.PrivatePracticeRepository;
import lk.eDoc.service.PrivatePracticeService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Transactional
@Service
public class PrivatePracticeServiceImpl implements PrivatePracticeService {
@Autowired
PrivatePracticeRepository privatePracticeRepository;
@Override
public boolean hasPP(String DID) {
return privatePracticeRepository.hasPP(DID).isPresent();
}
@Override
public PrivatePracticeDTO getByID(String PPID) {
PrivatePrictice privatePrictice =
privatePracticeRepository.findById(PPID).get();
Doctor doctor =
privatePrictice.getDoctor();
PrivatePracticeDTO privatePracticeDTO = new PrivatePracticeDTO();
DoctorDTO doctorDTO = new DoctorDTO();
BeanUtils.copyProperties(privatePrictice,privatePracticeDTO);
BeanUtils.copyProperties(doctor,doctorDTO);
privatePracticeDTO.setDoctorDTO(doctorDTO);
return privatePracticeDTO;
}
@Override
public void registerPP(PrivatePracticeDTO privatePracticeDTO) {
PrivatePrictice privatePrictice = new PrivatePrictice();
Doctor doctor = new Doctor();
BeanUtils.copyProperties(privatePracticeDTO.getDoctorDTO(),doctor);
BeanUtils.copyProperties(privatePracticeDTO,privatePrictice);
privatePrictice.setDoctor(doctor);
privatePracticeRepository.save(privatePrictice);
}
@Override
public String getLastID() {
return privatePracticeRepository.getCount();
}
}
| [
"[email protected]"
] | |
ea9ec93f5449f04f79b4a7a4cad67eb43fccc7e7 | f5c2d839cc57e6f71ca02d9ef39b5c28fce76dc1 | /coronavirus_bootstrap/src/main/java/io/guruinfotech/coronavirustracker/services/CoronavirusSmsService.java | ca904698e4bb3283128ce715b74337f3181cc89c | [] | no_license | gurunatha/Spring-Boot | 8ed987aca52a76382b721a79983cd089393fb0ab | 013509f59eccac6dd0efdc0dae2eb7be1f473740 | refs/heads/master | 2022-12-11T00:47:00.005359 | 2020-03-27T05:34:51 | 2020-03-27T05:34:51 | 249,983,675 | 0 | 0 | null | 2022-12-07T05:26:35 | 2020-03-25T13:18:56 | JavaScript | UTF-8 | Java | false | false | 3,989 | java | package io.guruinfotech.coronavirustracker.services;
import java.io.IOException;
import java.io.StringReader;
import java.net.MalformedURLException;
import java.net.ProtocolException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.Message;
import com.twilio.type.PhoneNumber;
import io.guruinfotech.coronavirustracker.models.LocationStats;
@Service
public class CoronavirusSmsService {
@Autowired
private CoronaVirusDataService coronaVirusDataService;
private static String VIRUS_DATA_INDIA_URL = "https://raw.githubusercontent.com/gurunatha/coronavirus/master/coronavirus_india.csv";
private static String VIRUS_DATA_INDIA_RECOVERED_URL = "https://raw.githubusercontent.com/gurunatha/coronavirus/master/coronavirus_india_recover.csv";
private final static String ACCOUNT_ID = "AC799eed7fa48bd9e63a85a8345333f814";
private final static String AUTH_TOKEN = "0e32a2872ee3fb672b8210ecb052629b";
public String sendSmsCoronavirusData(String fromMobileNumber) throws MalformedURLException, ProtocolException, IOException {
try {
StringReader csvBodyReader = coronaVirusDataService.getRawDate(VIRUS_DATA_INDIA_URL);
StringReader csvBodyReaderRecovered = coronaVirusDataService.getRawDate(VIRUS_DATA_INDIA_RECOVERED_URL);
List<LocationStats> positivateData = new ArrayList<LocationStats>();
Iterable<CSVRecord> records = CSVFormat.DEFAULT.withFirstRecordAsHeader().parse(csvBodyReader);
Iterable<CSVRecord> recordsRecovered = CSVFormat.DEFAULT.withFirstRecordAsHeader().parse(csvBodyReaderRecovered);
for (CSVRecord record : records) {
LocationStats locationStat = new LocationStats();
locationStat.setState(record.get("state"));
locationStat.setLatestTotalCases(Integer.parseInt(record.get("totalcases")));
positivateData.add(locationStat);
}
String recoverd="";
String foreign="";
String death="";
for (CSVRecord record : recordsRecovered) {
recoverd = record.get("recovered");
foreign = record.get("foreign");
death = record.get("death");
}
int total = positivateData.stream().mapToInt(m->m.getLatestTotalCases()).sum();
int recoverCases = Integer.parseInt(recoverd);
int foreignCases = Integer.parseInt(foreign);
int deathCases = Integer.parseInt(death);
int activeCases = total-(recoverCases+deathCases);
boolean isFirst = false;
StringBuilder builder = new StringBuilder();
builder.append("Total Coronavirus Positive Cases In India");
for(LocationStats l: positivateData) {
if(!isFirst) {
builder.append("\n");
builder.append(l.getState()+" "+l.getLatestTotalCases()+",");
builder.append("\n");
isFirst=true;
}else {
builder.append(l.getState()+" "+l.getLatestTotalCases()+",");
builder.append("\n");
}
}
builder.append("Total Number Of Cases"+total).append(",").append("\n");
builder.append("Recovered Cases :"+recoverd).append(",").append("\n");
builder.append("Foreign Cases :"+foreign).append(",").append("\n");
builder.append("Death Cases :"+deathCases).append(",").append("\n");
builder.append("Number Of Active Cases in India :"+activeCases);
Twilio.init(ACCOUNT_ID,AUTH_TOKEN);
System.out.println("Twilio try to send sms :"+fromMobileNumber);
StringBuilder phonenumber = new StringBuilder();
phonenumber.append("+91");
phonenumber.append(fromMobileNumber);
// System.out.println("Sms Service :"+phonenumber.toString());
Message.creator(new PhoneNumber(phonenumber.toString()), new PhoneNumber("+12816773899"), builder.toString()).create();
return "Smssent";
} catch (Exception e) {
e.printStackTrace();
return "Smsfail";
}
}
}
| [
"[email protected]"
] | |
f1c897be0dc5c17bcff9fa8ae4aa8adc64ccd7f8 | 8957e7451c979480d534509e02c4777e75801ab2 | /app/src/main/java/com/example/tnua_hadasha/MainActivity.java | 3364958d4b034ce0c68aa57ca37e3d6dd09ec6eb | [] | no_license | OriKatash8/tnua-hadasha | e5036984b34a1be7e834a07619ff387fd06a4817 | aa55e0571b1c60bd6455e777038eb2fef4563c6e | refs/heads/master | 2023-06-07T18:03:10.731147 | 2021-06-25T09:04:23 | 2021-06-25T09:04:23 | 373,084,198 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,001 | java | package com.example.tnua_hadasha;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
Button Regbut;
Button Logbut;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Regbut = findViewById(R.id.RegBut);
Regbut.setOnClickListener(this);
Logbut = findViewById(R.id.LogBut);
Logbut.setOnClickListener(this);
}
@Override
public void onClick(View v) {
if (v == Regbut)
{
Intent intent = new Intent(this, Register.class);
startActivity(intent);
}
else if(v == Logbut)
{
Intent intent = new Intent(this,Login.class);
startActivity(intent);
}
}
} | [
"[email protected]"
] | |
d39bc5b8f64af18d275f1a4d9f508fe3e27b6892 | 6e156bc13ac8493516609b1ff122f41f53906d68 | /flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowReader.java | 869b81e4972c2d3dea01bc0767d2a7f96999c714 | [
"Apache-2.0",
"MIT",
"ISC",
"OFL-1.1",
"BSD-3-Clause"
] | permissive | tillrohrmann/flink | e4a07edfce2d80b3a3b90aa9c7070b7367193fa7 | b8ff60d9ea3ce22546b50d23dc0ad6c96b034191 | refs/heads/master | 2022-12-22T10:18:52.784714 | 2021-07-07T16:10:45 | 2021-07-09T07:46:19 | 20,681,108 | 6 | 5 | Apache-2.0 | 2021-04-21T21:14:41 | 2014-06-10T10:19:35 | Java | UTF-8 | Java | false | false | 1,169 | 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.flink.table.runtime.arrow;
import org.apache.flink.annotation.Internal;
/**
* Reader which deserialize the Arrow format data to the Flink rows.
*
* @param <OUT> Type of the deserialized row.
*/
@Internal
public interface ArrowReader<OUT> {
/** Read the specified row from underlying Arrow format data. */
OUT read(int rowId);
}
| [
"[email protected]"
] | |
7cc2dcb2e4a70720acc80cabf6888a36bd85794f | 7cf34b316a7ac9067ccb3a4b26d9e0d9709cfb38 | /app/src/androidTest/java/com/example/gaozhiqiang/androidupdate/ExampleInstrumentedTest.java | 4bb0d08cdee3bf15a43c75a0d28682b46705d1f1 | [] | no_license | jiumogaoao/androidUpdate | 6ac0f720889a2057bf83e2d8fccb48ab63611a1f | 0d01d83c98977a3758341403d002df2bd5d2000a | refs/heads/master | 2021-01-12T05:16:35.398727 | 2017-01-11T13:11:11 | 2017-01-11T13:11:11 | 77,892,135 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 778 | java | package com.example.gaozhiqiang.androidupdate;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.example.gaozhiqiang.androidupdate", appContext.getPackageName());
}
}
| [
"[email protected]"
] | |
7a1a8085840699a65b998c77e35ddf08fca28a90 | 91e84cfcdd37a587631c467c6cc71f8d50af1652 | /Practica2Trimestre/app/src/main/java/com/example/aleja/practica2/modelos/Alumno.java | 6e24d6a11e513b9ae214e69bad65e997f4ac63db | [] | no_license | Zirialk/Android | 27a0f1c6c1194885a8d9656020291c6ebfde697e | 8e48d962c54040854af382d0de54b402a96f0169 | refs/heads/master | 2021-01-10T14:43:08.957940 | 2016-03-24T16:52:46 | 2016-03-24T16:52:46 | 43,421,043 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,246 | java | package com.example.aleja.practica2.modelos;
import android.os.Parcel;
import android.os.Parcelable;
public class Alumno implements Parcelable {
private int id;
private String nombre;
private String telefono;
private String email;
private String empresa;
private String tutor;
private String horario;
private String direccion;
private String foto;
public Alumno(){
}
public Alumno(String nombre, String telefono, String email, String empresa, String tutor, String horario, String direccion, String foto) {
this.nombre = nombre;
this.telefono = telefono;
this.email = email;
this.empresa = empresa;
this.tutor = tutor;
this.horario = horario;
this.direccion = direccion;
this.foto = foto;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getTelefono() {
return telefono;
}
public void setTelefono(String telefono) {
this.telefono = telefono;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getEmpresa() {
return empresa;
}
public void setEmpresa(String empresa) {
this.empresa = empresa;
}
public String getTutor() {
return tutor;
}
public void setTutor(String tutor) {
this.tutor = tutor;
}
public String getHorario() {
return horario;
}
public void setHorario(String horario) {
this.horario = horario;
}
public String getDireccion() {
return direccion;
}
public void setDireccion(String direccion) {
this.direccion = direccion;
}
public String getFoto() {
return foto;
}
public void setFoto(String foto) {
this.foto = foto;
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.id);
dest.writeString(this.nombre);
dest.writeString(this.telefono);
dest.writeString(this.email);
dest.writeString(this.empresa);
dest.writeString(this.tutor);
dest.writeString(this.horario);
dest.writeString(this.direccion);
dest.writeString(this.foto);
}
protected Alumno(Parcel in) {
this.id = in.readInt();
this.nombre = in.readString();
this.telefono = in.readString();
this.email = in.readString();
this.empresa = in.readString();
this.tutor = in.readString();
this.horario = in.readString();
this.direccion = in.readString();
this.foto = in.readString();
}
public static final Creator<Alumno> CREATOR = new Creator<Alumno>() {
public Alumno createFromParcel(Parcel source) {
return new Alumno(source);
}
public Alumno[] newArray(int size) {
return new Alumno[size];
}
};
}
| [
"[email protected]"
] | |
72f29a110fc2a6d03a5ae21ffa6e6e0619dd51b0 | 768b5b0b1ae1f7029642558c575a793c1dd0efbb | /AtlasServices/src/atlasWebServices/SimulateTagLocalizations.java | 32c8ed17deebcfbc66743579276ac4ab2a55afc7 | [] | no_license | shomratalon/minerva-workshop | d0e082d88d1b6eb7a919842fcd43e8fec99d885f | ed89fdb0de05d7734896b75e024698d5470cc819 | refs/heads/master | 2021-01-16T22:41:13.062713 | 2015-10-04T21:20:41 | 2015-10-04T21:20:41 | 50,177,103 | 1 | 0 | null | 2016-01-22T11:21:24 | 2016-01-22T11:21:24 | null | UTF-8 | Java | false | false | 1,691 | java | package atlasWebServices;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.DateFormat;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import atlasService.Location;
import atlasService.TagSimulator;
public class SimulateTagLocalizations extends HttpServlet {
private static final long serialVersionUID = 1L;
private static int defaultMovementTime = 6;
private static int defaultResultsPerHour = 10;
private static double defaultVelocity = 5;
private QueryStringParser paramsParser;
public SimulateTagLocalizations() {
super();
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
paramsParser = new QueryStringParser(request);
int movementTime = paramsParser.GetValueOrDefault("movement-time", defaultMovementTime);
int resultsPerHour = paramsParser.GetValueOrDefault("results-per-hour", defaultResultsPerHour);
double velocity = paramsParser.GetValueOrDefault("velocity", defaultVelocity);
TagSimulator simulator = new TagSimulator();
ArrayList<Location> a = simulator.SimulateTagLocalizations(movementTime, resultsPerHour, velocity);
JsonResult<Location> result = new JsonResult<Location>("Simulated Results", a);
PrintWriter print = response.getWriter();
Gson gson = new GsonBuilder().setPrettyPrinting()
.setDateFormat(DateFormat.FULL, DateFormat.FULL).create();
print.println(gson.toJson(result));
}
}
| [
"[email protected]"
] | |
eebb28ab8342b44a24c83ab8bc649e68e5a9d15d | 47f068783ceda233fedf5829ce847544c3895ba4 | /09_exp_type-exp_type_28_assign_comp/exp_type_28_assign_comp.java | 308f06d954fcb2820b3f7e2dc8897398248b1729 | [] | no_license | pengyunie/gvm-kbenchmark | ffef100cf9be46fa07ea04ffee16d0d2901a2394 | 2915cbd930aa82f8c26a4e63dab90faf59f9b08d | refs/heads/master | 2022-01-19T04:06:49.659426 | 2019-04-04T05:06:39 | 2019-04-04T05:06:39 | 195,458,348 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,366 | java | /*
Assignment: some compound
int b = 1; long a = 10;
b += 200 : a += 200
b -= 2 : a -= 2
Print a, b after each assign.
*/
public class exp_type_28_assign_comp {
public static void main(String[] args) {
int b = 1; long a = 10;
System.out.print("f(true ? (b += 200) : (a += 200)): "); System.out.println( f(true ? (b += 200) : (a += 200)));
System.out.print("(b a) = ("); System.out.print(b ); System.out.print(" "); System.out.print(a ); System.out.println( ")");
System.out.print("f(false ? (b += 200) : (a += 200)): "); System.out.println( f(false ? (b += 200) : (a += 200)));
System.out.print("(b a) = ("); System.out.print(b ); System.out.print(" "); System.out.print(a ); System.out.println( ")");
System.out.print("f(true ? (b -= 2) : (a -= 2)): "); System.out.println( f(true ? (b -= 2) : (a -= 2)));
System.out.print("(b a) = ("); System.out.print(b ); System.out.print(" "); System.out.print(a ); System.out.println( ")");
System.out.print("f(false ? (b -= 2) : (a -= 2)): "); System.out.println( f(false ? (b -= 2) : (a -= 2)));
System.out.print("(b a) = ("); System.out.print(b ); System.out.print(" "); System.out.print(a ); System.out.println( ")");
System.out.println("Done!");
}
static String f(int b) {
return "f(int): " + b;
}
static String f(long a) {
return "f(long): " + a;
}
}
| [
"[email protected]"
] | |
0b30766bd24fafad8136d8b755db212eeb006296 | d4e9d01845b6781105b614082a8994f1c1447874 | /ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/EthGetBlockByNumberLatestDesyncIntegrationTest.java | db6eef416e20f9c00282ab9b9e18b1a715ed0f91 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | sanketshevkar/besu | c65d07f7e2ac6ce1e46cf06ed8c2c7a06d22cea4 | 75324f38179ce966a9a767c0da997eaed756ea93 | refs/heads/main | 2023-08-05T01:44:52.141141 | 2021-09-10T02:45:16 | 2021-09-10T02:45:16 | 405,429,594 | 1 | 0 | Apache-2.0 | 2021-09-11T16:36:09 | 2021-09-11T16:36:09 | null | UTF-8 | Java | false | false | 7,537 | java | /*
* Copyright ConsenSys AG.
*
* 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.
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.besu.ethereum.api.jsonrpc.methods;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import org.hyperledger.besu.ethereum.ProtocolContext;
import org.hyperledger.besu.ethereum.api.jsonrpc.BlockchainImporter;
import org.hyperledger.besu.ethereum.api.jsonrpc.JsonRpcTestMethodsFactory;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.JsonRpcRequest;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.JsonRpcRequestContext;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.methods.JsonRpcMethod;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.response.JsonRpcResponse;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.response.JsonRpcSuccessResponse;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.results.BlockResult;
import org.hyperledger.besu.ethereum.chain.MutableBlockchain;
import org.hyperledger.besu.ethereum.core.Block;
import org.hyperledger.besu.ethereum.core.BlockImporter;
import org.hyperledger.besu.ethereum.core.Hash;
import org.hyperledger.besu.ethereum.core.InMemoryKeyValueStorageProvider;
import org.hyperledger.besu.ethereum.core.Synchronizer;
import org.hyperledger.besu.ethereum.mainnet.HeaderValidationMode;
import org.hyperledger.besu.ethereum.mainnet.ProtocolSchedule;
import org.hyperledger.besu.ethereum.mainnet.ProtocolSpec;
import org.hyperledger.besu.ethereum.worldstate.WorldStateArchive;
import org.hyperledger.besu.plugin.data.SyncStatus;
import org.hyperledger.besu.testutil.BlockTestUtil;
import java.util.Optional;
import com.google.common.base.Charsets;
import com.google.common.io.Resources;
import org.assertj.core.api.Assertions;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
@RunWith(MockitoJUnitRunner.class)
public class EthGetBlockByNumberLatestDesyncIntegrationTest {
private static JsonRpcTestMethodsFactory methodsFactorySynced;
private static JsonRpcTestMethodsFactory methodsFactoryDesynced;
private static JsonRpcTestMethodsFactory methodsFactoryMidDownload;
private static final long ARBITRARY_SYNC_BLOCK = 4L;
@BeforeClass
public static void setUpOnce() throws Exception {
final String genesisJson =
Resources.toString(BlockTestUtil.getTestGenesisUrl(), Charsets.UTF_8);
BlockchainImporter importer =
new BlockchainImporter(BlockTestUtil.getTestBlockchainUrl(), genesisJson);
MutableBlockchain chain =
InMemoryKeyValueStorageProvider.createInMemoryBlockchain(importer.getGenesisBlock());
WorldStateArchive state = InMemoryKeyValueStorageProvider.createInMemoryWorldStateArchive();
importer.getGenesisState().writeStateTo(state.getMutable());
ProtocolContext context = new ProtocolContext(chain, state, null);
for (final Block block : importer.getBlocks()) {
final ProtocolSchedule protocolSchedule = importer.getProtocolSchedule();
final ProtocolSpec protocolSpec =
protocolSchedule.getByBlockNumber(block.getHeader().getNumber());
final BlockImporter blockImporter = protocolSpec.getBlockImporter();
blockImporter.importBlock(context, block, HeaderValidationMode.FULL);
}
methodsFactorySynced = new JsonRpcTestMethodsFactory(importer, chain, state, context);
WorldStateArchive unsynced = mock(WorldStateArchive.class);
when(unsynced.isWorldStateAvailable(any(Hash.class), any(Hash.class))).thenReturn(false);
methodsFactoryDesynced = new JsonRpcTestMethodsFactory(importer, chain, unsynced, context);
WorldStateArchive midSync = mock(WorldStateArchive.class);
when(midSync.isWorldStateAvailable(any(Hash.class), any(Hash.class))).thenReturn(true);
Synchronizer synchronizer = mock(Synchronizer.class);
SyncStatus status = mock(SyncStatus.class);
when(status.getCurrentBlock())
.thenReturn(ARBITRARY_SYNC_BLOCK); // random choice for current sync state.
when(synchronizer.getSyncStatus()).thenReturn(Optional.of(status));
methodsFactoryMidDownload =
new JsonRpcTestMethodsFactory(importer, chain, midSync, context, synchronizer);
}
@Test
public void shouldReturnHeadIfFullySynced() {
JsonRpcMethod ethGetBlockNumber = methodsFactorySynced.methods().get("eth_getBlockByNumber");
Object[] params = {"latest", false};
JsonRpcRequestContext ctx =
new JsonRpcRequestContext(new JsonRpcRequest("2.0", "eth_getBlockByNumber", params));
Assertions.assertThatNoException()
.isThrownBy(
() -> {
final JsonRpcResponse resp = ethGetBlockNumber.response(ctx);
assertThat(resp).isNotNull();
assertThat(resp).isInstanceOf(JsonRpcSuccessResponse.class);
Object r = ((JsonRpcSuccessResponse) resp).getResult();
assertThat(r).isInstanceOf(BlockResult.class);
BlockResult br = (BlockResult) r;
assertThat(br.getNumber()).isEqualTo("0x20");
// assert on the state existing?
});
}
@Test
public void shouldReturnGenesisIfNotSynced() {
JsonRpcMethod ethGetBlockNumber = methodsFactoryDesynced.methods().get("eth_getBlockByNumber");
Object[] params = {"latest", false};
JsonRpcRequestContext ctx =
new JsonRpcRequestContext(new JsonRpcRequest("2.0", "eth_getBlockByNumber", params));
Assertions.assertThatNoException()
.isThrownBy(
() -> {
final JsonRpcResponse resp = ethGetBlockNumber.response(ctx);
assertThat(resp).isNotNull();
assertThat(resp).isInstanceOf(JsonRpcSuccessResponse.class);
Object r = ((JsonRpcSuccessResponse) resp).getResult();
assertThat(r).isInstanceOf(BlockResult.class);
BlockResult br = (BlockResult) r;
assertThat(br.getNumber()).isEqualTo("0x0");
});
}
@Test
public void shouldReturnCurrentSyncedIfDownloadingWorldState() {
JsonRpcMethod ethGetBlockNumber =
methodsFactoryMidDownload.methods().get("eth_getBlockByNumber");
Object[] params = {"latest", false};
JsonRpcRequestContext ctx =
new JsonRpcRequestContext(new JsonRpcRequest("2.0", "eth_getBlockByNumber", params));
Assertions.assertThatNoException()
.isThrownBy(
() -> {
final JsonRpcResponse resp = ethGetBlockNumber.response(ctx);
assertThat(resp).isNotNull();
assertThat(resp).isInstanceOf(JsonRpcSuccessResponse.class);
Object r = ((JsonRpcSuccessResponse) resp).getResult();
assertThat(r).isInstanceOf(BlockResult.class);
BlockResult br = (BlockResult) r;
assertThat(br.getNumber()).isEqualTo("0x4");
});
}
}
| [
"[email protected]"
] | |
06545facc9298e492ffb62a7d5dc65e929f53a36 | 0c98cf3f64a72ceb4987f23936979d587183e269 | /services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/ModerationAsyncClient.java | 254a3f46eb5560b5844efe72891669e74f75e30f | [
"Apache-2.0"
] | permissive | cwray01/huaweicloud-sdk-java-v3 | 765d08e4b6dfcd88c2654bdbf5eb2dd9db19f2ef | 01b5a3b4ea96f8770a2eaa882b244930e5fd03e7 | refs/heads/master | 2023-07-17T10:31:20.119625 | 2021-08-31T11:38:37 | 2021-08-31T11:38:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,709 | java | package com.huaweicloud.sdk.moderation.v2;
import com.huaweicloud.sdk.core.ClientBuilder;
import com.huaweicloud.sdk.core.HcClient;
import com.huaweicloud.sdk.core.invoker.AsyncInvoker;
import com.huaweicloud.sdk.moderation.v2.model.*;
import java.util.concurrent.CompletableFuture;
public class ModerationAsyncClient {
protected HcClient hcClient;
public ModerationAsyncClient(HcClient hcClient) {
this.hcClient = hcClient;
}
public static ClientBuilder<ModerationAsyncClient> newBuilder() {
return new ClientBuilder<>(ModerationAsyncClient::new);
}
/** 处理结果查询 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 > 任务最长保留时间为30分钟,过期后会被清理掉。建议在任务提交后,每30s进行一次周期查询。
*
* @param RunCheckResultRequest 请求对象
* @return CompletableFuture<RunCheckResultResponse> */
public CompletableFuture<RunCheckResultResponse> runCheckResultAsync(RunCheckResultRequest request) {
return hcClient.asyncInvokeHttp(request, ModerationMeta.runCheckResult);
}
/** 处理结果查询 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 > 任务最长保留时间为30分钟,过期后会被清理掉。建议在任务提交后,每30s进行一次周期查询。
*
* @param RunCheckResultRequest 请求对象
* @return AsyncInvoker<RunCheckResultRequest, RunCheckResultResponse> */
public AsyncInvoker<RunCheckResultRequest, RunCheckResultResponse> runCheckResultAsyncInvoker(
RunCheckResultRequest request) {
return new AsyncInvoker<RunCheckResultRequest, RunCheckResultResponse>(request, ModerationMeta.runCheckResult,
hcClient);
}
/** 任务列表查询 查询批量图像内容审核任务列表,可通过指定任务状态查询来对任务列表进行过滤。
*
* @param RunCheckTaskJobsRequest 请求对象
* @return CompletableFuture<RunCheckTaskJobsResponse> */
public CompletableFuture<RunCheckTaskJobsResponse> runCheckTaskJobsAsync(RunCheckTaskJobsRequest request) {
return hcClient.asyncInvokeHttp(request, ModerationMeta.runCheckTaskJobs);
}
/** 任务列表查询 查询批量图像内容审核任务列表,可通过指定任务状态查询来对任务列表进行过滤。
*
* @param RunCheckTaskJobsRequest 请求对象
* @return AsyncInvoker<RunCheckTaskJobsRequest, RunCheckTaskJobsResponse> */
public AsyncInvoker<RunCheckTaskJobsRequest, RunCheckTaskJobsResponse> runCheckTaskJobsAsyncInvoker(
RunCheckTaskJobsRequest request) {
return new AsyncInvoker<RunCheckTaskJobsRequest, RunCheckTaskJobsResponse>(request,
ModerationMeta.runCheckTaskJobs, hcClient);
}
/** 图像内容审核(批量) 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。
*
* @param RunImageBatchModerationRequest 请求对象
* @return CompletableFuture<RunImageBatchModerationResponse> */
public CompletableFuture<RunImageBatchModerationResponse> runImageBatchModerationAsync(
RunImageBatchModerationRequest request) {
return hcClient.asyncInvokeHttp(request, ModerationMeta.runImageBatchModeration);
}
/** 图像内容审核(批量) 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。
*
* @param RunImageBatchModerationRequest 请求对象
* @return AsyncInvoker<RunImageBatchModerationRequest, RunImageBatchModerationResponse> */
public AsyncInvoker<RunImageBatchModerationRequest, RunImageBatchModerationResponse> runImageBatchModerationAsyncInvoker(
RunImageBatchModerationRequest request) {
return new AsyncInvoker<RunImageBatchModerationRequest, RunImageBatchModerationResponse>(request,
ModerationMeta.runImageBatchModeration, hcClient);
}
/** 图像内容审核 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。
*
* @param RunImageModerationRequest 请求对象
* @return CompletableFuture<RunImageModerationResponse> */
public CompletableFuture<RunImageModerationResponse> runImageModerationAsync(RunImageModerationRequest request) {
return hcClient.asyncInvokeHttp(request, ModerationMeta.runImageModeration);
}
/** 图像内容审核 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。
*
* @param RunImageModerationRequest 请求对象
* @return AsyncInvoker<RunImageModerationRequest, RunImageModerationResponse> */
public AsyncInvoker<RunImageModerationRequest, RunImageModerationResponse> runImageModerationAsyncInvoker(
RunImageModerationRequest request) {
return new AsyncInvoker<RunImageModerationRequest, RunImageModerationResponse>(request,
ModerationMeta.runImageModeration, hcClient);
}
/** 任务提交 提交批量图像内容审核任务,返回任务标识,任务标识可用于查询任务结果。此接口为异步接口,相对于批量接口,支持更大图片列表批次。
*
* @param RunTaskSumbitRequest 请求对象
* @return CompletableFuture<RunTaskSumbitResponse> */
public CompletableFuture<RunTaskSumbitResponse> runTaskSumbitAsync(RunTaskSumbitRequest request) {
return hcClient.asyncInvokeHttp(request, ModerationMeta.runTaskSumbit);
}
/** 任务提交 提交批量图像内容审核任务,返回任务标识,任务标识可用于查询任务结果。此接口为异步接口,相对于批量接口,支持更大图片列表批次。
*
* @param RunTaskSumbitRequest 请求对象
* @return AsyncInvoker<RunTaskSumbitRequest, RunTaskSumbitResponse> */
public AsyncInvoker<RunTaskSumbitRequest, RunTaskSumbitResponse> runTaskSumbitAsyncInvoker(
RunTaskSumbitRequest request) {
return new AsyncInvoker<RunTaskSumbitRequest, RunTaskSumbitResponse>(request, ModerationMeta.runTaskSumbit,
hcClient);
}
/** 文本内容审核 分析并识别用户上传的文本内容是否有敏感内容(如色情、政治等),并将识别结果返回给用户。
*
* @param RunTextModerationRequest 请求对象
* @return CompletableFuture<RunTextModerationResponse> */
public CompletableFuture<RunTextModerationResponse> runTextModerationAsync(RunTextModerationRequest request) {
return hcClient.asyncInvokeHttp(request, ModerationMeta.runTextModeration);
}
/** 文本内容审核 分析并识别用户上传的文本内容是否有敏感内容(如色情、政治等),并将识别结果返回给用户。
*
* @param RunTextModerationRequest 请求对象
* @return AsyncInvoker<RunTextModerationRequest, RunTextModerationResponse> */
public AsyncInvoker<RunTextModerationRequest, RunTextModerationResponse> runTextModerationAsyncInvoker(
RunTextModerationRequest request) {
return new AsyncInvoker<RunTextModerationRequest, RunTextModerationResponse>(request,
ModerationMeta.runTextModeration, hcClient);
}
}
| [
"[email protected]"
] | |
249752bd86754247fa5f6ebf06cc90f303d2babc | 74e5cd0ff399cee1cec1f7a3e6a57084a2c09f44 | /src/br/newtonpaiva/modelo/Aluno.java | 6e4d65f8ac663ae9814634d89e0323de556c6da6 | [] | no_license | tarley/GCModelo | e8d5459f58cf9406fab0d5f94e0310f9ecaa74b1 | 47f85bb5a412f29bba876cf8d5a2b1877584b843 | refs/heads/master | 2021-01-11T03:18:03.730301 | 2016-12-20T03:27:39 | 2016-12-20T03:27:39 | 71,090,074 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 12,997 | 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 br.newtonpaiva.modelo;
import br.newtonpaiva.modelo.excessoes.AlunoInvalidoException;
import static br.newtonpaiva.util.ConfigurationManager.*;
import br.newtonpaiva.util.CpfCnpjUtil;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import static br.newtonpaiva.util.CpfCnpjUtil.*;
import br.newtonpaiva.util.StringUtil;
import java.sql.Types;
/**
*
* @author tarle
*/
public class Aluno {
public static final String DEFICIENTE = "S";
public static final String NAO_DEFICIENTE = "N";
private Integer id;
private String ra;
private String nome;
private String email;
private String cpf;
private Curso curso;
private String deficiente;
private List<Contrato> listaContratos;
public Aluno() {
}
public Aluno(ResultSet r) throws SQLException {
id = r.getInt(1);
curso = Curso.buscarPorId(r.getInt(2));
ra = r.getString(3);
nome = r.getString(4);
cpf = r.getString(5);
email = r.getString(6);
deficiente = r.getString(7);
}
/**
* @return the id
*/
public Integer getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(Integer id) {
this.id = id;
}
/**
* @return the ra
*/
public String getRa() {
return ra;
}
/**
* @param ra the ra to set
*/
public void setRa(String ra) {
this.ra = ra;
}
/**
* @return the nome
*/
public String getNome() {
return nome;
}
/**
* @param nome the nome to set
*/
public void setNome(String nome) {
this.nome = nome;
}
/**
* @return the email
*/
public String getEmail() {
return email;
}
/**
* @param email the email to set
*/
public void setEmail(String email) {
this.email = email;
}
/**
* @return the curso
*/
public Curso getCurso() {
return curso;
}
/**
* @param curso the curso to set
*/
public void setCurso(Curso curso) {
this.curso = curso;
}
/**
* @return the contratos
*/
public List<Contrato> getListaContratos() {
return listaContratos;
}
/**
* @param listaContratos the contratos to set
*/
public void setListaContratos(List<Contrato> listaContratos) {
this.listaContratos = listaContratos;
}
@Override
public String toString() {
return "Aluno{" + "id=" + id + ", ra=" + ra + ", nome=" + nome + ", email=" + email + ", curso=" + curso + '}';
}
@Override
public int hashCode() {
int hash = 7;
hash = 19 * hash + Objects.hashCode(this.ra);
return hash;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final Aluno other = (Aluno) obj;
if (!Objects.equals(this.ra, other.ra)) {
return false;
}
return true;
}
public void salvar() throws AlunoInvalidoException, SQLException {
if (getCurso()== null) {
throw new AlunoInvalidoException("O Curso deve ser informado!");
}
if (getRa() == null || getRa().equals("")) {
throw new AlunoInvalidoException("O RA deve ser informado!");
}
if (getNome() == null || getNome().equals("")) {
throw new AlunoInvalidoException("O Nome deve ser informado!");
}
if (getCpf() == null || getCpf().isEmpty() || getCpfFormatado() == null || getCpfFormatado().isEmpty()) {
throw new AlunoInvalidoException("O CPF deve ser informado!");
}
if (getEmail() == null || getEmail().equals("")) {
throw new AlunoInvalidoException("O Email deve ser informado!");
}
if (getDeficiente() == null || getDeficiente().equals("")) {
throw new AlunoInvalidoException("Deve ser informado se o aluno é deficiente!");
}
if (getId() == null) {
try (Connection con = DriverManager.getConnection(DB_URL, DB_USUARIO, DB_SENHA);
PreparedStatement stm = con.prepareStatement(
appSettings("aluno.insert"), Statement.RETURN_GENERATED_KEYS)) {
stm.setInt(1, getCurso().getId());
stm.setString(2, getRa());
stm.setString(3, getNome());
stm.setString(4, getEmail());
stm.setString(5, getCpf());
stm.setString(6, getDeficiente());
stm.executeUpdate();
ResultSet rs = stm.getGeneratedKeys();
if (rs.next()) {
setId(rs.getInt(1));
} else {
throw new SQLException("Não foi possivel inserir o usuário");
}
}
} else {
try (Connection con = DriverManager.getConnection(
DB_URL, DB_USUARIO, DB_SENHA);
PreparedStatement stm = con.prepareStatement(
appSettings("aluno.update"))) {
stm.setInt(1, getCurso().getId());
stm.setString(2, getRa());
stm.setString(3, getNome());
stm.setString(4, getEmail());
stm.setString(5, getCpf());
stm.setString(6, getDeficiente());
stm.setInt(7, getId());
stm.executeUpdate();
}
}
}
public static int excluir(Integer id) throws AlunoInvalidoException, SQLException {
try (Connection c = DriverManager.getConnection(DB_URL, DB_USUARIO, DB_SENHA);
PreparedStatement s = c.prepareStatement(appSettings("aluno.delete"));) {
s.setInt(1, id);
return s.executeUpdate();
}
}
public static Aluno buscarPorId(Integer id) throws SQLException {
try (Connection c = DriverManager.getConnection(DB_URL, DB_USUARIO, DB_SENHA);
PreparedStatement s = c.prepareStatement(appSettings("aluno.select.id"))) {
s.setInt(1, id);
try (ResultSet r = s.executeQuery()) {
if (r.next())
return new Aluno(r);
else
return null;
}
}
}
public static List<Aluno> buscarPorCurso(Integer idCurso) throws SQLException {
try (Connection c = DriverManager.getConnection(DB_URL, DB_USUARIO, DB_SENHA);
PreparedStatement s = c.prepareStatement(appSettings("aluno.select.curso"))) {
s.setInt(1, idCurso);
try (ResultSet r = s.executeQuery()) {
List<Aluno> lista = new ArrayList();
while (r.next()) {
lista.add(new Aluno(r));
}
return lista;
}
}
}
public static Aluno buscarPorRA(String ra) throws SQLException {
try (Connection c = DriverManager.getConnection(DB_URL, DB_USUARIO, DB_SENHA);
PreparedStatement s = c.prepareStatement(appSettings("aluno.select.ra"))) {
s.setString(1, ra);
try (ResultSet r = s.executeQuery()) {
if (r.next())
return new Aluno(r);
else
return null;
}
}
}
public static Aluno buscarPorCPF(String cpf) throws SQLException {
try (Connection c = DriverManager.getConnection(DB_URL, DB_USUARIO, DB_SENHA);
PreparedStatement s = c.prepareStatement(appSettings("aluno.select.cpf"))) {
s.setString(1, removerFormatacaoCpfCnpj(cpf));
try (ResultSet r = s.executeQuery()) {
if (r.next())
return new Aluno(r);
else
return null;
}
}
}
public static List<Aluno> buscarTodos() throws SQLException {
try (Connection con = DriverManager.getConnection(DB_URL, DB_USUARIO, DB_SENHA);
PreparedStatement stm = con.prepareStatement(appSettings("aluno.select"))) {
try (ResultSet r = stm.executeQuery()) {
List<Aluno> lista = new ArrayList();
while (r.next()) {
lista.add(new Aluno(r));
}
return lista;
}
}
}
public static List<Aluno> buscarTodos(String nome, String curso,
String ra, String cpf, String deficiente) throws SQLException {
try (Connection con = DriverManager.getConnection(DB_URL, DB_USUARIO, DB_SENHA);
PreparedStatement stm = con.prepareStatement(appSettings("aluno.select.por.filtro"))) {
if(StringUtil.isNullOrWhiteSpace(ra)) {
stm.setNull(1, Types.VARCHAR);
stm.setNull(2, Types.VARCHAR);
} else {
stm.setString(1, ra);
stm.setString(2, ra);
}
cpf = CpfCnpjUtil.removerFormatacaoCpfCnpj(cpf);
if(StringUtil.isNullOrWhiteSpace(cpf)) {
stm.setNull(3, Types.VARCHAR);
stm.setNull(4, Types.VARCHAR);
} else {
stm.setString(3, cpf);
stm.setString(4, cpf);
}
if(StringUtil.isNullOrWhiteSpace(nome)) {
stm.setNull(5, Types.VARCHAR);
stm.setNull(6, Types.VARCHAR);
} else {
stm.setString(5, nome);
stm.setString(6, "%" + nome + "%");
}
if(StringUtil.isNullOrWhiteSpace(curso)) {
stm.setNull(7, Types.VARCHAR);
stm.setNull(8, Types.VARCHAR);
} else {
stm.setString(7, curso);
stm.setString(8, "%" + curso + "%");
}
if(StringUtil.isNullOrWhiteSpace(deficiente)) {
stm.setNull(9, Types.VARCHAR);
stm.setNull(10, Types.VARCHAR);
} else {
stm.setString(9, deficiente);
stm.setString(10, deficiente);
}
try (ResultSet r = stm.executeQuery()) {
List<Aluno> lista = new ArrayList();
while (r.next()) {
lista.add(new Aluno(r));
}
return lista;
}
}
}
public static List<Aluno> buscarPorNome(String nome) throws SQLException {
try (Connection con = DriverManager.getConnection(DB_URL, DB_USUARIO, DB_SENHA);
PreparedStatement stm = con.prepareStatement(appSettings("aluno.select.nome"))) {
stm.setString(1, "%" + nome + "%");
try (ResultSet r = stm.executeQuery()) {
List<Aluno> lista = new ArrayList();
while (r.next()) {
lista.add(new Aluno(r));
}
return lista;
}
}
}
public void carregarContratos() throws SQLException {
setListaContratos(Contrato.buscarPorIdAluno(getId()));
}
/**
* @return the cpf
*/
public String getCpf() {
return cpf;
}
/**
* @return the cpf
*/
public String getCpfFormatado() {
return formatarCpfCnpj(cpf);
}
/**
* @param cpf the cpf to set
*/
public void setCpf(String cpf) {
this.cpf = removerFormatacaoCpfCnpj(cpf);
}
/**
* @return the deficiente
*/
public String getDeficiente() {
return deficiente;
}
/**
* @param deficiente the deficiente to set
*/
public void setDeficiente(String deficiente) {
this.deficiente = deficiente;
}
}
| [
"[email protected]"
] | |
dcef5a05740a5d67aab81f28880c28126d4c4d2c | 9ed25ece617597934b4e7b0e0deea05bd752b6ef | /src/Fibonacci/Tugas1.java | 5e0ab6fd9745873887d6ca2cceaa7af8a2a0bb98 | [] | no_license | zalsaaquarista/Dynamic-Programming | 80d98cd8752ff469c38a652d3cacb81bab2dca0a | 55d63146f291ba4c4024f396ee8eb763776b1076 | refs/heads/master | 2021-09-22T19:21:23.976161 | 2018-09-14T13:42:38 | 2018-09-14T13:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,512 | 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 Fibonacci;
/**
*
* @author ASUS
*/
import java.util.Scanner;
public class Tugas1 {
public static void main(String[] args)
{
Scanner baca = new Scanner(System.in);
System.out.print("Masukkan jumlah uang: ");
int uang = baca.nextInt();
int[] data = new int[] {100, 500, 1000, 2000, 5000};
int a = 0;
while(uang >= 5000)
{
uang = uang - 5000;
a++;
}
System.out.println("Banyak uang 5000: " + a);
int b = 0;
while(uang >= 2000)
{
uang = uang - 2000;
b++;
}
System.out.println("Banyak uang 2000: " + b);
int c = 0;
while(uang >= 1000)
{
uang = uang - 1000;
c++;
}
System.out.println("Banyak uang 1000: " + c);
int d = 0;
while(uang >= 500)
{
uang = uang - 500;
d++;
}
System.out.println("Banyak uang 500: " + d);
int e = 0;
while(uang >= 100)
{
uang = uang - 100;
e++;
}
System.out.println("Banyak uang 100: " + e);
}
}
| [
"ASUS@LAPTOP-48GGUI0O"
] | ASUS@LAPTOP-48GGUI0O |
0b6a256d60ef2c12b05d5672b25210d7da33fd3a | 0daf722feb3f801895e028e6d3389c91339c2d6d | /GingaJEmulator/src/br/org/sbtvd/si/Descriptor.java | d7bdb6068b8ac13bd6f1cc3615ffbe6f5ec241b1 | [] | no_license | manoelnetom/IDTVSimulator | 1a781883b7456c1462e1eb5282f3019ef3ef934a | 3f6c31c01ef10ed87f06b9e1e88f853cfedcbcd1 | refs/heads/master | 2021-01-10T20:56:13.096038 | 2014-09-16T17:52:03 | 2014-09-16T17:52:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 439 | java | package br.org.sbtvd.si;
public class Descriptor{
/**
*
* @return
*/
public short getTag(){
//TODO
return 0;
}
/**
*
* @return
*/
public short getContentLength(){
//TODO
return 0;
}
/**
*
* @param index
* @return
*/
public byte getByteAt(int index){
//TODO
return 0;
}
/**
*
* @return
*/
public byte[] getContent() {
//TODO
return null;
}
}
| [
"[email protected]"
] | |
2fed615c22516431267f3cb950130c93c9392747 | 3bd8b12763e663eb9dcb0808cec7217da8aa40cc | /app/src/main/java/com/coinkarasu/coins/SnapshotCoinImpl.java | 2f921544b13ee94a6754c65a24b874e35358a3f7 | [
"Apache-2.0"
] | permissive | ts-3156/CoinKarasu | cbe80f001c199f2d936941b5d8ed7f430392905f | 08757dcbdfe4e6059823d84eaabbd744d263bdd4 | refs/heads/master | 2021-10-09T17:15:36.034690 | 2019-01-01T12:46:52 | 2019-01-01T12:46:52 | 119,421,462 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,546 | java | package com.coinkarasu.coins;
import com.coinkarasu.utils.CKLog;
import org.json.JSONException;
import org.json.JSONObject;
public class SnapshotCoinImpl implements SnapshotCoin {
private static final boolean DEBUG = CKLog.DEBUG;
private static final String TAG = "SnapshotCoinImpl";
private String market;
private String fromSymbol;
private String toSymbol;
private double price;
private long lastUpdate;
private double lastVolume;
private double lastVolumeTo;
private double volume24Hour;
private double volume24HourTo;
private double open24Hour;
private double high24Hour;
private double low24Hour;
public SnapshotCoinImpl(JSONObject response) {
try {
market = response.getString("MARKET");
fromSymbol = response.getString("FROMSYMBOL");
toSymbol = response.getString("TOSYMBOL");
price = response.getDouble("PRICE");
lastUpdate = response.getLong("LASTUPDATE");
lastVolume = response.getDouble("LASTVOLUME");
lastVolumeTo = response.getDouble("LASTVOLUMETO");
volume24Hour = response.getDouble("VOLUME24HOUR");
volume24HourTo = response.getDouble("VOLUME24HOURTO");
open24Hour = response.getDouble("OPEN24HOUR");
high24Hour = response.getDouble("HIGH24HOUR");
low24Hour = response.getDouble("LOW24HOUR");
lastVolumeTo = response.getDouble("LASTVOLUMETO");
} catch (JSONException e) {
CKLog.e(TAG, response.toString(), e);
}
}
public static SnapshotCoinImpl buildByJSONObject(JSONObject attrs) {
return new SnapshotCoinImpl(attrs);
}
@Override
public String getMarket() {
return market;
}
@Override
public String getFromSymbol() {
return fromSymbol;
}
@Override
public String getToSymbol() {
return toSymbol;
}
@Override
public double getPrice() {
return price;
}
@Override
public double getVolume24Hour() {
return volume24Hour;
}
@Override
public long getLastUpdate() {
return lastUpdate;
}
@Override
public double getLastVolume() {
return lastVolume;
}
@Override
public double getLastVolumeTo() {
return lastVolumeTo;
}
@Override
public double getVolume24HourTo() {
return volume24HourTo;
}
@Override
public double getOpen24Hour() {
return open24Hour;
}
@Override
public double getHigh24Hour() {
return high24Hour;
}
@Override
public double getLow24Hour() {
return low24Hour;
}
@Override
public JSONObject toJson() {
JSONObject json = new JSONObject();
try {
json.put("MARKET", market);
json.put("FROMSYMBOL", fromSymbol);
json.put("TOSYMBOL", toSymbol);
json.put("PRICE", price);
json.put("LASTUPDATE", lastUpdate);
json.put("LASTVOLUME", lastVolume);
json.put("LASTVOLUMETO", lastVolumeTo);
json.put("VOLUME24HOUR", volume24Hour);
json.put("VOLUME24HOURTO", volume24HourTo);
json.put("OPEN24HOUR", open24Hour);
json.put("HIGH24HOUR", high24Hour);
json.put("LOW24HOUR", low24Hour);
json.put("LASTVOLUMETO", lastVolumeTo);
} catch (JSONException e) {
CKLog.e(TAG, e);
}
return json;
}
}
| [
"[email protected]"
] | |
531b4d3b694d0a0c3fc04d87ef75415aab9c0358 | fcbc2a8f6b4e2e53d19c198e835a4104c73c7a38 | /src/main/java/com/learn/TemplateMethod/ColleageStudent.java | cc87642ca08071390b0c35a5a7158bc84448623b | [
"MIT"
] | permissive | AiRanthem/Design-Pattern-Demo | d022194594528be70c027849e523a0e0e713f192 | 3c8f081353d2c53f7678bf0f43d16882e9586ff5 | refs/heads/master | 2022-10-07T07:37:16.852552 | 2020-06-07T13:02:38 | 2020-06-07T13:02:38 | 262,929,892 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 430 | java | package com.learn.TemplateMethod;
public class ColleageStudent extends Person {
public ColleageStudent() {
super("大学生");
}
@Override
void breakfast() {
}
@Override
void launch() {
System.out.println("吃食堂");
}
@Override
void dinner() {
System.out.println("KFC!!!");
}
@Override
boolean wantEatBreakfast() {
return false;
}
}
| [
"[email protected]"
] | |
e81d539f1567b76c7041834898941edaa08a78a6 | 420ff686bc991700cef25ee88769a0da68a0d2d4 | /src/main/java/com/bdcourse/library/UI/QueriesUI/FindGivenEditionByPosition.java | 8654a7fa9d3bc23d4bd6487092c3c051daece02b | [] | no_license | FatCat343/BDLibrary | be9341d44d2265f155d8d25bcbc10d3a55e4d4f2 | 732e8929f7f3af759c2b4187cf62e2e26fb4fbaa | refs/heads/main | 2023-03-17T13:50:04.686439 | 2021-03-27T05:21:38 | 2021-03-27T05:21:38 | 340,558,210 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,270 | java | package com.bdcourse.library.UI.QueriesUI;
import com.bdcourse.library.UI.MainView;
import com.bdcourse.library.edition.Edition;
import com.bdcourse.library.edition.EditionService;
import com.bdcourse.library.library.Library;
import com.bdcourse.library.library.LibraryService;
import com.vaadin.flow.component.combobox.ComboBox;
import com.vaadin.flow.component.grid.Grid;
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.component.textfield.IntegerField;
import com.vaadin.flow.data.value.ValueChangeMode;
import com.vaadin.flow.router.Route;
@Route(value = "FindGivenEditionByPosition", layout = MainView.class)
public class FindGivenEditionByPosition extends VerticalLayout {
private ComboBox<Library> libraries = new ComboBox<>("Select address:");
private IntegerField roomField = new IntegerField("Set room number:");
private IntegerField rackField = new IntegerField("Set rack number:");
private IntegerField shelfField = new IntegerField("Set shelf number:");
private String address = null;
private Integer room = null;
private Integer rack = null;
private Integer shelf = null;
private Grid<Edition> grid = new Grid<>(Edition.class);
private EditionService editionService;
public FindGivenEditionByPosition(EditionService editionService, LibraryService libraryService) {
this.editionService = editionService;
setSizeFull();
configureGrid();
add(configureToolBar(), grid);
libraries.setItems(libraryService.findAll());
updateList();
}
private HorizontalLayout configureToolBar() {
roomField.setClearButtonVisible(true);
roomField.setRequiredIndicatorVisible(true);
roomField.setValueChangeMode(ValueChangeMode.LAZY);
roomField.addValueChangeListener(event -> {
room = event.getValue();
updateList();
});
rackField.setClearButtonVisible(true);
rackField.setRequiredIndicatorVisible(true);
rackField.setValueChangeMode(ValueChangeMode.LAZY);
rackField.addValueChangeListener(event -> {
rack = event.getValue();
updateList();
});
shelfField.setClearButtonVisible(true);
shelfField.setRequiredIndicatorVisible(true);
shelfField.setValueChangeMode(ValueChangeMode.LAZY);
shelfField.addValueChangeListener(event -> {
shelf = event.getValue();
updateList();
});
libraries.setClearButtonVisible(true);
libraries.setRequired(true);
libraries.addValueChangeListener(event -> {
if (event.getValue() != null) address = event.getValue().getAddress();
updateList();
});
return new HorizontalLayout(libraries, roomField, rackField, shelfField);
}
private void configureGrid() {
grid.setSizeFull();
grid.setColumns("code", "dateArrived", "dateLeft");
}
private void updateList() {
if (address != null && room != null && shelf != null && rack != null) {
grid.setItems(editionService.findGivenEditionByPosition(address, room, rack, shelf));
}
}
}
| [
"[email protected]"
] | |
7c5050ff432faf55dcf0d4ab579280636b2d7394 | ba6509d3adbff0155f43194e07fbef680681a653 | /Bamboo/src/main/java/jp/tcmobile/bamboo/repository/ArticleRepository.java | 6f0bac2ed5626bda131e3f67ac9cad017c998160 | [] | no_license | TMtominagatakuya/Bamboo | 680309bf1f90dee6bee2acfe7550114f0bc4314d | ee42c72f9366b2832a6ae60e73d54b2cff4db533 | refs/heads/master | 2020-03-21T17:59:38.344545 | 2018-06-28T22:45:33 | 2018-06-28T22:45:33 | 138,866,175 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,185 | java | package jp.tcmobile.bamboo.repository;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import jp.tcmobile.bamboo.model.Article;
@Repository
public interface ArticleRepository extends JpaRepository<Article, Integer> {
public Page<Article> findAll
(Pageable pageable);
public Page<Article> findByUser_id
(int user_id,Pageable pageable);
public Page<Article> findByUser_idAndTestIsDeleted
(int user_id,byte isDeleted,Pageable pageable);
public Page<Article> findByUser_idAndTestCategoryIdAndTestIsDeleted
(int user_id, int category_id,byte isDeleted, Pageable pageable);
public Page<Article> findByUserIdAndStatusIdAndTestIsDeleted
(int user_id, int status_id,byte isDeleted, Pageable pageable);
public Page<Article> findByUserIdAndTestCategoryIdAndStatusIdAndTestIsDeleted
(int user_id, int category_id, int status_id,byte isDeleted,Pageable pageable);
public List<Article> findAll();
public List<Article> findByUser_id(int user_id);
}
| [
"[email protected]"
] | |
c14cd368f2761854d73b04e433c7d4e6469940ef | 5a152bc99251de1916de2e7ec302987a3b2a2aba | /herddb-net/src/main/java/herddb/network/netty/GenericNettyBrokerLocator.java | b3298d7bbb3c8661295d17e3e2cde1c36651569f | [
"Apache-2.0"
] | permissive | dianacle/herddb | 89292fd0ce64516c928cc1398b0fabd6cb3c6868 | b7d552bc3f6f6864c46e4b6d913dcbf55b853c13 | refs/heads/master | 2021-06-02T17:25:55.308049 | 2016-04-14T13:19:46 | 2016-04-14T13:19:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,724 | java | /*
Licensed to Diennea S.r.l. under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. Diennea S.r.l. 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 herddb.network.netty;
import herddb.network.ServerLocator;
import herddb.network.ServerNotAvailableException;
import herddb.network.ServerRejectedConnectionException;
import herddb.network.Channel;
import herddb.network.ChannelEventListener;
import herddb.network.ConnectionRequestInfo;
import herddb.network.Message;
import java.net.InetSocketAddress;
import java.util.concurrent.TimeoutException;
import herddb.network.ServerHostData;
/**
* Network connection, based on Netty
*
* @author enrico.olivelli
*/
public abstract class GenericNettyBrokerLocator implements ServerLocator {
protected abstract ServerHostData getServer();
protected int connectTimeout = 60000;
protected int socketTimeout = 240000;
public int getConnectTimeout() {
return connectTimeout;
}
public void setConnectTimeout(int connectTimeout) {
this.connectTimeout = connectTimeout;
}
public int getSocketTimeout() {
return socketTimeout;
}
public void setSocketTimeout(int socketTimeout) {
this.socketTimeout = socketTimeout;
}
@Override
public Channel connect(ChannelEventListener messageReceiver, ConnectionRequestInfo workerInfo) throws InterruptedException, ServerNotAvailableException, ServerRejectedConnectionException {
boolean ok = false;
NettyConnector connector = new NettyConnector(messageReceiver);
try {
ServerHostData broker = getServer();
if (broker == null) {
throw new ServerNotAvailableException(new Exception("no broker available"));
}
InetSocketAddress addre = broker.getSocketAddress();
connector.setPort(addre.getPort());
connector.setHost(addre.getAddress().getHostAddress());
connector.setConnectTimeout(connectTimeout);
connector.setSocketTimeout(socketTimeout);
connector.setSsl(broker.isSsl());
NettyChannel channel;
try {
channel = connector.connect();
} catch (final Exception e) {
throw new ServerNotAvailableException(e);
}
Message acceptMessage = Message.CLIENT_CONNECTION_REQUEST(workerInfo.getClientId(), workerInfo.getSharedSecret());
try {
Message connectionResponse = channel.sendMessageWithReply(acceptMessage, 10000);
if (connectionResponse.type == Message.TYPE_ACK) {
ok = true;
return channel;
} else {
throw new ServerRejectedConnectionException("Server rejected connection, response message:" + connectionResponse);
}
} catch (TimeoutException err) {
throw new ServerNotAvailableException(err);
}
} finally {
if (!ok && connector != null) {
connector.close();
}
}
}
}
| [
"[email protected]"
] | |
d9eeac39b89a8b00bfaaa7a3818fa727331642ad | 91ba4b1fc36a3f6ef46252379f7ac523a9aa2d6c | /src/main/java/com/webrest/hobbyte/core/menuTree/IMenuTreeElement.java | 9f55bf47f9ac4fd2e41765963665de2cab0df83b | [
"Apache-2.0"
] | permissive | EWojewodka/Hobbyte | ed853edf6834af471d1638c5b3378e3c4de3f02c | d747426495bacb11eddb3e578b8d17b621314768 | refs/heads/master | 2021-03-30T21:55:45.524383 | 2018-07-03T17:15:44 | 2018-07-03T17:15:44 | 124,572,126 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 722 | java | /**
*
*/
package com.webrest.hobbyte.core.menuTree;
import java.util.List;
/**
* Menu tree element. It's object represent of a XML node from
* menu_tree_schema.xml.
*
* @author Emil Wojewódka
*
* @since 31 mar 2018
*/
public interface IMenuTreeElement {
/**
* Return label name of a element.
*
* @return
*/
String getName();
/**
* Return id of element.
*
* @return
*/
String getId();
/**
* Return path to resource content.
*
* @return
*/
String getUri();
/**
* Return element icon.
*
* @return
*/
String getIcon();
/**
* May return null if it's root element.
*
* @return
*/
IMenuTreeElement getParent();
List<IMenuTreeElement> getChildren();
}
| [
"[email protected]"
] | |
c80daa851db7eff43be8cfdcba7f1bb4824bf2cb | f66d1752c6cbd2731b55f7f8717615ad1b8df2bd | /Java19Thread/src/com/lanou/connection/Fruit.java | e79dc50e12b3ae3d4338e9b837f73e112227ba0b | [] | no_license | leizhaojiang/java1106-mater | 6c98afa6c84b1187077da30e776323120b1f53c7 | 012582802f25bcd5fa3ba78bd51443701494134e | refs/heads/master | 2022-12-06T11:49:13.698891 | 2020-07-02T01:06:50 | 2020-07-02T01:06:50 | 217,801,345 | 0 | 0 | null | 2022-11-24T10:01:28 | 2019-10-27T03:43:06 | JavaScript | UTF-8 | Java | false | false | 506 | java | package com.lanou.connection;
public class Fruit {
private String brand;
private boolean isExist;
public String getBrand() {
return brand;
}
public void setBrand(String brand) {
this.brand = brand;
}
public boolean isExist() {
return isExist;
}
public void setExist(boolean isExist) {
this.isExist = isExist;
}
public Fruit(String brand, boolean isExist) {
super();
this.brand = brand;
this.isExist = isExist;
}
public Fruit() {
// TODO Auto-generated constructor stub
}
}
| [
"[email protected]"
] | |
27753bb3454913d03ee48f4f2b96908bc36ae899 | 7412de55b85a1039a689162ec4943182e5291a8c | /大型网站日志分析项目/源码/lams/src/main/java/cn/edu/zut/lams/service/impl/Top10PageAccessServiceImpl.java | a51da500ea24d58d35e068bfd7d3da016f274e8a | [] | no_license | JIQ1314an/Practice-topics-and-data-engineering | e5e4690b5e62ebe83038e6a12f4c12e9169706c1 | d8b05fa643084ca5d18bd4eb82e6b93f34144d86 | refs/heads/main | 2023-07-03T23:11:33.909501 | 2021-08-08T04:19:08 | 2021-08-08T04:19:08 | 393,848,727 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 563 | java | package cn.edu.zut.lams.service.impl;
import cn.edu.zut.lams.entry.Top10PageAccess;
import cn.edu.zut.lams.mapper.Top10PageAccessMapper;
import cn.edu.zut.lams.service.ITop10PageAccessService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author jiquan
* @since 2020-12-25
*/
@Service
public class Top10PageAccessServiceImpl extends ServiceImpl<Top10PageAccessMapper, Top10PageAccess> implements ITop10PageAccessService {
}
| [
"[email protected]"
] | |
d9a171a8cd2d138ca5a5c8896fc1b9bc71f316ea | 3271e41931a9d3f2e4e8dd14af536c9c25317c14 | /myproject/library/src/main/java/com/lqm/android/library/commonutils/DialogPermissionUtil.java | a31d7eeaa293521fe2689ff7c59e35da89c30437 | [] | no_license | liuqm/myproject | 8ada07ef6e9d7ff45b3d3500d45c20382d8c14ea | 57b27c2fced14430d90d15ee3bb2e8cec6abf04b | refs/heads/master | 2021-01-19T22:40:30.898613 | 2017-03-11T06:16:57 | 2017-03-11T06:16:57 | 83,777,889 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,769 | java | package com.lqm.android.library.commonutils;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
/**
* des:权限对话框管理
*/
public class DialogPermissionUtil {
public static void PermissionDialog(final Activity activity, String content){
Dialog deleteDialog = new AlertDialog.Builder(activity)
.setTitle("提示")
.setMessage(content)
.setPositiveButton("去设置",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
startSettingIntent(activity);
}
}).create();
deleteDialog.show();
}
/**
* 启动app设置授权界面
* @param context
*/
public static void startSettingIntent(Context context) {
Intent localIntent = new Intent();
localIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
if (Build.VERSION.SDK_INT >= 9) {
localIntent.setAction("android.settings.APPLICATION_DETAILS_SETTINGS");
localIntent.setData(Uri.fromParts("package", context.getPackageName(),null));
} else if (Build.VERSION.SDK_INT <= 8) {
localIntent.setAction(Intent.ACTION_VIEW);
localIntent.setClassName("com.android.settings","com.android.settings.InstalledAppDetails");
localIntent.putExtra("com.android.settings.ApplicationPkgName", context.getPackageName());
}
context.startActivity(localIntent);
}
}
| [
"[email protected]"
] | |
f70516003d485b416432b9e9097b3e60f6ca6d05 | 768ac7d2fbff7b31da820c0d6a7a423c7e2fe8b8 | /WEB-INF/java/com/youku/soku/index/om/map/DomainMapBuilder.java | 685020bd578f3d7e5e85410fd004c8ed7d244866 | [] | no_license | aiter/-java-soku | 9d184fb047474f1e5cb8df898fcbdb16967ee636 | 864b933d8134386bd5b97c5b0dd37627f7532d8d | refs/heads/master | 2021-01-18T17:41:28.396499 | 2015-08-24T06:09:21 | 2015-08-24T06:09:21 | 41,285,373 | 0 | 0 | null | 2015-08-24T06:08:00 | 2015-08-24T06:08:00 | null | UTF-8 | Java | false | false | 1,780 | java | package com.youku.soku.index.om.map;
import java.util.Date;
import java.math.BigDecimal;
import org.apache.torque.Torque;
import org.apache.torque.TorqueException;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;
/**
* This class was autogenerated by Torque on:
*
* [Tue Aug 25 17:23:05 CST 2009]
*
*/
public class DomainMapBuilder implements MapBuilder
{
/**
* The name of this class
*/
public static final String CLASS_NAME =
"com.youku.soku.index.om.map.DomainMapBuilder";
/**
* The database map.
*/
private DatabaseMap dbMap = null;
/**
* Tells us if this DatabaseMapBuilder is built so that we
* don't have to re-build it every time.
*
* @return true if this DatabaseMapBuilder is built
*/
public boolean isBuilt()
{
return (dbMap != null);
}
/**
* Gets the databasemap this map builder built.
*
* @return the databasemap
*/
public DatabaseMap getDatabaseMap()
{
return this.dbMap;
}
/**
* The doBuild() method builds the DatabaseMap
*
* @throws TorqueException
*/
public void doBuild() throws TorqueException
{
dbMap = Torque.getDatabaseMap("so");
dbMap.addTable("domain");
TableMap tMap = dbMap.getTable("domain");
tMap.setPrimaryKeyMethod(TableMap.NATIVE);
tMap.setPrimaryKeyMethodInfo("domain");
tMap.addPrimaryKey("domain.ID", new Integer(0) );
tMap.addColumn("domain.URL", "", 100 );
tMap.addColumn("domain.SITE_ID", new Integer(0), 11 );
}
}
| [
"[email protected]"
] | |
bf81d58081da8eae3203640d9db037f8d71d3e93 | 7ce193e67cdaa1b5270be7d9088232e47dbe78be | /app/src/main/java/com/example/facebook/ui/main/PostAdpter.java | 06dc73d8e01bc94db60ae9f24ed9565c5b1c28c3 | [] | no_license | Ahmedtambal/API | d1749f3e7574841f864cd4f4cb27d8bf8102d146 | 167263c6e2ca122876ff52fc24b7842a37847c34 | refs/heads/master | 2023-07-20T07:20:22.777280 | 2021-08-27T17:32:17 | 2021-08-27T17:32:17 | 400,580,635 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,683 | java | package com.example.facebook.ui.main;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.facebook.R;
import com.example.facebook.dj.PostModel;
import java.util.ArrayList;
import java.util.List;
public class PostAdpter extends RecyclerView.Adapter<PostAdpter.PostViewHolder> {
private List<PostModel> moviesList = new ArrayList<>();
@NonNull
@Override
public PostViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
return new PostViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.postitem, parent, false));
}
@Override
public void onBindViewHolder(@NonNull PostViewHolder holder, int position) {
holder.titleTv.setText(moviesList.get(position).getTitle());
holder.userTv.setText(moviesList.get(position).getUserId()+"");
holder.bodyTv.setText(moviesList.get(position).getBody());
}
@Override
public int getItemCount() {
return moviesList.size();
}
public void setList(List<PostModel> moviesList) {
this.moviesList = moviesList;
notifyDataSetChanged();
}
public class PostViewHolder extends RecyclerView.ViewHolder {
TextView titleTv , userTv , bodyTv;
public PostViewHolder(@NonNull View itemView) {
super(itemView);
titleTv = itemView.findViewById(R.id.titleTV);
userTv = itemView.findViewById(R.id.userIdTV);
bodyTv = itemView.findViewById(R.id.bodyTV);
}
}
}
| [
"[email protected]"
] | |
d8ede13b96a433330b6c4dc46a4cc45f11ff5ca2 | 53ef3c0e7ff9da0d5769852b170bdf99609b1e1f | /src/main/java/demo/example/main/DemoApplication.java | fe4507ce928683884d20b4cd2fbabaf275b0782c | [] | no_license | vinodbhooker/finance | ca1a51186c35b476ec4972d06a9d9c524caf926e | eeb109868a086bd8c372b2895b0b63022dd55b35 | refs/heads/master | 2021-05-16T00:28:59.787205 | 2017-10-16T06:43:22 | 2017-10-16T06:43:22 | 107,001,860 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 982 | java | package demo.example.main;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@SpringBootApplication
@EnableAutoConfiguration()
@ComponentScan(basePackages = { "com.example.main","com.example.demo","com.example.demo.repository" })
@EntityScan(basePackages = { "com.example.demo" })
@EnableJpaRepositories(basePackages = { "com.example.demo.repository" })
public class DemoApplication extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
System.out.println("Welcome...");
}
}
| [
"[email protected]"
] | |
d380d17c72b08f82c65d47d1f9bc3d8a8e836c45 | 714669ee35a6f7bd9aa7f93033ac8c0a42991bd5 | /src/main/java/uk/ac/ebi/literature/data_citation/ena/jaxb_beans/TypeIontorrentModel.java | 05850397dd024756a0122964bb00dedbc0a07b5d | [
"Apache-2.0"
] | permissive | FlorianGraef/acc2jats | 866174d97c632e2dc1207fd38b60b47b550dc80d | 20a849d910f22d1efc9a702625c9a218f3c0e4fd | refs/heads/master | 2016-08-12T23:10:18.342080 | 2016-05-18T16:06:53 | 2016-05-18T16:06:53 | 50,928,360 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,786 | java | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.10.09 at 05:04:58 PM BST
//
package uk.ac.ebi.literature.data_citation.ena.jaxb_beans;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for typeIontorrentModel.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="typeIontorrentModel">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Ion Torrent PGM"/>
* <enumeration value="Ion Torrent Proton"/>
* <enumeration value="unspecified"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "typeIontorrentModel", namespace = "SRA.common")
@XmlEnum
public enum TypeIontorrentModel {
@XmlEnumValue("Ion Torrent PGM")
ION_TORRENT_PGM("Ion Torrent PGM"),
@XmlEnumValue("Ion Torrent Proton")
ION_TORRENT_PROTON("Ion Torrent Proton"),
@XmlEnumValue("unspecified")
UNSPECIFIED("unspecified");
private final String value;
TypeIontorrentModel(String v) {
value = v;
}
public String value() {
return value;
}
public static TypeIontorrentModel fromValue(String v) {
for (TypeIontorrentModel c: TypeIontorrentModel.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
| [
"[email protected]"
] | |
64c6bc26ac453a2b4a4b8a9d408546ae179a0150 | 5fb096800765252dcaac1401bf8ddae06ab7af83 | /src/ads/QuinzeOuVinteECincoPorCento.java | a5bdab7751c60714d36c90f82cf0277e0e2e2536 | [] | no_license | andersonluisribeiro/srp-java | ab1c64b7d9f29f238681d37272266eb091784e2c | 574c1142d1ac7571e5f7068383157591b02ffc04 | refs/heads/master | 2020-08-23T19:56:13.877235 | 2019-10-22T01:24:46 | 2019-10-22T01:24:46 | 216,697,061 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 315 | java | package ads;
public class QuinzeOuVinteECincoPorCento implements RegraDeCalculo {
@Override
public double calcula(Funcionario funcionario) {
double salario = funcionario.getSalario();
if(salario >= 3000){
return salario * 0.75;
}
return salario * 0.85;
}
}
| [
"[email protected]"
] | |
8b2e6d9857932f15286e9a78ce046d7ed90b01c5 | ee1b2eea3022b92ca841c67b090b5710fc1e7797 | /biosun--20140308/src/org/logicalcobwebs/proxool/Version.java | eb2b10bd6fdb324f9e1decde78c9cffa290e62ee | [] | no_license | victor-csjy/biosun | a99c7de33f6cd8405e95cdb7e802094d70ad1760 | 9bd0238509e0e72e3ca6f6ec620c863ca0afd028 | refs/heads/master | 2021-01-17T22:19:22.929336 | 2017-03-07T12:15:20 | 2017-03-07T12:15:20 | 84,193,545 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,532 | java | /*
* This software is released under a licence similar to the Apache Software Licence.
* See org.logicalcobwebs.proxool.package.html for details.
* The latest version is available at http://proxool.sourceforge.net
*/
package org.logicalcobwebs.proxool;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Tells you the version. You can tell what sort of release it is
* from the version. For instance:
*
* 1.0.0 (1 January)
* A proper released binary file at version 1.0.
*
* 1.0.0+
* Built from the source based on version 1.0 (but there is no
* way of knowing whether the source has been altered).
*
* 1.0.1 (2 January)
* A bug fix release built on January 2nd.
*
* @version $Revision: 1.20 $, $Date: 2006/01/18 14:40:02 $
* @author bill
* @author $Author: billhorsman $ (current maintainer)
* @since Proxool 0.6
*/
public class Version {
private static final Log LOG = LogFactory.getLog(Version.class);
/**
* This is changed by the Ant script when you build from the
* source code.
*/
private static final String VERSION = null;
private static final String BUILD_DATE = null;
private static final String CVS = "0.9.0RC3+";
public static String getVersion() {
StringBuffer version = new StringBuffer();
if (VERSION != null) {
version.append(VERSION);
} else {
/**
* This means that we haven't used the Ant script so this
* is just our best guess at the version.
*/
version.append(CVS);
}
if (BUILD_DATE != null) {
version.append(" (");
version.append(BUILD_DATE);
version.append(")");
}
return version.toString();
}
/**
* Convenient way of verifying version
* @param args none required (any sent are ignored)
*/
public static void main(String[] args) {
LOG.info("Version " + getVersion());
}
}
/*
Revision history:
$Log: Version.java,v $
Revision 1.20 2006/01/18 14:40:02 billhorsman
Unbundled Jakarta's Commons Logging.
Revision 1.19 2005/09/26 21:47:46 billhorsman
no message
Revision 1.18 2003/12/13 12:21:54 billhorsman
Release 0.8.3
Revision 1.17 2003/11/05 00:19:48 billhorsman
new revision
Revision 1.16 2003/10/27 13:13:58 billhorsman
new version
Revision 1.15 2003/10/26 15:23:30 billhorsman
0.8.0
Revision 1.14 2003/10/01 19:31:26 billhorsman
0.8.0RC2
Revision 1.13 2003/09/11 11:17:52 billhorsman
*** empty log message ***
Revision 1.12 2003/08/30 11:43:32 billhorsman
Update for next release.
Revision 1.11 2003/07/23 06:54:48 billhorsman
draft JNDI changes (shouldn't effect normal operation)
Revision 1.10 2003/06/18 10:04:47 billhorsman
versioning
Revision 1.9 2003/03/12 15:59:53 billhorsman
*** empty log message ***
Revision 1.8 2003/03/03 11:11:58 billhorsman
fixed licence
Revision 1.7 2003/02/21 15:19:09 billhorsman
update version
Revision 1.6 2003/02/12 00:50:34 billhorsman
change the CVS version to be x.y+ (a bit more informative)
Revision 1.5 2003/02/06 17:41:05 billhorsman
now uses imported logging
Revision 1.4 2003/01/21 10:56:40 billhorsman
new version approach
Revision 1.3 2003/01/16 11:45:02 billhorsman
changed format from x.y+ to x.y.*
Revision 1.2 2003/01/16 11:22:00 billhorsman
new version
Revision 1.1 2003/01/14 23:50:59 billhorsman
keeps track of version
*/ | [
"[email protected]"
] | |
5a50691d5fd3cecd0bfb28038a141e7d73cad612 | 59d56ad52a7e016883b56b73761104a17833a453 | /src/main/java/com/whatever/ProductService/Route.java | 66740c01b0b42c3574a504772e2b778f66d0df84 | [] | no_license | zapho/cxf-client-quarkus | 3c330a3a5f370cce21c5cd1477ffbe274d1bba59 | 6e147d44b9ea9cc455d52f0efe234ef787b336c4 | refs/heads/master | 2023-01-22T03:33:27.579072 | 2020-12-08T14:55:27 | 2020-12-08T14:55:27 | 319,641,033 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,559 | java |
package com.whatever.ProductService;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java pour route complex type.
*
* <p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe.
*
* <pre>
* <complexType name="route">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="outOfSPC" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="parentId" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="ranking" type="{http://www.w3.org/2001/XMLSchema}int"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "route", propOrder = {
"id",
"name",
"outOfSPC",
"parentId",
"ranking"
})
public class Route {
@XmlElement(required = true, type = Integer.class, nillable = true)
protected Integer id;
@XmlElement(required = true, nillable = true)
protected String name;
protected boolean outOfSPC;
@XmlElement(required = true, type = Integer.class, nillable = true)
protected Integer parentId;
protected int ranking;
/**
* Obtient la valeur de la propriété id.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getId() {
return id;
}
/**
* Définit la valeur de la propriété id.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setId(Integer value) {
this.id = value;
}
/**
* Obtient la valeur de la propriété name.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Définit la valeur de la propriété name.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Obtient la valeur de la propriété outOfSPC.
*
*/
public boolean isOutOfSPC() {
return outOfSPC;
}
/**
* Définit la valeur de la propriété outOfSPC.
*
*/
public void setOutOfSPC(boolean value) {
this.outOfSPC = value;
}
/**
* Obtient la valeur de la propriété parentId.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getParentId() {
return parentId;
}
/**
* Définit la valeur de la propriété parentId.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setParentId(Integer value) {
this.parentId = value;
}
/**
* Obtient la valeur de la propriété ranking.
*
*/
public int getRanking() {
return ranking;
}
/**
* Définit la valeur de la propriété ranking.
*
*/
public void setRanking(int value) {
this.ranking = value;
}
}
| [
"[email protected]"
] | |
84dcfe5f2a9a094840360bb190386ab05b76a730 | 8f33d18ecbe26c42f7fccd85e374136d4c88c7b3 | /src/main/java/com/app/api/requestbean/LoginBean.java | 04ab5f0df091d370f6c40738b3f99f9204f07c44 | [] | no_license | manojsingh3889/schooltrack | 9e880d70d9f85221393de57955fc1b663b8e8cc2 | 901d678cd3b97996763b58bbf673db340056d18f | refs/heads/master | 2021-01-13T05:24:26.251227 | 2017-03-17T07:29:41 | 2017-03-17T07:29:41 | 81,410,881 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 494 | java | package com.app.api.requestbean;
public class LoginBean {
private String email;
private String password;
public LoginBean(String email, String password) {
super();
this.email = email;
this.password = password;
}
public LoginBean() {
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}
| [
"[email protected]"
] | |
837cc098c74e6ace02843d63960b040ed716451a | 647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4 | /com.tencent.mm/classes.jar/com/tencent/mm/plugin/appbrand/ui/collection/AppBrandCollectionDisplayVerticalList$$ExternalSyntheticLambda4.java | c5685d93811bde680f3689a8199fbe7f50e5f94f | [] | no_license | tsuzcx/qq_apk | 0d5e792c3c7351ab781957bac465c55c505caf61 | afe46ef5640d0ba6850cdefd3c11badbd725a3f6 | refs/heads/main | 2022-07-02T10:32:11.651957 | 2022-02-01T12:41:38 | 2022-02-01T12:41:38 | 453,860,108 | 36 | 9 | null | 2022-01-31T09:46:26 | 2022-01-31T02:43:22 | Java | UTF-8 | Java | false | false | 516 | java | package com.tencent.mm.plugin.appbrand.ui.collection;
import com.tencent.mm.ui.base.k.b;
public final class AppBrandCollectionDisplayVerticalList$$ExternalSyntheticLambda4
implements k.b
{
public final boolean onFinish(CharSequence arg1) {}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes8.jar
* Qualified Name: com.tencent.mm.plugin.appbrand.ui.collection.AppBrandCollectionDisplayVerticalList..ExternalSyntheticLambda4
* JD-Core Version: 0.7.0.1
*/ | [
"[email protected]"
] | |
82d2a6110dec537932da51520c6ac265ef8b581b | fc160694094b89ab09e5c9a0f03db80437eabc93 | /java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleName.java | 9159252d43e3363e3ad602ff441325c52f2cc760 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | googleapis/google-cloud-java | 4f4d97a145e0310db142ecbc3340ce3a2a444e5e | 6e23c3a406e19af410a1a1dd0d0487329875040e | refs/heads/main | 2023-09-04T09:09:02.481897 | 2023-08-31T20:45:11 | 2023-08-31T20:45:11 | 26,181,278 | 1,122 | 685 | Apache-2.0 | 2023-09-13T21:21:23 | 2014-11-04T17:57:16 | Java | UTF-8 | Java | false | false | 6,193 | java | /*
* Copyright 2023 Google LLC
*
* 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
*
* https://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.google.cloud.notebooks.v1;
import com.google.api.pathtemplate.PathTemplate;
import com.google.api.resourcenames.ResourceName;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableMap;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Generated;
// AUTO-GENERATED DOCUMENTATION AND CLASS.
@Generated("by gapic-generator-java")
public class ScheduleName implements ResourceName {
private static final PathTemplate PROJECT_LOCATION_SCHEDULE =
PathTemplate.createWithoutUrlEncoding(
"projects/{project}/location/{location}/schedules/{schedule}");
private volatile Map<String, String> fieldValuesMap;
private final String project;
private final String location;
private final String schedule;
@Deprecated
protected ScheduleName() {
project = null;
location = null;
schedule = null;
}
private ScheduleName(Builder builder) {
project = Preconditions.checkNotNull(builder.getProject());
location = Preconditions.checkNotNull(builder.getLocation());
schedule = Preconditions.checkNotNull(builder.getSchedule());
}
public String getProject() {
return project;
}
public String getLocation() {
return location;
}
public String getSchedule() {
return schedule;
}
public static Builder newBuilder() {
return new Builder();
}
public Builder toBuilder() {
return new Builder(this);
}
public static ScheduleName of(String project, String location, String schedule) {
return newBuilder().setProject(project).setLocation(location).setSchedule(schedule).build();
}
public static String format(String project, String location, String schedule) {
return newBuilder()
.setProject(project)
.setLocation(location)
.setSchedule(schedule)
.build()
.toString();
}
public static ScheduleName parse(String formattedString) {
if (formattedString.isEmpty()) {
return null;
}
Map<String, String> matchMap =
PROJECT_LOCATION_SCHEDULE.validatedMatch(
formattedString, "ScheduleName.parse: formattedString not in valid format");
return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("schedule"));
}
public static List<ScheduleName> parseList(List<String> formattedStrings) {
List<ScheduleName> list = new ArrayList<>(formattedStrings.size());
for (String formattedString : formattedStrings) {
list.add(parse(formattedString));
}
return list;
}
public static List<String> toStringList(List<ScheduleName> values) {
List<String> list = new ArrayList<>(values.size());
for (ScheduleName value : values) {
if (value == null) {
list.add("");
} else {
list.add(value.toString());
}
}
return list;
}
public static boolean isParsableFrom(String formattedString) {
return PROJECT_LOCATION_SCHEDULE.matches(formattedString);
}
@Override
public Map<String, String> getFieldValuesMap() {
if (fieldValuesMap == null) {
synchronized (this) {
if (fieldValuesMap == null) {
ImmutableMap.Builder<String, String> fieldMapBuilder = ImmutableMap.builder();
if (project != null) {
fieldMapBuilder.put("project", project);
}
if (location != null) {
fieldMapBuilder.put("location", location);
}
if (schedule != null) {
fieldMapBuilder.put("schedule", schedule);
}
fieldValuesMap = fieldMapBuilder.build();
}
}
}
return fieldValuesMap;
}
public String getFieldValue(String fieldName) {
return getFieldValuesMap().get(fieldName);
}
@Override
public String toString() {
return PROJECT_LOCATION_SCHEDULE.instantiate(
"project", project, "location", location, "schedule", schedule);
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o != null || getClass() == o.getClass()) {
ScheduleName that = ((ScheduleName) o);
return Objects.equals(this.project, that.project)
&& Objects.equals(this.location, that.location)
&& Objects.equals(this.schedule, that.schedule);
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= Objects.hashCode(project);
h *= 1000003;
h ^= Objects.hashCode(location);
h *= 1000003;
h ^= Objects.hashCode(schedule);
return h;
}
/** Builder for projects/{project}/location/{location}/schedules/{schedule}. */
public static class Builder {
private String project;
private String location;
private String schedule;
protected Builder() {}
public String getProject() {
return project;
}
public String getLocation() {
return location;
}
public String getSchedule() {
return schedule;
}
public Builder setProject(String project) {
this.project = project;
return this;
}
public Builder setLocation(String location) {
this.location = location;
return this;
}
public Builder setSchedule(String schedule) {
this.schedule = schedule;
return this;
}
private Builder(ScheduleName scheduleName) {
this.project = scheduleName.project;
this.location = scheduleName.location;
this.schedule = scheduleName.schedule;
}
public ScheduleName build() {
return new ScheduleName(this);
}
}
}
| [
"[email protected]"
] | |
3eccbe261abc71c9876a23117b1ac0f252b4347b | d9367e44d7006ce21adc2c8067b54447921d3933 | /src/main/java/com/mdm/processor/exception/BaseExceptionUtil.java | c05316507180904236fe4bc0294d1218d1d3917f | [] | no_license | harikrishnacognizant/MOC | 6a4e2c3cd56acdeb555feef53e59fef33c7e4459 | be6ce741c95ff2257be3004f3865f11b1c17ba69 | refs/heads/master | 2016-09-06T06:56:29.903483 | 2011-12-13T06:24:54 | 2011-12-13T06:24:54 | 2,899,026 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 510 | java | package com.mdm.processor.exception;
public class BaseExceptionUtil {
public static String printStackTrace(Exception ex) {
StringBuffer strBuf = new StringBuffer("");
StackTraceElement[] steArr = ex.getStackTrace();
Throwable th = ex.fillInStackTrace();
if (steArr != null && steArr.length > 0) {
strBuf.append(th);
for (StackTraceElement ste : steArr) {
strBuf.append(ste.toString());
strBuf.append("\n");
}
return strBuf.toString();
} else
return strBuf.toString();
}
}
| [
"[email protected]"
] | |
af38fa0bd1f82cda8557f3ea317a735fb9a9b142 | 00478fe54dfb224823e757945af9a5b75327df13 | /GpTsmWsAndroid/src/org/mbds/wolf/tsm/gp/systems/messaging2_1_0/ksoap2/services/types/requests/ExchangeServiceDataRequestType.java | 32e2776f6e806f000be09775c67fce7f3038e1ca | [] | no_license | amlesas/GpTsmWebServiceAndroid | fc3837eb08ad942cae72277af46e7d89d4735679 | 985a7b87fd65048258157ed410b1a80f36fc9572 | refs/heads/master | 2020-05-20T06:33:06.306778 | 2014-07-24T09:35:34 | 2014-07-24T09:35:34 | 21,740,996 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 4,280 | java | package org.mbds.wolf.tsm.gp.systems.messaging2_1_0.ksoap2.services.types.requests;
//----------------------------------------------------
//
// Generated by www.easywsdl.com
// Version: 3.0.3.5
//
// Created by amlesas Development at 08-07-2014
//
//---------------------------------------------------
import java.util.Hashtable;
import org.ksoap2.serialization.*;
import java.util.ArrayList;
import org.ksoap2.serialization.PropertyInfo;
import org.mbds.wolf.tsm.gp.systems.messaging2_1_0.ksoap2.ExtendedSoapSerializationEnvelope;
import org.mbds.wolf.tsm.gp.systems.messaging2_1_0.ksoap2.services.types.ServiceInstanceReferenceType;
import org.mbds.wolf.tsm.gp.systems.messaging2_1_0.ksoap2.services.types.commands.ExchangeServiceDataCommandType;
public class ExchangeServiceDataRequestType extends BasicRequestType implements KvmSerializable
{
public ServiceInstanceReferenceType ServiceInstanceReference;
public ArrayList< ExchangeServiceDataCommandType>ExchangeServiceDataCommand =new ArrayList<ExchangeServiceDataCommandType>();
public ExchangeServiceDataRequestType ()
{
}
public ExchangeServiceDataRequestType (AttributeContainer inObj,ExtendedSoapSerializationEnvelope envelope)
{
super(inObj, envelope);
if (inObj == null)
return;
SoapObject soapObject=(SoapObject)inObj;
if (soapObject.hasProperty("ServiceInstanceReference"))
{
java.lang.Object j = soapObject.getProperty("ServiceInstanceReference");
this.ServiceInstanceReference = (ServiceInstanceReferenceType)envelope.get(j,ServiceInstanceReferenceType.class);
}
if (soapObject.hasProperty("ExchangeServiceDataCommand"))
{
int size = soapObject.getPropertyCount();
this.ExchangeServiceDataCommand = new ArrayList<ExchangeServiceDataCommandType>();
for (int i0=0;i0< size;i0++)
{
PropertyInfo info=new PropertyInfo();
soapObject.getPropertyInfo(i0, info);
java.lang.Object obj = info.getValue();
if (obj!=null && info.name.equals("ExchangeServiceDataCommand"))
{
java.lang.Object j =info.getValue();
ExchangeServiceDataCommandType j1= (ExchangeServiceDataCommandType)envelope.get(j,ExchangeServiceDataCommandType.class);
this.ExchangeServiceDataCommand.add(j1);
}
}
}
}
@Override
public java.lang.Object getProperty(int propertyIndex) {
int count = super.getPropertyCount();
//!!!!! If you have a compilation error here then you are using org.mbds.wolf.tsm.gp.systems.messaging2_1_0 version of ksoap2 library. Please upgrade to the latest version.
//!!!!! You can find a correct version in Lib folder from generated zip file!!!!!
if(propertyIndex==count+0)
{
return ServiceInstanceReference;
}
if(propertyIndex>=count+1 && propertyIndex< count+ 1+this.ExchangeServiceDataCommand.size())
{
return ExchangeServiceDataCommand.get(propertyIndex-(count+1));
}
return super.getProperty(propertyIndex);
}
@Override
public int getPropertyCount() {
return super.getPropertyCount()+1+ExchangeServiceDataCommand.size();
}
@Override
public void getPropertyInfo(int propertyIndex, @SuppressWarnings("rawtypes") Hashtable arg1, PropertyInfo info)
{
int count = super.getPropertyCount();
if(propertyIndex==count+0)
{
info.type = ServiceInstanceReferenceType.class;
info.name = "ServiceInstanceReference";
info.namespace= "http://namespaces.globalplatform.org/systems-messaging/2.1.0";
}
if(propertyIndex>=count+1 && propertyIndex <= count+1+this.ExchangeServiceDataCommand.size())
{
info.type = ExchangeServiceDataCommandType.class;
info.name = "ExchangeServiceDataCommand";
info.namespace= "http://namespaces.globalplatform.org/systems-messaging/2.1.0";
}
super.getPropertyInfo(propertyIndex,arg1,info);
}
@Override
public void setProperty(int arg0, java.lang.Object arg1)
{
}
}
| [
"[email protected]"
] | |
c0a90673180d533e29405d568d9e2c65c1e27f13 | 18117b7906e2152c5db477d473e7f9910d5e5ef1 | /app/src/main/java/com/xiaoyuan54/child/edu/app/ui/dialog/DialogControl.java | 392a4a2d46a2997481322a3b7c189a8a4014ac7a | [] | no_license | LIJFU/AQing | 39b849ca61081b575fdbffd0a4d66c1eebba8d53 | ac3abd72116ab79193b76a5e747b1df711aea02a | refs/heads/master | 2020-06-13T15:18:23.979126 | 2017-09-06T01:18:28 | 2017-09-06T01:18:28 | 75,367,127 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 334 | java | package com.xiaoyuan54.child.edu.app.ui.dialog;
import android.app.ProgressDialog;
public interface DialogControl {
public abstract void hideWaitDialog();
public abstract ProgressDialog showWaitDialog();
public abstract ProgressDialog showWaitDialog(int resid);
public abstract ProgressDialog showWaitDialog(String text);
}
| [
"[email protected]"
] | |
fd631eaa439cd3427113ad29232b58de81badcce | 235a465ed9a8f91d202a0670d393fb22b04a127b | /br.org.cesar.reuse.client/src/br/org/cesar/reuse/client/SessionState.java | c70eeff2058e88a7dfbdf55433cd4a5268fd95b5 | [] | no_license | joaocalixto/reuso | 587641e78a3cf19030e04d9bf2f61c931b85059e | 11db47298e3b32d310cf38619fe087eca2254225 | refs/heads/master | 2016-09-09T21:29:48.616098 | 2014-09-21T19:20:00 | 2014-09-21T19:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 836 | java | package br.org.cesar.reuse.client;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import br.org.cesar.reuse.commons.model.Repair;
public class SessionState {
public static final String USER_SESSION = "user_session";
public static final String REPAIR_REQUEST = "repair_session";
public static void setTypeUserSession(HttpSession session, int userType){
session.setAttribute(USER_SESSION, userType);
}
public static int getTypeUserSession(HttpSession session){
return (Integer) session.getAttribute(USER_SESSION);
}
public static void setRepairRequest(HttpServletRequest request, Repair repair){
request.setAttribute(REPAIR_REQUEST, repair);
}
public static Repair getRepairRequest(HttpServletRequest request){
return (Repair) request.getAttribute(REPAIR_REQUEST);
}
}
| [
"[email protected]"
] | |
d2f7575f6768380d91158e4270f43bb60fae0010 | 4852d3b86efb4d72f16a6706b2f4fdf9d99b0fe5 | /app/src/main/java/org/spartanweb/mathoff/Problem.java | 610f156d4190f98cca2cec177eedf9158f548f76 | [] | no_license | ItsHighNoon1/MathOff | c7616179b05ba2edb97f709dec29ccc410ee02db | dd060c30d9fcfc7634b96d68fd2c341f59967008 | refs/heads/master | 2022-04-01T02:19:15.147505 | 2020-01-26T18:32:19 | 2020-01-26T18:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,695 | java | package org.spartanweb.mathoff;
import java.util.Random;
public class Problem {
private Random rand;
private String problem;
private int value;
private int ans;
public Problem() {
rand = new Random();
generate();
}
public Problem(Random random) {
rand = random;
generate();
}
private void generate() {
int op = rand.nextInt(4);
switch(op) {
case 0: {
int a = rand.nextInt(20) + 1;
int b = rand.nextInt(21);
ans = a + b;
value = ans / 3;
problem = a + " + " + b;
break;
}
case 1: {
int a = rand.nextInt(40) + 1;
int b = rand.nextInt(30);
ans = a - b;
value = a / 3 + b / 3;
problem = a + " - " + b;
break;
}
case 2: {
int a = rand.nextInt(15) - 5;
int b = rand.nextInt(11);
ans = a * b;
value = (a + 5) / 3 + b + 10;
problem = a + " * " + b;
break;
}
case 3: {
int b = rand.nextInt(9) + 1;
ans = rand.nextInt(10) - 5;
if(ans == 0) { ans = 5; }
int a = ans * b;
value = b * 2 + 5;
problem = a + " / " + b;
break;
}
}
}
public String getProblem() {
return problem;
}
public int getValue() {
return value;
}
public int getAnswer() {
return ans;
}
}
| [
"[email protected]"
] | |
54639fbf20eace05c174a9708ccb06dbc629cc3f | b80d662d11f734b44baf29bd2140b0775854a4ca | /dingding/src/main/java/com/mml/dingding/controller/TestController.java | 18a6eb98a277b177d808660c3930bdb67cc522a5 | [] | no_license | csyuanm/hello-world | 956cd5db18806f298e01278a8c4e6c904d952923 | 913a7c9f149e782d1d16f8bebe3ab5d50d8bc862 | refs/heads/master | 2022-06-23T06:10:14.649111 | 2019-06-17T02:54:48 | 2019-06-17T02:54:48 | 96,996,242 | 0 | 0 | null | 2022-06-17T01:50:52 | 2017-07-12T10:38:00 | TSQL | UTF-8 | Java | false | false | 9,236 | java | package com.mml.dingding.controller;
import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.JsonNode;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
import com.mml.dingding.common.Constants;
import com.mml.dingding.model.ACRequest;
@RestController
@RequestMapping("/test")
public class TestController {
private static Logger LOGGER = Logger.getLogger(TestController.class);
@RequestMapping("send")
public String send() throws Exception {
ACRequest acRequest = new ACRequest();
acRequest.setName("John");
acRequest.setFollowerUserId("123456");
acRequest.setMobile("110");
acRequest.setStateCode("+86");
JSONObject jsonObject = JSONObject.parseObject(JSONObject.toJSONString(acRequest));
HttpResponse<String> response = Unirest.post("http://127.0.0.1/index/ac").queryString(jsonObject).asString();
return response.getBody() + ":" + response.getStatus();
}
/**
* 测试发起审批实例
* @return
* @throws Exception
*/
@RequestMapping("process")
public String sendDetail() throws Exception{
String s = "02402648081143016,manager4417";
String access_token = Constants.getAccessToken();
String process_code="PROC-GTHKCO8W-4MCN48TKOW9ZT0BK7NAF2-6XF1B76J-R";
String url="https://eco.taobao.com/router/rest?method=dingtalk.smartwork.bpms.processinstance.create&v=2.0&format=json&session="+access_token; //+"&process_code="+process_code
JSONArray jarray = new JSONArray();
// for(int i =0; i<s.length; i++){
// jarray.add(s[i]);
// }
System.out.println("发送人为。。"+jarray);
JSONObject obj = new JSONObject();
obj.put("name", "报销金额");
obj.put("value", "104352");
//obj.put("ext_value ", "总天数:1");
JSONObject jobj = new JSONObject();
// jobj.put("method", "dingtalk.smartwork.bpms.processinstance.create");
// jobj.put("session", access_token);
// jobj.put("v", "2.0");
// jobj.put("format", "json");
jobj.put("agent_id", 115257478);
jobj.put("process_code", process_code); //审批类id
jobj.put("originator_user_id", "02402648081143016"); //发起人id
jobj.put("dept_id", 45988760);//发起人所在部门
//jobj.put("approvers", jarray.toJSONString()); //审批人userid列表
//jobj.put("form_component_values", obj.toJSONString()); //审批内容
HttpResponse<String> response = Unirest.post(url)
.header("Access", "application/json")
.queryString(jobj)
.queryString("form_component_values",obj) //json或者数组格式的需要在这里设置??
.queryString("approvers",s)
.asString();
System.out.println("解析响应正文...."+response.getBody());
System.out.println("HTTP响应状态代码..."+response.getStatus());
System.out.println("HTTP响应状态文本..."+response.getStatusText());
System.out.println("HTTP响应标头..."+response.getHeaders());
System.out.println("未解析的响应正文..."+response.getRawBody());
System.out.println("解析响应正文...."+response.getBody());
return response.toString();
}
//添加外部联系人
@RequestMapping("addOuterMember")
public String addOuterMember(){
String ret;
String ret2;
JSONObject obj = new JSONObject();
obj.put("corpid",Constants.CORP_ID);
obj.put("corpsecret", Constants.SECRET_ID);
try {
HttpResponse<String> response = Unirest.get("https://oapi.dingtalk.com/gettoken")
.header("accept", "application/json")
// .routeParam("corpid", Constants.CORP_ID) value替换key
.queryString(obj) //传递的参数对象
.asString();
System.out.println("解析响应正文...."+response.getBody());
System.out.println("HTTP响应状态代码..."+response.getStatus());
System.out.println("HTTP响应状态文本..."+response.getStatusText());
System.out.println("HTTP响应标头..."+response.getHeaders());
System.out.println("未解析的响应正文..."+response.getRawBody());
JSONObject obj2 = JSONObject.parseObject(response.getBody());
String token = obj2.getString("access_token");
String s1 = "13908691234";
String s3 = "111";
Number[] n = {1};
JSONArray jsonArray = new JSONArray(); //讲数组格式保存在json中
for(int i =0; i<n.length; i++){
jsonArray.add(n[i]);
}
JSONObject obj3 = new JSONObject();
obj3.put("label_ids", jsonArray);
obj3.put("name", "hahaha");
obj3.put("mobile", s1);
obj3.put("follower_userid", s3);
obj3.put("state_code", "86");
HttpResponse<JsonNode> res = Unirest.post("https://eco.taobao.com/router/rest?method=dingtalk.corp.ext.add&v=2.0&format=json&session="+token)
.header("access", "application/json")
.queryString("contact",obj3)
.asJson();
System.out.println("解析响应正文...."+res.getBody());
ret = res.getBody().toString();
return ret;
} catch (UnirestException e) {
e.printStackTrace();
}
return "";
}
/**
* 群回话
* @return
*/
@RequestMapping("post")
public String doPost(){
String ret;
JSONObject obj = new JSONObject();
obj.put("corpid",Constants.CORP_ID);
obj.put("corpsecret", Constants.SECRET_ID);
try {
HttpResponse<String> response = Unirest.get("https://oapi.dingtalk.com/gettoken")
.header("accept", "application/json")
// .routeParam("corpid", Constants.CORP_ID) value替换key
.queryString(obj) //传递的参数对象
.asString();
JSONObject obj2 = JSONObject.parseObject(response.getBody());
String token = obj2.getString("access_token");
String[] s = {"manager4417"};
JSONArray jsonArray = new JSONArray(); //讲数组格式保存在json中
for(int i =0; i<s.length; i++){
jsonArray.add(s[i]);
}
JSONObject obj3 = new JSONObject();
obj3.put("name", "测试部门");
obj3.put("owner", "manager4417");
obj3.put("useridlist", jsonArray);
// obj3.put("follower_userid", s3);
// obj3.put("state_code", "86");
HttpResponse<JsonNode> res = Unirest.post("https://oapi.dingtalk.com/chat/create?access_token=973c27f6ede033fe9f471d5df5e367c5")
.header("access", "application/json")
.queryString(obj3)
.asJson();
System.out.println("....");
System.out.println("....");
System.out.println("解析响应正文...."+res.getBody());
ret = res.getBody().toString();
return ret;
} catch (UnirestException e) {
e.printStackTrace();
}
return "";
}
@RequestMapping("post2")
public String doPost2(){
String ret;
JSONObject obj = new JSONObject();
obj.put("corpid",Constants.CORP_ID);
obj.put("corpsecret", Constants.SECRET_ID);
try {
HttpResponse<String> response = Unirest.get("https://oapi.dingtalk.com/gettoken")
.header("accept", "application/json")
.queryString(obj) //传递的参数对象
.asString();
System.out.println("解析响应正文...."+response.getBody());
System.out.println("HTTP响应状态代码..."+response.getStatus());
System.out.println("HTTP响应状态文本..."+response.getStatusText());
System.out.println("HTTP响应标头..."+response.getHeaders());
System.out.println("未解析的响应正文..."+response.getRawBody());
JSONObject obj2 = JSONObject.parseObject(response.getBody());
String token = obj2.getString("access_token");
String[] s = {"manager4417"};
String url = "https://eco.taobao.com/router/rest?method=dingtalk.corp.message.corpconversation.asyncsend&v=2.0&format=json&session="+token;
JSONObject objall = new JSONObject();
JSONObject msg = new JSONObject();
JSONObject content = new JSONObject();
String[] userid = {"1"};
content.put("content", "生日祝福语");
msg.put("msgtype", "text");
msg.put("text", content);
//list.add("manager4417");
JSONArray jsonArray = new JSONArray(); //讲数组格式保存在json中
for(int i =0; i<s.length; i++){
jsonArray.add(s[i]);
}
objall.put("msgtype ", "text");
objall.put("agent_id", 115257477);
objall.put("user_id_list", jsonArray);
objall.put("msgcontent", msg);
JSONObject obj3 = new JSONObject();
obj3.put("name", "测试部门");
obj3.put("owner", "manager4417");
obj3.put("useridlist", jsonArray);
// obj3.put("follower_userid", s3);
// obj3.put("state_code", "86");
HttpResponse<JsonNode> res = Unirest.post("https://eco.taobao.com/router/rest?method=dingtalk.corp.message.corpconversation.asyncsend&v=2.0&format=json&session="+token)
.header("Access", "application/json")
.queryString(objall)
.asJson();
System.out.println("....");
System.out.println("....");
System.out.println("解析响应正文...."+res.getBody());
ret = res.getBody().toString();
return ret;
} catch (UnirestException e) {
e.printStackTrace();
}
return "";
}
}
| [
"[email protected]"
] | |
4d8b94b72f4bd373d84a341f9b2eee1024e7967a | 17200d7d2fa6130446e3b084c6226b569b7c333a | /src/main/java/com/Spring/Thymeleaf/data/repository/ReservationRepository.java | a5e748e924c5b8d6690d7b4f4c30b4d31eba16a9 | [] | no_license | verma-saurabh/Spring-Thymeleaf | 5ea51c25e3970430e3ccfaf9fb5f8b03829f42ef | cf6a5ea9c90bb1f51bc176244a4b51af010623bb | refs/heads/master | 2022-06-21T20:14:31.045210 | 2019-11-21T12:39:24 | 2019-11-21T12:39:24 | 222,899,252 | 1 | 0 | null | 2022-06-21T02:16:43 | 2019-11-20T09:25:15 | Java | UTF-8 | Java | false | false | 397 | java | package com.Spring.Thymeleaf.data.repository;
import com.Spring.Thymeleaf.data.entity.Reservation;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.sql.Date;
import java.util.List;
@Repository
public interface ReservationRepository extends CrudRepository<Reservation, Long> {
List<Reservation> findByDate(Date date);
} | [
"NA"
] | NA |
214073dd273abb46ea33f3e133ccd2002897c13f | f9ee8cbc193cee753ebb2fab1adbc312f6c90b2f | /src/main/java/net/videmantay/server/rest/DeleteJobs.java | 7e11045f1e8e938bf1a612a2a7c8597f05b7027b | [
"MIT"
] | permissive | lausd-teacher/videmantay | 9673acc30aace235d14db9fc01e8c9a8940cee2f | e891558a1368a0e2bcb8d978eb18d3ecf7e2f7cf | refs/heads/master | 2021-01-19T21:47:45.606293 | 2018-01-03T22:56:22 | 2018-01-03T22:56:22 | 101,253,100 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 586 | java | package net.videmantay.server.rest;
import com.google.appengine.api.taskqueue.DeferredTask;
import net.videmantay.server.entity.JobBoard;
import static net.videmantay.server.DB.db;
import java.util.List;
public class DeleteJobs implements DeferredTask {
private final Long rosterId;
public DeleteJobs(Long id){
rosterId = id;
}
@Override
public void run() {
List<JobBoard> jobs = db().load().type(JobBoard.class).filter("rosterId", rosterId).list();
if(jobs != null){
for(JobBoard jb:jobs){
db().delete().keys(jb.jobKeys);
}
db().delete().entities(jobs);
}
}
}
| [
"[email protected]"
] | |
b12853981cfe7f1250f6b847e6227de1c432e4f8 | 67ec6f945330e63abd40e6652a939148d894b929 | /NestedLoops/exercises/NumberPyramid.java | 3955f9b10a342f85fc2ea7a930cf42f97ab6c004 | [] | no_license | kokovtbg/Java-Programming-Basics | 3e42c1a0678861468fc475ca3bab95b1a51783cf | 007dcdda0a6084aa820532d07df6bbfe1aa6b7ff | refs/heads/main | 2023-08-29T12:05:45.500419 | 2021-10-20T17:21:43 | 2021-10-20T17:21:43 | 416,336,547 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 745 | java | package NestedLoops.exercises;
import java.util.Scanner;
public class NumberPyramid {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = Integer.parseInt(scan.nextLine());
int current = 1;
boolean isBigger = false;
for (int rows = 1; rows <= n; rows++) {
for (int cols = 1; cols <= rows; cols++) {
if (current > n) {
isBigger = true;
break;
}
System.out.print(current + " ");
current++;
}
if (isBigger) {
break;
}
System.out.println();
}
}
}
| [
"[email protected]"
] | |
eec8ee6a4037548266948dc183a6a3687f786318 | 20c2323f59ae3a571765e84eb7659073f36c8e10 | /NWaySetAssociativeCache/src/com/ahmedsalako/cache/enums/CacheChanges.java | 26b8037842c1190f36389ad5b9dea99db64ab880 | [] | no_license | ahmedsalako/NWaySetAssociativeCache | 756e5c8a5f342fe17fb844e911573519a28dcc9c | 749c271fb50351dfbcb880e47398648cfe50e28e | refs/heads/master | 2021-01-17T13:25:49.287038 | 2016-05-17T21:48:26 | 2016-06-18T21:37:36 | 59,029,319 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 342 | java | package com.ahmedsalako.cache.enums;
public enum CacheChanges {
/**
* when a SetLine is added
*/
Add (0),
/**
* when a SetLine is removed
*/
Remove (1),
/**
* when a SetLine is accessed
*/
Access (2);
final private int value;
private CacheChanges(int value) {
this.value = value;
}
}
| [
"[email protected]"
] | |
a09026e08659904fa072e8d923879657bcb08ae5 | 5ad4db3d5a25a9593caf803c58dafdb017d75e55 | /NeoCrypto/trunk/NeoProvider5/src/main/java/com/neo/security/asn1/x509/X509ObjectIdentifiers.java | 77ba00f0b1ad93e29ce38b65a1de0a54b4cbfaaa | [] | no_license | highjava12/Yoon_Neo10 | ab34ea3926869f0f8e101f8ea20bd348256bed2c | 9a1e7898683bfe1ba28cf1a2f57fe88d8e3114fb | refs/heads/master | 2020-03-24T20:15:21.872951 | 2018-07-31T05:57:57 | 2018-07-31T05:57:57 | 142,968,044 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,776 | java | package com.neo.security.asn1.x509;
import com.neo.security.asn1.DERObjectIdentifier;
public interface X509ObjectIdentifiers
{
//
// base id
//
static final String id = "2.5.4";
static final DERObjectIdentifier commonName = new DERObjectIdentifier(id + ".3");
static final DERObjectIdentifier countryName = new DERObjectIdentifier(id + ".6");
static final DERObjectIdentifier localityName = new DERObjectIdentifier(id + ".7");
static final DERObjectIdentifier stateOrProvinceName = new DERObjectIdentifier(id + ".8");
static final DERObjectIdentifier organization = new DERObjectIdentifier(id + ".10");
static final DERObjectIdentifier organizationalUnitName = new DERObjectIdentifier(id + ".11");
static final DERObjectIdentifier id_at_telephoneNumber = new DERObjectIdentifier("2.5.4.20");
static final DERObjectIdentifier id_at_name = new DERObjectIdentifier(id + ".41");
// id-SHA1 OBJECT IDENTIFIER ::=
// {iso(1) identified-organization(3) oiw(14) secsig(3) algorithms(2) 26 } //
static final DERObjectIdentifier id_SHA1 = new DERObjectIdentifier("1.3.14.3.2.26");
//
// ripemd160 OBJECT IDENTIFIER ::=
// {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) hashAlgorithm(2) RIPEMD-160(1)}
//
static final DERObjectIdentifier ripemd160 = new DERObjectIdentifier("1.3.36.3.2.1");
//
// ripemd160WithRSAEncryption OBJECT IDENTIFIER ::=
// {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) signatureAlgorithm(3) rsaSignature(1) rsaSignatureWithripemd160(2) }
//
static final DERObjectIdentifier ripemd160WithRSAEncryption = new DERObjectIdentifier("1.3.36.3.3.1.2");
static final DERObjectIdentifier id_ea_rsa = new DERObjectIdentifier("2.5.8.1.1");
// id-pkix
static final DERObjectIdentifier id_pkix = new DERObjectIdentifier("1.3.6.1.5.5.7");
//
// private internet extensions
//
static final DERObjectIdentifier id_pe = new DERObjectIdentifier(id_pkix + ".1");
//
// authority information access
//
static final DERObjectIdentifier id_ad = new DERObjectIdentifier(id_pkix + ".48");
static final DERObjectIdentifier id_ad_caIssuers = new DERObjectIdentifier(id_ad + ".2");
static final DERObjectIdentifier id_ad_ocsp = new DERObjectIdentifier(id_ad + ".1");
//
// OID for ocsp and crl uri in AuthorityInformationAccess extension
//
static final DERObjectIdentifier ocspAccessMethod = id_ad_ocsp;
static final DERObjectIdentifier crlAccessMethod = id_ad_caIssuers;
}
| [
"[email protected]"
] | |
189f06f75670bc38a16c5bd85522c963df3375de | fb8c739ef8bb471fa7b4396ba3958ad013512e3e | /src/controller/MainApp.java | 03c04eca7948e12a4f3fb7b2aeec08707746889b | [] | no_license | djd0/ToutBois | fe6325f631aa3077f6357dd31ad72b93f3242078 | 11069a25c7f95c311acf104871979b41038acc94 | refs/heads/master | 2021-07-03T15:12:22.145913 | 2017-09-25T13:01:48 | 2017-09-25T13:01:48 | 104,747,767 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Java | false | false | 16,131 | java | package controller;
import java.io.IOException;
import java.sql.SQLException;
import controller.model.Client;
import controller.model.ClientDAO;
import controller.model.Prospect;
import controller.model.ProspectDAO;
import controller.model.Representant;
import controller.model.RepresentantDAO;
import controller.util.DataBase;
import controller.view.ClientController;
import controller.view.MenuController;
import controller.view.ModifierPersonneController;
import controller.view.ProspectController;
import controller.view.RepresentantController;
import controller.view.RootLayoutController;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import javafx.stage.Modality;
import javafx.stage.Stage;
public class MainApp extends Application {
private Stage stagePrincipal;
private BorderPane rootLayout;
//Listes observable
public static ObservableList<Client> donneesClient = FXCollections.observableArrayList();
public static ObservableList<Representant> donneesRepresentant = FXCollections.observableArrayList();
public static ObservableList<Prospect> donneesProspect = FXCollections.observableArrayList();
//Constructeur
public MainApp()
{
//5 Representant
/*Representant r1 = new Representant("AISAR", "Lily", "9 rue girond", "wasquehal", "FRANCE", 59290, 0.2, 1300);
donneesRepresentant.add(r1);
donneesRepresentant.add(new Representant("BIFET", "Henry", "36 rue du marechal ferrand", "lille", "FRANCE", 59000, 0.2, 1300));
donneesRepresentant.add(new Representant("COUS", "Paul", "20 rue paul corteville", "roubaix", "FRANCE", 59100, 0.2, 1300));
donneesRepresentant.add(new Representant("DALISET", "Gerard", "40/5 rue du terminal", "lille", "FRANCE", 59000, 0.2, 1300));
donneesRepresentant.add(new Representant("ERMOT", "Michelle", "13 rue jean jura", "croix", "FRANCE", 59170, 0.2, 1300));
// ajout de 5 clients
donneesClient.add(new Client("ARIS", "Mathieu", "36 rue du fel", "Lille", "FRANCE", 59000, "03.20.12.13.14", "[email protected]", "VILASTIS", "71203480000201", 10, 8));
donneesClient.add(new Client("BEST", "Loic", "12 impasse du plomeut", "Wasquehal", "FRANCE", 59290, "03.20.26.27.28", "[email protected]", "ENEDIS", "71203480000201", 20, 2));
donneesClient.add(new Client("CARRY", "Bernard", "2 bd de l'egalite", "Roubaix", "FRANCE", 59100, "03.20.30.31.32", "[email protected]", "LDLC", "7120348000020", 30, 6));
donneesClient.add(new Client("DENDE", "Lucy", "22 rue pierre mol", "Lille", "FRANCE", 59000, "03.20.45.46.47", "[email protected]", "COFIDIS", "71203480000201", 40, 4));
donneesClient.add(new Client("ERMIS", "David", "10 rue de brette", "Croix", "FRANCE", 59170, "03.20.58.59.60", "[email protected]", "IBM", "71203480000201", 50, 12));
// 5 Prospect
donneesProspect.add(new Prospect("AISAR", "Lily", "9 rue girond", "wasquehal", "FRANCE", 59290, LocalDate.of(2014, 6, 30)));
donneesProspect.add(new Prospect("AISAR", "Lily", "9 rue girond", "wasquehal", "FRANCE", 59290, LocalDate.of(2014, 6, 30)));
donneesProspect.add(new Prospect("AISAR", "Lily", "9 rue girond", "wasquehal", "FRANCE", 59290, LocalDate.of(2014, 6, 30)));
donneesProspect.add(new Prospect("AISAR", "Lily", "9 rue girond", "wasquehal", "FRANCE", 59290, LocalDate.of(2014, 6, 30)));
donneesProspect.add(new Prospect("AISAR", "Lily", "9 rue girond", "wasquehal", "FRANCE", 59290, LocalDate.of(2014, 6, 30)));
*/
}
//retourner les donnees en tant que liste observable
public static ObservableList<Client> getDonneesClient() {
return donneesClient;
}
public static ObservableList<Representant> getDonneesRepresentant() {
return donneesRepresentant;
}
public static ObservableList<Prospect> getDonneesProspect() {
return donneesProspect;
}
public static void setDonneesClient(ObservableList<Client> donneesClient) {
MainApp.donneesClient = donneesClient;
}
public static void setDonneesRepresentant(ObservableList<Representant> donneesRepresentant) {
MainApp.donneesRepresentant = donneesRepresentant;
}
public static void setDonneesProspect(ObservableList<Prospect> donneesProspect) {
MainApp.donneesProspect = donneesProspect;
}
@Override
public void start(Stage stagePrincipal) throws ClassNotFoundException, InstantiationException, IllegalAccessException, SQLException
{
this.stagePrincipal = stagePrincipal;
// TITRE
this.stagePrincipal.setTitle("Centre de gestion TOUTBOIS");
initRootLayout();
afficherFormulaireClient();
afficherFormulaireProspect();
afficherFormulaireRepresentant();
afficherMenu();
}
// Chargement fichiers fxml
public void initRootLayout()
{
try
{
// Creation d'un chargeur fxml
FXMLLoader loader = new FXMLLoader();
//acces a l'URL par le chargeur
loader.setLocation(MainApp.class.getResource("view/RootLayout.fxml"));
//Chargement
rootLayout = (BorderPane) loader.load();
// Creation d'une scene qui contient le root
Scene scene = new Scene(rootLayout);
// afectation de la scene au menuStage
stagePrincipal.setScene(scene);
// Donne la main au controlleur
RootLayoutController controller = loader.getController();
controller.setMainApp(this);
// Afficher le menuStage
stagePrincipal.show();
}
catch (IOException e)
{
e.printStackTrace();
}
}
public void afficherMenu()
{
try
{
FXMLLoader loader = new FXMLLoader();
loader.setLocation(MainApp.class.getResource("view/Menu.fxml"));
BorderPane menu = (BorderPane) loader.load();
rootLayout.setCenter(menu);
MenuController controller = loader.getController();
controller.setMainApp(this);
}
catch ( IOException e)
{
e.printStackTrace();
}
}
public void afficherFormulaireClient() throws ClassNotFoundException, InstantiationException, IllegalAccessException, SQLException
{
try
{
FXMLLoader loader = new FXMLLoader();
loader.setLocation(MainApp.class.getResource("view/FormulaireClient.fxml"));
AnchorPane ficheClient = (AnchorPane) loader.load();
rootLayout.setCenter(ficheClient);
ClientController controller = loader.getController();
controller.setMainApp(this);
donneesClient = ClientDAO.searchClient();
controller.populateClients(donneesClient);
}
catch (IOException e)
{
e.printStackTrace();
}
}
public void afficherFormulaireRepresentant() throws ClassNotFoundException, InstantiationException, IllegalAccessException, SQLException
{
try
{
FXMLLoader loader = new FXMLLoader();
loader.setLocation(MainApp.class.getResource("view/FormulaireRepresentant.fxml"));
AnchorPane ficheRepresentant = (AnchorPane) loader.load();
rootLayout.setCenter(ficheRepresentant);
RepresentantController controller = loader.getController();
controller.setMainApp(this);
donneesRepresentant = RepresentantDAO.searchRepresentant();
controller.populateRepresentants(donneesRepresentant);
}
catch ( IOException e)
{
e.printStackTrace();
}
}
public void afficherFormulaireProspect() throws ClassNotFoundException, InstantiationException, IllegalAccessException, SQLException
{
try
{
FXMLLoader loader = new FXMLLoader();
loader.setLocation(MainApp.class.getResource("view/FormulaireProspect.fxml"));
AnchorPane ficheProspect = (AnchorPane) loader.load();
rootLayout.setCenter(ficheProspect);
ProspectController controller = loader.getController();
controller.setMainApp(this);
donneesProspect = ProspectDAO.searchProspects();
controller.populateProspects(donneesProspect);
}
catch ( IOException e)
{
e.printStackTrace();
}
}
// Ouvre une fenetre pour modifier un client
// Si le user clic sur ok, les changement sont enregistre dans l'objet client et true est retourné
public boolean afficherFenetreModifierClient(Client client)
{
try
{
FXMLLoader loader = new FXMLLoader();
loader.setLocation(MainApp.class.getResource("view/ModClient.fxml"));
AnchorPane fenetreModifierClient = (AnchorPane) loader.load();
// creation du stage de la fenetre
Stage fenetreStage = new Stage();
fenetreStage.setTitle("Modifier client");
fenetreStage.initModality(Modality.WINDOW_MODAL);
fenetreStage.initOwner(stagePrincipal);
Scene scene = new Scene(fenetreModifierClient);
fenetreStage.setScene(scene);
ModifierPersonneController controller = loader.getController();
controller.setFenetreStage(fenetreStage);
controller.setClient(client);
controller.setMainApp(this);
// Montre la fenetre et attend que le user la ferme
fenetreStage.showAndWait();
return controller.isOkClicked();
}
catch ( IOException e)
{
e.printStackTrace();
return false;
}
}
public boolean afficherFenetreModifierClient(Prospect prospect)
{
try
{
FXMLLoader loader = new FXMLLoader();
loader.setLocation(MainApp.class.getResource("view/ModClient.fxml"));
AnchorPane fenetreModifierClient = (AnchorPane) loader.load();
// creation du stage de la fenetre
Stage fenetreStage = new Stage();
fenetreStage.setTitle("Modifier client");
fenetreStage.initModality(Modality.WINDOW_MODAL);
fenetreStage.initOwner(stagePrincipal);
Scene scene = new Scene(fenetreModifierClient);
fenetreStage.setScene(scene);
ModifierPersonneController controller = loader.getController();
controller.setFenetreStage(fenetreStage);
controller.setProspect(prospect);
controller.setMainApp(this);
// Montre la fenetre et attend que le user la ferme
fenetreStage.showAndWait();
return controller.isOkClicked();
}
catch ( IOException e)
{
e.printStackTrace();
return false;
}
}
public boolean afficherFenetreModifierProspect(Prospect prospect)
{
try
{
FXMLLoader loader = new FXMLLoader();
loader.setLocation(MainApp.class.getResource("view/ModProspect.fxml"));
AnchorPane fenetreModifierProspect = (AnchorPane) loader.load();
// creation du stage de la fenetre
Stage fenetreStage = new Stage();
fenetreStage.setTitle("Modifier prospect");
fenetreStage.initModality(Modality.WINDOW_MODAL);
fenetreStage.initOwner(stagePrincipal);
Scene scene = new Scene(fenetreModifierProspect);
fenetreStage.setScene(scene);
ModifierPersonneController controller = loader.getController();
controller.setFenetreStage(fenetreStage);
controller.setProspect(prospect);
// Montre la fenetre et attend que le user la ferme
fenetreStage.showAndWait();
return controller.isOkClicked();
}
catch ( IOException e)
{
e.printStackTrace();
return false;
}
}
public boolean afficherFenetreModifierRepresentant(Representant representant)
{
try
{
FXMLLoader loader = new FXMLLoader();
loader.setLocation(MainApp.class.getResource("view/ModRepresentant.fxml"));
AnchorPane fenetreModifierRepresentant = (AnchorPane) loader.load();
// creation du stage de la fenetre
Stage fenetreStage = new Stage();
fenetreStage.setTitle("Modifier representant");
fenetreStage.initModality(Modality.WINDOW_MODAL);
fenetreStage.initOwner(stagePrincipal);
Scene scene = new Scene(fenetreModifierRepresentant);
fenetreStage.setScene(scene);
ModifierPersonneController controller = loader.getController();
controller.setFenetreStage(fenetreStage);
controller.setRepresentant(representant);
// Montre la fenetre et attend que le user la ferme
fenetreStage.showAndWait();
return controller.isOkClicked();
}
catch ( IOException e)
{
e.printStackTrace();
return false;
}
}
public boolean afficherFenetreAjouterRep(Representant representant)
{
try
{
FXMLLoader loader = new FXMLLoader();
loader.setLocation(MainApp.class.getResource("view/AjoutRepresentant.fxml"));
AnchorPane fenetreAjoutRep = (AnchorPane) loader.load();
// creation du stage de la fenetre
Stage fenetreStage = new Stage();
fenetreStage.setTitle("Nouveau representant");
fenetreStage.initModality(Modality.WINDOW_MODAL);
fenetreStage.initOwner(stagePrincipal);
Scene scene = new Scene(fenetreAjoutRep);
fenetreStage.setScene(scene);
ModifierPersonneController controller = loader.getController();
controller.setFenetreStage(fenetreStage);
controller.setRepresentant(representant);
// Montre la fenetre et attend que le user la ferme
fenetreStage.showAndWait();
return controller.isOkClicked();
}
catch ( IOException e)
{
e.printStackTrace();
return false;
}
}
public boolean afficherFenetreAjouterProspect(Prospect prospect)
{
try
{
FXMLLoader loader = new FXMLLoader();
loader.setLocation(MainApp.class.getResource("view/AjoutProspect.fxml"));
AnchorPane fenetreAjoutProspect = (AnchorPane) loader.load();
// creation du stage de la fenetre
Stage fenetreStage = new Stage();
fenetreStage.setTitle("Nouveau prospect");
fenetreStage.initModality(Modality.WINDOW_MODAL);
fenetreStage.initOwner(stagePrincipal);
Scene scene = new Scene(fenetreAjoutProspect);
fenetreStage.setScene(scene);
ModifierPersonneController controller = loader.getController();
controller.setFenetreStage(fenetreStage);
controller.setProspect(prospect);
// Montre la fenetre et attend que le user la ferme
fenetreStage.showAndWait();
return controller.isOkClicked();
}
catch ( IOException e)
{
e.printStackTrace();
return false;
}
}
public boolean afficherFenetreAjouterClient(Client client)
{
try
{
FXMLLoader loader = new FXMLLoader();
loader.setLocation(MainApp.class.getResource("view/AjoutClient.fxml"));
AnchorPane fenetreAjoutClient = (AnchorPane) loader.load();
// creation du stage de la fenetre
Stage fenetreStage = new Stage();
fenetreStage.setTitle("Nouveau client");
fenetreStage.initModality(Modality.WINDOW_MODAL);
fenetreStage.initOwner(stagePrincipal);
Scene scene = new Scene(fenetreAjoutClient);
fenetreStage.setScene(scene);
ModifierPersonneController controller = loader.getController();
controller.setFenetreStage(fenetreStage);
controller.setClient(client);
controller.setMainApp(this);
// Montre la fenetre et attend que le user la ferme
fenetreStage.showAndWait();
return controller.isOkClicked();
}
catch ( IOException e)
{
e.printStackTrace();
return false;
}
}
public Stage getStagePrincipal() {
return stagePrincipal;
}
public void stop() throws SQLException
{
DataBase.dbDisconnect();
System.out.println("Deconnexion de la base");
Platform.exit();
}
public static void main(String[] args)
{
launch(args);
}
}
| [
"[email protected]"
] | |
450f4240125a2f9270a753887ff00af8ffff0af5 | f8a4ec70fd9aa3f1585fa22dd65bd7733bec80d8 | /spring-kafka/src/main/java/org/springframework/kafka/listener/DelegatingMessageListener.java | 7d482ec2cd58d6907d60f0a9598c9d413ffea88a | [
"Apache-2.0"
] | permissive | fchenxi/easykafka | f73d9c0ba54758f7f37f803628be7985e48b91c2 | ab49f4dce873777a9bf44cd23ddb3951f3ad97f2 | refs/heads/master | 2022-12-08T12:28:52.509275 | 2018-01-29T07:44:08 | 2018-01-29T07:44:08 | 118,890,934 | 0 | 3 | Apache-2.0 | 2022-11-16T08:53:30 | 2018-01-25T09:20:26 | Java | UTF-8 | Java | false | false | 1,004 | java | /*
* Copyright 2017 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.springframework.kafka.listener;
/**
* Classes implementing this interface allow containers to determine the type of the
* ultimate listener.
*
* @param <T> the type received by the listener.
*
* @author Gary Russell
* @since 2.0
*
*/
public interface DelegatingMessageListener<T> {
/**
* Return the delegate.
* @return the delegate.
*/
T getDelegate();
}
| [
"[email protected]"
] | |
7bacc797887545a17217c9ea28c7e4a75d8ad5ea | 2d09c5033c92aacbc850af867b616702d49a3c8c | /src/com/gl/itSupport/Services.java | ff6aea8f093fb5e20071f34bb28aa08f590dc506 | [] | no_license | jyotivashistha/Gl-Lab-Assigmnet1 | 628dc882394663778412443ca74dae0a3d2ce79e | d6cc75615b5ac5f6f8e350ac61d1a94a86dfde0a | refs/heads/master | 2023-07-23T23:11:00.947171 | 2021-09-04T10:08:58 | 2021-09-04T10:08:58 | 403,021,942 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 783 | java | package com.gl.itSupport;
import java.util.Random;
import java.util.Scanner;
import com.gl.AdminDepartment.Admin;
public class Services {
private String Email;
public char[] GeneratePassword() {
String CapitalLetter="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
String SmallLetter="abcdefghijklmnopqrstuvwxyz";
String Number="1234567890";
String SpecialCharcter="!@#$%^&*?/}{<>";
String value=CapitalLetter + SmallLetter + Number + SpecialCharcter;
Random random=new Random();
char[] password = new char[8];
for(int i=0;i<8;i++) {
password [i] =value.charAt(random.nextInt(value.length()));
}
return password;
}
public void Email() {
}
public String GenerateEmail(String name) {
return "JyotiSharma";
}
}
| [
"[email protected]"
] | |
537dcfbe729e4d9696a80d5d8aef0dcf746b1753 | dbf70b8d061d33cca63047c1a98cdb52430c58cb | /Source/edu/cmu/cs/stage3/media/jmfmedia/DataSource.java | 0ad2ff323450edc085b3c471df8be8e27d6ead53 | [] | no_license | pwsunderland/Alice-Sunderland | 9ffad4d6bbdaa791dc12d83ce5c62f73848e1f83 | 987ee4c889fbd1f0f66e64406f521cf23dfc7311 | refs/heads/master | 2021-01-01T18:07:01.647398 | 2015-05-10T23:37:17 | 2015-05-10T23:37:17 | 35,165,423 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,047 | java | package edu.cmu.cs.stage3.media.jmfmedia;
class ByteArraySeekablePullSourceStream implements javax.media.protocol.PullSourceStream, javax.media.protocol.Seekable {
private static final javax.media.protocol.ContentDescriptor RAW_CONTENT_DISCRIPTOR = new javax.media.protocol.ContentDescriptor( javax.media.protocol.ContentDescriptor.RAW );
private byte[] m_data;
private long m_location;
private long m_size;
public ByteArraySeekablePullSourceStream( byte[] data ) {
m_data = data;
m_location = 0;
m_size = data.length;
}
public int read( byte[] buffer, int offset, int length ) throws java.io.IOException {
long bytesLeft = (m_size - m_location);
if (bytesLeft == 0){
return -1;
}
int intBytesLeft = (int)bytesLeft;
int toRead = length;
if (intBytesLeft < length)
toRead = intBytesLeft;
System.arraycopy( m_data, (int)m_location, buffer, offset, toRead );
m_location = m_location + toRead;
return toRead;
}
public Object getControl( String controlType ) {
return null;
}
public Object[] getControls() {
return null;
}
public javax.media.protocol.ContentDescriptor getContentDescriptor(){
return RAW_CONTENT_DISCRIPTOR;
}
public boolean endOfStream() {
return (m_location==m_size);
}
public long getContentLength() {
return m_size;
}
public boolean willReadBlock() {
return endOfStream();
}
public boolean isRandomAccess() {
return true;
}
public long seek( long where ) {
if( where > m_size ){
m_location = m_size;
} else {
m_location = where;
}
return m_location;
}
public long tell() {
return m_location;
}
}
class ByteArrayDataSource extends javax.media.protocol.PullDataSource {
private static java.util.Dictionary s_extensionToContentTypeMap;
private byte[] m_data;
private String m_contentType;
public ByteArrayDataSource( byte[] data, String contentType ) {
m_data = data;
m_contentType = contentType;
}
public byte[] getData() {
return m_data;
}
public String getContentType() {
return m_contentType;
}
public javax.media.Time getDuration() {
return javax.media.Duration.DURATION_UNKNOWN;
}
public void connect() throws java.io.IOException {
}
public void start() throws java.io.IOException {
}
public void disconnect() {
}
public Object getControl(String parm1) {
return null;
}
public javax.media.protocol.PullSourceStream[] getStreams() {
return new javax.media.protocol.PullSourceStream[] {
new ByteArraySeekablePullSourceStream( m_data )
};
}
public void stop() throws java.io.IOException {
}
public Object[] getControls() {
return null;
}
}
public class DataSource extends edu.cmu.cs.stage3.media.AbstractDataSource {
private static java.util.Dictionary s_extensionToContentTypeMap = new java.util.Hashtable();
static {
s_extensionToContentTypeMap = new java.util.Hashtable();
s_extensionToContentTypeMap.put( "mp3", "audio.mpeg" );
s_extensionToContentTypeMap.put( "wav", "audio.x_wav" );
}
private ByteArrayDataSource m_jmfDataSource;
public DataSource( byte[] data, String extension ) {
super( extension );
String contentType = (String)s_extensionToContentTypeMap.get( extension.toLowerCase() );
try {
m_jmfDataSource = new ByteArrayDataSource( data, contentType );
} catch( Throwable t ) {
t.printStackTrace();
}
}
public byte[] getData() {
return m_jmfDataSource.getData();
}
public javax.media.protocol.DataSource getJMFDataSource() {
return m_jmfDataSource;
}
protected edu.cmu.cs.stage3.media.Player createPlayer() {
return new Player( this );
}
// public double waitForDuration( long timeout ) {
// double durationHint = getDurationHint();
// if( Double.isNaN( durationHint ) ) {
// long t0 = System.currentTimeMillis();
// waitForRealizedPlayerCount( 1, timeout );
// long dt = System.currentTimeMillis() - t0;
// timeout = Math.max( timeout - dt, 0 );
// edu.cmu.cs.stage3.media.Player player = getPlayerAt( 0 );
// return player.waitForDuration( timeout );
// } else {
// return durationHint;
// }
// }
}
| [
"[email protected]"
] | |
97d9ac7f03e50faf38e698b9e1415138ca795a1c | ac9bdf419c49b221385cc09715bc3d77292cb0be | /src/main/java/com/mengyuan/exception/PermissionException.java | 5b8dcc48562c07f9e8a275808e698a91fbf27dba | [
"Apache-2.0"
] | permissive | Palameng/SSMPermissionManagementSystem | f04d84cc22021734bb064520c7bfa84cafe3e750 | 3c8d317a8c7bcf4056fc9ddea97d2de9ad222033 | refs/heads/master | 2020-03-27T19:10:27.129621 | 2018-10-10T09:30:10 | 2018-10-10T09:30:10 | 146,969,952 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 617 | java | package com.mengyuan.exception;
public class PermissionException extends RuntimeException{
public PermissionException() {
super();
}
public PermissionException(String message) {
super(message);
}
public PermissionException(String message, Throwable cause) {
super(message, cause);
}
public PermissionException(Throwable cause) {
super(cause);
}
protected PermissionException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
| [
"[email protected]"
] | |
e37ef7b9d7981189d639eba0cd64864dec6071ee | e98cbbeeb6a650fb65187772dd578bec6e331ef6 | /yazilimsozluk/src/main/java/com/sefamertkaya/entity/Information.java | e2e6816f5300d28e7a002ecf15bdf7dd6de93d1f | [] | no_license | sefamertkaya/yazilimsozluk | 1d9536b2320cb6f0486e0a09e6a3b5e49be39da2 | ad04ca98640958fa3ce1c9e0a3d2e4ad1f8342d1 | refs/heads/master | 2020-04-27T09:03:58.100109 | 2019-03-07T19:14:53 | 2019-03-07T19:14:53 | 174,199,348 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 615 | java | package com.sefamertkaya.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Information {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
@Column(length = 999)
private String information;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getInformation() {
return information;
}
public void setInformation(String information) {
this.information = information;
}
}
| [
"[email protected]"
] | |
383d5d6e1a536b4f130bb9334af78beacd6f7d2a | 4378b742d0d39a6f9694f805c0645ae6eb49ac65 | /src/sinaweibo/preprocessor/TitleBayesUserMergedClassifier.java | 5bbb03e8c6bab10e5955f8f17e36f4a385be7161 | [] | no_license | sparklezzz/SinaWeiboProcessor | a36688528d14a6ebe2ca020ae471c1cc3188ae74 | 93aa48e0446e87048ca736aa78a7b2e3cf6db967 | refs/heads/master | 2021-01-13T02:15:43.167040 | 2014-03-17T13:27:03 | 2014-03-17T13:27:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,035 | java | package sinaweibo.preprocessor;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reducer;
import org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
import org.apache.hadoop.mapreduce.lib.output.TextOutputFormat;
import org.apache.hadoop.util.GenericOptionsParser;
import sinaweibo.classifier.naivebayes.BayesUtils;
import sinaweibo.math.VectorWritable;
import sinaweibo.math.Vector;
import sinaweibo.util.MultipleInputs;
/*
* Description: merge result by bayes and potential labels
*
*/
public class TitleBayesUserMergedClassifier {
private static final String LABEL_INDEX_PATH = "LABEL_INDEX_PATH";
private static final String FIRST_TYPE = "1";
private static final String SECOND_TYPE = "2";
public static class FirstMapper
extends Mapper<Text, VectorWritable, Text, Text>{
private final Text newVal = new Text();
private final StringBuffer m_buffer = new StringBuffer();
public void map(Text key, VectorWritable value, Context context)
throws IOException, InterruptedException {
m_buffer.delete(0, m_buffer.length());
m_buffer.append(FIRST_TYPE);
Vector vector = value.get();
int vectorSize = vector.size();
for (int i=0; i<vectorSize; ++i) {
m_buffer.append("\t" + vector.getQuick(i));
}
newVal.set(m_buffer.toString());
context.write(key, newVal);
}
}
public static class SecondMapper
extends Mapper<Text, Text, Text, Text>{
private final Text newVal = new Text();
public void map(Text key, Text value, Context context)
throws IOException, InterruptedException {
newVal.set(SECOND_TYPE + "\t" + value.toString());
context.write(key, newVal);
}
}
public static class MyReducer
extends Reducer<Text, Text, Text, Text> {
private final Text newKey = new Text();
private final Text newVal = new Text();
private final HashMap<Integer, Integer> m_potentialLabelIdx = new HashMap<Integer, Integer>();
private final ArrayList<Double> m_scoreArr = new ArrayList<Double>();
private Map<Integer, String> m_labelIdx2Str = null;
private Map<String, Integer> m_labelStr2Idx = null;
@Override
protected void setup(Context ctx) throws IOException, InterruptedException {
super.setup(ctx);
Configuration conf = ctx.getConfiguration();
String labelPath = conf.get(LABEL_INDEX_PATH);
//load the labels
m_labelIdx2Str = BayesUtils.readLabelIndex(conf, new Path(labelPath));
m_labelStr2Idx = new HashMap<String, Integer>();
for (Entry<Integer, String> entry : m_labelIdx2Str.entrySet()) {
m_labelStr2Idx.put(entry.getValue(), entry.getKey());
}
}
public void reduce(Text key, Iterable<Text> values,
Context context) throws IOException, InterruptedException {
m_potentialLabelIdx.clear();
m_scoreArr.clear();
double maxScore = -Double.MAX_VALUE; // Note: Double.MIN_VALUE is greater than 0!
int maxIdx = 0;
String keyStr = key.toString();
String []lst = keyStr.split("/");
if (lst.length < 3) return;
newKey.set(lst[2]);
if (!lst[1].equals("-")) {
newVal.set(lst[1]); // training case
//context.write(newKey, newVal);
return;
}
// test case
for (Text val : values) {
String valStr = val.toString();
lst = valStr.split("\t");
if (lst.length < 2)
continue;
if (lst[0].equals(FIRST_TYPE)) {
for (int i=1; i<lst.length; ++i) {
if (lst[i].trim().isEmpty())
continue;
double tmpScore = Double.parseDouble(lst[i].trim());
if (maxScore < tmpScore) {
maxIdx = i-1;
maxScore = tmpScore;
}
m_scoreArr.add(tmpScore);
}
} else if (lst[0].equals(SECOND_TYPE)) {
for (int i=1; i<lst.length; i += 2) {
if (i+1 == lst.length)
break;
m_potentialLabelIdx.put(m_labelStr2Idx.get(lst[i]), Integer.parseInt(lst[i+1]));
}
}
}
if (m_potentialLabelIdx.size() == 0) { // no potential label
newVal.set(m_labelIdx2Str.get(maxIdx));
} else {
/*
* for each potential label, choose one with max label count
* if two labels have same label count, choose one with larger prob in bayes result
*/
int maxLabelCount = -1;
int maxLabelIdx = Integer.MIN_VALUE;
for (Entry<Integer, Integer> entry : m_potentialLabelIdx.entrySet()) {
if ( entry.getValue() > maxLabelCount ||
(entry.getValue() == maxLabelCount && (m_scoreArr.size() > 0 && m_scoreArr.get(entry.getKey()) > m_scoreArr.get(entry.getKey())))) {
maxLabelCount = entry.getValue();
maxLabelIdx = entry.getKey();
}
}
newVal.set(m_labelIdx2Str.get(maxLabelIdx) + "\t" + m_labelIdx2Str.get(maxIdx));
context.write(newKey, newVal);
}
//context.write(newKey, newVal);
}
}
private static void runMapReduceJob(Configuration conf, Path path, Path path2, Path path3, String labelIndexPath)
throws IOException, InterruptedException, ClassNotFoundException {
// TODO Auto-generated method stub
conf.set(LABEL_INDEX_PATH, labelIndexPath);
String className = new Object() {
public String getClassName()
{
String clazzName = this.getClass().getName();
return clazzName.substring(0, clazzName.lastIndexOf('$'));
}
}.getClassName();
Job job = new Job(conf, className);
job.setNumReduceTasks(1);
job.setJarByClass(TitleBayesUserMergedClassifier.class);//主类
job.setMapperClass(FirstMapper.class);//mapper
job.setReducerClass(MyReducer.class);//reducer
// map 输出Key的类型
job.setMapOutputKeyClass(Text.class);
// map输出Value的类型
job.setMapOutputValueClass(Text.class);
// reduce输出Key的类型,是Text,因为使用的OutputFormatClass是TextOutputFormat
job.setOutputKeyClass(Text.class);
// reduce输出Value的类型
job.setOutputValueClass(Text.class);
job.setOutputFormatClass(TextOutputFormat.class);
MultipleInputs.addInputPath(job, path, SequenceFileInputFormat.class, FirstMapper.class);
MultipleInputs.addInputPath(job, path2, SequenceFileInputFormat.class, SecondMapper.class);
FileOutputFormat.setOutputPath(job, path3);//文件输出
boolean succeeded = job.waitForCompletion(true);
if (!succeeded) {
throw new IllegalStateException("MR Job failed!");
}
}
/**
* @param args
* @throws IOException
* @throws ClassNotFoundException
* @throws InterruptedException
*/
@SuppressWarnings("deprecation")
public static void main(String[] args) throws IOException, InterruptedException, ClassNotFoundException {
// TODO Auto-generated method stub
Configuration conf = new Configuration();
String[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs();
String className = new Object() {
public String getClassName()
{
String clazzName = this.getClass().getName();
return clazzName.substring(0, clazzName.lastIndexOf('$'));
}
}.getClassName();
if (otherArgs.length < 4) {
System.err.println("Usage: " + className + " <label-index-input> <keyword-class-title-classified-input> <user-potential-label-set-input> <outdir>");
System.exit(2);
}
runMapReduceJob(conf, new Path(otherArgs[1]), new Path(otherArgs[2]), new Path(otherArgs[3]), otherArgs[0]);
}
}
| [
"[email protected]"
] | |
fdb6138c54917598260c3786cc67105c589e575b | 961b8a6b3d5064d9d9c55599b8d6b2e5e09d4775 | /app/src/main/java/com/bigpicture/team/dadungi/item/ImageItem.java | cabcc523f622ead90e4cce5e6d6fff4780c5acd8 | [] | no_license | Pastelrose/Bigpicture_DaDungI | 9e0de5b121607e670ae856cc66ffec17d643e038 | 667c9ffeefbe5bfa4700e74b110111e8095f69f0 | refs/heads/master | 2021-07-22T04:13:00.706381 | 2017-11-02T08:59:27 | 2017-11-02T08:59:27 | 105,504,961 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 687 | java | package com.bigpicture.team.dadungi.item;
import com.google.gson.annotations.SerializedName;
/**
* 충전소 이미지 정보를 저장하는 객체
*/
public class ImageItem {
@SerializedName("cpId") public int cpId;
@SerializedName("file_name") public String fileName;
@SerializedName("image_memo") public String imageMemo;
@SerializedName("reg_date") public String regDate;
@Override
public String toString() {
return "ImageItem{" +
"seq=" + cpId +
", fileName='" + fileName + '\'' +
", imageMemo='" + imageMemo + '\'' +
", regDate='" + regDate + '\'' +
'}';
}
}
| [
"[email protected]"
] | |
3f5dc60e95a11dec77c5f0c240f6f488bca175d1 | 8af1164bac943cef64e41bae312223c3c0e38114 | /results-java/neo4j--neo4j/4b67a630b5a7cee93afb37ae3812f8faa3533845/after/MemoryMappedLogBuffer.java | 2fa89fd6a6f044548b9e4651738aa7f683b69b58 | [] | no_license | fracz/refactor-extractor | 3ae45c97cc63f26d5cb8b92003b12f74cc9973a9 | dd5e82bfcc376e74a99e18c2bf54c95676914272 | refs/heads/master | 2021-01-19T06:50:08.211003 | 2018-11-30T13:00:57 | 2018-11-30T13:00:57 | 87,353,478 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,626 | java | /*
* Copyright (c) 2002-2009 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.kernel.impl.transaction.xaframework;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.channels.FileChannel.MapMode;
import javax.transaction.xa.Xid;
import org.neo4j.kernel.impl.nioneo.store.UnderlyingStorageException;
import org.neo4j.kernel.impl.util.BufferNumberPutter;
class MemoryMappedLogBuffer implements LogBuffer
{
private static final int MAPPED_SIZE = 1024 * 1024 * 2;
private final FileChannel fileChannel;
private MappedByteBuffer mappedBuffer = null;
private long mappedStartPosition;
private final ByteBuffer fallbackBuffer;
MemoryMappedLogBuffer( FileChannel fileChannel ) throws IOException
{
this.fileChannel = fileChannel;
mappedStartPosition = fileChannel.position();
getNewMappedBuffer();
fallbackBuffer = ByteBuffer.allocateDirect( 9 + Xid.MAXGTRIDSIZE
+ Xid.MAXBQUALSIZE * 10 );
}
MappedByteBuffer getMappedBuffer()
{
return mappedBuffer;
}
private int mapFail = -1;
private void getNewMappedBuffer()
{
try
{
if ( mappedBuffer != null )
{
mappedStartPosition += mappedBuffer.position();
mappedBuffer.force();
mappedBuffer = null;
}
if ( mapFail > 1000 )
{
mapFail = -1;
}
if ( mapFail > 0 )
{
mapFail++;
return;
}
mappedBuffer = fileChannel.map( MapMode.READ_WRITE,
mappedStartPosition, MAPPED_SIZE );
}
catch ( Throwable t )
{
mapFail = 1;
t.printStackTrace();
}
}
private LogBuffer putNumber( Number value, BufferNumberPutter putter ) throws IOException
{
if ( mappedBuffer == null ||
(MAPPED_SIZE - mappedBuffer.position()) < putter.size() )
{
getNewMappedBuffer();
if ( mappedBuffer == null )
{
fallbackBuffer.clear();
putter.put( fallbackBuffer, value );
fallbackBuffer.flip();
fileChannel.write( fallbackBuffer, mappedStartPosition );
mappedStartPosition += putter.size();
return this;
}
}
putter.put( mappedBuffer, value );
return this;
}
public LogBuffer put( byte b ) throws IOException
{
return putNumber( b, BufferNumberPutter.BYTE );
}
public LogBuffer putInt( int i ) throws IOException
{
return putNumber( i, BufferNumberPutter.INT );
}
public LogBuffer putLong( long l ) throws IOException
{
return putNumber( l, BufferNumberPutter.LONG );
}
public LogBuffer putFloat( float f ) throws IOException
{
return putNumber( f, BufferNumberPutter.FLOAT );
}
public LogBuffer putDouble( double d ) throws IOException
{
return putNumber( d, BufferNumberPutter.DOUBLE );
}
public LogBuffer put( byte[] bytes ) throws IOException
{
put( bytes, 0 );
return this;
}
private void put( byte[] bytes, int offset ) throws IOException
{
int bytesToWrite = bytes.length - offset;
if ( bytesToWrite > MAPPED_SIZE )
{
bytesToWrite = MAPPED_SIZE;
}
if ( mappedBuffer == null ||
(MAPPED_SIZE - mappedBuffer.position()) < bytesToWrite )
{
getNewMappedBuffer();
if ( mappedBuffer == null )
{
bytesToWrite = bytes.length - offset; // reset
ByteBuffer buf = ByteBuffer.wrap( bytes );
buf.position( offset );
int count = fileChannel.write( buf, mappedStartPosition );
if ( count != bytesToWrite )
{
throw new UnderlyingStorageException( "Failed to write from " +
offset + " expected " + bytesToWrite + " but wrote " +
count );
}
mappedStartPosition += bytesToWrite;
return;
}
}
mappedBuffer.put( bytes, offset, bytesToWrite );
offset += bytesToWrite;
if ( offset < bytes.length )
{
put( bytes, offset );
}
}
public LogBuffer put( char[] chars ) throws IOException
{
put( chars, 0 );
return this;
}
private void put( char[] chars, int offset ) throws IOException
{
int charsToWrite = chars.length - offset;
if ( charsToWrite * 2 > MAPPED_SIZE )
{
charsToWrite = MAPPED_SIZE / 2;
}
if ( mappedBuffer == null ||
(MAPPED_SIZE - mappedBuffer.position()) < (charsToWrite * 2 ) )
{
getNewMappedBuffer();
if ( mappedBuffer == null )
{
int bytesToWrite = ( chars.length - offset ) * 2;
ByteBuffer buf = ByteBuffer.allocate( bytesToWrite );
buf.asCharBuffer().put( chars, offset, chars.length - offset );
buf.limit( chars.length * 2 );
int count = fileChannel.write( buf, mappedStartPosition );
if ( count != bytesToWrite )
{
throw new UnderlyingStorageException( "Failed to write from " +
offset + " expected " + bytesToWrite + " but wrote " +
count );
}
mappedStartPosition += bytesToWrite;
return;
}
}
int oldPos = mappedBuffer.position();
mappedBuffer.asCharBuffer().put( chars, offset, charsToWrite );
mappedBuffer.position( oldPos + (charsToWrite * 2) );
offset += charsToWrite;
if ( offset < chars.length )
{
put( chars, offset );
}
}
void releaseMemoryMapped()
{
if ( mappedBuffer != null )
{
mappedBuffer.force();
mappedBuffer = null;
}
}
public void force() throws IOException
{
if ( mappedBuffer != null )
{
mappedBuffer.force();
}
fileChannel.force( false );
}
public long getFileChannelPosition()
{
if ( mappedBuffer != null )
{
return mappedStartPosition + mappedBuffer.position();
}
return mappedStartPosition;
}
public FileChannel getFileChannel()
{
return fileChannel;
}
} | [
"[email protected]"
] | |
3ab49726b991c5e32a2b7d47a5a2a69c36ea4695 | dc8bb26d7d5a44e2130be4726e6d7aab82bcf74e | /epamTeamTask/src/com/epam/travel/view/impl/menu/Check/Runner.java | dd2bb5bee747cb50b80c0f36c2329a62aa193de6 | [] | no_license | Makrone/tourpackage | 61f5d7318b78dcd2bdbebb959aac71f8fbad4a07 | e42fe4b850b5f74ff1ddf45351ce1c900a18e027 | refs/heads/main | 2023-07-28T01:27:46.796548 | 2021-09-04T04:15:11 | 2021-09-04T04:15:11 | 402,171,035 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 917 | java | package com.epam.travel.view.impl.menu.Check;
import com.epam.travel.view.impl.menu.myMenu.MyMenu;
import com.epam.travel.view.impl.menu.myMenu.MyMenuItem;
import java.util.Scanner;
public class Runner {
static Scanner scanner = new Scanner(System.in);
public static void main(String[] args) {
boolean action = true;
while (action) {
System.out.println("Выберите список меню :");
MyMenu.showMenu();
int clientChoice = scanner.nextInt();
MyMenuItem selectedItem = MyMenuItem.getItemsByKeyAndLevel(clientChoice,1);
boolean isLastAction = false;
if (selectedItem != null) {
isLastAction = selectedItem.getAction().doAction();
}
if (isLastAction) {
action = true;
}else {
action = false;
}
}
}
}
| [
"[email protected]"
] | |
89990a86c4ea60f6645cee7104d3c4318e83fd44 | 1ff7f460be0de406849439069d0f8ed0eed3c3fc | /src/ch/gbssg/carrent/model/Car.java | 3cd5b08ccf563e3ff85d3b4594c67594ad83a769 | [] | no_license | marcothoma/autovermietung | e87911e552efb55ae4a98a1a143d92574e150496 | 47b965a50a023a4b227720d2bc4d443bb4fafdeb | refs/heads/master | 2016-09-14T18:50:07.863066 | 2016-05-20T12:22:47 | 2016-05-20T12:22:47 | 58,741,773 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 98 | java | package ch.gbssg.carrent.model;
/**
* Created by jaquet on 19.04.2016.
*/
public class Car {
}
| [
"[email protected]"
] | |
58c233243f20ee907885424c5bd4c13dedb07bb1 | f91290b43c675f3657994f0b0485c1fc1eac786a | /src/com/pdd/pop/ext/apache/http/impl/auth/NegotiateScheme.java | 989bff0ade67b90c5b74c81764f889857048953a | [] | no_license | lywx215/http-client | 49462178ebbbd3469f798f53b16f5cb52db56d72 | 29871ab097e2e6dfc1bd2ab5f1a63b6146797c5a | refs/heads/master | 2021-10-09T09:01:07.389764 | 2018-12-25T05:06:11 | 2018-12-25T05:06:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,347 | 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.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package com.pdd.pop.ext.apache.http.impl.auth;
import java.io.IOException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.pdd.pop.ext.apache.http.Header;
import com.pdd.pop.ext.apache.http.HttpRequest;
import com.pdd.pop.ext.apache.http.auth.AuthenticationException;
import com.pdd.pop.ext.apache.http.auth.Credentials;
import com.pdd.pop.ext.apache.http.protocol.HttpContext;
import com.pdd.pop.ext.apache.http.util.Args;
import org.ietf.jgss.GSSException;
import org.ietf.jgss.Oid;
/**
* SPNEGO (Simple and Protected GSSAPI Negotiation Mechanism) authentication
* scheme.
*
* @since 4.1
*
* @deprecated (4.2) use {@link SPNegoScheme} or {@link KerberosScheme}.
*/
@Deprecated
public class NegotiateScheme extends GGSSchemeBase {
private final Log log = LogFactory.getLog(getClass());
private static final String SPNEGO_OID = "1.3.6.1.5.5.2";
private static final String KERBEROS_OID = "1.2.840.113554.1.2.2";
private final SpnegoTokenGenerator spengoGenerator;
/**
* Default constructor for the Negotiate authentication scheme.
*
*/
public NegotiateScheme(final SpnegoTokenGenerator spengoGenerator, final boolean stripPort) {
super(stripPort);
this.spengoGenerator = spengoGenerator;
}
public NegotiateScheme(final SpnegoTokenGenerator spengoGenerator) {
this(spengoGenerator, false);
}
public NegotiateScheme() {
this(null, false);
}
/**
* Returns textual designation of the Negotiate authentication scheme.
*
* @return {@code Negotiate}
*/
@Override
public String getSchemeName() {
return "Negotiate";
}
@Override
public Header authenticate(
final Credentials credentials,
final HttpRequest request) throws AuthenticationException {
return authenticate(credentials, request, null);
}
/**
* Produces Negotiate authorization Header based on token created by
* processChallenge.
*
* @param credentials Never used be the Negotiate scheme but must be provided to
* satisfy common-httpclient API. Credentials from JAAS will be used instead.
* @param request The request being authenticated
*
* @throws AuthenticationException if authorisation string cannot
* be generated due to an authentication failure
*
* @return an Negotiate authorisation Header
*/
@Override
public Header authenticate(
final Credentials credentials,
final HttpRequest request,
final HttpContext context) throws AuthenticationException {
return super.authenticate(credentials, request, context);
}
@Override
protected byte[] generateToken(final byte[] input, final String authServer) throws GSSException {
return super.generateToken(input, authServer);
}
@Override
protected byte[] generateToken(final byte[] input, final String authServer, final Credentials credentials) throws GSSException {
/* Using the SPNEGO OID is the correct method.
* Kerberos v5 works for IIS but not JBoss. Unwrapping
* the initial token when using SPNEGO OID looks like what is
* described here...
*
* http://msdn.microsoft.com/en-us/library/ms995330.aspx
*
* Another helpful URL...
*
* http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/tsec_SPNEGO_token.html
*
* Unfortunately SPNEGO is JRE >=1.6.
*/
/** Try SPNEGO by default, fall back to Kerberos later if error */
Oid negotiationOid = new Oid(SPNEGO_OID);
byte[] token = input;
boolean tryKerberos = false;
try {
token = generateGSSToken(token, negotiationOid, authServer, credentials);
} catch (final GSSException ex){
// BAD MECH means we are likely to be using 1.5, fall back to Kerberos MECH.
// Rethrow any other exception.
if (ex.getMajor() == GSSException.BAD_MECH ){
log.debug("GSSException BAD_MECH, retry with Kerberos MECH");
tryKerberos = true;
} else {
throw ex;
}
}
if (tryKerberos){
/* Kerberos v5 GSS-API mechanism defined in RFC 1964.*/
log.debug("Using Kerberos MECH " + KERBEROS_OID);
negotiationOid = new Oid(KERBEROS_OID);
token = generateGSSToken(token, negotiationOid, authServer, credentials);
/*
* IIS accepts Kerberos and SPNEGO tokens. Some other servers Jboss, Glassfish?
* seem to only accept SPNEGO. Below wraps Kerberos into SPNEGO token.
*/
if (token != null && spengoGenerator != null) {
try {
token = spengoGenerator.generateSpnegoDERObject(token);
} catch (final IOException ex) {
log.error(ex.getMessage(), ex);
}
}
}
return token;
}
/**
* Returns the authentication parameter with the given name, if available.
*
* <p>There are no valid parameters for Negotiate authentication so this
* method always returns {@code null}.</p>
*
* @param name The name of the parameter to be returned
*
* @return the parameter with the given name
*/
@Override
public String getParameter(final String name) {
Args.notNull(name, "Parameter name");
return null;
}
/**
* The concept of an authentication realm is not supported by the Negotiate
* authentication scheme. Always returns {@code null}.
*
* @return {@code null}
*/
@Override
public String getRealm() {
return null;
}
/**
* Returns {@code true}.
* Negotiate authentication scheme is connection based.
*
* @return {@code true}.
*/
@Override
public boolean isConnectionBased() {
return true;
}
}
| [
"[email protected]"
] | |
11cb1e0eafc65e1d50a1cc5a5f947f7c44fdcc1f | 758f8c4a6dae0a30ad2ccbbb1c4bc23d318076eb | /src/test/java/com/url/urlshortener/UrlshortenerApplicationTests.java | 8fdd82eccaa1ccc233cfa05b6fc74e2e24ac2f36 | [] | no_license | harshitsri128/urlshortener | 942678a5760d934ff1ac0e3f9926d288ba98038d | 16bdff7612d9737c60209dcfb87386a995ab0268 | refs/heads/master | 2023-04-01T10:40:32.842755 | 2021-04-13T15:03:00 | 2021-04-13T15:03:00 | 193,128,776 | 0 | 0 | null | 2021-04-13T12:06:47 | 2019-06-21T16:22:09 | Java | UTF-8 | Java | false | false | 218 | java | package com.url.urlshortener;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class UrlshortenerApplicationTests {
@Test
void contextLoads() {
}
}
| [
"[email protected]"
] | |
491faf547e3ef1b26a8fb823d8f8fe8b0ab09350 | 056fcc67222afe34d96fd9cadb35469f6d305907 | /driveronly_mp_rom/frameworks/base/core/java/com/android/internal/app/ActionBarImpl.java | 699b0ed0d9dc25a5659fc545a480b9e219246f83 | [
"LicenseRef-scancode-unicode",
"Apache-2.0"
] | permissive | datagutt/12055 | a9e98f2972a76d92b7d07eee690cd1300b780efe | 593741d834fff91ad3587c762caea5f00b69ba69 | refs/heads/master | 2020-07-21T13:04:55.731555 | 2013-10-10T06:12:43 | 2013-10-10T06:12:43 | 14,116,459 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 41,596 | java | /*
* Copyright (C) 2010 The Android Open Source Project
*
* 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.android.internal.app;
import com.android.internal.view.ActionBarPolicy;
import com.android.internal.view.menu.MenuBuilder;
import com.android.internal.view.menu.MenuPopupHelper;
import com.android.internal.view.menu.SubMenuBuilder;
import com.android.internal.widget.ActionBarContainer;
import com.android.internal.widget.ActionBarContextView;
import com.android.internal.widget.ActionBarOverlayLayout;
import com.android.internal.widget.ActionBarView;
import com.android.internal.widget.ScrollingTabContainerView;
import android.animation.Animator;
import android.animation.Animator.AnimatorListener;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.app.ActionBar;
import android.app.Activity;
import android.app.Dialog;
import android.app.FragmentTransaction;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.util.Log;
import android.util.TypedValue;
import android.view.ActionMode;
import android.view.ContextThemeWrapper;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.accessibility.AccessibilityEvent;
import android.view.animation.AnimationUtils;
import android.widget.SpinnerAdapter;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
/**
* ActionBarImpl is the ActionBar implementation used
* by devices of all screen sizes. If it detects a compatible decor,
* it will split contextual modes across both the ActionBarView at
* the top of the screen and a horizontal LinearLayout at the bottom
* which is normally hidden.
*/
public class ActionBarImpl extends ActionBar {
private static final String TAG = "ActionBarImpl";
private Context mContext;
private Context mThemedContext;
private Activity mActivity;
private Dialog mDialog;
private ActionBarOverlayLayout mOverlayLayout;
private ActionBarContainer mContainerView;
private ViewGroup mTopVisibilityView;
private ActionBarView mActionView;
private ActionBarContextView mContextView;
private ActionBarContainer mSplitView;
private View mContentView;
@android.annotation.OppoHook(
level = android.annotation.OppoHook.OppoHookType.CHANGE_ACCESS,
property = android.annotation.OppoHook.OppoRomType.ROM,
note = "private : [email protected] : Modify for oppoStyle Tab")
/*private*/ ScrollingTabContainerView mTabScrollView;
private ArrayList<TabImpl> mTabs = new ArrayList<TabImpl>();
private TabImpl mSelectedTab;
private int mSavedTabPosition = INVALID_POSITION;
private boolean mDisplayHomeAsUpSet;
ActionModeImpl mActionMode;
ActionMode mDeferredDestroyActionMode;
ActionMode.Callback mDeferredModeDestroyCallback;
private boolean mLastMenuVisibility;
private ArrayList<OnMenuVisibilityListener> mMenuVisibilityListeners =
new ArrayList<OnMenuVisibilityListener>();
private static final int CONTEXT_DISPLAY_NORMAL = 0;
private static final int CONTEXT_DISPLAY_SPLIT = 1;
private static final int INVALID_POSITION = -1;
private int mContextDisplayMode;
private boolean mHasEmbeddedTabs;
final Handler mHandler = new Handler();
Runnable mTabSelector;
private int mCurWindowVisibility = View.VISIBLE;
private boolean mHiddenByApp;
private boolean mHiddenBySystem;
private boolean mShowingForMode;
private boolean mNowShowing = true;
@android.annotation.OppoHook(
level = android.annotation.OppoHook.OppoHookType.CHANGE_ACCESS,
property = android.annotation.OppoHook.OppoRomType.ROM,
note = "private : [email protected] : Modify for ActionMode animation")
/*private*/ Animator mCurrentShowAnim;
private boolean mShowHideAnimationEnabled;
final AnimatorListener mHideListener = new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
if (mContentView != null) {
mContentView.setTranslationY(0);
mTopVisibilityView.setTranslationY(0);
}
if (mSplitView != null && mContextDisplayMode == CONTEXT_DISPLAY_SPLIT) {
mSplitView.setVisibility(View.GONE);
}
mTopVisibilityView.setVisibility(View.GONE);
mContainerView.setTransitioning(false);
mCurrentShowAnim = null;
completeDeferredDestroyActionMode();
if (mOverlayLayout != null) {
mOverlayLayout.requestFitSystemWindows();
}
}
};
final AnimatorListener mShowListener = new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
mCurrentShowAnim = null;
mTopVisibilityView.requestLayout();
}
};
public ActionBarImpl(Activity activity) {
mActivity = activity;
Window window = activity.getWindow();
View decor = window.getDecorView();
init(decor);
if (!mActivity.getWindow().hasFeature(Window.FEATURE_ACTION_BAR_OVERLAY)) {
mContentView = decor.findViewById(android.R.id.content);
}
}
public ActionBarImpl(Dialog dialog) {
mDialog = dialog;
init(dialog.getWindow().getDecorView());
}
@android.annotation.OppoHook(
level = android.annotation.OppoHook.OppoHookType.CHANGE_CODE,
property = android.annotation.OppoHook.OppoRomType.ROM,
note = "[email protected] : Modify for ActionMode animation")
private void init(View decor) {
mContext = decor.getContext();
mOverlayLayout = (ActionBarOverlayLayout) decor.findViewById(
com.android.internal.R.id.action_bar_overlay_layout);
if (mOverlayLayout != null) {
mOverlayLayout.setActionBar(this);
}
mActionView = (ActionBarView) decor.findViewById(com.android.internal.R.id.action_bar);
mContextView = (ActionBarContextView) decor.findViewById(
com.android.internal.R.id.action_context_bar);
mContainerView = (ActionBarContainer) decor.findViewById(
com.android.internal.R.id.action_bar_container);
mTopVisibilityView = (ViewGroup)decor.findViewById(
com.android.internal.R.id.top_action_bar);
if (mTopVisibilityView == null) {
mTopVisibilityView = mContainerView;
}
mSplitView = (ActionBarContainer) decor.findViewById(
com.android.internal.R.id.split_action_bar);
if (mActionView == null || mContextView == null || mContainerView == null) {
throw new IllegalStateException(getClass().getSimpleName() + " can only be used " +
"with a compatible window decor layout");
}
mActionView.setContextView(mContextView);
mContextDisplayMode = mActionView.isSplitActionBar() ?
CONTEXT_DISPLAY_SPLIT : CONTEXT_DISPLAY_NORMAL;
// This was initially read from the action bar style
final int current = mActionView.getDisplayOptions();
final boolean homeAsUp = (current & DISPLAY_HOME_AS_UP) != 0;
if (homeAsUp) {
mDisplayHomeAsUpSet = true;
}
ActionBarPolicy abp = ActionBarPolicy.get(mContext);
setHomeButtonEnabled(abp.enableHomeButtonByDefault() || homeAsUp);
setHasEmbeddedTabs(abp.hasEmbeddedTabs());
//#ifdef VENDOR_EDIT
//#@OppoHook
//[email protected], 2013/07/27, Add for ActionMode animation
hookInitViews(new View[] { mOverlayLayout, mContainerView, mTopVisibilityView
, mActionView, mContextView, mSplitView });
//#endif /* VENDOR_EDIT */
}
public void onConfigurationChanged(Configuration newConfig) {
setHasEmbeddedTabs(ActionBarPolicy.get(mContext).hasEmbeddedTabs());
}
private void setHasEmbeddedTabs(boolean hasEmbeddedTabs) {
mHasEmbeddedTabs = hasEmbeddedTabs;
// Switch tab layout configuration if needed
if (!mHasEmbeddedTabs) {
mActionView.setEmbeddedTabView(null);
mContainerView.setTabContainer(mTabScrollView);
} else {
mContainerView.setTabContainer(null);
mActionView.setEmbeddedTabView(mTabScrollView);
}
final boolean isInTabMode = getNavigationMode() == NAVIGATION_MODE_TABS;
if (mTabScrollView != null) {
if (isInTabMode) {
mTabScrollView.setVisibility(View.VISIBLE);
if (mOverlayLayout != null) {
mOverlayLayout.requestFitSystemWindows();
}
} else {
mTabScrollView.setVisibility(View.GONE);
}
}
mActionView.setCollapsable(!mHasEmbeddedTabs && isInTabMode);
}
public boolean hasNonEmbeddedTabs() {
return !mHasEmbeddedTabs && getNavigationMode() == NAVIGATION_MODE_TABS;
}
@android.annotation.OppoHook(
level = android.annotation.OppoHook.OppoHookType.CHANGE_CODE,
property = android.annotation.OppoHook.OppoRomType.ROM,
note = "[email protected] : Modify for oppoStyle Tab")
private void ensureTabsExist() {
if (mTabScrollView != null) {
return;
}
//#ifndef VENDOR_EDIT
//#@OppoHook
//[email protected], 2013/07/29, Modify for oppoStyle Tab
/*
ScrollingTabContainerView tabScroller = new ScrollingTabContainerView(mContext);
*/
//#else /* VENDOR_EDIT */
ScrollingTabContainerView tabScroller =
com.android.internal.widget.OppoScrollingTabContainerView.newInstance(mContext);
//#endif /* VENDOR_EDIT */
if (mHasEmbeddedTabs) {
tabScroller.setVisibility(View.VISIBLE);
mActionView.setEmbeddedTabView(tabScroller);
} else {
if (getNavigationMode() == NAVIGATION_MODE_TABS) {
tabScroller.setVisibility(View.VISIBLE);
if (mOverlayLayout != null) {
mOverlayLayout.requestFitSystemWindows();
}
} else {
tabScroller.setVisibility(View.GONE);
}
mContainerView.setTabContainer(tabScroller);
}
mTabScrollView = tabScroller;
}
void completeDeferredDestroyActionMode() {
if (mDeferredModeDestroyCallback != null) {
mDeferredModeDestroyCallback.onDestroyActionMode(mDeferredDestroyActionMode);
mDeferredDestroyActionMode = null;
mDeferredModeDestroyCallback = null;
}
}
public void setWindowVisibility(int visibility) {
mCurWindowVisibility = visibility;
}
/**
* Enables or disables animation between show/hide states.
* If animation is disabled using this method, animations in progress
* will be finished.
*
* @param enabled true to animate, false to not animate.
*/
public void setShowHideAnimationEnabled(boolean enabled) {
mShowHideAnimationEnabled = enabled;
if (!enabled && mCurrentShowAnim != null) {
mCurrentShowAnim.end();
}
}
public void addOnMenuVisibilityListener(OnMenuVisibilityListener listener) {
mMenuVisibilityListeners.add(listener);
}
public void removeOnMenuVisibilityListener(OnMenuVisibilityListener listener) {
mMenuVisibilityListeners.remove(listener);
}
public void dispatchMenuVisibilityChanged(boolean isVisible) {
if (isVisible == mLastMenuVisibility) {
return;
}
mLastMenuVisibility = isVisible;
final int count = mMenuVisibilityListeners.size();
for (int i = 0; i < count; i++) {
mMenuVisibilityListeners.get(i).onMenuVisibilityChanged(isVisible);
}
}
@Override
public void setCustomView(int resId) {
setCustomView(LayoutInflater.from(getThemedContext()).inflate(resId, mActionView, false));
}
@Override
public void setDisplayUseLogoEnabled(boolean useLogo) {
setDisplayOptions(useLogo ? DISPLAY_USE_LOGO : 0, DISPLAY_USE_LOGO);
}
@Override
public void setDisplayShowHomeEnabled(boolean showHome) {
setDisplayOptions(showHome ? DISPLAY_SHOW_HOME : 0, DISPLAY_SHOW_HOME);
}
@Override
public void setDisplayHomeAsUpEnabled(boolean showHomeAsUp) {
setDisplayOptions(showHomeAsUp ? DISPLAY_HOME_AS_UP : 0, DISPLAY_HOME_AS_UP);
}
@Override
public void setDisplayShowTitleEnabled(boolean showTitle) {
setDisplayOptions(showTitle ? DISPLAY_SHOW_TITLE : 0, DISPLAY_SHOW_TITLE);
}
@Override
public void setDisplayShowCustomEnabled(boolean showCustom) {
setDisplayOptions(showCustom ? DISPLAY_SHOW_CUSTOM : 0, DISPLAY_SHOW_CUSTOM);
}
@Override
public void setHomeButtonEnabled(boolean enable) {
mActionView.setHomeButtonEnabled(enable);
}
@Override
public void setTitle(int resId) {
setTitle(mContext.getString(resId));
}
@Override
public void setSubtitle(int resId) {
setSubtitle(mContext.getString(resId));
}
public void setSelectedNavigationItem(int position) {
switch (mActionView.getNavigationMode()) {
case NAVIGATION_MODE_TABS:
selectTab(mTabs.get(position));
break;
case NAVIGATION_MODE_LIST:
mActionView.setDropdownSelectedPosition(position);
break;
default:
throw new IllegalStateException(
"setSelectedNavigationIndex not valid for current navigation mode");
}
}
public void removeAllTabs() {
cleanupTabs();
}
private void cleanupTabs() {
if (mSelectedTab != null) {
selectTab(null);
}
mTabs.clear();
if (mTabScrollView != null) {
mTabScrollView.removeAllTabs();
}
mSavedTabPosition = INVALID_POSITION;
}
public void setTitle(CharSequence title) {
mActionView.setTitle(title);
}
public void setSubtitle(CharSequence subtitle) {
mActionView.setSubtitle(subtitle);
}
public void setDisplayOptions(int options) {
if ((options & DISPLAY_HOME_AS_UP) != 0) {
mDisplayHomeAsUpSet = true;
}
mActionView.setDisplayOptions(options);
}
public void setDisplayOptions(int options, int mask) {
final int current = mActionView.getDisplayOptions();
if ((mask & DISPLAY_HOME_AS_UP) != 0) {
mDisplayHomeAsUpSet = true;
}
mActionView.setDisplayOptions((options & mask) | (current & ~mask));
}
public void setBackgroundDrawable(Drawable d) {
mContainerView.setPrimaryBackground(d);
}
public void setStackedBackgroundDrawable(Drawable d) {
mContainerView.setStackedBackground(d);
}
public void setSplitBackgroundDrawable(Drawable d) {
if (mSplitView != null) {
mSplitView.setSplitBackground(d);
}
}
public View getCustomView() {
return mActionView.getCustomNavigationView();
}
public CharSequence getTitle() {
return mActionView.getTitle();
}
public CharSequence getSubtitle() {
return mActionView.getSubtitle();
}
public int getNavigationMode() {
return mActionView.getNavigationMode();
}
public int getDisplayOptions() {
return mActionView.getDisplayOptions();
}
public ActionMode startActionMode(ActionMode.Callback callback) {
if (mActionMode != null) {
mActionMode.finish();
}
mContextView.killMode();
ActionModeImpl mode = new ActionModeImpl(callback);
if (mode.dispatchOnCreate()) {
mode.invalidate();
mContextView.initForMode(mode);
animateToMode(true);
if (mSplitView != null && mContextDisplayMode == CONTEXT_DISPLAY_SPLIT) {
// TODO animate this
if (mSplitView.getVisibility() != View.VISIBLE) {
mSplitView.setVisibility(View.VISIBLE);
if (mOverlayLayout != null) {
mOverlayLayout.requestFitSystemWindows();
}
}
}
mContextView.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED);
mActionMode = mode;
return mode;
}
return null;
}
private void configureTab(Tab tab, int position) {
final TabImpl tabi = (TabImpl) tab;
final ActionBar.TabListener callback = tabi.getCallback();
if (callback == null) {
throw new IllegalStateException("Action Bar Tab must have a Callback");
}
tabi.setPosition(position);
mTabs.add(position, tabi);
final int count = mTabs.size();
for (int i = position + 1; i < count; i++) {
mTabs.get(i).setPosition(i);
}
}
@Override
public void addTab(Tab tab) {
addTab(tab, mTabs.isEmpty());
}
@Override
public void addTab(Tab tab, int position) {
addTab(tab, position, mTabs.isEmpty());
}
@Override
public void addTab(Tab tab, boolean setSelected) {
ensureTabsExist();
mTabScrollView.addTab(tab, setSelected);
configureTab(tab, mTabs.size());
if (setSelected) {
selectTab(tab);
}
}
@Override
public void addTab(Tab tab, int position, boolean setSelected) {
ensureTabsExist();
mTabScrollView.addTab(tab, position, setSelected);
configureTab(tab, position);
if (setSelected) {
selectTab(tab);
}
}
@Override
public Tab newTab() {
return new TabImpl();
}
@Override
public void removeTab(Tab tab) {
removeTabAt(tab.getPosition());
}
@Override
public void removeTabAt(int position) {
if (mTabScrollView == null) {
// No tabs around to remove
return;
}
int selectedTabPosition = mSelectedTab != null
? mSelectedTab.getPosition() : mSavedTabPosition;
mTabScrollView.removeTabAt(position);
TabImpl removedTab = mTabs.remove(position);
if (removedTab != null) {
removedTab.setPosition(-1);
}
final int newTabCount = mTabs.size();
for (int i = position; i < newTabCount; i++) {
mTabs.get(i).setPosition(i);
}
if (selectedTabPosition == position) {
selectTab(mTabs.isEmpty() ? null : mTabs.get(Math.max(0, position - 1)));
}
}
@Override
public void selectTab(Tab tab) {
if (getNavigationMode() != NAVIGATION_MODE_TABS) {
mSavedTabPosition = tab != null ? tab.getPosition() : INVALID_POSITION;
return;
}
final FragmentTransaction trans = mActivity.getFragmentManager().beginTransaction()
.disallowAddToBackStack();
if (mSelectedTab == tab) {
if (mSelectedTab != null) {
mSelectedTab.getCallback().onTabReselected(mSelectedTab, trans);
mTabScrollView.animateToTab(tab.getPosition());
}
} else {
mTabScrollView.setTabSelected(tab != null ? tab.getPosition() : Tab.INVALID_POSITION);
if (mSelectedTab != null) {
mSelectedTab.getCallback().onTabUnselected(mSelectedTab, trans);
}
mSelectedTab = (TabImpl) tab;
if (mSelectedTab != null) {
mSelectedTab.getCallback().onTabSelected(mSelectedTab, trans);
}
}
if (!trans.isEmpty()) {
trans.commit();
}
}
@Override
public Tab getSelectedTab() {
return mSelectedTab;
}
@Override
public int getHeight() {
return mContainerView.getHeight();
}
@Override
public void show() {
if (mHiddenByApp) {
mHiddenByApp = false;
updateVisibility(false);
}
}
private void showForActionMode() {
if (!mShowingForMode) {
mShowingForMode = true;
if (mOverlayLayout != null) {
mOverlayLayout.setShowingForActionMode(true);
}
updateVisibility(false);
}
}
public void showForSystem() {
if (mHiddenBySystem) {
mHiddenBySystem = false;
updateVisibility(true);
}
}
@Override
public void hide() {
if (!mHiddenByApp) {
mHiddenByApp = true;
updateVisibility(false);
}
}
private void hideForActionMode() {
if (mShowingForMode) {
mShowingForMode = false;
if (mOverlayLayout != null) {
mOverlayLayout.setShowingForActionMode(false);
}
updateVisibility(false);
}
}
public void hideForSystem() {
if (!mHiddenBySystem) {
mHiddenBySystem = true;
updateVisibility(true);
}
}
private static boolean checkShowingFlags(boolean hiddenByApp, boolean hiddenBySystem,
boolean showingForMode) {
if (showingForMode) {
return true;
} else if (hiddenByApp || hiddenBySystem) {
return false;
} else {
return true;
}
}
private void updateVisibility(boolean fromSystem) {
// Based on the current state, should we be hidden or shown?
final boolean shown = checkShowingFlags(mHiddenByApp, mHiddenBySystem,
mShowingForMode);
if (shown) {
if (!mNowShowing) {
mNowShowing = true;
doShow(fromSystem);
}
} else {
if (mNowShowing) {
mNowShowing = false;
doHide(fromSystem);
}
}
}
public void doShow(boolean fromSystem) {
if (mCurrentShowAnim != null) {
mCurrentShowAnim.end();
}
mTopVisibilityView.setVisibility(View.VISIBLE);
if (mCurWindowVisibility == View.VISIBLE && (mShowHideAnimationEnabled
|| fromSystem)) {
mTopVisibilityView.setTranslationY(0); // because we're about to ask its window loc
float startingY = -mTopVisibilityView.getHeight();
if (fromSystem) {
int topLeft[] = {0, 0};
mTopVisibilityView.getLocationInWindow(topLeft);
startingY -= topLeft[1];
}
mTopVisibilityView.setTranslationY(startingY);
AnimatorSet anim = new AnimatorSet();
AnimatorSet.Builder b = anim.play(ObjectAnimator.ofFloat(mTopVisibilityView,
"translationY", 0));
if (mContentView != null) {
b.with(ObjectAnimator.ofFloat(mContentView, "translationY",
startingY, 0));
}
if (mSplitView != null && mContextDisplayMode == CONTEXT_DISPLAY_SPLIT) {
mSplitView.setTranslationY(mSplitView.getHeight());
mSplitView.setVisibility(View.VISIBLE);
b.with(ObjectAnimator.ofFloat(mSplitView, "translationY", 0));
}
anim.setInterpolator(AnimationUtils.loadInterpolator(mContext,
com.android.internal.R.interpolator.decelerate_cubic));
anim.setDuration(250);
// If this is being shown from the system, add a small delay.
// This is because we will also be animating in the status bar,
// and these two elements can't be done in lock-step. So we give
// a little time for the status bar to start its animation before
// the action bar animates. (This corresponds to the corresponding
// case when hiding, where the status bar has a small delay before
// starting.)
anim.addListener(mShowListener);
mCurrentShowAnim = anim;
anim.start();
} else {
mTopVisibilityView.setAlpha(1);
mTopVisibilityView.setTranslationY(0);
if (mContentView != null) {
mContentView.setTranslationY(0);
}
if (mSplitView != null && mContextDisplayMode == CONTEXT_DISPLAY_SPLIT) {
mSplitView.setAlpha(1);
mSplitView.setTranslationY(0);
mSplitView.setVisibility(View.VISIBLE);
}
mShowListener.onAnimationEnd(null);
}
if (mOverlayLayout != null) {
mOverlayLayout.requestFitSystemWindows();
}
}
public void doHide(boolean fromSystem) {
if (mCurrentShowAnim != null) {
mCurrentShowAnim.end();
}
if (mCurWindowVisibility == View.VISIBLE && (mShowHideAnimationEnabled
|| fromSystem)) {
mTopVisibilityView.setAlpha(1);
mContainerView.setTransitioning(true);
AnimatorSet anim = new AnimatorSet();
float endingY = -mTopVisibilityView.getHeight();
if (fromSystem) {
int topLeft[] = {0, 0};
mTopVisibilityView.getLocationInWindow(topLeft);
endingY -= topLeft[1];
}
AnimatorSet.Builder b = anim.play(ObjectAnimator.ofFloat(mTopVisibilityView,
"translationY", endingY));
if (mContentView != null) {
b.with(ObjectAnimator.ofFloat(mContentView, "translationY",
0, endingY));
}
if (mSplitView != null && mSplitView.getVisibility() == View.VISIBLE) {
mSplitView.setAlpha(1);
b.with(ObjectAnimator.ofFloat(mSplitView, "translationY",
mSplitView.getHeight()));
}
anim.setInterpolator(AnimationUtils.loadInterpolator(mContext,
com.android.internal.R.interpolator.accelerate_cubic));
anim.setDuration(250);
anim.addListener(mHideListener);
mCurrentShowAnim = anim;
anim.start();
} else {
mHideListener.onAnimationEnd(null);
}
}
public boolean isShowing() {
return mNowShowing;
}
public boolean isSystemShowing() {
return !mHiddenBySystem;
}
void animateToMode(boolean toActionMode) {
if (toActionMode) {
showForActionMode();
} else {
hideForActionMode();
}
mActionView.animateToVisibility(toActionMode ? View.GONE : View.VISIBLE);
mContextView.animateToVisibility(toActionMode ? View.VISIBLE : View.GONE);
if (mTabScrollView != null && !mActionView.hasEmbeddedTabs() && mActionView.isCollapsed()) {
mTabScrollView.animateToVisibility(toActionMode ? View.GONE : View.VISIBLE);
}
}
public Context getThemedContext() {
if (mThemedContext == null) {
TypedValue outValue = new TypedValue();
Resources.Theme currentTheme = mContext.getTheme();
currentTheme.resolveAttribute(com.android.internal.R.attr.actionBarWidgetTheme,
outValue, true);
final int targetThemeRes = outValue.resourceId;
if (targetThemeRes != 0 && mContext.getThemeResId() != targetThemeRes) {
mThemedContext = new ContextThemeWrapper(mContext, targetThemeRes);
} else {
mThemedContext = mContext;
}
}
return mThemedContext;
}
/**
* @hide
*/
public class ActionModeImpl extends ActionMode implements MenuBuilder.Callback {
private ActionMode.Callback mCallback;
private MenuBuilder mMenu;
private WeakReference<View> mCustomView;
public ActionModeImpl(ActionMode.Callback callback) {
mCallback = callback;
mMenu = new MenuBuilder(getThemedContext())
.setDefaultShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
mMenu.setCallback(this);
}
@Override
public MenuInflater getMenuInflater() {
return new MenuInflater(getThemedContext());
}
@Override
public Menu getMenu() {
return mMenu;
}
@Override
public void finish() {
if (mActionMode != this) {
// Not the active action mode - no-op
return;
}
// If this change in state is going to cause the action bar
// to be hidden, defer the onDestroy callback until the animation
// is finished and associated relayout is about to happen. This lets
// apps better anticipate visibility and layout behavior.
if (!checkShowingFlags(mHiddenByApp, mHiddenBySystem, false)) {
// With the current state but the action bar hidden, our
// overall showing state is going to be false.
mDeferredDestroyActionMode = this;
mDeferredModeDestroyCallback = mCallback;
} else {
mCallback.onDestroyActionMode(this);
}
mCallback = null;
animateToMode(false);
// Clear out the context mode views after the animation finishes
mContextView.closeMode();
mActionView.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED);
mActionMode = null;
}
@Override
public void invalidate() {
mMenu.stopDispatchingItemsChanged();
try {
mCallback.onPrepareActionMode(this, mMenu);
} finally {
mMenu.startDispatchingItemsChanged();
}
}
public boolean dispatchOnCreate() {
mMenu.stopDispatchingItemsChanged();
try {
return mCallback.onCreateActionMode(this, mMenu);
} finally {
mMenu.startDispatchingItemsChanged();
}
}
@Override
public void setCustomView(View view) {
mContextView.setCustomView(view);
mCustomView = new WeakReference<View>(view);
}
@Override
public void setSubtitle(CharSequence subtitle) {
mContextView.setSubtitle(subtitle);
}
@Override
public void setTitle(CharSequence title) {
mContextView.setTitle(title);
}
@Override
public void setTitle(int resId) {
setTitle(mContext.getResources().getString(resId));
}
@Override
public void setSubtitle(int resId) {
setSubtitle(mContext.getResources().getString(resId));
}
@Override
public CharSequence getTitle() {
return mContextView.getTitle();
}
@Override
public CharSequence getSubtitle() {
return mContextView.getSubtitle();
}
@Override
public void setTitleOptionalHint(boolean titleOptional) {
super.setTitleOptionalHint(titleOptional);
mContextView.setTitleOptional(titleOptional);
}
@Override
public boolean isTitleOptional() {
return mContextView.isTitleOptional();
}
@Override
public View getCustomView() {
return mCustomView != null ? mCustomView.get() : null;
}
public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) {
if (mCallback != null) {
return mCallback.onActionItemClicked(this, item);
} else {
return false;
}
}
public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) {
}
public boolean onSubMenuSelected(SubMenuBuilder subMenu) {
if (mCallback == null) {
return false;
}
if (!subMenu.hasVisibleItems()) {
return true;
}
new MenuPopupHelper(getThemedContext(), subMenu).show();
return true;
}
public void onCloseSubMenu(SubMenuBuilder menu) {
}
public void onMenuModeChange(MenuBuilder menu) {
if (mCallback == null) {
return;
}
invalidate();
mContextView.showOverflowMenu();
}
}
/**
* @hide
*/
public class TabImpl extends ActionBar.Tab {
private ActionBar.TabListener mCallback;
private Object mTag;
private Drawable mIcon;
private CharSequence mText;
private CharSequence mContentDesc;
private int mPosition = -1;
private View mCustomView;
@Override
public Object getTag() {
return mTag;
}
@Override
public Tab setTag(Object tag) {
mTag = tag;
return this;
}
public ActionBar.TabListener getCallback() {
return mCallback;
}
@Override
public Tab setTabListener(ActionBar.TabListener callback) {
mCallback = callback;
return this;
}
@Override
public View getCustomView() {
return mCustomView;
}
@Override
public Tab setCustomView(View view) {
mCustomView = view;
if (mPosition >= 0) {
mTabScrollView.updateTab(mPosition);
}
return this;
}
@Override
public Tab setCustomView(int layoutResId) {
return setCustomView(LayoutInflater.from(getThemedContext())
.inflate(layoutResId, null));
}
@Override
public Drawable getIcon() {
return mIcon;
}
@Override
public int getPosition() {
return mPosition;
}
public void setPosition(int position) {
mPosition = position;
}
@Override
public CharSequence getText() {
return mText;
}
@Override
public Tab setIcon(Drawable icon) {
mIcon = icon;
if (mPosition >= 0) {
mTabScrollView.updateTab(mPosition);
}
return this;
}
@Override
public Tab setIcon(int resId) {
return setIcon(mContext.getResources().getDrawable(resId));
}
@Override
public Tab setText(CharSequence text) {
mText = text;
if (mPosition >= 0) {
mTabScrollView.updateTab(mPosition);
}
return this;
}
@Override
public Tab setText(int resId) {
return setText(mContext.getResources().getText(resId));
}
@Override
public void select() {
selectTab(this);
}
@Override
public Tab setContentDescription(int resId) {
return setContentDescription(mContext.getResources().getText(resId));
}
@Override
public Tab setContentDescription(CharSequence contentDesc) {
mContentDesc = contentDesc;
if (mPosition >= 0) {
mTabScrollView.updateTab(mPosition);
}
return this;
}
@Override
public CharSequence getContentDescription() {
return mContentDesc;
}
}
@Override
public void setCustomView(View view) {
mActionView.setCustomNavigationView(view);
}
@Override
public void setCustomView(View view, LayoutParams layoutParams) {
view.setLayoutParams(layoutParams);
mActionView.setCustomNavigationView(view);
}
@Override
public void setListNavigationCallbacks(SpinnerAdapter adapter, OnNavigationListener callback) {
mActionView.setDropdownAdapter(adapter);
mActionView.setCallback(callback);
}
@Override
public int getSelectedNavigationIndex() {
switch (mActionView.getNavigationMode()) {
case NAVIGATION_MODE_TABS:
return mSelectedTab != null ? mSelectedTab.getPosition() : -1;
case NAVIGATION_MODE_LIST:
return mActionView.getDropdownSelectedPosition();
default:
return -1;
}
}
@Override
public int getNavigationItemCount() {
switch (mActionView.getNavigationMode()) {
case NAVIGATION_MODE_TABS:
return mTabs.size();
case NAVIGATION_MODE_LIST:
SpinnerAdapter adapter = mActionView.getDropdownAdapter();
return adapter != null ? adapter.getCount() : 0;
default:
return 0;
}
}
@Override
public int getTabCount() {
return mTabs.size();
}
@Override
public void setNavigationMode(int mode) {
final int oldMode = mActionView.getNavigationMode();
switch (oldMode) {
case NAVIGATION_MODE_TABS:
mSavedTabPosition = getSelectedNavigationIndex();
selectTab(null);
mTabScrollView.setVisibility(View.GONE);
break;
}
if (oldMode != mode && !mHasEmbeddedTabs) {
if (mOverlayLayout != null) {
mOverlayLayout.requestFitSystemWindows();
}
}
mActionView.setNavigationMode(mode);
switch (mode) {
case NAVIGATION_MODE_TABS:
ensureTabsExist();
mTabScrollView.setVisibility(View.VISIBLE);
if (mSavedTabPosition != INVALID_POSITION) {
setSelectedNavigationItem(mSavedTabPosition);
mSavedTabPosition = INVALID_POSITION;
}
break;
}
mActionView.setCollapsable(mode == NAVIGATION_MODE_TABS && !mHasEmbeddedTabs);
}
@Override
public Tab getTabAt(int index) {
return mTabs.get(index);
}
@Override
public void setIcon(int resId) {
mActionView.setIcon(resId);
}
@Override
public void setIcon(Drawable icon) {
mActionView.setIcon(icon);
}
@Override
public void setLogo(int resId) {
mActionView.setLogo(resId);
}
@Override
public void setLogo(Drawable logo) {
mActionView.setLogo(logo);
}
public void setDefaultDisplayHomeAsUpEnabled(boolean enable) {
if (!mDisplayHomeAsUpSet) {
setDisplayHomeAsUpEnabled(enable);
}
}
//#ifdef VENDOR_EDIT
//[email protected], 2013/04/11, Add for oppoStyle Tab
@android.annotation.OppoHook(
level = android.annotation.OppoHook.OppoHookType.NEW_METHOD,
property = android.annotation.OppoHook.OppoRomType.ROM,
note = "[email protected] : Add for oppoStyle Tab")
@Override
public void updateAnimateTab(int position, float positionOffset, int positionOffsetPixels) {}
@android.annotation.OppoHook(
level = android.annotation.OppoHook.OppoHookType.NEW_METHOD,
property = android.annotation.OppoHook.OppoRomType.ROM,
note = "[email protected] : Add for oppoStyle Tab")
@Override
public void updateScrollState(int state) {}
//[email protected], 2013/07/26, Add for ActionMode animation
@android.annotation.OppoHook(
level = android.annotation.OppoHook.OppoHookType.NEW_METHOD,
property = android.annotation.OppoHook.OppoRomType.ROM,
note = "[email protected], Add for ActionMode animation")
boolean hookCheckShowingFlags() {
return checkShowingFlags(mHiddenByApp, mHiddenBySystem, false);
}
@android.annotation.OppoHook(
level = android.annotation.OppoHook.OppoHookType.NEW_METHOD,
property = android.annotation.OppoHook.OppoRomType.ROM,
note = "[email protected] : Add for ActionMode animation")
void hookInitViews(final View[] views) {}
//#endif /* VENDOR_EDIT */
}
| [
"[email protected]"
] | |
a35e4745731e0bd5161d5e6c24e20708ed819f7d | 97340c880651e9837f8b10e93f3caa10cfccbc2a | /src/shujujiegou/paixu/jiaohuan_kuaipai.java | 9db4295bcf94689d95d052f11d4cbb3326ce1eaf | [] | no_license | 00lingling/shujujiegou | ac3946d6681173b4413e39473d99350f0b5c84ce | 0a93ea5fb6a912fa4eb760666482cc23c639ac3c | refs/heads/master | 2020-04-24T15:25:27.889347 | 2019-02-22T12:56:42 | 2019-02-22T12:56:42 | 172,066,816 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 936 | java | package shujujiegou.paixu;
import java.util.Arrays;
public class jiaohuan_kuaipai {
public static void main(String[] args) {
int[] arr = new int[]{3, 4, 6, 7, 2, 7, 2, 8, 0};
quickSort(arr, 0, arr.length - 1);
System.out.println(Arrays.toString(arr));
}
public static void quickSort(int[] arr, int start, int end) {
if (start < end) {
int stard = arr[start];
int low = start;
int high = end;
while (low < high) {
while (low < high && arr[high] >= stard) {
high--;
}
arr[low] = arr[high];
while (low < high && arr[low] <= stard) {
low++;
}
arr[high] = arr[low];
}
arr[low] = stard;
quickSort(arr, start, low);
quickSort(arr, low + 1, end);
}
}
}
| [
"zhangling940721.126.com"
] | zhangling940721.126.com |
edf5f00608e4c39259ac101802cb934188d3daf4 | d5f1fac23f35aca2be42266a84d06a2b76be2704 | /bch-tx/src/test/java/com/nchain/tx/TransactionTest.java | c65cf84e3efc4db3cbd2906a67cab190805dbc49 | [] | no_license | paycoin-com/nchain-bch-toolkit | e627ba33ea4876c29c13ba72997818fe278aed0d | 6892329836eb1de869afb12efdc9d2ade83863bf | refs/heads/master | 2020-04-11T10:05:50.209635 | 2018-09-11T11:57:36 | 2018-09-11T11:57:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 22,221 | java | /*
* Copyright 2014 Google Inc.
* Copyright 2016 Andreas Schildbach
*
* 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.nchain.tx;
import com.nchain.address.CashAddress;
import com.nchain.bitcoinkt.core.TransactionSignatureService;
import com.nchain.key.DumpedPrivateKey;
import com.nchain.key.ECKey;
import com.nchain.params.MainNetParams;
import com.nchain.params.NetworkParameters;
import com.nchain.params.UnitTestParams;
import com.nchain.shared.Sha256Hash;
import com.nchain.shared.VerificationException;
import com.nchain.tools.FakeTxBuilder;
import com.nchain.tools.HEX;
import com.nchain.script.Script;
import com.nchain.script.ScriptBuilder;
import com.nchain.script.ScriptException;
import org.junit.Test;
import java.io.IOException;
import java.math.BigInteger;
import java.util.EnumSet;
import static org.junit.Assert.*;
/**
* Just check the Transaction.verify() method. Most methods that have complicated logic in Transaction are tested
* elsewhere, e.g. signing and hashing are well exercised by the wallet tests, the full block chain tests and so on.
* The verify method is also exercised by the full block chain tests, but it can also be used by API users alone,
* so we make sure to cover it here as well.
*/
public class TransactionTest {
private static final NetworkParameters PARAMS = UnitTestParams.INSTANCE;
private static final CashAddress ADDRESS = ECKey.create().toCashAddress(PARAMS);
@Test
public void regular() throws IOException {
FakeTxBuilder.createFakeTx(PARAMS).
build().verify();
}
@Test(expected = VerificationException.EmptyInputsOrOutputs.class)
public void emptyOutputs() throws Exception {
FakeTxBuilder.createFakeTx(PARAMS).
clearOutputs().
build().verify();
}
@Test(expected = VerificationException.EmptyInputsOrOutputs.class)
public void emptyInputs() throws Exception {
FakeTxBuilder.createFakeTx(PARAMS).
clearInputs().
build().verify();
}
@Test(expected = VerificationException.LargerThanMaxBlockSize.class)
public void tooHuge() throws Exception {
FakeTxBuilder.createFakeTx(PARAMS).
addInput(new TransactionInput(new byte[NetworkParameters.MAX_BLOCK_SIZE])).
build().verify();
}
@Test(expected = VerificationException.DuplicatedOutPoint.class)
public void duplicateOutPoint() throws Exception {
TransactionBuilder tx = FakeTxBuilder.createFakeTx(PARAMS);
// Create a new input with the some outpoint of this transaction
final TransactionOutPoint outpoint = tx.getInputs().get(0).getOutpoint();
tx.addInput(new TransactionInput(new byte[]{}, outpoint));
tx.build().verify();
}
@Test(expected = VerificationException.NegativeValueOutput.class)
public void negativeOutput() throws Exception {
FakeTxBuilder.createFakeTx(PARAMS).
addOutput(Coin.valueOf(-2), ECKey.create()).
build().verify();
}
@Test(expected = VerificationException.ExcessiveValue.class)
public void exceedsMaxMoney2() throws Exception {
Coin half = Coin.getCOIN().multiply(NetworkParameters.MAX_COINS).divide(2).add(Coin.getSATOSHI());
FakeTxBuilder.createFakeTx(PARAMS).
clearOutputs().
addOutput(half, ADDRESS).
addOutput(half, ADDRESS).
build().verify();
}
@Test
public void noExceedsMaxMoney() throws Exception {
Coin half = Coin.getCOIN().multiply(NetworkParameters.MAX_COINS).divide(2);
FakeTxBuilder.createFakeTx(PARAMS).
clearOutputs().
addOutput(half, ADDRESS).
addOutput(half, ADDRESS).
build().verify();
}
@Test(expected = VerificationException.UnexpectedCoinbaseInput.class)
public void coinbaseInputInNonCoinbaseTX() throws Exception {
FakeTxBuilder.createFakeTx(PARAMS).
addInput(Sha256Hash.getZERO_HASH(), TransactionInput.NO_SEQUENCE, new ScriptBuilder().data(new byte[10]).build()).
build().verify();
}
@Test(expected = VerificationException.CoinbaseScriptSizeOutOfRange.class)
public void coinbaseScriptSigTooSmall() throws Exception {
FakeTxBuilder.createFakeTx(PARAMS).
clearInputs().
addInput(Sha256Hash.getZERO_HASH(), TransactionInput.NO_SEQUENCE, new ScriptBuilder().build()).
build().verify();
}
@Test(expected = VerificationException.CoinbaseScriptSizeOutOfRange.class)
public void coinbaseScriptSigTooLarge() throws Exception {
Transaction tx = FakeTxBuilder.createFakeTx(PARAMS).
clearInputs().
addInput(Sha256Hash.getZERO_HASH(), TransactionInput.NO_SEQUENCE, new ScriptBuilder().data(new byte[99]).build()).build();
assertEquals(101, tx.getInput(0).getScriptBytes().length);
tx.verify();
}
@Test
public void testOptimalEncodingMessageSize() throws IOException {
Transaction emptyTx = new TransactionBuilder().build();
final int lengthTransactionEmpty = emptyTx.bitcoinSerialize().length;
final CashAddress address = ECKey.create().toCashAddress(PARAMS);
Transaction tx = FakeTxBuilder.createFakeTxWithChangeAddress(PARAMS, Coin.getFIFTY_COINS(), address, address).
addOutput(Coin.getCOIN(), ADDRESS).
build();
int lengthFullTransaction = lengthTransactionEmpty;
for (TransactionOutput out : tx.getOutputs()) {
lengthFullTransaction += out.bitcoinSerialize().length;
}
for (TransactionInput in : tx.getInputs()) {
lengthFullTransaction += in.bitcoinSerialize().length;
}
assertEquals(lengthFullTransaction, tx.bitcoinSerialize().length);
}
/*
@Test
public void testIsMatureReturnsFalseIfTransactionIsCoinbaseAndConfidenceTypeIsNotEqualToBuilding() {
Transaction tx = FakeTxBuilder.createFakeCoinbaseTx(PARAMS);
tx.getConfidence().setConfidenceType(ConfidenceType.UNKNOWN);
assertEquals(tx.isMature(), false);
tx.getConfidence().setConfidenceType(ConfidenceType.PENDING);
assertEquals(tx.isMature(), false);
tx.getConfidence().setConfidenceType(ConfidenceType.DEAD);
assertEquals(tx.isMature(), false);
}
*/
@Test
public void testCLTVPaymentChannelTransactionSpending() {
BigInteger time = BigInteger.valueOf(20);
ECKey from = ECKey.create(), to = ECKey.create(), incorrect = ECKey.create();
Script outputScript = ScriptBuilder.createCLTVPaymentChannelOutput(time, from, to);
Transaction tx = new TransactionBuilder(1, time.subtract(BigInteger.ONE).longValue()).
addInput(new TransactionInput(new byte[]{}, null, 0L)).
build();
TransactionSignature fromSig =
TransactionSignatureService.INSTANCE.calculateSignature(tx, 0, from, outputScript, Transaction.SigHash.SINGLE, false);
TransactionSignature toSig =
TransactionSignatureService.INSTANCE.calculateSignature(tx,0, to, outputScript, Transaction.SigHash.SINGLE, false);
TransactionSignature incorrectSig =
TransactionSignatureService.INSTANCE.calculateSignature(tx,0, incorrect, outputScript, Transaction.SigHash.SINGLE, false);
Script scriptSig =
ScriptBuilder.createCLTVPaymentChannelInput(fromSig, toSig);
Script refundSig =
ScriptBuilder.createCLTVPaymentChannelRefund(fromSig);
Script invalidScriptSig1 =
ScriptBuilder.createCLTVPaymentChannelInput(fromSig, incorrectSig);
Script invalidScriptSig2 =
ScriptBuilder.createCLTVPaymentChannelInput(incorrectSig, toSig);
EnumSet<Script.VerifyFlag> flags = EnumSet.of(Script.VerifyFlag.STRICTENC);
try {
scriptSig.correctlySpends(tx, 0, outputScript, flags);
} catch (ScriptException e) {
e.printStackTrace();
fail("Settle transaction failed to correctly spend the payment channel");
}
try {
refundSig.correctlySpends(tx, 0, outputScript, Script.getALL_VERIFY_FLAGS());
fail("Refund passed before expiry");
} catch (ScriptException e) {
}
try {
invalidScriptSig1.correctlySpends(tx, 0, outputScript, Script.getALL_VERIFY_FLAGS());
fail("Invalid sig 1 passed");
} catch (ScriptException e) {
}
try {
invalidScriptSig2.correctlySpends(tx, 0, outputScript, Script.getALL_VERIFY_FLAGS());
fail("Invalid sig 2 passed");
} catch (ScriptException e) {
}
}
@Test
public void testCLTVPaymentChannelTransactionRefund() {
BigInteger time = BigInteger.valueOf(20);
ECKey from = ECKey.create(), to = ECKey.create(), incorrect = ECKey.create();
Script outputScript = ScriptBuilder.createCLTVPaymentChannelOutput(time, from, to);
Transaction tx = new TransactionBuilder(1, time.add(BigInteger.ONE).longValue()).
addInput(new TransactionInput(new byte[]{}, null, 0L)).
build();
TransactionSignature fromSig =
TransactionSignatureService.INSTANCE.calculateSignature(tx,0, from, outputScript, Transaction.SigHash.SINGLE, false);
TransactionSignature incorrectSig =
TransactionSignatureService.INSTANCE.calculateSignature(tx,0, incorrect, outputScript, Transaction.SigHash.SINGLE, false);
Script scriptSig =
ScriptBuilder.createCLTVPaymentChannelRefund(fromSig);
Script invalidScriptSig =
ScriptBuilder.createCLTVPaymentChannelRefund(incorrectSig);
EnumSet<Script.VerifyFlag> flags = EnumSet.of(Script.VerifyFlag.STRICTENC);
try {
scriptSig.correctlySpends(tx, 0, outputScript, flags);
} catch (ScriptException e) {
e.printStackTrace();
fail("Refund failed to correctly spend the payment channel");
}
try {
invalidScriptSig.correctlySpends(tx, 0, outputScript, Script.getALL_VERIFY_FLAGS());
fail("Invalid sig passed");
} catch (ScriptException e) {
}
}
@Test
public void testToStringWhenIteratingOverAnInputCatchesAnException() {
TransactionInput ti = new TransactionInput(new byte[0]) {
@Override
public Script getScriptSig() throws ScriptException {
throw new ScriptException("");
}
};
Transaction tx = FakeTxBuilder.createFakeTx(PARAMS).addInput(ti).build();
assertEquals(tx.toString().contains("[exception: "), true);
}
@Test
public void testToStringWhenThereAreZeroInputs() {
Transaction tx = new TransactionBuilder().build();
assertEquals(tx.toString().contains("No inputs!"), true);
}
/*
@Test
public void testTheTXByHeightComparator() {
Transaction tx1 = FakeTxBuilder.createFakeTx(PARAMS);
tx1.getConfidence().setAppearedAtChainHeight(1);
Transaction tx2 = FakeTxBuilder.createFakeTx(PARAMS);
tx2.getConfidence().setAppearedAtChainHeight(2);
Transaction tx3 = FakeTxBuilder.createFakeTx(PARAMS);
tx3.getConfidence().setAppearedAtChainHeight(3);
SortedSet<Transaction> set = new TreeSet<Transaction>(Transaction.getSORT_TX_BY_HEIGHT());
set.add(tx2);
set.add(tx1);
set.add(tx3);
Iterator<Transaction> iterator = set.iterator();
assertEquals(tx1.equals(tx2), false);
assertEquals(tx1.equals(tx3), false);
assertEquals(tx1.equals(tx1), true);
assertEquals(iterator.next().equals(tx3), true);
assertEquals(iterator.next().equals(tx2), true);
assertEquals(iterator.next().equals(tx1), true);
assertEquals(iterator.hasNext(), false);
}
@Test(expected = ScriptException.class)
public void testAddSignedInputThrowsExceptionWhenScriptIsNotToRawPubKeyAndIsNotToAddress() {
ECKey key = ECKey.create();
CashAddress addr = key.toCashAddress(PARAMS);
Transaction fakeTx = FakeTxBuilder.createFakeTx(PARAMS, Coin.getCOIN(), addr);
Transaction tx = new Transaction(PARAMS);
tx.addOutput(fakeTx.getOutput(0));
Script script = ScriptBuilder.createOpReturnScript(new byte[0]);
tx.addSignedInput(fakeTx.getOutput(0).getOutPointFor(), script, key);
}
*/
/*
@Test
public void testPrioSizeCalc() throws Exception {
Transaction tx1 = FakeTxBuilder.createFakeTx(PARAMS, Coin.getCOIN(), ADDRESS);
int size1 = tx1.getMessageSize();
int size2 = tx1.getMessageSizeForPriorityCalc();
assertEquals(113, size1 - size2);
tx1.getInput(0).setScriptSig(new Script(new byte[109]));
assertEquals(78, tx1.getMessageSizeForPriorityCalc());
tx1.getInput(0).setScriptSig(new Script(new byte[110]));
assertEquals(78, tx1.getMessageSizeForPriorityCalc());
tx1.getInput(0).setScriptSig(new Script(new byte[111]));
assertEquals(79, tx1.getMessageSizeForPriorityCalc());
}
@Test
public void testCoinbaseHeightCheck() throws VerificationException {
// Coinbase transaction from block 300,000
final byte[] transactionBytes = Utils.INSTANCE.getHEX().decode("01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4803e09304062f503253482f0403c86d53087ceca141295a00002e522cfabe6d6d7561cf262313da1144026c8f7a43e3899c44f6145f39a36507d36679a8b7006104000000000000000000000001c8704095000000001976a91480ad90d403581fa3bf46086a91b2d9d4125db6c188ac00000000");
final int height = 300000;
final Transaction transaction = PARAMS.getDefaultSerializer().makeTransaction(transactionBytes);
transaction.checkCoinBaseHeight(height);
}
*/
/**
* Test a coinbase transaction whose script has nonsense after the block height.
* See https://github.com/bitcoinj/bitcoinj/issues/1097
*/
/*
@Test
public void testCoinbaseHeightCheckWithDamagedScript() throws VerificationException {
// Coinbase transaction from block 224,430
final byte[] transactionBytes = Utils.INSTANCE.getHEX().decode(
"010000000100000000000000000000000000000000000000000000000000000000"
+ "00000000ffffffff3b03ae6c0300044bd7031a0400000000522cfabe6d6d0000"
+ "0000000000b7b8bf0100000068692066726f6d20706f6f6c7365727665726aac"
+ "1eeeed88ffffffff01e0587597000000001976a91421c0d001728b3feaf11551"
+ "5b7c135e779e9f442f88ac00000000");
final int height = 224430;
final Transaction transaction = PARAMS.getDefaultSerializer().makeTransaction(transactionBytes);
transaction.checkCoinBaseHeight(height);
}
*/
/**
* Ensure that hashForSignature() doesn't modify a transaction's data, which could wreak multithreading havoc.
*/
/*
@Test
public void testHashForSignatureThreadSafety() {
Block genesis = UnitTestParams.INSTANCE.getGenesisBlock();
Block block1 = genesis.createNextBlock(ECKey.create().toAddress(UnitTestParams.INSTANCE),
genesis.getTransactions().get(0).getOutput(0).getOutPointFor());
final Transaction tx = block1.getTransactions().get(1);
final String txHash = tx.getHashAsString();
final String txNormalizedHash = new TransactionSignatureBuilder(tx).hashForSignature(0, new byte[0], Transaction.SigHash.ALL.byteValue()).toString();
for (int i = 0; i < 100; i++) {
// ensure the transaction object itself was not modified; if it was, the hash will change
assertEquals(txHash, tx.getHashAsString());
new Thread(){
public void run() {
assertEquals(txNormalizedHash, new TransactionSignatureBuilder(tx).hashForSignature(0, new byte[0], Transaction.SigHash.ALL.byteValue()).toString());
}
};
}
}
*/
@Test
public void testHashForSignature() {
String dumpedPrivateKey = "KyYyHLChvJKrM4kxCEpdmqR2usQoET2V1JbexZjaxV36wytPw7v1";
DumpedPrivateKey dumpedPrivateKey1 = DumpedPrivateKey.fromBase58(MainNetParams.INSTANCE, dumpedPrivateKey);
ECKey key = dumpedPrivateKey1.getKey();
String txConnectedData = "020000000284ff1fbdee5aeeaf7976ddfb395e00066c150d4ed90da089f5b47e46215dc23c010000006b4830450221008e1f85698b5130f2dd56236541f2b2c1f7676721acebbbdc3c8711a345d2f96b022065f1f2ea915b8844319b3e81e33cb6a26ecee838dc0060248b10039e994ab1e641210248dd879c54147390a12f8e8a7aa8f23ce2659a996fa7bf756d6b2187d8ed624ffeffffffefd0db693d73d8087eb1f44916be55ee025f25d7a3dbcf82e3318e56e6ccded9000000006a4730440221009c6ba90ca215ce7ad270e6688940aa6d97be6c901a430969d9d88bef7c8dc607021f51d088dadcaffbd88e5514afedfa9e2cac61a1024aaa4c88873361193e4da24121039cc4a69e1e93ebadab2870c69cb4feb0c1c2bfad38be81dda2a72c57d8b14e11feffffff0230c80700000000001976a914517abefd39e71c633bd5a23fd75b5dbd47bc461b88acc8911400000000001976a9147b983c4efaf519e9caebde067b6495e5dcc491cb88acba4f0700";
Transaction txConnected = Transaction.parse(txConnectedData);
String txData = "0200000001411d29708a0b4165910fbc73b6efbd3d183b1bf457d8840beb23874714c41f61010000006a47304402204b3b868a9a966c44fb05f2cfb3c888b5617435d00ebe1dfe4bd452fd538592d90220626adfb79def08c0375de226b77cefbd3c659aad299dfe950539d01d2770132a41210354662c29cec7074ad26af8664bffdb7f540990ece13a872da5fdfa8be019563efeffffff027f5a1100000000001976a914dcbfe1b282c167c1942a2bdc927de8b4a368146588ac400d0300000000001976a914fb57314db46dd11b4a99c16779a5e160858df43888acd74f0700";
Transaction tx = Transaction.parse(txData);
Script sig = tx.getInput(0).getScriptSig();
EnumSet<Script.VerifyFlag> flags = EnumSet.of(Script.VerifyFlag.STRICTENC, Script.VerifyFlag.SIGHASH_FORKID);
sig.correctlySpends(tx, 0, txConnected.getOutput(1).getScriptPubKey(), txConnected.getOutput(1).getValue(), flags);
}
@Test
public void testOpReturn() {
CashAddress goodAddress = CashAddress.fromBase58(PARAMS, "mrj2K6txjo2QBcSmuAzHj4nD1oXSEJE1Qo");
final byte[] bytes = "hello".getBytes();
Transaction withReturnData = FakeTxBuilder.createFakeTxToMeWithReturnData(PARAMS, Coin.getZERO(), goodAddress, bytes).build();
assertEquals(true, withReturnData.isOpReturn());
assertArrayEquals(bytes, withReturnData.getOpReturnData());
Transaction withoutReturnData = FakeTxBuilder.createFakeTx(PARAMS).build();
assertEquals(false, withoutReturnData.isOpReturn());
assertEquals(null, withoutReturnData.getOpReturnData());
}
@Test
public void testRawParseAndExport() {
NetworkParameters params = PARAMS;
// https://blockchain.info/tx/ed27cf72886af7c830faeff136b3859185310334330a4856f60c768ab46b9c1c
String rawTx1 = "010000000193e3073ecc1d27f17e3d287ccefdfdba5f7d8c160242dbcd547b18baef12f9b31a0000006b483045022100af501dc9ef2907247d28a5169b8362ca494e1993f833928b77264e604329eec40220313594f38f97c255bcea6d5a4a68e920508ef93fd788bcf5b0ad2fa5d34940180121034bb555cc39ba30561793cf39a35c403fe8cf4a89403b02b51e058960520bd1e3ffffffff02b3bb0200000000001976a914f7d52018971f4ab9b56f0036958f84ae0325ccdc88ac98100700000000001976a914f230f0a16a98433eca0fa70487b85fb83f7b61cd88ac00000000";
Transaction tx1 = Transaction.parse(rawTx1);
assertEquals(rawTx1, HEX.encode(tx1.bitcoinSerialize()));
// https://blockchain.info/tx/0024db8e11da76b2344e0722bf9488ba2aed611913f9803a62ac3b41f5603946
String rawTx2 = "01000000011c9c6bb48a760cf656480a33340331859185b336f1effa30c8f76a8872cf27ed000000006a47304402201c999cf44dc6576783c0f55b8ff836a1e22db87ed67dc3c39515a6676cfb58e902200b4a925f9c8d6895beed841db135051f8664ab349f2e3ea9f8523a6f47f93883012102e58d7b931b5d43780fda0abc50cfd568fcc26fb7da6a71591a43ac8e0738b9a4ffffffff029b010100000000001976a9140f0fcdf818c0c88df6860c85c9cc248b9f37eaff88ac95300100000000001976a9140663d2403f560f8d053a25fbea618eb47071617688ac00000000";
Transaction tx2 = Transaction.parse(rawTx2);
assertEquals(rawTx2, HEX.encode(tx2.bitcoinSerialize()));
// https://blockchair.com/bitcoin-cash/transaction/0eab89a271380b09987bcee5258fca91f28df4dadcedf892658b9bc261050d96
String rawTx3 = "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff2c03ccec051f4d696e656420627920416e74506f6f6c20626a3515d2158520566e53850b00110000008c7a0900ffffffff01e170f895000000001976a9149524440a5b54cca9c46ef277c34739e9b521856d88ac00000000";
Transaction tx3 = Transaction.parse(rawTx3);
assertEquals(rawTx3, HEX.encode(tx3.bitcoinSerialize()));
// https://blockchair.com/bitcoin-cash/transaction/1e24eaaa72b6c10a4d57084ab3acb612bd123bbf64c2a5746b6221b02202090e
String rawTx4 = "0200000001a73374e059d610c0f8ee6fcbc1f89b54ebf7b109426b38d8e3e744e698abf8a5010000006a47304402200dfc3bacafb825c0c457ff3756e9c243965be45d5d490e70c5dfb2f6060445870220431e3d9f852d4b5803ab0d189d8931dc6c35f3724d6be3e8928043b7c789f66a4121022e46d40245e27e8ef260f8d724838c850a5447b81ae9f77d2d5e28fd2640a36a0000000001d4092800000000001976a9147775f3423eb410a4184d9d3ef93f7ed4d1c1d4e988ac00000000";
Transaction tx4 = Transaction.parse(rawTx4);
assertEquals(rawTx4, HEX.encode(tx4.bitcoinSerialize()));
}
}
| [
"[email protected]"
] | |
2a2ca34d231e6846cf507493667efbac7c495a92 | 6259bd893514fa804b611cc47a55e56030676e7b | /app/src/main/java/com/android/app/electricvehicle/entity/ShowInDetailEntity.java | 7b2aa137879d32c1e7a21f02d0e0a00b17f84ade | [] | no_license | jaywen0813/electricvehicle2 | dd03ce8de7d457e26a2aae12c9c1efe8535fdc12 | a7376697ecec04af8c7bea105c6a7154ae41d042 | refs/heads/master | 2021-08-09T23:37:27.289928 | 2020-08-17T09:20:59 | 2020-08-17T09:20:59 | 213,530,543 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 57,862 | java | package com.android.app.electricvehicle.entity;
import java.util.List;
public class ShowInDetailEntity {
/**
* ticket : 80ac4a1a85013e22a420cb24c80e78f1
* success : T
* code : null
* message : null
* method : null
* uri : null
* timestamp : 1571842851379
* data : {"pageNo":1,"pageSize":10,"pageCount":3,"totalCount":21,"beginPageIndex":1,"endPageIndex":3,"dataList":[{"id":"8b88edb0f56611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571815638798,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571815638798,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186906931529388032","workCode":"4444","madeTime":1571815638532,"packingMaterial":0,"rankNum":77555,"totalNum":55554,"packLength":7885,"packwidth":885,"packHeight":844,"netWeight":855,"roughWeight":57,"storeState":1,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"885","comments":"885","installTime":1571815620000,"deliveryDate":1571815622000,"remark":"","PackingItems":[{"id":"8b89b984f56611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571815638803,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571815638803,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"8b88edb0f56611e9a72d0242ac110004","soItem":"路","material":"888","rl":888,"agl":888,"qty":888,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"待入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"2019-10-23","deliveryDateText":"2019-10-23"},{"id":"68f5f082f55e11e9a72d0242ac110004","tokenId":null,"version":1,"locked":false,"lastAccess":1571812221624,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571812144818,"updaterId":"a475d2268eb511e992930242ac110012","updatedBy":"英特诺","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186892276715098112","workCode":"58777933","madeTime":1571812144818,"packingMaterial":0,"rankNum":1,"totalNum":1,"packLength":0,"packwidth":0,"packHeight":0,"netWeight":0,"roughWeight":0,"storeState":2,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"test","comments":"","installTime":0,"deliveryDate":0,"remark":"","PackingItems":[{"id":"68f6da1ff55e11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571812144824,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571812144824,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"68f5f082f55e11e9a72d0242ac110004","soItem":"10","material":"RD-17W2JF4JAC","rl":500,"agl":0,"qty":0,"wtpc":0,"totalWeight":0,"remark":"19876543","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"已入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"1970-01-01","deliveryDateText":"1970-01-01"},{"id":"0872075ff53611e9a72d0242ac110004","tokenId":null,"version":1,"locked":false,"lastAccess":1571794978821,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571794803022,"updaterId":"a475d2268eb511e992930242ac110012","updatedBy":"英特诺","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186819539921408000","workCode":"58700315","madeTime":1571794803015,"packingMaterial":0,"rankNum":1,"totalNum":1,"packLength":0,"packwidth":0,"packHeight":0,"netWeight":0,"roughWeight":0,"storeState":2,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"1976783","comments":"","installTime":0,"deliveryDate":0,"remark":"","PackingItems":[{"id":"0875414af53611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571794803044,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571794803044,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"0872075ff53611e9a72d0242ac110004","soItem":"20","material":"RD-17Y4JABNAE","rl":228,"agl":0,"qty":1111111,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"已入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"1970-01-01","deliveryDateText":"1970-01-01"},{"id":"b3b9777ef4de11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571757294669,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571757294669,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186662218515746816","workCode":"4455","madeTime":1571757293902,"packingMaterial":0,"rankNum":55,"totalNum":888,"packLength":558,"packwidth":555,"packHeight":585,"netWeight":588,"roughWeight":588,"storeState":1,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"5566","comments":"588","installTime":1571757257000,"deliveryDate":1571757260000,"remark":"","PackingItems":[{"id":"b3b9f235f4de11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571757294673,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571757294673,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"b3b9777ef4de11e9a72d0242ac110004","soItem":"855","material":"7KK","rl":888,"agl":8888,"qty":888,"wtpc":0,"totalWeight":0,"remark":"","enable":true},{"id":"b3ba43e0f4de11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571757294675,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571757294675,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"b3b9777ef4de11e9a72d0242ac110004","soItem":"855","material":"7KK","rl":888,"agl":8888,"qty":888,"wtpc":0,"totalWeight":0,"remark":"","enable":true},{"id":"b3baa34ff4de11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571757294677,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571757294677,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"b3b9777ef4de11e9a72d0242ac110004","soItem":"855","material":"7KK","rl":888,"agl":8888,"qty":888,"wtpc":0,"totalWeight":0,"remark":"","enable":true},{"id":"b3baf13cf4de11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571757294679,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571757294679,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"b3b9777ef4de11e9a72d0242ac110004","soItem":"5555","material":"9886","rl":888,"agl":555,"qty":8888,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"待入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"2019-10-22","deliveryDateText":"2019-10-22"},{"id":"e5ee8b1df4ac11e9a72d0242ac110004","tokenId":null,"version":2,"locked":false,"lastAccess":1571736103083,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571735904067,"updaterId":"a475d2268eb511e992930242ac110012","updatedBy":"英特诺","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186572499828215808","workCode":"58708074","madeTime":1571735904067,"packingMaterial":0,"rankNum":1,"totalNum":1,"packLength":0,"packwidth":0,"packHeight":0,"netWeight":0,"roughWeight":0,"storeState":3,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"","comments":"","installTime":0,"deliveryDate":0,"remark":"","PackingItems":[{"id":"e5ef5d11f4ac11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571735904072,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571735904072,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"e5ee8b1df4ac11e9a72d0242ac110004","soItem":"50","material":"RD-35HKHJ4N7X","rl":663,"agl":0,"qty":0,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"已出库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"1970-01-01","deliveryDateText":"1970-01-01"},{"id":"2412f362f4ac11e9a72d0242ac110004","tokenId":null,"version":1,"locked":false,"lastAccess":1571736062196,"disabled":true,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571735578828,"updaterId":"a475d2268eb511e992930242ac110012","updatedBy":"英特诺","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186571135676977152","workCode":"9999","madeTime":1571735578881,"packingMaterial":0,"rankNum":5,"totalNum":56,"packLength":555,"packwidth":555,"packHeight":555,"netWeight":586,"roughWeight":585,"storeState":1,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"885","comments":"888","installTime":1569143530000,"deliveryDate":1571908332000,"remark":"","PackingItems":[{"id":"24135852f4ac11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571735578830,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571735578830,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"2412f362f4ac11e9a72d0242ac110004","soItem":"666","material":"999","rl":666,"agl":666,"qty":666,"wtpc":0,"totalWeight":0,"remark":"","enable":true},{"id":"2413e862f4ac11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571735578834,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571735578834,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"2412f362f4ac11e9a72d0242ac110004","soItem":"666","material":"999","rl":666,"agl":666,"qty":666,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"待入库","billPrintText":"未打印","billArchivedText":"未归档","enable":false,"installTimeText":"2019-09-22","deliveryDateText":"2019-10-24"},{"id":"13f9415bf4ac11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571735551816,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571735551816,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186571022376243200","workCode":"9999","madeTime":1571735551835,"packingMaterial":0,"rankNum":5,"totalNum":56,"packLength":555,"packwidth":555,"packHeight":555,"netWeight":586,"roughWeight":585,"storeState":1,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"885","comments":"888","installTime":1571735530000,"deliveryDate":1571908332000,"remark":"","PackingItems":[{"id":"13f9d011f4ac11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571735551819,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571735551819,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"13f9415bf4ac11e9a72d0242ac110004","soItem":"666","material":"999","rl":666,"agl":666,"qty":666,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"待入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"2019-10-22","deliveryDateText":"2019-10-24"},{"id":"163350b7f4a711e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571733408068,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571733408068,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186562030849626112","workCode":"123","madeTime":1569501298656,"packingMaterial":0,"rankNum":2,"totalNum":5,"packLength":500,"packwidth":500,"packHeight":500,"netWeight":5000,"roughWeight":5200,"storeState":1,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"000","comments":"","installTime":12341232131,"deliveryDate":0,"remark":"","PackingItems":[{"id":"1633bae9f4a711e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571733408071,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571733408071,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"163350b7f4a711e9a72d0242ac110004","soItem":"10","material":"RD-89VHJ4A5PF","rl":100,"agl":200,"qty":300,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"待入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"1970-05-24","deliveryDateText":"1970-01-01"},{"id":"a32376d5f4a611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571733215026,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571733215026,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186561221172793344","workCode":"123","madeTime":1569501298656,"packingMaterial":0,"rankNum":2,"totalNum":5,"packLength":500,"packwidth":500,"packHeight":500,"netWeight":5000,"roughWeight":5200,"storeState":1,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"","comments":"","installTime":0,"deliveryDate":0,"remark":"","PackingItems":[{"id":"a323e9e3f4a611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571733215029,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571733215029,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"a32376d5f4a611e9a72d0242ac110004","soItem":"10","material":"RD-89VHJ4A5PF","rl":100,"agl":200,"qty":300,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"待入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"1970-01-01","deliveryDateText":"1970-01-01"},{"id":"986a903cf4a611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571733197037,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571733197037,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186561145721458688","workCode":"123","madeTime":1569501298656,"packingMaterial":0,"rankNum":2,"totalNum":5,"packLength":500,"packwidth":500,"packHeight":500,"netWeight":5000,"roughWeight":5200,"storeState":1,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"","comments":"","installTime":0,"deliveryDate":0,"remark":"","PackingItems":[{"id":"986b1872f4a611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571733197041,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571733197041,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"986a903cf4a611e9a72d0242ac110004","soItem":"10","material":"RD-89VHJ4A5PF","rl":100,"agl":200,"qty":300,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"待入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"1970-01-01","deliveryDateText":"1970-01-01"}],"countResultMap":null,"draw":1,"recordsTotal":21,"recordsFiltered":21,"nextPageNo":2}
* args : null
* moreinfo : null
* detail : null
* subCode : null
* subMessage : null
*/
private String ticket;
private String success;
private String code;
private String message;
private String method;
private String uri;
private long timestamp;
private DataBean data;
private String args;
private String moreinfo;
private String detail;
private String subCode;
private String subMessage;
public String getTicket() {
return ticket;
}
public void setTicket(String ticket) {
this.ticket = ticket;
}
public String getSuccess() {
return success;
}
public void setSuccess(String success) {
this.success = success;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public String getUri() {
return uri;
}
public void setUri(String uri) {
this.uri = uri;
}
public long getTimestamp() {
return timestamp;
}
public void setTimestamp(long timestamp) {
this.timestamp = timestamp;
}
public DataBean getData() {
return data;
}
public void setData(DataBean data) {
this.data = data;
}
public String getArgs() {
return args;
}
public void setArgs(String args) {
this.args = args;
}
public String getMoreinfo() {
return moreinfo;
}
public void setMoreinfo(String moreinfo) {
this.moreinfo = moreinfo;
}
public String getDetail() {
return detail;
}
public void setDetail(String detail) {
this.detail = detail;
}
public String getSubCode() {
return subCode;
}
public void setSubCode(String subCode) {
this.subCode = subCode;
}
public String getSubMessage() {
return subMessage;
}
public void setSubMessage(String subMessage) {
this.subMessage = subMessage;
}
public static class DataBean {
/**
* pageNo : 1
* pageSize : 10
* pageCount : 3
* totalCount : 21
* beginPageIndex : 1
* endPageIndex : 3
* dataList : [{"id":"8b88edb0f56611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571815638798,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571815638798,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186906931529388032","workCode":"4444","madeTime":1571815638532,"packingMaterial":0,"rankNum":77555,"totalNum":55554,"packLength":7885,"packwidth":885,"packHeight":844,"netWeight":855,"roughWeight":57,"storeState":1,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"885","comments":"885","installTime":1571815620000,"deliveryDate":1571815622000,"remark":"","PackingItems":[{"id":"8b89b984f56611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571815638803,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571815638803,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"8b88edb0f56611e9a72d0242ac110004","soItem":"路","material":"888","rl":888,"agl":888,"qty":888,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"待入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"2019-10-23","deliveryDateText":"2019-10-23"},{"id":"68f5f082f55e11e9a72d0242ac110004","tokenId":null,"version":1,"locked":false,"lastAccess":1571812221624,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571812144818,"updaterId":"a475d2268eb511e992930242ac110012","updatedBy":"英特诺","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186892276715098112","workCode":"58777933","madeTime":1571812144818,"packingMaterial":0,"rankNum":1,"totalNum":1,"packLength":0,"packwidth":0,"packHeight":0,"netWeight":0,"roughWeight":0,"storeState":2,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"test","comments":"","installTime":0,"deliveryDate":0,"remark":"","PackingItems":[{"id":"68f6da1ff55e11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571812144824,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571812144824,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"68f5f082f55e11e9a72d0242ac110004","soItem":"10","material":"RD-17W2JF4JAC","rl":500,"agl":0,"qty":0,"wtpc":0,"totalWeight":0,"remark":"19876543","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"已入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"1970-01-01","deliveryDateText":"1970-01-01"},{"id":"0872075ff53611e9a72d0242ac110004","tokenId":null,"version":1,"locked":false,"lastAccess":1571794978821,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571794803022,"updaterId":"a475d2268eb511e992930242ac110012","updatedBy":"英特诺","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186819539921408000","workCode":"58700315","madeTime":1571794803015,"packingMaterial":0,"rankNum":1,"totalNum":1,"packLength":0,"packwidth":0,"packHeight":0,"netWeight":0,"roughWeight":0,"storeState":2,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"1976783","comments":"","installTime":0,"deliveryDate":0,"remark":"","PackingItems":[{"id":"0875414af53611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571794803044,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571794803044,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"0872075ff53611e9a72d0242ac110004","soItem":"20","material":"RD-17Y4JABNAE","rl":228,"agl":0,"qty":1111111,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"已入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"1970-01-01","deliveryDateText":"1970-01-01"},{"id":"b3b9777ef4de11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571757294669,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571757294669,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186662218515746816","workCode":"4455","madeTime":1571757293902,"packingMaterial":0,"rankNum":55,"totalNum":888,"packLength":558,"packwidth":555,"packHeight":585,"netWeight":588,"roughWeight":588,"storeState":1,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"5566","comments":"588","installTime":1571757257000,"deliveryDate":1571757260000,"remark":"","PackingItems":[{"id":"b3b9f235f4de11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571757294673,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571757294673,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"b3b9777ef4de11e9a72d0242ac110004","soItem":"855","material":"7KK","rl":888,"agl":8888,"qty":888,"wtpc":0,"totalWeight":0,"remark":"","enable":true},{"id":"b3ba43e0f4de11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571757294675,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571757294675,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"b3b9777ef4de11e9a72d0242ac110004","soItem":"855","material":"7KK","rl":888,"agl":8888,"qty":888,"wtpc":0,"totalWeight":0,"remark":"","enable":true},{"id":"b3baa34ff4de11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571757294677,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571757294677,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"b3b9777ef4de11e9a72d0242ac110004","soItem":"855","material":"7KK","rl":888,"agl":8888,"qty":888,"wtpc":0,"totalWeight":0,"remark":"","enable":true},{"id":"b3baf13cf4de11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571757294679,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571757294679,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"b3b9777ef4de11e9a72d0242ac110004","soItem":"5555","material":"9886","rl":888,"agl":555,"qty":8888,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"待入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"2019-10-22","deliveryDateText":"2019-10-22"},{"id":"e5ee8b1df4ac11e9a72d0242ac110004","tokenId":null,"version":2,"locked":false,"lastAccess":1571736103083,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571735904067,"updaterId":"a475d2268eb511e992930242ac110012","updatedBy":"英特诺","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186572499828215808","workCode":"58708074","madeTime":1571735904067,"packingMaterial":0,"rankNum":1,"totalNum":1,"packLength":0,"packwidth":0,"packHeight":0,"netWeight":0,"roughWeight":0,"storeState":3,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"","comments":"","installTime":0,"deliveryDate":0,"remark":"","PackingItems":[{"id":"e5ef5d11f4ac11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571735904072,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571735904072,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"e5ee8b1df4ac11e9a72d0242ac110004","soItem":"50","material":"RD-35HKHJ4N7X","rl":663,"agl":0,"qty":0,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"已出库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"1970-01-01","deliveryDateText":"1970-01-01"},{"id":"2412f362f4ac11e9a72d0242ac110004","tokenId":null,"version":1,"locked":false,"lastAccess":1571736062196,"disabled":true,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571735578828,"updaterId":"a475d2268eb511e992930242ac110012","updatedBy":"英特诺","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186571135676977152","workCode":"9999","madeTime":1571735578881,"packingMaterial":0,"rankNum":5,"totalNum":56,"packLength":555,"packwidth":555,"packHeight":555,"netWeight":586,"roughWeight":585,"storeState":1,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"885","comments":"888","installTime":1569143530000,"deliveryDate":1571908332000,"remark":"","PackingItems":[{"id":"24135852f4ac11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571735578830,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571735578830,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"2412f362f4ac11e9a72d0242ac110004","soItem":"666","material":"999","rl":666,"agl":666,"qty":666,"wtpc":0,"totalWeight":0,"remark":"","enable":true},{"id":"2413e862f4ac11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571735578834,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571735578834,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"2412f362f4ac11e9a72d0242ac110004","soItem":"666","material":"999","rl":666,"agl":666,"qty":666,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"待入库","billPrintText":"未打印","billArchivedText":"未归档","enable":false,"installTimeText":"2019-09-22","deliveryDateText":"2019-10-24"},{"id":"13f9415bf4ac11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571735551816,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571735551816,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186571022376243200","workCode":"9999","madeTime":1571735551835,"packingMaterial":0,"rankNum":5,"totalNum":56,"packLength":555,"packwidth":555,"packHeight":555,"netWeight":586,"roughWeight":585,"storeState":1,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"885","comments":"888","installTime":1571735530000,"deliveryDate":1571908332000,"remark":"","PackingItems":[{"id":"13f9d011f4ac11e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571735551819,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571735551819,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"13f9415bf4ac11e9a72d0242ac110004","soItem":"666","material":"999","rl":666,"agl":666,"qty":666,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"待入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"2019-10-22","deliveryDateText":"2019-10-24"},{"id":"163350b7f4a711e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571733408068,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571733408068,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186562030849626112","workCode":"123","madeTime":1569501298656,"packingMaterial":0,"rankNum":2,"totalNum":5,"packLength":500,"packwidth":500,"packHeight":500,"netWeight":5000,"roughWeight":5200,"storeState":1,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"000","comments":"","installTime":12341232131,"deliveryDate":0,"remark":"","PackingItems":[{"id":"1633bae9f4a711e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571733408071,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571733408071,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"163350b7f4a711e9a72d0242ac110004","soItem":"10","material":"RD-89VHJ4A5PF","rl":100,"agl":200,"qty":300,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"待入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"1970-05-24","deliveryDateText":"1970-01-01"},{"id":"a32376d5f4a611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571733215026,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571733215026,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186561221172793344","workCode":"123","madeTime":1569501298656,"packingMaterial":0,"rankNum":2,"totalNum":5,"packLength":500,"packwidth":500,"packHeight":500,"netWeight":5000,"roughWeight":5200,"storeState":1,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"","comments":"","installTime":0,"deliveryDate":0,"remark":"","PackingItems":[{"id":"a323e9e3f4a611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571733215029,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571733215029,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"a32376d5f4a611e9a72d0242ac110004","soItem":"10","material":"RD-89VHJ4A5PF","rl":100,"agl":200,"qty":300,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"待入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"1970-01-01","deliveryDateText":"1970-01-01"},{"id":"986a903cf4a611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571733197037,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571733197037,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"tenantId":"304548c2ec8033f4917b18bfe144c569","packingCode":"1186561145721458688","workCode":"123","madeTime":1569501298656,"packingMaterial":0,"rankNum":2,"totalNum":5,"packLength":500,"packwidth":500,"packHeight":500,"netWeight":5000,"roughWeight":5200,"storeState":1,"billArchived":0,"billPrint":0,"printTimes":0,"salesOrder":"","comments":"","installTime":0,"deliveryDate":0,"remark":"","PackingItems":[{"id":"986b1872f4a611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571733197041,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571733197041,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"986a903cf4a611e9a72d0242ac110004","soItem":"10","material":"RD-89VHJ4A5PF","rl":100,"agl":200,"qty":300,"wtpc":0,"totalWeight":0,"remark":"","enable":true}],"packingMaterialText":"Carton(纸箱)","storeStateText":"待入库","billPrintText":"未打印","billArchivedText":"未归档","enable":true,"installTimeText":"1970-01-01","deliveryDateText":"1970-01-01"}]
* countResultMap : null
* draw : 1
* recordsTotal : 21
* recordsFiltered : 21
* nextPageNo : 2
*/
private String pageNo;
private String pageSize;
private String pageCount;
private String totalCount;
private String beginPageIndex;
private String endPageIndex;
private String countResultMap;
private String draw;
private String recordsTotal;
private String recordsFiltered;
private String nextPageNo;
private List<DataListBean> dataList;
public String getPageNo() {
return pageNo;
}
public void setPageNo(String pageNo) {
this.pageNo = pageNo;
}
public String getPageSize() {
return pageSize;
}
public void setPageSize(String pageSize) {
this.pageSize = pageSize;
}
public String getPageCount() {
return pageCount;
}
public void setPageCount(String pageCount) {
this.pageCount = pageCount;
}
public String getTotalCount() {
return totalCount;
}
public void setTotalCount(String totalCount) {
this.totalCount = totalCount;
}
public String getBeginPageIndex() {
return beginPageIndex;
}
public void setBeginPageIndex(String beginPageIndex) {
this.beginPageIndex = beginPageIndex;
}
public String getEndPageIndex() {
return endPageIndex;
}
public void setEndPageIndex(String endPageIndex) {
this.endPageIndex = endPageIndex;
}
public String getCountResultMap() {
return countResultMap;
}
public void setCountResultMap(String countResultMap) {
this.countResultMap = countResultMap;
}
public String getDraw() {
return draw;
}
public void setDraw(String draw) {
this.draw = draw;
}
public String getRecordsTotal() {
return recordsTotal;
}
public void setRecordsTotal(String recordsTotal) {
this.recordsTotal = recordsTotal;
}
public String getRecordsFiltered() {
return recordsFiltered;
}
public void setRecordsFiltered(String recordsFiltered) {
this.recordsFiltered = recordsFiltered;
}
public String getNextPageNo() {
return nextPageNo;
}
public void setNextPageNo(String nextPageNo) {
this.nextPageNo = nextPageNo;
}
public List<DataListBean> getDataList() {
return dataList;
}
public void setDataList(List<DataListBean> dataList) {
this.dataList = dataList;
}
public static class DataListBean {
/**
* id : 8b88edb0f56611e9a72d0242ac110004
* tokenId : null
* version : 0
* locked : false
* lastAccess : 1571815638798
* disabled : false
* creatorId : a475d2268eb511e992930242ac110012
* createdBy : 英特诺
* createdTime : 1571815638798
* updaterId :
* updatedBy :
* dataId : null
* isNew : null
* logTime : null
* tenantId : 304548c2ec8033f4917b18bfe144c569
* packingCode : 1186906931529388032
* workCode : 4444
* madeTime : 1571815638532
* packingMaterial : 0
* rankNum : 77555
* totalNum : 55554
* packLength : 7885
* packwidth : 885
* packHeight : 844
* netWeight : 855
* roughWeight : 57
* storeState : 1
* billArchived : 0
* billPrint : 0
* printTimes : 0
* salesOrder : 885
* comments : 885
* installTime : 1571815620000
* deliveryDate : 1571815622000
* remark :
* PackingItems : [{"id":"8b89b984f56611e9a72d0242ac110004","tokenId":null,"version":0,"locked":false,"lastAccess":1571815638803,"disabled":false,"creatorId":"a475d2268eb511e992930242ac110012","createdBy":"英特诺","createdTime":1571815638803,"updaterId":"","updatedBy":"","dataId":null,"isNew":null,"logTime":null,"packingId":"8b88edb0f56611e9a72d0242ac110004","soItem":"路","material":"888","rl":888,"agl":888,"qty":888,"wtpc":0,"totalWeight":0,"remark":"","enable":true}]
* packingMaterialText : Carton(纸箱)
* storeStateText : 待入库
* billPrintText : 未打印
* billArchivedText : 未归档
* enable : true
* installTimeText : 2019-10-23
* deliveryDateText : 2019-10-23
*/
private String id;
private String tokenId;
private int version;
private boolean locked;
private long lastAccess;
private boolean disabled;
private String creatorId;
private String createdBy;
private long createdTime;
private String updaterId;
private String updatedBy;
private String dataId;
private String isNew;
private String logTime;
private String tenantId;
private String packingCode;
private String workCode;
private String madeTime;
private String packingMaterial;
private String rankNum;
private String totalNum;
private String packLength;
private String packwidth;
private String packHeight;
private String netWeight;
private String roughWeight;
private String storeState;
private String billArchived;
private String billPrint;
private String printTimes;
private String salesOrder;
private String comments;
private String installTime;
private String deliveryDate;
private String remark;
private String packingMaterialText;
private String storeStateText;
private String billPrintText;
private String billArchivedText;
private boolean enable;
private String installTimeText;
private String deliveryDateText;
private List<PackingItemsBean> PackingItems;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTokenId() {
return tokenId;
}
public void setTokenId(String tokenId) {
this.tokenId = tokenId;
}
public int getVersion() {
return version;
}
public void setVersion(int version) {
this.version = version;
}
public boolean isLocked() {
return locked;
}
public void setLocked(boolean locked) {
this.locked = locked;
}
public long getLastAccess() {
return lastAccess;
}
public void setLastAccess(long lastAccess) {
this.lastAccess = lastAccess;
}
public boolean isDisabled() {
return disabled;
}
public void setDisabled(boolean disabled) {
this.disabled = disabled;
}
public String getCreatorId() {
return creatorId;
}
public void setCreatorId(String creatorId) {
this.creatorId = creatorId;
}
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public long getCreatedTime() {
return createdTime;
}
public void setCreatedTime(long createdTime) {
this.createdTime = createdTime;
}
public String getUpdaterId() {
return updaterId;
}
public void setUpdaterId(String updaterId) {
this.updaterId = updaterId;
}
public String getUpdatedBy() {
return updatedBy;
}
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
public String getDataId() {
return dataId;
}
public void setDataId(String dataId) {
this.dataId = dataId;
}
public String getIsNew() {
return isNew;
}
public void setIsNew(String isNew) {
this.isNew = isNew;
}
public String getLogTime() {
return logTime;
}
public void setLogTime(String logTime) {
this.logTime = logTime;
}
public String getTenantId() {
return tenantId;
}
public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}
public String getPackingCode() {
return packingCode;
}
public void setPackingCode(String packingCode) {
this.packingCode = packingCode;
}
public String getWorkCode() {
return workCode;
}
public void setWorkCode(String workCode) {
this.workCode = workCode;
}
public String getMadeTime() {
return madeTime;
}
public void setMadeTime(String madeTime) {
this.madeTime = madeTime;
}
public String getPackingMaterial() {
return packingMaterial;
}
public void setPackingMaterial(String packingMaterial) {
this.packingMaterial = packingMaterial;
}
public String getRankNum() {
return rankNum;
}
public void setRankNum(String rankNum) {
this.rankNum = rankNum;
}
public String getTotalNum() {
return totalNum;
}
public void setTotalNum(String totalNum) {
this.totalNum = totalNum;
}
public String getPackLength() {
return packLength;
}
public void setPackLength(String packLength) {
this.packLength = packLength;
}
public String getPackwidth() {
return packwidth;
}
public void setPackwidth(String packwidth) {
this.packwidth = packwidth;
}
public String getPackHeight() {
return packHeight;
}
public void setPackHeight(String packHeight) {
this.packHeight = packHeight;
}
public String getNetWeight() {
return netWeight;
}
public void setNetWeight(String netWeight) {
this.netWeight = netWeight;
}
public String getRoughWeight() {
return roughWeight;
}
public void setRoughWeight(String roughWeight) {
this.roughWeight = roughWeight;
}
public String getStoreState() {
return storeState;
}
public void setStoreState(String storeState) {
this.storeState = storeState;
}
public String getBillArchived() {
return billArchived;
}
public void setBillArchived(String billArchived) {
this.billArchived = billArchived;
}
public String getBillPrint() {
return billPrint;
}
public void setBillPrint(String billPrint) {
this.billPrint = billPrint;
}
public String getPrintTimes() {
return printTimes;
}
public void setPrintTimes(String printTimes) {
this.printTimes = printTimes;
}
public String getSalesOrder() {
return salesOrder;
}
public void setSalesOrder(String salesOrder) {
this.salesOrder = salesOrder;
}
public String getComments() {
return comments;
}
public void setComments(String comments) {
this.comments = comments;
}
public String getInstallTime() {
return installTime;
}
public void setInstallTime(String installTime) {
this.installTime = installTime;
}
public String getDeliveryDate() {
return deliveryDate;
}
public void setDeliveryDate(String deliveryDate) {
this.deliveryDate = deliveryDate;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getPackingMaterialText() {
return packingMaterialText;
}
public void setPackingMaterialText(String packingMaterialText) {
this.packingMaterialText = packingMaterialText;
}
public String getStoreStateText() {
return storeStateText;
}
public void setStoreStateText(String storeStateText) {
this.storeStateText = storeStateText;
}
public String getBillPrintText() {
return billPrintText;
}
public void setBillPrintText(String billPrintText) {
this.billPrintText = billPrintText;
}
public String getBillArchivedText() {
return billArchivedText;
}
public void setBillArchivedText(String billArchivedText) {
this.billArchivedText = billArchivedText;
}
public boolean isEnable() {
return enable;
}
public void setEnable(boolean enable) {
this.enable = enable;
}
public String getInstallTimeText() {
return installTimeText;
}
public void setInstallTimeText(String installTimeText) {
this.installTimeText = installTimeText;
}
public String getDeliveryDateText() {
return deliveryDateText;
}
public void setDeliveryDateText(String deliveryDateText) {
this.deliveryDateText = deliveryDateText;
}
public List<PackingItemsBean> getPackingItems() {
return PackingItems;
}
public void setPackingItems(List<PackingItemsBean> PackingItems) {
this.PackingItems = PackingItems;
}
public static class PackingItemsBean {
/**
* id : 8b89b984f56611e9a72d0242ac110004
* tokenId : null
* version : 0
* locked : false
* lastAccess : 1571815638803
* disabled : false
* creatorId : a475d2268eb511e992930242ac110012
* createdBy : 英特诺
* createdTime : 1571815638803
* updaterId :
* updatedBy :
* dataId : null
* isNew : null
* logTime : null
* packingId : 8b88edb0f56611e9a72d0242ac110004
* soItem : 路
* material : 888
* rl : 888
* agl : 888
* qty : 888
* wtpc : 0
* totalWeight : 0
* remark :
* enable : true
*/
private String id;
private String tokenId;
private int version;
private boolean locked;
private long lastAccess;
private boolean disabled;
private String creatorId;
private String createdBy;
private long createdTime;
private String updaterId;
private String updatedBy;
private String dataId;
private String isNew;
private String logTime;
private String packingId;
private String soItem;
private String material;
private String rl;
private String agl;
private String qty;
private String wtpc;
private String totalWeight;
private String remark;
private boolean enable;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTokenId() {
return tokenId;
}
public void setTokenId(String tokenId) {
this.tokenId = tokenId;
}
public int getVersion() {
return version;
}
public void setVersion(int version) {
this.version = version;
}
public boolean isLocked() {
return locked;
}
public void setLocked(boolean locked) {
this.locked = locked;
}
public long getLastAccess() {
return lastAccess;
}
public void setLastAccess(long lastAccess) {
this.lastAccess = lastAccess;
}
public boolean isDisabled() {
return disabled;
}
public void setDisabled(boolean disabled) {
this.disabled = disabled;
}
public String getCreatorId() {
return creatorId;
}
public void setCreatorId(String creatorId) {
this.creatorId = creatorId;
}
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public long getCreatedTime() {
return createdTime;
}
public void setCreatedTime(long createdTime) {
this.createdTime = createdTime;
}
public String getUpdaterId() {
return updaterId;
}
public void setUpdaterId(String updaterId) {
this.updaterId = updaterId;
}
public String getUpdatedBy() {
return updatedBy;
}
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
public String getDataId() {
return dataId;
}
public void setDataId(String dataId) {
this.dataId = dataId;
}
public String getIsNew() {
return isNew;
}
public void setIsNew(String isNew) {
this.isNew = isNew;
}
public String getLogTime() {
return logTime;
}
public void setLogTime(String logTime) {
this.logTime = logTime;
}
public String getPackingId() {
return packingId;
}
public void setPackingId(String packingId) {
this.packingId = packingId;
}
public String getSoItem() {
return soItem;
}
public void setSoItem(String soItem) {
this.soItem = soItem;
}
public String getMaterial() {
return material;
}
public void setMaterial(String material) {
this.material = material;
}
public String getRl() {
return rl;
}
public void setRl(String rl) {
this.rl = rl;
}
public String getAgl() {
return agl;
}
public void setAgl(String agl) {
this.agl = agl;
}
public String getQty() {
return qty;
}
public void setQty(String qty) {
this.qty = qty;
}
public String getWtpc() {
return wtpc;
}
public void setWtpc(String wtpc) {
this.wtpc = wtpc;
}
public String getTotalWeight() {
return totalWeight;
}
public void setTotalWeight(String totalWeight) {
this.totalWeight = totalWeight;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public boolean isEnable() {
return enable;
}
public void setEnable(boolean enable) {
this.enable = enable;
}
}
}
}
}
| [
"[email protected]"
] | |
d143af43b592cf2105549ffe63e159f631d488d7 | 205101b94f7cbb78a6a17f41b4c681fd0a747e74 | /src/proxy/jdkProxy/UserDaoImpl.java | 2f60581119a49495097808342fc9517878b42e31 | [] | no_license | huanghai0/hsm | ece1d28acd054db1a7e52cbab1eda85b08015cc4 | dc477215b70a5514f63a74ef8190c83a127ec828 | refs/heads/master | 2023-04-15T01:42:59.049674 | 2021-04-28T09:56:25 | 2021-04-28T09:56:25 | 350,651,638 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 173 | java | package proxy.jdkProxy;
public class UserDaoImpl implements UserDao {
@Override
public void saveUser() {
System.out.println("----保存用户---");
}
}
| [
"[email protected]"
] | |
c4793490eae27d1e19d8301b561edf71785fd62e | c188408c9ec0425666250b45734f8b4c9644a946 | /open-sphere-base/xyz-tile/src/main/java/io/opensphere/xyztile/transformer/XYZ4326Divider.java | c2312788db346155fb61a9cb29733a6e8a65fe25 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | rkausch/opensphere-desktop | ef8067eb03197c758e3af40ebe49e182a450cc02 | c871c4364b3456685411fddd22414fd40ce65699 | refs/heads/snapshot_5.2.7 | 2023-04-13T21:00:00.575303 | 2020-07-29T17:56:10 | 2020-07-29T17:56:10 | 360,594,280 | 0 | 0 | Apache-2.0 | 2021-04-22T17:40:38 | 2021-04-22T16:58:41 | null | UTF-8 | Java | false | false | 2,527 | java | package io.opensphere.xyztile.transformer;
import java.util.List;
import io.opensphere.core.geometry.ImageManager.RequestObserver;
import io.opensphere.core.model.GeographicBoundingBox;
import io.opensphere.core.model.GeographicPosition;
import io.opensphere.core.model.LatLonAlt;
import io.opensphere.core.util.collections.New;
import io.opensphere.xyztile.model.XYZTileLayerInfo;
/**
* Divider used to divide WGS 84 XYZ tiles.
*/
public class XYZ4326Divider extends XYZBaseDivider
{
/**
* Constructs a new WGS 84 XYZ divider.
*
* @param layer The layer we are dividing tiles for.
* @param queryTracker Used to notify the user of tile downloads.
*/
public XYZ4326Divider(XYZTileLayerInfo layer, RequestObserver queryTracker)
{
super(layer, queryTracker);
}
@Override
protected List<GeographicBoundingBox> calculateNewBoxes(int[] newXs, int[] newYs, int zoom,
GeographicBoundingBox overallBounds)
{
GeographicPosition upperLeftPos = overallBounds.getUpperLeft();
GeographicPosition upperRightPos = overallBounds.getUpperRight();
GeographicPosition lowerLeftPos = overallBounds.getLowerLeft();
GeographicPosition lowerRightPos = overallBounds.getLowerRight();
GeographicPosition centerPos = overallBounds.getCenter();
GeographicBoundingBox upperLeft = new GeographicBoundingBox(
LatLonAlt.createFromDegrees(centerPos.getLat().getMagnitude(), upperLeftPos.getLon().getMagnitude()),
LatLonAlt.createFromDegrees(upperLeftPos.getLat().getMagnitude(), centerPos.getLon().getMagnitude()));
GeographicBoundingBox upperRight = new GeographicBoundingBox(centerPos, upperRightPos);
GeographicBoundingBox lowerLeft = new GeographicBoundingBox(lowerLeftPos, centerPos);
GeographicBoundingBox lowerRight = new GeographicBoundingBox(
LatLonAlt.createFromDegrees(lowerLeftPos.getLat().getMagnitude(), centerPos.getLon().getMagnitude()),
LatLonAlt.createFromDegrees(centerPos.getLat().getMagnitude(), lowerRightPos.getLon().getMagnitude()));
List<GeographicBoundingBox> subBoxes = null;
if (getLayer().isTms())
{
return New.list(lowerLeft, lowerRight, upperLeft, upperRight);
}
else
{
subBoxes = New.list(upperLeft, upperRight, lowerLeft, lowerRight);
}
return subBoxes;
}
}
| [
"[email protected]"
] | |
416cfcd18561f3560bdcc668547d2b155c2d39db | 1618c072cbabb9c87a9a77b56ef0b9fc0353d1dd | /src/com/mojang/launcher/game/process/GameProcessRunnable.java | 0003aff9eb89b1a17a4eabbf6493f8e92c50a24c | [] | no_license | caver115/Laucher.Mojang | 43e525c61f2e74243b8df4c44f2dae9ee065f895 | c9ba54b2878601ff34bc300cb58c31b48bf4545f | refs/heads/master | 2016-09-06T11:47:56.366218 | 2014-09-02T09:40:58 | 2014-09-02T09:40:58 | 23,347,985 | 3 | 3 | null | null | null | null | UTF-8 | Java | false | false | 132 | java | package com.mojang.launcher.game.process;
public interface GameProcessRunnable {
void onGameProcessEnded(GameProcess var1);
}
| [
"[email protected]"
] | |
9d56194d98a3b157cc1b6ee10531a84d006fb9fc | 3b2ecc49cf3c380e299f29fcc82f84690773e311 | /lab/src/com/nav/result/AngularInjection.java | ea9aa6ca4a31726b212dfaa63bd0a03979abd662 | [] | no_license | nav7neeet/LinkFinder | f1565d642d7517263313445c865ea20723058d77 | 0055ba661130d1b6bbe2f0f732c244fbc1d56926 | refs/heads/master | 2020-05-26T20:41:24.844812 | 2019-05-31T10:57:42 | 2019-05-31T10:57:42 | 188,366,025 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,154 | java | package com.nav.result;
import java.io.IOException;
import java.io.InputStream;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@WebServlet("/result/angularInjection")
public class AngularInjection extends HttpServlet {
private static final long serialVersionUID = 1L;
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
String input = request.getParameter("name");
if ("patched".equals(request.getParameter("param")))
request.setAttribute("patched", "true");
System.out.println(request.getParameter("param"));
request.setAttribute("userInput", input);
request.getRequestDispatcher("/WEB-INF/result/angularInjection.jsp").forward(request, response);
}
}
| [
"navnav@navt"
] | navnav@navt |
1f4bd8d97cc5b2576dc96153e588ee839a22bf7c | 9438df0f5d71ac492d0482a639c974fa33245272 | /src/main/java/com/affac/web/rest/vm/ManagedUserVM.java | 7f11edd051b57cd5fc1fc655380d0cbc236a300f | [] | no_license | beerlow/affac | 9d21f0da725182ab21c488de0a861116dbc94a61 | 457a0543f70470718069c16c59fb2c49cd884bbc | refs/heads/master | 2020-04-07T03:28:05.036775 | 2018-12-24T17:48:10 | 2018-12-24T17:48:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 824 | java | package com.affac.web.rest.vm;
import com.affac.service.dto.UserDTO;
import javax.validation.constraints.Size;
/**
* View Model extending the UserDTO, which is meant to be used in the user management UI.
*/
public class ManagedUserVM extends UserDTO {
public static final int PASSWORD_MIN_LENGTH = 4;
public static final int PASSWORD_MAX_LENGTH = 100;
@Size(min = PASSWORD_MIN_LENGTH, max = PASSWORD_MAX_LENGTH)
private String password;
public ManagedUserVM() {
// Empty constructor needed for Jackson.
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public String toString() {
return "ManagedUserVM{" +
"} " + super.toString();
}
}
| [
""
] | |
95491dac70c26c826a23824dd0e150256f9afe19 | eee65ef0538e3598d19d3ebe77024d8ad1a6c8dc | /app/src/main/java/com/truedigital/vhealth/ui/articles/patient/ArticlesPatientDetailFragment.java | 793024aef3700eec7d4cbfe1396a721f83a888a0 | [] | no_license | arnon010/app_true | 1e895a9004eac32eecf72f97e54711a7a3fee5e1 | eca7673c74e5a9b21b04d14633333c97e7b222d9 | refs/heads/master | 2023-04-21T09:52:09.337411 | 2021-05-30T14:01:27 | 2021-05-30T14:01:27 | 371,561,455 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,352 | java | package com.truedigital.vhealth.ui.articles.patient;
import android.os.Build;
import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.truedigital.vhealth.R;
import com.truedigital.vhealth.model.ItemArticleDao;
import com.truedigital.vhealth.model.ItemArticleGroupDao;
import com.truedigital.vhealth.model.appointment.ItemAppointmentDao;
import com.truedigital.vhealth.ui.base.BaseMvpFragment;
import com.truedigital.vhealth.ui.main.MainActivity;
import com.truedigital.vhealth.utils.AppConstants;
import com.truedigital.vhealth.utils.ConvertDate;
import com.truedigital.vhealth.utils.LoadData;
import com.truedigital.vhealth.utils.MyDialog;
import java.util.ArrayList;
import java.util.List;
public class ArticlesPatientDetailFragment extends BaseMvpFragment<ArticlesPatientDetailFragmentInterface.Presenter>
implements ArticlesPatientDetailFragmentInterface.View {
public static final String TAG = "Articles";
private static final String KEY_ARTICLE_ID = "KEY_ARTICLE_ID";
private EditText edit_title;
private EditText edit_detail;
private ItemArticleGroupDao articleGroupData;
private ItemArticleDao data;
private TextView tv_title;
private TextView tv_name;
private TextView tv_date;
private TextView tv_description;
private ImageView imgProfile;
private int articleId = 0;
public ArticlesPatientDetailFragment() {
super();
}
public static ArticlesPatientDetailFragment newInstance(int articleId) {
ArticlesPatientDetailFragment fragment = new ArticlesPatientDetailFragment();
Bundle args = new Bundle();
args.putInt(AppConstants.EXTRA_ARTICLE_ID, articleId);
fragment.setArguments(args);
return fragment;
}
public static ArticlesPatientDetailFragment newInstance(ItemArticleDao data) {
ArticlesPatientDetailFragment fragment = new ArticlesPatientDetailFragment();
fragment.data = data;
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
}
@Override
public ArticlesPatientDetailFragmentInterface.Presenter createPresenter() {
return ArticlesPatientDetailFragmentPresenter.create();
}
@Override
public int getLayoutView() {
return R.layout.fragment_patient_articles_detail;
}
@Override
public void bindView(View view) {
tv_title = (TextView) view.findViewById(R.id.tv_title);
tv_name = (TextView) view.findViewById(R.id.tv_name);
tv_date = (TextView) view.findViewById(R.id.tv_date);
tv_description = (TextView) view.findViewById(R.id.tv_description);
imgProfile = (ImageView) view.findViewById(R.id.imgProfile);
}
@Override
public void setupInstance() {
}
private void showToolbar() {
((MainActivity) getActivity()).showToolbar(R.string.article_title, true);
}
@Override
public void setupView() {
articleId = getArguments().getInt(AppConstants.EXTRA_ARTICLE_ID, 0);
showToolbar();
if (data != null) {
setData(data);
articleId = data.getId();
} else {
getPresenter().getArticlesById(articleId);
}
}
@Override
public void initialize() {
}
@Override
public void restoreView(Bundle savedInstanceState) {
}
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
}
@Override
public void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);
}
@Override
public int getPosition() {
return getArguments().getInt(KEY_ARTICLE_ID, 0);
}
@Override
public String getName() {
return edit_title.getText().toString();
}
@Override
public String getDetail() {
return edit_detail.getText().toString();
}
@Override
public int getArticleGroupId() {
return articleGroupData.getId();
}
@Override
public int getArticleId() {
return articleId;
}
@Override
public void openDetail(String appointment_no) {
//((MainActivity)getActivity()).openAppointmentDetail(appointment_no);
}
@Override
public void openDetail(int position, ItemAppointmentDao data, ImageView shareView) {
((MainActivity) getActivity()).openAppointmentDetail(position, data, shareView);
}
@Override
public void setDataArticleGroup(List<ItemArticleGroupDao> listData) {
}
@Override
public void setData(ItemArticleDao data) {
this.data = data;
updateView();
}
private void updateView() {
Glide.with(getActivity())
.load(data.getCoverImage()).asBitmap()
.error(R.drawable.img_default)
.placeholder(R.drawable.img_default)
.into(imgProfile);
tv_title.setText(data.getTitle());
tv_name.setText(data.getDoctorName());
if (data.getEffectiveDate() != null) {
tv_date.setText(ConvertDate.StringDateServiceFormatDate(data.getEffectiveDate()));
}
//tv_description.setText(data.getDescription());
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
tv_description.setText(Html.fromHtml(data.getDescription(), Html.FROM_HTML_MODE_COMPACT));
} else {
tv_description.setText(Html.fromHtml(data.getDescription()));
}
}
@Override
public String getDataFromFile(String filename) {
String data = new LoadData(getActivity()).loadJSONFromAsset(filename);
return data;
}
@Override
public List<ItemAppointmentDao> getData(String json, boolean isShowLog) {
List<ItemAppointmentDao> listData = new ArrayList<>();
/*
Gson gson = new Gson();
ListAppointmentDao data = gson.fromJson(json, ListAppointmentDao.class);
listData = data.getListData();
if (isShowLog) {
GsonBuilder gsonBuilder = new GsonBuilder();
gsonBuilder.setPrettyPrinting();
gson = gsonBuilder.create();
Log.d("", "load data" + gson.toJson(data));
}
*/
return listData;
}
@Override
public void openWriteArticle() {
}
@Override
public void openUploadClip() {
}
@Override
public void openAppointment() {
MainActivity.setCreateAppointment(true);
((MainActivity) getActivity()).openAppointmentCreateFromArticle(getDoctorId());
}
private int getDoctorId() {
return data.getDoctorId();
}
@Override
public String getDoctorName() {
return getArguments().getString(AppConstants.EXTRA_DOCTOR_NAME);
}
@Override
public void showSuccess() {
new MyDialog(getActivity()).showSuccess(getString(R.string.article_success), new MyDialog.OnSelectListener() {
@Override
public void onClickOK() {
((MainActivity) getActivity()).onBackPressed();
}
@Override
public void onClickCancel() {
}
});
}
}
| [
""
] | |
cdd77208c7101fa931beb87fcd93a86a1a1beff1 | cae7c2e6fc00e53ff41354e077552ce2f5f34ba0 | /CS4215/cs4215_week_8/rePLcompiler/Compiler.java | 4ef12e231695e1be3d156daee178ff3af5a29e8a | [] | no_license | uma2510/NUS | db5fd8a46d4676d58c0978b0e2f5a31734efc406 | ab075bc0be50495f3ca130bdb37772c1643ef656 | refs/heads/master | 2021-01-18T02:54:06.967738 | 2012-04-10T06:26:09 | 2012-04-10T06:26:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,558 | java | package rePLcompiler;
import rVML.*;
import rePL.*;
import rePLparser.*;
import java.util.*;
public class Compiler {
private static int TABLELIMIT = 100;
private static Vector<INSTRUCTION> instructions;
private static Stack<ToCompile> toCompileStack;
private static IndexTable indexTable;
private static boolean toplevel = true;
private static Idp idp = new Idp();
private static class Idr extends Hashtable {
private int idrc = 0;
int idr(Vector<Association> as) {
Enumeration<Association> es = as.elements();
Vector<String> properties = new Vector<String>();
while (es.hasMoreElements()) {
properties.add( ((Association) es.nextElement()).property);
}
Object[] propertiesArray = (properties.toArray());
Arrays.sort(propertiesArray);
String key = "";
for (int i = 0; i < propertiesArray.length; i++)
key = key + propertiesArray[i] + ",";
if (containsKey(key))
return ((Integer) get(key)).intValue();
else {
put(key,new Integer(idrc));
for (int i = 0; i < propertiesArray.length; i++) {
p[idrc][idp.idp((String) propertiesArray[i])] = i;
}
return idrc++;
}
}
}
private static Idr idr = new Idr();
private static int[][] p;
public static void displayInstructionArray(INSTRUCTION[] is) {
int i = 0;
int s = is.length;
while (i < s)
System.out.println(i + " " + is[i++]);
}
private static INSTRUCTION instructionFromOp(String op) {
if (op.equals("+")) { return new PLUS(); }
else if (op.equals("-")) { return new MINUS(); }
else if (op.equals("*")) { return new TIMES(); }
else if (op.equals("/")) { return new DIV(); }
else if (op.equals("\\")) { return new NOT(); }
else if (op.equals("&")) { return new AND(); }
else if (op.equals("|")) { return new OR(); }
else if (op.equals("<")) { return new LESS(); }
else if (op.equals(">")) { return new GREATER(); }
else if (op.equals("empty")) { return new EMPTY(); }
else /* (op.equals("=")) */ { return new EQUAL(); }
}
// compile
public static CompilerResult compile(Expression exp) {
p = new int[TABLELIMIT][TABLELIMIT];
for (int i = 0; i < TABLELIMIT; i++) {
for (int j = 0; j < TABLELIMIT; j++) {
p[i][j] = -1;
}
}
instructions = new Vector<INSTRUCTION>();
toCompileStack = new Stack<ToCompile>();
toCompileStack.push(new ToCompile(new LDF(),new IndexTable(),
exp.eliminateLet()));
compileAll();
try {
int divisionByZeroAddress = instructions.size();
comp(Parse.fromString("throw [DivisionByZero:true] end"),false);
int invalidRecordAccessAddress = instructions.size();
comp(Parse.fromString("throw [InvalidRecordAccess:true] end"),false);
INSTRUCTION[] ia =
(INSTRUCTION[]) instructions.toArray(new INSTRUCTION[1]);
return new CompilerResult(ia,p,idp,divisionByZeroAddress,invalidRecordAccessAddress);
} catch (Exception ex) {
INSTRUCTION[] ia =
(INSTRUCTION[]) instructions.toArray(new INSTRUCTION[1]);
System.out.println("unexpected exception "+ex+" during compilation");
return new CompilerResult(ia,p,idp,-1,-1);
}
}
// compileAll
public static void compileAll() {
while (! toCompileStack.empty()) {
ToCompile toCompile = (ToCompile) toCompileStack.pop();
LDF funInstruction = toCompile.funInstruction;
funInstruction.ADDRESS = instructions.size();
indexTable = toCompile.indexTable;
comp(toCompile.body,true,toCompile.funVar);
toplevel = false;
}
}
// compAll
protected static void compAll(Vector es) {
int i = 0; int s = es.size();
while (i < s)
comp((Expression) es.elementAt(i++),false);
}
// compAllAssoc
protected static void compAllAssoc(Vector as) {
int i = 0; int s = as.size();
while (i < s) {
Association a = (Association) as.elementAt(i++);
int j = idp.idp(a.property);
instructions.add(new LDCI(j));
comp(a.expression,false);
}
}
// comp
protected static void comp(Expression exp,boolean insertReturn) {
comp(exp,insertReturn,"");
}
protected static void comp(Expression exp,boolean insertReturn,
String funVar) {
if (exp instanceof Application) {
Expression op = ((Application)exp).operator;
comp(op,false);
compAll(((Application)exp).operands);
instructions.add(new
CALL(((Application)exp).operands.size()));
if (insertReturn)
instructions.add(
toplevel
? (INSTRUCTION) new DONE()
: (INSTRUCTION) new RTN());
}
else if (exp instanceof If)
{
comp(((If)exp).condition,false);
JOF JOFinstruction = new JOF();
instructions.add(JOFinstruction);
comp(((If)exp).thenPart,insertReturn,funVar);
GOTO GOTOinstruction = null;
if (!insertReturn) {
GOTOinstruction = new GOTO();
instructions.add(GOTOinstruction);
}
JOFinstruction.ADDRESS = instructions.size();
comp(((If)exp).elsePart,insertReturn,funVar);
if (!insertReturn)
GOTOinstruction.ADDRESS = instructions.size();
}
else if (exp instanceof Try)
{
TRY i = new TRY();
instructions.add(i);
comp( ((Try) exp).tryExpression,insertReturn,funVar);
if (!insertReturn) instructions.add(new ENDTRY());
GOTO j = new GOTO();
if (!insertReturn) instructions.add(j);
IndexTable oldIndexTable = indexTable;
indexTable = (IndexTable) indexTable.clone();
indexTable.extend(((Try)exp).exceptionVar);
i.ADDRESS = instructions.size();
comp( ((Try) exp).withExpression,insertReturn,funVar);
j.ADDRESS = instructions.size();
indexTable = oldIndexTable;
}
else {
if (exp instanceof Variable)
{
instructions.add(new
LD(indexTable.access(((Variable)exp).varname)));
}
else if (exp instanceof RecFun)
{
Vector formals = ((RecFun)exp).formals;
LDRF i = new LDRF(formals.size());
instructions.add(i);
Enumeration e = formals.elements();
IndexTable newIndexTable = (IndexTable) indexTable.clone();
String fun = ((RecFun)exp).funVar;
newIndexTable.extend(fun);
while (e.hasMoreElements())
newIndexTable.extend((String) e.nextElement());
toCompileStack.push(new
ToCompile(i,newIndexTable,((RecFun)exp).body,fun));
}
else if (exp instanceof Fun)
{
Vector formals = ((Fun)exp).formals;
LDF i = new LDF(formals.size());
instructions.add(i);
Enumeration e = formals.elements();
IndexTable newIndexTable = (IndexTable) indexTable.clone();
while (e.hasMoreElements())
newIndexTable.extend((String) e.nextElement());
toCompileStack.push(new ToCompile(i,newIndexTable,((Fun)exp).body));
}
else if (exp instanceof UnaryPrimitiveApplication)
{
comp(((UnaryPrimitiveApplication)exp).argument,false);
instructions.add(instructionFromOp(((UnaryPrimitiveApplication)exp)
.operator));
}
else if (exp instanceof BinaryPrimitiveApplication)
{
comp(((BinaryPrimitiveApplication)exp).argument1,false);
comp(((BinaryPrimitiveApplication)exp).argument2,false);
instructions.add(instructionFromOp(((BinaryPrimitiveApplication)exp)
.operator));
}
else if (exp instanceof BoolConstant)
{
instructions.add(new
LDCB(((BoolConstant)exp).value));
}
else if (exp instanceof IntConstant)
{
instructions.add(new
LDCI(((IntConstant)exp).value));
}
else if (exp instanceof Record)
{
compAllAssoc(((Record)exp).associations);
instructions.add(new
RCD((((Record)exp).associations).size(),
idr.idr(((Record)exp).associations)));
}
else if (exp instanceof Dot)
{
comp( ((Dot) exp).expression, false);
instructions.add(new
LDCI(idp.idp(((Dot)exp).property)));
instructions.add(new DOT());
}
else if (exp instanceof Empty)
{
comp( ((Empty) exp).expression, false);
instructions.add(new EMPTY());
}
else if (exp instanceof Hasproperty)
{
comp( ((Hasproperty) exp).expression, false);
instructions.add(new
LDCI(idp.idp(((Hasproperty)exp).property)));
instructions.add(new HASP());
}
else if (exp instanceof Throw)
{
comp( ((Throw) exp).expression, false);
instructions.add(new THROW());
}
else // (exp instanceof NotUsed)
{
// skip
}
if (insertReturn)
instructions.add(toplevel ? (INSTRUCTION) new DONE()
: (INSTRUCTION) new RTN());
}
}
}
| [
"[email protected]"
] | |
1f6e2a25d88327255f7a32dd9541fdd421132aa1 | 262c3675bb387b85537332fc68532d67dbfe2da8 | /src/main/java/PageFactory/GmailLoginPage.java | 057297162ac5a7e3ec6fb7c484ce66331cb3dfb5 | [] | no_license | lakshmi592/gmail-automation | a0d4537beb40ac8df8de2ea18b70dc7f660c347c | f1ba4d3193533c3d6aad958ad4aefcf77606120b | refs/heads/master | 2023-05-11T13:59:15.360396 | 2020-01-17T03:29:33 | 2020-01-17T03:29:33 | 234,462,525 | 0 | 0 | null | 2023-05-01T20:26:35 | 2020-01-17T03:26:18 | HTML | UTF-8 | Java | false | false | 2,564 | java | package PageFactory;
import org.openqa.selenium.StaleElementReferenceException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import SeleniumHelpers.CustomWaits;
public class GmailLoginPage {
WebDriver driver;
CustomWaits objWait = new CustomWaits();
@FindBy(id = "identifierId")
WebElement gmailUserName;
@FindBy(id = "identifierNext")
WebElement gmailUserNameNextButton;
@FindBy(name = "password")
WebElement gmailPassword;
@FindBy(id = "passwordNext")
WebElement gmailPassWordNextButton;
@FindBy(xpath = "//*[@id=\"view_container\"]//*[contains(text(), \"valid email\")]")
WebElement wrongEmailMessage;
@FindBy(xpath = "//*[@id=\"password\"]//*[contains(text(), \"Wrong password\")]")
WebElement wrongPasswordMessage;
//Constructor
public GmailLoginPage(WebDriver driver) {
this.driver = driver;
PageFactory.initElements(driver, this);
}
//Getter - Setters
public void setGmailUsername(String usr) throws Exception {
try {
gmailUserName.sendKeys(usr);
}
catch (StaleElementReferenceException e) {
PageFactory.initElements(driver, this);
}
catch (WebDriverException w_e) {
throw(w_e);
}
catch (Exception e) {
throw(e);
}
}
public void setGmailPassword(String pwd) throws Exception {
try {
gmailPassword.sendKeys(pwd);
}
catch (StaleElementReferenceException e) {
PageFactory.initElements(driver, this);
}
catch (WebDriverException w_e) {
throw(w_e);
}
catch (Exception e) {
throw(e);
}
}
public String getGmailUsername() {
return gmailUserName.getText();
}
public String getGmailPassword() {
return gmailPassword.getText();
}
public Boolean isWrongEmailMessagePresent() {
return wrongEmailMessage.isDisplayed();
}
public Boolean isWrongPasswordMessagePresent() {
return wrongPasswordMessage.isDisplayed();
}
public String getWrongEmailMessage() {
return wrongEmailMessage.getText();
}
public String getWrongPasswordMessage() {
return wrongPasswordMessage.getText();
}
public void clickNextAfterUsername() {
objWait.waitTillTElementIsClickable(driver, gmailUserNameNextButton);
gmailUserNameNextButton.click();
}
public void clickNextAfterPassword() {
objWait.waitTillTElementIsClickable(driver, gmailPassWordNextButton);
gmailPassWordNextButton.click();
}
public WebElement getPasswordElement() {
return this.gmailPassword;
}
}
| [
"[email protected]"
] | |
e597218ba7a56ab1ca07411bf169467ecb53ee45 | 4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849 | /aliyun-java-sdk-dytnsapi/src/main/java/com/aliyuncs/dytnsapi/model/v20200217/PhoneNumberStatusForAccountRequest.java | 8c97019cb75e6b91e499b8ec57c385afafeedf82 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-java-sdk | a263fa08e261f12d45586d1b3ad8a6609bba0e91 | e19239808ad2298d32dda77db29a6d809e4f7add | refs/heads/master | 2023-09-03T12:28:09.765286 | 2023-09-01T09:03:00 | 2023-09-01T09:03:00 | 39,555,898 | 1,542 | 1,317 | NOASSERTION | 2023-09-14T07:27:05 | 2015-07-23T08:41:13 | Java | UTF-8 | Java | false | false | 3,076 | java | /*
* 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.aliyuncs.dytnsapi.model.v20200217;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.dytnsapi.Endpoint;
/**
* @author auto create
* @version
*/
public class PhoneNumberStatusForAccountRequest extends RpcAcsRequest<PhoneNumberStatusForAccountResponse> {
private Long resourceOwnerId;
private String mask;
private String resourceOwnerAccount;
private Long ownerId;
private String authCode;
private String inputNumber;
public PhoneNumberStatusForAccountRequest() {
super("Dytnsapi", "2020-02-17", "PhoneNumberStatusForAccount");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public void setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
if(resourceOwnerId != null){
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
}
}
public String getMask() {
return this.mask;
}
public void setMask(String mask) {
this.mask = mask;
if(mask != null){
putQueryParameter("Mask", mask);
}
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
if(resourceOwnerAccount != null){
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
}
public Long getOwnerId() {
return this.ownerId;
}
public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}
public String getAuthCode() {
return this.authCode;
}
public void setAuthCode(String authCode) {
this.authCode = authCode;
if(authCode != null){
putQueryParameter("AuthCode", authCode);
}
}
public String getInputNumber() {
return this.inputNumber;
}
public void setInputNumber(String inputNumber) {
this.inputNumber = inputNumber;
if(inputNumber != null){
putQueryParameter("InputNumber", inputNumber);
}
}
@Override
public Class<PhoneNumberStatusForAccountResponse> getResponseClass() {
return PhoneNumberStatusForAccountResponse.class;
}
}
| [
"[email protected]"
] | |
5fc47eca7e6177e6978c37e37f0a3399d63e0ee9 | 84d58017a33f23cc2c3661e924306b87d29d7821 | /src/model/ADT/MyStack.java | d789616eab9f931ef29f3dff97023e15db8abbb8 | [] | no_license | agf13/interpreter_java_v2 | 1f23fddd2d0c3d152e971f7addd01f4f67fd6ca9 | ae51c472c72a5a1c4892da8b9983e2beaa6e0ed3 | refs/heads/main | 2023-07-02T16:32:25.061960 | 2021-08-10T10:47:51 | 2021-08-10T10:47:51 | 394,616,596 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 455 | java | package model.ADT;
import model.interfaces.*;
import java.util.Stack;
public class MyStack<T> implements MyIStack<T>{
Stack<T> stack;
public MyStack() {
stack = new Stack<T>();
}
public T pop() {
return stack.pop();
}
public void push(T val) {
stack.push(val);
}
public boolean isEmpty() {
return stack.isEmpty();
}
public Stack<T> getAll(){
return stack;
}
public String toString() {
return stack.toString();
}
}
| [
"[email protected]"
] | |
5a29a01bbef01faf6bb3ed0441b69484d115d453 | 234d39c9fc6882a6581a0d793d3f380a7cba029a | /src/main/java/com/koou/admin/base/service/impl/package-info.java | 3e187c3de34aa209c7062ff2b62788efe9ae4589 | [] | no_license | Aoldfarmer/javawebtoken | 10c5965a3e61a30a4c2b69591856f623905679bc | 59306cb245b1d1ab92452b5dba5f42411b46111d | refs/heads/master | 2021-01-01T06:34:34.291715 | 2017-08-25T05:51:29 | 2017-08-25T05:51:29 | 97,453,908 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 116 | java | /**
* @author yunqiangdi
* @version 1.0
* @since 2017-05-10 4:58 PM
*/
package com.koou.admin.base.service.impl; | [
"[email protected]"
] | |
58bb8342f83a4fa8d3cbd0907173af996f2d4aa7 | f487532281c1c6a36a5c62a29744d8323584891b | /sdk/java/src/main/java/com/pulumi/azure/compute/outputs/LinuxVirtualMachineScaleSetSourceImageReference.java | 2a4a1f4c387d5f6da16fa30140e62f6da313219d | [
"BSD-3-Clause",
"MPL-2.0",
"Apache-2.0"
] | permissive | pulumi/pulumi-azure | a8f8f21c46c802aecf1397c737662ddcc438a2db | c16962e5c4f5810efec2806b8bb49d0da960d1ea | refs/heads/master | 2023-08-25T00:17:05.290397 | 2023-08-24T06:11:55 | 2023-08-24T06:11:55 | 103,183,737 | 129 | 57 | Apache-2.0 | 2023-09-13T05:44:10 | 2017-09-11T20:19:15 | Java | UTF-8 | Java | false | false | 3,603 | java | // *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.compute.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class LinuxVirtualMachineScaleSetSourceImageReference {
/**
* @return Specifies the offer of the image used to create the virtual machines. Changing this forces a new resource to be created.
*
*/
private String offer;
/**
* @return Specifies the publisher of the image used to create the virtual machines. Changing this forces a new resource to be created.
*
*/
private String publisher;
/**
* @return Specifies the SKU of the image used to create the virtual machines.
*
*/
private String sku;
/**
* @return Specifies the version of the image used to create the virtual machines.
*
*/
private String version;
private LinuxVirtualMachineScaleSetSourceImageReference() {}
/**
* @return Specifies the offer of the image used to create the virtual machines. Changing this forces a new resource to be created.
*
*/
public String offer() {
return this.offer;
}
/**
* @return Specifies the publisher of the image used to create the virtual machines. Changing this forces a new resource to be created.
*
*/
public String publisher() {
return this.publisher;
}
/**
* @return Specifies the SKU of the image used to create the virtual machines.
*
*/
public String sku() {
return this.sku;
}
/**
* @return Specifies the version of the image used to create the virtual machines.
*
*/
public String version() {
return this.version;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LinuxVirtualMachineScaleSetSourceImageReference defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String offer;
private String publisher;
private String sku;
private String version;
public Builder() {}
public Builder(LinuxVirtualMachineScaleSetSourceImageReference defaults) {
Objects.requireNonNull(defaults);
this.offer = defaults.offer;
this.publisher = defaults.publisher;
this.sku = defaults.sku;
this.version = defaults.version;
}
@CustomType.Setter
public Builder offer(String offer) {
this.offer = Objects.requireNonNull(offer);
return this;
}
@CustomType.Setter
public Builder publisher(String publisher) {
this.publisher = Objects.requireNonNull(publisher);
return this;
}
@CustomType.Setter
public Builder sku(String sku) {
this.sku = Objects.requireNonNull(sku);
return this;
}
@CustomType.Setter
public Builder version(String version) {
this.version = Objects.requireNonNull(version);
return this;
}
public LinuxVirtualMachineScaleSetSourceImageReference build() {
final var o = new LinuxVirtualMachineScaleSetSourceImageReference();
o.offer = offer;
o.publisher = publisher;
o.sku = sku;
o.version = version;
return o;
}
}
}
| [
"[email protected]"
] | |
42bd0c0093f7e6f6471be55cf942c7840dde3f9a | cc2605938e1198c8f8e1b4f6f09f49e4d30845b8 | /JavaExcercises/coloursandshapes/src/com/piushvaish/AbstractShape.java | 8ed8a9c3a9a712d77fec614ad1a80d32a438306f | [] | no_license | piushvaish/Java | ae4c5e3cd9b1ed3eed0982fc61daa8d8601790cd | 344c5cd6a9dc98ad9546e88504a43e05a42bfe05 | refs/heads/master | 2020-04-12T03:11:40.027401 | 2017-04-18T15:42:56 | 2017-04-18T15:42:56 | 54,891,194 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 714 | java | package com.piushvaish;
/**
* Created by piush on 14/10/2016.
*/
public abstract class AbstractShape {
public abstract void draw();
public abstract int getArea();
protected Position position = new Position(0,0);
protected int width = 0;
protected int height = 0;
public Position getPosition() {
return position;
}
public void setPosition(Position position) {
this.position = position;
}
public int getWidth() {
return width;
}
public void setWidth(int width) {
this.width = width;
}
public int getHeight() {
return height;
}
public void setHeight(int height) {
this.height = height;
}
}
| [
"[email protected]"
] | |
1015b86e16e48375bfc78651596565106913c08b | 3c13536733b0d75bbba7c310ed0f8601b4d1e4a4 | /batch-common/src/main/java/com/scd/batch/common/job/util/FileBufferWriter.java | ca54935269bd021af672c392186bd28b5d7a6b77 | [] | no_license | 859162000/scd_batch | 3258092a0742ca9e9f63821f8b8dd3592257f81b | 62a8dc4efe6f29d52c17e457f1e091dfc44deccb | refs/heads/master | 2021-06-09T06:16:06.101251 | 2016-11-17T09:54:54 | 2016-11-17T09:54:54 | 75,371,949 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,413 | java | package com.scd.batch.common.job.util;
import org.apache.commons.io.FileUtils;
import java.io.Closeable;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* //TODO 使用FileChannel
* <p>
* The helper class for batch file writer
*/
public class FileBufferWriter implements Closeable {
/**
* Default max flush buffer size
*/
private static final int DEFAULT_MAX_BUFFER_SIZE = 128 * 1024 * 1024;
/**
* File object
*/
private File file;
/**
* Max flush buffer size
*/
private int maxBufferSize;
/**
* Buffered size
*/
private int bufferSize;
/**
* Buffered writer
*/
private final List<String> buffer = new ArrayList<>();
/**
* Constructor with default buffer size
*/
public FileBufferWriter(File dir, String fileName) {
this(dir, fileName, DEFAULT_MAX_BUFFER_SIZE);
}
/**
* Constructor with buffer size
*/
public FileBufferWriter(File dir, String fileName, int maxBufferSize) {
this(new File(dir, fileName), maxBufferSize);
}
/**
* Constructor with buffer size
*/
public FileBufferWriter(File file, int maxBufferSize) {
this.file = file;
this.maxBufferSize = maxBufferSize;
}
public void writeLines(List<String> lines) throws Exception {
if (lines != null) {
for (String line : lines) {
writeLine(line);
}
}
}
/**
* Write line with buffer
*/
public void writeLine(String line) throws Exception {
if (line == null || line.isEmpty()) {
return;
}
// calculate the lines size
bufferSize += line.length();
if (bufferSize >= maxBufferSize) {
// write lines to file
FileUtils.writeLines(file, "UTF-8", buffer, true);
// clear the buffer size
bufferSize = 0;
// clear buffer
buffer.clear();
} else {
// buffer all lines
buffer.add(line);
}
}
@Override
public void close() throws IOException {
if (!buffer.isEmpty()) {
// write lines to file
FileUtils.writeLines(file, "UTF-8", buffer, true);
buffer.clear();
bufferSize = 0;
}
}
}
| [
"[email protected]"
] | |
ed01b1059e1f5e8c35ed78d8899bc2bd26439b58 | c04aa6d0ecfbd348df0470c8f0d6f30d7a858a24 | /src/protocol/model/Food.java | 2dbbf840853fdf1eecdf87cdb0cfd8f722e4ebab | [] | no_license | pashkov-ai/zagar-protocol | 3ab3f9f44d0b30267c389e7354019f75984a936c | d8039c943f3313019d7973fcb9b95cc72d8a1ba1 | refs/heads/master | 2021-06-08T13:13:22.780866 | 2016-12-19T18:40:42 | 2016-12-19T18:40:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 268 | java | package protocol.model;
import java.awt.geom.Point2D;
/**
* @author apomosov
*/
public final class Food extends Cell {
protected Food() {
}
public Food(double mass, Point2D coordinate, double radius) {
super(mass, coordinate, radius);
}
}
| [
"[email protected]"
] | |
113f6dc01ac6c78a967c8b31dd9358371c3e7c81 | 85b339a628df1572d4d07521ad2081d820d734c4 | /src/univ/components/IDrawable.java | fe2f3e08cad21e4adfe7178f3558347f3f327b93 | [] | no_license | priez/algobject | cd98d9cfeee6b38e490fcb55ab5b66ead26cd8f1 | e755e32ebe1d12c87a879e02e2e387838ebedef3 | refs/heads/master | 2021-01-10T04:38:37.251358 | 2012-04-26T11:31:43 | 2012-04-26T11:31:43 | 47,453,507 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 120 | java | package univ.components;
import java.awt.Graphics;
public interface IDrawable {
void draw(Graphics g);
}
| [
"elixyre@localhost"
] | elixyre@localhost |
f95d1fd0725b97f1c56c24042af2cf8955b03f75 | 6fa9eda692cf4fe6d48f2d40600db59c20803577 | /platform-common/src/main/java/com/softicar/platform/common/core/i18n/IdentityLanguageTranslator.java | 32aa710e05e651dc2d3998ef0784f119fd36371c | [
"MIT"
] | permissive | softicar/platform | a5cbfcfe0e6097feae7f42d3058e716836c9f592 | a6dad805156fc230a47eb7406959f29c59f2d1c2 | refs/heads/main | 2023-09-01T12:16:01.370646 | 2023-08-29T08:50:46 | 2023-08-29T08:50:46 | 408,834,598 | 4 | 2 | MIT | 2023-08-08T12:40:04 | 2021-09-21T13:38:04 | Java | UTF-8 | Java | false | false | 741 | java | package com.softicar.platform.common.core.i18n;
/**
* This is the identity language translator.
* <p>
* The texts to be translated are returned as-is by the implementation.
*
* @author Oliver Richers
*/
public class IdentityLanguageTranslator implements ILanguageTranslator {
private static IdentityLanguageTranslator singleton = new IdentityLanguageTranslator();
/**
* Returns a reference to the singleton instance of this class.
*/
public static IdentityLanguageTranslator get() {
return singleton;
}
/**
* Returns the given text without modification.
* <p>
* The language parameter is ignored by this method.
*/
@Override
public String translate(LanguageEnum language, String text) {
return text;
}
}
| [
"[email protected]"
] | |
2dd033441a85e5dd19ae944ac74b38dc69d020dc | da40865711e51e304bc364b694b314be1f3ad7f6 | /Lab Assignments/Lab7 & 8/Client2Kafka/ClientApp/src/main/java/EncodeData.java | aebd292c9f27c6c8702d8ef7014d0dad5b9c1b8e | [] | no_license | terratenney/Realtime-Bigdata-Analytics | de7ce67305981001738ac2f410299b28dd099c4b | a45fa6dc0fc8ad9b3aaf2a3197d548ec436cf887 | refs/heads/master | 2021-01-19T08:13:52.429358 | 2016-12-21T20:19:34 | 2016-12-21T20:19:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,193 | java | //import com.migcomponents.migbase64.Base64;
import org.apache.commons.io.IOUtils;
import org.apache.commons.codec.binary.Base64;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
/**
* Created by harsha on 10/18/16.
*/
public class EncodeData {
public static String EncodeToString(String filePath){
String encodedString;
InputStream inputStream = null;
try {
inputStream = new FileInputStream(filePath);
} catch (Exception e) {
// TODO: handle exception
}
byte[] bytes = null;
// byte[] buffer = new byte[8192];
// int bytesRead;
// ByteArrayOutputStream output = new ByteArrayOutputStream();
try {
bytes = IOUtils.toByteArray(inputStream);
// while ((bytesRead = inputStream.read(buffer)) != -1) {
// output.write(buffer, 0, bytesRead);
//
// }
} catch (IOException e) {
e.printStackTrace();
}
// bytes = output.toByteArray();
encodedString = Base64.encodeBase64String(bytes);
return encodedString;
}
}
| [
"[email protected]"
] | |
31b4aa61536e2305639733a69f8c63669419248b | fce5602ce627d05bde68d377e3e7216997ee0486 | /org.eclipse.kEEPER.plugin.contextRelation.diagram/src/contextRelation/model/diagram/part/ModelNewDiagramFileWizard.java | 20e13596b40254046940001baf0065a21fe6b9a9 | [] | no_license | mlatona/minorityReportPlugin | c57a9a51cb2320e47d5edc855fe4f1067044cf2d | 5058721ffd6ab2da2f9eefc114e75db5216b19d8 | refs/heads/master | 2021-01-23T03:16:27.195052 | 2017-06-10T12:48:19 | 2017-06-10T12:48:19 | 86,061,806 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,778 | java | package contextRelation.model.diagram.part;
import java.io.IOException;
import java.util.LinkedList;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.operations.OperationHistoryFactory;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.gmf.runtime.common.core.command.CommandResult;
import org.eclipse.gmf.runtime.diagram.core.services.ViewService;
import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation;
import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
import org.eclipse.gmf.runtime.notation.Diagram;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.osgi.util.NLS;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
/**
* @generated
*/
public class ModelNewDiagramFileWizard extends Wizard {
/**
* @generated
*/
private WizardNewFileCreationPage myFileCreationPage;
/**
* @generated
*/
private contextRelation.model.diagram.part.ModelElementSelectionPage diagramRootElementSelectionPage;
/**
* @generated
*/
private TransactionalEditingDomain myEditingDomain;
/**
* @generated
*/
public ModelNewDiagramFileWizard(URI domainModelURI, EObject diagramRoot,
TransactionalEditingDomain editingDomain) {
assert domainModelURI != null : "Domain model uri must be specified"; //$NON-NLS-1$
assert diagramRoot != null : "Doagram root element must be specified"; //$NON-NLS-1$
assert editingDomain != null : "Editing domain must be specified"; //$NON-NLS-1$
myFileCreationPage = new WizardNewFileCreationPage(
contextRelation.model.diagram.part.Messages.ModelNewDiagramFileWizard_CreationPageName,
StructuredSelection.EMPTY);
myFileCreationPage
.setTitle(contextRelation.model.diagram.part.Messages.ModelNewDiagramFileWizard_CreationPageTitle);
myFileCreationPage.setDescription(
NLS.bind(contextRelation.model.diagram.part.Messages.ModelNewDiagramFileWizard_CreationPageDescription,
contextRelation.model.diagram.edit.parts.EnvironmentEditPart.MODEL_ID));
IPath filePath;
String fileName = URI.decode(domainModelURI.trimFileExtension().lastSegment());
if (domainModelURI.isPlatformResource()) {
filePath = new Path(domainModelURI.trimSegments(1).toPlatformString(true));
} else if (domainModelURI.isFile()) {
filePath = new Path(domainModelURI.trimSegments(1).toFileString());
} else {
// TODO : use some default path
throw new IllegalArgumentException("Unsupported URI: " + domainModelURI); //$NON-NLS-1$
}
myFileCreationPage.setContainerFullPath(filePath);
myFileCreationPage.setFileName(contextRelation.model.diagram.part.ModelDiagramEditorUtil
.getUniqueFileName(filePath, fileName, "contextRelationmodel_diagram")); //$NON-NLS-1$
diagramRootElementSelectionPage = new DiagramRootElementSelectionPage(
contextRelation.model.diagram.part.Messages.ModelNewDiagramFileWizard_RootSelectionPageName);
diagramRootElementSelectionPage
.setTitle(contextRelation.model.diagram.part.Messages.ModelNewDiagramFileWizard_RootSelectionPageTitle);
diagramRootElementSelectionPage.setDescription(
contextRelation.model.diagram.part.Messages.ModelNewDiagramFileWizard_RootSelectionPageDescription);
diagramRootElementSelectionPage.setModelElement(diagramRoot);
myEditingDomain = editingDomain;
}
/**
* @generated
*/
public void addPages() {
addPage(myFileCreationPage);
addPage(diagramRootElementSelectionPage);
}
/**
* @generated
*/
public boolean performFinish() {
LinkedList<IFile> affectedFiles = new LinkedList<IFile>();
IFile diagramFile = myFileCreationPage.createNewFile();
contextRelation.model.diagram.part.ModelDiagramEditorUtil.setCharset(diagramFile);
affectedFiles.add(diagramFile);
URI diagramModelURI = URI.createPlatformResourceURI(diagramFile.getFullPath().toString(), true);
ResourceSet resourceSet = myEditingDomain.getResourceSet();
final Resource diagramResource = resourceSet.createResource(diagramModelURI);
AbstractTransactionalCommand command = new AbstractTransactionalCommand(myEditingDomain,
contextRelation.model.diagram.part.Messages.ModelNewDiagramFileWizard_InitDiagramCommand,
affectedFiles) {
protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info)
throws ExecutionException {
int diagramVID = contextRelation.model.diagram.part.ModelVisualIDRegistry
.getDiagramVisualID(diagramRootElementSelectionPage.getModelElement());
if (diagramVID != contextRelation.model.diagram.edit.parts.EnvironmentEditPart.VISUAL_ID) {
return CommandResult.newErrorCommandResult(
contextRelation.model.diagram.part.Messages.ModelNewDiagramFileWizard_IncorrectRootError);
}
Diagram diagram = ViewService.createDiagram(diagramRootElementSelectionPage.getModelElement(),
contextRelation.model.diagram.edit.parts.EnvironmentEditPart.MODEL_ID,
contextRelation.model.diagram.part.ModelDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
diagramResource.getContents().add(diagram);
return CommandResult.newOKCommandResult();
}
};
try {
OperationHistoryFactory.getOperationHistory().execute(command, new NullProgressMonitor(), null);
diagramResource.save(contextRelation.model.diagram.part.ModelDiagramEditorUtil.getSaveOptions());
contextRelation.model.diagram.part.ModelDiagramEditorUtil.openDiagram(diagramResource);
} catch (ExecutionException e) {
contextRelation.model.diagram.part.ModelDiagramEditorPlugin.getInstance()
.logError("Unable to create model and diagram", e); //$NON-NLS-1$
} catch (IOException ex) {
contextRelation.model.diagram.part.ModelDiagramEditorPlugin.getInstance()
.logError("Save operation failed for: " + diagramModelURI, ex); //$NON-NLS-1$
} catch (PartInitException ex) {
contextRelation.model.diagram.part.ModelDiagramEditorPlugin.getInstance().logError("Unable to open editor", //$NON-NLS-1$
ex);
}
return true;
}
/**
* @generated
*/
private static class DiagramRootElementSelectionPage
extends contextRelation.model.diagram.part.ModelElementSelectionPage {
/**
* @generated
*/
protected DiagramRootElementSelectionPage(String pageName) {
super(pageName);
}
/**
* @generated
*/
protected String getSelectionTitle() {
return contextRelation.model.diagram.part.Messages.ModelNewDiagramFileWizard_RootSelectionPageSelectionTitle;
}
/**
* @generated
*/
protected boolean validatePage() {
if (getModelElement() == null) {
setErrorMessage(
contextRelation.model.diagram.part.Messages.ModelNewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
return false;
}
boolean result = ViewService.getInstance()
.provides(new CreateDiagramViewOperation(new EObjectAdapter(getModelElement()),
contextRelation.model.diagram.edit.parts.EnvironmentEditPart.MODEL_ID,
contextRelation.model.diagram.part.ModelDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
setErrorMessage(result ? null
: contextRelation.model.diagram.part.Messages.ModelNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
return result;
}
}
}
| [
"[email protected]"
] | |
0cc8f5a8a59ab7ce2194f14e30858dc047920638 | 30f2712598c42e708e89b4415342d1f15d1c6afa | /app/src/main/java/com/hlal/m7moud/nav/Fragments/EventsFragment.java | 26200de4b208f509cbfac7ec6a6f03b253a92bc7 | [] | no_license | mahmoudhlal/NavigationDrawer | 6f9e291929380a3e193999c2a34bca9768b05c33 | 4357b7ec68b0c1ac6c4a1ba8b9ae1f34342d63b9 | refs/heads/master | 2020-03-24T12:37:48.138572 | 2018-07-29T00:42:02 | 2018-07-29T00:42:02 | 142,719,507 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 615 | java | package com.hlal.m7moud.nav.Fragments;
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.hlal.m7moud.nav.R;
public class EventsFragment extends Fragment {
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_events , container , false) ;
}
}
| [
"[email protected]"
] | |
70f0b2da14a75d41254c6d60f5ba11a526fb064a | 9d3a94874e1c535e625ed46eb9f4f26aa15a4aef | /app/src/main/java/com/example/android/youwyaw/MembersActivity.java | 018c317808c8ec957f5ae23ae9b3df9a643c9820 | [] | no_license | arnaudcasame/youwyaw | a5e06980f80a131e252c082b6198f6a6806898f9 | 32e63ae5ef81de31e5e9669f6d3850d0f90aab7b | refs/heads/master | 2021-04-03T02:41:44.626094 | 2018-03-13T18:42:29 | 2018-03-13T18:42:29 | 125,103,589 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,870 | java | package com.example.android.youwyaw;
import android.content.res.Configuration;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import com.google.firebase.firestore.DocumentSnapshot;
import com.google.firebase.firestore.EventListener;
import com.google.firebase.firestore.FirebaseFirestore;
import com.google.firebase.firestore.FirebaseFirestoreException;
import com.google.firebase.firestore.QuerySnapshot;
import java.util.ArrayList;
public class MembersActivity extends AppCompatActivity {
private FirebaseFirestore mStore;
private ListView usersList;
private UserAdapter itemsAdapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_members);
usersList = findViewById(R.id.members_list);
mStore = FirebaseFirestore.getInstance();
mStore.collection("users").addSnapshotListener(new EventListener<QuerySnapshot>() {
@Override
public void onEvent(@Nullable QuerySnapshot documentSnapshots, @Nullable FirebaseFirestoreException e) {
ArrayList<User> users = new ArrayList<User>();
for(DocumentSnapshot user: documentSnapshots){
users.add(new User(user));
}
itemsAdapter = new UserAdapter(MembersActivity.this, users);
usersList.setAdapter(itemsAdapter);
}
});
}
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
if(newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){
}else {
}
}
}
| [
"[email protected]"
] | |
1cd3f2006c853d2c00a700c4fcada5a41c6003e4 | 74a517c784b1449caa68231ffac5e5ad7b68ecb6 | /src/main/java/com/xworkz/register/dao/RegisterDAOImpl.java | ad392db9db4991111a35a7e89a2380a3b82621d1 | [] | no_license | rathi79/common-module | 88cac69f11efdc487a7e498fcb78bd098e7bd64c | 2b571c882b27e41ff39d2bc25f32da351d6f255a | refs/heads/master | 2022-06-10T21:33:29.799269 | 2020-04-28T06:50:46 | 2020-04-28T06:50:46 | 259,552,036 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,569 | java | package com.xworkz.register.dao;
import java.util.Objects;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.xworkz.register.entity.RegisterEntity;
import com.xworkz.register.exceptions.DAOExceptions;
@Component
public class RegisterDAOImpl implements RegisterDAO {
@Autowired
private SessionFactory factory;
public void setFactory(SessionFactory factory) {
this.factory = factory;
}
public RegisterEntity save(RegisterEntity registerEntity) {
System.out.println("Entered in to save");
try {
Session session = factory.openSession();
session.beginTransaction();
//System.out.println("tx is begin");
// System.out.println("data is saving");
if (Objects.nonNull(registerEntity)) {
session.save(registerEntity);
} else {
System.out.println("cannot save");
}
session.getTransaction().commit();
//System.out.println("commited");
//System.out.println("all resource closed");
session.close();
} catch (Exception e) {
e.printStackTrace();
}
return registerEntity;
}
public RegisterEntity fetchbyuserId(String userId) {
Session session = factory.openSession();
//System.out.println("searching userId..." + userId);
try {
//System.out.println("invoked register fromIMPL");
Query query = session.getNamedQuery("fetchbyuserId");
query.setParameter("userId", userId);
//System.out.println("query " + query);
Object out = query.uniqueResult();
if (Objects.nonNull(out)) {
RegisterEntity registerEntity = (RegisterEntity) out;
return registerEntity;
}
else {
//System.out.println("not available");
}
} catch (Exception e) {
e.printStackTrace();
} finally {
session.close();
}
return null;
}
public RegisterEntity feachbyemail(String email) {
Session session = factory.openSession();
//System.out.println("searching email..." + email);
try {
//System.out.println("invoked register fromIMPL");
Query query = session.getNamedQuery("fetchbyemail");
query.setParameter("email", email);
//System.out.println("query " + query);
Object out = query.uniqueResult();
if (Objects.nonNull(out)) {
RegisterEntity registerEntity = (RegisterEntity) out;
return registerEntity;
}
else {
//System.out.println("not available");
}
} catch (Exception e) {
e.printStackTrace();
} finally {
session.close();
}
return null;
}
}
| [
"[email protected]"
] | |
4da75c4c8c3a930fdb9b8ad8c150c311d6793699 | 5ab9aee135c6de2e302ab4d1dab328078c09738e | /LeetCode_算法思想/src/双指针/合并两个有序数组.java | 8718938772846a077bc97e6e6cfe638d656c1301 | [] | no_license | WooLiGuaiguai/IdeaProject | 76fdca70069af0905f8057edd2b25263cb32c730 | 19ba97c1fba58429408880e7e7341cffd4bedde9 | refs/heads/master | 2022-12-28T20:51:49.546121 | 2020-09-16T13:06:08 | 2020-09-16T13:06:08 | 282,765,747 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 979 | java | package 双指针;
/*给你两个有序整数数组 nums1 和 nums2,请你将 nums2 合并到 nums1 中,使 nums1 成为一个有序数组。*/
//关键在于是向一个数组中添加,所以应该从最后面开始添加
public class 合并两个有序数组 {
public static void main(String[] args) {
int []nums1 = {1,2,3,4,9,0,0,0};
int []nums2 = {2,5,6};
merge(nums1,5,nums2,3);
for (int i : nums1) {
System.out.print(i+" ");
}
}
public static void merge(int[] nums1, int m, int[] nums2, int n){
int index=m+n-1;//遍历开始的坐标
int i=m-1,j=n-1;
while(i>=0||j>=0){
if(i>=0 && j>=0){
nums1[index--]=(nums1[i]>nums2[j])?nums1[i--]:nums2[j--];
}else if(i>=0){//第一个数组还有余下的数字
nums1[index--]=nums1[i--];
}else {
nums1[index--]=nums2[j--];
}
}
}
}
| [
"[email protected]"
] | |
01b28c4fed000bf3fbb4d485514357319cd71247 | 6d794daca185e42dd32bbdf09401ce3cda0d0725 | /app/src/main/java/id/co/kynga/app/model/pojo/CategoryPojo.java | 92c79c059c197580fceeb7681cb4433abbf8b866 | [] | no_license | masanam/TVCelestial | 65fac060c950b2aca08f21f636b4942a27c45f54 | 2222c9f65193febf2c5baedba586c56a326b8ba3 | refs/heads/master | 2020-04-12T02:10:36.346333 | 2018-12-18T06:33:36 | 2018-12-18T06:33:36 | 162,240,576 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,833 | java | package id.co.kynga.app.model.pojo;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.List;
/**
* CategoryPojo
*
* @author Aji Subastian
*/
@SuppressWarnings("unused, WeakerAccess")
public class CategoryPojo implements Parcelable {
public int Status;
public String Message;
public List<Content> Result;
public CategoryPojo() {
//Empty constructor
}
protected CategoryPojo(Parcel in) {
Status = in.readInt();
Message = in.readString();
Result = in.createTypedArrayList(Content.CREATOR);
}
public static final Creator<CategoryPojo> CREATOR = new Creator<CategoryPojo>() {
@Override
public CategoryPojo createFromParcel(Parcel in) {
return new CategoryPojo(in);
}
@Override
public CategoryPojo[] newArray(int size) {
return new CategoryPojo[size];
}
};
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(Status);
dest.writeString(Message);
dest.writeTypedList(Result);
}
@Override
public String toString() {
return "CategoryPojo{" +
"Status=" + Status +
", Message='" + Message + '\'' +
", Result=" + Result +
'}';
}
public static class Content implements Parcelable {
public long ID;
public String Title;
public String ImageURL;
public String Type;
public Content() {
//Empty constructor
}
protected Content(Parcel in) {
ID = in.readLong();
Title = in.readString();
ImageURL = in.readString();
Type = in.readString();
}
public static final Creator<Content> CREATOR = new Creator<Content>() {
@Override
public Content createFromParcel(Parcel in) {
return new Content(in);
}
@Override
public Content[] newArray(int size) {
return new Content[size];
}
};
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeLong(ID);
dest.writeString(Title);
dest.writeString(ImageURL);
dest.writeString(Type);
}
@Override
public String toString() {
return "Content{" +
"ID=" + ID +
", Title='" + Title + '\'' +
", ImageURL='" + ImageURL + '\'' +
", Type=" + Type +
'}';
}
}
}
| [
"[email protected]"
] | |
e15baa8bb67931a37101eed9f5b54f187e4015fe | c8ab5ae2aaae7312210fdf6153703005ef888ffb | /src/main/java/TestCases/Test003.java | c70d1fccc9de6fea03459b8bed3c4c1c867137e5 | [] | no_license | abhilash-ui/AbhiBook | 69c459bc1cf5af63be242d69493d3153e9d89373 | 52a672310566919199c54325bdc4800274dbd359 | refs/heads/master | 2023-02-22T01:58:52.617263 | 2021-01-29T02:48:23 | 2021-01-29T02:48:23 | 332,380,112 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 425 | java | package TestCases;
import org.testng.annotations.Test;
import POM.Pom001;
import POM.Pom003;
public class Test003 extends Base {
@Test
public void TestError() throws InterruptedException
{
Pom001 p2=new Pom001(driver);
p2.Popup();
Thread.sleep(1000);
p2.login();
Thread.sleep(1000);
p2.user(nus);
Thread.sleep(1000);
p2.pas(npsw);
Thread.sleep(1000);
p2.Submit();
Pom003 p3=new Pom003(driver);
p3.error();
}
}
| [
"[email protected]"
] | |
c74150550be50cb85b18ec54d6539750f29514bb | a3445b3941e46058ffccbcce5b8ee8411b65bdad | /com.SDUGameEngineDesigner/src/com/SDUGameEngineDesigner/CodeEditor/CodeEditorInput.java | 971257aef76f428fd0f7dc37337c0279aaac3864 | [] | no_license | SDU-Android-Lab/SDUGameEngineDesigner | f9ad57ee2ab1cdca77136ea700d82795f0a52712 | 43f562f1f1d9af3774354b19bc0d7c2ce30af8c6 | refs/heads/master | 2021-01-01T05:59:43.733520 | 2012-11-17T07:33:09 | 2012-11-17T07:33:09 | 4,969,295 | 1 | 0 | null | null | null | null | GB18030 | Java | false | false | 1,850 | java | package com.SDUGameEngineDesigner.CodeEditor;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;
import com.SDUGameEngineDesigner.View.PackageExplorerElement;
/**
* 源代码编辑器的输入
* @author xzz
*
*/
public class CodeEditorInput implements IEditorInput {
/**
* 源代码编辑器的输入相应的元素
*/
private PackageExplorerElement element;
/**
* 获得一个编辑器的适配器
*/
@Override
public Object getAdapter(Class adapter) {
// TODO Auto-generated method stub
return null;
}
/**
* 返回编辑器的输入是否存在
*/
@Override
public boolean exists() {
// TODO Auto-generated method stub
return false;
}
/**
* 返回输入的图片描述
*/
@Override
public ImageDescriptor getImageDescriptor() {
// TODO Auto-generated method stub
return null;
}
/**
* 返回编辑器标题栏的名称
*/
@Override
public String getName() {
// TODO Auto-generated method stub
return element.getName();
}
/**
* 返回能够用来可以保存编辑器的输入状态的对象
*/
@Override
public IPersistableElement getPersistable() {
// TODO Auto-generated method stub
return null;
}
/**
* 返回标题栏提示性文字标签
*/
@Override
public String getToolTipText() {
// TODO Auto-generated method stub
return "源代码编辑器";
}
/**
* 设置输入相应的元素
* @param element 元素
*/
public void setPackageExplorerElement(PackageExplorerElement element){
this.element = element;
}
/**
* 获得输入相应的元素
* @return PackageExplorerElement
*/
public PackageExplorerElement getPackageExplorerElement(){
return element;
}
}
| [
"[email protected]"
] | |
ac5a64c69c0318169d828a8b44add61a36c7a274 | 52c039288432360abafb966e6e105d35a9c6e131 | /tg-common/core-common/src/main/java/com/zhengcq/srv/core/common/entity/ServiceCode.java | 66caaba010f1331e8ebd724c8bfd3fd8c375c72e | [] | no_license | JOHNKING123/Tiger | f90d27a69fd8da9597e927a01ba757dadd8d651a | ef737d5ab357f685af93d0e824ee3af5ca9dd224 | refs/heads/master | 2022-10-29T05:28:08.254819 | 2021-01-18T01:47:04 | 2021-01-18T01:47:04 | 173,255,216 | 0 | 0 | null | 2022-10-05T18:20:16 | 2019-03-01T07:25:53 | Java | UTF-8 | Java | false | false | 260 | java | package com.zhengcq.srv.core.common.entity;
/**
* Created by clude on 3/15/17.
* 错误码修改
* 0 成功
* 非0 失败 ( 默认失败错误码为1 )
*/
public interface ServiceCode {
static final int OK = 0;
static final int FAILED = 1;
}
| [
"[email protected]"
] | |
c667a32fdee12b9eed2aea3742a67e3d8d4638c1 | 1daa675860ff13a544c6bd74851ae5d6f8ba47fa | /JAVA/Work/javaexec/src/main/java/tw02/tw02_06_문자열배열반환메서드.java | 5dd8fcd0ae93f1deb30d2334c0958587a5adfbae | [] | no_license | kaevin1004/java-- | 6d90a7613402e8e839a7c0dfa4f6b43681dde12e | 2de34eaf445b7d0946430bcc31d38be8fd5598dd | refs/heads/master | 2021-09-12T11:16:44.211681 | 2018-01-26T09:08:41 | 2018-01-26T09:08:41 | 103,893,846 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 396 | java | package tw02;
public class tw02_06_문자열배열반환메서드 {
public static void main(String[] args){
System.out.println("사랑합니다.");
}
public static String[] inputVal(String x){
String[] a=null;//메서드 타입"문자열"
return a;//void가 아니면 값을 리턴하지 않는다.
}
}
| [
"[email protected]"
] | |
9812ac95faa944d8791c2d720266bc39b43af638 | ed04c850e581b0fc47c7b3aa0543cbd08a00889d | /Native_v2.0_welltek/app/build/generated/source/r/debug/com/mikhaellopez/circularimageview/R.java | cedda6f6598e768cfdba3616a82bc2bc068cc213 | [] | no_license | ranadep14/Android | 5c7377d33f65c13260356df6ad3699819421e3e9 | 4cf067bc595694cf234454371f31e184f0267ac0 | refs/heads/master | 2020-04-16T06:32:38.299091 | 2019-01-29T10:19:03 | 2019-01-29T10:19:03 | 165,351,786 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 114,516 | 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 com.mikhaellopez.circularimageview;
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 = 0x7f040005;
public static final int actionBarItemBackground = 0x7f040006;
public static final int actionBarPopupTheme = 0x7f040007;
public static final int actionBarSize = 0x7f040008;
public static final int actionBarSplitStyle = 0x7f040009;
public static final int actionBarStyle = 0x7f04000a;
public static final int actionBarTabBarStyle = 0x7f04000b;
public static final int actionBarTabStyle = 0x7f04000c;
public static final int actionBarTabTextStyle = 0x7f04000d;
public static final int actionBarTheme = 0x7f04000e;
public static final int actionBarWidgetTheme = 0x7f04000f;
public static final int actionButtonStyle = 0x7f040010;
public static final int actionDropDownStyle = 0x7f040011;
public static final int actionLayout = 0x7f040012;
public static final int actionMenuTextAppearance = 0x7f040013;
public static final int actionMenuTextColor = 0x7f040014;
public static final int actionModeBackground = 0x7f040015;
public static final int actionModeCloseButtonStyle = 0x7f040016;
public static final int actionModeCloseDrawable = 0x7f040017;
public static final int actionModeCopyDrawable = 0x7f040018;
public static final int actionModeCutDrawable = 0x7f040019;
public static final int actionModeFindDrawable = 0x7f04001a;
public static final int actionModePasteDrawable = 0x7f04001b;
public static final int actionModePopupWindowStyle = 0x7f04001c;
public static final int actionModeSelectAllDrawable = 0x7f04001d;
public static final int actionModeShareDrawable = 0x7f04001e;
public static final int actionModeSplitBackground = 0x7f04001f;
public static final int actionModeStyle = 0x7f040020;
public static final int actionModeWebSearchDrawable = 0x7f040021;
public static final int actionOverflowButtonStyle = 0x7f040022;
public static final int actionOverflowMenuStyle = 0x7f040023;
public static final int actionProviderClass = 0x7f040024;
public static final int actionViewClass = 0x7f040025;
public static final int activityChooserViewStyle = 0x7f040026;
public static final int alertDialogButtonGroupStyle = 0x7f04002a;
public static final int alertDialogCenterButtons = 0x7f04002b;
public static final int alertDialogStyle = 0x7f04002c;
public static final int alertDialogTheme = 0x7f04002d;
public static final int allowStacking = 0x7f040030;
public static final int alpha = 0x7f040031;
public static final int alphabeticModifiers = 0x7f040032;
public static final int arrowHeadLength = 0x7f040058;
public static final int arrowShaftLength = 0x7f040059;
public static final int autoCompleteTextViewStyle = 0x7f04005a;
public static final int autoSizeMaxTextSize = 0x7f04005b;
public static final int autoSizeMinTextSize = 0x7f04005c;
public static final int autoSizePresetSizes = 0x7f04005d;
public static final int autoSizeStepGranularity = 0x7f04005e;
public static final int autoSizeTextType = 0x7f04005f;
public static final int background = 0x7f040060;
public static final int backgroundSplit = 0x7f040061;
public static final int backgroundStacked = 0x7f040062;
public static final int backgroundTint = 0x7f040063;
public static final int backgroundTintMode = 0x7f040064;
public static final int barLength = 0x7f040065;
public static final int borderlessButtonStyle = 0x7f04006f;
public static final int buttonBarButtonStyle = 0x7f040094;
public static final int buttonBarNegativeButtonStyle = 0x7f040095;
public static final int buttonBarNeutralButtonStyle = 0x7f040096;
public static final int buttonBarPositiveButtonStyle = 0x7f040097;
public static final int buttonBarStyle = 0x7f040098;
public static final int buttonGravity = 0x7f040099;
public static final int buttonPanelSideLayout = 0x7f04009a;
public static final int buttonStyle = 0x7f04009c;
public static final int buttonStyleSmall = 0x7f04009d;
public static final int buttonTint = 0x7f04009e;
public static final int buttonTintMode = 0x7f04009f;
public static final int checkboxStyle = 0x7f0400cf;
public static final int checkedTextViewStyle = 0x7f0400d0;
public static final int civ_background_color = 0x7f0400e2;
public static final int civ_border = 0x7f0400e3;
public static final int civ_border_color = 0x7f0400e4;
public static final int civ_border_width = 0x7f0400e6;
public static final int civ_shadow = 0x7f0400e9;
public static final int civ_shadow_color = 0x7f0400ea;
public static final int civ_shadow_gravity = 0x7f0400eb;
public static final int civ_shadow_radius = 0x7f0400ec;
public static final int closeIcon = 0x7f0400ed;
public static final int closeItemLayout = 0x7f0400ee;
public static final int collapseContentDescription = 0x7f0400ef;
public static final int collapseIcon = 0x7f0400f0;
public static final int color = 0x7f0400f3;
public static final int colorAccent = 0x7f0400f4;
public static final int colorBackgroundFloating = 0x7f0400f5;
public static final int colorButtonNormal = 0x7f0400f6;
public static final int colorControlActivated = 0x7f0400f7;
public static final int colorControlHighlight = 0x7f0400f8;
public static final int colorControlNormal = 0x7f0400f9;
public static final int colorError = 0x7f0400fa;
public static final int colorPrimary = 0x7f0400fb;
public static final int colorPrimaryDark = 0x7f0400fc;
public static final int colorSwitchThumbNormal = 0x7f0400fe;
public static final int commitIcon = 0x7f040101;
public static final int contentDescription = 0x7f040103;
public static final int contentInsetEnd = 0x7f040104;
public static final int contentInsetEndWithActions = 0x7f040105;
public static final int contentInsetLeft = 0x7f040106;
public static final int contentInsetRight = 0x7f040107;
public static final int contentInsetStart = 0x7f040108;
public static final int contentInsetStartWithNavigation = 0x7f040109;
public static final int controlBackground = 0x7f040111;
public static final int customNavigationLayout = 0x7f040135;
public static final int defaultQueryHint = 0x7f04013a;
public static final int dialogPreferredPadding = 0x7f04013b;
public static final int dialogTheme = 0x7f04013c;
public static final int displayOptions = 0x7f04013e;
public static final int divider = 0x7f040140;
public static final int dividerHorizontal = 0x7f040141;
public static final int dividerPadding = 0x7f040142;
public static final int dividerVertical = 0x7f040143;
public static final int drawableSize = 0x7f040159;
public static final int drawerArrowStyle = 0x7f04015a;
public static final int dropDownListViewStyle = 0x7f04015b;
public static final int dropdownListPreferredItemHeight = 0x7f04015c;
public static final int editTextBackground = 0x7f04016e;
public static final int editTextColor = 0x7f04016f;
public static final int editTextStyle = 0x7f040170;
public static final int elevation = 0x7f040171;
public static final int expandActivityOverflowButtonDrawable = 0x7f040176;
public static final int font = 0x7f04018a;
public static final int fontFamily = 0x7f04018b;
public static final int fontProviderAuthority = 0x7f04018c;
public static final int fontProviderCerts = 0x7f04018d;
public static final int fontProviderFetchStrategy = 0x7f04018e;
public static final int fontProviderFetchTimeout = 0x7f04018f;
public static final int fontProviderPackage = 0x7f040190;
public static final int fontProviderQuery = 0x7f040191;
public static final int fontStyle = 0x7f040192;
public static final int fontWeight = 0x7f040193;
public static final int gapBetweenBars = 0x7f04019a;
public static final int goIcon = 0x7f04019c;
public static final int height = 0x7f04019e;
public static final int hideOnContentScroll = 0x7f04019f;
public static final int homeAsUpIndicator = 0x7f0401a7;
public static final int homeLayout = 0x7f0401a8;
public static final int icon = 0x7f0401a9;
public static final int iconTint = 0x7f0401aa;
public static final int iconTintMode = 0x7f0401ab;
public static final int iconifiedByDefault = 0x7f0401ac;
public static final int imageButtonStyle = 0x7f0401af;
public static final int indeterminateProgressStyle = 0x7f0401b0;
public static final int initialActivityCount = 0x7f0401b2;
public static final int isLightTheme = 0x7f0401b8;
public static final int itemPadding = 0x7f0401bc;
public static final int keylines = 0x7f0401bf;
public static final int layout = 0x7f0401c4;
public static final int layout_anchor = 0x7f0401c6;
public static final int layout_anchorGravity = 0x7f0401c7;
public static final int layout_behavior = 0x7f0401c8;
public static final int layout_dodgeInsetEdges = 0x7f0401f0;
public static final int layout_insetEdge = 0x7f0401fa;
public static final int layout_keyline = 0x7f0401fb;
public static final int listChoiceBackgroundIndicator = 0x7f040207;
public static final int listDividerAlertDialog = 0x7f040208;
public static final int listItemLayout = 0x7f040209;
public static final int listLayout = 0x7f04020a;
public static final int listMenuViewStyle = 0x7f04020b;
public static final int listPopupWindowStyle = 0x7f04020c;
public static final int listPreferredItemHeight = 0x7f04020d;
public static final int listPreferredItemHeightLarge = 0x7f04020e;
public static final int listPreferredItemHeightSmall = 0x7f04020f;
public static final int listPreferredItemPaddingLeft = 0x7f040210;
public static final int listPreferredItemPaddingRight = 0x7f040211;
public static final int logo = 0x7f040217;
public static final int logoDescription = 0x7f040218;
public static final int maxButtonHeight = 0x7f040224;
public static final int measureWithLargestChild = 0x7f040227;
public static final int multiChoiceItemLayout = 0x7f040239;
public static final int navigationContentDescription = 0x7f04023a;
public static final int navigationIcon = 0x7f04023b;
public static final int navigationMode = 0x7f04023c;
public static final int numericModifiers = 0x7f040253;
public static final int overlapAnchor = 0x7f040257;
public static final int paddingBottomNoButtons = 0x7f040258;
public static final int paddingEnd = 0x7f040259;
public static final int paddingStart = 0x7f04025a;
public static final int paddingTopNoTitle = 0x7f04025b;
public static final int panelBackground = 0x7f04025c;
public static final int panelMenuListTheme = 0x7f04025d;
public static final int panelMenuListWidth = 0x7f04025e;
public static final int popupMenuStyle = 0x7f04026e;
public static final int popupTheme = 0x7f04026f;
public static final int popupWindowStyle = 0x7f040270;
public static final int preserveIconSpacing = 0x7f040272;
public static final int progressBarPadding = 0x7f040275;
public static final int progressBarStyle = 0x7f040276;
public static final int queryBackground = 0x7f04028d;
public static final int queryHint = 0x7f04028e;
public static final int radioButtonStyle = 0x7f04028f;
public static final int ratingBarStyle = 0x7f040290;
public static final int ratingBarStyleIndicator = 0x7f040291;
public static final int ratingBarStyleSmall = 0x7f040292;
public static final int searchHintIcon = 0x7f0402a4;
public static final int searchIcon = 0x7f0402a5;
public static final int searchViewStyle = 0x7f0402a7;
public static final int seekBarStyle = 0x7f0402ad;
public static final int selectableItemBackground = 0x7f0402ae;
public static final int selectableItemBackgroundBorderless = 0x7f0402af;
public static final int showAsAction = 0x7f0402b7;
public static final int showDividers = 0x7f0402b8;
public static final int showText = 0x7f0402b9;
public static final int showTitle = 0x7f0402ba;
public static final int singleChoiceItemLayout = 0x7f0402bb;
public static final int spinBars = 0x7f0402bf;
public static final int spinnerDropDownItemStyle = 0x7f0402c0;
public static final int spinnerStyle = 0x7f0402c1;
public static final int splitTrack = 0x7f0402c2;
public static final int srcCompat = 0x7f0402c3;
public static final int state_above_anchor = 0x7f0402c6;
public static final int statusBarBackground = 0x7f0402c9;
public static final int subMenuArrow = 0x7f0402cc;
public static final int submitBackground = 0x7f0402cd;
public static final int subtitle = 0x7f0402cf;
public static final int subtitleTextAppearance = 0x7f0402d0;
public static final int subtitleTextColor = 0x7f0402d1;
public static final int subtitleTextStyle = 0x7f0402d2;
public static final int suggestionRowLayout = 0x7f0402d3;
public static final int switchMinWidth = 0x7f04030a;
public static final int switchPadding = 0x7f04030b;
public static final int switchStyle = 0x7f04030c;
public static final int switchTextAppearance = 0x7f04030d;
public static final int textAllCaps = 0x7f04031e;
public static final int textAppearanceLargePopupMenu = 0x7f04031f;
public static final int textAppearanceListItem = 0x7f040320;
public static final int textAppearanceListItemSecondary = 0x7f040321;
public static final int textAppearanceListItemSmall = 0x7f040322;
public static final int textAppearancePopupMenuHeader = 0x7f040323;
public static final int textAppearanceSearchResultSubtitle = 0x7f040324;
public static final int textAppearanceSearchResultTitle = 0x7f040325;
public static final int textAppearanceSmallPopupMenu = 0x7f040326;
public static final int textColorAlertDialogListItem = 0x7f040328;
public static final int textColorSearchUrl = 0x7f04032a;
public static final int theme = 0x7f04032c;
public static final int thickness = 0x7f04032d;
public static final int thumbTextPadding = 0x7f04032e;
public static final int thumbTint = 0x7f04032f;
public static final int thumbTintMode = 0x7f040330;
public static final int tickMark = 0x7f040331;
public static final int tickMarkTint = 0x7f040332;
public static final int tickMarkTintMode = 0x7f040333;
public static final int tint = 0x7f040334;
public static final int tintMode = 0x7f040335;
public static final int title = 0x7f040336;
public static final int titleMargin = 0x7f040338;
public static final int titleMarginBottom = 0x7f040339;
public static final int titleMarginEnd = 0x7f04033a;
public static final int titleMarginStart = 0x7f04033b;
public static final int titleMarginTop = 0x7f04033c;
public static final int titleMargins = 0x7f04033d;
public static final int titleTextAppearance = 0x7f04033e;
public static final int titleTextColor = 0x7f04033f;
public static final int titleTextStyle = 0x7f040340;
public static final int toolbarNavigationButtonStyle = 0x7f040343;
public static final int toolbarStyle = 0x7f040344;
public static final int tooltipForegroundColor = 0x7f040346;
public static final int tooltipFrameBackground = 0x7f040347;
public static final int tooltipText = 0x7f040348;
public static final int track = 0x7f04034b;
public static final int trackTint = 0x7f04034c;
public static final int trackTintMode = 0x7f04034d;
public static final int voiceIcon = 0x7f04035e;
public static final int windowActionBar = 0x7f04035f;
public static final int windowActionBarOverlay = 0x7f040360;
public static final int windowActionModeOverlay = 0x7f040361;
public static final int windowFixedHeightMajor = 0x7f040362;
public static final int windowFixedHeightMinor = 0x7f040363;
public static final int windowFixedWidthMajor = 0x7f040364;
public static final int windowFixedWidthMinor = 0x7f040365;
public static final int windowMinWidthMajor = 0x7f040366;
public static final int windowMinWidthMinor = 0x7f040367;
public static final int windowNoTitle = 0x7f040368;
}
public static final class bool {
public static final int abc_action_bar_embed_tabs = 0x7f050000;
public static final int abc_allow_stacked_button_bar = 0x7f050001;
public static final int abc_config_actionMenuItemAllCaps = 0x7f050002;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent = 0x7f050004;
}
public static final class color {
public static final int abc_background_cache_hint_selector_material_dark = 0x7f060000;
public static final int abc_background_cache_hint_selector_material_light = 0x7f060001;
public static final int abc_btn_colored_borderless_text_material = 0x7f060002;
public static final int abc_btn_colored_text_material = 0x7f060003;
public static final int abc_color_highlight_material = 0x7f060004;
public static final int abc_hint_foreground_material_dark = 0x7f060005;
public static final int abc_hint_foreground_material_light = 0x7f060006;
public static final int abc_input_method_navigation_guard = 0x7f060007;
public static final int abc_primary_text_disable_only_material_dark = 0x7f060008;
public static final int abc_primary_text_disable_only_material_light = 0x7f060009;
public static final int abc_primary_text_material_dark = 0x7f06000a;
public static final int abc_primary_text_material_light = 0x7f06000b;
public static final int abc_search_url_text = 0x7f06000c;
public static final int abc_search_url_text_normal = 0x7f06000d;
public static final int abc_search_url_text_pressed = 0x7f06000e;
public static final int abc_search_url_text_selected = 0x7f06000f;
public static final int abc_secondary_text_material_dark = 0x7f060010;
public static final int abc_secondary_text_material_light = 0x7f060011;
public static final int abc_tint_btn_checkable = 0x7f060012;
public static final int abc_tint_default = 0x7f060013;
public static final int abc_tint_edittext = 0x7f060014;
public static final int abc_tint_seek_thumb = 0x7f060015;
public static final int abc_tint_spinner = 0x7f060016;
public static final int abc_tint_switch_track = 0x7f060017;
public static final int accent_material_dark = 0x7f060018;
public static final int accent_material_light = 0x7f060019;
public static final int background_floating_material_dark = 0x7f06001d;
public static final int background_floating_material_light = 0x7f06001e;
public static final int background_material_dark = 0x7f06001f;
public static final int background_material_light = 0x7f060020;
public static final int bright_foreground_disabled_material_dark = 0x7f060026;
public static final int bright_foreground_disabled_material_light = 0x7f060027;
public static final int bright_foreground_inverse_material_dark = 0x7f060028;
public static final int bright_foreground_inverse_material_light = 0x7f060029;
public static final int bright_foreground_material_dark = 0x7f06002a;
public static final int bright_foreground_material_light = 0x7f06002b;
public static final int button_material_dark = 0x7f06002c;
public static final int button_material_light = 0x7f06002d;
public static final int dim_foreground_disabled_material_dark = 0x7f06005b;
public static final int dim_foreground_disabled_material_light = 0x7f06005c;
public static final int dim_foreground_material_dark = 0x7f06005d;
public static final int dim_foreground_material_light = 0x7f06005e;
public static final int error_color_material = 0x7f06006b;
public static final int foreground_material_dark = 0x7f060070;
public static final int foreground_material_light = 0x7f060071;
public static final int highlighted_text_material_dark = 0x7f060078;
public static final int highlighted_text_material_light = 0x7f060079;
public static final int material_blue_grey_800 = 0x7f060085;
public static final int material_blue_grey_900 = 0x7f060086;
public static final int material_blue_grey_950 = 0x7f060087;
public static final int material_deep_teal_200 = 0x7f060088;
public static final int material_deep_teal_500 = 0x7f060089;
public static final int material_grey_100 = 0x7f06008a;
public static final int material_grey_300 = 0x7f06008b;
public static final int material_grey_50 = 0x7f06008c;
public static final int material_grey_600 = 0x7f06008d;
public static final int material_grey_800 = 0x7f06008e;
public static final int material_grey_850 = 0x7f06008f;
public static final int material_grey_900 = 0x7f060090;
public static final int notification_action_color_filter = 0x7f060096;
public static final int notification_icon_bg_color = 0x7f060097;
public static final int primary_dark_material_dark = 0x7f0600a2;
public static final int primary_dark_material_light = 0x7f0600a3;
public static final int primary_material_dark = 0x7f0600a4;
public static final int primary_material_light = 0x7f0600a5;
public static final int primary_text_default_material_dark = 0x7f0600a6;
public static final int primary_text_default_material_light = 0x7f0600a7;
public static final int primary_text_disabled_material_dark = 0x7f0600a8;
public static final int primary_text_disabled_material_light = 0x7f0600a9;
public static final int ripple_material_dark = 0x7f0600af;
public static final int ripple_material_light = 0x7f0600b0;
public static final int secondary_text_default_material_dark = 0x7f0600b1;
public static final int secondary_text_default_material_light = 0x7f0600b2;
public static final int secondary_text_disabled_material_dark = 0x7f0600b3;
public static final int secondary_text_disabled_material_light = 0x7f0600b4;
public static final int switch_thumb_disabled_material_dark = 0x7f0600b6;
public static final int switch_thumb_disabled_material_light = 0x7f0600b7;
public static final int switch_thumb_material_dark = 0x7f0600b8;
public static final int switch_thumb_material_light = 0x7f0600b9;
public static final int switch_thumb_normal_material_dark = 0x7f0600ba;
public static final int switch_thumb_normal_material_light = 0x7f0600bb;
public static final int tooltip_background_dark = 0x7f0600c0;
public static final int tooltip_background_light = 0x7f0600c1;
}
public static final class dimen {
public static final int abc_action_bar_content_inset_material = 0x7f070000;
public static final int abc_action_bar_content_inset_with_nav = 0x7f070001;
public static final int abc_action_bar_default_height_material = 0x7f070002;
public static final int abc_action_bar_default_padding_end_material = 0x7f070003;
public static final int abc_action_bar_default_padding_start_material = 0x7f070004;
public static final int abc_action_bar_elevation_material = 0x7f070005;
public static final int abc_action_bar_icon_vertical_padding_material = 0x7f070006;
public static final int abc_action_bar_overflow_padding_end_material = 0x7f070007;
public static final int abc_action_bar_overflow_padding_start_material = 0x7f070008;
public static final int abc_action_bar_progress_bar_size = 0x7f070009;
public static final int abc_action_bar_stacked_max_height = 0x7f07000a;
public static final int abc_action_bar_stacked_tab_max_width = 0x7f07000b;
public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f07000c;
public static final int abc_action_bar_subtitle_top_margin_material = 0x7f07000d;
public static final int abc_action_button_min_height_material = 0x7f07000e;
public static final int abc_action_button_min_width_material = 0x7f07000f;
public static final int abc_action_button_min_width_overflow_material = 0x7f070010;
public static final int abc_alert_dialog_button_bar_height = 0x7f070011;
public static final int abc_button_inset_horizontal_material = 0x7f070012;
public static final int abc_button_inset_vertical_material = 0x7f070013;
public static final int abc_button_padding_horizontal_material = 0x7f070014;
public static final int abc_button_padding_vertical_material = 0x7f070015;
public static final int abc_cascading_menus_min_smallest_width = 0x7f070016;
public static final int abc_config_prefDialogWidth = 0x7f070017;
public static final int abc_control_corner_material = 0x7f070018;
public static final int abc_control_inset_material = 0x7f070019;
public static final int abc_control_padding_material = 0x7f07001a;
public static final int abc_dialog_fixed_height_major = 0x7f07001b;
public static final int abc_dialog_fixed_height_minor = 0x7f07001c;
public static final int abc_dialog_fixed_width_major = 0x7f07001d;
public static final int abc_dialog_fixed_width_minor = 0x7f07001e;
public static final int abc_dialog_list_padding_bottom_no_buttons = 0x7f07001f;
public static final int abc_dialog_list_padding_top_no_title = 0x7f070020;
public static final int abc_dialog_min_width_major = 0x7f070021;
public static final int abc_dialog_min_width_minor = 0x7f070022;
public static final int abc_dialog_padding_material = 0x7f070023;
public static final int abc_dialog_padding_top_material = 0x7f070024;
public static final int abc_dialog_title_divider_material = 0x7f070025;
public static final int abc_disabled_alpha_material_dark = 0x7f070026;
public static final int abc_disabled_alpha_material_light = 0x7f070027;
public static final int abc_dropdownitem_icon_width = 0x7f070028;
public static final int abc_dropdownitem_text_padding_left = 0x7f070029;
public static final int abc_dropdownitem_text_padding_right = 0x7f07002a;
public static final int abc_edit_text_inset_bottom_material = 0x7f07002b;
public static final int abc_edit_text_inset_horizontal_material = 0x7f07002c;
public static final int abc_edit_text_inset_top_material = 0x7f07002d;
public static final int abc_floating_window_z = 0x7f07002e;
public static final int abc_list_item_padding_horizontal_material = 0x7f07002f;
public static final int abc_panel_menu_list_width = 0x7f070030;
public static final int abc_progress_bar_height_material = 0x7f070031;
public static final int abc_search_view_preferred_height = 0x7f070032;
public static final int abc_search_view_preferred_width = 0x7f070033;
public static final int abc_seekbar_track_background_height_material = 0x7f070034;
public static final int abc_seekbar_track_progress_height_material = 0x7f070035;
public static final int abc_select_dialog_padding_start_material = 0x7f070036;
public static final int abc_switch_padding = 0x7f070037;
public static final int abc_text_size_body_1_material = 0x7f070038;
public static final int abc_text_size_body_2_material = 0x7f070039;
public static final int abc_text_size_button_material = 0x7f07003a;
public static final int abc_text_size_caption_material = 0x7f07003b;
public static final int abc_text_size_display_1_material = 0x7f07003c;
public static final int abc_text_size_display_2_material = 0x7f07003d;
public static final int abc_text_size_display_3_material = 0x7f07003e;
public static final int abc_text_size_display_4_material = 0x7f07003f;
public static final int abc_text_size_headline_material = 0x7f070040;
public static final int abc_text_size_large_material = 0x7f070041;
public static final int abc_text_size_medium_material = 0x7f070042;
public static final int abc_text_size_menu_header_material = 0x7f070043;
public static final int abc_text_size_menu_material = 0x7f070044;
public static final int abc_text_size_small_material = 0x7f070045;
public static final int abc_text_size_subhead_material = 0x7f070046;
public static final int abc_text_size_subtitle_material_toolbar = 0x7f070047;
public static final int abc_text_size_title_material = 0x7f070048;
public static final int abc_text_size_title_material_toolbar = 0x7f070049;
public static final int compat_button_inset_horizontal_material = 0x7f070081;
public static final int compat_button_inset_vertical_material = 0x7f070082;
public static final int compat_button_padding_horizontal_material = 0x7f070083;
public static final int compat_button_padding_vertical_material = 0x7f070084;
public static final int compat_control_corner_material = 0x7f070085;
public static final int disabled_alpha_material_dark = 0x7f0700ae;
public static final int disabled_alpha_material_light = 0x7f0700af;
public static final int highlight_alpha_material_colored = 0x7f0700be;
public static final int highlight_alpha_material_dark = 0x7f0700bf;
public static final int highlight_alpha_material_light = 0x7f0700c0;
public static final int hint_alpha_material_dark = 0x7f0700c1;
public static final int hint_alpha_material_light = 0x7f0700c2;
public static final int hint_pressed_alpha_material_dark = 0x7f0700c3;
public static final int hint_pressed_alpha_material_light = 0x7f0700c4;
public static final int notification_action_icon_size = 0x7f0700d1;
public static final int notification_action_text_size = 0x7f0700d2;
public static final int notification_big_circle_margin = 0x7f0700d3;
public static final int notification_content_margin_start = 0x7f0700d4;
public static final int notification_large_icon_height = 0x7f0700d5;
public static final int notification_large_icon_width = 0x7f0700d6;
public static final int notification_main_column_padding_top = 0x7f0700d7;
public static final int notification_media_narrow_margin = 0x7f0700d8;
public static final int notification_right_icon_size = 0x7f0700d9;
public static final int notification_right_side_padding_top = 0x7f0700da;
public static final int notification_small_icon_background_padding = 0x7f0700db;
public static final int notification_small_icon_size_as_large = 0x7f0700dc;
public static final int notification_subtext_size = 0x7f0700dd;
public static final int notification_top_pad = 0x7f0700de;
public static final int notification_top_pad_large_text = 0x7f0700df;
public static final int tooltip_corner_radius = 0x7f070107;
public static final int tooltip_horizontal_padding = 0x7f070108;
public static final int tooltip_margin = 0x7f070109;
public static final int tooltip_precise_anchor_extra_offset = 0x7f07010a;
public static final int tooltip_precise_anchor_threshold = 0x7f07010b;
public static final int tooltip_vertical_padding = 0x7f07010c;
public static final int tooltip_y_offset_non_touch = 0x7f07010d;
public static final int tooltip_y_offset_touch = 0x7f07010e;
}
public static final class drawable {
public static final int abc_ab_share_pack_mtrl_alpha = 0x7f080006;
public static final int abc_action_bar_item_background_material = 0x7f080007;
public static final int abc_btn_borderless_material = 0x7f080008;
public static final int abc_btn_check_material = 0x7f080009;
public static final int abc_btn_check_to_on_mtrl_000 = 0x7f08000a;
public static final int abc_btn_check_to_on_mtrl_015 = 0x7f08000b;
public static final int abc_btn_colored_material = 0x7f08000c;
public static final int abc_btn_default_mtrl_shape = 0x7f08000d;
public static final int abc_btn_radio_material = 0x7f08000e;
public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f08000f;
public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f080010;
public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f080011;
public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f080012;
public static final int abc_cab_background_internal_bg = 0x7f080013;
public static final int abc_cab_background_top_material = 0x7f080014;
public static final int abc_cab_background_top_mtrl_alpha = 0x7f080015;
public static final int abc_control_background_material = 0x7f080016;
public static final int abc_dialog_material_background = 0x7f080017;
public static final int abc_edit_text_material = 0x7f080018;
public static final int abc_ic_ab_back_material = 0x7f080019;
public static final int abc_ic_arrow_drop_right_black_24dp = 0x7f08001a;
public static final int abc_ic_clear_material = 0x7f08001b;
public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f08001c;
public static final int abc_ic_go_search_api_material = 0x7f08001d;
public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f08001e;
public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f08001f;
public static final int abc_ic_menu_overflow_material = 0x7f080020;
public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f080021;
public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f080022;
public static final int abc_ic_menu_share_mtrl_alpha = 0x7f080023;
public static final int abc_ic_search_api_material = 0x7f080024;
public static final int abc_ic_star_black_16dp = 0x7f080025;
public static final int abc_ic_star_black_36dp = 0x7f080026;
public static final int abc_ic_star_black_48dp = 0x7f080027;
public static final int abc_ic_star_half_black_16dp = 0x7f080028;
public static final int abc_ic_star_half_black_36dp = 0x7f080029;
public static final int abc_ic_star_half_black_48dp = 0x7f08002a;
public static final int abc_ic_voice_search_api_material = 0x7f08002b;
public static final int abc_item_background_holo_dark = 0x7f08002c;
public static final int abc_item_background_holo_light = 0x7f08002d;
public static final int abc_list_divider_mtrl_alpha = 0x7f08002e;
public static final int abc_list_focused_holo = 0x7f08002f;
public static final int abc_list_longpressed_holo = 0x7f080030;
public static final int abc_list_pressed_holo_dark = 0x7f080031;
public static final int abc_list_pressed_holo_light = 0x7f080032;
public static final int abc_list_selector_background_transition_holo_dark = 0x7f080033;
public static final int abc_list_selector_background_transition_holo_light = 0x7f080034;
public static final int abc_list_selector_disabled_holo_dark = 0x7f080035;
public static final int abc_list_selector_disabled_holo_light = 0x7f080036;
public static final int abc_list_selector_holo_dark = 0x7f080037;
public static final int abc_list_selector_holo_light = 0x7f080038;
public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f080039;
public static final int abc_popup_background_mtrl_mult = 0x7f08003a;
public static final int abc_ratingbar_indicator_material = 0x7f08003b;
public static final int abc_ratingbar_material = 0x7f08003c;
public static final int abc_ratingbar_small_material = 0x7f08003d;
public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f08003e;
public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f08003f;
public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f080040;
public static final int abc_scrubber_primary_mtrl_alpha = 0x7f080041;
public static final int abc_scrubber_track_mtrl_alpha = 0x7f080042;
public static final int abc_seekbar_thumb_material = 0x7f080043;
public static final int abc_seekbar_tick_mark_material = 0x7f080044;
public static final int abc_seekbar_track_material = 0x7f080045;
public static final int abc_spinner_mtrl_am_alpha = 0x7f080046;
public static final int abc_spinner_textfield_background_material = 0x7f080047;
public static final int abc_switch_thumb_material = 0x7f080048;
public static final int abc_switch_track_mtrl_alpha = 0x7f080049;
public static final int abc_tab_indicator_material = 0x7f08004a;
public static final int abc_tab_indicator_mtrl_alpha = 0x7f08004b;
public static final int abc_text_cursor_material = 0x7f08004c;
public static final int abc_text_select_handle_left_mtrl_dark = 0x7f08004d;
public static final int abc_text_select_handle_left_mtrl_light = 0x7f08004e;
public static final int abc_text_select_handle_middle_mtrl_dark = 0x7f08004f;
public static final int abc_text_select_handle_middle_mtrl_light = 0x7f080050;
public static final int abc_text_select_handle_right_mtrl_dark = 0x7f080051;
public static final int abc_text_select_handle_right_mtrl_light = 0x7f080052;
public static final int abc_textfield_activated_mtrl_alpha = 0x7f080053;
public static final int abc_textfield_default_mtrl_alpha = 0x7f080054;
public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f080055;
public static final int abc_textfield_search_default_mtrl_alpha = 0x7f080056;
public static final int abc_textfield_search_material = 0x7f080057;
public static final int abc_vector_test = 0x7f080058;
public static final int notification_action_background = 0x7f08023f;
public static final int notification_bg = 0x7f080240;
public static final int notification_bg_low = 0x7f080241;
public static final int notification_bg_low_normal = 0x7f080242;
public static final int notification_bg_low_pressed = 0x7f080243;
public static final int notification_bg_normal = 0x7f080244;
public static final int notification_bg_normal_pressed = 0x7f080245;
public static final int notification_icon_background = 0x7f080246;
public static final int notification_template_icon_bg = 0x7f080248;
public static final int notification_template_icon_low_bg = 0x7f080249;
public static final int notification_tile_bg = 0x7f08024a;
public static final int notify_panel_notification_icon_bg = 0x7f08024b;
public static final int tooltip_frame_dark = 0x7f0802a5;
public static final int tooltip_frame_light = 0x7f0802a6;
}
public static final class id {
public static final int action_bar = 0x7f090045;
public static final int action_bar_activity_content = 0x7f090046;
public static final int action_bar_container = 0x7f090047;
public static final int action_bar_root = 0x7f090048;
public static final int action_bar_spinner = 0x7f090049;
public static final int action_bar_subtitle = 0x7f09004a;
public static final int action_bar_title = 0x7f09004b;
public static final int action_container = 0x7f09004c;
public static final int action_context_bar = 0x7f09004d;
public static final int action_divider = 0x7f09004e;
public static final int action_image = 0x7f09004f;
public static final int action_menu_divider = 0x7f090050;
public static final int action_menu_presenter = 0x7f090051;
public static final int action_mode_bar = 0x7f090052;
public static final int action_mode_bar_stub = 0x7f090053;
public static final int action_mode_close_button = 0x7f090054;
public static final int action_text = 0x7f090055;
public static final int actions = 0x7f090056;
public static final int activity_chooser_view_content = 0x7f090057;
public static final int add = 0x7f09005f;
public static final int alertTitle = 0x7f090064;
public static final int async = 0x7f09006f;
public static final int blocking = 0x7f09007e;
public static final int bottom = 0x7f090082;
public static final int buttonPanel = 0x7f0900b9;
public static final int checkbox = 0x7f0900d9;
public static final int chronometer = 0x7f0900da;
public static final int contentPanel = 0x7f0900ef;
public static final int custom = 0x7f0900f9;
public static final int customPanel = 0x7f0900fc;
public static final int decor_content_parent = 0x7f090104;
public static final int default_activity_button = 0x7f090105;
public static final int edit_query = 0x7f090125;
public static final int end = 0x7f090141;
public static final int expand_activities_button = 0x7f090149;
public static final int expanded_menu = 0x7f09014d;
public static final int forever = 0x7f090158;
public static final int home = 0x7f090175;
public static final int icon = 0x7f090187;
public static final int icon_group = 0x7f090188;
public static final int image = 0x7f09018d;
public static final int info = 0x7f0901f3;
public static final int italic = 0x7f0901fb;
public static final int left = 0x7f090212;
public static final int line1 = 0x7f090284;
public static final int line3 = 0x7f090285;
public static final int listMode = 0x7f090288;
public static final int list_item = 0x7f09028c;
public static final int message = 0x7f0902cc;
public static final int multiply = 0x7f0902eb;
public static final int none = 0x7f0902f7;
public static final int normal = 0x7f0902f8;
public static final int notification_background = 0x7f0902fa;
public static final int notification_main_column = 0x7f0902fb;
public static final int notification_main_column_container = 0x7f0902fc;
public static final int parentPanel = 0x7f090324;
public static final int progress_circular = 0x7f09034c;
public static final int progress_horizontal = 0x7f09034d;
public static final int radio = 0x7f09034e;
public static final int right = 0x7f090390;
public static final int right_icon = 0x7f090392;
public static final int right_side = 0x7f090394;
public static final int screen = 0x7f09039f;
public static final int scrollIndicatorDown = 0x7f0903a1;
public static final int scrollIndicatorUp = 0x7f0903a2;
public static final int scrollView = 0x7f0903a3;
public static final int search_badge = 0x7f0903a6;
public static final int search_bar = 0x7f0903a7;
public static final int search_button = 0x7f0903a8;
public static final int search_close_btn = 0x7f0903a9;
public static final int search_edit_frame = 0x7f0903aa;
public static final int search_go_btn = 0x7f0903ab;
public static final int search_mag_icon = 0x7f0903ac;
public static final int search_plate = 0x7f0903ad;
public static final int search_src_text = 0x7f0903ae;
public static final int search_voice_btn = 0x7f0903af;
public static final int select_dialog_listview = 0x7f0903bd;
public static final int shortcut = 0x7f0903c3;
public static final int spacer = 0x7f0903d6;
public static final int split_action_bar = 0x7f0903d9;
public static final int src_atop = 0x7f0903e2;
public static final int src_in = 0x7f0903e3;
public static final int src_over = 0x7f0903e4;
public static final int start = 0x7f0903e7;
public static final int submenuarrow = 0x7f0903ed;
public static final int submit_area = 0x7f0903ee;
public static final int tabMode = 0x7f0903fc;
public static final int text = 0x7f090402;
public static final int text2 = 0x7f090404;
public static final int textSpacerNoButtons = 0x7f090417;
public static final int textSpacerNoTitle = 0x7f090418;
public static final int time = 0x7f090426;
public static final int title = 0x7f090427;
public static final int titleDividerNoCustom = 0x7f090428;
public static final int title_template = 0x7f090429;
public static final int top = 0x7f09042d;
public static final int topPanel = 0x7f09042e;
public static final int uniform = 0x7f09051d;
public static final int up = 0x7f09051e;
public static final int wrap_content = 0x7f09054f;
}
public static final class integer {
public static final int abc_config_activityDefaultDur = 0x7f0a0000;
public static final int abc_config_activityShortDur = 0x7f0a0001;
public static final int cancel_button_image_alpha = 0x7f0a0004;
public static final int config_tooltipAnimTime = 0x7f0a0006;
public static final int status_bar_notification_info_maxnum = 0x7f0a000f;
}
public static final class layout {
public static final int abc_action_bar_title_item = 0x7f0c0000;
public static final int abc_action_bar_up_container = 0x7f0c0001;
public static final int abc_action_menu_item_layout = 0x7f0c0003;
public static final int abc_action_menu_layout = 0x7f0c0004;
public static final int abc_action_mode_bar = 0x7f0c0005;
public static final int abc_action_mode_close_item_material = 0x7f0c0006;
public static final int abc_activity_chooser_view = 0x7f0c0007;
public static final int abc_activity_chooser_view_list_item = 0x7f0c0008;
public static final int abc_alert_dialog_button_bar_material = 0x7f0c0009;
public static final int abc_alert_dialog_material = 0x7f0c000a;
public static final int abc_alert_dialog_title_material = 0x7f0c000b;
public static final int abc_dialog_title_material = 0x7f0c000c;
public static final int abc_expanded_menu_layout = 0x7f0c000d;
public static final int abc_list_menu_item_checkbox = 0x7f0c000e;
public static final int abc_list_menu_item_icon = 0x7f0c000f;
public static final int abc_list_menu_item_layout = 0x7f0c0010;
public static final int abc_list_menu_item_radio = 0x7f0c0011;
public static final int abc_popup_menu_header_item_layout = 0x7f0c0012;
public static final int abc_popup_menu_item_layout = 0x7f0c0013;
public static final int abc_screen_content_include = 0x7f0c0014;
public static final int abc_screen_simple = 0x7f0c0015;
public static final int abc_screen_simple_overlay_action_mode = 0x7f0c0016;
public static final int abc_screen_toolbar = 0x7f0c0017;
public static final int abc_search_dropdown_item_icons_2line = 0x7f0c0018;
public static final int abc_search_view = 0x7f0c0019;
public static final int abc_select_dialog_material = 0x7f0c001a;
public static final int notification_action = 0x7f0c00ef;
public static final int notification_action_tombstone = 0x7f0c00f0;
public static final int notification_template_custom_big = 0x7f0c00f7;
public static final int notification_template_icon_group = 0x7f0c00f8;
public static final int notification_template_part_chronometer = 0x7f0c00fc;
public static final int notification_template_part_time = 0x7f0c00fd;
public static final int select_dialog_item_material = 0x7f0c0112;
public static final int select_dialog_multichoice_material = 0x7f0c0113;
public static final int select_dialog_singlechoice_material = 0x7f0c0114;
public static final int support_simple_spinner_dropdown_item = 0x7f0c011c;
}
public static final class string {
public static final int abc_action_bar_home_description = 0x7f0f0004;
public static final int abc_action_bar_up_description = 0x7f0f0007;
public static final int abc_action_menu_overflow_description = 0x7f0f0008;
public static final int abc_action_mode_done = 0x7f0f0009;
public static final int abc_activity_chooser_view_see_all = 0x7f0f000a;
public static final int abc_activitychooserview_choose_application = 0x7f0f000b;
public static final int abc_capital_off = 0x7f0f000c;
public static final int abc_capital_on = 0x7f0f000d;
public static final int abc_font_family_body_1_material = 0x7f0f000e;
public static final int abc_font_family_body_2_material = 0x7f0f000f;
public static final int abc_font_family_button_material = 0x7f0f0010;
public static final int abc_font_family_caption_material = 0x7f0f0011;
public static final int abc_font_family_display_1_material = 0x7f0f0012;
public static final int abc_font_family_display_2_material = 0x7f0f0013;
public static final int abc_font_family_display_3_material = 0x7f0f0014;
public static final int abc_font_family_display_4_material = 0x7f0f0015;
public static final int abc_font_family_headline_material = 0x7f0f0016;
public static final int abc_font_family_menu_material = 0x7f0f0017;
public static final int abc_font_family_subhead_material = 0x7f0f0018;
public static final int abc_font_family_title_material = 0x7f0f0019;
public static final int abc_search_hint = 0x7f0f001a;
public static final int abc_searchview_description_clear = 0x7f0f001b;
public static final int abc_searchview_description_query = 0x7f0f001c;
public static final int abc_searchview_description_search = 0x7f0f001d;
public static final int abc_searchview_description_submit = 0x7f0f001e;
public static final int abc_searchview_description_voice = 0x7f0f001f;
public static final int abc_shareactionprovider_share_with = 0x7f0f0020;
public static final int abc_shareactionprovider_share_with_application = 0x7f0f0021;
public static final int abc_toolbar_collapse_description = 0x7f0f0022;
public static final int search_menu_title = 0x7f0f0103;
public static final int status_bar_notification_info_overflow = 0x7f0f010c;
}
public static final class style {
public static final int AlertDialog_AppCompat = 0x7f100000;
public static final int AlertDialog_AppCompat_Light = 0x7f100001;
public static final int Animation_AppCompat_Dialog = 0x7f100002;
public static final int Animation_AppCompat_DropDownUp = 0x7f100003;
public static final int Animation_AppCompat_Tooltip = 0x7f100004;
public static final int Base_AlertDialog_AppCompat = 0x7f10000b;
public static final int Base_AlertDialog_AppCompat_Light = 0x7f10000c;
public static final int Base_Animation_AppCompat_Dialog = 0x7f10000d;
public static final int Base_Animation_AppCompat_DropDownUp = 0x7f10000e;
public static final int Base_Animation_AppCompat_Tooltip = 0x7f10000f;
public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f100012;
public static final int Base_DialogWindowTitle_AppCompat = 0x7f100011;
public static final int Base_TextAppearance_AppCompat = 0x7f100013;
public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f100014;
public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f100015;
public static final int Base_TextAppearance_AppCompat_Button = 0x7f100016;
public static final int Base_TextAppearance_AppCompat_Caption = 0x7f100017;
public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f100018;
public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f100019;
public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f10001a;
public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f10001b;
public static final int Base_TextAppearance_AppCompat_Headline = 0x7f10001c;
public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f10001d;
public static final int Base_TextAppearance_AppCompat_Large = 0x7f10001e;
public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f10001f;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f100020;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f100021;
public static final int Base_TextAppearance_AppCompat_Medium = 0x7f100022;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f100023;
public static final int Base_TextAppearance_AppCompat_Menu = 0x7f100024;
public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f100025;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f100026;
public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f100027;
public static final int Base_TextAppearance_AppCompat_Small = 0x7f100028;
public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f100029;
public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f10002a;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f10002b;
public static final int Base_TextAppearance_AppCompat_Title = 0x7f10002c;
public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f10002d;
public static final int Base_TextAppearance_AppCompat_Tooltip = 0x7f10002e;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f10002f;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f100030;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f100031;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f100032;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f100033;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f100034;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f100035;
public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f100036;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f100037;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Colored = 0x7f100038;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f100039;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f10003a;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f10003b;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f10003c;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f10003d;
public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f10003e;
public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f10003f;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f100040;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f100041;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f100042;
public static final int Base_ThemeOverlay_AppCompat = 0x7f100051;
public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f100052;
public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f100053;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f100054;
public static final int Base_ThemeOverlay_AppCompat_Dialog = 0x7f100055;
public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 0x7f100056;
public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f100057;
public static final int Base_Theme_AppCompat = 0x7f100043;
public static final int Base_Theme_AppCompat_CompactMenu = 0x7f100044;
public static final int Base_Theme_AppCompat_Dialog = 0x7f100045;
public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f100049;
public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f100046;
public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f100047;
public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f100048;
public static final int Base_Theme_AppCompat_Light = 0x7f10004a;
public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f10004b;
public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f10004c;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f100050;
public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f10004d;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f10004e;
public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f10004f;
public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 0x7f100062;
public static final int Base_V21_Theme_AppCompat = 0x7f10005e;
public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f10005f;
public static final int Base_V21_Theme_AppCompat_Light = 0x7f100060;
public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f100061;
public static final int Base_V22_Theme_AppCompat = 0x7f100064;
public static final int Base_V22_Theme_AppCompat_Light = 0x7f100065;
public static final int Base_V23_Theme_AppCompat = 0x7f100066;
public static final int Base_V23_Theme_AppCompat_Light = 0x7f100067;
public static final int Base_V26_Theme_AppCompat = 0x7f100068;
public static final int Base_V26_Theme_AppCompat_Light = 0x7f100069;
public static final int Base_V26_Widget_AppCompat_Toolbar = 0x7f10006a;
public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 0x7f100070;
public static final int Base_V7_Theme_AppCompat = 0x7f10006c;
public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f10006d;
public static final int Base_V7_Theme_AppCompat_Light = 0x7f10006e;
public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f10006f;
public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f100071;
public static final int Base_V7_Widget_AppCompat_EditText = 0x7f100072;
public static final int Base_V7_Widget_AppCompat_Toolbar = 0x7f100073;
public static final int Base_Widget_AppCompat_ActionBar = 0x7f100074;
public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f100075;
public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f100076;
public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f100077;
public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f100078;
public static final int Base_Widget_AppCompat_ActionButton = 0x7f100079;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f10007a;
public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f10007b;
public static final int Base_Widget_AppCompat_ActionMode = 0x7f10007c;
public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f10007d;
public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f10007e;
public static final int Base_Widget_AppCompat_Button = 0x7f10007f;
public static final int Base_Widget_AppCompat_ButtonBar = 0x7f100085;
public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f100086;
public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f100080;
public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f100081;
public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f100082;
public static final int Base_Widget_AppCompat_Button_Colored = 0x7f100083;
public static final int Base_Widget_AppCompat_Button_Small = 0x7f100084;
public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f100087;
public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f100088;
public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f100089;
public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f10008a;
public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f10008b;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f10008c;
public static final int Base_Widget_AppCompat_EditText = 0x7f10008d;
public static final int Base_Widget_AppCompat_ImageButton = 0x7f10008e;
public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f10008f;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f100090;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f100091;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f100092;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f100093;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f100094;
public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f100095;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f100096;
public static final int Base_Widget_AppCompat_ListMenuView = 0x7f100097;
public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f100098;
public static final int Base_Widget_AppCompat_ListView = 0x7f100099;
public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f10009a;
public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f10009b;
public static final int Base_Widget_AppCompat_PopupMenu = 0x7f10009c;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f10009d;
public static final int Base_Widget_AppCompat_PopupWindow = 0x7f10009e;
public static final int Base_Widget_AppCompat_ProgressBar = 0x7f10009f;
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f1000a0;
public static final int Base_Widget_AppCompat_RatingBar = 0x7f1000a1;
public static final int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f1000a2;
public static final int Base_Widget_AppCompat_RatingBar_Small = 0x7f1000a3;
public static final int Base_Widget_AppCompat_SearchView = 0x7f1000a4;
public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f1000a5;
public static final int Base_Widget_AppCompat_SeekBar = 0x7f1000a6;
public static final int Base_Widget_AppCompat_SeekBar_Discrete = 0x7f1000a7;
public static final int Base_Widget_AppCompat_Spinner = 0x7f1000a8;
public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f1000a9;
public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f1000aa;
public static final int Base_Widget_AppCompat_Toolbar = 0x7f1000ab;
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f1000ac;
public static final int Platform_AppCompat = 0x7f1000c0;
public static final int Platform_AppCompat_Light = 0x7f1000c1;
public static final int Platform_ThemeOverlay_AppCompat = 0x7f1000c2;
public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f1000c3;
public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f1000c4;
public static final int Platform_V21_AppCompat = 0x7f1000c9;
public static final int Platform_V21_AppCompat_Light = 0x7f1000ca;
public static final int Platform_V25_AppCompat = 0x7f1000cb;
public static final int Platform_V25_AppCompat_Light = 0x7f1000cc;
public static final int Platform_Widget_AppCompat_Spinner = 0x7f1000cd;
public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f1000cf;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f1000d0;
public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f1000d1;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f1000d2;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f1000d3;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f1000d4;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f1000da;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f1000d5;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f1000d6;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f1000d7;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f1000d8;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f1000d9;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f1000db;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f1000dc;
public static final int TextAppearance_AppCompat = 0x7f10010e;
public static final int TextAppearance_AppCompat_Body1 = 0x7f10010f;
public static final int TextAppearance_AppCompat_Body2 = 0x7f100110;
public static final int TextAppearance_AppCompat_Button = 0x7f100111;
public static final int TextAppearance_AppCompat_Caption = 0x7f100112;
public static final int TextAppearance_AppCompat_Display1 = 0x7f100113;
public static final int TextAppearance_AppCompat_Display2 = 0x7f100114;
public static final int TextAppearance_AppCompat_Display3 = 0x7f100115;
public static final int TextAppearance_AppCompat_Display4 = 0x7f100116;
public static final int TextAppearance_AppCompat_Headline = 0x7f100117;
public static final int TextAppearance_AppCompat_Inverse = 0x7f100118;
public static final int TextAppearance_AppCompat_Large = 0x7f100119;
public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f10011a;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f10011b;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f10011c;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f10011d;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f10011e;
public static final int TextAppearance_AppCompat_Medium = 0x7f10011f;
public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f100120;
public static final int TextAppearance_AppCompat_Menu = 0x7f100121;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f10012c;
public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f10012d;
public static final int TextAppearance_AppCompat_Small = 0x7f10012e;
public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f10012f;
public static final int TextAppearance_AppCompat_Subhead = 0x7f100130;
public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f100131;
public static final int TextAppearance_AppCompat_Title = 0x7f100132;
public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f100133;
public static final int TextAppearance_AppCompat_Tooltip = 0x7f100134;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f100135;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f100136;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f100137;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f100138;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f100139;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f10013a;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f10013b;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f10013c;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f10013d;
public static final int TextAppearance_AppCompat_Widget_Button = 0x7f10013e;
public static final int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f10013f;
public static final int TextAppearance_AppCompat_Widget_Button_Colored = 0x7f100140;
public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f100141;
public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f100142;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f100143;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f100144;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f100145;
public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f100146;
public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f100147;
public static final int TextAppearance_Compat_Notification = 0x7f10014c;
public static final int TextAppearance_Compat_Notification_Info = 0x7f10014d;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f10014f;
public static final int TextAppearance_Compat_Notification_Time = 0x7f100152;
public static final int TextAppearance_Compat_Notification_Title = 0x7f100154;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f100160;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f100161;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f100162;
public static final int ThemeOverlay_AppCompat = 0x7f100185;
public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f100186;
public static final int ThemeOverlay_AppCompat_Dark = 0x7f100187;
public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f100188;
public static final int ThemeOverlay_AppCompat_Dialog = 0x7f100189;
public static final int ThemeOverlay_AppCompat_Dialog_Alert = 0x7f10018a;
public static final int ThemeOverlay_AppCompat_Light = 0x7f10018b;
public static final int Theme_AppCompat = 0x7f100163;
public static final int Theme_AppCompat_CompactMenu = 0x7f100164;
public static final int Theme_AppCompat_DayNight = 0x7f100165;
public static final int Theme_AppCompat_DayNight_DarkActionBar = 0x7f100166;
public static final int Theme_AppCompat_DayNight_Dialog = 0x7f100167;
public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f10016a;
public static final int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f100168;
public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f100169;
public static final int Theme_AppCompat_DayNight_NoActionBar = 0x7f10016b;
public static final int Theme_AppCompat_Dialog = 0x7f10016c;
public static final int Theme_AppCompat_DialogWhenLarge = 0x7f10016f;
public static final int Theme_AppCompat_Dialog_Alert = 0x7f10016d;
public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f10016e;
public static final int Theme_AppCompat_Light = 0x7f100170;
public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f100171;
public static final int Theme_AppCompat_Light_Dialog = 0x7f100172;
public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f100175;
public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f100173;
public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f100174;
public static final int Theme_AppCompat_Light_NoActionBar = 0x7f100176;
public static final int Theme_AppCompat_NoActionBar = 0x7f100177;
public static final int Widget_AppCompat_ActionBar = 0x7f100192;
public static final int Widget_AppCompat_ActionBar_Solid = 0x7f100193;
public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f100194;
public static final int Widget_AppCompat_ActionBar_TabText = 0x7f100195;
public static final int Widget_AppCompat_ActionBar_TabView = 0x7f100196;
public static final int Widget_AppCompat_ActionButton = 0x7f100197;
public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f100198;
public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f100199;
public static final int Widget_AppCompat_ActionMode = 0x7f10019a;
public static final int Widget_AppCompat_ActivityChooserView = 0x7f10019b;
public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f10019c;
public static final int Widget_AppCompat_Button = 0x7f10019d;
public static final int Widget_AppCompat_ButtonBar = 0x7f1001a3;
public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f1001a4;
public static final int Widget_AppCompat_Button_Borderless = 0x7f10019e;
public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f10019f;
public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f1001a0;
public static final int Widget_AppCompat_Button_Colored = 0x7f1001a1;
public static final int Widget_AppCompat_Button_Small = 0x7f1001a2;
public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f1001a5;
public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f1001a6;
public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f1001a7;
public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f1001a8;
public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f1001a9;
public static final int Widget_AppCompat_EditText = 0x7f1001aa;
public static final int Widget_AppCompat_ImageButton = 0x7f1001ab;
public static final int Widget_AppCompat_Light_ActionBar = 0x7f1001ac;
public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f1001ad;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f1001ae;
public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f1001af;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f1001b0;
public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f1001b1;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f1001b2;
public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f1001b3;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f1001b4;
public static final int Widget_AppCompat_Light_ActionButton = 0x7f1001b5;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f1001b6;
public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f1001b7;
public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f1001b8;
public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f1001b9;
public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f1001ba;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f1001bb;
public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f1001bc;
public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f1001bd;
public static final int Widget_AppCompat_Light_PopupMenu = 0x7f1001be;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f1001bf;
public static final int Widget_AppCompat_Light_SearchView = 0x7f1001c0;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f1001c1;
public static final int Widget_AppCompat_ListMenuView = 0x7f1001c2;
public static final int Widget_AppCompat_ListPopupWindow = 0x7f1001c3;
public static final int Widget_AppCompat_ListView = 0x7f1001c4;
public static final int Widget_AppCompat_ListView_DropDown = 0x7f1001c5;
public static final int Widget_AppCompat_ListView_Menu = 0x7f1001c6;
public static final int Widget_AppCompat_PopupMenu = 0x7f1001c7;
public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f1001c8;
public static final int Widget_AppCompat_PopupWindow = 0x7f1001c9;
public static final int Widget_AppCompat_ProgressBar = 0x7f1001ca;
public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f1001cb;
public static final int Widget_AppCompat_RatingBar = 0x7f1001cc;
public static final int Widget_AppCompat_RatingBar_Indicator = 0x7f1001cd;
public static final int Widget_AppCompat_RatingBar_Small = 0x7f1001ce;
public static final int Widget_AppCompat_SearchView = 0x7f1001cf;
public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f1001d0;
public static final int Widget_AppCompat_SeekBar = 0x7f1001d1;
public static final int Widget_AppCompat_SeekBar_Discrete = 0x7f1001d2;
public static final int Widget_AppCompat_Spinner = 0x7f1001d3;
public static final int Widget_AppCompat_Spinner_DropDown = 0x7f1001d4;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f1001d5;
public static final int Widget_AppCompat_Spinner_Underlined = 0x7f1001d6;
public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f1001d7;
public static final int Widget_AppCompat_Toolbar = 0x7f1001d8;
public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f1001d9;
public static final int Widget_Compat_NotificationActionContainer = 0x7f1001da;
public static final int Widget_Compat_NotificationActionText = 0x7f1001db;
}
public static final class styleable {
public static final int[] ActionBar = { 0x7f040060, 0x7f040061, 0x7f040062, 0x7f040104, 0x7f040105, 0x7f040106, 0x7f040107, 0x7f040108, 0x7f040109, 0x7f040135, 0x7f04013e, 0x7f040140, 0x7f040171, 0x7f04019e, 0x7f04019f, 0x7f0401a7, 0x7f0401a8, 0x7f0401a9, 0x7f0401b0, 0x7f0401bc, 0x7f040217, 0x7f04023c, 0x7f04026f, 0x7f040275, 0x7f040276, 0x7f0402cf, 0x7f0402d2, 0x7f040336, 0x7f040340 };
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[] ActionMode = { 0x7f040060, 0x7f040061, 0x7f0400ee, 0x7f04019e, 0x7f0402d2, 0x7f040340 };
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 = { 0x7f040176, 0x7f0401b2 };
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0;
public static final int ActivityChooserView_initialActivityCount = 1;
public static final int[] AlertDialog = { 0x010100f2, 0x7f04009a, 0x7f040209, 0x7f04020a, 0x7f040239, 0x7f0402ba, 0x7f0402bb };
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_showTitle = 5;
public static final int AlertDialog_singleChoiceItemLayout = 6;
public static final int[] AppCompatImageView = { 0x01010119, 0x7f0402c3, 0x7f040334, 0x7f040335 };
public static final int AppCompatImageView_android_src = 0;
public static final int AppCompatImageView_srcCompat = 1;
public static final int AppCompatImageView_tint = 2;
public static final int AppCompatImageView_tintMode = 3;
public static final int[] AppCompatSeekBar = { 0x01010142, 0x7f040331, 0x7f040332, 0x7f040333 };
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[] AppCompatTextHelper = { 0x01010034, 0x0101016d, 0x0101016e, 0x0101016f, 0x01010170, 0x01010392, 0x01010393 };
public static final int AppCompatTextHelper_android_textAppearance = 0;
public static final int AppCompatTextHelper_android_drawableTop = 1;
public static final int AppCompatTextHelper_android_drawableBottom = 2;
public static final int AppCompatTextHelper_android_drawableLeft = 3;
public static final int AppCompatTextHelper_android_drawableRight = 4;
public static final int AppCompatTextHelper_android_drawableStart = 5;
public static final int AppCompatTextHelper_android_drawableEnd = 6;
public static final int[] AppCompatTextView = { 0x01010034, 0x7f04005b, 0x7f04005c, 0x7f04005d, 0x7f04005e, 0x7f04005f, 0x7f04018b, 0x7f04031e };
public static final int AppCompatTextView_android_textAppearance = 0;
public static final int AppCompatTextView_autoSizeMaxTextSize = 1;
public static final int AppCompatTextView_autoSizeMinTextSize = 2;
public static final int AppCompatTextView_autoSizePresetSizes = 3;
public static final int AppCompatTextView_autoSizeStepGranularity = 4;
public static final int AppCompatTextView_autoSizeTextType = 5;
public static final int AppCompatTextView_fontFamily = 6;
public static final int AppCompatTextView_textAllCaps = 7;
public static final int[] AppCompatTheme = { 0x01010057, 0x010100ae, 0x7f040005, 0x7f040006, 0x7f040007, 0x7f040008, 0x7f040009, 0x7f04000a, 0x7f04000b, 0x7f04000c, 0x7f04000d, 0x7f04000e, 0x7f04000f, 0x7f040010, 0x7f040011, 0x7f040013, 0x7f040014, 0x7f040015, 0x7f040016, 0x7f040017, 0x7f040018, 0x7f040019, 0x7f04001a, 0x7f04001b, 0x7f04001c, 0x7f04001d, 0x7f04001e, 0x7f04001f, 0x7f040020, 0x7f040021, 0x7f040022, 0x7f040023, 0x7f040026, 0x7f04002a, 0x7f04002b, 0x7f04002c, 0x7f04002d, 0x7f04005a, 0x7f04006f, 0x7f040094, 0x7f040095, 0x7f040096, 0x7f040097, 0x7f040098, 0x7f04009c, 0x7f04009d, 0x7f0400cf, 0x7f0400d0, 0x7f0400f4, 0x7f0400f5, 0x7f0400f6, 0x7f0400f7, 0x7f0400f8, 0x7f0400f9, 0x7f0400fa, 0x7f0400fb, 0x7f0400fc, 0x7f0400fe, 0x7f040111, 0x7f04013b, 0x7f04013c, 0x7f040141, 0x7f040143, 0x7f04015b, 0x7f04015c, 0x7f04016e, 0x7f04016f, 0x7f040170, 0x7f0401a7, 0x7f0401af, 0x7f040207, 0x7f040208, 0x7f04020b, 0x7f04020c, 0x7f04020d, 0x7f04020e, 0x7f04020f, 0x7f040210, 0x7f040211, 0x7f04025c, 0x7f04025d, 0x7f04025e, 0x7f04026e, 0x7f040270, 0x7f04028f, 0x7f040290, 0x7f040291, 0x7f040292, 0x7f0402a7, 0x7f0402ad, 0x7f0402ae, 0x7f0402af, 0x7f0402c0, 0x7f0402c1, 0x7f04030c, 0x7f04031f, 0x7f040320, 0x7f040321, 0x7f040322, 0x7f040323, 0x7f040324, 0x7f040325, 0x7f040326, 0x7f040328, 0x7f04032a, 0x7f040343, 0x7f040344, 0x7f040346, 0x7f040347, 0x7f04035f, 0x7f040360, 0x7f040361, 0x7f040362, 0x7f040363, 0x7f040364, 0x7f040365, 0x7f040366, 0x7f040367, 0x7f040368 };
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_colorError = 54;
public static final int AppCompatTheme_colorPrimary = 55;
public static final int AppCompatTheme_colorPrimaryDark = 56;
public static final int AppCompatTheme_colorSwitchThumbNormal = 57;
public static final int AppCompatTheme_controlBackground = 58;
public static final int AppCompatTheme_dialogPreferredPadding = 59;
public static final int AppCompatTheme_dialogTheme = 60;
public static final int AppCompatTheme_dividerHorizontal = 61;
public static final int AppCompatTheme_dividerVertical = 62;
public static final int AppCompatTheme_dropDownListViewStyle = 63;
public static final int AppCompatTheme_dropdownListPreferredItemHeight = 64;
public static final int AppCompatTheme_editTextBackground = 65;
public static final int AppCompatTheme_editTextColor = 66;
public static final int AppCompatTheme_editTextStyle = 67;
public static final int AppCompatTheme_homeAsUpIndicator = 68;
public static final int AppCompatTheme_imageButtonStyle = 69;
public static final int AppCompatTheme_listChoiceBackgroundIndicator = 70;
public static final int AppCompatTheme_listDividerAlertDialog = 71;
public static final int AppCompatTheme_listMenuViewStyle = 72;
public static final int AppCompatTheme_listPopupWindowStyle = 73;
public static final int AppCompatTheme_listPreferredItemHeight = 74;
public static final int AppCompatTheme_listPreferredItemHeightLarge = 75;
public static final int AppCompatTheme_listPreferredItemHeightSmall = 76;
public static final int AppCompatTheme_listPreferredItemPaddingLeft = 77;
public static final int AppCompatTheme_listPreferredItemPaddingRight = 78;
public static final int AppCompatTheme_panelBackground = 79;
public static final int AppCompatTheme_panelMenuListTheme = 80;
public static final int AppCompatTheme_panelMenuListWidth = 81;
public static final int AppCompatTheme_popupMenuStyle = 82;
public static final int AppCompatTheme_popupWindowStyle = 83;
public static final int AppCompatTheme_radioButtonStyle = 84;
public static final int AppCompatTheme_ratingBarStyle = 85;
public static final int AppCompatTheme_ratingBarStyleIndicator = 86;
public static final int AppCompatTheme_ratingBarStyleSmall = 87;
public static final int AppCompatTheme_searchViewStyle = 88;
public static final int AppCompatTheme_seekBarStyle = 89;
public static final int AppCompatTheme_selectableItemBackground = 90;
public static final int AppCompatTheme_selectableItemBackgroundBorderless = 91;
public static final int AppCompatTheme_spinnerDropDownItemStyle = 92;
public static final int AppCompatTheme_spinnerStyle = 93;
public static final int AppCompatTheme_switchStyle = 94;
public static final int AppCompatTheme_textAppearanceLargePopupMenu = 95;
public static final int AppCompatTheme_textAppearanceListItem = 96;
public static final int AppCompatTheme_textAppearanceListItemSecondary = 97;
public static final int AppCompatTheme_textAppearanceListItemSmall = 98;
public static final int AppCompatTheme_textAppearancePopupMenuHeader = 99;
public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 100;
public static final int AppCompatTheme_textAppearanceSearchResultTitle = 101;
public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 102;
public static final int AppCompatTheme_textColorAlertDialogListItem = 103;
public static final int AppCompatTheme_textColorSearchUrl = 104;
public static final int AppCompatTheme_toolbarNavigationButtonStyle = 105;
public static final int AppCompatTheme_toolbarStyle = 106;
public static final int AppCompatTheme_tooltipForegroundColor = 107;
public static final int AppCompatTheme_tooltipFrameBackground = 108;
public static final int AppCompatTheme_windowActionBar = 109;
public static final int AppCompatTheme_windowActionBarOverlay = 110;
public static final int AppCompatTheme_windowActionModeOverlay = 111;
public static final int AppCompatTheme_windowFixedHeightMajor = 112;
public static final int AppCompatTheme_windowFixedHeightMinor = 113;
public static final int AppCompatTheme_windowFixedWidthMajor = 114;
public static final int AppCompatTheme_windowFixedWidthMinor = 115;
public static final int AppCompatTheme_windowMinWidthMajor = 116;
public static final int AppCompatTheme_windowMinWidthMinor = 117;
public static final int AppCompatTheme_windowNoTitle = 118;
public static final int[] ButtonBarLayout = { 0x7f040030 };
public static final int ButtonBarLayout_allowStacking = 0;
public static final int[] CircularImageView = { 0x7f0400e2, 0x7f0400e3, 0x7f0400e4, 0x7f0400e6, 0x7f0400e9, 0x7f0400ea, 0x7f0400eb, 0x7f0400ec };
public static final int CircularImageView_civ_background_color = 0;
public static final int CircularImageView_civ_border = 1;
public static final int CircularImageView_civ_border_color = 2;
public static final int CircularImageView_civ_border_width = 3;
public static final int CircularImageView_civ_shadow = 4;
public static final int CircularImageView_civ_shadow_color = 5;
public static final int CircularImageView_civ_shadow_gravity = 6;
public static final int CircularImageView_civ_shadow_radius = 7;
public static final int[] ColorStateListItem = { 0x010101a5, 0x0101031f, 0x7f040031 };
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, 0x7f04009e, 0x7f04009f };
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[] CoordinatorLayout = { 0x7f0401bf, 0x7f0402c9 };
public static final int CoordinatorLayout_keylines = 0;
public static final int CoordinatorLayout_statusBarBackground = 1;
public static final int[] CoordinatorLayout_Layout = { 0x010100b3, 0x7f0401c6, 0x7f0401c7, 0x7f0401c8, 0x7f0401f0, 0x7f0401fa, 0x7f0401fb };
public static final int CoordinatorLayout_Layout_android_layout_gravity = 0;
public static final int CoordinatorLayout_Layout_layout_anchor = 1;
public static final int CoordinatorLayout_Layout_layout_anchorGravity = 2;
public static final int CoordinatorLayout_Layout_layout_behavior = 3;
public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4;
public static final int CoordinatorLayout_Layout_layout_insetEdge = 5;
public static final int CoordinatorLayout_Layout_layout_keyline = 6;
public static final int[] DrawerArrowToggle = { 0x7f040058, 0x7f040059, 0x7f040065, 0x7f0400f3, 0x7f040159, 0x7f04019a, 0x7f0402bf, 0x7f04032d };
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[] FontFamily = { 0x7f04018c, 0x7f04018d, 0x7f04018e, 0x7f04018f, 0x7f040190, 0x7f040191 };
public static final int FontFamily_fontProviderAuthority = 0;
public static final int FontFamily_fontProviderCerts = 1;
public static final int FontFamily_fontProviderFetchStrategy = 2;
public static final int FontFamily_fontProviderFetchTimeout = 3;
public static final int FontFamily_fontProviderPackage = 4;
public static final int FontFamily_fontProviderQuery = 5;
public static final int[] FontFamilyFont = { 0x7f04018a, 0x7f040192, 0x7f040193 };
public static final int FontFamilyFont_font = 0;
public static final int FontFamilyFont_fontStyle = 1;
public static final int FontFamilyFont_fontWeight = 2;
public static final int[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f040140, 0x7f040142, 0x7f040227, 0x7f0402b8 };
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, 0x7f040012, 0x7f040024, 0x7f040025, 0x7f040032, 0x7f040103, 0x7f0401aa, 0x7f0401ab, 0x7f040253, 0x7f0402b7, 0x7f040348 };
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_alphabeticModifiers = 16;
public static final int MenuItem_contentDescription = 17;
public static final int MenuItem_iconTint = 18;
public static final int MenuItem_iconTintMode = 19;
public static final int MenuItem_numericModifiers = 20;
public static final int MenuItem_showAsAction = 21;
public static final int MenuItem_tooltipText = 22;
public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f040272, 0x7f0402cc };
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, 0x7f040257 };
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 = { 0x7f0402c6 };
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
public static final int[] RecycleListView = { 0x7f040258, 0x7f04025b };
public static final int RecycleListView_paddingBottomNoButtons = 0;
public static final int RecycleListView_paddingTopNoTitle = 1;
public static final int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f0400ed, 0x7f040101, 0x7f04013a, 0x7f04019c, 0x7f0401ac, 0x7f0401c4, 0x7f04028d, 0x7f04028e, 0x7f0402a4, 0x7f0402a5, 0x7f0402cd, 0x7f0402d3, 0x7f04035e };
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, 0x7f04026f };
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, 0x7f0402b9, 0x7f0402c2, 0x7f04030a, 0x7f04030b, 0x7f04030d, 0x7f04032e, 0x7f04032f, 0x7f040330, 0x7f04034b, 0x7f04034c, 0x7f04034d };
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, 0x0101009a, 0x0101009b, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x010103ac, 0x7f04018b, 0x7f04031e };
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_textColorHint = 4;
public static final int TextAppearance_android_textColorLink = 5;
public static final int TextAppearance_android_shadowColor = 6;
public static final int TextAppearance_android_shadowDx = 7;
public static final int TextAppearance_android_shadowDy = 8;
public static final int TextAppearance_android_shadowRadius = 9;
public static final int TextAppearance_android_fontFamily = 10;
public static final int TextAppearance_fontFamily = 11;
public static final int TextAppearance_textAllCaps = 12;
public static final int[] Toolbar = { 0x010100af, 0x01010140, 0x7f040099, 0x7f0400ef, 0x7f0400f0, 0x7f040104, 0x7f040105, 0x7f040106, 0x7f040107, 0x7f040108, 0x7f040109, 0x7f040217, 0x7f040218, 0x7f040224, 0x7f04023a, 0x7f04023b, 0x7f04026f, 0x7f0402cf, 0x7f0402d0, 0x7f0402d1, 0x7f040336, 0x7f040338, 0x7f040339, 0x7f04033a, 0x7f04033b, 0x7f04033c, 0x7f04033d, 0x7f04033e, 0x7f04033f };
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, 0x7f040259, 0x7f04025a, 0x7f04032c };
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, 0x7f040063, 0x7f040064 };
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;
}
}
| [
"[email protected]"
] | |
c232e35cdbae60c15af236f2c5e8352e278bab9e | 605c28cc4d7ffd35583f6aba8cc58c7068f237e2 | /src/com/dxjr/portal/webservice/client/identifier/nciic/QueryBalance.java | 040cc3b0c4a001a9bebe087ab0b2321ea10e2e23 | [] | no_license | Lwb6666/dxjr_portal | 7ffb56c79f0bd07a39ac94f30b2280f7cc98a2e4 | cceef6ee83d711988e9d1340f682e0782e392ba0 | refs/heads/master | 2023-04-21T07:38:25.528219 | 2021-05-10T02:47:22 | 2021-05-10T02:47:22 | 351,003,513 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,478 | java |
package com.dxjr.portal.webservice.client.identifier.nciic;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>anonymous complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="request" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="cred" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"request",
"cred"
})
@XmlRootElement(name = "QueryBalance")
public class QueryBalance {
@XmlElementRef(name = "request", namespace = "http://www.nciic.com.cn", type = JAXBElement.class, required = false)
protected JAXBElement<String> request;
@XmlElementRef(name = "cred", namespace = "http://www.nciic.com.cn", type = JAXBElement.class, required = false)
protected JAXBElement<String> cred;
/**
* 获取request属性的值。
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement<String> getRequest() {
return request;
}
/**
* 设置request属性的值。
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setRequest(JAXBElement<String> value) {
this.request = value;
}
/**
* 获取cred属性的值。
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement<String> getCred() {
return cred;
}
/**
* 设置cred属性的值。
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setCred(JAXBElement<String> value) {
this.cred = value;
}
}
| [
"[email protected]"
] | |
6c0f053d8f0fef78be16d7fde906c12560570f24 | f387f301a42590965265ab0ee45c60ba59dcbd73 | /coffeshop/src/Abstract/CustomerCheckService.java | ecd7cf0ac6f63a6a181991255102e467729611eb | [] | no_license | esraakocak/JavaCamp | ef1910918e16a522071eb6e43d4bac1b347a7571 | 8b2cb78782f274c48c45a78fbe17bb544a77316e | refs/heads/master | 2023-05-15T21:55:26.384995 | 2021-06-13T19:10:56 | 2021-06-13T19:10:56 | 364,381,662 | 2 | 2 | null | 2021-06-16T17:49:15 | 2021-05-04T20:45:17 | Java | UTF-8 | Java | false | false | 146 | java | package Abstract;
import Entities.Customer;
public interface CustomerCheckService {
boolean CheckPerson(Customer customer) ;
}
| [
"[email protected]"
] | |
d7693e7c69e8363ccc76f46c856b6680acb68f5c | aeef2494b283012ed619870c4275e7d015f4017a | /sdk/java/src/main/java/com/pulumi/gcp/compute/inputs/DiskSourceImageEncryptionKeyArgs.java | f4a45de987680cfb1f0b731ea86e122bd753081d | [
"BSD-3-Clause",
"MPL-2.0",
"Apache-2.0"
] | permissive | pulumi/pulumi-gcp | d4fd3f80c3df5290edaf33eb5eafe34e6699d0ff | 7deea0a50a4ee5ab7bd722a83eca01707e298f85 | refs/heads/master | 2023-08-31T07:12:45.921522 | 2023-08-31T06:16:27 | 2023-08-31T06:16:27 | 97,485,806 | 160 | 63 | Apache-2.0 | 2023-09-14T19:49:36 | 2017-07-17T14:28:37 | Java | UTF-8 | Java | false | false | 8,158 | java | // *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.gcp.compute.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class DiskSourceImageEncryptionKeyArgs extends com.pulumi.resources.ResourceArgs {
public static final DiskSourceImageEncryptionKeyArgs Empty = new DiskSourceImageEncryptionKeyArgs();
/**
* The self link of the encryption key used to encrypt the disk. Also called KmsKeyName
* in the cloud console. Your project's Compute Engine System service account
* (`service-{{PROJECT_NUMBER}}@compute-system.iam.gserviceaccount.com`) must have
* `roles/cloudkms.cryptoKeyEncrypterDecrypter` to use this feature.
* See https://cloud.google.com/compute/docs/disks/customer-managed-encryption#encrypt_a_new_persistent_disk_with_your_own_keys
*
*/
@Import(name="kmsKeySelfLink")
private @Nullable Output<String> kmsKeySelfLink;
/**
* @return The self link of the encryption key used to encrypt the disk. Also called KmsKeyName
* in the cloud console. Your project's Compute Engine System service account
* (`service-{{PROJECT_NUMBER}}@compute-system.iam.gserviceaccount.com`) must have
* `roles/cloudkms.cryptoKeyEncrypterDecrypter` to use this feature.
* See https://cloud.google.com/compute/docs/disks/customer-managed-encryption#encrypt_a_new_persistent_disk_with_your_own_keys
*
*/
public Optional<Output<String>> kmsKeySelfLink() {
return Optional.ofNullable(this.kmsKeySelfLink);
}
/**
* The service account used for the encryption request for the given KMS key.
* If absent, the Compute Engine Service Agent service account is used.
*
*/
@Import(name="kmsKeyServiceAccount")
private @Nullable Output<String> kmsKeyServiceAccount;
/**
* @return The service account used for the encryption request for the given KMS key.
* If absent, the Compute Engine Service Agent service account is used.
*
*/
public Optional<Output<String>> kmsKeyServiceAccount() {
return Optional.ofNullable(this.kmsKeyServiceAccount);
}
/**
* Specifies a 256-bit customer-supplied encryption key, encoded in
* RFC 4648 base64 to either encrypt or decrypt this resource.
*
*/
@Import(name="rawKey")
private @Nullable Output<String> rawKey;
/**
* @return Specifies a 256-bit customer-supplied encryption key, encoded in
* RFC 4648 base64 to either encrypt or decrypt this resource.
*
*/
public Optional<Output<String>> rawKey() {
return Optional.ofNullable(this.rawKey);
}
/**
* (Output)
* The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied
* encryption key that protects this resource.
*
*/
@Import(name="sha256")
private @Nullable Output<String> sha256;
/**
* @return (Output)
* The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied
* encryption key that protects this resource.
*
*/
public Optional<Output<String>> sha256() {
return Optional.ofNullable(this.sha256);
}
private DiskSourceImageEncryptionKeyArgs() {}
private DiskSourceImageEncryptionKeyArgs(DiskSourceImageEncryptionKeyArgs $) {
this.kmsKeySelfLink = $.kmsKeySelfLink;
this.kmsKeyServiceAccount = $.kmsKeyServiceAccount;
this.rawKey = $.rawKey;
this.sha256 = $.sha256;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DiskSourceImageEncryptionKeyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private DiskSourceImageEncryptionKeyArgs $;
public Builder() {
$ = new DiskSourceImageEncryptionKeyArgs();
}
public Builder(DiskSourceImageEncryptionKeyArgs defaults) {
$ = new DiskSourceImageEncryptionKeyArgs(Objects.requireNonNull(defaults));
}
/**
* @param kmsKeySelfLink The self link of the encryption key used to encrypt the disk. Also called KmsKeyName
* in the cloud console. Your project's Compute Engine System service account
* (`service-{{PROJECT_NUMBER}}@compute-system.iam.gserviceaccount.com`) must have
* `roles/cloudkms.cryptoKeyEncrypterDecrypter` to use this feature.
* See https://cloud.google.com/compute/docs/disks/customer-managed-encryption#encrypt_a_new_persistent_disk_with_your_own_keys
*
* @return builder
*
*/
public Builder kmsKeySelfLink(@Nullable Output<String> kmsKeySelfLink) {
$.kmsKeySelfLink = kmsKeySelfLink;
return this;
}
/**
* @param kmsKeySelfLink The self link of the encryption key used to encrypt the disk. Also called KmsKeyName
* in the cloud console. Your project's Compute Engine System service account
* (`service-{{PROJECT_NUMBER}}@compute-system.iam.gserviceaccount.com`) must have
* `roles/cloudkms.cryptoKeyEncrypterDecrypter` to use this feature.
* See https://cloud.google.com/compute/docs/disks/customer-managed-encryption#encrypt_a_new_persistent_disk_with_your_own_keys
*
* @return builder
*
*/
public Builder kmsKeySelfLink(String kmsKeySelfLink) {
return kmsKeySelfLink(Output.of(kmsKeySelfLink));
}
/**
* @param kmsKeyServiceAccount The service account used for the encryption request for the given KMS key.
* If absent, the Compute Engine Service Agent service account is used.
*
* @return builder
*
*/
public Builder kmsKeyServiceAccount(@Nullable Output<String> kmsKeyServiceAccount) {
$.kmsKeyServiceAccount = kmsKeyServiceAccount;
return this;
}
/**
* @param kmsKeyServiceAccount The service account used for the encryption request for the given KMS key.
* If absent, the Compute Engine Service Agent service account is used.
*
* @return builder
*
*/
public Builder kmsKeyServiceAccount(String kmsKeyServiceAccount) {
return kmsKeyServiceAccount(Output.of(kmsKeyServiceAccount));
}
/**
* @param rawKey Specifies a 256-bit customer-supplied encryption key, encoded in
* RFC 4648 base64 to either encrypt or decrypt this resource.
*
* @return builder
*
*/
public Builder rawKey(@Nullable Output<String> rawKey) {
$.rawKey = rawKey;
return this;
}
/**
* @param rawKey Specifies a 256-bit customer-supplied encryption key, encoded in
* RFC 4648 base64 to either encrypt or decrypt this resource.
*
* @return builder
*
*/
public Builder rawKey(String rawKey) {
return rawKey(Output.of(rawKey));
}
/**
* @param sha256 (Output)
* The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied
* encryption key that protects this resource.
*
* @return builder
*
*/
public Builder sha256(@Nullable Output<String> sha256) {
$.sha256 = sha256;
return this;
}
/**
* @param sha256 (Output)
* The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied
* encryption key that protects this resource.
*
* @return builder
*
*/
public Builder sha256(String sha256) {
return sha256(Output.of(sha256));
}
public DiskSourceImageEncryptionKeyArgs build() {
return $;
}
}
}
| [
"[email protected]"
] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.