blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 410 | content_id stringlengths 40 40 | detected_licenses listlengths 0 51 | license_type stringclasses 2 values | repo_name stringlengths 5 132 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 80 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 132 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 3 9.45M | extension stringclasses 28 values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 352 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b58382529a640ccdc5224fad523f4b4e8ba38ac2 | 927a79e515892662d4a42572184b7b67cc830bd2 | /web/src/main/java/com/school/utils/StrFormatter.java | 32156b71a3a4becd2467d3e205df8531c940ab70 | [] | no_license | adlin2019/schoolserver | 072405f7352e99fc7b76c665969cea5ac50e0e3d | 8a0c14019e4ffd8160409d26d217a0b10225d4c3 | refs/heads/master | 2023-08-04T05:23:24.362565 | 2021-09-10T08:09:17 | 2021-09-10T08:09:17 | 401,086,913 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,476 | java | package com.school.utils;
import com.school.utils.StringUtils;
/**
* 字符串格式化
*
* @author ruoyi
*/
public class StrFormatter {
public static final String EMPTY_JSON = "{}";
public static final char C_BACKSLASH = '\\';
public static final char C_DELIM_START = '{';
public static final char C_DELIM_END = '}';
/**
* 格式化字符串<br>
* 此方法只是简单将占位符 {} 按照顺序替换为参数<br>
* 如果想输出 {} 使用 \\转义 { 即可,如果想输出 {} 之前的 \ 使用双转义符 \\\\ 即可<br>
* 例:<br>
* 通常使用:format("this is {} for {}", "a", "b") -> this is a for b<br>
* 转义{}: format("this is \\{} for {}", "a", "b") -> this is \{} for a<br>
* 转义\: format("this is \\\\{} for {}", "a", "b") -> this is \a for b<br>
*
* @param strPattern 字符串模板
* @param argArray 参数列表
* @return 结果
*/
public static String format(final String strPattern, final Object... argArray)
{
if (StringUtils.isEmpty(strPattern) || StringUtils.isEmpty(argArray))
{
return strPattern;
}
final int strPatternLength = strPattern.length();
// 初始化定义好的长度以获得更好的性能
StringBuilder sbuf = new StringBuilder(strPatternLength + 50);
int handledPosition = 0;
int delimIndex;// 占位符所在位置
for (int argIndex = 0; argIndex < argArray.length; argIndex++)
{
delimIndex = strPattern.indexOf(EMPTY_JSON, handledPosition);
if (delimIndex == -1)
{
if (handledPosition == 0)
{
return strPattern;
}
else
{ // 字符串模板剩余部分不再包含占位符,加入剩余部分后返回结果
sbuf.append(strPattern, handledPosition, strPatternLength);
return sbuf.toString();
}
}
else
{
if (delimIndex > 0 && strPattern.charAt(delimIndex - 1) == C_BACKSLASH)
{
if (delimIndex > 1 && strPattern.charAt(delimIndex - 2) == C_BACKSLASH)
{
// 转义符之前还有一个转义符,占位符依旧有效
sbuf.append(strPattern, handledPosition, delimIndex - 1);
sbuf.append(Convert.utf8Str(argArray[argIndex]));
handledPosition = delimIndex + 2;
}
else
{
// 占位符被转义
argIndex--;
sbuf.append(strPattern, handledPosition, delimIndex - 1);
sbuf.append(C_DELIM_START);
handledPosition = delimIndex + 1;
}
}
else
{
// 正常占位符
sbuf.append(strPattern, handledPosition, delimIndex);
sbuf.append(Convert.utf8Str(argArray[argIndex]));
handledPosition = delimIndex + 2;
}
}
}
// 加入最后一个占位符后所有的字符
sbuf.append(strPattern, handledPosition, strPattern.length());
return sbuf.toString();
}
}
| [
"812080203@qq.com"
] | 812080203@qq.com |
c5ba17896e4014a0343450b9d3746ff30791d3cf | 3b8fcc9fb93606aa460a3815a6131888b915b0b7 | /src/parser/AstNode.java | 755b9b5d8356b53e4bf7b656294fe217edc6a3bd | [
"MIT"
] | permissive | mklinik/compiler-construction-werkcollege-java | 9b22890c7ad3ff6b90ee3ef423f2c7bc8b296ce2 | 0cf331b636b8d223bcc0b3a7fb12d0117928b01f | refs/heads/master | 2021-04-29T16:30:26.525075 | 2018-03-26T15:08:31 | 2018-03-26T15:08:31 | 121,651,466 | 0 | 1 | MIT | 2018-03-11T15:15:31 | 2018-02-15T16:20:10 | Java | UTF-8 | Java | false | false | 269 | java | package parser;
import typechecker.Type;
import util.Visitor;
public abstract class AstNode {
private Type type = null;
public Type getType() {
return type;
}
public void setType(Type type) {
this.type = type;
}
public abstract void accept(Visitor v);
}
| [
"mkl@lambdanaut.net"
] | mkl@lambdanaut.net |
4148cd1f37aea6bd82a1101928e0a17a551bc758 | cc5f525525070c785c2470ff2b30d9f5cd859cf8 | /src/app/command/CMDAddShape.java | 0c5dd8ff6251d0e5923bdf50893a58a3a7a48a17 | [] | no_license | sladjapopadic/PaintDO | d629cba1b1943689d1da1746decbfa18b0a2f692 | f2d1707a241c1d18f9d69b76b4dd8f7d3cc285d6 | refs/heads/master | 2020-09-06T21:25:37.665522 | 2019-11-08T23:41:17 | 2019-11-08T23:41:17 | 220,557,486 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 524 | java | package app.command;
import app.mvc.AppModel;
import geometry.Shape;
public class CMDAddShape implements Command{
private static final long serialVersionUID = 1L;
private AppModel model;
private Shape shape;
public CMDAddShape(AppModel model, Shape shape) {
this.model = model;
this.shape = shape;
}
@Override
public void execute() {
model.add(shape);
}
@Override
public void unexecute() {
model.remove(shape);
}
@Override
public String toString() {
return "add:" + shape.toString();
}
}
| [
"32782130+sladjapopadic@users.noreply.github.com"
] | 32782130+sladjapopadic@users.noreply.github.com |
8f586f254168d0eb3f831d3c6f5d7a87493e8690 | b09abc5c601569de9739959c27a88aef2813688e | /SeleniumWebmanager/src/test/java/deep/parameter/TestNG_parameterDemo.java | 3f36cc5b7fb44cde5cdc049cae73d2c8690f5874 | [] | no_license | dilipdire/SeleniumStep_by_Step | a5bd8f74dc823ea66d36cad5f36ccc882c2e52a1 | 5d0f5e43d5bb8460f72710521793d99bf75fcbe7 | refs/heads/master | 2023-08-23T13:08:37.537886 | 2021-10-13T02:35:34 | 2021-10-13T02:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 316 | java | package deep.parameter;
import org.testng.annotations.Optional;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
public class TestNG_parameterDemo {
@Test
@Parameters({"Myname"})
public void test(@Optional String name)
{
System.out.println("name "+name);
}
}
| [
"Dilip Kumar@192.168.0.7"
] | Dilip Kumar@192.168.0.7 |
3d0a1a6a537a4ad58856b13804fea608e5b73fb6 | 934a8d7d5a7e3dc0700ef32ca21e90b5d75f0ae7 | /src/main/java/com/xiezhaoxin/test/EclEmmaTest.java | b1d747f3054cd433d7f1dbbcde8eca4fe5f01821 | [] | no_license | xiezhaoxin/exercise | 6925f347a7cc09ea4c898b4c9ec92e06b62ca02a | 713f1c3bbd8233e42e282b40fbba532cb429ef67 | refs/heads/master | 2021-01-17T14:57:27.375875 | 2016-03-07T02:29:10 | 2016-03-07T02:29:10 | 53,289,101 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 873 | java | package com.xiezhaoxin.test;
import org.junit.Test;
public class EclEmmaTest {
@Test
public void testA(){
TestA a = new TestA();
a.aaa();
}
// @Test
// public void myWordsTest(){
// System.out.println(new Date().getTime());
// int i = 0;
// int j = 0;
// int k = 0;
//
// i = i << 5;
// i += 8;
//
// j = j << 5;
// j += 31;
//
// k = k << 5;
// k += 16;
//
// System.out.println(i);
// System.out.println(Integer.toHexString(i));
// System.out.println(Integer.toBinaryString(i));
//
// System.out.println(j);
// System.out.println(Integer.toHexString(j));
// System.out.println(Integer.toBinaryString(j));
//
// System.out.println(k);
// System.out.println(Integer.toHexString(k));
// System.out.println(Integer.toBinaryString(k));
// System.out.println(new Date().getTime());
// }
}
| [
"xiezhaoxin@outlook.com"
] | xiezhaoxin@outlook.com |
d26b137e478426a264b36403de5fa1eabf136288 | 3b9816e0a3d7e3eb4b7d0427bd3519de004c9c10 | /src/main/java/com/maven/hello/App.java | 79d06abb26ebd6eb290fd91c0b48bacf584b91ae | [] | no_license | Balajihockey/hello | a9b3dfa2cb0ab0e0ca1cdcebe1d05dcc00e8e6eb | b1b7040416fd29c8f5d95d50878b598f6f3f9a6f | refs/heads/main | 2023-02-12T09:00:03.891488 | 2021-01-09T12:17:07 | 2021-01-09T12:17:07 | 328,147,038 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 178 | java | package com.maven.hello;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
| [
"minibala33@gmail.com"
] | minibala33@gmail.com |
678402a5a0348d33a5057075be908fe3451adcef | d7b57ef0c06806e1f96ad1280cb63d993cc3ba4c | /src/Ex3ArrayZigZag.java | 737755fa465a629da0e9dd5d031bb52e9583808f | [] | no_license | Aethernite/Softuni-Technology-Fundamentals | 3875711b6b59d96dc6b1aefad9459aa185f8a5a1 | 3405945539b4af3fcbedc04917f35e40d8e9a538 | refs/heads/master | 2021-10-22T11:24:33.402583 | 2019-03-10T08:29:31 | 2019-03-10T08:29:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 740 | java | import java.util.Scanner;
public class Ex3ArrayZigZag {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.nextLine());
int[] arr = new int[n];
int[] arr2 = new int[n];
for(int i=0; i<n; i++){
if(i%2==0) {
arr2[i] = scanner.nextInt();
arr[i] = scanner.nextInt();
} else{
arr[i] = scanner.nextInt();
arr2[i] = scanner.nextInt();
}
}
for(int i: arr2){
System.out.print(i + " ");
}
System.out.println();
for(int i: arr){
System.out.print(i + " ");
}
}
}
| [
"b.arangelov@mail.bg"
] | b.arangelov@mail.bg |
669a032be270aa880a2f799919861fe9f9f12ed6 | 1671d87c2e414de8186570983c65c220888f20b1 | /第一阶段/Spring2/src/com/atguigu/test/TestSpring.java | 5efe704c1f013f2477608d367398f29e8d7c8c07 | [] | no_license | qisirendexudoudou/BigData_0722 | 4f25b508b4c20088d4155abb2d52e1d39c8b0e81 | e474e6ebcbbfedd12f859f0198238f58b73e5bec | refs/heads/master | 2022-07-21T17:41:47.611707 | 2019-11-16T05:59:11 | 2019-11-16T05:59:11 | 221,875,869 | 0 | 0 | null | 2022-06-21T02:14:43 | 2019-11-15T08:10:07 | Java | UTF-8 | Java | false | false | 2,042 | java | package com.atguigu.test;
import static org.junit.Assert.*;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.atguigu.entity.User;
public class TestSpring {
/*
* 1. 容器中的对象 是什么时候创建的?
* 对象是随着容器的创建而创建!一个<bean>只会创建一个对象。默认是单例模式!
*
* 2. getBean(): 从容器中取出对象
* getBean(String id): 取出后,需要手动进行类型转换
* getBean(Class T): 取出后,无需进行类型转换
* 前提: 保证容器中只有唯一此类型的对象
*
* getBean(String id,Class T):
* 3. 常见错误:
* NoSuchBeanDefinitionException: No bean named 'user' is defined : 容器中没有指定id的对象
* NoUniqueBeanDefinitionException: No qualifying bean of type [com.atguigu.entity.User] is defined:
* expected single matching bean but found 2: user1,user2
* 使用类型从容器中取出对象时,发生了歧义(容器中有多个此类型)
*
* 4. 为对象赋值
* 常用:使用<property>标签赋值
* 赋值的类型:
* 字面量: 从字面上就知道数据是什么样的!
* 8种基本数据类型及其包装类+String
* 在<property>标签中,使用value属性或<value>赋值
* 自定义的引用数据类型:
* 在<property>标签中,使用ref属性或<ref>赋值
*
* null:<null>
*
*
*
*
*
*
*/
@Test
public void test() {
// 先获取指定的容器
ApplicationContext context=new ClassPathXmlApplicationContext("helloworld.xml");
// 从容器中获取想要的对象
User bean = (User) context.getBean("user1");
//User user = context.getBean(User.class);
User user = context.getBean("user1", User.class);
//System.out.println(user.getPassword()==null);
System.out.println(user);
}
}
| [
"546223079@qq.com"
] | 546223079@qq.com |
778f9319277cdb3e31f3b68d4473ac41f272addf | 1f9baaa9d5ae5d31a68f8958421192b287338439 | /app/src/main/java/ci/ws/Models/entities/CIApisStateEntity.java | 9cb93cc2fd03695da5365fea6d301d24bdaf2e6d | [] | no_license | TkWu/CAL_live_code-1 | 538dde0ce66825026ef01d3fadfcbf4d6e4b1dd0 | ba30ccfd8056b9cc3045b8e06e8dc60b654c1e55 | refs/heads/master | 2020-08-29T09:16:35.600796 | 2019-10-23T06:46:53 | 2019-10-23T06:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 250 | java | package ci.ws.Models.entities;
import com.google.gson.annotations.Expose;
/**
* Created by joannyang on 16/6/1.
*/
public class CIApisStateEntity implements Cloneable {
@Expose
public String code;
@Expose
public String name;
}
| [
"s2213005@gmail.com"
] | s2213005@gmail.com |
300d2730a361990ad7152be219ead8ef31cfc85d | 7fb15446b5645b7761a8ac1eee7fce8ff2bfb493 | /app/src/main/java/com/dibs/dibly/daocontroller/FollowingController.java | 74d8f117ed5fb423425968d06a67562801a16cc6 | [] | no_license | loipn1804/Dibly | 4d7d3cbf3b895b27a3244cb52df9acaade776b20 | d94e40208b90cc602812a701c6c0a77855741721 | refs/heads/master | 2020-12-31T05:09:33.182036 | 2017-04-26T14:18:44 | 2017-04-26T14:18:44 | 59,657,238 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 901 | java | package com.dibs.dibly.daocontroller;
import android.content.Context;
import com.dibs.dibly.application.MyApplication;
import java.util.List;
import greendao.Following;
import greendao.FollowingDao;
/**
* Created by USER on 7/10/2015.
*/
public class FollowingController {
private static FollowingDao getFollowingDao(Context c) {
return ((MyApplication) c.getApplicationContext()).getDaoSession().getFollowingDao();
}
public static void insert(Context context, Following following) {
getFollowingDao(context).insert(following);
}
public static List<Following> getAll(Context ctx) {
return getFollowingDao(ctx).loadAll();
}
public static void deleteByID(Context ctx, long id) {
getFollowingDao(ctx).deleteByKey(id);
}
public static void deleteAll(Context context) {
getFollowingDao(context).deleteAll();
}
}
| [
"phanngocloi1804@gmail.com"
] | phanngocloi1804@gmail.com |
b9f99bb012bf40d9c246dfc7b05dac2605b1fbee | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/16/16_ad6e673d389e5a5b5912d1b5134861925c289e97/ThingListFragment/16_ad6e673d389e5a5b5912d1b5134861925c289e97_ThingListFragment_s.java | 62d6e36b58b95e064d968cac8586cea0aee20b98 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 9,763 | java | /*
* Copyright (C) 2012 Brian Muramatsu
*
* 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.btmura.android.reddit.fragment;
import java.net.URL;
import java.util.List;
import android.app.ListFragment;
import android.app.LoaderManager.LoaderCallbacks;
import android.content.ContentValues;
import android.content.Intent;
import android.content.Loader;
import android.os.Bundle;
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.widget.AbsListView;
import android.widget.AbsListView.OnScrollListener;
import android.widget.ListView;
import com.btmura.android.reddit.R;
import com.btmura.android.reddit.activity.SidebarActivity;
import com.btmura.android.reddit.content.ThingLoader;
import com.btmura.android.reddit.data.Flag;
import com.btmura.android.reddit.data.Urls;
import com.btmura.android.reddit.entity.Subreddit;
import com.btmura.android.reddit.entity.Thing;
import com.btmura.android.reddit.provider.Provider;
import com.btmura.android.reddit.provider.Provider.Subreddits;
import com.btmura.android.reddit.widget.ThingAdapter;
public class ThingListFragment extends ListFragment implements
LoaderCallbacks<List<Thing>>,
OnScrollListener {
public static final String TAG = "ThingListFragment";
public static final int FLAG_SINGLE_CHOICE = 0x1;
private static final String ARG_SUBREDDIT = "s";
private static final String ARG_FILTER = "f";
private static final String ARG_SEARCH_QUERY = "q";
private static final String ARG_FLAGS = "l";
private static final String STATE_THING_NAME = "n";
private static final String STATE_THING_POSITION = "p";
private static final String LOADER_ARG_MORE_KEY = "m";
public interface OnThingSelectedListener {
void onThingSelected(Thing thing, int position);
int getThingBodyWidth();
}
private Subreddit subreddit;
private String query;
private ThingAdapter adapter;
private boolean scrollLoading;
public static ThingListFragment newInstance(Subreddit sr, int filter, int flags) {
ThingListFragment f = new ThingListFragment();
Bundle args = new Bundle(4);
args.putParcelable(ARG_SUBREDDIT, sr);
args.putInt(ARG_FILTER, filter);
args.putInt(ARG_FLAGS, flags);
f.setArguments(args);
return f;
}
public static ThingListFragment newSearchInstance(String query, int flags) {
ThingListFragment f = new ThingListFragment();
Bundle args = new Bundle(2);
args.putString(ARG_SEARCH_QUERY, query);
args.putInt(ARG_FLAGS, flags);
f.setArguments(args);
return f;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
subreddit = getSubreddit();
query = getSearchQuery();
adapter = new ThingAdapter(getActivity(), Subreddit.getName(subreddit), isSingleChoice());
setHasOptionsMenu(true);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = super.onCreateView(inflater, container, savedInstanceState);
ListView list = (ListView) view.findViewById(android.R.id.list);
list.setOnScrollListener(this);
return view;
}
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
String name;
int position;
if (savedInstanceState != null) {
name = savedInstanceState.getString(STATE_THING_NAME);
position = savedInstanceState.getInt(STATE_THING_POSITION);
} else {
name = null;
position = -1;
}
adapter.setSelectedThing(name, position);
adapter.setThingBodyWidth(getThingBodyWidth());
setListAdapter(adapter);
setListShown(false);
getLoaderManager().initLoader(0, null, this);
}
public Loader<List<Thing>> onCreateLoader(int id, Bundle args) {
String moreKey = args != null ? args.getString(LOADER_ARG_MORE_KEY) : null;
URL url;
if (subreddit != null) {
url = Urls.subredditUrl(subreddit, getFilter(), moreKey);
} else {
url = Urls.searchUrl(query, moreKey);
}
return new ThingLoader(getActivity().getApplicationContext(), Subreddit.getName(subreddit),
url, args != null ? adapter.getItems() : null);
}
public void onLoadFinished(Loader<List<Thing>> loader, List<Thing> things) {
scrollLoading = false;
adapter.swapData(things);
setEmptyText(getString(things != null ? R.string.empty : R.string.error));
setListShown(true);
}
public void onLoaderReset(Loader<List<Thing>> loader) {
adapter.swapData(null);
}
@Override
public void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
Thing t = adapter.getItem(position);
adapter.setSelectedThing(t.name, position);
adapter.notifyDataSetChanged();
switch (t.type) {
case Thing.TYPE_THING:
getListener().onThingSelected(adapter.getItem(position), position);
break;
}
}
public void onScrollStateChanged(AbsListView view, int scrollState) {
}
public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount,
int totalItemCount) {
if (visibleItemCount <= 0 || scrollLoading) {
return;
}
if (firstVisibleItem + visibleItemCount * 2 >= totalItemCount) {
Loader<List<Thing>> loader = getLoaderManager().getLoader(0);
if (loader != null) {
if (!adapter.isEmpty()) {
Thing t = adapter.getItem(adapter.getCount() - 1);
if (t.type == Thing.TYPE_MORE) {
scrollLoading = true;
Bundle b = new Bundle(1);
b.putString(LOADER_ARG_MORE_KEY, t.moreKey);
getLoaderManager().restartLoader(0, b, this);
}
}
}
}
}
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putString(STATE_THING_NAME, adapter.getSelectedThingName());
outState.putInt(STATE_THING_POSITION, adapter.getSelectedThingPosition());
}
public void setSelectedThing(Thing t, int position) {
String name = t != null ? t.name : null;
if (!adapter.isSelectedThing(name, position)) {
adapter.setSelectedThing(name, position);
adapter.notifyDataSetChanged();
}
}
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
super.onCreateOptionsMenu(menu, inflater);
inflater.inflate(R.menu.thing_list_menu, menu);
menu.findItem(R.id.menu_view_subreddit_sidebar).setVisible(
subreddit != null && !subreddit.isFrontPage());
}
@Override
public void onPrepareOptionsMenu(Menu menu) {
super.onPrepareOptionsMenu(menu);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.menu_add:
handleAdd();
return true;
case R.id.menu_view_subreddit_sidebar:
handleViewSidebar();
return true;
default:
return super.onOptionsItemSelected(item);
}
}
private void handleAdd() {
ContentValues values = new ContentValues(1);
values.put(Subreddits.COLUMN_NAME, getSubreddit().name);
Provider.addInBackground(getActivity(), Subreddits.CONTENT_URI, values);
}
private void handleViewSidebar() {
Intent intent = new Intent(getActivity(), SidebarActivity.class);
intent.putExtra(SidebarActivity.EXTRA_SUBREDDIT, getSubreddit());
startActivity(intent);
}
private int getThingBodyWidth() {
return getListener().getThingBodyWidth();
}
private OnThingSelectedListener getListener() {
return (OnThingSelectedListener) getActivity();
}
private Subreddit getSubreddit() {
return getArguments().getParcelable(ARG_SUBREDDIT);
}
private int getFilter() {
return getArguments().getInt(ARG_FILTER);
}
private String getSearchQuery() {
return getArguments().getString(ARG_SEARCH_QUERY);
}
private int getFlags() {
return getArguments().getInt(ARG_FLAGS);
}
private boolean isSingleChoice() {
return Flag.isEnabled(getFlags(), FLAG_SINGLE_CHOICE);
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
60ce901d85d546b9b4e32ab86aad5ff259e86fa4 | 3567d60bfc736ff40d57c02c79610c5b77032725 | /src/main/java/com/CS5500/springbootinfrastructure/view/DateLogQuery.java | 1e89b891f89a6bcfd706cc1566f6028895cbba90 | [
"MIT"
] | permissive | Ivor808/CS5500-Project | ad301ace56d0f983c64e1f5add082d91ad95dcba | 9b5c06428de10aa21c25f31a5eebff5d13397647 | refs/heads/main | 2023-07-10T23:28:00.761619 | 2021-08-20T00:32:06 | 2021-08-20T00:32:06 | 373,665,420 | 0 | 0 | null | 2021-08-11T18:38:50 | 2021-06-03T23:13:44 | Java | UTF-8 | Java | false | false | 363 | java | package com.CS5500.springbootinfrastructure.view;
import com.CS5500.springbootinfrastructure.parser.DataFormatterImpl;
import java.sql.Timestamp;
public class DateLogQuery {
public static void main(String[] args) {
Timestamp t = new DataFormatterImpl().convertTimestamp("20130209T185023-0800");
System.out.println(t.toString());
}
}
| [
"kulkarni.akash@gmail.com"
] | kulkarni.akash@gmail.com |
20668fc332db42b9ec90d57d97a65cc9f6a4ce36 | b479e6a04d5141936975c5c1aa8705b038c279d5 | /src/java/controlador/UbicacionServices.java | 48a3e7d8c46c1c150a546a4f1f1dfe486d7b054d | [] | no_license | alexv96/DE4504---Examen | 138cbe2b53ca15507857b64aa46b1bcaaea42a42 | 2588629d0a6d7b21d24abdc18a43b3a0ad9697de | refs/heads/master | 2021-03-30T13:38:22.522895 | 2020-03-19T01:40:01 | 2020-03-19T01:40:01 | 248,060,264 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 587 | 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 controlador;
import DAO.UbicacionDAO;
import modelo.Carretera;
import modelo.Ubicacion;
/**
*
* @author Alex
*/
public class UbicacionServices {
UbicacionDAO dao;
public UbicacionServices() {
this.dao = new UbicacionDAO();
}
public Carretera buscarUbicacionCarretera(int id){
return dao.getUbicacion(id);
}
}
| [
"alex.antoniovalenzuelai@gmail.com"
] | alex.antoniovalenzuelai@gmail.com |
ac1164f9c7bc563cae316e1c4ac1bcf8b134bbcd | 7d35c7f927de649dc15a9600fdfa15e7a177f4f6 | /src/test/java/com/bridgelabz/converter/unitconverter/UnitconverterApplicationTests.java | 8400fc93bb19632026c92c821f65f04b72c7efd9 | [] | no_license | AvatarMalekar/QUANTITY-MEASUREMENT-SPRING-API-2 | 74b5e61635dd2cd5829b216374e240255206422b | 9b1f4bcd05e634311467ea7b47fa8939dafd79e1 | refs/heads/master | 2022-04-23T14:01:53.830102 | 2020-04-18T07:59:16 | 2020-04-18T07:59:16 | 255,959,436 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 950 | java | package com.bridgelabz.converter.unitconverter;
import com.bridgelabz.converter.unitconverter.enumration.UnitConverterEnum;
import com.bridgelabz.converter.unitconverter.service.IUnitConverterService;
import org.assertj.core.api.Assert;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.Arrays;
import java.util.List;
@SpringBootTest
class UnitconverterApplicationTests {
@Autowired
IUnitConverterService iUnitConverterService;
@Test
void givenUnitTypeList_WhenCorrect_ShouldReturnTrue() {
List<UnitConverterEnum> checkList= Arrays.asList(UnitConverterEnum.values());
List<UnitConverterEnum> actualList=iUnitConverterService.getAllUnits();
Assertions.assertEquals(checkList,actualList);
}
@Test
void contextLoads() {
}
}
| [
"avatarmalekar4@gmailcom"
] | avatarmalekar4@gmailcom |
1398f22ea2d1c3262b42da35e0385dff6cf81b15 | f6190666e6fda3e017b6be3ee1cb14ec7a11a1be | /src/main/java/uz/pdp/online/helper/GsonUserHelper.java | b50709909cfddeaa549e0a4c05dab98dad37812f | [] | no_license | Muhammad0224/MiniInternetMagazine | f076a7e3be0d91a133150e7dcb00559dd2d6d1b8 | 7add03feff69dbd1b1ccc77a4a720ad18234f488 | refs/heads/master | 2023-07-15T05:58:50.428927 | 2021-08-31T16:51:12 | 2021-08-31T16:51:12 | 401,777,602 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 860 | java | package uz.pdp.online.helper;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import uz.pdp.online.model.Goods;
import uz.pdp.online.model.User;
import uz.pdp.online.service.GsonToList;
import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class GsonUserHelper {
Gson gson = new GsonBuilder().setPrettyPrinting().create();
public List<User> converter(Reader reader, File file) {
// Type listType = new TypeToken<ArrayList<T>>(){}.getType();
try (BufferedReader bufferedReader = new BufferedReader(new FileReader(file))) {
return new ArrayList<>(Arrays.asList(gson.fromJson(bufferedReader, User[].class)));
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
}
| [
"murtazayevmuhammad@gmail.com"
] | murtazayevmuhammad@gmail.com |
815b9bfc126a76ff55e49f292868fe708a116c67 | 5b2c309c903625b14991568c442eb3a889762c71 | /classes/com/xueqiu/android/trade/model/SnowxTraderConfigItem.java | b383ded94b79436f8c3cf6aeb590ba06588f47e7 | [] | no_license | iidioter/xueqiu | c71eb4bcc53480770b9abe20c180da693b2d7946 | a7d8d7dfbaf9e603f72890cf861ed494099f5a80 | refs/heads/master | 2020-12-14T23:55:07.246659 | 2016-10-08T08:56:27 | 2016-10-08T08:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 914 | java | package com.xueqiu.android.trade.model;
import com.google.gson.annotations.Expose;
public class SnowxTraderConfigItem
{
@Expose
private String configMessage;
@Expose
private String configValue;
@Expose
private String tid;
public String getConfigMessage()
{
return this.configMessage;
}
public String getConfigValue()
{
return this.configValue;
}
public String getTid()
{
return this.tid;
}
public void setConfigMessage(String paramString)
{
this.configMessage = paramString;
}
public void setConfigValue(String paramString)
{
this.configValue = paramString;
}
public void setTid(String paramString)
{
this.tid = paramString;
}
}
/* Location: E:\apk\xueqiu2\classes-dex2jar.jar!\com\xueqiu\android\trade\model\SnowxTraderConfigItem.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/ | [
"1776098770@qq.com"
] | 1776098770@qq.com |
99502c158df0cbc7febb6d06b252e1ed5bc6ed47 | 5d2a0f937f4e028d28cb366a1a78f356f8574867 | /src/main/java/project/spring/data/dao/InterfaceSpringDataUser.java | 0d29e023e7d400d463e64eec613089a137f5d840 | [] | no_license | EderCamposRibeiro/project-spring-data | 36fe56b1b00aebe246569eb718f84595ddf54218 | b8098b56a99eb6fb921fee26ca988ba80167f0e5 | refs/heads/master | 2022-12-25T19:26:58.288039 | 2020-10-11T13:00:52 | 2020-10-11T13:00:52 | 302,047,204 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,443 | java | package project.spring.data.dao;
import java.util.List;
import javax.persistence.LockModeType;
import org.springframework.data.jpa.repository.Lock;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import project.spring.data.model.UserSpringData;
@Repository
public interface InterfaceSpringDataUser extends CrudRepository<UserSpringData, Long> {
@Transactional(readOnly = true)
@Query(value = "select p from UserSpringData p where p.name like %?1%")
public List<UserSpringData> findByName (String name);
@Lock(LockModeType.READ)
@Transactional(readOnly = true)
@Query(value = "select p from UserSpringData p where p.name = :paramname")
public UserSpringData findByNameParam(@Param("paramname") String paramname);
default <S extends UserSpringData> S saveActual(S entity) {
// Do the process that you want!
return save(entity);
}
@Modifying
@Transactional
@Query("delete from UserSpringData p where p.name = ?1")
public void deleteByName(String name);
@Modifying
@Transactional
@Query("update UserSpringData p set p.email = ?1 where p.name = ?2")
public void updateEmailByName(String email, String name);
}
| [
"edercribeiro@gmail.com"
] | edercribeiro@gmail.com |
38e5eb640ae63771b650b3d8db72d63b83ed811a | 30533228f1ed42590dcd87c5ef424fef82aa18a3 | /movieapp/src/main/java/com/hoangmn/config/JwtRequestFilter.java | 204776e096c454f5ecd05735f538f2656e74efda | [] | no_license | thayhoang/react-movie | ced269fc7aa32f6938fb7bcb5b2cf63ad32d0581 | 9e6666e92950dcfbb0846fbfb19235299edf06e4 | refs/heads/master | 2023-02-10T02:11:37.297088 | 2020-05-12T17:14:58 | 2020-05-12T17:14:58 | 263,401,301 | 0 | 0 | null | 2021-01-06T02:29:36 | 2020-05-12T17:11:36 | Java | UTF-8 | Java | false | false | 2,482 | java | package com.hoangmn.config;
import com.hoangmn.service.UserDetailsServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.web.authentication.WebAuthenticationDetailsSource;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;
import org.springframework.web.filter.OncePerRequestFilter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@Component
public class JwtRequestFilter extends OncePerRequestFilter {
private static final Logger logger = LoggerFactory.getLogger(JwtRequestFilter.class);
@Autowired
private JwtUtils jwtUtils;
@Autowired
private UserDetailsServiceImpl userDetailsService;
@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
throws ServletException, IOException {
try {
String jwt = parseJwt(request);
if (jwt != null && jwtUtils.validateJwtToken(jwt)) {
String username = jwtUtils.getUserNameFromJwtToken(jwt);
UserDetails userDetails = userDetailsService.loadUserByUsername(username);
UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(
userDetails, null, userDetails.getAuthorities());
authentication.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));
SecurityContextHolder.getContext().setAuthentication(authentication);
}
} catch (Exception e) {
logger.error("Cannot set user authentication: {}", e);
}
filterChain.doFilter(request, response);
}
private String parseJwt(HttpServletRequest request) {
String headerAuth = request.getHeader("Authorization");
if (StringUtils.hasText(headerAuth) && headerAuth.startsWith("Bearer ")) {
return headerAuth.substring(7, headerAuth.length());
}
return null;
}
}
| [
"minhhoange10cn@gmail.com"
] | minhhoange10cn@gmail.com |
14180e615b97c70b415f7b10a787f02679886db4 | 3636c15b123684d1ca051cac023168a03f9268db | /app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r/android/support/v7/appcompat/R.java | b7b3a9e483d224801f5befbaa0cbf49808de8345 | [] | no_license | SOUHAIBMEHEMEL/Retrofit_EXO4 | f498767ef341d843174e4fa485eb3aac440961b9 | 9936e4c0d57598c15de1c55ea7f11e58de548f3f | refs/heads/master | 2022-09-02T16:06:58.477487 | 2020-05-18T02:48:05 | 2020-05-18T02:48:05 | 263,734,468 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 120,814 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package android.support.v7.appcompat;
public final class R {
private R() {}
public static final class anim {
private 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 int abc_tooltip_enter = 0x7f01000a;
public static final int abc_tooltip_exit = 0x7f01000b;
}
public static final class attr {
private attr() {}
public static final int actionBarDivider = 0x7f020000;
public static final int actionBarItemBackground = 0x7f020001;
public static final int actionBarPopupTheme = 0x7f020002;
public static final int actionBarSize = 0x7f020003;
public static final int actionBarSplitStyle = 0x7f020004;
public static final int actionBarStyle = 0x7f020005;
public static final int actionBarTabBarStyle = 0x7f020006;
public static final int actionBarTabStyle = 0x7f020007;
public static final int actionBarTabTextStyle = 0x7f020008;
public static final int actionBarTheme = 0x7f020009;
public static final int actionBarWidgetTheme = 0x7f02000a;
public static final int actionButtonStyle = 0x7f02000b;
public static final int actionDropDownStyle = 0x7f02000c;
public static final int actionLayout = 0x7f02000d;
public static final int actionMenuTextAppearance = 0x7f02000e;
public static final int actionMenuTextColor = 0x7f02000f;
public static final int actionModeBackground = 0x7f020010;
public static final int actionModeCloseButtonStyle = 0x7f020011;
public static final int actionModeCloseDrawable = 0x7f020012;
public static final int actionModeCopyDrawable = 0x7f020013;
public static final int actionModeCutDrawable = 0x7f020014;
public static final int actionModeFindDrawable = 0x7f020015;
public static final int actionModePasteDrawable = 0x7f020016;
public static final int actionModePopupWindowStyle = 0x7f020017;
public static final int actionModeSelectAllDrawable = 0x7f020018;
public static final int actionModeShareDrawable = 0x7f020019;
public static final int actionModeSplitBackground = 0x7f02001a;
public static final int actionModeStyle = 0x7f02001b;
public static final int actionModeWebSearchDrawable = 0x7f02001c;
public static final int actionOverflowButtonStyle = 0x7f02001d;
public static final int actionOverflowMenuStyle = 0x7f02001e;
public static final int actionProviderClass = 0x7f02001f;
public static final int actionViewClass = 0x7f020020;
public static final int activityChooserViewStyle = 0x7f020021;
public static final int alertDialogButtonGroupStyle = 0x7f020022;
public static final int alertDialogCenterButtons = 0x7f020023;
public static final int alertDialogStyle = 0x7f020024;
public static final int alertDialogTheme = 0x7f020025;
public static final int allowStacking = 0x7f020026;
public static final int alpha = 0x7f020027;
public static final int alphabeticModifiers = 0x7f020028;
public static final int arrowHeadLength = 0x7f020029;
public static final int arrowShaftLength = 0x7f02002a;
public static final int autoCompleteTextViewStyle = 0x7f02002b;
public static final int autoSizeMaxTextSize = 0x7f02002c;
public static final int autoSizeMinTextSize = 0x7f02002d;
public static final int autoSizePresetSizes = 0x7f02002e;
public static final int autoSizeStepGranularity = 0x7f02002f;
public static final int autoSizeTextType = 0x7f020030;
public static final int background = 0x7f020031;
public static final int backgroundSplit = 0x7f020032;
public static final int backgroundStacked = 0x7f020033;
public static final int backgroundTint = 0x7f020034;
public static final int backgroundTintMode = 0x7f020035;
public static final int barLength = 0x7f020036;
public static final int borderlessButtonStyle = 0x7f020039;
public static final int buttonBarButtonStyle = 0x7f02003a;
public static final int buttonBarNegativeButtonStyle = 0x7f02003b;
public static final int buttonBarNeutralButtonStyle = 0x7f02003c;
public static final int buttonBarPositiveButtonStyle = 0x7f02003d;
public static final int buttonBarStyle = 0x7f02003e;
public static final int buttonGravity = 0x7f02003f;
public static final int buttonIconDimen = 0x7f020040;
public static final int buttonPanelSideLayout = 0x7f020041;
public static final int buttonStyle = 0x7f020042;
public static final int buttonStyleSmall = 0x7f020043;
public static final int buttonTint = 0x7f020044;
public static final int buttonTintMode = 0x7f020045;
public static final int checkboxStyle = 0x7f020047;
public static final int checkedTextViewStyle = 0x7f020048;
public static final int closeIcon = 0x7f020049;
public static final int closeItemLayout = 0x7f02004a;
public static final int collapseContentDescription = 0x7f02004b;
public static final int collapseIcon = 0x7f02004c;
public static final int color = 0x7f02004d;
public static final int colorAccent = 0x7f02004e;
public static final int colorBackgroundFloating = 0x7f02004f;
public static final int colorButtonNormal = 0x7f020050;
public static final int colorControlActivated = 0x7f020051;
public static final int colorControlHighlight = 0x7f020052;
public static final int colorControlNormal = 0x7f020053;
public static final int colorError = 0x7f020054;
public static final int colorPrimary = 0x7f020055;
public static final int colorPrimaryDark = 0x7f020056;
public static final int colorSwitchThumbNormal = 0x7f020057;
public static final int commitIcon = 0x7f020058;
public static final int contentDescription = 0x7f02005c;
public static final int contentInsetEnd = 0x7f02005d;
public static final int contentInsetEndWithActions = 0x7f02005e;
public static final int contentInsetLeft = 0x7f02005f;
public static final int contentInsetRight = 0x7f020060;
public static final int contentInsetStart = 0x7f020061;
public static final int contentInsetStartWithNavigation = 0x7f020062;
public static final int controlBackground = 0x7f020063;
public static final int coordinatorLayoutStyle = 0x7f020064;
public static final int customNavigationLayout = 0x7f020065;
public static final int defaultQueryHint = 0x7f020066;
public static final int dialogCornerRadius = 0x7f020067;
public static final int dialogPreferredPadding = 0x7f020068;
public static final int dialogTheme = 0x7f020069;
public static final int displayOptions = 0x7f02006a;
public static final int divider = 0x7f02006b;
public static final int dividerHorizontal = 0x7f02006c;
public static final int dividerPadding = 0x7f02006d;
public static final int dividerVertical = 0x7f02006e;
public static final int drawableSize = 0x7f02006f;
public static final int drawerArrowStyle = 0x7f020070;
public static final int dropDownListViewStyle = 0x7f020071;
public static final int dropdownListPreferredItemHeight = 0x7f020072;
public static final int editTextBackground = 0x7f020073;
public static final int editTextColor = 0x7f020074;
public static final int editTextStyle = 0x7f020075;
public static final int elevation = 0x7f020076;
public static final int expandActivityOverflowButtonDrawable = 0x7f020078;
public static final int firstBaselineToTopHeight = 0x7f020079;
public static final int font = 0x7f02007a;
public static final int fontFamily = 0x7f02007b;
public static final int fontProviderAuthority = 0x7f02007c;
public static final int fontProviderCerts = 0x7f02007d;
public static final int fontProviderFetchStrategy = 0x7f02007e;
public static final int fontProviderFetchTimeout = 0x7f02007f;
public static final int fontProviderPackage = 0x7f020080;
public static final int fontProviderQuery = 0x7f020081;
public static final int fontStyle = 0x7f020082;
public static final int fontVariationSettings = 0x7f020083;
public static final int fontWeight = 0x7f020084;
public static final int gapBetweenBars = 0x7f020085;
public static final int goIcon = 0x7f020086;
public static final int height = 0x7f020087;
public static final int hideOnContentScroll = 0x7f020088;
public static final int homeAsUpIndicator = 0x7f020089;
public static final int homeLayout = 0x7f02008a;
public static final int icon = 0x7f02008b;
public static final int iconTint = 0x7f02008c;
public static final int iconTintMode = 0x7f02008d;
public static final int iconifiedByDefault = 0x7f02008e;
public static final int imageButtonStyle = 0x7f02008f;
public static final int indeterminateProgressStyle = 0x7f020090;
public static final int initialActivityCount = 0x7f020091;
public static final int isLightTheme = 0x7f020092;
public static final int itemPadding = 0x7f020093;
public static final int keylines = 0x7f020094;
public static final int lastBaselineToBottomHeight = 0x7f020095;
public static final int layout = 0x7f020096;
public static final int layout_anchor = 0x7f020097;
public static final int layout_anchorGravity = 0x7f020098;
public static final int layout_behavior = 0x7f020099;
public static final int layout_dodgeInsetEdges = 0x7f0200c3;
public static final int layout_insetEdge = 0x7f0200cc;
public static final int layout_keyline = 0x7f0200cd;
public static final int lineHeight = 0x7f0200cf;
public static final int listChoiceBackgroundIndicator = 0x7f0200d0;
public static final int listDividerAlertDialog = 0x7f0200d1;
public static final int listItemLayout = 0x7f0200d2;
public static final int listLayout = 0x7f0200d3;
public static final int listMenuViewStyle = 0x7f0200d4;
public static final int listPopupWindowStyle = 0x7f0200d5;
public static final int listPreferredItemHeight = 0x7f0200d6;
public static final int listPreferredItemHeightLarge = 0x7f0200d7;
public static final int listPreferredItemHeightSmall = 0x7f0200d8;
public static final int listPreferredItemPaddingLeft = 0x7f0200d9;
public static final int listPreferredItemPaddingRight = 0x7f0200da;
public static final int logo = 0x7f0200db;
public static final int logoDescription = 0x7f0200dc;
public static final int maxButtonHeight = 0x7f0200dd;
public static final int measureWithLargestChild = 0x7f0200de;
public static final int multiChoiceItemLayout = 0x7f0200df;
public static final int navigationContentDescription = 0x7f0200e0;
public static final int navigationIcon = 0x7f0200e1;
public static final int navigationMode = 0x7f0200e2;
public static final int numericModifiers = 0x7f0200e3;
public static final int overlapAnchor = 0x7f0200e4;
public static final int paddingBottomNoButtons = 0x7f0200e5;
public static final int paddingEnd = 0x7f0200e6;
public static final int paddingStart = 0x7f0200e7;
public static final int paddingTopNoTitle = 0x7f0200e8;
public static final int panelBackground = 0x7f0200e9;
public static final int panelMenuListTheme = 0x7f0200ea;
public static final int panelMenuListWidth = 0x7f0200eb;
public static final int popupMenuStyle = 0x7f0200ec;
public static final int popupTheme = 0x7f0200ed;
public static final int popupWindowStyle = 0x7f0200ee;
public static final int preserveIconSpacing = 0x7f0200ef;
public static final int progressBarPadding = 0x7f0200f0;
public static final int progressBarStyle = 0x7f0200f1;
public static final int queryBackground = 0x7f0200f2;
public static final int queryHint = 0x7f0200f3;
public static final int radioButtonStyle = 0x7f0200f4;
public static final int ratingBarStyle = 0x7f0200f5;
public static final int ratingBarStyleIndicator = 0x7f0200f6;
public static final int ratingBarStyleSmall = 0x7f0200f7;
public static final int searchHintIcon = 0x7f0200f8;
public static final int searchIcon = 0x7f0200f9;
public static final int searchViewStyle = 0x7f0200fa;
public static final int seekBarStyle = 0x7f0200fb;
public static final int selectableItemBackground = 0x7f0200fc;
public static final int selectableItemBackgroundBorderless = 0x7f0200fd;
public static final int showAsAction = 0x7f0200fe;
public static final int showDividers = 0x7f0200ff;
public static final int showText = 0x7f020100;
public static final int showTitle = 0x7f020101;
public static final int singleChoiceItemLayout = 0x7f020102;
public static final int spinBars = 0x7f020103;
public static final int spinnerDropDownItemStyle = 0x7f020104;
public static final int spinnerStyle = 0x7f020105;
public static final int splitTrack = 0x7f020106;
public static final int srcCompat = 0x7f020107;
public static final int state_above_anchor = 0x7f020108;
public static final int statusBarBackground = 0x7f020109;
public static final int subMenuArrow = 0x7f02010a;
public static final int submitBackground = 0x7f02010b;
public static final int subtitle = 0x7f02010c;
public static final int subtitleTextAppearance = 0x7f02010d;
public static final int subtitleTextColor = 0x7f02010e;
public static final int subtitleTextStyle = 0x7f02010f;
public static final int suggestionRowLayout = 0x7f020110;
public static final int switchMinWidth = 0x7f020111;
public static final int switchPadding = 0x7f020112;
public static final int switchStyle = 0x7f020113;
public static final int switchTextAppearance = 0x7f020114;
public static final int textAllCaps = 0x7f020115;
public static final int textAppearanceLargePopupMenu = 0x7f020116;
public static final int textAppearanceListItem = 0x7f020117;
public static final int textAppearanceListItemSecondary = 0x7f020118;
public static final int textAppearanceListItemSmall = 0x7f020119;
public static final int textAppearancePopupMenuHeader = 0x7f02011a;
public static final int textAppearanceSearchResultSubtitle = 0x7f02011b;
public static final int textAppearanceSearchResultTitle = 0x7f02011c;
public static final int textAppearanceSmallPopupMenu = 0x7f02011d;
public static final int textColorAlertDialogListItem = 0x7f02011e;
public static final int textColorSearchUrl = 0x7f02011f;
public static final int theme = 0x7f020120;
public static final int thickness = 0x7f020121;
public static final int thumbTextPadding = 0x7f020122;
public static final int thumbTint = 0x7f020123;
public static final int thumbTintMode = 0x7f020124;
public static final int tickMark = 0x7f020125;
public static final int tickMarkTint = 0x7f020126;
public static final int tickMarkTintMode = 0x7f020127;
public static final int tint = 0x7f020128;
public static final int tintMode = 0x7f020129;
public static final int title = 0x7f02012a;
public static final int titleMargin = 0x7f02012b;
public static final int titleMarginBottom = 0x7f02012c;
public static final int titleMarginEnd = 0x7f02012d;
public static final int titleMarginStart = 0x7f02012e;
public static final int titleMarginTop = 0x7f02012f;
public static final int titleMargins = 0x7f020130;
public static final int titleTextAppearance = 0x7f020131;
public static final int titleTextColor = 0x7f020132;
public static final int titleTextStyle = 0x7f020133;
public static final int toolbarNavigationButtonStyle = 0x7f020134;
public static final int toolbarStyle = 0x7f020135;
public static final int tooltipForegroundColor = 0x7f020136;
public static final int tooltipFrameBackground = 0x7f020137;
public static final int tooltipText = 0x7f020138;
public static final int track = 0x7f020139;
public static final int trackTint = 0x7f02013a;
public static final int trackTintMode = 0x7f02013b;
public static final int ttcIndex = 0x7f02013c;
public static final int viewInflaterClass = 0x7f02013d;
public static final int voiceIcon = 0x7f02013e;
public static final int windowActionBar = 0x7f02013f;
public static final int windowActionBarOverlay = 0x7f020140;
public static final int windowActionModeOverlay = 0x7f020141;
public static final int windowFixedHeightMajor = 0x7f020142;
public static final int windowFixedHeightMinor = 0x7f020143;
public static final int windowFixedWidthMajor = 0x7f020144;
public static final int windowFixedWidthMinor = 0x7f020145;
public static final int windowMinWidthMajor = 0x7f020146;
public static final int windowMinWidthMinor = 0x7f020147;
public static final int windowNoTitle = 0x7f020148;
}
public static final class bool {
private bool() {}
public static final int abc_action_bar_embed_tabs = 0x7f030000;
public static final int abc_allow_stacked_button_bar = 0x7f030001;
public static final int abc_config_actionMenuItemAllCaps = 0x7f030002;
}
public static final class color {
private color() {}
public static final int abc_background_cache_hint_selector_material_dark = 0x7f040000;
public static final int abc_background_cache_hint_selector_material_light = 0x7f040001;
public static final int abc_btn_colored_borderless_text_material = 0x7f040002;
public static final int abc_btn_colored_text_material = 0x7f040003;
public static final int abc_color_highlight_material = 0x7f040004;
public static final int abc_hint_foreground_material_dark = 0x7f040005;
public static final int abc_hint_foreground_material_light = 0x7f040006;
public static final int abc_input_method_navigation_guard = 0x7f040007;
public static final int abc_primary_text_disable_only_material_dark = 0x7f040008;
public static final int abc_primary_text_disable_only_material_light = 0x7f040009;
public static final int abc_primary_text_material_dark = 0x7f04000a;
public static final int abc_primary_text_material_light = 0x7f04000b;
public static final int abc_search_url_text = 0x7f04000c;
public static final int abc_search_url_text_normal = 0x7f04000d;
public static final int abc_search_url_text_pressed = 0x7f04000e;
public static final int abc_search_url_text_selected = 0x7f04000f;
public static final int abc_secondary_text_material_dark = 0x7f040010;
public static final int abc_secondary_text_material_light = 0x7f040011;
public static final int abc_tint_btn_checkable = 0x7f040012;
public static final int abc_tint_default = 0x7f040013;
public static final int abc_tint_edittext = 0x7f040014;
public static final int abc_tint_seek_thumb = 0x7f040015;
public static final int abc_tint_spinner = 0x7f040016;
public static final int abc_tint_switch_track = 0x7f040017;
public static final int accent_material_dark = 0x7f040018;
public static final int accent_material_light = 0x7f040019;
public static final int background_floating_material_dark = 0x7f04001a;
public static final int background_floating_material_light = 0x7f04001b;
public static final int background_material_dark = 0x7f04001c;
public static final int background_material_light = 0x7f04001d;
public static final int bright_foreground_disabled_material_dark = 0x7f04001e;
public static final int bright_foreground_disabled_material_light = 0x7f04001f;
public static final int bright_foreground_inverse_material_dark = 0x7f040020;
public static final int bright_foreground_inverse_material_light = 0x7f040021;
public static final int bright_foreground_material_dark = 0x7f040022;
public static final int bright_foreground_material_light = 0x7f040023;
public static final int button_material_dark = 0x7f040024;
public static final int button_material_light = 0x7f040025;
public static final int dim_foreground_disabled_material_dark = 0x7f040029;
public static final int dim_foreground_disabled_material_light = 0x7f04002a;
public static final int dim_foreground_material_dark = 0x7f04002b;
public static final int dim_foreground_material_light = 0x7f04002c;
public static final int error_color_material_dark = 0x7f04002d;
public static final int error_color_material_light = 0x7f04002e;
public static final int foreground_material_dark = 0x7f04002f;
public static final int foreground_material_light = 0x7f040030;
public static final int highlighted_text_material_dark = 0x7f040031;
public static final int highlighted_text_material_light = 0x7f040032;
public static final int material_blue_grey_800 = 0x7f040033;
public static final int material_blue_grey_900 = 0x7f040034;
public static final int material_blue_grey_950 = 0x7f040035;
public static final int material_deep_teal_200 = 0x7f040036;
public static final int material_deep_teal_500 = 0x7f040037;
public static final int material_grey_100 = 0x7f040038;
public static final int material_grey_300 = 0x7f040039;
public static final int material_grey_50 = 0x7f04003a;
public static final int material_grey_600 = 0x7f04003b;
public static final int material_grey_800 = 0x7f04003c;
public static final int material_grey_850 = 0x7f04003d;
public static final int material_grey_900 = 0x7f04003e;
public static final int notification_action_color_filter = 0x7f04003f;
public static final int notification_icon_bg_color = 0x7f040040;
public static final int primary_dark_material_dark = 0x7f040041;
public static final int primary_dark_material_light = 0x7f040042;
public static final int primary_material_dark = 0x7f040043;
public static final int primary_material_light = 0x7f040044;
public static final int primary_text_default_material_dark = 0x7f040045;
public static final int primary_text_default_material_light = 0x7f040046;
public static final int primary_text_disabled_material_dark = 0x7f040047;
public static final int primary_text_disabled_material_light = 0x7f040048;
public static final int ripple_material_dark = 0x7f040049;
public static final int ripple_material_light = 0x7f04004a;
public static final int secondary_text_default_material_dark = 0x7f04004b;
public static final int secondary_text_default_material_light = 0x7f04004c;
public static final int secondary_text_disabled_material_dark = 0x7f04004d;
public static final int secondary_text_disabled_material_light = 0x7f04004e;
public static final int switch_thumb_disabled_material_dark = 0x7f04004f;
public static final int switch_thumb_disabled_material_light = 0x7f040050;
public static final int switch_thumb_material_dark = 0x7f040051;
public static final int switch_thumb_material_light = 0x7f040052;
public static final int switch_thumb_normal_material_dark = 0x7f040053;
public static final int switch_thumb_normal_material_light = 0x7f040054;
public static final int tooltip_background_dark = 0x7f040055;
public static final int tooltip_background_light = 0x7f040056;
}
public static final class dimen {
private dimen() {}
public static final int abc_action_bar_content_inset_material = 0x7f050000;
public static final int abc_action_bar_content_inset_with_nav = 0x7f050001;
public static final int abc_action_bar_default_height_material = 0x7f050002;
public static final int abc_action_bar_default_padding_end_material = 0x7f050003;
public static final int abc_action_bar_default_padding_start_material = 0x7f050004;
public static final int abc_action_bar_elevation_material = 0x7f050005;
public static final int abc_action_bar_icon_vertical_padding_material = 0x7f050006;
public static final int abc_action_bar_overflow_padding_end_material = 0x7f050007;
public static final int abc_action_bar_overflow_padding_start_material = 0x7f050008;
public static final int abc_action_bar_stacked_max_height = 0x7f050009;
public static final int abc_action_bar_stacked_tab_max_width = 0x7f05000a;
public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f05000b;
public static final int abc_action_bar_subtitle_top_margin_material = 0x7f05000c;
public static final int abc_action_button_min_height_material = 0x7f05000d;
public static final int abc_action_button_min_width_material = 0x7f05000e;
public static final int abc_action_button_min_width_overflow_material = 0x7f05000f;
public static final int abc_alert_dialog_button_bar_height = 0x7f050010;
public static final int abc_alert_dialog_button_dimen = 0x7f050011;
public static final int abc_button_inset_horizontal_material = 0x7f050012;
public static final int abc_button_inset_vertical_material = 0x7f050013;
public static final int abc_button_padding_horizontal_material = 0x7f050014;
public static final int abc_button_padding_vertical_material = 0x7f050015;
public static final int abc_cascading_menus_min_smallest_width = 0x7f050016;
public static final int abc_config_prefDialogWidth = 0x7f050017;
public static final int abc_control_corner_material = 0x7f050018;
public static final int abc_control_inset_material = 0x7f050019;
public static final int abc_control_padding_material = 0x7f05001a;
public static final int abc_dialog_corner_radius_material = 0x7f05001b;
public static final int abc_dialog_fixed_height_major = 0x7f05001c;
public static final int abc_dialog_fixed_height_minor = 0x7f05001d;
public static final int abc_dialog_fixed_width_major = 0x7f05001e;
public static final int abc_dialog_fixed_width_minor = 0x7f05001f;
public static final int abc_dialog_list_padding_bottom_no_buttons = 0x7f050020;
public static final int abc_dialog_list_padding_top_no_title = 0x7f050021;
public static final int abc_dialog_min_width_major = 0x7f050022;
public static final int abc_dialog_min_width_minor = 0x7f050023;
public static final int abc_dialog_padding_material = 0x7f050024;
public static final int abc_dialog_padding_top_material = 0x7f050025;
public static final int abc_dialog_title_divider_material = 0x7f050026;
public static final int abc_disabled_alpha_material_dark = 0x7f050027;
public static final int abc_disabled_alpha_material_light = 0x7f050028;
public static final int abc_dropdownitem_icon_width = 0x7f050029;
public static final int abc_dropdownitem_text_padding_left = 0x7f05002a;
public static final int abc_dropdownitem_text_padding_right = 0x7f05002b;
public static final int abc_edit_text_inset_bottom_material = 0x7f05002c;
public static final int abc_edit_text_inset_horizontal_material = 0x7f05002d;
public static final int abc_edit_text_inset_top_material = 0x7f05002e;
public static final int abc_floating_window_z = 0x7f05002f;
public static final int abc_list_item_padding_horizontal_material = 0x7f050030;
public static final int abc_panel_menu_list_width = 0x7f050031;
public static final int abc_progress_bar_height_material = 0x7f050032;
public static final int abc_search_view_preferred_height = 0x7f050033;
public static final int abc_search_view_preferred_width = 0x7f050034;
public static final int abc_seekbar_track_background_height_material = 0x7f050035;
public static final int abc_seekbar_track_progress_height_material = 0x7f050036;
public static final int abc_select_dialog_padding_start_material = 0x7f050037;
public static final int abc_switch_padding = 0x7f050038;
public static final int abc_text_size_body_1_material = 0x7f050039;
public static final int abc_text_size_body_2_material = 0x7f05003a;
public static final int abc_text_size_button_material = 0x7f05003b;
public static final int abc_text_size_caption_material = 0x7f05003c;
public static final int abc_text_size_display_1_material = 0x7f05003d;
public static final int abc_text_size_display_2_material = 0x7f05003e;
public static final int abc_text_size_display_3_material = 0x7f05003f;
public static final int abc_text_size_display_4_material = 0x7f050040;
public static final int abc_text_size_headline_material = 0x7f050041;
public static final int abc_text_size_large_material = 0x7f050042;
public static final int abc_text_size_medium_material = 0x7f050043;
public static final int abc_text_size_menu_header_material = 0x7f050044;
public static final int abc_text_size_menu_material = 0x7f050045;
public static final int abc_text_size_small_material = 0x7f050046;
public static final int abc_text_size_subhead_material = 0x7f050047;
public static final int abc_text_size_subtitle_material_toolbar = 0x7f050048;
public static final int abc_text_size_title_material = 0x7f050049;
public static final int abc_text_size_title_material_toolbar = 0x7f05004a;
public static final int compat_button_inset_horizontal_material = 0x7f05004b;
public static final int compat_button_inset_vertical_material = 0x7f05004c;
public static final int compat_button_padding_horizontal_material = 0x7f05004d;
public static final int compat_button_padding_vertical_material = 0x7f05004e;
public static final int compat_control_corner_material = 0x7f05004f;
public static final int compat_notification_large_icon_max_height = 0x7f050050;
public static final int compat_notification_large_icon_max_width = 0x7f050051;
public static final int disabled_alpha_material_dark = 0x7f050052;
public static final int disabled_alpha_material_light = 0x7f050053;
public static final int highlight_alpha_material_colored = 0x7f050054;
public static final int highlight_alpha_material_dark = 0x7f050055;
public static final int highlight_alpha_material_light = 0x7f050056;
public static final int hint_alpha_material_dark = 0x7f050057;
public static final int hint_alpha_material_light = 0x7f050058;
public static final int hint_pressed_alpha_material_dark = 0x7f050059;
public static final int hint_pressed_alpha_material_light = 0x7f05005a;
public static final int notification_action_icon_size = 0x7f05005b;
public static final int notification_action_text_size = 0x7f05005c;
public static final int notification_big_circle_margin = 0x7f05005d;
public static final int notification_content_margin_start = 0x7f05005e;
public static final int notification_large_icon_height = 0x7f05005f;
public static final int notification_large_icon_width = 0x7f050060;
public static final int notification_main_column_padding_top = 0x7f050061;
public static final int notification_media_narrow_margin = 0x7f050062;
public static final int notification_right_icon_size = 0x7f050063;
public static final int notification_right_side_padding_top = 0x7f050064;
public static final int notification_small_icon_background_padding = 0x7f050065;
public static final int notification_small_icon_size_as_large = 0x7f050066;
public static final int notification_subtext_size = 0x7f050067;
public static final int notification_top_pad = 0x7f050068;
public static final int notification_top_pad_large_text = 0x7f050069;
public static final int tooltip_corner_radius = 0x7f05006a;
public static final int tooltip_horizontal_padding = 0x7f05006b;
public static final int tooltip_margin = 0x7f05006c;
public static final int tooltip_precise_anchor_extra_offset = 0x7f05006d;
public static final int tooltip_precise_anchor_threshold = 0x7f05006e;
public static final int tooltip_vertical_padding = 0x7f05006f;
public static final int tooltip_y_offset_non_touch = 0x7f050070;
public static final int tooltip_y_offset_touch = 0x7f050071;
}
public static final class drawable {
private drawable() {}
public static final int abc_ab_share_pack_mtrl_alpha = 0x7f060001;
public static final int abc_action_bar_item_background_material = 0x7f060002;
public static final int abc_btn_borderless_material = 0x7f060003;
public static final int abc_btn_check_material = 0x7f060004;
public static final int abc_btn_check_to_on_mtrl_000 = 0x7f060005;
public static final int abc_btn_check_to_on_mtrl_015 = 0x7f060006;
public static final int abc_btn_colored_material = 0x7f060007;
public static final int abc_btn_default_mtrl_shape = 0x7f060008;
public static final int abc_btn_radio_material = 0x7f060009;
public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f06000a;
public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f06000b;
public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f06000c;
public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f06000d;
public static final int abc_cab_background_internal_bg = 0x7f06000e;
public static final int abc_cab_background_top_material = 0x7f06000f;
public static final int abc_cab_background_top_mtrl_alpha = 0x7f060010;
public static final int abc_control_background_material = 0x7f060011;
public static final int abc_dialog_material_background = 0x7f060012;
public static final int abc_edit_text_material = 0x7f060013;
public static final int abc_ic_ab_back_material = 0x7f060014;
public static final int abc_ic_arrow_drop_right_black_24dp = 0x7f060015;
public static final int abc_ic_clear_material = 0x7f060016;
public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f060017;
public static final int abc_ic_go_search_api_material = 0x7f060018;
public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f060019;
public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f06001a;
public static final int abc_ic_menu_overflow_material = 0x7f06001b;
public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f06001c;
public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f06001d;
public static final int abc_ic_menu_share_mtrl_alpha = 0x7f06001e;
public static final int abc_ic_search_api_material = 0x7f06001f;
public static final int abc_ic_star_black_16dp = 0x7f060020;
public static final int abc_ic_star_black_36dp = 0x7f060021;
public static final int abc_ic_star_black_48dp = 0x7f060022;
public static final int abc_ic_star_half_black_16dp = 0x7f060023;
public static final int abc_ic_star_half_black_36dp = 0x7f060024;
public static final int abc_ic_star_half_black_48dp = 0x7f060025;
public static final int abc_ic_voice_search_api_material = 0x7f060026;
public static final int abc_item_background_holo_dark = 0x7f060027;
public static final int abc_item_background_holo_light = 0x7f060028;
public static final int abc_list_divider_material = 0x7f060029;
public static final int abc_list_divider_mtrl_alpha = 0x7f06002a;
public static final int abc_list_focused_holo = 0x7f06002b;
public static final int abc_list_longpressed_holo = 0x7f06002c;
public static final int abc_list_pressed_holo_dark = 0x7f06002d;
public static final int abc_list_pressed_holo_light = 0x7f06002e;
public static final int abc_list_selector_background_transition_holo_dark = 0x7f06002f;
public static final int abc_list_selector_background_transition_holo_light = 0x7f060030;
public static final int abc_list_selector_disabled_holo_dark = 0x7f060031;
public static final int abc_list_selector_disabled_holo_light = 0x7f060032;
public static final int abc_list_selector_holo_dark = 0x7f060033;
public static final int abc_list_selector_holo_light = 0x7f060034;
public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f060035;
public static final int abc_popup_background_mtrl_mult = 0x7f060036;
public static final int abc_ratingbar_indicator_material = 0x7f060037;
public static final int abc_ratingbar_material = 0x7f060038;
public static final int abc_ratingbar_small_material = 0x7f060039;
public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f06003a;
public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f06003b;
public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f06003c;
public static final int abc_scrubber_primary_mtrl_alpha = 0x7f06003d;
public static final int abc_scrubber_track_mtrl_alpha = 0x7f06003e;
public static final int abc_seekbar_thumb_material = 0x7f06003f;
public static final int abc_seekbar_tick_mark_material = 0x7f060040;
public static final int abc_seekbar_track_material = 0x7f060041;
public static final int abc_spinner_mtrl_am_alpha = 0x7f060042;
public static final int abc_spinner_textfield_background_material = 0x7f060043;
public static final int abc_switch_thumb_material = 0x7f060044;
public static final int abc_switch_track_mtrl_alpha = 0x7f060045;
public static final int abc_tab_indicator_material = 0x7f060046;
public static final int abc_tab_indicator_mtrl_alpha = 0x7f060047;
public static final int abc_text_cursor_material = 0x7f060048;
public static final int abc_text_select_handle_left_mtrl_dark = 0x7f060049;
public static final int abc_text_select_handle_left_mtrl_light = 0x7f06004a;
public static final int abc_text_select_handle_middle_mtrl_dark = 0x7f06004b;
public static final int abc_text_select_handle_middle_mtrl_light = 0x7f06004c;
public static final int abc_text_select_handle_right_mtrl_dark = 0x7f06004d;
public static final int abc_text_select_handle_right_mtrl_light = 0x7f06004e;
public static final int abc_textfield_activated_mtrl_alpha = 0x7f06004f;
public static final int abc_textfield_default_mtrl_alpha = 0x7f060050;
public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f060051;
public static final int abc_textfield_search_default_mtrl_alpha = 0x7f060052;
public static final int abc_textfield_search_material = 0x7f060053;
public static final int abc_vector_test = 0x7f060054;
public static final int notification_action_background = 0x7f060057;
public static final int notification_bg = 0x7f060058;
public static final int notification_bg_low = 0x7f060059;
public static final int notification_bg_low_normal = 0x7f06005a;
public static final int notification_bg_low_pressed = 0x7f06005b;
public static final int notification_bg_normal = 0x7f06005c;
public static final int notification_bg_normal_pressed = 0x7f06005d;
public static final int notification_icon_background = 0x7f06005e;
public static final int notification_template_icon_bg = 0x7f06005f;
public static final int notification_template_icon_low_bg = 0x7f060060;
public static final int notification_tile_bg = 0x7f060061;
public static final int notify_panel_notification_icon_bg = 0x7f060062;
public static final int tooltip_frame_dark = 0x7f060063;
public static final int tooltip_frame_light = 0x7f060064;
}
public static final class id {
private id() {}
public static final int action_bar = 0x7f070006;
public static final int action_bar_activity_content = 0x7f070007;
public static final int action_bar_container = 0x7f070008;
public static final int action_bar_root = 0x7f070009;
public static final int action_bar_spinner = 0x7f07000a;
public static final int action_bar_subtitle = 0x7f07000b;
public static final int action_bar_title = 0x7f07000c;
public static final int action_container = 0x7f07000d;
public static final int action_context_bar = 0x7f07000e;
public static final int action_divider = 0x7f07000f;
public static final int action_image = 0x7f070010;
public static final int action_menu_divider = 0x7f070011;
public static final int action_menu_presenter = 0x7f070012;
public static final int action_mode_bar = 0x7f070013;
public static final int action_mode_bar_stub = 0x7f070014;
public static final int action_mode_close_button = 0x7f070015;
public static final int action_text = 0x7f070016;
public static final int actions = 0x7f070017;
public static final int activity_chooser_view_content = 0x7f070018;
public static final int add = 0x7f070019;
public static final int alertTitle = 0x7f07001a;
public static final int async = 0x7f07001d;
public static final int blocking = 0x7f070020;
public static final int bottom = 0x7f070022;
public static final int buttonPanel = 0x7f070023;
public static final int checkbox = 0x7f070028;
public static final int chronometer = 0x7f070029;
public static final int content = 0x7f07002d;
public static final int contentPanel = 0x7f07002e;
public static final int custom = 0x7f07002f;
public static final int customPanel = 0x7f070030;
public static final int decor_content_parent = 0x7f070031;
public static final int default_activity_button = 0x7f070032;
public static final int edit_query = 0x7f070036;
public static final int end = 0x7f070037;
public static final int expand_activities_button = 0x7f070038;
public static final int expanded_menu = 0x7f070039;
public static final int forever = 0x7f07003d;
public static final int group_divider = 0x7f07003f;
public static final int home = 0x7f070041;
public static final int icon = 0x7f070043;
public static final int icon_group = 0x7f070044;
public static final int image = 0x7f070046;
public static final int info = 0x7f070047;
public static final int italic = 0x7f070049;
public static final int left = 0x7f07004a;
public static final int line1 = 0x7f07004b;
public static final int line3 = 0x7f07004c;
public static final int listMode = 0x7f07004d;
public static final int list_item = 0x7f07004f;
public static final int message = 0x7f070050;
public static final int multiply = 0x7f070052;
public static final int none = 0x7f070054;
public static final int normal = 0x7f070055;
public static final int notification_background = 0x7f070056;
public static final int notification_main_column = 0x7f070057;
public static final int notification_main_column_container = 0x7f070058;
public static final int parentPanel = 0x7f07005b;
public static final int progress_circular = 0x7f07005d;
public static final int progress_horizontal = 0x7f07005e;
public static final int radio = 0x7f07005f;
public static final int right = 0x7f070060;
public static final int right_icon = 0x7f070061;
public static final int right_side = 0x7f070062;
public static final int screen = 0x7f070063;
public static final int scrollIndicatorDown = 0x7f070064;
public static final int scrollIndicatorUp = 0x7f070065;
public static final int scrollView = 0x7f070066;
public static final int search_badge = 0x7f070067;
public static final int search_bar = 0x7f070068;
public static final int search_button = 0x7f070069;
public static final int search_close_btn = 0x7f07006a;
public static final int search_edit_frame = 0x7f07006b;
public static final int search_go_btn = 0x7f07006c;
public static final int search_mag_icon = 0x7f07006d;
public static final int search_plate = 0x7f07006e;
public static final int search_src_text = 0x7f07006f;
public static final int search_voice_btn = 0x7f070070;
public static final int select_dialog_listview = 0x7f070071;
public static final int shortcut = 0x7f070072;
public static final int spacer = 0x7f070076;
public static final int split_action_bar = 0x7f070077;
public static final int src_atop = 0x7f07007a;
public static final int src_in = 0x7f07007b;
public static final int src_over = 0x7f07007c;
public static final int start = 0x7f07007e;
public static final int submenuarrow = 0x7f07007f;
public static final int submit_area = 0x7f070080;
public static final int tabMode = 0x7f070081;
public static final int tag_transition_group = 0x7f070082;
public static final int tag_unhandled_key_event_manager = 0x7f070083;
public static final int tag_unhandled_key_listeners = 0x7f070084;
public static final int text = 0x7f070085;
public static final int text2 = 0x7f070086;
public static final int textSpacerNoButtons = 0x7f070087;
public static final int textSpacerNoTitle = 0x7f070088;
public static final int time = 0x7f070089;
public static final int title = 0x7f07008a;
public static final int titleDividerNoCustom = 0x7f07008b;
public static final int title_template = 0x7f07008c;
public static final int top = 0x7f07008d;
public static final int topPanel = 0x7f07008e;
public static final int uniform = 0x7f07008f;
public static final int up = 0x7f070090;
public static final int wrap_content = 0x7f070094;
}
public static final class integer {
private integer() {}
public static final int abc_config_activityDefaultDur = 0x7f080000;
public static final int abc_config_activityShortDur = 0x7f080001;
public static final int cancel_button_image_alpha = 0x7f080002;
public static final int config_tooltipAnimTime = 0x7f080003;
public static final int status_bar_notification_info_maxnum = 0x7f080004;
}
public static final class layout {
private layout() {}
public static final int abc_action_bar_title_item = 0x7f090000;
public static final int abc_action_bar_up_container = 0x7f090001;
public static final int abc_action_menu_item_layout = 0x7f090002;
public static final int abc_action_menu_layout = 0x7f090003;
public static final int abc_action_mode_bar = 0x7f090004;
public static final int abc_action_mode_close_item_material = 0x7f090005;
public static final int abc_activity_chooser_view = 0x7f090006;
public static final int abc_activity_chooser_view_list_item = 0x7f090007;
public static final int abc_alert_dialog_button_bar_material = 0x7f090008;
public static final int abc_alert_dialog_material = 0x7f090009;
public static final int abc_alert_dialog_title_material = 0x7f09000a;
public static final int abc_cascading_menu_item_layout = 0x7f09000b;
public static final int abc_dialog_title_material = 0x7f09000c;
public static final int abc_expanded_menu_layout = 0x7f09000d;
public static final int abc_list_menu_item_checkbox = 0x7f09000e;
public static final int abc_list_menu_item_icon = 0x7f09000f;
public static final int abc_list_menu_item_layout = 0x7f090010;
public static final int abc_list_menu_item_radio = 0x7f090011;
public static final int abc_popup_menu_header_item_layout = 0x7f090012;
public static final int abc_popup_menu_item_layout = 0x7f090013;
public static final int abc_screen_content_include = 0x7f090014;
public static final int abc_screen_simple = 0x7f090015;
public static final int abc_screen_simple_overlay_action_mode = 0x7f090016;
public static final int abc_screen_toolbar = 0x7f090017;
public static final int abc_search_dropdown_item_icons_2line = 0x7f090018;
public static final int abc_search_view = 0x7f090019;
public static final int abc_select_dialog_material = 0x7f09001a;
public static final int abc_tooltip = 0x7f09001b;
public static final int notification_action = 0x7f09001e;
public static final int notification_action_tombstone = 0x7f09001f;
public static final int notification_template_custom_big = 0x7f090020;
public static final int notification_template_icon_group = 0x7f090021;
public static final int notification_template_part_chronometer = 0x7f090022;
public static final int notification_template_part_time = 0x7f090023;
public static final int select_dialog_item_material = 0x7f090024;
public static final int select_dialog_multichoice_material = 0x7f090025;
public static final int select_dialog_singlechoice_material = 0x7f090026;
public static final int support_simple_spinner_dropdown_item = 0x7f090027;
}
public static final class string {
private string() {}
public static final int abc_action_bar_home_description = 0x7f0b0000;
public static final int abc_action_bar_up_description = 0x7f0b0001;
public static final int abc_action_menu_overflow_description = 0x7f0b0002;
public static final int abc_action_mode_done = 0x7f0b0003;
public static final int abc_activity_chooser_view_see_all = 0x7f0b0004;
public static final int abc_activitychooserview_choose_application = 0x7f0b0005;
public static final int abc_capital_off = 0x7f0b0006;
public static final int abc_capital_on = 0x7f0b0007;
public static final int abc_font_family_body_1_material = 0x7f0b0008;
public static final int abc_font_family_body_2_material = 0x7f0b0009;
public static final int abc_font_family_button_material = 0x7f0b000a;
public static final int abc_font_family_caption_material = 0x7f0b000b;
public static final int abc_font_family_display_1_material = 0x7f0b000c;
public static final int abc_font_family_display_2_material = 0x7f0b000d;
public static final int abc_font_family_display_3_material = 0x7f0b000e;
public static final int abc_font_family_display_4_material = 0x7f0b000f;
public static final int abc_font_family_headline_material = 0x7f0b0010;
public static final int abc_font_family_menu_material = 0x7f0b0011;
public static final int abc_font_family_subhead_material = 0x7f0b0012;
public static final int abc_font_family_title_material = 0x7f0b0013;
public static final int abc_menu_alt_shortcut_label = 0x7f0b0014;
public static final int abc_menu_ctrl_shortcut_label = 0x7f0b0015;
public static final int abc_menu_delete_shortcut_label = 0x7f0b0016;
public static final int abc_menu_enter_shortcut_label = 0x7f0b0017;
public static final int abc_menu_function_shortcut_label = 0x7f0b0018;
public static final int abc_menu_meta_shortcut_label = 0x7f0b0019;
public static final int abc_menu_shift_shortcut_label = 0x7f0b001a;
public static final int abc_menu_space_shortcut_label = 0x7f0b001b;
public static final int abc_menu_sym_shortcut_label = 0x7f0b001c;
public static final int abc_prepend_shortcut_label = 0x7f0b001d;
public static final int abc_search_hint = 0x7f0b001e;
public static final int abc_searchview_description_clear = 0x7f0b001f;
public static final int abc_searchview_description_query = 0x7f0b0020;
public static final int abc_searchview_description_search = 0x7f0b0021;
public static final int abc_searchview_description_submit = 0x7f0b0022;
public static final int abc_searchview_description_voice = 0x7f0b0023;
public static final int abc_shareactionprovider_share_with = 0x7f0b0024;
public static final int abc_shareactionprovider_share_with_application = 0x7f0b0025;
public static final int abc_toolbar_collapse_description = 0x7f0b0026;
public static final int search_menu_title = 0x7f0b0028;
public static final int status_bar_notification_info_overflow = 0x7f0b0029;
}
public static final class style {
private style() {}
public static final int AlertDialog_AppCompat = 0x7f0c0000;
public static final int AlertDialog_AppCompat_Light = 0x7f0c0001;
public static final int Animation_AppCompat_Dialog = 0x7f0c0002;
public static final int Animation_AppCompat_DropDownUp = 0x7f0c0003;
public static final int Animation_AppCompat_Tooltip = 0x7f0c0004;
public static final int Base_AlertDialog_AppCompat = 0x7f0c0006;
public static final int Base_AlertDialog_AppCompat_Light = 0x7f0c0007;
public static final int Base_Animation_AppCompat_Dialog = 0x7f0c0008;
public static final int Base_Animation_AppCompat_DropDownUp = 0x7f0c0009;
public static final int Base_Animation_AppCompat_Tooltip = 0x7f0c000a;
public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0c000c;
public static final int Base_DialogWindowTitle_AppCompat = 0x7f0c000b;
public static final int Base_TextAppearance_AppCompat = 0x7f0c000d;
public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f0c000e;
public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f0c000f;
public static final int Base_TextAppearance_AppCompat_Button = 0x7f0c0010;
public static final int Base_TextAppearance_AppCompat_Caption = 0x7f0c0011;
public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f0c0012;
public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f0c0013;
public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f0c0014;
public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f0c0015;
public static final int Base_TextAppearance_AppCompat_Headline = 0x7f0c0016;
public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f0c0017;
public static final int Base_TextAppearance_AppCompat_Large = 0x7f0c0018;
public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f0c0019;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0c001a;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0c001b;
public static final int Base_TextAppearance_AppCompat_Medium = 0x7f0c001c;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f0c001d;
public static final int Base_TextAppearance_AppCompat_Menu = 0x7f0c001e;
public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f0c001f;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0c0020;
public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f0c0021;
public static final int Base_TextAppearance_AppCompat_Small = 0x7f0c0022;
public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f0c0023;
public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f0c0024;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f0c0025;
public static final int Base_TextAppearance_AppCompat_Title = 0x7f0c0026;
public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f0c0027;
public static final int Base_TextAppearance_AppCompat_Tooltip = 0x7f0c0028;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0c0029;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0c002a;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0c002b;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0c002c;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0c002d;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0c002e;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0c002f;
public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f0c0030;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0c0031;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0c0032;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0c0033;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0c0034;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0c0035;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0c0036;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0c0037;
public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f0c0038;
public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0c0039;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0c003a;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0c003b;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0c003c;
public static final int Base_ThemeOverlay_AppCompat = 0x7f0c004b;
public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0c004c;
public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0c004d;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0c004e;
public static final int Base_ThemeOverlay_AppCompat_Dialog = 0x7f0c004f;
public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0c0050;
public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0c0051;
public static final int Base_Theme_AppCompat = 0x7f0c003d;
public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0c003e;
public static final int Base_Theme_AppCompat_Dialog = 0x7f0c003f;
public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f0c0043;
public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f0c0040;
public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0c0041;
public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f0c0042;
public static final int Base_Theme_AppCompat_Light = 0x7f0c0044;
public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0c0045;
public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f0c0046;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f0c004a;
public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f0c0047;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0c0048;
public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0c0049;
public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 0x7f0c0056;
public static final int Base_V21_Theme_AppCompat = 0x7f0c0052;
public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f0c0053;
public static final int Base_V21_Theme_AppCompat_Light = 0x7f0c0054;
public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f0c0055;
public static final int Base_V22_Theme_AppCompat = 0x7f0c0057;
public static final int Base_V22_Theme_AppCompat_Light = 0x7f0c0058;
public static final int Base_V23_Theme_AppCompat = 0x7f0c0059;
public static final int Base_V23_Theme_AppCompat_Light = 0x7f0c005a;
public static final int Base_V26_Theme_AppCompat = 0x7f0c005b;
public static final int Base_V26_Theme_AppCompat_Light = 0x7f0c005c;
public static final int Base_V26_Widget_AppCompat_Toolbar = 0x7f0c005d;
public static final int Base_V28_Theme_AppCompat = 0x7f0c005e;
public static final int Base_V28_Theme_AppCompat_Light = 0x7f0c005f;
public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 0x7f0c0064;
public static final int Base_V7_Theme_AppCompat = 0x7f0c0060;
public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0c0061;
public static final int Base_V7_Theme_AppCompat_Light = 0x7f0c0062;
public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0c0063;
public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0c0065;
public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0c0066;
public static final int Base_V7_Widget_AppCompat_Toolbar = 0x7f0c0067;
public static final int Base_Widget_AppCompat_ActionBar = 0x7f0c0068;
public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0c0069;
public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0c006a;
public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f0c006b;
public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f0c006c;
public static final int Base_Widget_AppCompat_ActionButton = 0x7f0c006d;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f0c006e;
public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f0c006f;
public static final int Base_Widget_AppCompat_ActionMode = 0x7f0c0070;
public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0c0071;
public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f0c0072;
public static final int Base_Widget_AppCompat_Button = 0x7f0c0073;
public static final int Base_Widget_AppCompat_ButtonBar = 0x7f0c0079;
public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0c007a;
public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f0c0074;
public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f0c0075;
public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0c0076;
public static final int Base_Widget_AppCompat_Button_Colored = 0x7f0c0077;
public static final int Base_Widget_AppCompat_Button_Small = 0x7f0c0078;
public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f0c007b;
public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f0c007c;
public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0c007d;
public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f0c007e;
public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0c007f;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f0c0080;
public static final int Base_Widget_AppCompat_EditText = 0x7f0c0081;
public static final int Base_Widget_AppCompat_ImageButton = 0x7f0c0082;
public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f0c0083;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0c0084;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0c0085;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f0c0086;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0c0087;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f0c0088;
public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f0c0089;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0c008a;
public static final int Base_Widget_AppCompat_ListMenuView = 0x7f0c008b;
public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f0c008c;
public static final int Base_Widget_AppCompat_ListView = 0x7f0c008d;
public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f0c008e;
public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f0c008f;
public static final int Base_Widget_AppCompat_PopupMenu = 0x7f0c0090;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f0c0091;
public static final int Base_Widget_AppCompat_PopupWindow = 0x7f0c0092;
public static final int Base_Widget_AppCompat_ProgressBar = 0x7f0c0093;
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f0c0094;
public static final int Base_Widget_AppCompat_RatingBar = 0x7f0c0095;
public static final int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f0c0096;
public static final int Base_Widget_AppCompat_RatingBar_Small = 0x7f0c0097;
public static final int Base_Widget_AppCompat_SearchView = 0x7f0c0098;
public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0c0099;
public static final int Base_Widget_AppCompat_SeekBar = 0x7f0c009a;
public static final int Base_Widget_AppCompat_SeekBar_Discrete = 0x7f0c009b;
public static final int Base_Widget_AppCompat_Spinner = 0x7f0c009c;
public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f0c009d;
public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f0c009e;
public static final int Base_Widget_AppCompat_Toolbar = 0x7f0c009f;
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0c00a0;
public static final int Platform_AppCompat = 0x7f0c00a1;
public static final int Platform_AppCompat_Light = 0x7f0c00a2;
public static final int Platform_ThemeOverlay_AppCompat = 0x7f0c00a3;
public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f0c00a4;
public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f0c00a5;
public static final int Platform_V21_AppCompat = 0x7f0c00a6;
public static final int Platform_V21_AppCompat_Light = 0x7f0c00a7;
public static final int Platform_V25_AppCompat = 0x7f0c00a8;
public static final int Platform_V25_AppCompat_Light = 0x7f0c00a9;
public static final int Platform_Widget_AppCompat_Spinner = 0x7f0c00aa;
public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f0c00ab;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f0c00ac;
public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f0c00ad;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f0c00ae;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f0c00af;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Shortcut = 0x7f0c00b0;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_SubmenuArrow = 0x7f0c00b1;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f0c00b2;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Title = 0x7f0c00b3;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f0c00b9;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f0c00b4;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f0c00b5;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f0c00b6;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f0c00b7;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f0c00b8;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f0c00ba;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f0c00bb;
public static final int TextAppearance_AppCompat = 0x7f0c00bc;
public static final int TextAppearance_AppCompat_Body1 = 0x7f0c00bd;
public static final int TextAppearance_AppCompat_Body2 = 0x7f0c00be;
public static final int TextAppearance_AppCompat_Button = 0x7f0c00bf;
public static final int TextAppearance_AppCompat_Caption = 0x7f0c00c0;
public static final int TextAppearance_AppCompat_Display1 = 0x7f0c00c1;
public static final int TextAppearance_AppCompat_Display2 = 0x7f0c00c2;
public static final int TextAppearance_AppCompat_Display3 = 0x7f0c00c3;
public static final int TextAppearance_AppCompat_Display4 = 0x7f0c00c4;
public static final int TextAppearance_AppCompat_Headline = 0x7f0c00c5;
public static final int TextAppearance_AppCompat_Inverse = 0x7f0c00c6;
public static final int TextAppearance_AppCompat_Large = 0x7f0c00c7;
public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0c00c8;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0c00c9;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0c00ca;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0c00cb;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0c00cc;
public static final int TextAppearance_AppCompat_Medium = 0x7f0c00cd;
public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0c00ce;
public static final int TextAppearance_AppCompat_Menu = 0x7f0c00cf;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0c00d0;
public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0c00d1;
public static final int TextAppearance_AppCompat_Small = 0x7f0c00d2;
public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0c00d3;
public static final int TextAppearance_AppCompat_Subhead = 0x7f0c00d4;
public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0c00d5;
public static final int TextAppearance_AppCompat_Title = 0x7f0c00d6;
public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0c00d7;
public static final int TextAppearance_AppCompat_Tooltip = 0x7f0c00d8;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0c00d9;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0c00da;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0c00db;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0c00dc;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0c00dd;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0c00de;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0c00df;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0c00e0;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0c00e1;
public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0c00e2;
public static final int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0c00e3;
public static final int TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0c00e4;
public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0c00e5;
public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0c00e6;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0c00e7;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0c00e8;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0c00e9;
public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f0c00ea;
public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0c00eb;
public static final int TextAppearance_Compat_Notification = 0x7f0c00ec;
public static final int TextAppearance_Compat_Notification_Info = 0x7f0c00ed;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0c00ee;
public static final int TextAppearance_Compat_Notification_Time = 0x7f0c00ef;
public static final int TextAppearance_Compat_Notification_Title = 0x7f0c00f0;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0c00f1;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0c00f2;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0c00f3;
public static final int ThemeOverlay_AppCompat = 0x7f0c0109;
public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f0c010a;
public static final int ThemeOverlay_AppCompat_Dark = 0x7f0c010b;
public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0c010c;
public static final int ThemeOverlay_AppCompat_Dialog = 0x7f0c010d;
public static final int ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0c010e;
public static final int ThemeOverlay_AppCompat_Light = 0x7f0c010f;
public static final int Theme_AppCompat = 0x7f0c00f4;
public static final int Theme_AppCompat_CompactMenu = 0x7f0c00f5;
public static final int Theme_AppCompat_DayNight = 0x7f0c00f6;
public static final int Theme_AppCompat_DayNight_DarkActionBar = 0x7f0c00f7;
public static final int Theme_AppCompat_DayNight_Dialog = 0x7f0c00f8;
public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f0c00fb;
public static final int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f0c00f9;
public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f0c00fa;
public static final int Theme_AppCompat_DayNight_NoActionBar = 0x7f0c00fc;
public static final int Theme_AppCompat_Dialog = 0x7f0c00fd;
public static final int Theme_AppCompat_DialogWhenLarge = 0x7f0c0100;
public static final int Theme_AppCompat_Dialog_Alert = 0x7f0c00fe;
public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f0c00ff;
public static final int Theme_AppCompat_Light = 0x7f0c0101;
public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f0c0102;
public static final int Theme_AppCompat_Light_Dialog = 0x7f0c0103;
public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f0c0106;
public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f0c0104;
public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0c0105;
public static final int Theme_AppCompat_Light_NoActionBar = 0x7f0c0107;
public static final int Theme_AppCompat_NoActionBar = 0x7f0c0108;
public static final int Widget_AppCompat_ActionBar = 0x7f0c0110;
public static final int Widget_AppCompat_ActionBar_Solid = 0x7f0c0111;
public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f0c0112;
public static final int Widget_AppCompat_ActionBar_TabText = 0x7f0c0113;
public static final int Widget_AppCompat_ActionBar_TabView = 0x7f0c0114;
public static final int Widget_AppCompat_ActionButton = 0x7f0c0115;
public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f0c0116;
public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f0c0117;
public static final int Widget_AppCompat_ActionMode = 0x7f0c0118;
public static final int Widget_AppCompat_ActivityChooserView = 0x7f0c0119;
public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f0c011a;
public static final int Widget_AppCompat_Button = 0x7f0c011b;
public static final int Widget_AppCompat_ButtonBar = 0x7f0c0121;
public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0c0122;
public static final int Widget_AppCompat_Button_Borderless = 0x7f0c011c;
public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f0c011d;
public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0c011e;
public static final int Widget_AppCompat_Button_Colored = 0x7f0c011f;
public static final int Widget_AppCompat_Button_Small = 0x7f0c0120;
public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f0c0123;
public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f0c0124;
public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f0c0125;
public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f0c0126;
public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f0c0127;
public static final int Widget_AppCompat_EditText = 0x7f0c0128;
public static final int Widget_AppCompat_ImageButton = 0x7f0c0129;
public static final int Widget_AppCompat_Light_ActionBar = 0x7f0c012a;
public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f0c012b;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f0c012c;
public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0c012d;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f0c012e;
public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f0c012f;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0c0130;
public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f0c0131;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f0c0132;
public static final int Widget_AppCompat_Light_ActionButton = 0x7f0c0133;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f0c0134;
public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f0c0135;
public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f0c0136;
public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f0c0137;
public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f0c0138;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f0c0139;
public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f0c013a;
public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f0c013b;
public static final int Widget_AppCompat_Light_PopupMenu = 0x7f0c013c;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0c013d;
public static final int Widget_AppCompat_Light_SearchView = 0x7f0c013e;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f0c013f;
public static final int Widget_AppCompat_ListMenuView = 0x7f0c0140;
public static final int Widget_AppCompat_ListPopupWindow = 0x7f0c0141;
public static final int Widget_AppCompat_ListView = 0x7f0c0142;
public static final int Widget_AppCompat_ListView_DropDown = 0x7f0c0143;
public static final int Widget_AppCompat_ListView_Menu = 0x7f0c0144;
public static final int Widget_AppCompat_PopupMenu = 0x7f0c0145;
public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f0c0146;
public static final int Widget_AppCompat_PopupWindow = 0x7f0c0147;
public static final int Widget_AppCompat_ProgressBar = 0x7f0c0148;
public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f0c0149;
public static final int Widget_AppCompat_RatingBar = 0x7f0c014a;
public static final int Widget_AppCompat_RatingBar_Indicator = 0x7f0c014b;
public static final int Widget_AppCompat_RatingBar_Small = 0x7f0c014c;
public static final int Widget_AppCompat_SearchView = 0x7f0c014d;
public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f0c014e;
public static final int Widget_AppCompat_SeekBar = 0x7f0c014f;
public static final int Widget_AppCompat_SeekBar_Discrete = 0x7f0c0150;
public static final int Widget_AppCompat_Spinner = 0x7f0c0151;
public static final int Widget_AppCompat_Spinner_DropDown = 0x7f0c0152;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f0c0153;
public static final int Widget_AppCompat_Spinner_Underlined = 0x7f0c0154;
public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f0c0155;
public static final int Widget_AppCompat_Toolbar = 0x7f0c0156;
public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0c0157;
public static final int Widget_Compat_NotificationActionContainer = 0x7f0c0158;
public static final int Widget_Compat_NotificationActionText = 0x7f0c0159;
public static final int Widget_Support_CoordinatorLayout = 0x7f0c015a;
}
public static final class styleable {
private styleable() {}
public static final int[] ActionBar = { 0x7f020031, 0x7f020032, 0x7f020033, 0x7f02005d, 0x7f02005e, 0x7f02005f, 0x7f020060, 0x7f020061, 0x7f020062, 0x7f020065, 0x7f02006a, 0x7f02006b, 0x7f020076, 0x7f020087, 0x7f020088, 0x7f020089, 0x7f02008a, 0x7f02008b, 0x7f020090, 0x7f020093, 0x7f0200db, 0x7f0200e2, 0x7f0200ed, 0x7f0200f0, 0x7f0200f1, 0x7f02010c, 0x7f02010f, 0x7f02012a, 0x7f020133 };
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 = { 0x10100b3 };
public static final int ActionBarLayout_android_layout_gravity = 0;
public static final int[] ActionMenuItemView = { 0x101013f };
public static final int ActionMenuItemView_android_minWidth = 0;
public static final int[] ActionMenuView = { };
public static final int[] ActionMode = { 0x7f020031, 0x7f020032, 0x7f02004a, 0x7f020087, 0x7f02010f, 0x7f020133 };
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 = { 0x7f020078, 0x7f020091 };
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0;
public static final int ActivityChooserView_initialActivityCount = 1;
public static final int[] AlertDialog = { 0x10100f2, 0x7f020040, 0x7f020041, 0x7f0200d2, 0x7f0200d3, 0x7f0200df, 0x7f020101, 0x7f020102 };
public static final int AlertDialog_android_layout = 0;
public static final int AlertDialog_buttonIconDimen = 1;
public static final int AlertDialog_buttonPanelSideLayout = 2;
public static final int AlertDialog_listItemLayout = 3;
public static final int AlertDialog_listLayout = 4;
public static final int AlertDialog_multiChoiceItemLayout = 5;
public static final int AlertDialog_showTitle = 6;
public static final int AlertDialog_singleChoiceItemLayout = 7;
public static final int[] AnimatedStateListDrawableCompat = { 0x101011c, 0x1010194, 0x1010195, 0x1010196, 0x101030c, 0x101030d };
public static final int AnimatedStateListDrawableCompat_android_dither = 0;
public static final int AnimatedStateListDrawableCompat_android_visible = 1;
public static final int AnimatedStateListDrawableCompat_android_variablePadding = 2;
public static final int AnimatedStateListDrawableCompat_android_constantSize = 3;
public static final int AnimatedStateListDrawableCompat_android_enterFadeDuration = 4;
public static final int AnimatedStateListDrawableCompat_android_exitFadeDuration = 5;
public static final int[] AnimatedStateListDrawableItem = { 0x10100d0, 0x1010199 };
public static final int AnimatedStateListDrawableItem_android_id = 0;
public static final int AnimatedStateListDrawableItem_android_drawable = 1;
public static final int[] AnimatedStateListDrawableTransition = { 0x1010199, 0x1010449, 0x101044a, 0x101044b };
public static final int AnimatedStateListDrawableTransition_android_drawable = 0;
public static final int AnimatedStateListDrawableTransition_android_toId = 1;
public static final int AnimatedStateListDrawableTransition_android_fromId = 2;
public static final int AnimatedStateListDrawableTransition_android_reversible = 3;
public static final int[] AppCompatImageView = { 0x1010119, 0x7f020107, 0x7f020128, 0x7f020129 };
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 = { 0x1010142, 0x7f020125, 0x7f020126, 0x7f020127 };
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 = { 0x1010034, 0x101016d, 0x101016e, 0x101016f, 0x1010170, 0x1010392, 0x1010393 };
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 = { 0x1010034, 0x7f02002c, 0x7f02002d, 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020079, 0x7f02007b, 0x7f020095, 0x7f0200cf, 0x7f020115 };
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_firstBaselineToTopHeight = 6;
public static final int AppCompatTextView_fontFamily = 7;
public static final int AppCompatTextView_lastBaselineToBottomHeight = 8;
public static final int AppCompatTextView_lineHeight = 9;
public static final int AppCompatTextView_textAllCaps = 10;
public static final int[] AppCompatTheme = { 0x1010057, 0x10100ae, 0x7f020000, 0x7f020001, 0x7f020002, 0x7f020003, 0x7f020004, 0x7f020005, 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009, 0x7f02000a, 0x7f02000b, 0x7f02000c, 0x7f02000e, 0x7f02000f, 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013, 0x7f020014, 0x7f020015, 0x7f020016, 0x7f020017, 0x7f020018, 0x7f020019, 0x7f02001a, 0x7f02001b, 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f020021, 0x7f020022, 0x7f020023, 0x7f020024, 0x7f020025, 0x7f02002b, 0x7f020039, 0x7f02003a, 0x7f02003b, 0x7f02003c, 0x7f02003d, 0x7f02003e, 0x7f020042, 0x7f020043, 0x7f020047, 0x7f020048, 0x7f02004e, 0x7f02004f, 0x7f020050, 0x7f020051, 0x7f020052, 0x7f020053, 0x7f020054, 0x7f020055, 0x7f020056, 0x7f020057, 0x7f020063, 0x7f020067, 0x7f020068, 0x7f020069, 0x7f02006c, 0x7f02006e, 0x7f020071, 0x7f020072, 0x7f020073, 0x7f020074, 0x7f020075, 0x7f020089, 0x7f02008f, 0x7f0200d0, 0x7f0200d1, 0x7f0200d4, 0x7f0200d5, 0x7f0200d6, 0x7f0200d7, 0x7f0200d8, 0x7f0200d9, 0x7f0200da, 0x7f0200e9, 0x7f0200ea, 0x7f0200eb, 0x7f0200ec, 0x7f0200ee, 0x7f0200f4, 0x7f0200f5, 0x7f0200f6, 0x7f0200f7, 0x7f0200fa, 0x7f0200fb, 0x7f0200fc, 0x7f0200fd, 0x7f020104, 0x7f020105, 0x7f020113, 0x7f020116, 0x7f020117, 0x7f020118, 0x7f020119, 0x7f02011a, 0x7f02011b, 0x7f02011c, 0x7f02011d, 0x7f02011e, 0x7f02011f, 0x7f020134, 0x7f020135, 0x7f020136, 0x7f020137, 0x7f02013d, 0x7f02013f, 0x7f020140, 0x7f020141, 0x7f020142, 0x7f020143, 0x7f020144, 0x7f020145, 0x7f020146, 0x7f020147, 0x7f020148 };
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_dialogCornerRadius = 59;
public static final int AppCompatTheme_dialogPreferredPadding = 60;
public static final int AppCompatTheme_dialogTheme = 61;
public static final int AppCompatTheme_dividerHorizontal = 62;
public static final int AppCompatTheme_dividerVertical = 63;
public static final int AppCompatTheme_dropDownListViewStyle = 64;
public static final int AppCompatTheme_dropdownListPreferredItemHeight = 65;
public static final int AppCompatTheme_editTextBackground = 66;
public static final int AppCompatTheme_editTextColor = 67;
public static final int AppCompatTheme_editTextStyle = 68;
public static final int AppCompatTheme_homeAsUpIndicator = 69;
public static final int AppCompatTheme_imageButtonStyle = 70;
public static final int AppCompatTheme_listChoiceBackgroundIndicator = 71;
public static final int AppCompatTheme_listDividerAlertDialog = 72;
public static final int AppCompatTheme_listMenuViewStyle = 73;
public static final int AppCompatTheme_listPopupWindowStyle = 74;
public static final int AppCompatTheme_listPreferredItemHeight = 75;
public static final int AppCompatTheme_listPreferredItemHeightLarge = 76;
public static final int AppCompatTheme_listPreferredItemHeightSmall = 77;
public static final int AppCompatTheme_listPreferredItemPaddingLeft = 78;
public static final int AppCompatTheme_listPreferredItemPaddingRight = 79;
public static final int AppCompatTheme_panelBackground = 80;
public static final int AppCompatTheme_panelMenuListTheme = 81;
public static final int AppCompatTheme_panelMenuListWidth = 82;
public static final int AppCompatTheme_popupMenuStyle = 83;
public static final int AppCompatTheme_popupWindowStyle = 84;
public static final int AppCompatTheme_radioButtonStyle = 85;
public static final int AppCompatTheme_ratingBarStyle = 86;
public static final int AppCompatTheme_ratingBarStyleIndicator = 87;
public static final int AppCompatTheme_ratingBarStyleSmall = 88;
public static final int AppCompatTheme_searchViewStyle = 89;
public static final int AppCompatTheme_seekBarStyle = 90;
public static final int AppCompatTheme_selectableItemBackground = 91;
public static final int AppCompatTheme_selectableItemBackgroundBorderless = 92;
public static final int AppCompatTheme_spinnerDropDownItemStyle = 93;
public static final int AppCompatTheme_spinnerStyle = 94;
public static final int AppCompatTheme_switchStyle = 95;
public static final int AppCompatTheme_textAppearanceLargePopupMenu = 96;
public static final int AppCompatTheme_textAppearanceListItem = 97;
public static final int AppCompatTheme_textAppearanceListItemSecondary = 98;
public static final int AppCompatTheme_textAppearanceListItemSmall = 99;
public static final int AppCompatTheme_textAppearancePopupMenuHeader = 100;
public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 101;
public static final int AppCompatTheme_textAppearanceSearchResultTitle = 102;
public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 103;
public static final int AppCompatTheme_textColorAlertDialogListItem = 104;
public static final int AppCompatTheme_textColorSearchUrl = 105;
public static final int AppCompatTheme_toolbarNavigationButtonStyle = 106;
public static final int AppCompatTheme_toolbarStyle = 107;
public static final int AppCompatTheme_tooltipForegroundColor = 108;
public static final int AppCompatTheme_tooltipFrameBackground = 109;
public static final int AppCompatTheme_viewInflaterClass = 110;
public static final int AppCompatTheme_windowActionBar = 111;
public static final int AppCompatTheme_windowActionBarOverlay = 112;
public static final int AppCompatTheme_windowActionModeOverlay = 113;
public static final int AppCompatTheme_windowFixedHeightMajor = 114;
public static final int AppCompatTheme_windowFixedHeightMinor = 115;
public static final int AppCompatTheme_windowFixedWidthMajor = 116;
public static final int AppCompatTheme_windowFixedWidthMinor = 117;
public static final int AppCompatTheme_windowMinWidthMajor = 118;
public static final int AppCompatTheme_windowMinWidthMinor = 119;
public static final int AppCompatTheme_windowNoTitle = 120;
public static final int[] ButtonBarLayout = { 0x7f020026 };
public static final int ButtonBarLayout_allowStacking = 0;
public static final int[] ColorStateListItem = { 0x10101a5, 0x101031f, 0x7f020027 };
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 = { 0x1010107, 0x7f020044, 0x7f020045 };
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 = { 0x7f020094, 0x7f020109 };
public static final int CoordinatorLayout_keylines = 0;
public static final int CoordinatorLayout_statusBarBackground = 1;
public static final int[] CoordinatorLayout_Layout = { 0x10100b3, 0x7f020097, 0x7f020098, 0x7f020099, 0x7f0200c3, 0x7f0200cc, 0x7f0200cd };
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 = { 0x7f020029, 0x7f02002a, 0x7f020036, 0x7f02004d, 0x7f02006f, 0x7f020085, 0x7f020103, 0x7f020121 };
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 = { 0x7f02007c, 0x7f02007d, 0x7f02007e, 0x7f02007f, 0x7f020080, 0x7f020081 };
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 = { 0x1010532, 0x1010533, 0x101053f, 0x101056f, 0x1010570, 0x7f02007a, 0x7f020082, 0x7f020083, 0x7f020084, 0x7f02013c };
public static final int FontFamilyFont_android_font = 0;
public static final int FontFamilyFont_android_fontWeight = 1;
public static final int FontFamilyFont_android_fontStyle = 2;
public static final int FontFamilyFont_android_ttcIndex = 3;
public static final int FontFamilyFont_android_fontVariationSettings = 4;
public static final int FontFamilyFont_font = 5;
public static final int FontFamilyFont_fontStyle = 6;
public static final int FontFamilyFont_fontVariationSettings = 7;
public static final int FontFamilyFont_fontWeight = 8;
public static final int FontFamilyFont_ttcIndex = 9;
public static final int[] GradientColor = { 0x101019d, 0x101019e, 0x10101a1, 0x10101a2, 0x10101a3, 0x10101a4, 0x1010201, 0x101020b, 0x1010510, 0x1010511, 0x1010512, 0x1010513 };
public static final int GradientColor_android_startColor = 0;
public static final int GradientColor_android_endColor = 1;
public static final int GradientColor_android_type = 2;
public static final int GradientColor_android_centerX = 3;
public static final int GradientColor_android_centerY = 4;
public static final int GradientColor_android_gradientRadius = 5;
public static final int GradientColor_android_tileMode = 6;
public static final int GradientColor_android_centerColor = 7;
public static final int GradientColor_android_startX = 8;
public static final int GradientColor_android_startY = 9;
public static final int GradientColor_android_endX = 10;
public static final int GradientColor_android_endY = 11;
public static final int[] GradientColorItem = { 0x10101a5, 0x1010514 };
public static final int GradientColorItem_android_color = 0;
public static final int GradientColorItem_android_offset = 1;
public static final int[] LinearLayoutCompat = { 0x10100af, 0x10100c4, 0x1010126, 0x1010127, 0x1010128, 0x7f02006b, 0x7f02006d, 0x7f0200de, 0x7f0200ff };
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 = { 0x10100b3, 0x10100f4, 0x10100f5, 0x1010181 };
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 = { 0x10102ac, 0x10102ad };
public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
public static final int[] MenuGroup = { 0x101000e, 0x10100d0, 0x1010194, 0x10101de, 0x10101df, 0x10101e0 };
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 = { 0x1010002, 0x101000e, 0x10100d0, 0x1010106, 0x1010194, 0x10101de, 0x10101df, 0x10101e1, 0x10101e2, 0x10101e3, 0x10101e4, 0x10101e5, 0x101026f, 0x7f02000d, 0x7f02001f, 0x7f020020, 0x7f020028, 0x7f02005c, 0x7f02008c, 0x7f02008d, 0x7f0200e3, 0x7f0200fe, 0x7f020138 };
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 = { 0x10100ae, 0x101012c, 0x101012d, 0x101012e, 0x101012f, 0x1010130, 0x1010131, 0x7f0200ef, 0x7f02010a };
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 = { 0x1010176, 0x10102c9, 0x7f0200e4 };
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 = { 0x7f020108 };
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
public static final int[] RecycleListView = { 0x7f0200e5, 0x7f0200e8 };
public static final int RecycleListView_paddingBottomNoButtons = 0;
public static final int RecycleListView_paddingTopNoTitle = 1;
public static final int[] SearchView = { 0x10100da, 0x101011f, 0x1010220, 0x1010264, 0x7f020049, 0x7f020058, 0x7f020066, 0x7f020086, 0x7f02008e, 0x7f020096, 0x7f0200f2, 0x7f0200f3, 0x7f0200f8, 0x7f0200f9, 0x7f02010b, 0x7f020110, 0x7f02013e };
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 = { 0x10100b2, 0x1010176, 0x101017b, 0x1010262, 0x7f0200ed };
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[] StateListDrawable = { 0x101011c, 0x1010194, 0x1010195, 0x1010196, 0x101030c, 0x101030d };
public static final int StateListDrawable_android_dither = 0;
public static final int StateListDrawable_android_visible = 1;
public static final int StateListDrawable_android_variablePadding = 2;
public static final int StateListDrawable_android_constantSize = 3;
public static final int StateListDrawable_android_enterFadeDuration = 4;
public static final int StateListDrawable_android_exitFadeDuration = 5;
public static final int[] StateListDrawableItem = { 0x1010199 };
public static final int StateListDrawableItem_android_drawable = 0;
public static final int[] SwitchCompat = { 0x1010124, 0x1010125, 0x1010142, 0x7f020100, 0x7f020106, 0x7f020111, 0x7f020112, 0x7f020114, 0x7f020122, 0x7f020123, 0x7f020124, 0x7f020139, 0x7f02013a, 0x7f02013b };
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 = { 0x1010095, 0x1010096, 0x1010097, 0x1010098, 0x101009a, 0x101009b, 0x1010161, 0x1010162, 0x1010163, 0x1010164, 0x10103ac, 0x7f02007b, 0x7f020115 };
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 = { 0x10100af, 0x1010140, 0x7f02003f, 0x7f02004b, 0x7f02004c, 0x7f02005d, 0x7f02005e, 0x7f02005f, 0x7f020060, 0x7f020061, 0x7f020062, 0x7f0200db, 0x7f0200dc, 0x7f0200dd, 0x7f0200e0, 0x7f0200e1, 0x7f0200ed, 0x7f02010c, 0x7f02010d, 0x7f02010e, 0x7f02012a, 0x7f02012b, 0x7f02012c, 0x7f02012d, 0x7f02012e, 0x7f02012f, 0x7f020130, 0x7f020131, 0x7f020132 };
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 = { 0x1010000, 0x10100da, 0x7f0200e6, 0x7f0200e7, 0x7f020120 };
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 = { 0x10100d4, 0x7f020034, 0x7f020035 };
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 = { 0x10100d0, 0x10100f2, 0x10100f3 };
public static final int ViewStubCompat_android_id = 0;
public static final int ViewStubCompat_android_layout = 1;
public static final int ViewStubCompat_android_inflatedId = 2;
}
}
| [
"fs_mehemel@esi.dz"
] | fs_mehemel@esi.dz |
4246c60831e914b8644db716781045211e36c031 | e705f88c4a45c60a1dd37ffbdc71cab876cf43ff | /src/main/java/ru/onyx/clipper/pdfgenerator/converter/JSONObject.java | d25fce8d36c0f33562e21089fd0756ae6d21fd7a | [] | no_license | MasterSPB/pdf-generator | 468f99a9cb663ac5f67914cd40277f12a52dd065 | ab7e36f4558579245ba5da1e656dc48a3bbe9764 | refs/heads/master | 2021-01-01T18:42:34.868937 | 2015-12-08T08:37:34 | 2015-12-08T08:37:34 | 19,023,355 | 0 | 8 | null | 2015-12-08T08:38:52 | 2014-04-22T09:02:55 | Java | UTF-8 | Java | false | false | 56,501 | java | package ru.onyx.clipper.pdfgenerator.converter;
/**
* Created by anton on 30.04.14.
*/
import java.io.IOException;
import java.io.StringWriter;
import java.io.Writer;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Collection;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import java.util.ResourceBundle;
import java.util.Set;
/**
* A JSONObject is an unordered collection of name/value pairs. Its external
* form is a string wrapped in curly braces with colons between the names and
* values, and commas between the values and names. The internal form is an
* object having <code>get</code> and <code>opt</code> methods for accessing
* the values by name, and <code>put</code> methods for adding or replacing
* values by name. The values can be any of these types: <code>Boolean</code>,
* <code>JSONArray</code>, <code>JSONObject</code>, <code>Number</code>,
* <code>String</code>, or the <code>JSONObject.NULL</code> object. A
* JSONObject constructor can be used to convert an external form JSON text
* into an internal form whose values can be retrieved with the
* <code>get</code> and <code>opt</code> methods, or to convert values into a
* JSON text using the <code>put</code> and <code>toString</code> methods. A
* <code>get</code> method returns a value if one can be found, and throws an
* exception if one cannot be found. An <code>opt</code> method returns a
* default value instead of throwing an exception, and so is useful for
* obtaining optional values.
* <p>
* The generic <code>get()</code> and <code>opt()</code> methods return an
* object, which you can cast or query for type. There are also typed
* <code>get</code> and <code>opt</code> methods that do type checking and type
* coercion for you. The opt methods differ from the get methods in that they
* do not throw. Instead, they return a specified value, such as null.
* <p>
* The <code>put</code> methods add or replace values in an object. For
* example,
*
* <pre>
* myString = new JSONObject()
* .put("JSON", "Hello, World!").toString();
* </pre>
*
* produces the string <code>{"JSON": "Hello, World"}</code>.
* <p>
* The texts produced by the <code>toString</code> methods strictly conform to
* the JSON syntax rules. The constructors are more forgiving in the texts they
* will accept:
* <ul>
* <li>An extra <code>,</code> <small>(comma)</small> may appear just
* before the closing brace.</li>
* <li>Strings may be quoted with <code>'</code> <small>(single
* quote)</small>.</li>
* <li>Strings do not need to be quoted at all if they do not begin with a
* quote or single quote, and if they do not contain leading or trailing
* spaces, and if they do not contain any of these characters:
* <code>{ } [ ] / \ : , #</code> and if they do not look like numbers and
* if they are not the reserved words <code>true</code>, <code>false</code>,
* or <code>null</code>.</li>
* </ul>
*
* @author JSON.org
* @version 2014-04-21
*/
public class JSONObject {
/**
* JSONObject.NULL is equivalent to the value that JavaScript calls null,
* whilst Java's null is equivalent to the value that JavaScript calls
* undefined.
*/
private static final class Null {
/**
* There is only intended to be a single instance of the NULL object,
* so the clone method returns itself.
*
* @return NULL.
*/
protected final Object clone() {
return this;
}
/**
* A Null object is equal to the null value and to itself.
*
* @param object
* An object to test for nullness.
* @return true if the object parameter is the JSONObject.NULL object or
* null.
*/
public boolean equals(Object object) {
return object == null || object == this;
}
/**
* Get the "null" string value.
*
* @return The string "null".
*/
public String toString() {
return "null";
}
}
/**
* The map where the JSONObject's properties are kept.
*/
private final Map map;
/**
* It is sometimes more convenient and less ambiguous to have a
* <code>NULL</code> object than to use Java's <code>null</code> value.
* <code>JSONObject.NULL.equals(null)</code> returns <code>true</code>.
* <code>JSONObject.NULL.toString()</code> returns <code>"null"</code>.
*/
public static final Object NULL = new Null();
/**
* Construct an empty JSONObject.
*/
public JSONObject() {
this.map = new HashMap();
}
/**
* Construct a JSONObject from a subset of another JSONObject. An array of
* strings is used to identify the keys that should be copied. Missing keys
* are ignored.
*
* @param jo
* A JSONObject.
* @param names
* An array of strings.
* @throws JSONException
* @exception JSONException
* If a value is a non-finite number or if a name is
* duplicated.
*/
public JSONObject(JSONObject jo, String[] names) {
this();
for (int i = 0; i < names.length; i += 1) {
try {
this.putOnce(names[i], jo.opt(names[i]));
} catch (Exception ignore) {
}
}
}
/**
* Construct a JSONObject from a JSONTokener.
*
* @param x
* A JSONTokener object containing the source string.
* @throws JSONException
* If there is a syntax error in the source string or a
* duplicated key.
*/
public JSONObject(JSONTokener x) throws JSONException {
this();
char c;
String key;
if (x.nextClean() != '{') {
throw x.syntaxError("A JSONObject text must begin with '{'");
}
for (;;) {
c = x.nextClean();
switch (c) {
case 0:
throw x.syntaxError("A JSONObject text must end with '}'");
case '}':
return;
default:
x.back();
key = x.nextValue().toString();
}
// The key is followed by ':'.
c = x.nextClean();
if (c != ':') {
throw x.syntaxError("Expected a ':' after a key");
}
this.putOnce(key, x.nextValue());
// Pairs are separated by ','.
switch (x.nextClean()) {
case ';':
case ',':
if (x.nextClean() == '}') {
return;
}
x.back();
break;
case '}':
return;
default:
throw x.syntaxError("Expected a ',' or '}'");
}
}
}
/**
* Construct a JSONObject from a Map.
*
* @param map
* A map object that can be used to initialize the contents of
* the JSONObject.
* @throws JSONException
*/
public JSONObject(Map map) {
this.map = new HashMap();
if (map != null) {
Iterator i = map.entrySet().iterator();
while (i.hasNext()) {
Map.Entry e = (Map.Entry) i.next();
Object value = e.getValue();
if (value != null) {
this.map.put(e.getKey(), wrap(value));
}
}
}
}
/**
* Construct a JSONObject from an Object using bean getters. It reflects on
* all of the public methods of the object. For each of the methods with no
* parameters and a name starting with <code>"get"</code> or
* <code>"is"</code> followed by an uppercase letter, the method is invoked,
* and a key and the value returned from the getter method are put into the
* new JSONObject.
*
* The key is formed by removing the <code>"get"</code> or <code>"is"</code>
* prefix. If the second remaining character is not upper case, then the
* first character is converted to lower case.
*
* For example, if an object has a method named <code>"getName"</code>, and
* if the result of calling <code>object.getName()</code> is
* <code>"Larry Fine"</code>, then the JSONObject will contain
* <code>"name": "Larry Fine"</code>.
*
* @param bean
* An object that has getter methods that should be used to make
* a JSONObject.
*/
public JSONObject(Object bean) {
this();
this.populateMap(bean);
}
/**
* Construct a JSONObject from an Object, using reflection to find the
* public members. The resulting JSONObject's keys will be the strings from
* the names array, and the values will be the field values associated with
* those keys in the object. If a key is not found or not visible, then it
* will not be copied into the new JSONObject.
*
* @param object
* An object that has fields that should be used to make a
* JSONObject.
* @param names
* An array of strings, the names of the fields to be obtained
* from the object.
*/
public JSONObject(Object object, String names[]) {
this();
Class c = object.getClass();
for (int i = 0; i < names.length; i += 1) {
String name = names[i];
try {
this.putOpt(name, c.getField(name).get(object));
} catch (Exception ignore) {
}
}
}
/**
* Construct a JSONObject from a source JSON text string. This is the most
* commonly used JSONObject constructor.
*
* @param source
* A string beginning with <code>{</code> <small>(left
* brace)</small> and ending with <code>}</code>
* <small>(right brace)</small>.
* @exception JSONException
* If there is a syntax error in the source string or a
* duplicated key.
*/
public JSONObject(String source) throws JSONException {
this(new JSONTokener(source));
}
/**
* Construct a JSONObject from a ResourceBundle.
*
* @param baseName
* The ResourceBundle base name.
* @param locale
* The Locale to load the ResourceBundle for.
* @throws JSONException
* If any JSONExceptions are detected.
*/
public JSONObject(String baseName, Locale locale) throws JSONException {
this();
ResourceBundle bundle = ResourceBundle.getBundle(baseName, locale,
Thread.currentThread().getContextClassLoader());
// Iterate through the keys in the bundle.
Enumeration keys = bundle.getKeys();
while (keys.hasMoreElements()) {
Object key = keys.nextElement();
if (key instanceof String) {
// Go through the path, ensuring that there is a nested JSONObject for each
// segment except the last. Add the value using the last segment's name into
// the deepest nested JSONObject.
String[] path = ((String) key).split("\\.");
int last = path.length - 1;
JSONObject target = this;
for (int i = 0; i < last; i += 1) {
String segment = path[i];
JSONObject nextTarget = target.optJSONObject(segment);
if (nextTarget == null) {
nextTarget = new JSONObject();
target.put(segment, nextTarget);
}
target = nextTarget;
}
target.put(path[last], bundle.getString((String) key));
}
}
}
/**
* Accumulate values under a key. It is similar to the put method except
* that if there is already an object stored under the key then a JSONArray
* is stored under the key to hold all of the accumulated values. If there
* is already a JSONArray, then the new value is appended to it. In
* contrast, the put method replaces the previous value.
*
* If only one value is accumulated that is not a JSONArray, then the result
* will be the same as using put. But if multiple values are accumulated,
* then the result will be like append.
*
* @param key
* A key string.
* @param value
* An object to be accumulated under the key.
* @return this.
* @throws JSONException
* If the value is an invalid number or if the key is null.
*/
public JSONObject accumulate(String key, Object value) throws JSONException {
key = key.replace('.', '_');
testValidity(value);
Object object = this.opt(key);
if (object == null) {
this.put(key,
value instanceof JSONArray ? new JSONArray().put(value)
: value);
} else if (object instanceof JSONArray) {
((JSONArray) object).put(value);
} else {
this.put(key, new JSONArray().put(object).put(value));
}
return this;
}
/**
* Append values to the array under a key. If the key does not exist in the
* JSONObject, then the key is put in the JSONObject with its value being a
* JSONArray containing the value parameter. If the key was already
* associated with a JSONArray, then the value parameter is appended to it.
*
* @param key
* A key string.
* @param value
* An object to be accumulated under the key.
* @return this.
* @throws JSONException
* If the key is null or if the current value associated with
* the key is not a JSONArray.
*/
public JSONObject append(String key, Object value) throws JSONException {
testValidity(value);
Object object = this.opt(key);
if (object == null) {
this.put(key, new JSONArray().put(value));
} else if (object instanceof JSONArray) {
this.put(key, ((JSONArray) object).put(value));
} else {
throw new JSONException("JSONObject[" + key
+ "] is not a JSONArray.");
}
return this;
}
/**
* Produce a string from a double. The string "null" will be returned if the
* number is not finite.
*
* @param d
* A double.
* @return A String.
*/
public static String doubleToString(double d) {
if (Double.isInfinite(d) || Double.isNaN(d)) {
return "null";
}
// Shave off trailing zeros and decimal point, if possible.
String string = Double.toString(d);
if (string.indexOf('.') > 0 && string.indexOf('e') < 0
&& string.indexOf('E') < 0) {
while (string.endsWith("0")) {
string = string.substring(0, string.length() - 1);
}
if (string.endsWith(".")) {
string = string.substring(0, string.length() - 1);
}
}
return string;
}
/**
* Get the value object associated with a key.
*
* @param key
* A key string.
* @return The object associated with the key.
* @throws JSONException
* if the key is not found.
*/
public Object get(String key) throws JSONException {
if (key == null) {
throw new JSONException("Null key.");
}
Object object = this.opt(key);
if (object == null) {
throw new JSONException("JSONObject[" + quote(key) + "] not found.");
}
return object;
}
/**
* Get the boolean value associated with a key.
*
* @param key
* A key string.
* @return The truth.
* @throws JSONException
* if the value is not a Boolean or the String "true" or
* "false".
*/
public boolean getBoolean(String key) throws JSONException {
Object object = this.get(key);
if (object.equals(Boolean.FALSE)
|| (object instanceof String && ((String) object)
.equalsIgnoreCase("false"))) {
return false;
} else if (object.equals(Boolean.TRUE)
|| (object instanceof String && ((String) object)
.equalsIgnoreCase("true"))) {
return true;
}
throw new JSONException("JSONObject[" + quote(key)
+ "] is not a Boolean.");
}
/**
* Get the double value associated with a key.
*
* @param key
* A key string.
* @return The numeric value.
* @throws JSONException
* if the key is not found or if the value is not a Number
* object and cannot be converted to a number.
*/
public double getDouble(String key) throws JSONException {
Object object = this.get(key);
try {
return object instanceof Number ? ((Number) object).doubleValue()
: Double.parseDouble((String) object);
} catch (Exception e) {
throw new JSONException("JSONObject[" + quote(key)
+ "] is not a number.");
}
}
/**
* Get the int value associated with a key.
*
* @param key
* A key string.
* @return The integer value.
* @throws JSONException
* if the key is not found or if the value cannot be converted
* to an integer.
*/
public int getInt(String key) throws JSONException {
Object object = this.get(key);
try {
return object instanceof Number ? ((Number) object).intValue()
: Integer.parseInt((String) object);
} catch (Exception e) {
throw new JSONException("JSONObject[" + quote(key)
+ "] is not an int.");
}
}
/**
* Get the JSONArray value associated with a key.
*
* @param key
* A key string.
* @return A JSONArray which is the value.
* @throws JSONException
* if the key is not found or if the value is not a JSONArray.
*/
public JSONArray getJSONArray(String key) throws JSONException {
Object object = this.get(key);
if (object instanceof JSONArray) {
return (JSONArray) object;
}
throw new JSONException("JSONObject[" + quote(key)
+ "] is not a JSONArray.");
}
/**
* Get the JSONObject value associated with a key.
*
* @param key
* A key string.
* @return A JSONObject which is the value.
* @throws JSONException
* if the key is not found or if the value is not a JSONObject.
*/
public JSONObject getJSONObject(String key) throws JSONException {
Object object = this.get(key);
if (object instanceof JSONObject) {
return (JSONObject) object;
}
throw new JSONException("JSONObject[" + quote(key)
+ "] is not a JSONObject.");
}
/**
* Get the long value associated with a key.
*
* @param key
* A key string.
* @return The long value.
* @throws JSONException
* if the key is not found or if the value cannot be converted
* to a long.
*/
public long getLong(String key) throws JSONException {
Object object = this.get(key);
try {
return object instanceof Number ? ((Number) object).longValue()
: Long.parseLong((String) object);
} catch (Exception e) {
throw new JSONException("JSONObject[" + quote(key)
+ "] is not a long.");
}
}
/**
* Get an array of field names from a JSONObject.
*
* @return An array of field names, or null if there are no names.
*/
public static String[] getNames(JSONObject jo) {
int length = jo.length();
if (length == 0) {
return null;
}
Iterator iterator = jo.keys();
String[] names = new String[length];
int i = 0;
while (iterator.hasNext()) {
names[i] = (String) iterator.next();
i += 1;
}
return names;
}
/**
* Get an array of field names from an Object.
*
* @return An array of field names, or null if there are no names.
*/
public static String[] getNames(Object object) {
if (object == null) {
return null;
}
Class klass = object.getClass();
Field[] fields = klass.getFields();
int length = fields.length;
if (length == 0) {
return null;
}
String[] names = new String[length];
for (int i = 0; i < length; i += 1) {
names[i] = fields[i].getName();
}
return names;
}
/**
* Get the string associated with a key.
*
* @param key
* A key string.
* @return A string which is the value.
* @throws JSONException
* if there is no string value for the key.
*/
public String getString(String key) throws JSONException {
Object object = this.get(key);
if (object instanceof String) {
return (String) object;
}
throw new JSONException("JSONObject[" + quote(key) + "] not a string.");
}
/**
* Determine if the JSONObject contains a specific key.
*
* @param key
* A key string.
* @return true if the key exists in the JSONObject.
*/
public boolean has(String key) {
return this.map.containsKey(key);
}
/**
* Increment a property of a JSONObject. If there is no such property,
* create one with a value of 1. If there is such a property, and if it is
* an Integer, Long, Double, or Float, then add one to it.
*
* @param key
* A key string.
* @return this.
* @throws JSONException
* If there is already a property with this name that is not an
* Integer, Long, Double, or Float.
*/
public JSONObject increment(String key) throws JSONException {
Object value = this.opt(key);
if (value == null) {
this.put(key, 1);
} else if (value instanceof Integer) {
this.put(key, ((Integer) value).intValue() + 1);
} else if (value instanceof Long) {
this.put(key, ((Long) value).longValue() + 1);
} else if (value instanceof Double) {
this.put(key, ((Double) value).doubleValue() + 1);
} else if (value instanceof Float) {
this.put(key, ((Float) value).floatValue() + 1);
} else {
throw new JSONException("Unable to increment [" + quote(key) + "].");
}
return this;
}
/**
* Determine if the value associated with the key is null or if there is no
* value.
*
* @param key
* A key string.
* @return true if there is no value associated with the key or if the value
* is the JSONObject.NULL object.
*/
public boolean isNull(String key) {
return JSONObject.NULL.equals(this.opt(key));
}
/**
* Get an enumeration of the keys of the JSONObject.
*
* @return An iterator of the keys.
*/
public Iterator keys() {
return this.keySet().iterator();
}
/**
* Get a set of keys of the JSONObject.
*
* @return A keySet.
*/
public Set keySet() {
return this.map.keySet();
}
/**
* Get the number of keys stored in the JSONObject.
*
* @return The number of keys in the JSONObject.
*/
public int length() {
return this.map.size();
}
/**
* Produce a JSONArray containing the names of the elements of this
* JSONObject.
*
* @return A JSONArray containing the key strings, or null if the JSONObject
* is empty.
*/
public JSONArray names() {
JSONArray ja = new JSONArray();
Iterator keys = this.keys();
while (keys.hasNext()) {
ja.put(keys.next());
}
return ja.length() == 0 ? null : ja;
}
/**
* Produce a string from a Number.
*
* @param number
* A Number
* @return A String.
* @throws JSONException
* If n is a non-finite number.
*/
public static String numberToString(Number number) throws JSONException {
if (number == null) {
throw new JSONException("Null pointer");
}
testValidity(number);
// Shave off trailing zeros and decimal point, if possible.
String string = number.toString();
if (string.indexOf('.') > 0 && string.indexOf('e') < 0
&& string.indexOf('E') < 0) {
while (string.endsWith("0")) {
string = string.substring(0, string.length() - 1);
}
if (string.endsWith(".")) {
string = string.substring(0, string.length() - 1);
}
}
return string;
}
/**
* Get an optional value associated with a key.
*
* @param key
* A key string.
* @return An object which is the value, or null if there is no value.
*/
public Object opt(String key) {
return key == null ? null : this.map.get(key);
}
/**
* Get an optional boolean associated with a key. It returns false if there
* is no such key, or if the value is not Boolean.TRUE or the String "true".
*
* @param key
* A key string.
* @return The truth.
*/
public boolean optBoolean(String key) {
return this.optBoolean(key, false);
}
/**
* Get an optional boolean associated with a key. It returns the
* defaultValue if there is no such key, or if it is not a Boolean or the
* String "true" or "false" (case insensitive).
*
* @param key
* A key string.
* @param defaultValue
* The default.
* @return The truth.
*/
public boolean optBoolean(String key, boolean defaultValue) {
try {
return this.getBoolean(key);
} catch (Exception e) {
return defaultValue;
}
}
/**
* Get an optional double associated with a key, or NaN if there is no such
* key or if its value is not a number. If the value is a string, an attempt
* will be made to evaluate it as a number.
*
* @param key
* A string which is the key.
* @return An object which is the value.
*/
public double optDouble(String key) {
return this.optDouble(key, Double.NaN);
}
/**
* Get an optional double associated with a key, or the defaultValue if
* there is no such key or if its value is not a number. If the value is a
* string, an attempt will be made to evaluate it as a number.
*
* @param key
* A key string.
* @param defaultValue
* The default.
* @return An object which is the value.
*/
public double optDouble(String key, double defaultValue) {
try {
return this.getDouble(key);
} catch (Exception e) {
return defaultValue;
}
}
/**
* Get an optional int value associated with a key, or zero if there is no
* such key or if the value is not a number. If the value is a string, an
* attempt will be made to evaluate it as a number.
*
* @param key
* A key string.
* @return An object which is the value.
*/
public int optInt(String key) {
return this.optInt(key, 0);
}
/**
* Get an optional int value associated with a key, or the default if there
* is no such key or if the value is not a number. If the value is a string,
* an attempt will be made to evaluate it as a number.
*
* @param key
* A key string.
* @param defaultValue
* The default.
* @return An object which is the value.
*/
public int optInt(String key, int defaultValue) {
try {
return this.getInt(key);
} catch (Exception e) {
return defaultValue;
}
}
/**
* Get an optional JSONArray associated with a key. It returns null if there
* is no such key, or if its value is not a JSONArray.
*
* @param key
* A key string.
* @return A JSONArray which is the value.
*/
public JSONArray optJSONArray(String key) {
Object o = this.opt(key);
return o instanceof JSONArray ? (JSONArray) o : null;
}
/**
* Get an optional JSONObject associated with a key. It returns null if
* there is no such key, or if its value is not a JSONObject.
*
* @param key
* A key string.
* @return A JSONObject which is the value.
*/
public JSONObject optJSONObject(String key) {
Object object = this.opt(key);
return object instanceof JSONObject ? (JSONObject) object : null;
}
/**
* Get an optional long value associated with a key, or zero if there is no
* such key or if the value is not a number. If the value is a string, an
* attempt will be made to evaluate it as a number.
*
* @param key
* A key string.
* @return An object which is the value.
*/
public long optLong(String key) {
return this.optLong(key, 0);
}
/**
* Get an optional long value associated with a key, or the default if there
* is no such key or if the value is not a number. If the value is a string,
* an attempt will be made to evaluate it as a number.
*
* @param key
* A key string.
* @param defaultValue
* The default.
* @return An object which is the value.
*/
public long optLong(String key, long defaultValue) {
try {
return this.getLong(key);
} catch (Exception e) {
return defaultValue;
}
}
/**
* Get an optional string associated with a key. It returns an empty string
* if there is no such key. If the value is not a string and is not null,
* then it is converted to a string.
*
* @param key
* A key string.
* @return A string which is the value.
*/
public String optString(String key) {
return this.optString(key, "");
}
/**
* Get an optional string associated with a key. It returns the defaultValue
* if there is no such key.
*
* @param key
* A key string.
* @param defaultValue
* The default.
* @return A string which is the value.
*/
public String optString(String key, String defaultValue) {
Object object = this.opt(key);
return NULL.equals(object) ? defaultValue : object.toString();
}
private void populateMap(Object bean) {
Class klass = bean.getClass();
// If klass is a System class then set includeSuperClass to false.
boolean includeSuperClass = klass.getClassLoader() != null;
Method[] methods = includeSuperClass ? klass.getMethods() : klass
.getDeclaredMethods();
for (int i = 0; i < methods.length; i += 1) {
try {
Method method = methods[i];
if (Modifier.isPublic(method.getModifiers())) {
String name = method.getName();
String key = "";
if (name.startsWith("get")) {
if ("getClass".equals(name)
|| "getDeclaringClass".equals(name)) {
key = "";
} else {
key = name.substring(3);
}
} else if (name.startsWith("is")) {
key = name.substring(2);
}
if (key.length() > 0
&& Character.isUpperCase(key.charAt(0))
&& method.getParameterTypes().length == 0) {
if (key.length() == 1) {
key = key.toLowerCase();
} else if (!Character.isUpperCase(key.charAt(1))) {
key = key.substring(0, 1).toLowerCase()
+ key.substring(1);
}
Object result = method.invoke(bean, (Object[]) null);
if (result != null) {
this.map.put(key, wrap(result));
}
}
}
} catch (Exception ignore) {
}
}
}
/**
* Put a key/boolean pair in the JSONObject.
*
* @param key
* A key string.
* @param value
* A boolean which is the value.
* @return this.
* @throws JSONException
* If the key is null.
*/
public JSONObject put(String key, boolean value) throws JSONException {
this.put(key, value ? Boolean.TRUE : Boolean.FALSE);
return this;
}
/**
* Put a key/value pair in the JSONObject, where the value will be a
* JSONArray which is produced from a Collection.
*
* @param key
* A key string.
* @param value
* A Collection value.
* @return this.
* @throws JSONException
*/
public JSONObject put(String key, Collection value) throws JSONException {
this.put(key, new JSONArray(value));
return this;
}
/**
* Put a key/double pair in the JSONObject.
*
* @param key
* A key string.
* @param value
* A double which is the value.
* @return this.
* @throws JSONException
* If the key is null or if the number is invalid.
*/
public JSONObject put(String key, double value) throws JSONException {
this.put(key, new Double(value));
return this;
}
/**
* Put a key/int pair in the JSONObject.
*
* @param key
* A key string.
* @param value
* An int which is the value.
* @return this.
* @throws JSONException
* If the key is null.
*/
public JSONObject put(String key, int value) throws JSONException {
this.put(key, new Integer(value));
return this;
}
/**
* Put a key/long pair in the JSONObject.
*
* @param key
* A key string.
* @param value
* A long which is the value.
* @return this.
* @throws JSONException
* If the key is null.
*/
public JSONObject put(String key, long value) throws JSONException {
this.put(key, new Long(value));
return this;
}
/**
* Put a key/value pair in the JSONObject, where the value will be a
* JSONObject which is produced from a Map.
*
* @param key
* A key string.
* @param value
* A Map value.
* @return this.
* @throws JSONException
*/
public JSONObject put(String key, Map value) throws JSONException {
this.put(key, new JSONObject(value));
return this;
}
/**
* Put a key/value pair in the JSONObject. If the value is null, then the
* key will be removed from the JSONObject if it is present.
*
* @param key
* A key string.
* @param value
* An object which is the value. It should be of one of these
* types: Boolean, Double, Integer, JSONArray, JSONObject, Long,
* String, or the JSONObject.NULL object.
* @return this.
* @throws JSONException
* If the value is non-finite number or if the key is null.
*/
public JSONObject put(String key, Object value) throws JSONException {
if (key == null) {
throw new NullPointerException("Null key.");
}
if (value != null) {
testValidity(value);
this.map.put(key, value);
} else {
this.remove(key);
}
return this;
}
/**
* Put a key/value pair in the JSONObject, but only if the key and the value
* are both non-null, and only if there is not already a member with that
* name.
*
* @param key
* @param value
* @return his.
* @throws JSONException
* if the key is a duplicate
*/
public JSONObject putOnce(String key, Object value) throws JSONException {
if (key != null && value != null) {
if (this.opt(key) != null) {
throw new JSONException("Duplicate key \"" + key + "\"");
}
this.put(key, value);
}
return this;
}
/**
* Put a key/value pair in the JSONObject, but only if the key and the value
* are both non-null.
*
* @param key
* A key string.
* @param value
* An object which is the value. It should be of one of these
* types: Boolean, Double, Integer, JSONArray, JSONObject, Long,
* String, or the JSONObject.NULL object.
* @return this.
* @throws JSONException
* If the value is a non-finite number.
*/
public JSONObject putOpt(String key, Object value) throws JSONException {
if (key != null && value != null) {
this.put(key, value);
}
return this;
}
/**
* Produce a string in double quotes with backslash sequences in all the
* right places. A backslash will be inserted within </, producing <\/,
* allowing JSON text to be delivered in HTML. In JSON text, a string cannot
* contain a control character or an unescaped quote or backslash.
*
* @param string
* A String
* @return A String correctly formatted for insertion in a JSON text.
*/
public static String quote(String string) {
StringWriter sw = new StringWriter();
synchronized (sw.getBuffer()) {
try {
return quote(string, sw).toString();
} catch (IOException ignored) {
// will never happen - we are writing to a string writer
return "";
}
}
}
public static Writer quote(String string, Writer w) throws IOException {
if (string == null || string.length() == 0) {
w.write("\"\"");
return w;
}
char b;
char c = 0;
String hhhh;
int i;
int len = string.length();
w.write('"');
for (i = 0; i < len; i += 1) {
b = c;
c = string.charAt(i);
switch (c) {
case '\\':
case '"':
w.write('\\');
w.write(c);
break;
case '/':
if (b == '<') {
w.write('\\');
}
w.write(c);
break;
case '\b':
w.write("\\b");
break;
case '\t':
w.write("\\t");
break;
case '\n':
w.write("\\n");
break;
case '\f':
w.write("\\f");
break;
case '\r':
w.write("\\r");
break;
default:
if (c < ' ' || (c >= '\u0080' && c < '\u00a0')
|| (c >= '\u2000' && c < '\u2100')) {
w.write("\\u");
hhhh = Integer.toHexString(c);
w.write("0000", 0, 4 - hhhh.length());
w.write(hhhh);
} else {
w.write(c);
}
}
}
w.write('"');
return w;
}
/**
* Remove a name and its value, if present.
*
* @param key
* The name to be removed.
* @return The value that was associated with the name, or null if there was
* no value.
*/
public Object remove(String key) {
return this.map.remove(key);
}
/**
* Determine if two JSONObjects are similar.
* They must contain the same set of names which must be associated with
* similar values.
*
* @param other The other JSONObject
* @return true if they are equal
*/
public boolean similar(Object other) {
try {
if (!(other instanceof JSONObject)) {
return false;
}
Set set = this.keySet();
if (!set.equals(((JSONObject)other).keySet())) {
return false;
}
Iterator iterator = set.iterator();
while (iterator.hasNext()) {
String name = (String)iterator.next();
Object valueThis = this.get(name);
Object valueOther = ((JSONObject)other).get(name);
if (valueThis instanceof JSONObject) {
if (!((JSONObject)valueThis).similar(valueOther)) {
return false;
}
} else if (valueThis instanceof JSONArray) {
if (!((JSONArray)valueThis).similar(valueOther)) {
return false;
}
} else if (!valueThis.equals(valueOther)) {
return false;
}
}
return true;
} catch (Throwable exception) {
return false;
}
}
/**
* Try to convert a string into a number, boolean, or null. If the string
* can't be converted, return the string.
*
* @param string
* A String.
* @return A simple JSON value.
*/
public static Object stringToValue(String string) {
Double d;
if (string.equals("")) {
return string;
}
if (string.equalsIgnoreCase("true")) {
return Boolean.TRUE;
}
if (string.equalsIgnoreCase("false")) {
return Boolean.FALSE;
}
if (string.equalsIgnoreCase("null")) {
return JSONObject.NULL;
}
/*
* If it might be a number, try converting it. If a number cannot be
* produced, then the value will just be a string.
*/
char b = string.charAt(0);
if ((b >= '0' && b <= '9') || b == '-') {
try {
if (string.indexOf('.') > -1 || string.indexOf('e') > -1
|| string.indexOf('E') > -1) {
d = Double.valueOf(string);
if (!d.isInfinite() && !d.isNaN()) {
return d;
}
} else {
Long myLong = new Long(string);
if (string.equals(myLong.toString())) {
if (myLong.longValue() == myLong.intValue()) {
return new Integer(myLong.intValue());
} else {
return myLong;
}
}
}
} catch (Exception ignore) {
}
}
return string;
}
/**
* Throw an exception if the object is a NaN or infinite number.
*
* @param o
* The object to test.
* @throws JSONException
* If o is a non-finite number.
*/
public static void testValidity(Object o) throws JSONException {
if (o != null) {
if (o instanceof Double) {
if (((Double) o).isInfinite() || ((Double) o).isNaN()) {
throw new JSONException(
"JSON does not allow non-finite numbers.");
}
} else if (o instanceof Float) {
if (((Float) o).isInfinite() || ((Float) o).isNaN()) {
throw new JSONException(
"JSON does not allow non-finite numbers.");
}
}
}
}
/**
* Produce a JSONArray containing the values of the members of this
* JSONObject.
*
* @param names
* A JSONArray containing a list of key strings. This determines
* the sequence of the values in the result.
* @return A JSONArray of values.
* @throws JSONException
* If any of the values are non-finite numbers.
*/
public JSONArray toJSONArray(JSONArray names) throws JSONException {
if (names == null || names.length() == 0) {
return null;
}
JSONArray ja = new JSONArray();
for (int i = 0; i < names.length(); i += 1) {
ja.put(this.opt(names.getString(i)));
}
return ja;
}
/**
* Make a JSON text of this JSONObject. For compactness, no whitespace is
* added. If this would not result in a syntactically correct JSON text,
* then null will be returned instead.
* <p>
* Warning: This method assumes that the data structure is acyclical.
*
* @return a printable, displayable, portable, transmittable representation
* of the object, beginning with <code>{</code> <small>(left
* brace)</small> and ending with <code>}</code> <small>(right
* brace)</small>.
*/
public String toString() {
try {
return this.toString(0);
} catch (Exception e) {
return null;
}
}
/**
* Make a prettyprinted JSON text of this JSONObject.
* <p>
* Warning: This method assumes that the data structure is acyclical.
*
* @param indentFactor
* The number of spaces to add to each level of indentation.
* @return a printable, displayable, portable, transmittable representation
* of the object, beginning with <code>{</code> <small>(left
* brace)</small> and ending with <code>}</code> <small>(right
* brace)</small>.
* @throws JSONException
* If the object contains an invalid number.
*/
public String toString(int indentFactor) throws JSONException {
StringWriter w = new StringWriter();
synchronized (w.getBuffer()) {
return this.write(w, indentFactor, 0).toString();
}
}
/**
* Make a JSON text of an Object value. If the object has an
* value.toJSONString() method, then that method will be used to produce the
* JSON text. The method is required to produce a strictly conforming text.
* If the object does not contain a toJSONString method (which is the most
* common case), then a text will be produced by other means. If the value
* is an array or Collection, then a JSONArray will be made from it and its
* toJSONString method will be called. If the value is a MAP, then a
* JSONObject will be made from it and its toJSONString method will be
* called. Otherwise, the value's toString method will be called, and the
* result will be quoted.
*
* <p>
* Warning: This method assumes that the data structure is acyclical.
*
* @param value
* The value to be serialized.
* @return a printable, displayable, transmittable representation of the
* object, beginning with <code>{</code> <small>(left
* brace)</small> and ending with <code>}</code> <small>(right
* brace)</small>.
* @throws JSONException
* If the value is or contains an invalid number.
*/
public static String valueToString(Object value) throws JSONException {
if (value == null || value.equals(null)) {
return "null";
}
if (value instanceof JSONString) {
Object object;
try {
object = ((JSONString) value).toJSONString();
} catch (Exception e) {
throw new JSONException(e);
}
if (object instanceof String) {
return (String) object;
}
throw new JSONException("Bad value from toJSONString: " + object);
}
if (value instanceof Number) {
return numberToString((Number) value);
}
if (value instanceof Boolean || value instanceof JSONObject
|| value instanceof JSONArray) {
return value.toString();
}
if (value instanceof Map) {
return new JSONObject((Map) value).toString();
}
if (value instanceof Collection) {
return new JSONArray((Collection) value).toString();
}
if (value.getClass().isArray()) {
return new JSONArray(value).toString();
}
return quote(value.toString());
}
/**
* Wrap an object, if necessary. If the object is null, return the NULL
* object. If it is an array or collection, wrap it in a JSONArray. If it is
* a map, wrap it in a JSONObject. If it is a standard property (Double,
* String, et al) then it is already wrapped. Otherwise, if it comes from
* one of the java packages, turn it into a string. And if it doesn't, try
* to wrap it in a JSONObject. If the wrapping fails, then null is returned.
*
* @param object
* The object to wrap
* @return The wrapped value
*/
public static Object wrap(Object object) {
try {
if (object == null) {
return NULL;
}
if (object instanceof JSONObject || object instanceof JSONArray
|| NULL.equals(object) || object instanceof JSONString
|| object instanceof Byte || object instanceof Character
|| object instanceof Short || object instanceof Integer
|| object instanceof Long || object instanceof Boolean
|| object instanceof Float || object instanceof Double
|| object instanceof String) {
return object;
}
if (object instanceof Collection) {
return new JSONArray((Collection) object);
}
if (object.getClass().isArray()) {
return new JSONArray(object);
}
if (object instanceof Map) {
return new JSONObject((Map) object);
}
Package objectPackage = object.getClass().getPackage();
String objectPackageName = objectPackage != null ? objectPackage
.getName() : "";
if (objectPackageName.startsWith("java.")
|| objectPackageName.startsWith("javax.")
|| object.getClass().getClassLoader() == null) {
return object.toString();
}
return new JSONObject(object);
} catch (Exception exception) {
return null;
}
}
/**
* Write the contents of the JSONObject as JSON text to a writer. For
* compactness, no whitespace is added.
* <p>
* Warning: This method assumes that the data structure is acyclical.
*
* @return The writer.
* @throws JSONException
*/
public Writer write(Writer writer) throws JSONException {
return this.write(writer, 0, 0);
}
static final Writer writeValue(Writer writer, Object value,
int indentFactor, int indent) throws JSONException, IOException {
if (value == null || value.equals(null)) {
writer.write("null");
} else if (value instanceof JSONObject) {
((JSONObject) value).write(writer, indentFactor, indent);
} else if (value instanceof JSONArray) {
((JSONArray) value).write(writer, indentFactor, indent);
} else if (value instanceof Map) {
new JSONObject((Map) value).write(writer, indentFactor, indent);
} else if (value instanceof Collection) {
new JSONArray((Collection) value).write(writer, indentFactor,
indent);
} else if (value.getClass().isArray()) {
new JSONArray(value).write(writer, indentFactor, indent);
} else if (value instanceof Number) {
writer.write(numberToString((Number) value));
} else if (value instanceof Boolean) {
writer.write(value.toString());
} else if (value instanceof JSONString) {
Object o;
try {
o = ((JSONString) value).toJSONString();
} catch (Exception e) {
throw new JSONException(e);
}
writer.write(o != null ? o.toString() : quote(value.toString()));
} else {
quote(value.toString(), writer);
}
return writer;
}
static final void indent(Writer writer, int indent) throws IOException {
for (int i = 0; i < indent; i += 1) {
writer.write(' ');
}
}
/**
* Write the contents of the JSONObject as JSON text to a writer. For
* compactness, no whitespace is added.
* <p>
* Warning: This method assumes that the data structure is acyclical.
*
* @return The writer.
* @throws JSONException
*/
Writer write(Writer writer, int indentFactor, int indent)
throws JSONException {
try {
boolean commanate = false;
final int length = this.length();
Iterator keys = this.keys();
writer.write('{');
if (length == 1) {
Object key = keys.next();
writer.write(quote(key.toString()));
writer.write(':');
if (indentFactor > 0) {
writer.write(' ');
}
writeValue(writer, this.map.get(key), indentFactor, indent);
} else if (length != 0) {
final int newindent = indent + indentFactor;
while (keys.hasNext()) {
Object key = keys.next();
if (commanate) {
writer.write(',');
}
if (indentFactor > 0) {
writer.write('\n');
}
indent(writer, newindent);
writer.write(quote(key.toString()));
writer.write(':');
if (indentFactor > 0) {
writer.write(' ');
}
writeValue(writer, this.map.get(key), indentFactor,
newindent);
commanate = true;
}
if (indentFactor > 0) {
writer.write('\n');
}
indent(writer, indent);
}
writer.write('}');
return writer;
} catch (IOException exception) {
throw new JSONException(exception);
}
}
}
| [
"eggrevolver@gmail.com"
] | eggrevolver@gmail.com |
d453863c774d756d28699f1bbd50dc256e687ece | b7456ce38350766c2c4d4ff102cbdddfd864e53b | /Driver.java | 01f43eaf2819031f11b7cff8789e6e9494af2e67 | [] | no_license | GabrielAiello/csc370_gabriel_assignment5 | eeb1e13f131df2b7e65dfb2cc0be819a26b86387 | 28469c270da701709fb0e3a2a90eebfbd984df8c | refs/heads/master | 2021-01-20T12:10:19.579056 | 2017-02-21T06:24:06 | 2017-02-21T06:24:06 | 82,644,349 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 600 | java | package hwassignment5csc300;
public class Driver
{
public static void main(String[] args)
{
LinkedList happy = new LinkedList();
System.out.println("" + happy.getCount());
happy.addFront("a");
happy.addFront("b");
happy.addEnd("c");
happy.addFront("d");
happy.addFront("e");
happy.addEnd("f");
happy.addFront("g");
happy.addFront("h");
happy.addEnd("i");
happy.addFront("j");
happy.addFront("k");
happy.addEnd("l");
System.out.println("" + happy.getCount());
happy.display();
happy.removeEnd();
happy.display();
happy.removeAtIndex(3);
happy.display();
}
}
| [
"gabriel.aiello@cuw.edu"
] | gabriel.aiello@cuw.edu |
f420db9132c6b3dbb71e9473f78fd67c6ddf026b | 87ef8bb6cd54cf24731c6ae19041db5c8f44a31f | /src/main/java/com/community/demo/dao/EducationMapper.java | b3247b84db0ad9e2df0db747e83fd210c39bc298 | [] | no_license | b15952025503/correction | 0c65e0593d5a00bae72229703833d0fbf342172b | 12e31f175f321c061b9f6c85612d32408b1a37fd | refs/heads/master | 2020-04-09T07:21:02.941833 | 2019-01-09T10:30:48 | 2019-01-09T10:30:48 | 160,151,712 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 941 | java | package com.community.demo.dao;
import com.community.demo.entity.Education;
import com.community.demo.entity.EducationExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface EducationMapper {
long countByExample(EducationExample example);
int deleteByExample(EducationExample example);
int deleteByPrimaryKey(Integer id);
int insert(Education record);
int insertSelective(Education record);
List<Education> selectByExample(EducationExample example);
Education selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") Education record, @Param("example") EducationExample example);
int updateByExample(@Param("record") Education record, @Param("example") EducationExample example);
int updateByPrimaryKeySelective(Education record);
int updateByPrimaryKey(Education record);
} | [
"jia_long_fei@163.com"
] | jia_long_fei@163.com |
55d55a6c1dd3dd2290a94e05ed9c0e1214d2b1a1 | e630cc31142e1ce19b28a90bb9e0cde331fee371 | /src/test/java/ex34/AppTest.java | 9aef2f89e5294cfb6ccc831a932012a72ce11225 | [] | no_license | AwesomeDin/dinesh-cop3330-assignment2 | 65d1687f329d57926cf7561a2f0dba18501dbd2a | 4bc84b66a2e6701b1c34a83a6a2fc66fc2ca0693 | refs/heads/master | 2023-08-01T18:52:54.365438 | 2021-09-27T22:18:18 | 2021-09-27T22:18:18 | 407,016,611 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,196 | java | package ex34;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import static org.junit.jupiter.api.Assertions.*;
class AppTest {
@Test
void addEmp() {
ArrayList<String> employees = new ArrayList<>();
ArrayList<String> currentEmployees = new ArrayList<>();
employees.add("John Smith");
employees.add("Jackie Jackson");
employees.add("Chris Jones");
employees.add("Amanda Cullen");
employees.add("Jeremy Goodwin");
assertEquals(employees,App.addEmp(currentEmployees));
}
@Test
void removeEmp() {
ArrayList<String> employees = new ArrayList<>();
employees.add("Jackie Jackson");
employees.add("Chris Jones");
employees.add("Amanda Cullen");
employees.add("Jeremy Goodwin");
ArrayList<String> currentEmployees = new ArrayList<>();
currentEmployees.add("John Smith");
currentEmployees.add("Jackie Jackson");
currentEmployees.add("Chris Jones");
currentEmployees.add("Amanda Cullen");
currentEmployees.add("Jeremy Goodwin");
assertEquals(employees,App.removeEmp(currentEmployees,"John Smith"));
}
} | [
"73072931+AwesomeDude357@users.noreply.github.com"
] | 73072931+AwesomeDude357@users.noreply.github.com |
a52417c52d6d3d826902fb19161540feebdafe2a | a77083d81255eecf1cc1096b25829800fe139ebd | /src/main/java/com/sohoenwa/primefaceslogin/java/dao/UserDAO.java | f6a355fe9956cbd558e076040d79b35147c0b99d | [] | no_license | rai-prashanna/MovieGenie | c69b92aeca38cc7d777b87dd7e4eafb29035c201 | 2397b78e081464154fb1bff8cefd2d5b840964d0 | refs/heads/master | 2021-05-12T12:07:56.608260 | 2018-01-27T10:02:05 | 2018-01-27T10:02:05 | 117,405,416 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,218 | java | package com.sohoenwa.primefaceslogin.java.dao;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import com.prashanna.model.MovieIDDTO;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
public class UserDAO {
private Connection connection;
public UserDAO() {
connection = Database.getConnection();
}
public boolean checklogin(String user, String password) {
PreparedStatement ps = null;
try {
ps = connection.prepareStatement(
"select user, pass from userinfo where user= ? and pass= ? ");
ps.setString(1, user);
ps.setString(2, password);
ResultSet rs = ps.executeQuery();
if (rs.next()) // found
{
System.out.println(rs.getString("user"));
return true;
}
else {
return false;
}
} catch (Exception ex) {
System.out.println("Error in login() -->" + ex.getMessage());
return false;
} finally {
Database.close(connection);
}
}
public void insert(MovieIDDTO movie){
PreparedStatement ps = null;
try {
ps=connection.prepareStatement("insert into links(movieId, imdbId ) values (?, ?)");
ps.setInt(1,Integer.parseInt(movie.getMovieID()));
ps.setInt(2, Integer.parseInt(movie.getImdbID()));
ps.executeUpdate();
} catch (SQLException ex) {
//Logger.getLogger(UserDAO.class.getName()).log(Level.SEVERE, null, ex);
System.out.println("Exception"+ex);
}
}
public MovieIDDTO getImdbIDbyMID(String id){
MovieIDDTO movieIDDTO=new MovieIDDTO();
try {
PreparedStatement preparedStatement = connection.prepareStatement("select * from links where movieId=?");
preparedStatement.setString(1, id);
ResultSet rs = preparedStatement.executeQuery();
if(rs.next()){
movieIDDTO.setMovieID(id);
movieIDDTO.setImdbID("tt0"+rs.getString("imdbId"));
}
} catch (SQLException ex) {
Logger.getLogger(UserDAO.class.getName()).log(Level.SEVERE, null, ex);
}
return movieIDDTO;
}
// public List<User> getAllUsers() {
// List<User> users = new ArrayList<User>();
// try {
// Statement statement = connection.createStatement();
// ResultSet rs = statement.executeQuery("select * from users");
// while (rs.next()) {
// User user = new User();
// user.setUname(rs.getString("uname"));
// user.setPassword(rs.getString("password"));
// user.setEmail(rs.getString("email"));
// user.setRegisteredon(rs.getDate("registeredon"));
// users.add(user);
// }
// } catch (SQLException e) {
// e.printStackTrace();
// }
//
// return users;
// }
} | [
"pras.sohoenwa@gmail.com"
] | pras.sohoenwa@gmail.com |
f3a2c739675c3c1d0528488709d2b27a03d4a36a | 59909bbf3e8fb8a416cbd88b6faa94cdfe0884e1 | /app/src/main/java/com/robugos/tcc/dominio/ImageLoadTask.java | f521f634ead4aa87a1090241cdb10c0589dfcc34 | [] | no_license | robugos/tcc | e3de590cad1d8ff952b7f73d81a5c6c8b8f18699 | 3499a5bf4a56ec8a65dd446f0c500f20092be88f | refs/heads/master | 2020-03-23T06:32:37.912916 | 2018-07-25T11:21:56 | 2018-07-25T11:21:56 | 141,215,019 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,279 | java | package com.robugos.tcc.dominio;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.widget.ImageView;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* Created by Robson on 05/06/2017.
*/
public class ImageLoadTask extends AsyncTask<Void, Void, Bitmap> {
private String url;
private ImageView imageView;
public ImageLoadTask(String url, ImageView imageView) {
this.url = url;
this.imageView = imageView;
}
@Override
protected Bitmap doInBackground(Void... params) {
try {
URL urlConnection = new URL(url);
HttpURLConnection connection = (HttpURLConnection) urlConnection
.openConnection();
connection.setDoInput(true);
connection.connect();
InputStream input = connection.getInputStream();
Bitmap myBitmap = BitmapFactory.decodeStream(input);
return myBitmap;
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
@Override
protected void onPostExecute(Bitmap result) {
super.onPostExecute(result);
imageView.setImageBitmap(result);
}
} | [
"robugos@gmail.com"
] | robugos@gmail.com |
8ed107d51920a50db3dc0c7f11937835fd3e26db | af6251ee729995455081c4f4e48668c56007e1ac | /domain/src/main/java/mmp/gps/domain/push/InstructResultMessage.java | 4b5ada1bcda4c7e7492a4d6a247692f96705bbe9 | [] | no_license | LXKing/monitor | b7522d5b95d2cca7e37a8bfc66dc7ba389e926ef | 7d1eca454ce9a93fc47c68f311eca4dcd6f82603 | refs/heads/master | 2020-12-01T08:08:53.265259 | 2018-12-24T12:43:32 | 2018-12-24T12:43:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 323 | java | package mmp.gps.domain.push;
/**
* 指令结果消息
*/
public class InstructResultMessage {
/**
* 设备号
*/
public String number;
/**
* 记录号
*/
public String id;
/**
* 结果
*/
public String result;
/**
* 数据
*/
public Object data;
}
| [
"heavenlystate@163.com"
] | heavenlystate@163.com |
4960d079fca2e322d1fdcfa018e62e4989e5727e | 7c11fa420a6ecb67e0a2e74ee55422917e20e695 | /app/src/main/java/com/bin/studentmanager/utils/FileUtils.java | 324bb0fa4cc53bd9e74187eb08a91c30fdbfb951 | [] | no_license | xlbin/StudentManager_OpenCV_Java4 | 511aeb2cc799a0ebfd6ae8eb1603876afb0d704d | fe7fab9a01f46c5cbcc2c6ae0f87bff47dfa00b6 | refs/heads/master | 2020-03-14T12:10:41.390013 | 2018-04-30T14:43:07 | 2018-04-30T14:43:07 | 131,568,122 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,006 | java | package com.bin.studentmanager.utils;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Environment;
import android.util.Log;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
/**
* Created by xiaolang on 2018/3/24.
*/
public class FileUtils {
private static final String FILE_FOLDER =
Environment.getExternalStorageDirectory().getAbsolutePath()
+ File.separator + "faces" + File.separator + "data";
private static final String FILE_CSV = "about_data.csv";
public static void saveCSV(String filename) {
// String storePath = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "faces";
// File file = new File(storePath);
// File file=new File("E:\\faces\\db_PEAL");
File file = new File(filename);
//打开faces目录
String faces = filename+ File.separator + "db_PEAL";
File mFacesFile = new File(faces);
File[] files=mFacesFile.listFiles();
// File csv = context.getDir("csv", Context.MODE_PRIVATE);
// File mCsvFile = new File(csv, "at.txt");
// 首先保存图片
String csv = filename+ File.separator+"at.txt";
File mCsvFile = new File(csv);
if (!mCsvFile.exists()) {
try {
mCsvFile.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}
}
try {
// FileOutputStream os = new FileOutputStream(mCsvFile);
FileOutputStream os = new FileOutputStream(mCsvFile);
String s;
for(File f : files) {
s = f.getAbsolutePath()+";"+f.getName().substring(0, 4)+"\n";
os.write(s.getBytes());
}
Log.d("test", os.toString());
os.close();
} catch(Exception e) {
e.printStackTrace();
}
}
public ArrayList<String> refreshFileList(String strPath, ArrayList<String> wechats) {
String filename;//文件名
String suf;//文件后缀
File dir = new File(strPath);//文件夹dir
File[] files = dir.listFiles();//文件夹下的所有文件或文件夹
if (files == null)
return null;
for (int i = 0; i < files.length; i++) {
if (files[i].isDirectory())
{
System.out.println("---" + files[i].getAbsolutePath());
refreshFileList(files[i].getAbsolutePath(), wechats);//递归文件夹!!!
}
else {
filename = files[i].getName();
int j = filename.lastIndexOf(".");
suf = filename.substring(j+1);//得到文件后缀
if(suf.equalsIgnoreCase("amr"))//判断是不是msml后缀的文件
{
String strFileName = files[i].getAbsolutePath().toLowerCase();
wechats.add(files[i].getAbsolutePath());//对于文件才把它的路径加到filelist中
}
}
}
return wechats;
}
static int numbers = 000000;
//保存文件到指定路径
public static boolean saveImageToGallery(Context context, Bitmap bmp) {
// 首先保存图片
String storePath = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "faces//db_PEAL";
File appDir = new File(storePath);
if (!appDir.exists()) {
appDir.mkdir();
}
String fileName = "1041"+String.format("%02d",numbers) + ".jpg"; File file = new File(appDir, fileName);
numbers++;
try {
FileOutputStream fos = new FileOutputStream(file);
//通过io流的方式来压缩保存图片
boolean isSuccess = bmp.compress(Bitmap.CompressFormat.JPEG, 60, fos);
fos.flush();
fos.close();
//把文件插入到系统图库
// MediaStore.Images.Media.insertImage(context.getContentResolver(), file.getAbsolutePath(), fileName, null);
// 保存图片后发送广播通知更新数据库
Uri uri = Uri.fromFile(file);
context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, uri));
if (isSuccess) {
return true;
} else {
return false;
}
} catch (IOException e) {
e.printStackTrace();
} return false;
}
//保存文件到指定路径
public static boolean saveImageToGallery(Context context, Bitmap bmp, int n1, int n2) {
// 首先保存图片
String storePath = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "faces//db_PEAL";
File appDir = new File(storePath);
if (!appDir.exists()) {
appDir.mkdir();
}
String fileName = String.format("%04d",n1)+String.format("%02d",n2) + ".jpg"; File file = new File(appDir, fileName);
try {
FileOutputStream fos = new FileOutputStream(file);
//通过io流的方式来压缩保存图片
boolean isSuccess = bmp.compress(Bitmap.CompressFormat.JPEG, 100, fos);
fos.flush();
fos.close();
//把文件插入到系统图库
// MediaStore.Images.Media.insertImage(context.getContentResolver(), file.getAbsolutePath(), fileName, null);
// 保存图片后发送广播通知更新数据库
Uri uri = Uri.fromFile(file);
context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, uri));
if (isSuccess) {
return true;
} else {
return false;
}
} catch (IOException e) {
e.printStackTrace();
} return false;
}
}
| [
"956803914@qq.com"
] | 956803914@qq.com |
73912673f9944c499b79d0595640c45128bbf51d | 3b1206648485806c988ac23e6f0f5377b2ac540f | /app/src/main/java/com/example/android/bakingtime/data/Contract.java | ffc80ed8b9b25c94d0a103c7b59a876441412ccb | [] | no_license | HarunJr/Baking-Time | f1458465382eb9d9b3afa72f8827514c58045827 | 4b2c65f72b7a854fa51117ce1360ad3a564a91ad | refs/heads/master | 2021-05-10T16:20:32.423588 | 2018-01-26T07:02:05 | 2018-01-26T07:02:05 | 118,572,323 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,913 | java | package com.example.android.bakingtime.data;
import android.content.ContentResolver;
import android.net.Uri;
import android.provider.BaseColumns;
public class Contract {
// The "Content authority" is a name for the entire content provider, similar to the
// relationship between a domain name and its website. A convenient string to use for the
// content authority is the package name for the app, which is guaranteed to be unique on the
// device.
static final String CONTENT_AUTHORITY = "com.example.android.bakingtime";
// Use CONTENT_AUTHORITY to create the base of all URI's which apps will use to contact
// the content provider.
private static final Uri BASE_CONTENT_URI = Uri.parse("content://" + CONTENT_AUTHORITY);
// Possible paths (appended to base content URI for possible URI's)
static final String PATH_RECIPE = "recipe";
static final String PATH_INGREDIENTS = "ingredients";
static final String PATH_STEPS = "steps";
public static final class RecipeEntry {
public static final Uri CONTENT_URI = BASE_CONTENT_URI.buildUpon().appendPath(PATH_RECIPE).build();
static final String CONTENT_TYPE = ContentResolver.CURSOR_DIR_BASE_TYPE + "/" + CONTENT_AUTHORITY + "/" + PATH_RECIPE;
// public static final String CONTENT_ITEM_TYPE = ContentResolver.CURSOR_ITEM_BASE_TYPE + "/" + CONTENT_AUTHORITY + "/" + PATH_MOVIE;
public static final String TABLE_NAME = "recipe";
public static final String COLUMN_RECIPE_ID = "id";
public static final String COLUMN_RECIPE_NAME= "name";
public static final String COLUMN_RECIPE_SERVING= "servings";
public static final String COLUMN_RECIPE_IMAGE= "image";
}
public static final class IngredientEntry implements BaseColumns{
public static final Uri CONTENT_URI = BASE_CONTENT_URI.buildUpon().appendPath(PATH_INGREDIENTS).build();
static final String CONTENT_TYPE = ContentResolver.CURSOR_DIR_BASE_TYPE + "/" + CONTENT_AUTHORITY + "/" + PATH_INGREDIENTS;
public static final String TABLE_NAME = "ingredient_table";
public static final String COLUMN_RECIPE_KEY = "recipe_key";
public static final String COLUMN_QUANTITY = "quantity";
public static final String COLUMN_MEASURE = "measure";
public static final String COLUMN_INGREDIENT = "ingredient";
public static Uri buildKeyUri(int recipeKey) {
return CONTENT_URI.buildUpon()
.appendPath(String.valueOf(recipeKey))
.build();
}
public static int getRecipeKeyFromUri(Uri uri) {return Integer.parseInt(uri.getPathSegments().get(1));}
}
public static final class StepsEntry implements BaseColumns{
public static final Uri CONTENT_URI = BASE_CONTENT_URI.buildUpon().appendPath(PATH_STEPS).build();
static final String CONTENT_TYPE = ContentResolver.CURSOR_DIR_BASE_TYPE + "/" + CONTENT_AUTHORITY + "/" + PATH_STEPS;
public static final String CONTENT_ITEM_TYPE = ContentResolver.CURSOR_ITEM_BASE_TYPE + "/" + CONTENT_AUTHORITY + "/" + PATH_STEPS;
public static final String TABLE_NAME = "steps";
public static final String COLUMN_ID = "id";
public static final String COLUMN_RECIPE_KEY = "recipe_key";
public static final String COLUMN_SHORT_DESC = "shortDescription";
public static final String COLUMN_DESCRIPTION = "description";
public static final String COLUMN_VIDEO_URL = "videoURL";
public static final String COLUMN_THUMBNAIL_URL = "thumbnailURL";
public static Uri buildKeyUri(int id) {
return CONTENT_URI.buildUpon()
.appendPath(String.valueOf(id))
.build();
}
public static int getKeyIdFromUri(Uri uri) {return Integer.parseInt(uri.getPathSegments().get(1));}
}
}
| [
"harunm28@gmmail.com"
] | harunm28@gmmail.com |
0a7dca773ebb34c349f809640bc3a0f4a105252d | 4bf9ea8553b332b3239bfe7a84bd28dc0539ca81 | /src/test/java/ParserJsonTest.java | bcb56d925f5c17a76207f697dc4cd0bc8fbd6d3c | [] | no_license | flackyang/mysql-parser | c70e4345e7313af4a2497a1afa51566c01af0fb9 | b8a0292c66e00a31fce035d304b33354c7c03e1a | refs/heads/master | 2021-05-09T20:33:09.413243 | 2017-05-09T03:00:19 | 2017-05-09T03:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,182 | java | import com.github.hackerwin7.mysql.parser.protocol.json.ConfigJson;
import net.sf.json.JSONObject;
import com.github.hackerwin7.mysql.parser.parser.utils.ParserConfig;
/**
* Created by hp on 14-11-14.
*/
public class ParserJsonTest {
public static void main(String[] args) {
ParserConfig configer = new ParserConfig();
ConfigJson configJson = new ConfigJson("jd-mysql-parser-1");
JSONObject jRoot = configJson.getJson();
if(jRoot != null) {
JSONObject jContent = jRoot.getJSONObject("info").getJSONObject("content");
configer.setHbaseRootDir(jContent.getString("HbaseRootDir"));
configer.setHbaseDistributed(jContent.getString("HbaseDistributed"));
configer.setHbaseZkQuorum(jContent.getString("HbaseZKQuorum"));
configer.setHbaseZkPort(jContent.getString("HbaseZKPort"));
configer.setDfsSocketTimeout(jContent.getString("DfsSocketTimeout"));
}
System.out.println(configer.getHbaseRootDir()+","+configer.getHbaseDistributed()+"," +
configer.getHbaseZkQuorum()+","+configer.getHbaseZkPort()+","+configer.getDfsSocketTimeout());
}
}
| [
"1186897618@qq.com"
] | 1186897618@qq.com |
32ecd9c9d64c97466a360021c304b10c890795a3 | a8d5ff68abf0951313c4c1fc19be73d09ca5a24f | /main/java/com/example/demo/repository/HelloRepository.java | eb0260a4c362308a048022cdc4946f4b69454097 | [] | no_license | fernandonguyen/Junit-Mock | b09db01391ad7d04aabff2fcfb978283488f6119 | b3aaa0a7176ba1913aabe77fd39db08d7d4a3d48 | refs/heads/master | 2022-04-24T09:01:06.516633 | 2020-04-26T03:32:09 | 2020-04-26T03:32:09 | 258,929,838 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 99 | java | package com.example.demo.repository;
public interface HelloRepository{
public String get();
}
| [
"kienkun1990@gmail.com"
] | kienkun1990@gmail.com |
0b40d41e97b719b5d04319575364ab28ad036c89 | 9d4766278acfe37053e890be8f23694ac1c339ee | /src/main/java/com/udacity/jdnd/course3/critter/user/repository/EmployeeRepository.java | 51efd387f5988ff66996183b9d24563d5583083d | [] | no_license | btran-developer/udacity_critter_chronologer | 7fed05eeac358b6c85ca9ab8e4e1477c63c0c17e | bd48581aae45930077c5f6ad59c0cea170bb55bb | refs/heads/master | 2022-12-22T17:25:35.982232 | 2020-09-10T23:26:39 | 2020-09-10T23:26:39 | 294,544,648 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 585 | java | package com.udacity.jdnd.course3.critter.user.repository;
import com.udacity.jdnd.course3.critter.user.entity.Employee;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.time.DayOfWeek;
import java.util.List;
@Repository
public interface EmployeeRepository extends JpaRepository<Employee, Long> {
@Query("select e from Employee e where :day member of e.daysAvailable")
List<Employee> findEmployeeAvailableForServiceByDayOfWeek(DayOfWeek day);
}
| [
"btran.developer@gmail.com"
] | btran.developer@gmail.com |
94fb64df36c583e3d56cb188c16cd528b70f5d5e | 9b664f13978672bb3fbb666fb585a0a0556e6a3e | /com.kin207.zn.web/src/main/java/com/hd/service/gh/WorkContentManager.java | 9a40b588d9269f8a6b4da94e09c16b7166dfb204 | [] | no_license | lihaibozi/javaCode | aa36de6ae160e4278bc0d718881db9abbb5c39c0 | 1fa50e7c88545cfa9d9cd1579d21b1725eef7239 | refs/heads/master | 2020-03-29T18:11:30.894495 | 2018-12-27T03:55:16 | 2018-12-27T03:55:16 | 150,198,657 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,391 | java | package com.hd.service.gh;
import java.util.List;
import com.hd.entity.Page;
import com.hd.util.PageData;
/** 科室信息接口类
* @author lihaibo
* 修改时间:2018.10.26
*/
public interface WorkContentManager {
/**科室信息列表
* @param page
* @return
* @throws Exception
*/
public List<PageData> workcontentList (Page page)throws Exception;
public List<PageData> workcontents(PageData pd) throws Exception ;
/**通过id获取数据
* @param pd
* @return
* @throws Exception
*/
public PageData findById(PageData pd)throws Exception;
/**修改数据
* @param pd
* @throws Exception
*/
public void edit(PageData pd)throws Exception;
public void save(PageData pd) throws Exception;
public void delete(PageData pd) throws Exception;
public void deleteAll(String[] ids) throws Exception;
public List<PageData> getDeps(PageData pd) throws Exception;
public List<PageData> getworkcontentBydepHos(PageData pd) throws Exception;
public List<PageData> getworkcontents(PageData pd) throws Exception;
public List<PageData> findByScheduleId(PageData pd)throws Exception;
public void deleteFilePath(PageData pd) throws Exception;
public List<PageData> researchWrokContent(Page page)throws Exception;
public void addOpinion(PageData pd) throws Exception;
public List<PageData> zkWrokContent(Page page)throws Exception;
}
| [
"340063567@qq.com"
] | 340063567@qq.com |
3e71f1a94b9b476c2b2f433a583454c59fcf3fbb | 6cb0fc33a5f43c910cf15522e5dead41433eb101 | /UlityCore/src/fr/mrmicky/fastparticle/ParticleType.java | b64531a7d5e8f2971ce39bc22fb4cfb4097a99a6 | [] | no_license | 360matt-archives/UlityCore-v0-alpha | 3e5408273ff2a01331100a4a22db43eab0c163f6 | f6738b5d8e744eb05263c5077ae81f446f0fd856 | refs/heads/master | 2022-04-10T07:41:59.672614 | 2020-02-20T21:04:57 | 2020-02-20T21:04:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,170 | java | package fr.mrmicky.fastparticle;
import org.bukkit.Color;
import org.bukkit.inventory.ItemStack;
import org.bukkit.material.MaterialData;
/**
* @author MrMicky
*/
@SuppressWarnings("deprecation")
public enum ParticleType {
// 1.7+
EXPLOSION_NORMAL("explode", "poof"),
EXPLOSION_LARGE("largeexplode", "explosion"),
EXPLOSION_HUGE("hugeexplosion", "explosion_emitter"),
FIREWORKS_SPARK("fireworksSpark", "firework"),
WATER_BUBBLE("bubble", "bubble"),
WATER_SPLASH("splash", "splash"),
WATER_WAKE("wake", "fishing"),
SUSPENDED("suspended", "underwater"),
SUSPENDED_DEPTH("depthsuspend", "underwater"),
CRIT("crit", "crit"),
CRIT_MAGIC("magicCrit", "enchanted_hit"),
SMOKE_NORMAL("smoke", "smoke"),
SMOKE_LARGE("largesmoke", "large_smoke"),
SPELL("spell", "effect"),
SPELL_INSTANT("instantSpell", "instant_effect"),
SPELL_MOB("mobSpell", "entity_effect"),
SPELL_MOB_AMBIENT("mobSpellAmbient", "ambient_entity_effect"),
SPELL_WITCH("witchMagic", "witch"),
DRIP_WATER("dripWater", "dripping_water"),
DRIP_LAVA("dripLava", "dripping_lava"),
VILLAGER_ANGRY("angryVillager", "angry_villager"),
VILLAGER_HAPPY("happyVillager", "happy_villager"),
TOWN_AURA("townaura", "mycelium"),
NOTE("note", "note"),
PORTAL("portal", "portal"),
ENCHANTMENT_TABLE("enchantmenttable", "enchant"),
FLAME("flame", "flame"),
LAVA("lava", "lava"),
// FOOTSTEP("footstep", null),
CLOUD("cloud", "cloud"),
REDSTONE("reddust", "dust"),
SNOWBALL("snowballpoof", "item_snowball"),
SNOW_SHOVEL("snowshovel", "item_snowball"),
SLIME("slime", "item_slime"),
HEART("heart", "heart"),
ITEM_CRACK("iconcrack", "item"),
BLOCK_CRACK("blockcrack", "block"),
BLOCK_DUST("blockdust", "block"),
// 1.8+
BARRIER("barrier", "barrier", 8),
WATER_DROP("droplet", "rain", 8),
MOB_APPEARANCE("mobappearance", "elder_guardian", 8),
// ITEM_TAKE("take", null, 8),
// 1.9+
DRAGON_BREATH("dragonbreath", "dragon_breath", 9),
END_ROD("endRod", "end_rod", 9),
DAMAGE_INDICATOR("damageIndicator", "damage_indicator", 9),
SWEEP_ATTACK("sweepAttack", "sweep_attack", 9),
// 1.10+
FALLING_DUST("fallingdust", "falling_dust", 10),
// 1.11+
TOTEM("totem", "totem_of_undying", 11),
SPIT("spit", "spit", 11),
// 1.13+
SQUID_INK(13),
BUBBLE_POP(13),
CURRENT_DOWN(13),
BUBBLE_COLUMN_UP(13),
NAUTILUS(13),
DOLPHIN(13),
// 1.14+
SNEEZE(14),
CAMPFIRE_COSY_SMOKE(14),
CAMPFIRE_SIGNAL_SMOKE(14),
COMPOSTER(14),
FLASH(14),
FALLING_LAVA(14),
LANDING_LAVA(14),
FALLING_WATER(14),
// 1.15+
DRIPPING_HONEY(15),
FALLING_HONEY(15),
LANDING_HONEY(15),
FALLING_NECTAR(15);
private static final int SERVER_VERSION_ID;
static {
String ver = FastReflection.VERSION;
SERVER_VERSION_ID = ver.charAt(4) == '_' ? Character.getNumericValue(ver.charAt(3)) : Integer.parseInt(ver.substring(3, 5));
}
private final String legacyName;
private final String name;
private final int minimumVersion;
// 1.7 particles
ParticleType(String legacyName, String name) {
this(legacyName, name, -1);
}
// 1.13+ particles
ParticleType(int minimumVersion) {
this.legacyName = null;
this.name = name().toLowerCase();
this.minimumVersion = minimumVersion;
}
// 1.8-1.12 particles
ParticleType(String legacyName, String name, int minimumVersion) {
this.legacyName = legacyName;
this.name = name;
this.minimumVersion = minimumVersion;
}
public boolean hasLegacyName() {
return legacyName != null;
}
public String getLegacyName() {
if (!hasLegacyName()) {
throw new IllegalStateException("Particle " + name() + " don't have legacy name");
}
return legacyName;
}
public String getName() {
return name;
}
public boolean isSupported() {
return minimumVersion <= 0 || SERVER_VERSION_ID >= minimumVersion;
}
public Class<?> getDataType() {
switch (this) {
case ITEM_CRACK:
return ItemStack.class;
case BLOCK_CRACK:
case BLOCK_DUST:
case FALLING_DUST:
//noinspection deprecation
return MaterialData.class;
case REDSTONE:
return Color.class;
default:
return Void.class;
}
}
public static ParticleType getParticle(String particleName) {
try {
return ParticleType.valueOf(particleName.toUpperCase());
} catch (IllegalArgumentException e) {
for (ParticleType particle : values()) {
if (particle.getName().equalsIgnoreCase(particleName)) {
return particle;
}
if (particle.hasLegacyName() && particle.getLegacyName().equalsIgnoreCase(particleName)) {
return particle;
}
}
}
return null;
}
}
| [
"mattbacq2004@gmail.com"
] | mattbacq2004@gmail.com |
184269b45b5b631d7f1c2943440fac3277bb3510 | 1ec994d0d929051d2ef63c3d45d8af7a7603b006 | /app/src/test/java/com/hackernews/reader/news/NewsAdapterActivity.java | 450701772819a17248de9f6e767504ff2e6ded74 | [] | no_license | HassanUsman/HackerNews-MVM-Espresso-Robolectric-Data-Binding-RxJava-RxAndroid-Dagger | 523ee68c2aea2204b6be93a4b26be71a751f160d | 21e8ea98f9e9c2ff621e790f60bc1af709a2c3e4 | refs/heads/master | 2021-09-08T05:05:52.675001 | 2018-03-07T10:07:18 | 2018-03-07T10:07:18 | 116,226,468 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,091 | java | package com.hackernews.reader.news;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import com.hackernews.reader.R;
import com.hackernews.reader.news.NewsAdapter;
import com.hackernews.reader.data.news.NewsItem;
import java.util.ArrayList;
public class NewsAdapterActivity extends AppCompatActivity implements NewsAdapter.Callback{
public NewsAdapter adapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_news_adapter);
}
public void setNewsItem(ArrayList<NewsItem> newsItem){
adapter = new NewsAdapter(newsItem,this);
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.newsList);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
recyclerView.setAdapter(adapter);
adapter.notifyDataSetChanged();
}
@Override
public void onItemClick(int position) {
}
}
| [
"HafizHassanUsman1@gmail.com"
] | HafizHassanUsman1@gmail.com |
e3507c8b2afb571cdbf97b4f6e0636062948ae2f | df5e404747be479cc80e1cec49ff6608519595fe | /APS/Exercicios/TorrentzFilmes/src/br/com/torrentz/app/AuxPlano.java | bc6fdb8ebe0a42e6d2ae79d17d6532d17cf75dfa | [
"MIT"
] | permissive | lucasDEV20/ADS--3- | e35a7d1c92343ac1548a103442e7b559be0e7b4e | bc7464eb08c0707de7d3dc99fec5a17aef73bc34 | refs/heads/master | 2023-03-15T23:02:01.233179 | 2021-03-06T03:13:35 | 2021-03-06T03:13:35 | 284,832,489 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 24,079 | java | package br.com.torrentz.app;
//import br.com.marcosjob.bll.FabricanteBll;
//import br.com.marcosjob.model.Fabricante;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
public class AuxPlano extends javax.swing.JFrame {
private DefaultTableModel tbl = new DefaultTableModel();
// private FabricanteBll bll = new FabricanteBll();
// Fabricante model = new Fabricante();
public AuxPlano() throws Exception {
CriarTable();
// read();
initComponents();
this.setLocationRelativeTo(rootPane);
// jTable.getTableHeader().setFont(new java.awt.Font("Dialog", 0, 18));
// estadoInicialComponentes();
}
public void estadoInicialComponentes() {
btnUpdateAux.setEnabled(false);
btnDelete.setEnabled(false);
txtAuxNome.setEnabled(false);
btnUpdate.setEnabled(false);
}
private void CriarTable() {
jTable = new JTable(tbl);
tbl.addColumn("Código");
tbl.addColumn("Nome");
tbl.addColumn("Acessos Simultâneos");
tbl.addColumn("Preço R$");
}
public void read() throws Exception {
// try {
// tbl.setNumRows(0);
// List<Fabricante> listModel = new ArrayList<>();
// listModel = bll.read();
//
// if (listModel.size() > 0) {
// for (int i = 0; i < listModel.size(); i++) {
// tbl.addRow(new Object[]{
// listModel.get(i).getId_fabricante(),
// listModel.get(i).getNome()
// });
// }
// } else {
// tbl.setNumRows(0);
// }
//
// } catch (Exception e) {
// JOptionPane.showMessageDialog(rootPane, e);
// }
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jTabbedOpcoes = new javax.swing.JTabbedPane();
jPanel1 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
jTable = new javax.swing.JTable();
btnDelete = new javax.swing.JButton();
btnUpdate = new javax.swing.JButton();
txtAuxNome = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jTextFieldPesquisar = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
jSeparator1 = new javax.swing.JSeparator();
jLabel4 = new javax.swing.JLabel();
btnUpdateAux = new javax.swing.JButton();
jLabel5 = new javax.swing.JLabel();
txtAuxAcessos = new javax.swing.JTextField();
jLabel6 = new javax.swing.JLabel();
txtAuxPreco = new javax.swing.JTextField();
jPanel2 = new javax.swing.JPanel();
btnIncluir = new javax.swing.JButton();
txtNome = new javax.swing.JTextField();
jLabel7 = new javax.swing.JLabel();
txtAcessos = new javax.swing.JTextField();
jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
txtPreco = new javax.swing.JTextField();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("Torrentz Fimes | Cadastro Planos");
jTabbedOpcoes.setFont(new java.awt.Font("Dialog", 0, 16)); // NOI18N
jTable.setFont(new java.awt.Font("Dialog", 0, 16));
jTable.setModel(tbl);
jTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_NEXT_COLUMN);
jTable.setAutoscrolls(false);
jTable.setRowHeight(50);
jTable.setShowHorizontalLines(false);
jTable.setShowVerticalLines(false);
jTable.getTableHeader().setResizingAllowed(false);
jTable.getTableHeader().setReorderingAllowed(false);
jTable.addMouseListener(new java.awt.event.MouseAdapter() {
public void mousePressed(java.awt.event.MouseEvent evt) {
jTableMousePressed(evt);
}
});
jScrollPane1.setViewportView(jTable);
btnDelete.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
btnDelete.setText("Excluir");
btnDelete.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnDeleteActionPerformed(evt);
}
});
btnUpdate.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
btnUpdate.setText("Salvar");
btnUpdate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnUpdateActionPerformed(evt);
}
});
txtAuxNome.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
jLabel2.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
jLabel2.setText("Pesquisar");
jTextFieldPesquisar.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
jLabel3.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
jLabel3.setText("Nome");
jLabel4.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
jLabel4.setText("Campos editáveis");
btnUpdateAux.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
btnUpdateAux.setText("Editar");
btnUpdateAux.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnUpdateAuxActionPerformed(evt);
}
});
jLabel5.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
jLabel5.setText("Acessos Simultâneos");
txtAuxAcessos.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
jLabel6.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
jLabel6.setText("Preço R$");
txtAuxPreco.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jSeparator1)
.addContainerGap())
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(btnUpdateAux, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(btnDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap(16, Short.MAX_VALUE)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 661, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(16, 16, 16))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(26, 26, 26)
.addComponent(jLabel2)
.addGap(18, 18, 18)
.addComponent(jTextFieldPesquisar, javax.swing.GroupLayout.PREFERRED_SIZE, 523, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel5)
.addGap(18, 18, 18)
.addComponent(txtAuxAcessos, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel6)
.addGap(18, 18, 18)
.addComponent(txtAuxPreco))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel3)
.addGap(18, 18, 18)
.addComponent(txtAuxNome)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btnUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)))))
.addGap(22, 22, 22))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(31, 31, 31)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(jTextFieldPesquisar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(28, 28, 28)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 193, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(btnDelete)
.addComponent(btnUpdateAux))
.addGap(18, 18, 18)
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel4)
.addGap(30, 30, 30)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(txtAuxNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(30, 30, 30)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(txtAuxAcessos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(26, 26, 26)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel6)
.addComponent(txtAuxPreco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(btnUpdate))
.addContainerGap())
);
jTabbedOpcoes.addTab("Editar / Excluir", jPanel1);
btnIncluir.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
btnIncluir.setText("Incluir");
btnIncluir.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnIncluirActionPerformed(evt);
}
});
txtNome.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
jLabel7.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
jLabel7.setText("Acessos Simultâneos");
txtAcessos.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
jLabel8.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
jLabel8.setText("Nome");
jLabel9.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
jLabel9.setText("Preço R$");
txtPreco.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addContainerGap(187, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel7)
.addGap(18, 18, 18)
.addComponent(txtAcessos))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel9)
.addGap(18, 18, 18)
.addComponent(txtPreco))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel8)
.addGap(18, 18, 18)
.addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 248, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(btnIncluir, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(188, 188, 188))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addContainerGap(203, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel8)
.addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(30, 30, 30)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel7)
.addComponent(txtAcessos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(26, 26, 26)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel9)
.addComponent(txtPreco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(68, 68, 68)
.addComponent(btnIncluir)
.addGap(168, 168, 168))
);
jTabbedOpcoes.addTab("Incluir", jPanel2);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(30, 30, 30)
.addComponent(jTabbedOpcoes, javax.swing.GroupLayout.PREFERRED_SIZE, 695, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(30, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(30, 30, 30)
.addComponent(jTabbedOpcoes, javax.swing.GroupLayout.PREFERRED_SIZE, 662, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(30, Short.MAX_VALUE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void btnIncluirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnIncluirActionPerformed
// try {
// model.setNome(jTextFieldCreateNome.getText());
// bll.create(model);
// JOptionPane.showMessageDialog(rootPane, model.getNome()
// + " cadastrado com sucesso!");
// read();
// jTextFieldCreateNome.setText("");
//
// } catch (Exception e) {
// e.getMessage();
// }
}//GEN-LAST:event_btnIncluirActionPerformed
private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteActionPerformed
// try {
// model.setId_fabricante(Integer.parseInt(jTable.getValueAt(
// jTable.getSelectedRow(), 0).toString()));
// bll.delete(model);
// estadoInicialComponentes();
// read();
//
// } catch (Exception e) {
// JOptionPane.showMessageDialog(rootPane, e);
// }
}//GEN-LAST:event_btnDeleteActionPerformed
private void btnUpdateAuxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnUpdateAuxActionPerformed
// jButtonUpdate.setEnabled(true);
// jTextFieldAuxNome.setEnabled(true);
// jTextFieldAuxNome.setText(jTable.getValueAt(
// jTable.getSelectedRow(), 1).toString());
}//GEN-LAST:event_btnUpdateAuxActionPerformed
private void jTableMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableMousePressed
// jButtonUpdateAux.setEnabled(true);
// jButtonDelete.setEnabled(true);
}//GEN-LAST:event_jTableMousePressed
private void btnUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnUpdateActionPerformed
// try {
// model.setId_fabricante(Integer.parseInt(jTable.getValueAt(
// jTable.getSelectedRow(), 0).toString()));
// model.setNome(jTextFieldAuxNome.getText());
// bll.update(model);
// jTextFieldAuxNome.setText("");
// estadoInicialComponentes();
// read();
// } catch (Exception e) {
// e.getMessage();
// }
}//GEN-LAST:event_btnUpdateActionPerformed
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(AuxPlano.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(AuxPlano.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(AuxPlano.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(AuxPlano.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
try {
new AuxPlano().setVisible(true);
} catch (Exception ex) {
Logger.getLogger(AuxPlano.class.getName()).log(Level.SEVERE, null, ex);
}
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton btnDelete;
private javax.swing.JButton btnIncluir;
private javax.swing.JButton btnUpdate;
private javax.swing.JButton btnUpdateAux;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JSeparator jSeparator1;
private javax.swing.JTabbedPane jTabbedOpcoes;
private javax.swing.JTable jTable;
private javax.swing.JTextField jTextFieldPesquisar;
private javax.swing.JTextField txtAcessos;
private javax.swing.JTextField txtAuxAcessos;
private javax.swing.JTextField txtAuxNome;
private javax.swing.JTextField txtAuxPreco;
private javax.swing.JTextField txtNome;
private javax.swing.JTextField txtPreco;
// End of variables declaration//GEN-END:variables
}
| [
"lucasgoias11@gmail.com"
] | lucasgoias11@gmail.com |
e82d50b49e77d7332488eef16ae761652de7c74a | 55286976be14bb6fd441b67f79f7a3256e93f91c | /Project4/src/inf22/bitly/command/LoginCommand.java | 698b0fc0f3f4e6387c93f331410a29e125b43413 | [] | no_license | taithienbo/urlShortenerSystem | 962273f2784bab82cb89296d7d3e13855c363034 | bd0e8f10aeb15c1ee9f2303d491ef1d48602520f | refs/heads/master | 2020-04-06T06:51:50.828109 | 2013-02-20T23:53:21 | 2013-02-21T01:05:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 276 | java | package inf22.bitly.command;
import inf22.bitly.result.AbstractResult;
import inf22.bitly.state.State;
public class LoginCommand implements AbstractCommand
{
@Override
public AbstractResult execute(State state) {
// TODO Auto-generated method stub
return null;
}
}
| [
"taithienbo@gmail.com"
] | taithienbo@gmail.com |
ebf357f1b5b93046378796ab18c81a5e399e7a13 | f39da8943819ffa95b47d8ca73f9a6ea87bcbb3e | /app/src/main/java/com/example/android/notesapplication/Fragments/DetailFragment.java | 96f06146d51761c1b0c52ac6a0bf3cd1b2f5a73a | [] | no_license | geekanamika/NotesApplication | 193b9239748cf39d98e510d46554ed65194e1237 | 10d5b3c4ff16531d226fc72620c060aea1596684 | refs/heads/master | 2021-07-08T21:27:49.625853 | 2017-10-06T14:38:54 | 2017-10-06T14:38:54 | 106,013,848 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,625 | java | package com.example.android.notesapplication.Fragments;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.android.notesapplication.R;
public class DetailFragment extends Fragment {
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private static final String ARG_PARAM1 = "param1";
private static final String ARG_PARAM2 = "param2";
public DetailFragment() {
// Required empty public constructor
}
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment DetailFragment.
*/
// TODO: Rename and change types and number of parameters
public static DetailFragment newInstance(String param1, String param2) {
DetailFragment fragment = new DetailFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_detail, container, false);
}
}
| [
"anamikatripathi1601@gmail.com"
] | anamikatripathi1601@gmail.com |
ef3edbfa4106fa040f474ea17acab4a9134d1d77 | fec0e99cf50694827ee8155df16ce6c93c83c479 | /src/main/java/org/excelsi/tower/Emerald.java | 1f619ab4b4e2474c343aa7edc401d58811e03241 | [] | no_license | jkwhite/sketch | e320dfcb5eda2b5b0ee06c0ad8ac4131e0441924 | d75f973cdfc50b5d6ae77ca0eb4e02b82de63065 | refs/heads/master | 2020-04-06T06:51:36.800562 | 2019-09-27T07:59:17 | 2019-09-27T07:59:17 | 31,822,501 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,160 | java | /*
Tower
Copyright (C) 2007, John K White, All Rights Reserved
*/
/*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
package org.excelsi.tower;
import org.excelsi.aether.Item;
public class Emerald extends Gem implements Catalyst {
public Item internalCatalyze() {
return new ScrollOfReanimation();
}
public String getColor() {
return "green";
}
public int score() {
return 80;
}
public int getOccurrence() {
return 2;
}
}
| [
"dhcmrlchtdj@gmail.com"
] | dhcmrlchtdj@gmail.com |
d8025d92185eb0b8eea2c392a6ab6294e3c870cf | 1f031ccfd9f3ca311a440f442125f10a51740aa7 | /app/src/main/java/com/example/guessthecelebrityapplication/MainActivity.java | ce7af876057e909bf0ac3c33a6523138d34ccfae | [] | no_license | hamza-albanaa1/GuessTheCelebrit | 459b46d6e1c6c159d428df715e9bb8c8a954428a | 87343976d4ae2d72b71a1fb622a6e279d2dd44d8 | refs/heads/master | 2020-07-25T03:52:31.099686 | 2019-09-12T22:31:33 | 2019-09-12T22:31:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,390 | java | package com.example.guessthecelebrityapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.Random;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class MainActivity extends AppCompatActivity {
ArrayList<String> celebURLs = new ArrayList<String>();
ArrayList<String> celebNames = new ArrayList<String>();
//for choice and answers
int chosencleb = 0;
String[] forAnswers = new String[4];
int locationOfCorrect = 0;
public void celebChosen (View view){
if(view.getTag().toString().equals(Integer.toString(locationOfCorrect))){
Toast.makeText(getApplicationContext(), "Correct ", Toast.LENGTH_SHORT).show();
}else{
Toast.makeText(getApplicationContext(), "Wrong It was "+celebNames.get(chosencleb), Toast.LENGTH_SHORT).show();
}
newQuestion();
}
//download Image
public class imageDownloader extends AsyncTask<String,Void, Bitmap>{
@Override
protected Bitmap doInBackground(String... urls) {
try{
URL url = new URL(urls[0]);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.connect();
InputStream inputStream = connection.getInputStream();
Bitmap myBitmap = BitmapFactory.decodeStream(inputStream);
return myBitmap;
}catch (Exception e){
e.printStackTrace();
return null;
}
}
}
//download
public class DownloadTask extends AsyncTask<String,Void,String>{
@Override
protected String doInBackground(String... urls) {
String result ="";
URL url;
HttpURLConnection urlConnection = null;
try {
url = new URL(urls[0]);
urlConnection = (HttpURLConnection) url.openConnection();
InputStream in = urlConnection.getInputStream();
InputStreamReader reader = new InputStreamReader(in);
int data = reader.read();
while (data != -1){
char current = (char) data;
result += current;
data = reader.read();
}
return result;
}catch (Exception e){
e.printStackTrace();
return null;
}
}
}
public void newQuestion(){
try{
//random question
Random random = new Random();
//for choice random
chosencleb = random.nextInt(celebURLs.size());
//setup Image
imageDownloader imagedownloader = new imageDownloader();
Bitmap celebImage = imagedownloader.execute(celebURLs.get(chosencleb)).get();
imageView.setImageBitmap(celebImage); // set image
//for location answer
locationOfCorrect = random.nextInt(4);
int incorrectAnswer ;
for (int i = 0 ; i <4;i++){
if(i == locationOfCorrect){
forAnswers[i] =celebNames.get(chosencleb);
}else{
incorrectAnswer = random.nextInt(celebURLs.size());
forAnswers[i]=celebNames.get(incorrectAnswer);
while (incorrectAnswer == chosencleb);
incorrectAnswer = random.nextInt(celebURLs.size());
}
}
button0.setText(forAnswers[0]);
button1.setText(forAnswers[1]);
button2.setText(forAnswers[2]);
button3.setText(forAnswers[3]);
}catch(Exception e){
e.printStackTrace();
}
}
ImageView imageView;
Button button0;
Button button1;
Button button2;
Button button3;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
imageView = findViewById(R.id.imageView);
button0 = findViewById(R.id.button0);
button1 = findViewById(R.id.button1);
button2 = findViewById(R.id.button2);
button3 = findViewById(R.id.button3);
DownloadTask task = new DownloadTask();
String result = null;
try{
result = task.execute("http://www.posh24.se/kandisar").get();
//split
String[] splitResult = result.split("<div class=\"listedArticle\">");
Pattern p = Pattern.compile("<img src=\"(.*?)\"");
Matcher m = p.matcher(splitResult[0]);
while (m.find()){
celebURLs.add(m.group(1));
}
p = Pattern.compile("alt=\"(.*?)\"");
m = p.matcher(splitResult[0]);
while (m.find()){
celebNames.add(m.group(1));
}
newQuestion();
}catch(Exception e){
e.printStackTrace();
}
}
}
| [
"marta@MacBook-Air-Marta.local"
] | marta@MacBook-Air-Marta.local |
bbe26d2dfe6d000cc8f4894a941ed54b1616baa3 | 9630c7c54e36bf6f1e5f6921f0890f9725f972b9 | /src/main/java/com/jxf/web/admin/sys/CommonController.java | 2f9023b5ce0af8110b4faae5f1f9a477e42d62fa | [] | no_license | happyjianguo/wyjt | df1539f6227ff38b7b7990fb0c56d20105d9c0b1 | a5de0f17db2e5e7baf25ea72159e100c656920ea | refs/heads/master | 2022-11-18T01:16:29.783973 | 2020-07-14T10:32:42 | 2020-07-14T10:32:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 10,400 | java | package com.jxf.web.admin.sys;
import java.io.File;
import java.io.IOException;
import java.security.interfaces.RSAPublicKey;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import com.jxf.mms.consts.MmsConstant;
import com.jxf.mms.msg.SendSmsMsgService;
import com.jxf.mms.msg.utils.VerifyCodeUtils;
import com.jxf.mms.record.entity.MmsSmsRecord;
import com.jxf.mms.record.service.MmsSmsRecordService;
import com.jxf.svc.config.Global;
import com.jxf.svc.model.JsonpRsp;
import com.jxf.svc.model.Message;
import com.jxf.svc.security.rsa.RSAService;
import com.jxf.svc.servlet.Servlets;
import com.jxf.svc.servlet.ValidateCodeServlet;
import com.jxf.svc.sys.area.entity.Area;
import com.jxf.svc.sys.area.service.AreaService;
import com.jxf.svc.sys.image.entity.Image;
import com.jxf.svc.sys.image.service.ImageService;
import com.jxf.svc.utils.CalendarUtil;
import com.jxf.svc.utils.FileUploadUtils;
import com.jxf.svc.utils.JsonpUtils;
import com.jxf.svc.utils.StringUtils;
import com.jxf.web.model.ResponseData;
/**
*
* @类功能说明: 公用
* @类修改者:
* @修改日期:
* @修改说明:
* @公司名称:北京金信服科技有限公司
* @作者:Administrator
* @创建时间:2016年12月19日 上午10:56:53
* @版本:V1.0
*/
@Controller("adminCommonController")
@RequestMapping(value="${adminPath}/common")
public class CommonController {
@Autowired
private RSAService rsaService;
@Autowired
private AreaService areaService;
@Autowired
private SendSmsMsgService sendSmsMsgService;
@Autowired
private MmsSmsRecordService mmsSmsRecordService;
@Autowired
private ImageService imageService;
/**
* 公钥
*/
@RequestMapping(value = "/public_key", method = RequestMethod.GET)
public @ResponseBody
Map<String, String> publicKey(HttpServletRequest request) {
RSAPublicKey publicKey = rsaService.generateKey(request);
Map<String, String> data = new HashMap<String, String>();
data.put("modulus", Base64.encodeBase64String(publicKey.getModulus().toByteArray()));
data.put("exponent", Base64.encodeBase64String(publicKey.getPublicExponent().toByteArray()));
return data;
}
/**
* 地区
*/
@RequestMapping(value = "/area", method = RequestMethod.GET)
public @ResponseBody
ResponseData area(Long parentId) {
List<Map<String, Object>> data = new ArrayList<Map<String, Object>>();
Area parent = areaService.get(parentId);
Collection<Area> areas = parent != null ? areaService.getChildren(parent) : areaService.getRoot();
for (Area area : areas) {
Map<String, Object> item = new HashMap<String, Object>();
item.put("name", area.getName());
item.put("value", area.getId());
data.add(item);
}
return ResponseData.success("success",data);
}
/**
* 验证图形验证码
*/
@RequestMapping(value="checkImageCaptcha")
public void checkImageCaptcha(HttpServletRequest req, HttpServletResponse response,HttpSession session) {
JsonpRsp jsonpRsp = new JsonpRsp();
String checkcode = req.getParameter("image_captcha");
String code = (String)session.getAttribute(ValidateCodeServlet.VALIDATE_CODE);
if(!checkcode.toUpperCase().equals(code)){
jsonpRsp.setObj("验证码错误,请重新填写!");
jsonpRsp.setErrno(-1);
}else{
jsonpRsp.setErrno(0);
}
JsonpUtils.callback(req, response, jsonpRsp);
}
/**
* 发送短信验证码
*/
@ResponseBody
@RequestMapping(value="sendSMSCaptcha")
public Message sendSMSCaptcha(HttpServletRequest request, HttpServletResponse response,HttpSession session){
String phoneNo = request.getParameter("phoneNo");
String msgType = request.getParameter("msgType");
//生成验证码
String smsCode = VerifyCodeUtils.genSmsValidCode();
//将验证码存入session中
request.getSession().setAttribute(VerifyCodeUtils.SMS_CODE+phoneNo, smsCode);
sendSmsMsgService.sendSms(msgType,phoneNo,smsCode);
return Message.success("发送成功");
}
/**
* 验证短信验证码
*/
@RequestMapping(value="checkSMSCaptcha")
public void checkSMSCaptcha(HttpServletRequest req, HttpServletResponse response,HttpSession session){
JsonpRsp jsonpRsp = new JsonpRsp();
String phoneNo = req.getParameter("mobile");
String captcha = req.getParameter("captcha");
String msgType = req.getParameter("msgType");
MmsSmsRecord smsRecord = mmsSmsRecordService.getSendedVerifyCode(msgType,phoneNo, captcha);
if(smsRecord == null){
jsonpRsp.setErrno(-1);
jsonpRsp.setObj("短信验证码错误");
}else{
if(CalendarUtil.addSecond(smsRecord.getSendTime(), MmsConstant.SMS_OUTTIME).before(new Date())){
jsonpRsp.setErrno(-1);
jsonpRsp.setObj("短信验证码过期");
}else{
jsonpRsp.setErrno(0);
jsonpRsp.setObj(smsRecord.getId());
}
}
JsonpUtils.callback(req, response, jsonpRsp);
}
/**
* 上传图标
*
* @return result
*/
@RequestMapping("uploadIcon")
@ResponseBody
public ResponseData uploadIcon(MultipartHttpServletRequest multiRequest) {
Map<String, Object> result = new HashMap<String, Object>();
try {
// 获取多个文件
for (Iterator<String> it = multiRequest.getFileNames(); it.hasNext(); ) {
// 文件名
String key = (String) it.next();
// 根据key得到文件
MultipartFile multipartFile = multiRequest.getFile(key);
if (multipartFile.getSize() <= 0) {
continue;
}
String extension = FilenameUtils.getExtension(multipartFile.getOriginalFilename());
File tempFile = new File(FileUtils.getTempDirectory(), UUID.randomUUID() + ".tmp");
multipartFile.transferTo(tempFile);
String imageUploadPath = FileUploadUtils.upload(tempFile, "icon", "image", extension);
result.put("image", imageUploadPath);
}
} catch (IllegalStateException | IOException e) {
e.printStackTrace();
}
return ResponseData.success("上传成功", result);
}
/**
* 上传图片
*
* @return result
*/
@RequestMapping("uploadArticleImage")
@ResponseBody
public ResponseData uploadArticleImage(MultipartHttpServletRequest multiRequest) {
Map<String, Object> result = new HashMap<String, Object>();
// 获取多个文件
for (Iterator<String> it = multiRequest.getFileNames(); it.hasNext(); ) {
// 文件名
String key = (String) it.next();
// 根据key得到文件
MultipartFile imageFile = multiRequest.getFile(key);
if (imageFile.getSize() <= 0) {
continue;
}
Image image = new Image();
image.setFile(imageFile);
image.setDir("/article");
image.setAsync(false);
imageService.generate(image);
result.put("image", image.getImagePath());
}
return ResponseData.success("上传成功", result);
}
/**
* 上传图片
*
* @return result
*/
@RequestMapping("uploadArbitrationImage")
@ResponseBody
public ResponseData uploadArbitrationImage(MultipartHttpServletRequest multiRequest) {
Map<String, Object> result = new HashMap<String, Object>();
String imageUploadPath = "";
// 获取多个文件
try {
for (Iterator<String> it = multiRequest.getFileNames(); it.hasNext(); ) {
// 文件名
String key = (String) it.next();
// 根据key得到文件
MultipartFile multipartFile = multiRequest.getFile(key);
if (multipartFile.getSize() <= 0) {
continue;
}
String extension = FilenameUtils.getExtension(multipartFile.getOriginalFilename()).toLowerCase();
File tempFile = new File(FileUtils.getTempDirectory(), UUID.randomUUID() + ".tmp");
multipartFile.transferTo(tempFile);
String filePath = Global.getConfig("domain")+Servlets.getRequest().getContextPath()+FileUploadUtils.upload(tempFile, "arbitrationProof", "image", extension);
imageUploadPath = imageUploadPath + filePath + ",";
}
} catch (IllegalStateException | IOException e) {
return ResponseData.error("图片上传错误");
}
result.put("image", StringUtils.substring(imageUploadPath, 0, imageUploadPath.lastIndexOf(",")));
return ResponseData.success("上传成功", result);
}
/**
* 上传视频
* @param multiRequest
* @return
* @throws Exception
*/
@RequestMapping("uploadVideo")
@ResponseBody
public ResponseData upload(MultipartHttpServletRequest multiRequest) throws Exception {
Map<String, Object> result = new HashMap<String, Object>();
try {
// 获取多个文件
for (Iterator<String> it = multiRequest.getFileNames(); it.hasNext(); ) {
// 文件名
String key = (String) it.next();
// 根据key得到文件
MultipartFile multipartFile = multiRequest.getFile(key);
if (multipartFile.getSize() <= 0) {
continue;
}
String extension = FilenameUtils.getExtension(multipartFile.getOriginalFilename());
File tempFile = new File(FileUtils.getTempDirectory(), UUID.randomUUID() + ".tmp");
multipartFile.transferTo(tempFile);
String videoUploadPath = FileUploadUtils.upload(tempFile, "video", "video", extension);
result.put("video", videoUploadPath);
}
} catch (IllegalStateException | IOException e) {
e.printStackTrace();
}
return ResponseData.success("上传成功", result);
}
} | [
"gbojob@126.com"
] | gbojob@126.com |
a2da3aecae12e3fab8d58de8d501a8d40641e4e8 | b852321ea62776a130e1359cd373d47c6163ff29 | /git-mdstudio-core/src/java/com/md/studio/service/Refreshable.java | 60af87ed2c6d4b1e0f3886eb1dfc1ee8b29b521e | [] | no_license | randhie/mds-prod-core | b20464a557e8735cece1a72d92e95744fc39e57a | 6bd5235dbcdf6538a5a28ed0937d18f7fd9a08c1 | refs/heads/master | 2021-03-30T22:40:50.711110 | 2018-03-09T05:37:47 | 2018-03-09T05:37:47 | 124,492,568 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 109 | java | package com.md.studio.service;
public interface Refreshable {
public void refresh(String arg);
}
| [
"randolph.ordinario@gmail.com"
] | randolph.ordinario@gmail.com |
4d5ca90d7e79faa7784a5bb8e010252ba62f0389 | 126b90c506a84278078510b5979fbc06d2c61a39 | /src/ANXCamera/sources/com/color/compat/net/ConnectivityManagerNative.java | 2ea6036d654e7916ac82b49be7f0969041ad9863 | [] | no_license | XEonAX/ANXRealCamera | 196bcbb304b8bbd3d86418cac5e82ebf1415f68a | 1d3542f9e7f237b4ef7ca175d11086217562fad0 | refs/heads/master | 2022-08-02T00:24:30.864763 | 2020-05-29T14:01:41 | 2020-05-29T14:01:41 | 261,256,968 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,536 | java | package com.color.compat.net;
import android.net.ConnectivityManager;
import android.os.Handler;
import android.util.Log;
import com.color.inner.net.ConnectivityManagerWrapper;
import com.color.util.UnSupportedApiVersionException;
import com.color.util.VersionUtils;
import java.util.List;
public class ConnectivityManagerNative {
private static final String TAG = "ConnManagerNative";
public interface OnStartTetheringCallbackNative {
void onTetheringFailed();
void onTetheringStarted();
}
private ConnectivityManagerNative() {
}
public static List<String> readArpFile(ConnectivityManager connectivityManager) {
try {
return ConnectivityManagerWrapper.readArpFile(connectivityManager);
} catch (Throwable th) {
Log.e(TAG, th.toString());
return null;
}
}
public static void setVpnPackageAuthorization(String str, int i, boolean z) {
try {
ConnectivityManagerWrapper.setVpnPackageAuthorization(str, i, z);
} catch (Throwable th) {
Log.e(TAG, th.toString());
}
}
public static void startTethering(ConnectivityManager connectivityManager, int i, boolean z, final OnStartTetheringCallbackNative onStartTetheringCallbackNative, Handler handler) {
try {
ConnectivityManagerWrapper.OnStartTetheringCallbackWrapper onStartTetheringCallbackWrapper = null;
if (VersionUtils.isQ()) {
if (onStartTetheringCallbackNative != null) {
onStartTetheringCallbackWrapper = new ConnectivityManagerWrapper.OnStartTetheringCallbackWrapper() {
public void onTetheringFailed() {
onStartTetheringCallbackNative.onTetheringFailed();
}
public void onTetheringStarted() {
onStartTetheringCallbackNative.onTetheringStarted();
}
};
}
ConnectivityManagerWrapper.startTethering(connectivityManager, i, z, onStartTetheringCallbackWrapper, handler);
} else if (VersionUtils.isN()) {
if (onStartTetheringCallbackNative != null) {
onStartTetheringCallbackWrapper = new ConnectivityManager.OnStartTetheringCallback() {
public void onTetheringFailed() {
onStartTetheringCallbackNative.onTetheringFailed();
}
public void onTetheringStarted() {
onStartTetheringCallbackNative.onTetheringStarted();
}
};
}
connectivityManager.startTethering(i, z, onStartTetheringCallbackWrapper, handler);
} else {
throw new UnSupportedApiVersionException();
}
} catch (Throwable th) {
Log.e(TAG, th.toString());
}
}
public static void stopTethering(ConnectivityManager connectivityManager, int i) {
try {
if (VersionUtils.isQ()) {
ConnectivityManagerWrapper.stopTethering(connectivityManager, i);
} else if (VersionUtils.isN()) {
connectivityManager.stopTethering(i);
} else {
throw new UnSupportedApiVersionException();
}
} catch (Throwable th) {
Log.e(TAG, th.toString());
}
}
}
| [
"sv.xeon@gmail.com"
] | sv.xeon@gmail.com |
90dfe40c6f94f52ecbebc116ead2527fc9b339f6 | 09eaa46b4fddeb990fb94312bd9d0e8c2dada07c | /Shop/src/java/controller/CartServlet.java | 254d439edf3a0472c33c6f6002393b482791bf4b | [] | no_license | dinhuy6695/Show | 479d0df93715754dabee5220e527f138e1c5a1dc | 8be353661b87e98c1bbb84bc870978fdb6ce3bdf | refs/heads/master | 2021-09-01T00:08:41.368824 | 2017-12-23T17:41:39 | 2017-12-23T17:41:39 | 115,211,003 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,972 | java | package controller;
import dao.ProductDAO;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import model.Cart;
import model.Item;
import model.Product;
public class CartServlet extends HttpServlet {
private final ProductDAO productDAO = new ProductDAO();
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doPost(request, response);
}
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
HttpSession session = request.getSession();
String command = request.getParameter("command");
String productID = request.getParameter("productID");
Cart cart = (Cart) session.getAttribute("cart");
try {
Long idProduct = Long.parseLong(productID);
Product product = productDAO.getProduct(idProduct);
switch (command) {
case "plus":
if (cart.getCartItems().containsKey(idProduct)) {
cart.plusToCart(idProduct,
new Item(product,cart.getCartItems().get(idProduct).getQuantity()));
} else {
cart.plusToCart(idProduct, new Item(product, 1));
}
break;
case "remove":
cart.removeToCart(idProduct);
break;
}
} catch (Exception e) {
e.printStackTrace();
response.sendRedirect("/Shop/Index.jsp");
}
session.setAttribute("cart", cart);
response.sendRedirect("/Shop/Index.jsp");
}
}
| [
"dinhuy6695@gmail.com"
] | dinhuy6695@gmail.com |
ddfc457af75071bc5c1c7eae423dd029ea6913fa | c82e242bb65a6abe6638d0542fb0e370e8d959d5 | /src/com/itcast/web/servlet/ServletDemo1.java | f1b354aabe44e71fd794a194713ad14eb925d239 | [] | no_license | zb666/TomcatProject | ec030b9c2fc82bacdee01b32d4be677f345367f9 | 8b498d62b8cb1122212ec2b35530b874b1a09ca8 | refs/heads/master | 2022-12-26T21:35:42.767588 | 2020-10-05T07:08:47 | 2020-10-05T07:08:47 | 301,315,034 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 735 | java | package com.itcast.web.servlet;
import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;
@WebServlet({"/demo1","/demo2","/demo3"})
public class ServletDemo1 implements Servlet {
@Override
public void init(ServletConfig servletConfig) throws ServletException {
}
@Override
public ServletConfig getServletConfig() {
return null;
}
@Override
public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
System.out.println("Service 3.0 来了");
}
@Override
public String getServletInfo() {
return null;
}
@Override
public void destroy() {
}
}
| [
"1360799362@qq.com"
] | 1360799362@qq.com |
ef6d897046f1a7c3e26c0ebec547b3c8488f0e1a | 7c3caea671dc84b553e44ea62af86970e7801305 | /app/src/androidTest/java/com/example/administrator/android_animation_tween/ApplicationTest.java | f1a160a692fb9cde3ff9cf6972f31b76d21a4418 | [] | no_license | liyiJiang/Android_animation_tween | ef4c50e18d65b11ec0fa5c3639c7532e33af40e6 | 2d07ea47b7dffba00c45b9256a6d67fe68b75d75 | refs/heads/master | 2021-01-12T15:17:10.758423 | 2016-10-24T02:55:20 | 2016-10-24T02:55:20 | 71,741,077 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 380 | java | package com.example.administrator.android_animation_tween;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
} | [
"787206710@qq.com"
] | 787206710@qq.com |
9b8cecf90fc1504125d20349211cb3f977a4f6db | c19d27a3c089b12400cdb93acc43dc977f42fffa | /app/src/main/java/com/hakber/dietgo/weight.java | 2f988059df6631397a9931620c0cb51997354247 | [] | no_license | qpelit/DietGo-Android- | 7302f5a561319a706be97445e2cb627fc58f3c1a | f4cc0b1497a63e265f23c49923c27d96fb11df08 | refs/heads/master | 2021-01-11T01:45:36.745012 | 2017-01-24T23:13:34 | 2017-01-24T23:13:34 | 70,643,497 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 4,826 | java | package com.hakber.dietgo;
import android.app.DatePickerDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.DatePicker;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.w3c.dom.Text;
import java.util.ArrayList;
import java.util.Calendar;
public class weight extends AppCompatActivity {
ListView weightList;
TextView lastWeightValueText;
TextView currentWeightValueText;
int user_id;
private ProgressBar spinner;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_weight);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
spinner = (ProgressBar)findViewById(R.id.progressBar1);
SharedPreferences preferences= getSharedPreferences("userInfos", 0);
user_id = preferences.getInt("user_id", -1);
weightList=(ListView) findViewById(R.id.weightListView);
lastWeightValueText=(TextView) findViewById(R.id.lastWeightValueText) ;
currentWeightValueText=(TextView) findViewById(R.id.currentWeightValueText) ;
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fabWeight);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent i = new Intent(weight.this, weightAdd.class);
startActivity(i);
}
});
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getWeightData(); // to set Weight List by getting weight data from server
}
private void getWeightData() {
// String id = editTextId.getText().toString().trim();
//if (id.equals("")) {
// Toast.makeText(this, "Please enter an id", Toast.LENGTH_LONG).show();
// return;
// }
//loading = ProgressDialog.show(this,"Please wait...","Fetching...",false,false);
spinner.setVisibility(View.VISIBLE);
String url = Config.WEIGHT_DATA_URL+user_id;
StringRequest stringRequest = new StringRequest(url, new Response.Listener<String>() {
@Override
public void onResponse(String response) {
//loading.dismiss();
spinner.setVisibility(View.GONE);
showJSON(response);
}
},
new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Toast.makeText(weight.this, error.getMessage().toString(), Toast.LENGTH_LONG).show();
}
});
RequestQueue requestQueue = Volley.newRequestQueue(this);
requestQueue.add(stringRequest);
}
private void showJSON(String response){
int id;
Float weight=0f;
String date;
JSONArray result;
ArrayList<String> items = new ArrayList<String>();
JSONObject collegeData;
try {
JSONObject jsonObject = new JSONObject(response);
result = jsonObject.getJSONArray(Config.JSON_ARRAY);
for(int i=0; i < result.length() ; i++) {
collegeData = (JSONObject) result.get(i);
id= collegeData.getInt("id");
weight = (float) collegeData.getDouble("weight");
date = collegeData.getString("date");
items.add(String.valueOf(weight));
}
if(result.length() - 2>=0) {
lastWeightValueText.setText(items.get(result.length() - 2) + " kg");
currentWeightValueText.setText(items.get(result.length() - 1) + " kg");
}
else{
lastWeightValueText.setText(items.get(result.length() - 1) + " kg");
currentWeightValueText.setText(items.get(result.length() - 1) + " kg");
}
CustomWeightList cl = new CustomWeightList(this, result,items);
weightList.setAdapter(cl);
} catch (JSONException e) {
e.printStackTrace();
}
}
}
| [
"qpelit@Hakans.local"
] | qpelit@Hakans.local |
c0de4b78c9dcb2e1366d34d76e2f48a876d26879 | d175e7c1a5700479a7bb0ed864d463f588c1e61f | /Solution_剑指Offer20表示数值的字符串.java | accd8efe82d51968f4f183a5cd08120266ee3532 | [] | no_license | 1160300404/leetcodeSolution | 5754b8fdd8d31ce7a7d0a0e95d4afd411396853b | eaab2c4924684e6f0dc7852612975e8aa1da8bac | refs/heads/master | 2023-03-14T10:07:33.181694 | 2021-03-01T10:58:55 | 2021-03-01T10:58:55 | 309,036,780 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 953 | java | public class Solution_剑指Offer20表示数值的字符串 {
public boolean isNumber(String s) {
boolean ans=false;
int index=getnum(s,0);
if(index>0) ans=true;
if(s.charAt(index)=='.'){
int oldindex=index;
index=getnum(s,oldindex+1);
ans=ans||(index>oldindex);
}
if(s.charAt(index)=='e'||s.charAt(index)=='E'){
int oldindex=index;
index=getnum(s,oldindex+1);
ans=ans&&(index>oldindex);
}
return ans&&index==s.length();
}
public int getnum(String s,int index){
// int index=0;
if(s.charAt(index)=='+'||s.charAt(index)=='-'){
index++;
}
return getunsignednum(s,index);
}
public int getunsignednum(String s,int index){
if(index<s.length()&&s.charAt(index)>='0'&&s.charAt(index)<='9'){
index++;
}
return index;
}
}
| [
"1273652804@qq.com"
] | 1273652804@qq.com |
41442e957f46d9ae687584ef5ecae46d3577ba56 | 63daf67dc2a2f12ba3900b9ef15f89950ac5f4c5 | /app/src/main/java/com/offcasoftware/shop2/model/Product.java | 8dc19e0e8cbf69e218b657ea8f89a74a738a9cd3 | [] | no_license | mgieysztor/Shop2_orm | f5ece35cdda2abd2a9408572c3275cb77bfae3d3 | 44203f33d66a43fb49221ba1dd46f5b7bb32597d | refs/heads/master | 2020-05-18T13:07:31.493604 | 2017-03-07T19:59:37 | 2017-03-07T19:59:37 | 84,239,366 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,177 | java | package com.offcasoftware.shop2.model;
import com.j256.ormlite.field.DatabaseField;
/**
* @author maciej.pachciarek on 2017-02-18.
*/
public class Product {
static final String TABLE_NAME = "products";
@DatabaseField(columnName = "id", generatedId = true)
private int mId;
@DatabaseField (columnName = "name", canBeNull = false,unique = true)
private String mName;
@DatabaseField (columnName = "price", canBeNull = false)
private int mPrice;
@DatabaseField (columnName = "imageName", defaultValue = "dom2")
private String mImage;
public Product() {
}
// private final int mId;
// private String mName;
// private int mPrice;
// private String mImage; //mImageResId;
public Product(final int id, final String name,
final int price, final String imageName) {
mId = id;
mName = name;
mPrice = price;
mImage = imageName;
}
public int getId() {
return mId;
}
public String getName() {
return mName;
}
public int getPrice() {
return mPrice;
}
public String getImageResId() {
return mImage;
}
}
| [
"michal.gieysztor@gmail.com"
] | michal.gieysztor@gmail.com |
6a006ec609c6f702bd4c458f644ef57ec2f3b3f9 | f4e83217c4b3fb830ccf273d9feb38d0c70aad10 | /app/build/generated/source/r/debug/android/support/coreui/R.java | 75ce0a8243af40106c97041a959e225d6535b7b8 | [] | no_license | vantien1401/FoodOrder | acc55fb07124a6ccaf0b0ba4b2aa32b69e69ad62 | 392014a62988e8dc0868b7d34ca101128fbb68aa | refs/heads/master | 2020-06-02T08:17:41.559806 | 2019-09-23T04:25:28 | 2019-09-23T04:25:28 | 191,094,158 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,610 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package android.support.coreui;
public final class R {
public static final class attr {
public static final int font = 0x7f030128;
public static final int fontProviderAuthority = 0x7f03012a;
public static final int fontProviderCerts = 0x7f03012b;
public static final int fontProviderFetchStrategy = 0x7f03012c;
public static final int fontProviderFetchTimeout = 0x7f03012d;
public static final int fontProviderPackage = 0x7f03012e;
public static final int fontProviderQuery = 0x7f03012f;
public static final int fontStyle = 0x7f030130;
public static final int fontWeight = 0x7f030131;
}
public static final class bool {
public static final int abc_action_bar_embed_tabs = 0x7f040000;
}
public static final class color {
public static final int notification_action_color_filter = 0x7f050065;
public static final int notification_icon_bg_color = 0x7f050066;
public static final int ripple_material_light = 0x7f050071;
public static final int secondary_text_default_material_light = 0x7f050073;
}
public static final class dimen {
public static final int compat_button_inset_horizontal_material = 0x7f060051;
public static final int compat_button_inset_vertical_material = 0x7f060052;
public static final int compat_button_padding_horizontal_material = 0x7f060053;
public static final int compat_button_padding_vertical_material = 0x7f060054;
public static final int compat_control_corner_material = 0x7f060055;
public static final int notification_action_icon_size = 0x7f0600a7;
public static final int notification_action_text_size = 0x7f0600a8;
public static final int notification_big_circle_margin = 0x7f0600a9;
public static final int notification_content_margin_start = 0x7f0600aa;
public static final int notification_large_icon_height = 0x7f0600ab;
public static final int notification_large_icon_width = 0x7f0600ac;
public static final int notification_main_column_padding_top = 0x7f0600ad;
public static final int notification_media_narrow_margin = 0x7f0600ae;
public static final int notification_right_icon_size = 0x7f0600af;
public static final int notification_right_side_padding_top = 0x7f0600b0;
public static final int notification_small_icon_background_padding = 0x7f0600b1;
public static final int notification_small_icon_size_as_large = 0x7f0600b2;
public static final int notification_subtext_size = 0x7f0600b3;
public static final int notification_top_pad = 0x7f0600b4;
public static final int notification_top_pad_large_text = 0x7f0600b5;
}
public static final class drawable {
public static final int notification_action_background = 0x7f070083;
public static final int notification_bg = 0x7f070084;
public static final int notification_bg_low = 0x7f070085;
public static final int notification_bg_low_normal = 0x7f070086;
public static final int notification_bg_low_pressed = 0x7f070087;
public static final int notification_bg_normal = 0x7f070088;
public static final int notification_bg_normal_pressed = 0x7f070089;
public static final int notification_icon_background = 0x7f07008a;
public static final int notification_template_icon_bg = 0x7f07008b;
public static final int notification_template_icon_low_bg = 0x7f07008c;
public static final int notification_tile_bg = 0x7f07008d;
public static final int notify_panel_notification_icon_bg = 0x7f07008e;
}
public static final class id {
public static final int action_container = 0x7f08000e;
public static final int action_divider = 0x7f080010;
public static final int action_image = 0x7f080011;
public static final int action_text = 0x7f080019;
public static final int actions = 0x7f08001a;
public static final int async = 0x7f080028;
public static final int blocking = 0x7f08002d;
public static final int chronometer = 0x7f080043;
public static final int forever = 0x7f08006c;
public static final int icon = 0x7f08007b;
public static final int icon_group = 0x7f08007c;
public static final int info = 0x7f080083;
public static final int italic = 0x7f080085;
public static final int line1 = 0x7f08008d;
public static final int line3 = 0x7f08008e;
public static final int normal = 0x7f0800b6;
public static final int notification_background = 0x7f0800b7;
public static final int notification_main_column = 0x7f0800b8;
public static final int notification_main_column_container = 0x7f0800b9;
public static final int right_icon = 0x7f0800d2;
public static final int right_side = 0x7f0800d3;
public static final int text = 0x7f080102;
public static final int text2 = 0x7f080103;
public static final int time = 0x7f080109;
public static final int title = 0x7f08010a;
}
public static final class integer {
public static final int status_bar_notification_info_maxnum = 0x7f09000a;
}
public static final class layout {
public static final int notification_action = 0x7f0a003c;
public static final int notification_action_tombstone = 0x7f0a003d;
public static final int notification_template_custom_big = 0x7f0a0044;
public static final int notification_template_icon_group = 0x7f0a0045;
public static final int notification_template_part_chronometer = 0x7f0a0049;
public static final int notification_template_part_time = 0x7f0a004a;
}
public static final class string {
public static final int status_bar_notification_info_overflow = 0x7f0d003b;
}
public static final class style {
public static final int TextAppearance_Compat_Notification = 0x7f0e0155;
public static final int TextAppearance_Compat_Notification_Info = 0x7f0e0156;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0e0158;
public static final int TextAppearance_Compat_Notification_Time = 0x7f0e015b;
public static final int TextAppearance_Compat_Notification_Title = 0x7f0e015d;
public static final int Widget_Compat_NotificationActionContainer = 0x7f0e01d3;
public static final int Widget_Compat_NotificationActionText = 0x7f0e01d4;
}
public static final class styleable {
public static final int[] FontFamily = { 0x7f03012a, 0x7f03012b, 0x7f03012c, 0x7f03012d, 0x7f03012e, 0x7f03012f };
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 = { 0x7f030128, 0x7f030130, 0x7f030131 };
public static final int FontFamilyFont_font = 0;
public static final int FontFamilyFont_fontStyle = 1;
public static final int FontFamilyFont_fontWeight = 2;
}
}
| [
"pvtien140193@gmail.com"
] | pvtien140193@gmail.com |
8a6fafe8a378df6e4a3b5e0e41ed0fb9c2484c4c | c18ec8f6ed0b10dead92812f41242974a7c4773a | /app/src/main/java/me/arun/arunrxjavaexploring/utils/FragmentHelper/FrgamentViewSelectionHelper.java | 1dceea1ab38b5b00a693584c568cf8326448d35e | [] | no_license | arunpandian22/RxJavaExploring | 2b5c20a64cd2d3ee99f8761a4bd97090c0134ffe | b4431b2c9013d11843f60e1502a13caf1a3d5c4f | refs/heads/master | 2020-04-16T06:36:49.992955 | 2019-01-28T03:41:45 | 2019-01-28T03:41:45 | 165,354,362 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,048 | java | package me.arun.arunrxjavaexploring.utils.FragmentHelper;
/**
* A Class created for the get the view id for the Fragment add
* Created by Jaison.
*/
public class FrgamentViewSelectionHelper
{
public static final String TAG="ViewSelectionHelper";
public static final int LOCATION_COLLECTION_DETAILS=1;
public static final int FAV_COLLECTION_DETAILS=2;
public static final int COLLECTION_PLACE_LIST=3;
/**
* A method to get the View Id based on HomeSource enum type
*
* @param pageSource a param has the Enum type of HomeSource
* @return it returns the id of the view
*/
// public static int getParentSourceId(HomeSource pageSource) {
// switch (pageSource) {
// case HOME:
// return R.id.navigationHome;
// case SEARCH:
// return R.id.navigationSearch;
// case SETTINGS:
// return R.id.navigationSettings;
// case FAVOURITE:
// return R.id.navigationFavourites;
// default:
// return 0;
// }
// }
/**
* A method to get the View Id based on pageSource
* @param pageSource a param has the value for which screen layout has to select
* @return it returns the view id for the particular screen based on given pageSource value
*/
// public static int getCollectionViewId(int pageSource) {
// Log.d(TAG, "getCollectionFrameId : "+pageSource);
//
// switch(pageSource) {
// case LOCATION_COLLECTION_DETAILS:
// return R.layout.fragment_home;
// case FAV_COLLECTION_DETAILS:
// return R.layout.fragment_place_details;
// case COLLECTION_PLACE_LIST:
// return R.layout.fragment_place_listing;
// default:
// return R.layout.fragment_home;
// }
// }
/**
* A enum Class created to Bottom Tabs type
*/
public enum HomeSource {
HOME, SEARCH, FAVOURITE, SETTINGS
}
}
| [
"arun@nfnlabs.in"
] | arun@nfnlabs.in |
5979b1c45f22158ae9ec53c588c42ee064b01acc | f10ffc7f6f7fcbf03c0b5d3cdef0b58d2a294332 | /201412377_exConstructorSpringDI/src/main/java/kr/ac/dit/ClassB.java | a5c060cd9796034a3655b26cce2887a49f800031 | [] | no_license | qerwa/webproject | 1abe6a81d13b2a80b5b3598a7afd925d3fb22d5b | 927878fc06d6a231481de563d84e9269d3997d8d | refs/heads/master | 2020-03-29T04:35:36.270099 | 2018-11-29T01:17:43 | 2018-11-29T01:17:43 | 149,538,550 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 233 | java | package kr.ac.dit;
public class ClassB {
ClassA classA;
public void setClassA(ClassA classA) {
this.classA = classA;
}
public void methodB() {
System.out.println("ClassB depends on "+classA.methodA());
}
} | [
"D7608@DESKTOP-PNB790R"
] | D7608@DESKTOP-PNB790R |
939f9f867f9a3f27fc9d08f67b8c85f7ae3fdd1a | d1f0340b0355e59f2d154b27b22629379fd7f930 | /src/main/java/com/princeli/pattern/strategy/pay/payport/Payment.java | 5fcfc533559d1db13cce107bca6fc1c85ede9b98 | [] | no_license | future1314/pattern-demo | 4dd022bdd81c165acf635768b270a0ec547f2e77 | ea90c6f7c4a65d492c8fc06cd5205e5419df4569 | refs/heads/master | 2020-06-04T20:36:20.127545 | 2019-05-10T03:42:28 | 2019-05-10T03:42:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 532 | java | package com.princeli.pattern.strategy.pay.payport;
import com.princeli.pattern.strategy.pay.PayState;
/**
* @program: pattern-demo
* @description: ${description}
* @author: ly
* @create: 2018-07-16 11:30
**/
public interface Payment {
public final static Payment ALI_PAY = new AliPay();
public final static Payment JD_PAY = new JDPay();
public final static Payment UNION_PAY = new UnionPay();
public final static Payment WECHAT_PAY = new WechatPay();
public PayState pay(String uid, double amount);
}
| [
"liyang@elineprint.com"
] | liyang@elineprint.com |
6eeab44bb93ed7986542358a0934d13e10344e6e | 40a3d5f4cd6aaa490489bb485f3efb01c72e9c0c | /src/main/database/dao/impl/SaverAccountDaoImpl.java | c299e3b959b92d98934365309a521062e7f46d59 | [] | no_license | zolars/bank-system | df6594f57f5d8c0df81066887bd6a80e1b829773 | d7fb0ff6f155963033c92ea78c313376f2d33f32 | refs/heads/master | 2021-11-23T08:35:08.795872 | 2021-10-27T07:22:14 | 2021-10-27T07:22:14 | 185,564,487 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,008 | java | package database.dao.impl;
import database.BaseDao;
import database.dao.SaverAccountDao;
import database.entity.Account;
import database.entity.Customer;
import database.entity.SaverAccount;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
/**
* SaverAccountDaoImpl
*/
public class SaverAccountDaoImpl extends AccountDaoImpl implements SaverAccountDao {
private SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
// search for the Credit Status
private boolean confirmCreditStatus(String name) {
// some process by name
return true;
}
// 1 for success; 0 for existed account; -1 for unavailable credit;
public int addAccount(Customer customer) throws IOException {
SaverAccount account = new SaverAccount(customer);
if (!confirmCreditStatus(account.getCustomer().getName())) {
return -1;
} else {
account.setId(BaseDao.fileCount());
if (!BaseDao.addFile(account.toFileName(), account.toString())) {
return 0;
} else {
BaseDao.addLine("accounts.txt", (BaseDao.fileCount() - 1) + "\t|\tsaver");
return account.getId();
}
}
}
// 1 for success; 0 for no account; -2 for wrong pin;
// -3 for suspended; -4 for no order; -5 for ordered notice;
// -6 for ordered not due
@Override
public int addWithdral(int id, int pin, double num) throws IOException {
Account account = findAccount(id);
if (pin < 0) {
return addOrder(id, account.getPin(), num);
}
if (account == null) {
return 0;
}
if (pin != account.getPin()) {
return -2;
}
if (account.isSuspended()) {
BaseDao.addLine(account.toFileName(),
BaseDao.dataCount(account.toFileName(), "", 0) + "\t|\t" + "withdral" + "\t|\t"
+ sf.format(Calendar.getInstance().getTime()) + "\t|\t"
+ String.format("%-4.2f", account.getAvailableAmount()) + "\t|\t"
+ String.format("%-4.2f", account.getBalance()) + "\t|\tfrozen");
return -3;
}
if (account.getAvailableAmount() == 0) {
return -4;
}
try {
List<String[]> resultStr = BaseDao.search(account.toFileName(), "order ", 1);
String[] result = resultStr.get(resultStr.size() - 1);
if (new Date().getTime() - sf.parse(result[2]).getTime() <= 24 * 60 * 60 * 1000) {
return -6;
}
} catch (Exception e) {
e.printStackTrace();
}
if (num >= 0) {
return -5;
}
num = account.getAvailableAmount();
account.setBalance(account.getBalance() - account.getAvailableAmount());
account.setAvailableAmount(0);
if (!BaseDao.replace(account.toFileName(), account.toString())) {
return 0;
}
if (BaseDao.addLine(account.toFileName(),
BaseDao.dataCount(account.toFileName(), "", 0) + "\t|\t" + "withdral" + "\t|\t"
+ sf.format(Calendar.getInstance().getTime()) + "\t|\t" + String
.format("%-4.2f", num) + "\t|\t"
+ String.format("%-4.2f", account.getBalance()) + "\t|\tsuccess")) {
return 1;
} else {
return 0;
}
}
// 1 for success; 0 for no account; -1 for overrun; -2 for wrong pin;
// -3 for suspended; -4 for already order ;
public int addOrder(int id, int pin, double num) throws IOException {
Account account = findAccount(id);
if (account == null) {
return 0;
}
if (pin != account.getPin()) {
return -2;
}
if (account.isSuspended()) {
BaseDao.addLine(account.toFileName(),
BaseDao.dataCount(account.toFileName(), "", 0) + "\t|\t" + "order " + "\t|\t"
+ sf.format(Calendar.getInstance().getTime()) + "\t|\t" + String
.format("%-4.2f", num)
+ "\t|\t" + String.format("%-4.2f", account.getBalance())
+ "\t|\tfrozen");
return -3;
}
if (account.getAvailableAmount() != 0) {
return -4;
}
// Judge overrun
if (account.getBalance() - num + account.getOverdraftLimit() < 0) {
BaseDao.addLine(account.toFileName(),
BaseDao.dataCount(account.toFileName(), "", 0) + "\t|\t" + "order " + "\t|\t"
+ sf.format(Calendar.getInstance().getTime()) + "\t|\t" + String
.format("%-4.2f", num)
+ "\t|\t" + String.format("%-4.2f", account.getBalance())
+ "\t|\toverrun");
return -1;
}
account.setAvailableAmount(num);
if (!BaseDao.replace(account.toFileName(), account.toString())) {
return 0;
}
if (BaseDao.addLine(account.toFileName(),
BaseDao.dataCount(account.toFileName(), "", 0) + "\t|\t" + "order " + "\t|\t"
+ sf.format(Calendar.getInstance().getTime()) + "\t|\t"
+ String.format("%-4.2f", account.getAvailableAmount()) + "\t|\t"
+ String.format("%-4.2f", account.getBalance()) + "\t|\tsuccess")) {
return 1;
} else {
return 0;
}
}
public static void main(String[] args) {
SaverAccountDao dao = new SaverAccountDaoImpl();
try {
System.out.println(dao.addWithdral(5, 390149, 123));
} catch (IOException e) {
e.printStackTrace();
}
}
}
| [
"zolars@outlook.com"
] | zolars@outlook.com |
a9e446189b72241d7338c0cc5d428844940f0a21 | 9821426ca32b707134eee8dbda9ef4ce64a97045 | /MiuiSystemUI/raphael/systemui/statusbar/phone/HeadsUpTouchCallbackWrapper.java | a6be640f77683a0c2725cd7df4c218218910c77a | [] | no_license | mooseIre/arsc_compare | a28af8205cc75647b3f6e8c1b3310ca2b2140725 | 3df667d4e4d4924e11cbcfd9df29346a3c259e32 | refs/heads/master | 2023-06-21T13:30:23.511293 | 2021-08-12T15:13:08 | 2021-08-12T15:13:08 | 277,633,842 | 3 | 3 | null | null | null | null | UTF-8 | Java | false | false | 2,135 | java | package com.android.systemui.statusbar.phone;
import android.content.Context;
import com.android.systemui.statusbar.notification.row.ExpandableView;
import com.android.systemui.statusbar.phone.HeadsUpTouchHelper;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/* compiled from: MiuiNotificationPanelViewController.kt */
final class HeadsUpTouchCallbackWrapper implements HeadsUpTouchHelper.Callback {
private final HeadsUpTouchHelper.Callback base;
private final HeadsUpManagerPhone headsUpManagerPhone;
private final MiuiNotificationPanelViewController panelView;
public HeadsUpTouchCallbackWrapper(@NotNull MiuiNotificationPanelViewController miuiNotificationPanelViewController, @NotNull HeadsUpManagerPhone headsUpManagerPhone2, @NotNull HeadsUpTouchHelper.Callback callback) {
Intrinsics.checkParameterIsNotNull(miuiNotificationPanelViewController, "panelView");
Intrinsics.checkParameterIsNotNull(headsUpManagerPhone2, "headsUpManagerPhone");
Intrinsics.checkParameterIsNotNull(callback, "base");
this.panelView = miuiNotificationPanelViewController;
this.headsUpManagerPhone = headsUpManagerPhone2;
this.base = callback;
}
@Override // com.android.systemui.statusbar.phone.HeadsUpTouchHelper.Callback
public boolean isExpanded() {
return this.base.isExpanded() && !(this.headsUpManagerPhone.hasPinnedHeadsUp() && this.panelView.isExpectingSynthesizedDown$packages__apps__MiuiSystemUI__packages__SystemUI__android_common__MiuiSystemUI_core());
}
@Override // com.android.systemui.statusbar.phone.HeadsUpTouchHelper.Callback
@Nullable
public ExpandableView getChildAtRawPosition(float f, float f2) {
return this.base.getChildAtRawPosition(f, f2);
}
@Override // com.android.systemui.statusbar.phone.HeadsUpTouchHelper.Callback
@NotNull
public Context getContext() {
Context context = this.base.getContext();
Intrinsics.checkExpressionValueIsNotNull(context, "base.context");
return context;
}
}
| [
"viiplycn@gmail.com"
] | viiplycn@gmail.com |
2ec941ab097bd56d2e828a9ac9d7e2691e0d88bb | c7872978380cf768450183c214be2f2516071691 | /src/main/java/com/example/controller/OrderMasterController.java | 05ac39222546a9bdda263508700073b4e5510bfa | [] | no_license | MwGitHub2019/wxdc | 7fd72350ca5bd09caeddeab01dd3662fbb76a877 | 2d8f89f18593eb016ac63baae87d720d1f38d1cd | refs/heads/master | 2020-05-14T16:30:39.425566 | 2019-04-17T11:02:48 | 2019-04-17T11:02:48 | 181,873,760 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,735 | java | package com.example.controller;
import com.example.common.ResultResponse;
import com.example.dto.OrderMasterDto;
import com.example.service.OrderMasterService;
import com.example.util.JsonUtil;
import com.google.common.collect.Maps;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.validation.Valid;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
@RestController
@RequestMapping("buyer/order")
@Api(value = "订单相关接口",description = "完成订单的增删改查")
public class OrderMasterController {
@Autowired
private OrderMasterService orderMasterService;
@RequestMapping("/create")
@ApiOperation(value = "创建订单",httpMethod = "POST",response = ResultResponse.class)
public ResultResponse create(@Valid @ApiParam(name = "订单对象",value = "传入json格式",required = true) OrderMasterDto orderMasterDto, BindingResult bindingResult){
//创建Map
Map<String,String> map = Maps.newHashMap();
//判断参数是否有误
if (bindingResult.hasErrors()){
List<String> collect = bindingResult.getFieldErrors().stream().map(err -> err.getDefaultMessage()).collect(Collectors.toList());
map.put("参数校验异常", JsonUtil.object2string(collect));
return ResultResponse.fail(map);
}
return orderMasterService.insterOrder(orderMasterDto);
}
}
| [
"mw01063396@163.com"
] | mw01063396@163.com |
8a8c1f49591571bedffaf623a101838de177ee0d | 0c23ed20a42b97fa58f5576b30088fb4e6d68bec | /src/main/java/com/tec/anji/binding/primitive/Main3.java | 57fffd3f454817264b58d224a22ac9a45df2e184 | [] | no_license | wangxqdev/javafx | 460e678f34fb9bc4f7fee76b4ebe58f74f3256dd | 860d002c8271ef61cf6cc4ff8e39663f915acc67 | refs/heads/master | 2020-12-14T21:11:42.015783 | 2020-02-20T06:28:08 | 2020-02-20T06:28:08 | 234,869,709 | 0 | 0 | null | 2020-10-13T18:56:57 | 2020-01-19T09:01:37 | Java | UTF-8 | Java | false | false | 1,459 | java | package com.tec.anji.binding.primitive;
import javafx.application.Application;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.control.TextFormatter;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import javafx.util.converter.IntegerStringConverter;
/**
* Bidirectional
*/
public class Main3 extends Application
{
@Override
public void start(Stage primaryStage) throws Exception
{
Button button = new Button("Button");
TextField textField = new TextField();
VBox root = new VBox(textField, button);
root.setStyle("-fx-spacing: 10px; -fx-padding: 10px");
IntegerProperty factor = new SimpleIntegerProperty(2);
button.prefWidthProperty().bind(root.widthProperty().divide(factor));
button.prefHeightProperty().bind(root.heightProperty().divide(factor));
textField.setTextFormatter(new TextFormatter<>(new IntegerStringConverter()));
textField.textProperty().addListener((observable, oldValue, newValue) -> factor.set(Integer.parseInt(newValue)));
primaryStage.setScene(new Scene(root, 500, 400));
primaryStage.setTitle("Bidirectional");
primaryStage.show();
}
}
| [
"wangxinquan@anji-tec.com"
] | wangxinquan@anji-tec.com |
a677450fb9c10aca8c10e984cd54801e319149f8 | 8005a4573346456721b2da81a024153ff71a002e | /src/sepm/ss17/e1228930/dao/DBManager.java | 07208eec6698ed6ac61b629cab959746d4aa61fd | [] | no_license | rasmina/Einzelbeispiel | a1d89c23c5da1c6a03953010b1e5a56c71f13d1a | 0ff1148935ef993f067d5f5c7ae867c013ffd3e4 | refs/heads/master | 2020-12-30T16:02:59.373135 | 2017-05-11T09:16:23 | 2017-05-11T09:16:23 | 90,959,773 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,442 | java | package sepm.ss17.e1228930.dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
//singleton
public class DBManager {
private static Connection singleCon;
private static final Logger logger = LoggerFactory.getLogger(DBManager.class);
private DBManager(){}
public static Connection getInstance(){
//if the connection was not made before try to make a new one
if(singleCon==null){
try{
Class.forName("org.h2.Driver");
logger.debug("Loading driver successful!");
}catch (Exception e){
logger.debug("Loading driver failed!");
e.printStackTrace();
}
try{
singleCon= DriverManager.getConnection("jdbc:h2:tcp://localhost/~/pferdepension", "sa", "");
logger.debug("Connection to H2 Database successful!");
}catch (SQLException s){
logger.debug("Connection to H2 Database failed!");
s.printStackTrace();
}
}
//return the only existent connection to the database
return singleCon;
}
public void close() throws Exception{
if(singleCon!=null && !singleCon.isClosed())
singleCon.close();
logger.debug("Connection to H2 Database closed successfully!");
}
}
| [
"e1228930@student.tuwien.ac.at"
] | e1228930@student.tuwien.ac.at |
ee02467c45726e1b543ba0a9690b8423c77de084 | 0b85c646f35243bb90ebad968fdde3e55dc958c4 | /src/net/moppletop/gamemanager/eventhandler/EventHandler.java | 07b9269a345386dabdc8e21a51aa8014da9ef340 | [] | no_license | OldAI/Planetary-Plunder | a35be512fca95d87f5add8de0509a1067de6d02e | 73f00b12cf26a376228075c8380b38a7e919d805 | refs/heads/master | 2021-01-18T05:27:36.035261 | 2015-01-12T21:37:38 | 2015-01-12T21:37:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 395 | java | package net.moppletop.gamemanager.eventhandler;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({java.lang.annotation.ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface EventHandler
{
EventPriority priority() default EventPriority.NORMAL;
boolean ignoreCancelled() default false;
}
| [
"huzzahpinkyoshi@gmail.com"
] | huzzahpinkyoshi@gmail.com |
8590c0e8bd9ef57f02839ea34032b8ca4931322e | 5b3ccd03986b0c2c9e2426e31326e154a4aa1711 | /Doorbell/app/src/main/gen/com/solutions/nimbus/doorbell/R.java | 7caa2126bd6fb289e8c16e829e0a3a838537756f | [] | no_license | hacktm/Hardware-Nimbus-solutions | 8eb6d9aaa68a08e04c6323342f3ad9b78f9d7d6e | a00d4675d1fd323be103ddbb90943895564ce0c8 | refs/heads/master | 2016-09-05T11:45:23.852641 | 2015-02-09T20:19:22 | 2015-02-09T20:19:22 | 25,373,572 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 185 | java | /*___Generated_by_IDEA___*/
package com.solutions.nimbus.doorbell;
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
public final class R {
} | [
"alexandra_br@ymail.com"
] | alexandra_br@ymail.com |
802e38b9c31d9275b899ef9e3360975d39579a43 | 0885c2cf8960c646c4b887136ed3a80ce453fabd | /src/main/java/com/gow/beau/model/req/category/CategoryListPageReq.java | 0b1a6996c2c8866e48bbcb91eb6e79e9ebe0abb9 | [] | no_license | 295647706/gow | 2295f770c29a3bfb6990486352f7f5cf4fbb99aa | ead69a8dd65ca4e1d0b7697860d636d459d6b1ff | refs/heads/master | 2022-06-24T20:55:26.662637 | 2020-03-23T00:03:02 | 2020-03-23T00:03:02 | 182,363,425 | 0 | 0 | null | 2022-06-21T01:04:36 | 2019-04-20T05:16:46 | JavaScript | UTF-8 | Java | false | false | 306 | java | package com.gow.beau.model.req.category;
import com.gow.beau.model.data.PageInfo;
import lombok.Data;
/**
* @ClassName CategoryListPageReq
* @Author lzn
* @DATE 2019/8/30 15:27
*/
@Data
public class CategoryListPageReq extends PageInfo {
private String catName;
private String catIsShow;
}
| [
"295647706@qq.com"
] | 295647706@qq.com |
63eac90c71d26d6f2796f9dc77e4c113bedd8a25 | 9c7d1e5d606f61247ade6f03ac6f863983d4bed9 | /source/WEB-INF/classes/com/jada/service/SimpleAction.java | 0cf047ccb449658b58c74f4d61762f1206a689da | [] | no_license | langtianya/JadaSite | 96dcc9d3873ae32ee4fdfc0f74f258d548194312 | db50635cc77d0fdb99221b98fd8657e3ebf7e56c | refs/heads/master | 2021-01-17T14:35:16.588822 | 2016-09-04T06:13:13 | 2016-09-04T06:13:13 | 67,328,699 | 0 | 1 | null | 2016-09-04T06:07:46 | 2016-09-04T06:07:45 | null | UTF-8 | Java | false | false | 2,455 | java | /*
* Copyright 2007-2010 JadaSite.
* This file is part of JadaSite.
* JadaSite is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* JadaSite is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with JadaSite. If not, see <http://www.gnu.org/licenses/>.
*/
package com.jada.service;
import javax.persistence.EntityManager;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.jada.jpa.connection.JpaConnection;
public abstract class SimpleAction extends Action {
Logger logger = Logger.getLogger(SimpleAction.class);
public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest request,
HttpServletResponse response) {
ActionForward forward = null;
EntityManager em = null;
try {
em = JpaConnection.getInstance().getCurrentEntityManager();
em.getTransaction().begin();
process(actionMapping, actionForm, request, response);
em.getTransaction().commit();
}
catch (Throwable ex) {
logger.error("Exception encountered in " + actionMapping.getName());
logger.error("Exception", ex);
forward = actionMapping.findForward("exception");
}
finally {
if (em.isOpen()) {
if (em.getTransaction().isActive()) {
em.getTransaction().rollback();
}
}
em.close();
}
return forward;
}
abstract public ActionForward process(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest request,
HttpServletResponse response) throws Exception;
}
| [
"marius.jigoreanu@gmail.com"
] | marius.jigoreanu@gmail.com |
a25f18270039827d08fa84a14bb945a43e8b031b | c2534889a9c4dd26728b1604b08c67ba84679693 | /br.ufes.inf.nemo.ontol.parent/br.ufes.inf.nemo.ontol.model/src-gen/br/ufes/inf/nemo/ontol/model/impl/AttributeAssignmentImpl.java | 9b1523c530309eeac4b08bd11c8e662d032a0496 | [] | no_license | claudenirmf/old-tests-on-xtext | 109335082e9445ad27ec13405f7259080d33c457 | d8de5d035742840d488ed5467f435c95290742a4 | refs/heads/master | 2021-06-19T05:19:02.695301 | 2017-06-21T15:00:47 | 2017-06-21T15:00:47 | 71,890,847 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,803 | java | /**
*/
package br.ufes.inf.nemo.ontol.model.impl;
import br.ufes.inf.nemo.ontol.model.Attribute;
import br.ufes.inf.nemo.ontol.model.AttributeAssignment;
import br.ufes.inf.nemo.ontol.model.DataValue;
import br.ufes.inf.nemo.ontol.model.ModelPackage;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Attribute Assignment</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link br.ufes.inf.nemo.ontol.model.impl.AttributeAssignmentImpl#getAttribute <em>Attribute</em>}</li>
* <li>{@link br.ufes.inf.nemo.ontol.model.impl.AttributeAssignmentImpl#getAssignments <em>Assignments</em>}</li>
* </ul>
*
* @generated
*/
public class AttributeAssignmentImpl extends PropertyAssignmentImpl implements AttributeAssignment {
/**
* The cached value of the '{@link #getAttribute() <em>Attribute</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAttribute()
* @generated
* @ordered
*/
protected Attribute attribute;
/**
* The cached value of the '{@link #getAssignments() <em>Assignments</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAssignments()
* @generated
* @ordered
*/
protected EList<DataValue> assignments;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected AttributeAssignmentImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return ModelPackage.Literals.ATTRIBUTE_ASSIGNMENT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Attribute getAttribute() {
if (attribute != null && attribute.eIsProxy()) {
InternalEObject oldAttribute = (InternalEObject)attribute;
attribute = (Attribute)eResolveProxy(oldAttribute);
if (attribute != oldAttribute) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, ModelPackage.ATTRIBUTE_ASSIGNMENT__ATTRIBUTE, oldAttribute, attribute));
}
}
return attribute;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Attribute basicGetAttribute() {
return attribute;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setAttribute(Attribute newAttribute) {
Attribute oldAttribute = attribute;
attribute = newAttribute;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.ATTRIBUTE_ASSIGNMENT__ATTRIBUTE, oldAttribute, attribute));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<DataValue> getAssignments() {
if (assignments == null) {
assignments = new EObjectContainmentEList<DataValue>(DataValue.class, this, ModelPackage.ATTRIBUTE_ASSIGNMENT__ASSIGNMENTS);
}
return assignments;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case ModelPackage.ATTRIBUTE_ASSIGNMENT__ASSIGNMENTS:
return ((InternalEList<?>)getAssignments()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case ModelPackage.ATTRIBUTE_ASSIGNMENT__ATTRIBUTE:
if (resolve) return getAttribute();
return basicGetAttribute();
case ModelPackage.ATTRIBUTE_ASSIGNMENT__ASSIGNMENTS:
return getAssignments();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case ModelPackage.ATTRIBUTE_ASSIGNMENT__ATTRIBUTE:
setAttribute((Attribute)newValue);
return;
case ModelPackage.ATTRIBUTE_ASSIGNMENT__ASSIGNMENTS:
getAssignments().clear();
getAssignments().addAll((Collection<? extends DataValue>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case ModelPackage.ATTRIBUTE_ASSIGNMENT__ATTRIBUTE:
setAttribute((Attribute)null);
return;
case ModelPackage.ATTRIBUTE_ASSIGNMENT__ASSIGNMENTS:
getAssignments().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case ModelPackage.ATTRIBUTE_ASSIGNMENT__ATTRIBUTE:
return attribute != null;
case ModelPackage.ATTRIBUTE_ASSIGNMENT__ASSIGNMENTS:
return assignments != null && !assignments.isEmpty();
}
return super.eIsSet(featureID);
}
} //AttributeAssignmentImpl
| [
"claudenirmf@gmail.com"
] | claudenirmf@gmail.com |
2dd7bc88594539cc90a471c0532495a654045f94 | 275793cd7c5c9ba554bf0aef17e0899fb591ca88 | /aliyun-java-sdk-openanalytics-open/src/main/java/com/aliyuncs/openanalytics_open/model/v20200928/AlterDatabaseRequest.java | f4d30795346f6ab294e3f012fcf2af3d35a34417 | [
"Apache-2.0"
] | permissive | wosniuyeye/aliyun-openapi-java-sdk | 4f8a0b5bf1a90ec917bf29bb71a5b231ac28b2f9 | c30731a2d65b5156948120e1168f3ed6a4897d7a | refs/heads/master | 2023-04-05T13:15:34.306642 | 2021-04-08T02:31:03 | 2021-04-08T02:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,664 | 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.openanalytics_open.model.v20200928;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.openanalytics_open.Endpoint;
/**
* @author auto create
* @version
*/
public class AlterDatabaseRequest extends RpcAcsRequest<AlterDatabaseResponse> {
private String oldDbName;
private String name;
private String description;
private String locationUri;
private String parameters;
public AlterDatabaseRequest() {
super("openanalytics-open", "2020-09-28", "AlterDatabase", "openanalytics");
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 String getOldDbName() {
return this.oldDbName;
}
public void setOldDbName(String oldDbName) {
this.oldDbName = oldDbName;
if(oldDbName != null){
putQueryParameter("OldDbName", oldDbName);
}
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
if(name != null){
putQueryParameter("Name", name);
}
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
if(description != null){
putQueryParameter("Description", description);
}
}
public String getLocationUri() {
return this.locationUri;
}
public void setLocationUri(String locationUri) {
this.locationUri = locationUri;
if(locationUri != null){
putQueryParameter("LocationUri", locationUri);
}
}
public String getParameters() {
return this.parameters;
}
public void setParameters(String parameters) {
this.parameters = parameters;
if(parameters != null){
putQueryParameter("Parameters", parameters);
}
}
@Override
public Class<AlterDatabaseResponse> getResponseClass() {
return AlterDatabaseResponse.class;
}
}
| [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
d3592326c0a03605635f83c630bde68c966e35a8 | eaf2920c4c1dbd0596358a277a90d50426430c3b | /src/main/java/com/qa/pages/SearchPage.java | 6adca69f6fdc66f5c67528b362788c8bd22e93d6 | [] | no_license | kichha123/Demo1Repo | 7a618217176ba25537086fc4ba2b1568bb13d1a3 | 744282b37b1d8e3e01e2dd572cdaa78ab8e731dd | refs/heads/master | 2022-06-04T22:14:30.447642 | 2019-07-02T07:57:28 | 2019-07-02T07:57:28 | 194,800,982 | 0 | 0 | null | 2022-05-20T21:01:19 | 2019-07-02T06:22:48 | Java | UTF-8 | Java | false | false | 157 | java | package com.qa.pages;
public class SearchPage {
public void searchPage() {
System.out.println("this is search method of search page");
}
}
| [
"anila1@pune.smartek21.st21"
] | anila1@pune.smartek21.st21 |
05ac13a4d031f3ef1090f587fa10c4faf171edc1 | 99b3895cf8926f1549205f33e0a064f26e5662e4 | /bioproject/.svn/pristine/05/05ac13a4d031f3ef1090f587fa10c4faf171edc1.svn-base | 4fc2238ddaf55b415eaa27a62112086e06b5c468 | [] | no_license | marais89/BioPoint | 29ba23d99df0e5eed1f4d6bfffe713bb3021ff99 | bbb6557f25fb7bbc93ec3b00ab76282c16e8fd02 | refs/heads/master | 2021-01-12T15:11:49.775834 | 2016-10-03T12:32:36 | 2016-10-03T14:19:08 | 69,874,250 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,224 | package org.bio.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;
@Entity
@Table(name="exportOption")
public class ExportOption implements Serializable{
private Map<String,String> listfield;
private String selectedfield;
private List<String> format;
private boolean display;
private boolean display2;
private int size;
private Integer id ;
private Exporter exporter;
private String selectedFormat;
public ExportOption() {
listfield = new HashMap<String, String>();
listfield.put("Matricule", "Matricule");
listfield.put("Nom", "Nom");
listfield.put("Prenom", "Prenom");
listfield.put("Jour", "Jour");
listfield.put("Retard Total", "Retard Total");
listfield.put("Retard 1", "Retard1");
listfield.put("Retard 2", "Retard2");
listfield.put("Présence", "Présence");
listfield.put("Pause", "Pause");
listfield.put("Entrée", "Entrée");
listfield.put("Entrée Planifié", "Entrée Planifié");
listfield.put("Sortie", "Sortie");
listfield.put("Sortie Planifié", "Sortie Planifié");
listfield.put("Congé", "Congé");
listfield.put("Autorisation", "Autorisation");
display = true;
display2 = true;
selectedfield="none";
format = new ArrayList<String>();
}
public void findFormat()
{
}
@Transient
public List<String> getFormat() {
if((selectedfield.equals("Retard Total"))||(selectedfield.equals("Retard1"))||(selectedfield.equals("Retard2"))||(selectedfield.equals("Présence"))||(selectedfield.equals("Pause"))
|(selectedfield.equals("Entrée"))||(selectedfield.equals("Entrée Planifié"))|(selectedfield.equals("Sortie"))||(selectedfield.equals("Sortie Planifié")))
{
format.clear();
format.add("HH:mm:ss");
format.add("HH-mm-ss");
format.add("HH/mm/ss");
format.add("HH,mm,ss");
format.add("En Minutes");
format.add("En Heures");
format.add("En Secondes");
}
else if(selectedfield.equals("Jour"))
{
format.clear();
format.add("aaaa-mm-jj");
format.add("aaaa/mm/jj");
format.add("aa-mm-jj");
format.add("aa/mm/jj");
format.add("jj-mm-aaaa");
format.add("jj/mm/aaaa");
}
else {
format.clear();
format.add("En Majiscule");
format.add("En Miniscule");
format.add("En Capital lettre");
}
return format;
}
public void setFormat(List<String> format) {
this.format = format;
}
public void switchDisplay()
{
display=!display;
}
public void switchDisplay2()
{
display2=!display2;
}
@Transient
public Map<String, String> getListfield() {
return listfield;
}
public void setListfield(Map<String, String> listfield) {
this.listfield = listfield;
}
@Column(name="fieldname",length=45)
public String getSelectedfield() {
return selectedfield;
}
public void setSelectedfield(String selectedfield) {
this.selectedfield = selectedfield;
}
@Transient
public boolean isDisplay() {
return display;
}
public void setDisplay(boolean display) {
this.display = display;
}
@Column(name="formatstyle",length=45)
public String getSelectedFormat() {
return selectedFormat;
}
public void setSelectedFormat(String selectedFormat) {
this.selectedFormat = selectedFormat;
}
@Transient
public int getSize() {
if(format==null)
return 0;
else if(format.size()==0)
return 0;
else
return format.size();
}
public void setSize(int size) {
this.size = size;
}
@Transient
public boolean isDisplay2() {
return display2;
}
public void setDisplay2(boolean display2) {
this.display2 = display2;
}
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name = "idoption", unique = true, nullable = false)
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "idexporter")
public Exporter getExporter() {
return exporter;
}
public void setExporter(Exporter exporter) {
this.exporter = exporter;
}
}
| [
"rais.dali@gmail.com"
] | rais.dali@gmail.com | |
d9277a75b7059b76dbdc190dd0761681facea069 | 6d7f162d7512f860f955d28549c340f867c5c157 | /DiayDunerProject/Api DiayDoner/Duner/src/main/java/apiControllers/AdminController.java | 9290da060a068d51a490b25469b13786eb5db574 | [] | no_license | taurus366/DiayDoner | 4b8821e1b74b65dbbb84a5e867d0018c5b091af4 | cbf3b1aec540c52398be377600b1b36930c40265 | refs/heads/master | 2022-12-25T08:31:45.054241 | 2019-12-14T17:34:46 | 2019-12-14T17:34:46 | 228,061,230 | 0 | 0 | null | 2022-12-09T22:16:29 | 2019-12-14T17:25:49 | Java | WINDOWS-1251 | Java | false | false | 5,088 | java | package apiControllers;
import java.net.URISyntaxException;
import java.sql.SQLException;
import javax.ws.rs.CookieParam;
import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.NewCookie;
import javax.ws.rs.core.Response;
import booleanCheck.AdminCheck;
import databases.AdminDB;
import generators.MD5Generator;
import generators.SessionGenerator;
@Path("/")
public class AdminController {
static AdminCheck isAdmin = new AdminCheck();
static SessionGenerator sessionGenerator = new SessionGenerator();
static AdminDB adminDB = new AdminDB();
static MD5Generator genMD5 = new MD5Generator();
@Path("admin/login")
@POST
public Response adminLogin(@FormParam("name") String name, @FormParam("password") String password) throws URISyntaxException {
try {
if(isAdmin.checkAdminPassword(name, genMD5.GenerateMd5(password))) {
String generatedSession = sessionGenerator.sessionGenerator();
// http://diaydunerservice-env.65m77q8cqk.eu-central-1.elasticbeanstalk.com/rest/admin/login
java.net.URI url = new java.net.URI("http://diaydunerservice-env.65m77q8cqk.eu-central-1.elasticbeanstalk.com/admin.jsp");
NewCookie newSession = new NewCookie("myStrAdmin", generatedSession.toString(), "/", "","comment",86400, false);
adminDB.putAdminSession(generatedSession);
return Response.temporaryRedirect(url).cookie(newSession).build();
}
} catch (Exception e) {
// TODO: handle exception
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).build();
}
//diaydoner.000webhostapp.com/login.html
java.net.URI url = new java.net.URI("diaydoner.000webhostapp.com/login.html");
return Response.temporaryRedirect(url).build();
}
@Path("admin/Adarticle")
@POST
public Response addArticle(@CookieParam(value = "myStrAdmin") String sessionId,@FormParam("title") String title,@FormParam("price") String price) throws ClassNotFoundException, SQLException, URISyntaxException {
if(sessionId == null) {
java.net.URI url = new java.net.URI("www.diaydoner.000webhostapp.com/login.html"); // admin panel !
return Response.temporaryRedirect(url).build();
}
try {
if(isAdmin.isAdminSessionId(sessionId)) {
adminDB.addArticle(title, price);
}else {
String text = "Трябва да се логнете! www.diaydoner.000webhostapp.com/login.html";
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(text).build();
}
} catch (Exception e) {
// TODO: handle exception
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).build();
}
java.net.URI url = new java.net.URI("http://diaydunerservice-env.65m77q8cqk.eu-central-1.elasticbeanstalk.com/admin.jsp"); // admin panel !
return Response.temporaryRedirect(url).build();
}
@Path("admin/article")
@POST
public Response removeArticle(@CookieParam(value = "myStrAdmin") String sessionId,@FormParam("id") String id) throws URISyntaxException {
try {
adminDB.deleteArticle(id);
} catch (Exception e) {
// TODO: handle exception
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).build();
}
if(sessionId == null) {
java.net.URI url = new java.net.URI("www.diaydoner.000webhostapp.com/login.html");
return Response.temporaryRedirect(url).build();
}
try {
if(isAdmin.isAdminSessionId(sessionId)) {
adminDB.deleteArticle(id);
} else {
String text = "Трябва да се логнете! www.diaydoner.000webhostapp.com/login.html";
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(text).build();
}
} catch (Exception e) {
// TODO: handle exception
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).build();
}
java.net.URI url = new java.net.URI("http://diaydunerservice-env.65m77q8cqk.eu-central-1.elasticbeanstalk.com/admin.jsp"); // admin panel !
return Response.temporaryRedirect(url).build();
}
@Path("admin/order_id")
@POST
public Response CompleteOrder(@CookieParam(value = "myStrAdmin") String sessionId,@FormParam("id")String id) throws URISyntaxException {
if(sessionId == null) {
java.net.URI url = new java.net.URI("www.diaydoner.000webhostapp.com/login.html");
return Response.temporaryRedirect(url).build();
}
try {
if(isAdmin.isAdminSessionId(sessionId)) {
//Should Create DB to remove article-order or order-addres together order-articles!
adminDB.deleteOrder(id);
} else {
String text = "Трябва да се логнете! www.diaydoner.000webhostapp.com/login.html";
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(text).build();
}
} catch (Exception e) {
// TODO: handle exception
}
java.net.URI url = new java.net.URI("http://diaydunerservice-env.65m77q8cqk.eu-central-1.elasticbeanstalk.com/admin.jsp"); // admin panel !
return Response.temporaryRedirect(url).build();
}
}
| [
"taurus.ali47@gmail.com"
] | taurus.ali47@gmail.com |
57d2d676c39ef5cbceb9d84030a9d9b9e389d4da | 06ae23b23927437bde71a89bd51b05c24e485dbe | /niugraph/src/main/java/com/github/niugraph/model/Vertex.java | 0155ab201625b2edeccb467c2514f99a39d38655 | [] | no_license | jiangjianbo/niugraph | fb2299d3be2386834ae4447f2b6fbec33eb7b834 | 9c5a5563ca43b7e8f0b351b4aa32f794e69d9aed | refs/heads/master | 2020-03-28T01:26:16.994087 | 2014-03-17T18:31:20 | 2014-03-17T18:31:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,414 | java | package com.github.niugraph.model;
import java.util.Collection;
/**
* vertex of graph
* @author jjb
*
* @param <E> {@link Edge} type of graph
*/
public interface Vertex<E> {
/**
* get all outgoing {@link Edge}s of vertex
* @return
*/
Collection<E> getOutgoingEdges();
/**
* get all incoming {@link Edge}s of vertex
* @return
*/
Collection<E> getIncomingEdges();
/**
* check edge contains in outgoing or incoming
* @param edge
* @return
*/
boolean containsEdge(E edge);
/**
* check edge contains in outgoing
* @param edge
* @return
*/
boolean containsOutgoingEdge(E edge);
/**
* check edge contains in incoming
* @param edge
* @return
*/
boolean containsIncomingEdge(E edge);
/**
* check connection with vertex, ignore direction
* @param peerVertex
* @return true for connected and false for none
*/
boolean isConnect(Vertex<E> peerVertex);
/**
* check direction from this vertex to target
* @param target
* @return true for linked to and false for none
*/
boolean isConnectTo(Vertex<E> target);
/**
* check direction from source to this vertex
* @param source
* @return true for linked from and false for none
*/
boolean isConnectFrom(Vertex<E> source);
}
| [
"jiangjianbo@gmail.com"
] | jiangjianbo@gmail.com |
a1defc083ea7a3fad0c055ca852aab88cdb7f881 | cdd225e1f15916327cc00277a97f6dccd4953057 | /staticBlock.java | 73078e0439c1d0b30cfd3ccb71b241fddf6bdbbb | [] | no_license | alexi001/assignment_6 | ed6772332ea40bac70e306292a8aba4c1e7814a2 | c61a7cc9b6a317859840725fe346ef10a910f9af | refs/heads/master | 2020-03-27T04:26:59.971670 | 2018-08-29T03:44:33 | 2018-08-29T03:44:33 | 145,940,663 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 222 | java | class abc{
static int i;
abc(int x){
super();
i=x;
System.out.println(i);
}
static{
System.out.println("This is a static block");
}
}
class staticBlock{
public static void main(String args[]){
abc obj=new abc(10);
}
}
| [
"harshshrm246@gmail.com"
] | harshshrm246@gmail.com |
fe70cb341cbeec2c4130c2f41440ba051e9fd3a2 | b89548ab5bda5d0594fa9131ab3657cef789f167 | /SpringMVCDemo/src/cn/com/pers/utils/BeanUtil.java | 04c159e4cef2c6be6cabbe287efa9afb671e8150 | [] | no_license | xplx/SpringCode | 1276216812e6c5bcc4503a0bddbac8d11ce6a446 | 6bb3b6f98ace2fe43b0e1a3529d3e6daa20779f9 | refs/heads/master | 2021-05-14T18:36:03.921147 | 2018-01-31T08:01:34 | 2018-01-31T08:01:34 | 116,078,483 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,051 | java | package cn.com.pers.utils;
/**
* 对象常用方法工具类
*
* @author WJ
*/
public final class BeanUtil {
/**
* 此类不需要实例化
*/
private BeanUtil() {
}
/**
* 判断对象是否为null
*
* @param object 需要判断的对象
* @return 是否为null
*/
public static boolean isNull(Object object) {
return null == object;
}
/**
* 判断对象是否不为null
*
* @param object 需要判断的对象
* @return 是否不为null
*/
public static boolean nonNull(Object object) {
return null != object;
}
/**
* 判断对象是否为空,如果为空,直接抛出异常
*
* @param object 需要检查的对象
* @param errorMessage 异常信息
* @return 非空的对象
*/
public static Object requireNonNull(Object object, String errorMessage){
if (null == object) {
throw new NullPointerException(errorMessage);
}
return object;
}
}
| [
"xplx12@163.com"
] | xplx12@163.com |
286cd823cd28b75419bd883248a9afd9ed2e9c88 | eba01a2bf91141b134bb06d420384d9d1cee4de9 | /src/main/java/xyz/yyaos/demo/entity/user/User.java | 400b76e3fc604869eb1cfb3b47158b4b4f3d5d90 | [] | no_license | yaoyaosen/demo | cdb1a79f01bcfe948529588dd0c38a5f4477d5d6 | 4296ad81eee95e53e48958054bfb830461d12b15 | refs/heads/master | 2021-04-16T06:33:07.205393 | 2020-04-16T12:44:45 | 2020-04-16T12:44:45 | 249,334,611 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 500 | java | package xyz.yyaos.demo.entity.user;
import lombok.Data;
import java.util.Date;
/**
* 用户
*/
@Data
public class User {
/**
* id
*/
private String id;
/**
* 名称
*/
private String name;
/**
* 头像
*/
private String img;
/**
* 性别
*/
private Integer gender;
/**
* 简介
*/
private String summary;
/**
* 电话
*/
private String phone;
/**
* 创建时间
*/
private Date createDate;
/**
* 修改时间
*/
private Date updateDate;
}
| [
"wxzhao.wang217@gmail.com"
] | wxzhao.wang217@gmail.com |
73c3b26533c2abda85d8e2429c33133112f2c856 | 79cd3695226ad33d988ba25eed49b92855990159 | /src/com/program_in_chinese/定制监听器.java | 4e42505755f19fb5b74b476eed19c7b2074cb185 | [] | no_license | tangfengray/quan2 | cb6b5441b31448d2383584b0a2a9cb9667c3f95c | f528061cad8267d886d908bdbb86b879ea8122c3 | refs/heads/master | 2020-06-17T13:22:25.022599 | 2017-12-29T20:38:23 | 2017-12-29T20:38:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,694 | java | package com.program_in_chinese;
import static com.program_in_chinese.圈2Parser.加Context;
import static com.program_in_chinese.圈2Parser.赋值Context;
import static com.program_in_chinese.圈2Parser.打印Context;
import java.util.HashMap;
import java.util.Map;
public class 定制监听器 extends 圈2BaseListener {
private Map<String, Integer> 变量表;
public 定制监听器() {
变量表 = new HashMap<>();
}
@Override
public void exit赋值(赋值Context 上下文) {
// 赋值语句分析结束时运行此方法
String 变量名 = 上下文.标识符(0).getText();
// 如果语句中有两个变量(标识符), 那么取第二个变量的值, 否则取数的值
int 值 = 上下文.标识符().size() > 1
? 变量表.get(上下文.标识符(1).getText())
: Integer.parseInt(上下文.T数().getText());
// 更新变量值
变量表.put(变量名, 值);
}
@Override
public void exit加(加Context 上下文) {
// 加语句分析结束时运行此方法
String 变量名 = 上下文.标识符().size() > 1 ? 上下文.标识符(1).getText() : 上下文.标识符(0).getText();
int 添加值 = 上下文.标识符().size() > 1 ? 变量表.get(上下文.标识符(0).getText())
: Integer.parseInt(上下文.T数().getText());
变量表.put(变量名, 变量表.get(变量名) + 添加值);
}
@Override
public void exit打印(打印Context 上下文) {
// 打印语句分析结束时运行此方法
String 输出 = 上下文.标识符() == null ? 上下文.T数().getText() : 变量表.get(上下文.标识符().getText()).toString();
System.out.println(输出);
}
}
| [
"fromwheretowhere.service@gmail.com"
] | fromwheretowhere.service@gmail.com |
33aa8f9c94d939dec647b16160d02299814013f3 | 432f6473e6be5af23beeca0bd86c11b1c7198495 | /src/main/java/com/penguin/penguincoco/lib/judge/PythonJudger.java | ef12f52d5b5ebe8976294d0544ef6ca4b9cab37f | [] | no_license | penguin-coco/PenguinCoCoBE | 36d66408daa2fe6e4c97de9573b98bcf7dff97f8 | 0fc1022a9ef166e1439eb2f4c6dcba21df3dc1ee | refs/heads/master | 2021-06-18T20:19:31.528925 | 2020-01-18T09:02:57 | 2020-01-18T09:02:57 | 205,515,964 | 2 | 0 | null | 2021-04-26T19:28:08 | 2019-08-31T08:11:17 | Java | UTF-8 | Java | false | false | 601 | java | package com.penguin.penguincoco.lib.judge;
import com.penguin.penguincoco.lib.model.JudgeData;
import com.penguin.penguincoco.lib.model.JudgeReport;
import com.penguin.penguincoco.lib.model.Language;
import com.penguin.penguincoco.lib.model.PythonCommand;
public class PythonJudger extends Judger {
public PythonJudger(JudgeData judgeData) {
this.judgeData = judgeData;
judgeData.setCommand(new PythonCommand());
}
@Override
public JudgeReport performJudge() {
executor = new Executor(judgeData, Language.PYTHON);
return executor.execute();
}
}
| [
"kennychen851228@gmail.com"
] | kennychen851228@gmail.com |
98e8232651081ad7d8a391059dd7892ea71fc2cd | e023d5c2f895b8002831c2709badaab82c6d0785 | /src/com/dsa/array/RemoveMultipleOccurrence.java | 92d1d0c7e6c5c87bfeeea9869f157ac9aba9ad60 | [] | no_license | rupambika/Arrays | 155a1618c01c8f35ab0280f6c5b653f1f2587ad9 | 1a42b3fd9a4997bfacfe1a2ec928fc84da3ec909 | refs/heads/master | 2023-01-09T16:10:21.450168 | 2020-11-09T16:21:13 | 2020-11-09T16:21:13 | 311,397,790 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 512 | java | package com.dsa.array;
public class RemoveMultipleOccurrence {
public static void main(String[] args) {
int arr[] = { 1, 2, 2, 5, 5, 5, 4, 4, 4, 4, 4, 6, 6 }; // O\P = {1,2,5,4,6}
removeMulti(arr);
}
public static void removeMulti(int arr[]) {
int arr2[] = new int[arr.length];
int j = 0;
for (int i = 0; i < arr.length-1; i++) {
if (arr[i] != arr[i + 1]) {
arr2[j] = arr[i];
j++;
}
}
arr2[j]= arr[arr.length-1];
for (int a : arr2) {
System.out.println(a + "\n");
}
}
}
| [
"rupambika@users.noreply.github.com"
] | rupambika@users.noreply.github.com |
eaf235c7f447e345a7488b765f068333c8ad8b2e | f0c5e953731e47acb6235a25a0239434bf935642 | /Proj_CardGame_Socket/src/ChatWithGame/PersonInfo.java | b6b0a80a5fb45e4dc8bd7bff3ebb92abba8b8db1 | [] | no_license | kingkwung/MyProject | e2e08cf1f6c3993312a0288717d638d4c2582a99 | 855eaf89278e6c4d53e25a2cf372f39329f73124 | refs/heads/master | 2021-01-10T08:22:21.644679 | 2015-10-21T05:08:06 | 2015-10-21T05:08:06 | 44,615,679 | 0 | 0 | null | null | null | null | UHC | Java | false | false | 2,878 | java | package ChatWithGame;
import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;
public class PersonInfo implements Serializable{
private String ID;
private String password;
private String name;
private String Sex;
private String major;
private String StudentNum;
private String phoneNum;
private String ImagePath;
private int GameMoney;
private int WinNum;
private int LooseNum;
private String LastestAccessDate;
public PersonInfo(String id,String pw, String theName, String sex, String maj, String sn, String pn, String imgpath){
ID = id;
password = pw;
name = theName;
Sex = sex;
major = maj;
StudentNum = sn;
phoneNum = pn;
GameMoney = 10000000;
WinNum = LooseNum = 0;
LastestAccessDate = null;
ImagePath = "D:/SUTTA/UserImg/" + ID + "." + imgpath;
}
public String getID(){return ID;}
public String getPassword(){return password;}
public String getName(){return name;}
public String getSexString(){return Sex;}
public String getMajor(){return major;}
public String getStudentNum(){return StudentNum;}
public String getPhoneNum(){return phoneNum;}
public String getImgPath(){return ImagePath;}
public int getGameMoney(){return GameMoney;}
public int getWinNum(){return WinNum;}
public int getLooseNum(){return LooseNum;}
public void setID(String iD){ID = iD;}
public void setPassword(String pw){password = pw;}
public void setName(String na){na = name;}
public void setSex(String sex){Sex = sex;}
public void setMajor(String maj){major = maj;}
public void setStudentNum(String sNum){StudentNum = sNum;}
public void setPhoneNum(String pNum){phoneNum = pNum;}
public void setGameMoney(int gm){GameMoney = gm;}
public void setWinNum(int win){WinNum = win;}
public void setLooseNum(int loose){LooseNum = loose;}
public String getWinRate(){
if(WinNum==0 && (LooseNum==0||WinNum==1))
return "0%";
String returnValue = (""+(double)WinNum/(WinNum+LooseNum)*100);
return returnValue.substring(0, returnValue.indexOf("."))+"%";
}
public String getStringMoney() {
int intMoney = GameMoney;
String stringMoney = "";
if (intMoney >= 1000000) {
stringMoney += Integer.toString(intMoney / 1000000);
stringMoney += "억 ";
intMoney = intMoney % 1000000;
}
if (intMoney >= 100000) {
stringMoney += Integer.toString(intMoney / 100000);
stringMoney += "천 ";
intMoney = intMoney % 100000;
}
if (intMoney >= 10000) {
stringMoney += Integer.toString(intMoney / 10000);
stringMoney += "백 ";
intMoney = intMoney % 10000;
}
return stringMoney+"만원";
}
public void updateAccessDate(){
Date date = Calendar.getInstance().getTime();
LastestAccessDate = date.getMonth()+"/"+date.getDate()+"/"+date.getHours()+":"+date.getMinutes();
}
} | [
"dndudska89@naver.com"
] | dndudska89@naver.com |
3739b03700f65ded1ef303eadbf3bf068573ecac | a8d5e1c3ce10a1f3afda7f668a58771ec1170887 | /後端微服務API/DWWorkOrder/workorder-service-impl-dwworkorder/src/main/java/com/digiwin/workorder/dwworkorder/service/impl/DBConstants.java | 2536af306354f5ef6b54f01611413d52cc6604c0 | [] | no_license | ben802115451/ChenBoMin | b236e4c14886316ffce3e5a27a6b98f7a9df621a | 35de19fbce472b5d668ed3d8b20bd2ee709a1559 | refs/heads/master | 2023-03-01T11:16:43.197235 | 2021-02-17T02:20:23 | 2021-02-17T02:20:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,530 | java | package com.digiwin.workorder.dwworkorder.service.impl;
import com.digiwin.utils.DWTenantUtils;
/**
* data base constants
*
* @author falcon
*/
final class DBConstants {
static final String tenantSqlTag = DWTenantUtils.getTenantTagByColumnName(); //default:${tenantsid}
// 資料表
static final String WORK_ORDER_TYPE = "work_order_type";
static final String WORK_ORDER_SERVICE_TYPE = "work_order_service_type";
static final String WORK_ORDER_ENGINEER = "work_order_engineer";
// 欄位
// 工單服務別表
static final String SERVICE_NAME = "service_name";
static final String SERVICE_ID = "service_id";
static final String SEQUENCE = "sequence";
//工單類型表
static final String WORK_TYPE_NAME = "type_name";
static final String WORK_TYPE_ID = "type_id";
static final String SERVICE_TYPE = "service_type";
static final String SERVICE_TYPE_ID = "service_type_id";
static final String CREATE_BY_USERID = "create_by_userId";
static final String ENGINEER = "assignee";
// 工程人員表
static final String MAIL = "email";
static final String ENGINEER_NAME = "assignee_name";
static final String ENGINEER_ID = "assignee_id";
static final String START_TIME = "start_time";
static final String END_TIME = "end_time";
static final String IS_PRINCIPAL = "isPrincipal";
public static final String SELECT_FROM_WORK_ORDER_ENGINEER = " SELECT count('isPrincipal') FROM work_order_engineer WHERE isPrincipal = '1' AND type_id = ? ";
public static final String UPDATE_TO_UNPRINCIPAL = " UPDATE work_order_engineer SET isPrincipal = '0' ${mgmtFieldUpdateColumns} WHERE type_id = ? ";
public static final String UPDATE_TO_PRINCIPAL = " UPDATE work_order_engineer SET isPrincipal = '1' ${mgmtFieldUpdateColumns} WHERE type_id = ? AND assignee_id = ? ";
//for工單類型查詢用SQL
public static final String SELECT_ORDER_TYPE_AND_ENGINEER =
" SELECT order_type.service_type_id, order_type.service_type, " +
" order_type.type_id, order_type.type_name, order_type.sequence, " +
" order_type.create_by_id, order_type.create_by_userId, order_type.create_date, " +
" engineer.assignee_id, engineer.assignee_name, engineer.email, engineer.isPrincipal " +
" FROM work_order_type AS order_type JOIN work_order_engineer AS engineer " +
" ON order_type.type_id = engineer.type_id WHERE 1=1 ";
//for工單類型查詢用SQL
public static final String SELECT_ORDER_TYPE_AND_ENGINEER_2 =
" SELECT order_type.service_type_id, order_type.service_type, " +
" order_type.type_id, order_type.type_name, order_type.sequence, " +
" order_type.create_by_id, order_type.create_by_userId, order_type.create_date " +
" FROM work_order_type AS order_type WHERE 1=1 ";
public static final String SELECT_WORK_ORDER_TYPE_ALL_DATA = " SELECT * FROM work_order_type " + tenantSqlTag;
public static final String SQL_ORDER_BY = "order by m.tenantid asc, m.create_date asc";
public static final String SQL_LIMIT = "LIMIT ?, ?";
public static final String GROUP_BY = " GROUP BY order_type.type_id ";
//for別名用
public static final String WORK_ORDER_TYPE_ALIAS = "order_type.";
public static final String WORK_ORDER_ENGINEER_ALIAS = "engineer.";
}
| [
"ben802115451@digiwin.com"
] | ben802115451@digiwin.com |
a23357f746e319f928f3ea1bdff0e291bb3c939c | 68871d82209187096274eb8013376985ed9f1831 | /src/main/java/ru/luvas/physics/cw1/entity/Text.java | ab0f1ef39d05b0afccd3a53bbe3e6b72f0227394 | [] | no_license | RinesThaix/PhysicsCW1 | b70b32204d1e2f8bd7b87067761af30537906b1f | 791573bbfb3280ba9a7227ea7dcf2d651a32c9d2 | refs/heads/master | 2020-06-17T20:45:10.406181 | 2016-12-27T23:18:43 | 2016-12-27T23:18:43 | 74,970,832 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 840 | java | package ru.luvas.physics.cw1.entity;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
/**
*
* @author RINES <iam@kostya.sexy>
*/
public class Text extends Colored {
private String text;
private int size;
public Text(int x, int y, String text, Color color, int size) {
super(x, y, color);
this.text = text;
this.size = size;
}
public String getText() {
return text;
}
public int getSize() {
return size;
}
public void setText(String text) {
this.text = text;
}
public void setSize(int size) {
this.size = size;
}
@Override
public void draw(Graphics2D g) {
super.draw(g);
g.setFont(new Font("Arial", 0, size));
g.drawString(text, x, y);
}
}
| [
"iam@kostya.sexy"
] | iam@kostya.sexy |
f4468ff2abaf10532200d8e74b869ba019a731d8 | 3336c692fcfab64e14cae25809225aaf622500dc | /service-core/src/main/java/com/atguigu/srb/core/pojo/entity/BorrowInfo.java | 407f729cdf96d60736b2a5d5e57d7f45b900a1c8 | [] | no_license | caozheng0401/srb | b6185f40280d5be07f90cc75144340f52c3120e1 | dc33531725bce96a2f5b9601281a0448862dada0 | refs/heads/main | 2023-04-14T18:34:37.987178 | 2021-04-27T08:22:52 | 2021-04-27T08:22:52 | 359,733,025 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,914 | java | package com.atguigu.srb.core.pojo.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 借款信息表
* </p>
*
* @author CaoZheng
* @since 2021-04-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="BorrowInfo对象", description="借款信息表")
public class BorrowInfo implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "编号")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "借款用户id")
private Long userId;
@ApiModelProperty(value = "借款金额")
private BigDecimal amount;
@ApiModelProperty(value = "借款期限")
private Integer period;
@ApiModelProperty(value = "年化利率")
private BigDecimal borrowYearRate;
@ApiModelProperty(value = "还款方式 1-等额本息 2-等额本金 3-每月还息一次还本 4-一次还本")
private Integer returnMethod;
@ApiModelProperty(value = "资金用途")
private Integer moneyUse;
@ApiModelProperty(value = "状态(0:未提交,1:审核中, 2:审核通过, -1:审核不通过)")
private Integer status;
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
@ApiModelProperty(value = "更新时间")
private LocalDateTime updateTime;
@ApiModelProperty(value = "逻辑删除(1:已删除,0:未删除)")
@TableField("is_deleted")
@TableLogic
private Boolean deleted;
}
| [
"1546376420@qq.com"
] | 1546376420@qq.com |
b332c70c3ce3cd2cd151e4841414739abbfcc958 | 36e649cb326402a23a1a38e72ac1e765329d9315 | /Android/DesTools/des/src/androidTest/java/com/jni/utils/des/ExampleInstrumentedTest.java | 7c7622aac8f534e73f8173674487b16e88c27cc3 | [] | no_license | yanglw115/Softwares | 6d844818bbf99271137cc41c64c8636a9a560f8a | d6772bd1ba89d44a134e396ce9ed8221f40a271f | refs/heads/master | 2021-12-09T19:22:13.273159 | 2020-03-29T02:42:08 | 2020-03-29T02:42:08 | 139,205,287 | 2 | 6 | null | null | null | null | UTF-8 | Java | false | false | 761 | java | package com.jni.utils.des;
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.*;
/**
* Instrumented 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.jni.utils.des", appContext.getPackageName());
}
}
| [
"yanglw115@fdc7a43b-4700-4cfd-aa5a-fbf62e556ab2"
] | yanglw115@fdc7a43b-4700-4cfd-aa5a-fbf62e556ab2 |
da196942ffa4e22d92e2d3369b7c6c14636f5a48 | 35559cc0d6962fde2d67618aae41a8ba1e8dcd43 | /②JAVA基础/11月16日作业/四组/IT02_李静静/AnimalDemo/src/Dog.java | 3a81b77f97e0735317eef93d85c19b4693b127fa | [] | no_license | qhit2017/GR1702_01 | bc9190243fc24db4d19e5ee0daff003f9eaeb2d8 | 8e1fc9157ef183066c522e1025c97efeabe6329a | refs/heads/master | 2021-09-03T16:27:00.789831 | 2018-01-10T11:08:27 | 2018-01-10T11:08:27 | 109,151,555 | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 1,141 | java | /**
*@author 作者 E-mail:996939518@qq.com
* @date 创建时间:2017年11月15日 下午8:18:41
* @version 1.0
* @parameter
* @since
* @return
* @function
*/
public class Dog extends Animal{
/*定义一个类:狗,属性包括: 品种,
* 毛的颜色, 年龄,重量 方法包括:叫、吃、睡觉
* 要求属性私有,并提供get、set方法
*/
private String breed ;
private String color ;
private int age ;
private int weiget ;
Dog(){
System.out.println("我是无参的");
}
public String getBreed() {
return breed;
}
public void setBreed(String breed) {
this.breed = breed;
}
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public int getWeiget() {
return weiget;
}
public void setWeiget(int weiget) {
this.weiget = weiget;
}
void wow (){
System.out.println("叫");
}
void eat (){
System.out.println("吃");
}
void sleep (){
System.out.println("睡觉");
}
}
| [
"hudi@qq.com"
] | hudi@qq.com |
02109c32c5ef29d564dd3d3144afb9fc6171f8e2 | 043703eaf27a0d5e6f02bf7a9ac03c0ce4b38d04 | /subject_systems/Struts2/src/struts-2.5.2/src/core/src/main/java/org/apache/struts2/views/freemarker/tags/TextModel.java | f49715da88b5d351351070dd2eb6cb369cc73147 | [] | no_license | MarceloLaser/arcade_console_test_resources | e4fb5ac4a7b2d873aa9d843403569d9260d380e0 | 31447aabd735514650e6b2d1a3fbaf86e78242fc | refs/heads/master | 2020-09-22T08:00:42.216653 | 2019-12-01T21:51:05 | 2019-12-01T21:51:05 | 225,093,382 | 1 | 2 | null | null | null | null | UTF-8 | Java | false | false | 129 | java | version https://git-lfs.github.com/spec/v1
oid sha256:6234e3b250457ae26ec280120aa6eb940d7c34c4747dad3ed1142fad01935c3f
size 1416
| [
"marcelo.laser@gmail.com"
] | marcelo.laser@gmail.com |
ce65f07df1e6cfe52c2ea3a9d0cb5f193a8c0bee | 7e6860768e6d124ba041c896d7122b7faef4f5eb | /1_ThreadsAndLocks/src/main/java/day3/wordcount/v3_wordcount_synchronized_hashmap/Counter.java | e2cab8c342c2ce466f94d7bf4d54513dc2fdb366 | [] | no_license | LukasWoodtli/SevenConcurrencyModelsInSevenWeeks | 0567e6c6eb2eb0eed94f3acd997ed0b2bebe271d | 57d40b9b495f0e491b98b26fcd6f149482eeff4b | refs/heads/master | 2021-07-14T15:53:23.803002 | 2021-03-24T13:37:15 | 2021-03-24T13:37:15 | 28,269,669 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,513 | java | package day3.wordcount.v3_wordcount_synchronized_hashmap;
import day3.wordcount.common.Page;
import day3.wordcount.common.Words;
import java.util.Map;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.locks.ReentrantLock;
public class Counter implements Runnable {
private BlockingQueue<Page> queue;
private Map<String, Integer> counts;
private static ReentrantLock lock;
public Counter(BlockingQueue<Page> queue, Map<String, Integer> counts) {
this.queue = queue;
this.counts = counts;
lock = new ReentrantLock();
}
public void run() {
try {
while (true) {
Page page = queue.take();
if (page.isPoisonPill()) {
System.out.println("Poison pill consumed. Thread: " + this);
break;
}
Iterable<String> words = new Words(page.getText());
for (String word: words) {
countWord(word);
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
private void countWord(String word) {
lock.lock();
try {
Integer currentCount = counts.get(word);
if (currentCount == null) {
counts.put(word, 1);
} else {
counts.put(word, currentCount + 1);
}
} finally {
lock.unlock();
}
}
}
| [
"woodtli.lukas@gmail.com"
] | woodtli.lukas@gmail.com |
6c595679e115fe33701239ecbdfbb7dd59b6351a | b71a250c31025d11708352e951beba8b3ff47f7c | /app/src/main/java/com/yuan/rxokhttp/QQParam.java | 03e7760aae30277a9b036c97b919fcec54536774 | [] | no_license | PMMKing/RxOkhttp | 8d78da303ef727ae8a07ed209e8f3e977c071f3d | 8d1930c19c466d123ae85b8cb754005177230e3e | refs/heads/master | 2020-03-22T19:25:56.759177 | 2018-07-13T08:47:09 | 2018-07-13T08:47:09 | 140,527,108 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 310 | java | package com.yuan.rxokhttp;
import com.yuan.library.base.BaseParam;
/**
* Created by shucheng.qu on 2018/7/13
*/
public class QQParam extends BaseParam{
public String showapi_appid = "48527";
public String showapi_sign = "8a664492b3d94c51b09f0fd36fbc52f5";
public String qq = "91735485456";
}
| [
"shucheng.qu@ucarinc.com"
] | shucheng.qu@ucarinc.com |
9216dc03acd70927fa1a3ca0800d5d4c225a110c | abd6fb9938dfe360906fa92fc6cb47687f781100 | /src/main/java/nyist/edu/cn/service/GodService.java | 42289f934c80fcc71f6557ca392b5d90dbfe376a | [] | no_license | lovely960823/videomall | d80b35d039ff042978face66f7201cb5c9181b0e | eeab5f3f7abaf69f806d05cf3086c56f48d7ca1b | refs/heads/master | 2022-06-27T12:14:04.111580 | 2020-07-12T11:41:10 | 2020-07-12T11:41:10 | 237,393,115 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 474 | java | package nyist.edu.cn.service;
import java.util.List;
import nyist.edu.cn.entity.God;
import nyist.edu.cn.service.base.BaseService;
import nyist.edu.cn.vo.ResultPage;
public interface GodService extends BaseService<God> {
/**
* 后台根据姓名查找
* @param resultPage
* @param god
* @return
*/
ResultPage<God> findByName(ResultPage<God> resultPage, God god);
/**
* 获取八条数据
* @return
*/
List<God> getGod();
}
| [
"374905102@qq.com"
] | 374905102@qq.com |
085f67e25ffbcf8610d3aa508f07ab43066311be | 990ca50f86bf877f46851425b79ffdfe26590c71 | /IC_JL_2.2.4/app/src/main/java/examples/pltw/org/collegeapp/Guardian.java | 21de57db86494cd4a4e28560aa3f85841cfa5874 | [] | no_license | justlee06/IC_JL_2.2.4 | 980552b445143fa0bfdbf44193b9517f325627f0 | 922cbda4ed8f36f23b12e3bb735954f4ac7c93ca | refs/heads/master | 2021-09-06T02:29:29.149826 | 2018-02-01T18:09:39 | 2018-02-01T18:09:39 | 119,581,746 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 859 | java | package examples.pltw.org.collegeapp;
/**
* Created by wdumas on 4/8/16.
*/
public class Guardian extends FamilyMember {
private String occupation;
public Guardian() {
super();
occupation = "unknown";
}
public Guardian(String firstName, String lastName) {
super(firstName, lastName);
occupation = "unknown";
}
public Guardian(String firstName, String lastName, String occupation) //step 35
{
super(firstName, lastName);
this.occupation = occupation;
}
public String toString() //step 36
{
return ("Guardian: " + getFirstName() + " " + getLastName() + "\nOccupation: " + occupation );
}
public String getOccupation() {
return occupation;
}
public void setOccupation(String occupation) {
this.occupation = occupation;
}
}
| [
"lee6281@mydusd.org"
] | lee6281@mydusd.org |
d5f5b9b22308a004c9eb0bae44a6f53740614a22 | 1204868f57bbd15757cd79c6838b31c903abd177 | /camel-blueprint-salesforce-test-6.2/src/main/java/org/apache/camel/salesforce/dto/QueryRecordsContentDocumentFeed.java | d72ae7f46fc6f6d97a1088f913b87e053fdff57b | [] | no_license | shivamlakade95/fuse-examples-6.2 | aedaeddcad6efcc8e4f85d550c9e2e174b25fb14 | f7f9ac9630828dd4e488f80011dbc2e60a7e3e2c | refs/heads/master | 2023-05-11T04:05:40.394046 | 2020-01-02T08:23:34 | 2020-01-02T08:23:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 732 | java | /*
* Salesforce Query DTO generated by camel-salesforce-maven-plugin
* Generated on: Thu Sep 03 14:23:16 IST 2015
*/
package org.apache.camel.salesforce.dto;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import org.apache.camel.component.salesforce.api.dto.AbstractQueryRecordsBase;
import java.util.List;
/**
* Salesforce QueryRecords DTO for type ContentDocumentFeed
*/
public class QueryRecordsContentDocumentFeed extends AbstractQueryRecordsBase {
@XStreamImplicit
private List<ContentDocumentFeed> records;
public List<ContentDocumentFeed> getRecords() {
return records;
}
public void setRecords(List<ContentDocumentFeed> records) {
this.records = records;
}
}
| [
"shekhar.csp84@yahoo.co.in"
] | shekhar.csp84@yahoo.co.in |
f20368e2749d3fc2cfc81159ebd8f935864d2e66 | 63011b0d7fabbf715f018f019fe1c3ca245c8ada | /src/main/java/com/minejunkie/junkiepass/commands/GiveChallengeCommand.java | ef308dda3f192a7272f7044b416692fab06074e6 | [] | no_license | Minertainment/JunkiePass | 8fabb6f4785d9251153f48e50843e7ec2fef1de6 | cff2caffe465fc0319573e04e7f22cfde2c3c4be | refs/heads/master | 2022-02-10T06:32:14.378562 | 2019-08-05T08:48:24 | 2019-08-05T08:48:24 | 136,778,918 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,463 | java | package com.minejunkie.junkiepass.commands;
import com.minejunkie.junkiepass.JunkiePass;
import com.minejunkie.junkiepass.challenges.Challenge;
import com.minejunkie.junkiepass.challenges.ChallengeType;
import com.minejunkie.junkiepass.profiles.JunkiePassProfile;
import com.minertainment.athena.Athena;
import com.minertainment.athena.commands.CommandContext;
import com.minertainment.athena.commands.Permission;
import com.minertainment.athena.commands.bukkit.AthenaBukkitCommand;
import com.minertainment.athena.commands.exceptions.CommandException;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class GiveChallengeCommand extends AthenaBukkitCommand {
private JunkiePass plugin;
// Tester for giving daily challenges only.
public GiveChallengeCommand(JunkiePass plugin) {
super("givechallenge", "/givechallenge <challenge> (player)", "Gives a challenge to a player.", new Permission("junkiepass.givechallenge"), "givechal");
this.plugin = plugin;
Athena.getCommandManager().registerCommand(this);
}
@Override
public void onCommand(CommandSender sender, CommandContext args) throws CommandException {
if (args.argsLength() == 0 || args.argsLength() > 2) {
sender.sendMessage("Available challenges: " + plugin.getChallengeManager().getChallengesString(ChallengeType.DAILY));
throw new CommandException(ChatColor.RED + "Usage: " + getUsage());
}
if (args.argsLength() == 1) {
Player player;
if ((player = Bukkit.getPlayer(args.getString(0))) == null) throw new CommandException(ChatColor.RED + "Player not found.");
JunkiePassProfile profile = plugin.getProfileManager().getProfile(player.getUniqueId());
Challenge challenge = plugin.getChallengeManager().addRandomDailyChallenge(profile);
if (challenge == null) {
throw new CommandException(ChatColor.RED + player.getName() + " has too many active challenges.");
} else {
player.sendMessage(plugin.getPrefix() + ChatColor.GRAY + ChatColor.ITALIC.toString() + "You have been given the " + ChatColor.GOLD + ChatColor.BOLD.toString() + challenge.getName() + ".");
}
}
if (args.argsLength() == 2) {
Challenge challenge;
if ((challenge = plugin.getChallengeManager().containsChallenge(ChallengeType.DAILY, args.getString(0))) == null) {
sender.sendMessage("Available challenges: " + plugin.getChallengeManager().getChallengesString(ChallengeType.DAILY));
throw new CommandException(ChatColor.RED + "Challenge not found.");
}
Player player;
if ((player = Bukkit.getPlayer(args.getString(1))) == null) throw new CommandException(ChatColor.RED + "Player not found.");
if (plugin.getChallengeManager().addChallenge(plugin.getProfileManager().getProfile(player.getUniqueId()), challenge.getClass())) {
player.sendMessage(plugin.getPrefix() + ChatColor.GRAY + ChatColor.ITALIC.toString() + "You have been given the " + ChatColor.GOLD + ChatColor.BOLD.toString() + challenge.getName() + ".");
} else throw new CommandException(ChatColor.RED + player.getName() + " has too many active challenges or is already participating in the challenge.");
}
}
}
| [
"nkrausemc@gmail.com"
] | nkrausemc@gmail.com |
ce9ee76679c71f28f279035976752dc1abb6ca6d | 4d0c4d6f0de899eb22f400b6769ef0b49430be1f | /web/src/test/java/com/springboot/web/WebApplicationTests.java | eec51f9f217f62cb0d59dcf9d7940c23e8e1e5a5 | [] | no_license | LesliePie/springboot-shiro-redis | d266c182dc7ab66258988fc28eee296aeaec36af | ca55268505f369ea22bc56a44c8a90e08fe85f5d | refs/heads/master | 2020-04-06T08:23:48.827859 | 2018-11-28T06:21:38 | 2018-11-28T06:21:38 | 157,303,167 | 4 | 1 | null | null | null | null | UTF-8 | Java | false | false | 341 | java | package com.springboot.web;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class WebApplicationTests {
@Test
public void contextLoads() {
}
}
| [
"15198264880@163.com"
] | 15198264880@163.com |
92791a05c6c6e25b1a244c0110fff29094ea0de6 | 69fefed1b1b16c4af6662cef757c7d2e3d3e6226 | /app/src/main/java/com/myappcompany/steve/canvaspaint/Adapters/SaveLoadRecyclerViewAdapter.java | a440b3fa7bb2157f5085e459458b1399598e4907 | [] | no_license | tutoringsteve/GameOfLifeAndroid | 1299949202efd28af59b541101cd91e18f3d25e1 | e2a59cdee27d0708360513c40a0494fe8a392f38 | refs/heads/master | 2021-08-11T01:35:06.477388 | 2020-12-26T23:06:54 | 2020-12-26T23:06:54 | 236,388,618 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,716 | java | package com.myappcompany.steve.canvaspaint.Adapters;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.myappcompany.steve.canvaspaint.R;
import com.myappcompany.steve.canvaspaint.data.SaveData;
import java.util.ArrayList;
public class SaveLoadRecyclerViewAdapter extends RecyclerView.Adapter<SaveLoadRecyclerViewAdapter.ViewHolder> {
private static final String TAG = "RecyclerViewAdapter";
private Context mContext;
private ArrayList<SaveData> mSaves;
private OnItemListener mOnItemListener;
public SaveLoadRecyclerViewAdapter(Context context, ArrayList<SaveData> saves, OnItemListener onItemListener) {
mContext = context;
mSaves = saves;
mOnItemListener = onItemListener;
}
@NonNull
@Override
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.save_load_list_item, parent, false);
return new ViewHolder(view, mOnItemListener);
}
@Override
public void onBindViewHolder(@NonNull final ViewHolder holder, final int position) {
Log.d(TAG, "onBindViewHolder: called.");
String date = mContext.getString(R.string.saved_on, mSaves.get(position).getSaveDate());
holder.saveDateTextView.setText(date);
holder.saveNameTextView.setText(mSaves.get(position).getSaveName());
}
@Override
public int getItemCount() {
return mSaves.size();
}
public static class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
ImageView deleteImageView;
TextView saveNameTextView, saveDateTextView;
OnItemListener onItemListener;
public ViewHolder(@NonNull View itemView, OnItemListener onItemListener) {
super(itemView);
deleteImageView = itemView.findViewById(R.id.deleteImageView);
deleteImageView.setOnClickListener(this);
saveNameTextView = itemView.findViewById(R.id.saveNameTextView);
saveDateTextView = itemView.findViewById(R.id.saveDateTextView);
this.onItemListener = onItemListener;
itemView.setOnClickListener(this);
}
@Override
public void onClick(View v) {
onItemListener.onItemClick(v, getAdapterPosition());
}
}
public interface OnItemListener{
void onItemClick(View view, int position);
}
}
| [
"tutoringsteve@gmail.com"
] | tutoringsteve@gmail.com |
6b2cbfe3dc8cb0ab130113fbc632967a108b15fa | e6fc90b1044b3830dc76014e210bebfe20723879 | /phase3/everything/Node.java | 494f4f4328bac984c9056cb8deaedddf178513ce | [] | no_license | DKEProjectGroup26/Project-1-3 | 3407945d527a03983b1aa2e935d13161f969947d | 3f62fe1e5e488991154a322716de4843ed7761ef | refs/heads/master | 2020-04-15T05:12:35.960451 | 2019-01-27T14:02:42 | 2019-01-27T14:02:42 | 164,412,943 | 0 | 0 | null | 2019-01-16T19:00:54 | 2019-01-07T10:00:26 | Java | UTF-8 | Java | false | false | 1,706 | java | package phase3.everything;
import java.util.ArrayList;
/**
* The class representing a node (or vertex) in a graph, edge information is stored
* in this class as a list of other {@link Node} objects stored as {@link Node#neighbors}
*/
public class Node implements Comparable {
/**
* The index of the node inside its parent graph's {@link Graph#nodes} list
*/
protected int index;
/**
* A list of the other {@link Node} objects in this node's parent graph which share an edge with this node
*/
protected ArrayList<Node> neighbors;
/**
* @return {@link Node#index}
*/
public int getIndex() {
return index;
}
/**
* @return {@link Node#neighbors}
*/
public ArrayList<Node> getNeighbors() {
return neighbors;
}
/**
* Constructor
*
* @param index the index to be assigned to this node
*/
public Node(int index) {
this.index = index;
neighbors = new ArrayList<Node>();
}
/**
* {@link Node}'s implementation of the {@link Comparable} interface, compares nodes by index
*
* @param other another object of type {@link Node} which this node will be compared to
* @return -1, 0, or 1
*/
public int compareTo(Object other) {
// -1 if my index < other index
// 0 if my index == other index
// 1 if my index > other index
if (other instanceof Node) {
int otherIndex = ((Node) other).index;
return index < otherIndex ? -1 : index == otherIndex ? 0 : 1;
} else throw new Error("tried to compare Node to " + other.getClass().getSimpleName());
}
} | [
"43991400@users.noreply.github.com"
] | 43991400@users.noreply.github.com |
3becb6cf5c284e99efff4f520613fdc8b556477d | d0094eec897f6cf935fae911d85366d6da216535 | /src/main/java/com/vmware/vim25/DeviceNotSupported.java | 155f4ab842aae56aeb1525f8122b23cf0c657118 | [
"BSD-3-Clause"
] | permissive | darkedges/vijava | 9e09798f8cfc61ec28a7a214e260f464c26e4531 | c65a731a25aa41d96e032271496f2464a8aa6fe9 | refs/heads/main | 2023-04-20T10:41:43.931180 | 2021-05-22T00:03:58 | 2021-05-22T00:03:58 | 369,026,457 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,586 | java |
package com.vmware.vim25;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for DeviceNotSupported complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="DeviceNotSupported">
* <complexContent>
* <extension base="{urn:vim25}VirtualHardwareCompatibilityIssue">
* <sequence>
* <element name="device" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="reason" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DeviceNotSupported", propOrder = {
"device",
"reason"
})
@XmlSeeAlso({
DeviceControllerNotSupported.class,
MultiWriterNotSupported.class,
DigestNotSupported.class,
VMINotSupported.class,
VirtualEthernetCardNotSupported.class,
RemoteDeviceNotSupported.class,
FileBackedPortNotSupported.class,
VirtualDiskModeNotSupported.class,
SharedBusControllerNotSupported.class,
DeviceBackingNotSupported.class,
RawDiskNotSupported.class,
NonPersistentDisksNotSupported.class,
RDMNotSupported.class
})
public class DeviceNotSupported
extends VirtualHardwareCompatibilityIssue
{
@XmlElement(required = true)
protected String device;
protected String reason;
/**
* Gets the value of the device property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDevice() {
return device;
}
/**
* Sets the value of the device property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDevice(String value) {
this.device = value;
}
/**
* Gets the value of the reason property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getReason() {
return reason;
}
/**
* Sets the value of the reason property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReason(String value) {
this.reason = value;
}
}
| [
"nirving@darkedges.com"
] | nirving@darkedges.com |
fd516cba3192178c5cdecdeb7dc8bd934fc53b3a | 12e49096e213e13f6958ac5ff73009b3a5bec724 | /alert-service/src/main/java/ru/ifmo/ailab/daafse/alertservice/CQELSEngineImpl.java | 202ae0dea00e1f1377c61b4172b8c662fa2e7cdb | [
"MIT"
] | permissive | ailabitmo/DAAFSE | 47a15763228c718b291a945c204c469736601193 | 6c3b7529954e68b93bd9927564b95a9c3a8fded8 | refs/heads/master | 2016-09-06T16:55:50.002845 | 2014-12-08T16:17:19 | 2014-12-08T16:17:19 | 19,241,273 | 1 | 2 | null | null | null | null | UTF-8 | Java | false | false | 2,409 | java | package ru.ifmo.ailab.daafse.alertservice;
import java.io.File;
import java.io.IOException;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.inject.Singleton;
import org.aeonbits.owner.ConfigFactory;
import org.deri.cqels.engine.ExecContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.ifmo.ailab.daafse.alertservice.config.ServiceConfig;
@Singleton
public class CQELSEngineImpl implements CQELSEngine {
private static final Logger logger = LoggerFactory.getLogger(
CQELSEngineImpl.class);
private static final ServiceConfig CONFIG = ConfigFactory.create(
ServiceConfig.class);
private static final File HOME = new File(CONFIG.cqelsHome());
private static ExecContext context;
@PostConstruct
public void postConstruct() {
if (!HOME.exists()) {
HOME.mkdir();
HOME.setWritable(true);
logger.debug("CQELS HOME: " + HOME.getAbsolutePath());
}
context = new ExecContext(CONFIG.cqelsHome(), true);
}
@PreDestroy
public void preDestroy() {
context.env().close();
context.getDataset().close();
context.getARQExCtx().getDataset().close();
context.dictionary().close();
if (HOME.exists()) {
try {
Files.walkFileTree(HOME.toPath(), new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
Files.delete(file);
return FileVisitResult.CONTINUE;
}
@Override
public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {
Files.delete(dir);
return FileVisitResult.CONTINUE;
}
});
} catch (IOException ex) {
logger.error(ex.getMessage(), ex);
}
}
}
@Override
public ExecContext getContext() {
synchronized (CQELSEngineImpl.class) {
return context;
}
}
}
| [
"kolchinmax@gmail.com"
] | kolchinmax@gmail.com |
58e6570f82ad8a4d0befd63d7c8fd514f3d41487 | 45a436b49dc644978f9ae43d512be48d529664bb | /app/src/main/java/pe/edu/cibertec/retrofitgitflow/presentation/main/view/IMainContract.java | 21d55137d58a39c354a2a7c64c6b53f0c13b3e02 | [] | no_license | wcondori/Retrofic_mvp | 36873b659eab6f49a70fd1f097e177fdc88f4dab | e7b5147e1bbd72dbdf922fa8bad6ffdf8d2fe194 | refs/heads/master | 2020-06-19T19:52:58.668706 | 2019-07-14T18:50:06 | 2019-07-14T18:50:06 | 196,849,771 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 571 | java | package pe.edu.cibertec.retrofitgitflow.presentation.main.view;
import java.util.List;
import pe.edu.cibertec.retrofitgitflow.data.entities.Post;
public interface IMainContract {
interface IView {
void showError(String errorMsg);
void showProgressBar();
void hideProgressBar();
void getAllPostSuccess(List<Post> postList);
void getToDetailPost(int postId);
}
interface IPresenter {
void attachView(IView view);
void detachView();
boolean isViewAttached();
void getAllpost();
}
}
| [
"wcondori2015@gmail.com"
] | wcondori2015@gmail.com |
0eda6bd01919c3224f6b47033a1734a019262017 | ce3515b2787a9473dd4aadbe38c7708debc82cf3 | /src/se/liu/ida/gusan092/tddd78/project/game/objects/still/Road.java | fd43d06b56119a37a72c8abf72856040b5b7b0ba | [] | no_license | gvekan/tddd78-project | 069ce0e867551ca7f7a7fcf5374ef1b306d92278 | 45b9abbde759c89ec0e1582b74af4ef9a8147b48 | refs/heads/master | 2021-01-02T07:27:02.664301 | 2017-05-07T21:39:16 | 2017-05-07T21:39:16 | 239,547,226 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,410 | java | package se.liu.ida.gusan092.tddd78.project.game.objects.still;
import se.liu.ida.gusan092.tddd78.project.game.Game;
import se.liu.ida.gusan092.tddd78.project.game.Handler;
import se.liu.ida.gusan092.tddd78.project.game.objects.Type;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
/**
* A still object for the environment handler that displays a road
*/
public class Road extends StillObject
{
private BufferedImage img = null;
public Road(final int y, final Handler handler)
{
super(0, y, Game.WIDTH, Game.HEIGHT, Color.BLACK, Type.ROAD, handler);
try {
img = ImageIO.read(new File("road.png"));
} catch (IOException e) {
e.printStackTrace();
}
}
/**
* Used to restore a saved game
*/
public Road(final Handler handler, final String saveValues)
{
super(Game.WIDTH,Game.HEIGHT,Color.BLACK, Type.ROAD, handler);
restoreSaveValues(saveValues);
try {
img = ImageIO.read(new File("road.png"));
} catch (IOException e) {
e.printStackTrace();
}
}
@Override public void render(final Graphics g) {
Graphics2D g2d = (Graphics2D) g;
if (img != null) {
g2d.drawImage(img,x,y,null);
}
}
/**
* Not used because nothing has to be saved
*/
@Override public void setStillSaveValues(final String[] saveValues) {
}
}
| [
"gusan092@student.liu.se"
] | gusan092@student.liu.se |
68fa83e5439fc4a14a0f3eb8f5475abb0ec61908 | 3d0f633c7067559c5c3e1eb27ca3ba42bd9ea4bc | /Stabel/src/no/hib/dat102/LabyrintSpill.java | d985fadadd3460eacb6f96f81c2cd7640d64c7fb | [] | no_license | hvl578007/Innlevering_1_dat102 | 088caf9fe9032454c5b02662eca2e0743dc10363 | d02d1a92211d612a8380ae02534442aef0183731 | refs/heads/master | 2020-04-20T15:53:06.336287 | 2019-02-13T13:31:22 | 2019-02-13T13:31:22 | 168,944,234 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,482 | java | package no.hib.dat102;
import no.hib.dat102.adt.StabelADT;
import no.hib.dat102.exception.*;
import no.hib.dat102.tabell.*;
import no.hib.dat102.kjedet.*;
public class LabyrintSpill {
private Labyrint labyrint;
public LabyrintSpill(Labyrint labyrint) {
this.labyrint = labyrint;
}
/**
* Fors�ke � gjennomg� labyrinten
*/
public boolean gjennomgaa() {
boolean ferdig = false;
Posisjon pos = new Posisjon();
//StabelADT<Posisjon> stabel = new KjedetStabel<Posisjon>();
StabelADT<Posisjon> stabel = new TabellStabel<Posisjon>();
stabel.push(pos);
try{
while (!stabel.erTom() && !(ferdig)) {
pos = stabel.pop();
labyrint.forsoekPosisjon(pos.getX(), pos.getY());
if (pos.getX() == labyrint.getRekker()-1 &&
pos.getY() == labyrint.getKolonner() - 1){
ferdig = true; // labyrinten er gjennomg�tt
}
else{
push_ny_pos(pos.getX(), pos.getY() - 1, stabel);
push_ny_pos(pos.getX(), pos.getY() + 1, stabel);
push_ny_pos(pos.getX() - 1, pos.getY(), stabel);
push_ny_pos(pos.getX() + 1, pos.getY(), stabel);
}
}//while
}
catch(EmptyCollectionException ex) {
System.out.println(ex.getMessage());
}
return ferdig;
}
private void push_ny_pos(int x, int y, StabelADT<Posisjon> stabel) {
Posisjon nypos = new Posisjon();
nypos.setX(x);
nypos.setY(y);
if (labyrint.gyldigPosisjon(x, y)){
stabel.push(nypos);
}
}
}//class
| [
"stian.gronaas@outlook.com"
] | stian.gronaas@outlook.com |
0808e1a2701127a6082a7aea0faa4f50ab157942 | e58d9bb8d0ec1c0e2d447dd4246d0c7d2f9f22ed | /src/main/java/io/github/mechevo/common/block/ores/ChromiteOre.java | 72470980c898df1b42aeaa32c1cd640e3b21142f | [] | no_license | tmLegion/Mechanized_Evolution | 86b5e84e65bfe26a7639facaac0e62b9674133f5 | e8bd53f3928a0587fbd54b804e609b50537dc491 | refs/heads/master | 2023-03-24T13:23:00.511805 | 2021-03-08T02:42:55 | 2021-03-08T02:42:55 | 344,593,846 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 75 | java | package io.github.mechevo.common.block.ores;
public class ChromiteOre {
}
| [
"76824525+ReaperMSF@users.noreply.github.com"
] | 76824525+ReaperMSF@users.noreply.github.com |
e23964b5b9b67d9be313e042af5c6267d9a901b2 | e7ca3a996490d264bbf7e10818558e8249956eda | /aliyun-java-sdk-rds/src/main/java/com/aliyuncs/rds/model/v20140815/CreateDampPolicyResponse.java | a0918b83c607f359c40328de7fe39a8c753cead8 | [
"Apache-2.0"
] | permissive | AndyYHL/aliyun-openapi-java-sdk | 6f0e73f11f040568fa03294de2bf9a1796767996 | 15927689c66962bdcabef0b9fc54a919d4d6c494 | refs/heads/master | 2020-03-26T23:18:49.532887 | 2018-08-21T04:12:23 | 2018-08-21T04:12:23 | 145,530,169 | 1 | 0 | null | 2018-08-21T08:14:14 | 2018-08-21T08:14:13 | null | UTF-8 | Java | false | false | 1,582 | 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.rds.model.v20140815;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.rds.transform.v20140815.CreateDampPolicyResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CreateDampPolicyResponse extends AcsResponse {
private String requestId;
private String policyId;
private String policyName;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getPolicyId() {
return this.policyId;
}
public void setPolicyId(String policyId) {
this.policyId = policyId;
}
public String getPolicyName() {
return this.policyName;
}
public void setPolicyName(String policyName) {
this.policyName = policyName;
}
@Override
public CreateDampPolicyResponse getInstance(UnmarshallerContext context) {
return CreateDampPolicyResponseUnmarshaller.unmarshall(this, context);
}
}
| [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
9e561d5059a0496321d102a849558017168b4f2c | cd880943bbe93d1c542cfe144561be3f81443c96 | /ExchangeRates/app/src/main/java/com/achek/exchangerates/repository/model/ResponseModel.java | 852b2cb0909a46153e8e1c90a20ee075a00cf672 | [] | no_license | a-chekulov/Currency-Converter | a3d1046b82a5e35df1dc90839828d55726250160 | fe49934f50dbf0cecb3bbd8a2a3dd13abfab7200 | refs/heads/master | 2020-07-19T20:21:47.059809 | 2019-09-05T08:09:12 | 2019-09-05T08:09:12 | 206,509,166 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 684 | java | package com.achek.exchangerates.repository.model;
import androidx.annotation.Nullable;
public class ResponseModel {
public ResponseModel(@Nullable CbrInfo cbrInfo, @Nullable String error) {
this.cbrInfo = cbrInfo;
this.error = error;
}
@Nullable
private CbrInfo cbrInfo;
@Nullable
private String error;
@Nullable
public CbrInfo getCbrInfo() {
return cbrInfo;
}
public void setCbrInfo(@Nullable CbrInfo cbrInfo) {
this.cbrInfo = cbrInfo;
}
@Nullable
public String getError() {
return error;
}
public void setError(@Nullable String error) {
this.error = error;
}
}
| [
"44943685+a-chekulov@users.noreply.github.com"
] | 44943685+a-chekulov@users.noreply.github.com |
e6b1a00309728ba5dc50125084a711aadf8f30d0 | 517fb69ca6b9f7c478f0cd6201d5ec250dc3c776 | /FastOrm/src/main/java/org/fastorm/defns/IMutableMakerAndEntityDefnVisitor.java | 0b3fe04e3db51317bbd2184a47a1081da6c423e0 | [] | no_license | phil-rice/fastorm | 2af3baa2f18fa8f2f6bfb319623ce32dd8f5d2e6 | ae6f16a147c013e55d39031668a804c3b19c69db | refs/heads/master | 2021-01-23T13:29:16.818262 | 2011-06-14T21:11:27 | 2011-06-14T21:11:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 218 | java | package org.fastorm.defns;
import org.fastorm.temp.IMutatingTempTableMaker;
public interface IMutableMakerAndEntityDefnVisitor {
void accept(IMutatingTempTableMaker maker, IEntityDefn entityDefn) throws Exception;
} | [
"phil.rice@erudine.com"
] | phil.rice@erudine.com |
0f130badf82631d1160ff44e93c5de488dd07d14 | f085625f1a0796853f39ee52f71e34aba2b65a5b | /src/main/java/com/common/Utils/JwtUtils.java | 3d00a0e0dc8fd751f427a885df6e690ce47bde3d | [] | no_license | h7775259966/medical_waste | 7bdf0e1df0a36d0c40edba0fc087eec189513c7c | 34297cfccdf83854235c086203249bf9f8c021b2 | refs/heads/master | 2023-01-30T17:58:41.826491 | 2020-10-12T03:50:50 | 2020-10-12T03:52:19 | 320,127,176 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,561 | java | package com.common.Utils;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.JwtBuilder;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.Date;
import java.util.Map;
@Getter
@Setter
@ConfigurationProperties("jwt.config")
public class JwtUtils {
//签名私钥
private String key;
//签名的失效时间
private Long ttl;
/**
* 设置认证token
* id:登录用户id
* subject:登录用户名
*
*/
public String createJwt(String id, String name, Map<String,Object> map) {
//1.设置失效时间
long now = System.currentTimeMillis();//当前毫秒
long exp = now + ttl;
//2.创建jwtBuilder
JwtBuilder jwtBuilder = Jwts.builder().setId(id).setSubject(name)
.setIssuedAt(new Date())
.signWith(SignatureAlgorithm.HS256, key);
//3.根据map设置claims
for(Map.Entry<String,Object> entry : map.entrySet()) {
jwtBuilder.claim(entry.getKey(),entry.getValue());
}
jwtBuilder.setExpiration(new Date(exp));
//4.创建token
String token = jwtBuilder.compact();
return token;
}
/**
* 解析token字符串获取clamis
*/
public Claims parseJwt(String token) {
Claims claims = Jwts.parser().setSigningKey(key).parseClaimsJws(token).getBody();
return claims;
}
}
| [
"245357619@qq.com"
] | 245357619@qq.com |
d533fc24a1693763ca0715996f56480d2e932066 | e0e835dac93f7221c2cc178cf33e6a418ed8cd26 | /javafx-demonstration/src/main/java/com/etlsolutions/gwise/data/log/LogType.java | 4d7aec37b423dba7367d3b27d328516e5efe3713 | [] | no_license | eep60b/projects | d810507558c34471bacdf6345ce4b63c18912ac4 | 2a17c436049a1b5a8769b91d54dea48f41100629 | refs/heads/master | 2022-09-22T19:39:35.060351 | 2021-12-03T09:17:29 | 2021-12-03T09:17:29 | 126,003,168 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 179 | java | package com.etlsolutions.gwise.data.log;
/**
* The LogType interface is mask interface for all log types.
*
* @author ZhipengChang
*/
public interface LogType {
}
| [
"ZhipengChang@DESKTOP-L02HLUE"
] | ZhipengChang@DESKTOP-L02HLUE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.