blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 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 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 131
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 3 9.45M | extension stringclasses 32
values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 313 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
52144f535e7085ddb4daee159e92407c73b54242 | f784e5fd44606457d9cc17ec2a2fa58aecdbfc07 | /BlackJack/src/mvrcus/BlackJack/Deck.java | 0ad4bb151b12d77706c40d6788d550cd6bdde25e | [] | no_license | Mvrcus97/BlackJack | baa62b89bf855bd988d172917eb4446c895a5110 | 6c53beca0ed4aa04f513f7f96c198fd7e14855b5 | refs/heads/master | 2020-04-26T21:01:14.225558 | 2019-03-18T10:56:15 | 2019-03-18T10:56:15 | 173,829,704 | 0 | 1 | null | 2019-03-18T10:56:16 | 2019-03-04T22:12:25 | Java | WINDOWS-1250 | Java | false | false | 1,588 | java | package mvrcus.BlackJack;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;
public class Deck {
Card[] deck;
int cardPointer;
// Constructor
public Deck(int n) {
cardPointer = 0;
initializeDeck(n);
for( Card c : deck) {
System.out.println(c.getType() + " " + c.getNum());
}
}
private void initializeDeck(int n) {
deck = new Card[52*n];
String[] types = {"clubs", "diamonds", "hearts", "spades"};
for(int counter = 0; counter<4*n; counter++) {
for(int i=0; i<13; i++) {
deck[counter*13 + i] = new Card(i+2, types[counter%4]);
}
}//end double for
//Let's shuffle it a couple of times..
for(int i = 0; i <5; i++) {
shuffleDeck();
}
}
//Fisher–Yates shuffle
private void shuffleDeck() {
Random rnd = ThreadLocalRandom.current();
for (int i = deck.length-1; i > 0; i--){
int index = rnd.nextInt(i + 1);
// Simple swap
Card tmp = deck[index];
deck[index] = deck[i];
deck[i] = tmp;
}
}//end shuffleDeck
public boolean canPlay() {
return cardPointer > 10? true:false;
}
public Card pullCard(){
Card tmp = deck[cardPointer];
this.cardPointer ++;
return tmp;
}
/* Inner class Card */
public class Card{
private int num;
private String type;
public Card(int num, String type) {
this.num = num;
this.type = type;
}
public int getNum() {return this.num;}
public String getType() {return this.type;}
}// end Card.
}// end Deck
| [
"Macos@Macos-MASKINPC"
] | Macos@Macos-MASKINPC |
fb9acccf262c0871fdb3383544089cd702032c0f | 8238bc5b3398bca1bdfab9a18225eb3fbd893cfd | /pickerview/build/generated/source/r/debug/android/support/coreui/R.java | 6e41d2d2fb4133a842c22c27d905dc46f4017546 | [] | no_license | SetAdapter/MoveNurse | 2a890ff9a456b9284df69f44fe2616bb306de386 | c4770363d3b136cbe1a3cf1237d39c07151be2af | refs/heads/master | 2020-04-23T14:02:05.946825 | 2019-02-18T05:12:30 | 2019-02-18T05:12:30 | 171,218,203 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,028 | 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 int font = 0x7f04009e;
public static int fontProviderAuthority = 0x7f0400a0;
public static int fontProviderCerts = 0x7f0400a1;
public static int fontProviderFetchStrategy = 0x7f0400a2;
public static int fontProviderFetchTimeout = 0x7f0400a3;
public static int fontProviderPackage = 0x7f0400a4;
public static int fontProviderQuery = 0x7f0400a5;
public static int fontStyle = 0x7f0400a6;
public static int fontWeight = 0x7f0400a7;
}
public static final class bool {
public static int abc_action_bar_embed_tabs = 0x7f050001;
}
public static final class color {
public static int notification_action_color_filter = 0x7f06005e;
public static int notification_icon_bg_color = 0x7f06005f;
public static int ripple_material_light = 0x7f060075;
public static int secondary_text_default_material_light = 0x7f060077;
}
public static final class dimen {
public static int compat_button_inset_horizontal_material = 0x7f080050;
public static int compat_button_inset_vertical_material = 0x7f080051;
public static int compat_button_padding_horizontal_material = 0x7f080052;
public static int compat_button_padding_vertical_material = 0x7f080053;
public static int compat_control_corner_material = 0x7f080054;
public static int notification_action_icon_size = 0x7f08008c;
public static int notification_action_text_size = 0x7f08008d;
public static int notification_big_circle_margin = 0x7f08008e;
public static int notification_content_margin_start = 0x7f08008f;
public static int notification_large_icon_height = 0x7f080090;
public static int notification_large_icon_width = 0x7f080091;
public static int notification_main_column_padding_top = 0x7f080092;
public static int notification_media_narrow_margin = 0x7f080093;
public static int notification_right_icon_size = 0x7f080094;
public static int notification_right_side_padding_top = 0x7f080095;
public static int notification_small_icon_background_padding = 0x7f080096;
public static int notification_small_icon_size_as_large = 0x7f080097;
public static int notification_subtext_size = 0x7f080098;
public static int notification_top_pad = 0x7f080099;
public static int notification_top_pad_large_text = 0x7f08009a;
}
public static final class drawable {
public static int notification_action_background = 0x7f090060;
public static int notification_bg = 0x7f090061;
public static int notification_bg_low = 0x7f090062;
public static int notification_bg_low_normal = 0x7f090063;
public static int notification_bg_low_pressed = 0x7f090064;
public static int notification_bg_normal = 0x7f090065;
public static int notification_bg_normal_pressed = 0x7f090066;
public static int notification_icon_background = 0x7f090067;
public static int notification_template_icon_bg = 0x7f090068;
public static int notification_template_icon_low_bg = 0x7f090069;
public static int notification_tile_bg = 0x7f09006a;
public static int notify_panel_notification_icon_bg = 0x7f09006b;
}
public static final class id {
public static int action_container = 0x7f0c0009;
public static int action_divider = 0x7f0c000b;
public static int action_image = 0x7f0c000c;
public static int action_text = 0x7f0c0012;
public static int actions = 0x7f0c0013;
public static int async = 0x7f0c0018;
public static int blocking = 0x7f0c001b;
public static int chronometer = 0x7f0c0025;
public static int forever = 0x7f0c003b;
public static int icon = 0x7f0c003f;
public static int icon_group = 0x7f0c0040;
public static int info = 0x7f0c0044;
public static int italic = 0x7f0c0045;
public static int line1 = 0x7f0c004a;
public static int line3 = 0x7f0c004b;
public static int normal = 0x7f0c005e;
public static int notification_background = 0x7f0c005f;
public static int notification_main_column = 0x7f0c0060;
public static int notification_main_column_container = 0x7f0c0061;
public static int right_icon = 0x7f0c0072;
public static int right_side = 0x7f0c0073;
public static int text = 0x7f0c009b;
public static int text2 = 0x7f0c009c;
public static int time = 0x7f0c00a3;
public static int title = 0x7f0c00a5;
}
public static final class integer {
public static int status_bar_notification_info_maxnum = 0x7f0d000b;
}
public static final class layout {
public static int notification_action = 0x7f0f0039;
public static int notification_action_tombstone = 0x7f0f003a;
public static int notification_template_custom_big = 0x7f0f0041;
public static int notification_template_icon_group = 0x7f0f0042;
public static int notification_template_part_chronometer = 0x7f0f0046;
public static int notification_template_part_time = 0x7f0f0047;
}
public static final class string {
public static int status_bar_notification_info_overflow = 0x7f15004d;
}
public static final class style {
public static int TextAppearance_Compat_Notification = 0x7f16010b;
public static int TextAppearance_Compat_Notification_Info = 0x7f16010c;
public static int TextAppearance_Compat_Notification_Line2 = 0x7f16010e;
public static int TextAppearance_Compat_Notification_Time = 0x7f160111;
public static int TextAppearance_Compat_Notification_Title = 0x7f160113;
public static int Widget_Compat_NotificationActionContainer = 0x7f160189;
public static int Widget_Compat_NotificationActionText = 0x7f16018a;
}
public static final class styleable {
public static int[] FontFamily = { 0x7f0400a0, 0x7f0400a1, 0x7f0400a2, 0x7f0400a3, 0x7f0400a4, 0x7f0400a5 };
public static int FontFamily_fontProviderAuthority = 0;
public static int FontFamily_fontProviderCerts = 1;
public static int FontFamily_fontProviderFetchStrategy = 2;
public static int FontFamily_fontProviderFetchTimeout = 3;
public static int FontFamily_fontProviderPackage = 4;
public static int FontFamily_fontProviderQuery = 5;
public static int[] FontFamilyFont = { 0x7f04009e, 0x7f0400a6, 0x7f0400a7 };
public static int FontFamilyFont_font = 0;
public static int FontFamilyFont_fontStyle = 1;
public static int FontFamilyFont_fontWeight = 2;
}
}
| [
"383411934@qq.com"
] | 383411934@qq.com |
b5087bdbd35f3d66dc0fad2c08d1fb243888a934 | 6c9b21bfaa4b21a220256fbe59797988c0a5389b | /src/main/java/com/github/anilople/javajvm/instructions/stores/FSTORE_1.java | 8fc8cb88b0f62872ae77dde4762776d4c186adeb | [
"MIT"
] | permissive | codings-dan/javajvm | abbfa5de4870d31db7bd9df0970b84e052779e1c | b4b29a2059daf4af44442de28040122a040d0c01 | refs/heads/master | 2023-03-10T19:36:37.616011 | 2021-02-22T11:50:50 | 2021-02-22T11:50:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 540 | java | package com.github.anilople.javajvm.instructions.stores;
import com.github.anilople.javajvm.instructions.BytecodeReader;
import com.github.anilople.javajvm.instructions.Instruction;
import com.github.anilople.javajvm.runtimedataarea.Frame;
public class FSTORE_1 implements Instruction {
@Override
public void fetchOperands(BytecodeReader bytecodeReader) {
}
@Override
public void execute(Frame frame) {
FSTORE.execute(this, frame, 1);
}
@Override
public int size() {
return 1;
}
}
| [
"Anilople@outlook.com"
] | Anilople@outlook.com |
0482cb1f47bfb2c9cccee5eeb9db46ed5b709d60 | 1147198e50208109e7f98030ef3b0e5f57e08e2c | /puzzle/src/main/java/fam/puzzle/config/MvcConfig.java | 42ab7901ad21960779c81e92896aea74db40a6f4 | [] | no_license | robnelsonmd/fam | f2b1ec5793149add4f66ad31516b42e43b4632b2 | c36526ab6a44f253e94fad1888504d9953a40834 | refs/heads/master | 2022-11-22T15:10:11.259608 | 2020-07-13T15:27:42 | 2020-07-13T15:27:42 | 256,222,841 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 447 | java | package fam.puzzle.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class MvcConfig implements WebMvcConfigurer {
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/login").setViewName("login");
}
}
| [
"rob.nelson.md@gmail.com"
] | rob.nelson.md@gmail.com |
caf5683e819156e5da19075bfb77b9da6f8e4012 | 7476689d08b5079913363446fd68c2749a6c7a0e | /PocketCreatures/sample/StartScreen.java | 389b6dd07e3fe7577d3034c0eb937e5262d9ac8d | [] | no_license | arussin99/Pocket-Creatures | df90696bd51b0021b51bd7cb4f8e0bad4af79b5b | 34f21540add908ed1453bc40cff797c4df919ff5 | refs/heads/master | 2022-02-27T03:10:54.542351 | 2019-08-09T13:43:10 | 2019-08-09T13:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,053 | java | package sample;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Text;
public class StartScreen {
int startLevel=8;
StartScreen(Pane root, Group field) {
Group startScren = new Group();
int x= -100;
int y=400;
String str = "-fx-font:100px Tahoma;-fx-font-weight: bold;-fx-rotate: 75;";
Rectangle normal = new Rectangle(0, 0, 182, 720);
normal.setFill(Color.GRAY);
Text n = new Text(x-20, y, "NORMAL");
n.setStyle(str);
Rectangle fire = new Rectangle(182, 0, 182, 720);
fire.setFill(Color.TOMATO);
Text f = new Text(246+x,y,"FIRE");
f.setStyle(str);
Rectangle water = new Rectangle(364, 0, 182, 720);
water.setFill(Color.DARKTURQUOISE);
Text w = new Text(370+x,y,"WATER");
w.setStyle(str);
Rectangle grass = new Rectangle(546, 0, 184, 720);
grass.setFill(Color.DARKGREEN);
Text g = new Text(560+x,y,"GRASS");
g.setStyle(str);
Rectangle flying = new Rectangle(730, 0, 183, 720);
flying.setFill(Color.CADETBLUE);
Text fl= new Text(735+x,y,"FLYING");
fl.setStyle(str);
Rectangle ground = new Rectangle(913, 0, 185, 720);
ground.setFill(Color.SADDLEBROWN);
Text gr = new Text(880+x,y,"GROUND");
gr.setStyle(str);
Rectangle electric = new Rectangle(1098, 0, 182, 720);
electric.setFill(Color.GOLD);
Text el = new Text(1050+x,y,"ELECTRIC");
el.setStyle(str);
EventHandler<MouseEvent> norm = new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent e) {
root.getChildren().remove(startScren);
Main.you= new Monster(1,startLevel,field);
root.getChildren().add(field);
}
};
normal.addEventFilter(MouseEvent.MOUSE_CLICKED, norm);
n.addEventFilter(MouseEvent.MOUSE_CLICKED, norm);
EventHandler<MouseEvent> fir = new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent e) {
root.getChildren().remove(startScren);
Main.you= new Monster(2,startLevel,field);
root.getChildren().add(field);
}
};
fire.addEventFilter(MouseEvent.MOUSE_CLICKED, fir);
f.addEventFilter(MouseEvent.MOUSE_CLICKED, fir);
EventHandler<MouseEvent> wat = new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent e) {
root.getChildren().remove(startScren);
Main.you= new Monster(3,startLevel,field);
root.getChildren().add(field);
}
};
water.addEventFilter(MouseEvent.MOUSE_CLICKED, wat);
w.addEventFilter(MouseEvent.MOUSE_CLICKED, wat);
EventHandler<MouseEvent> gras = new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent e) {
root.getChildren().remove(startScren);
Main.you= new Monster(4,startLevel,field);
root.getChildren().add(field);
}
};
grass.addEventFilter(MouseEvent.MOUSE_CLICKED, gras);
g.addEventFilter(MouseEvent.MOUSE_CLICKED, gras);
EventHandler<MouseEvent> fly = new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent e) {
root.getChildren().remove(startScren);
Main.you= new Monster(5,startLevel,field);
root.getChildren().add(field);
}
};
flying.addEventFilter(MouseEvent.MOUSE_CLICKED, fly);
fl.addEventFilter(MouseEvent.MOUSE_CLICKED, fly);
EventHandler<MouseEvent> grd = new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent e) {
root.getChildren().remove(startScren);
Main.you= new Monster(6,startLevel,field);
root.getChildren().add(field);
}
};
ground.addEventFilter(MouseEvent.MOUSE_CLICKED, grd);
gr.addEventFilter(MouseEvent.MOUSE_CLICKED, grd);
EventHandler<MouseEvent> ele = new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent e) {
Main.you= new Monster(7,startLevel,field);
root.getChildren().remove(startScren);
root.getChildren().add(field);
}
};
electric.addEventFilter(MouseEvent.MOUSE_CLICKED, ele);
el.addEventFilter(MouseEvent.MOUSE_CLICKED, ele);
// add button
startScren.getChildren().addAll(normal, fire, water, grass, flying, ground, electric,n,f,w,g,fl,gr,el);
root.getChildren().add(startScren);
}
}
| [
"alec@russin.us"
] | alec@russin.us |
583cb8d5d0dbe31ac5a344fc60066ba4771539b8 | 15e40f8ce43fcf999378da5047365cc84a3c6bb5 | /src/main/java/com/zssi/framework/app/cwgl/dao/YcwYgflmxDao.java | ab5bb22b7df0fef1bf631eb883dccf3f5850f79e | [] | no_license | itxiaojian/myfirstgit | e7a758c5df85238b95ac8432aa6eb79c170bd2bd | 050b1ae8be8b6289ad6d49b62ebea09b54ee45f9 | refs/heads/master | 2021-01-19T16:08:55.757067 | 2017-04-14T15:05:04 | 2017-04-14T15:05:04 | 88,250,609 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,536 | java | package com.zssi.framework.app.cwgl.dao;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import com.zssi.framework.app.common.dao.hibernate4.HibernateBaseDaoImpl;
import com.zssi.framework.app.common.dao.jdbc.NamedParameterJdbcPager;
import com.zssi.framework.app.common.dao.support.Pagination;
import com.zssi.framework.app.cwgl.model.YcwYgflmx;
@Repository
public class YcwYgflmxDao extends HibernateBaseDaoImpl<YcwYgflmx, Integer>{
@Autowired
private JdbcTemplate jdbcTemplate;
@Autowired
private NamedParameterJdbcPager jdbcPager;
/**
* 分页查询员工福利明细
* @author wangyong
* @date 2015年10月13日
* @param start
* @param limit
* @param code
* @return
*/
public Pagination<Map<String, Object>> getYgflmxList(Integer start,
Integer limit, String flbh) {
String sql = "select a.id,a.ygxm,a.ssyf,b.zdmc as flmc,a.flxq,a.je"
+ " from y_cw_ygflmx a left join (select zdz,zdmc from sys_sjzd where zl='fllx' and jb=2) b on a.flmc=b.zdz where a.flbh = '"+flbh+"'";
return jdbcPager.queryPage(sql, start, limit);
}
/**
* 获取当前最大的成本编号
* @author wangyong
* @date 2016年4月7日
* @return
*/
public List<Map<String, Object>> getFlbh() {
String sql = "select max(flbh) flbh from Y_CW_YGFL" ;
return jdbcTemplate.queryForList(sql);
}
}
| [
"2629690209@qq.com"
] | 2629690209@qq.com |
4c299148d1e76774f18ce8380044c984eb7f4f50 | ccf2da6865971ab9c26014302fd13bc50389dd2b | /app/src/main/java/com/mbn/elkhodary/activity/SellerInfoActivity.java | 51cd28ed590db98a6151276087ae681129049996 | [] | no_license | aaamab257/elkhodary | 5b6582c46eb4e2cf80659e9ec5789e49cad49c3e | f5de2cb8243b2b708a4889246085a40566fb4b1d | refs/heads/master | 2022-11-14T10:53:33.866332 | 2020-07-04T08:08:09 | 2020-07-04T08:08:09 | 275,475,584 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 19,529 | java | package com.mbn.elkhodary.activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.appbar.CollapsingToolbarLayout;
import androidx.core.widget.NestedScrollView;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.appcompat.widget.Toolbar;
import android.text.Html;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.Toast;
import com.ciyashop.library.apicall.PostApi;
import com.ciyashop.library.apicall.URLS;
import com.ciyashop.library.apicall.interfaces.OnResponseListner;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.mbn.elkhodary.R;
import com.mbn.elkhodary.adapter.SellerProductAdapter;
import com.mbn.elkhodary.adapter.SellerReviewAdapter;
import com.mbn.elkhodary.customview.GridSpacingItemDecoration;
import com.mbn.elkhodary.customview.textview.TextViewBold;
import com.mbn.elkhodary.customview.textview.TextViewLight;
import com.mbn.elkhodary.customview.textview.TextViewMedium;
import com.mbn.elkhodary.customview.textview.TextViewRegular;
import com.mbn.elkhodary.helper.DatabaseHelper;
import com.mbn.elkhodary.interfaces.OnItemClickListner;
import com.mbn.elkhodary.model.CategoryList;
import com.mbn.elkhodary.model.SellerData;
import com.mbn.elkhodary.utils.BaseActivity;
import com.mbn.elkhodary.utils.Constant;
import com.mbn.elkhodary.utils.RequestParamUtils;
import com.mbn.elkhodary.utils.Utils;
import com.squareup.picasso.Picasso;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import de.hdodenhof.circleimageview.CircleImageView;
public class SellerInfoActivity extends BaseActivity implements OnItemClickListner, OnResponseListner {
@BindView(R.id.rvCategoryGrid)
RecyclerView rvCategoryGrid;
@BindView(R.id.rvReview)
RecyclerView rvReview;
@BindView(R.id.ivBannerImage)
ImageView ivBannerImage;
@BindView(R.id.toolbar)
Toolbar toolbar;
@BindView(R.id.civProfileImage)
CircleImageView civProfileImage;
@BindView(R.id.tvName)
TextViewBold tvName;
@BindView(R.id.tvRating)
TextViewMedium tvRating;
@BindView(R.id.tvStoreDescription)
TextViewLight tvStoreDescription;
@BindView(R.id.tvSellerAddress)
TextViewLight tvSellerAddress;
@BindView(R.id.llReview)
LinearLayout llReview;
@BindView(R.id.tvContactSeller)
TextViewLight tvContactSeller;
@BindView(R.id.collapsing_toolbar)
CollapsingToolbarLayout collapsing_toolbar;
@BindView(R.id.nsvSellerData)
NestedScrollView nsvSellerData;
@BindView(R.id.tvViewAllReview)
TextViewRegular tvViewAllReview;
private SellerProductAdapter sellerProductAdapter;
private SellerReviewAdapter sellerReviewAdapter;
private String sellerInfo;
private String sellerid;
private int page = 1;
private boolean loading = true;
private DatabaseHelper databaseHelper;
List<CategoryList> list = new ArrayList<>();
JSONArray jsonArray = new JSONArray();
int pastVisiblesItems, visibleItemCount, totalItemCount;
boolean setNoItemFound;
public enum State {
EXPANDED,
COLLAPSED,
IDLE
}
private State mCurrentState = State.IDLE;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_seller_info);
ButterKnife.bind(this);
setScreenLayoutDirection();
databaseHelper = new DatabaseHelper(this);
runOnUiThread(new Runnable() {
@Override
public void run() {
setGridRecycleView();
}
});
collapsing_toolbar.setBackgroundColor(Color.parseColor(getPreferences().getString(Constant.HEADER_COLOR, Constant.PRIMARY_COLOR)));
collapsing_toolbar.setTitle(getResources().getString(R.string.Seller_Information));
collapsing_toolbar.setContentScrimColor(Color.parseColor(getPreferences().getString(Constant.APP_COLOR, Constant.PRIMARY_COLOR)));
collapsing_toolbar.setExpandedTitleColor(getResources().getColor(R.color.transparent_white));
collapsing_toolbar.setCollapsedTitleTextColor(getResources().getColor(R.color.white));
collapsing_toolbar.setStatusBarScrimColor(Color.parseColor(getPreferences().getString(Constant.APP_COLOR, Constant.PRIMARY_COLOR)));
initCollapsingToolbar();
setReviewData();
sellerid = getIntent().getExtras().getString(RequestParamUtils.ID);
getSellerInfo(true);
setThemeColor();
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(true);
}
public void setThemeColor() {
tvName.setTextColor(Color.parseColor(getPreferences().getString(Constant.APP_COLOR, Constant.PRIMARY_COLOR)));
tvContactSeller.setBackgroundColor(Color.parseColor(getPreferences().getString(Constant.SECOND_COLOR, Constant.SECONDARY_COLOR)));
tvViewAllReview.setBackgroundColor(Color.parseColor(getPreferences().getString(Constant.SECOND_COLOR, Constant.SECONDARY_COLOR)));
}
@Override
public boolean onSupportNavigateUp() {
onBackPressed();
return true;
}
public void getSellerInfo(boolean dialog) {
if (Utils.isInternetConnected(this)) {
if (dialog) {
showProgress("");
}
PostApi postApi = new PostApi(SellerInfoActivity.this, RequestParamUtils.seller, this, getlanuage());
try {
JSONObject jsonObject = new JSONObject();
jsonObject.put(RequestParamUtils.PAGE, page);
jsonObject.put(RequestParamUtils.sellerId, sellerid);
postApi.callPostApi(new URLS().SELLER + getPreferences().getString(RequestParamUtils.CurrencyText, ""), jsonObject.toString());
} catch (Exception e) {
Log.e("Json Exception", e.getMessage());
}
} else {
Toast.makeText(this, R.string.internet_not_working, Toast.LENGTH_LONG).show();
}
}
private void initCollapsingToolbar() {
AppBarLayout appBarLayout = (AppBarLayout) findViewById(R.id.appbar);
// hiding & showing the title when toolbar expanded & collapsed
appBarLayout.addOnOffsetChangedListener(new AppBarLayout.OnOffsetChangedListener() {
@Override
public void onOffsetChanged(AppBarLayout appBarLayout, int i) {
if (i == 0) {
if (mCurrentState != State.EXPANDED) {
toolbar.setBackgroundColor(Color.TRANSPARENT);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
Window window = getWindow();
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
window.setStatusBarColor(Color.TRANSPARENT);
}
}
mCurrentState = State.EXPANDED;
} else if (Math.abs(i) >= appBarLayout.getTotalScrollRange()) {
if (mCurrentState != State.COLLAPSED) {
toolbar.setBackgroundColor(Color.parseColor(getPreferences().getString(Constant.APP_COLOR, Constant.PRIMARY_COLOR)));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
Window window = getWindow();
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
window.setStatusBarColor(Color.parseColor(getPreferences().getString(Constant.APP_COLOR, Constant.PRIMARY_COLOR)));
}
}
mCurrentState = State.COLLAPSED;
} else {
if (mCurrentState != State.IDLE) {
toolbar.setBackgroundColor(Color.TRANSPARENT);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
Window window = getWindow();
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
window.setStatusBarColor(Color.TRANSPARENT);
}
}
mCurrentState = State.IDLE;
}
}
});
}
public void setGridRecycleView() {
sellerProductAdapter = new SellerProductAdapter(this, this);
final GridLayoutManager mLayoutManager = new GridLayoutManager(SellerInfoActivity.this, 2, LinearLayoutManager.VERTICAL, false);
rvCategoryGrid.setLayoutManager(mLayoutManager);
rvCategoryGrid.setAdapter(sellerProductAdapter);
rvCategoryGrid.setNestedScrollingEnabled(false);
rvCategoryGrid.addItemDecoration(new GridSpacingItemDecoration(2, dpToPx(3), true));
nsvSellerData.setOnScrollChangeListener(new NestedScrollView.OnScrollChangeListener() {
@Override
public void onScrollChange(NestedScrollView v, int scrollX, int scrollY, int oldScrollX, int oldScrollY) {
if (scrollY > 0) //check for scroll down
{
visibleItemCount = mLayoutManager.getChildCount();
totalItemCount = mLayoutManager.getItemCount();
pastVisiblesItems = mLayoutManager.findFirstVisibleItemPosition();
if (loading) {
if ((visibleItemCount + pastVisiblesItems) >= totalItemCount) {
if (setNoItemFound != true) {
loading = false;
page = page + 1;
getSellerInfo(false);
}
}
}
}
}
});
}
public void setReviewData() {
sellerReviewAdapter = new SellerReviewAdapter(this, this);
LinearLayoutManager mLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false);
rvReview.setLayoutManager(mLayoutManager);
rvReview.setAdapter(sellerReviewAdapter);
rvReview.setNestedScrollingEnabled(false);
}
@OnClick(R.id.tvContactSeller)
public void tvContactSellerClick() {
Intent intent = new Intent(this, ContactSellerActivity.class);
intent.putExtra(RequestParamUtils.ID, sellerid);
startActivity(intent);
}
@OnClick(R.id.tvViewAllReview)
public void tvNewUserClick() {
Intent intent = new Intent(SellerInfoActivity.this, SellerReviewActivity.class);
intent.putExtra(RequestParamUtils.sellerInfo, sellerInfo);
startActivity(intent);
}
@Override
public void onItemClick(int position, String value, int outerPos) {
try {
String str = jsonArray.get(position).toString();
JSONObject jsonObject = new JSONObject(str);
JSONObject jsonObjectSeller = new JSONObject(sellerInfo);
JSONObject jsonObjectSeller1 = jsonObjectSeller.getJSONObject(RequestParamUtils.sellerInfo);
jsonObjectSeller1.put(RequestParamUtils.isSeller, true);
jsonObject.put(RequestParamUtils.sellerInfo, jsonObjectSeller1);
CategoryList categoryListRider = new Gson().fromJson(
jsonObject.toString(), new TypeToken<CategoryList>() {
}.getType());
Constant.CATEGORYDETAIL = categoryListRider;
Intent intent = new Intent(this, ProductDetailActivity.class);
startActivity(intent);
} catch (Exception e) {
Log.e("error", e.getMessage());
}
}
@Override
public void onResponse(String response, String methodName) {
if (methodName.equals(RequestParamUtils.seller)) {
dismissProgress();
if (response != null && response.length() > 0) {
try {
JSONObject jsonObject = new JSONObject(response);
if (loading) {
Log.e("if ", "Called");
sellerInfo = response;
SellerData sellerDataRider = new Gson().fromJson(
response, new TypeToken<SellerData>() {
}.getType());
if (sellerDataRider.sellerInfo.bannerUrl != null && sellerDataRider.sellerInfo.bannerUrl.length() > 0) {
ivBannerImage.setVisibility(View.VISIBLE);
String bannerUrl = sellerDataRider.sellerInfo.bannerUrl.replace("\\", "");
Picasso.with(this).load(bannerUrl).error(R.drawable.male).into(ivBannerImage);
} else {
ivBannerImage.setVisibility(View.INVISIBLE);
}
if (sellerDataRider.sellerInfo.avatar != null && sellerDataRider.sellerInfo.avatar.length() > 0) {
civProfileImage.setVisibility(View.VISIBLE);
Picasso.with(this).load(sellerDataRider.sellerInfo.avatar.replace("\\", "")).into(civProfileImage);
} else {
ivBannerImage.setVisibility(View.INVISIBLE);
}
tvName.setText(sellerDataRider.sellerInfo.storeName);
try {
tvRating.setText("" + Float.parseFloat(sellerDataRider.sellerInfo.sellerRating.rating));
}catch (Exception e){
Log.e("this", "onResponse: "+e );
tvRating.setText("0.00");
}
if (sellerDataRider.sellerInfo.storeDescription != null && sellerDataRider.sellerInfo.storeDescription.length() != 0) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
tvStoreDescription.setText(Html.fromHtml(sellerDataRider.sellerInfo.storeDescription, Html.FROM_HTML_MODE_COMPACT));
} else {
tvStoreDescription.setText(Html.fromHtml(sellerDataRider.sellerInfo.storeDescription));
}
tvStoreDescription.setVisibility(View.VISIBLE);
} else {
tvStoreDescription.setVisibility(View.GONE);
}
if (sellerDataRider.sellerInfo.sellerAddress.length() != 0) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
tvSellerAddress.setText(Html.fromHtml(sellerDataRider.sellerInfo.sellerAddress, Html.FROM_HTML_MODE_COMPACT));
} else {
tvSellerAddress.setText(Html.fromHtml(sellerDataRider.sellerInfo.sellerAddress));
}
tvSellerAddress.setVisibility(View.VISIBLE);
} else {
tvSellerAddress.setVisibility(View.GONE);
}
if (sellerDataRider.sellerInfo.contactSeller) {
tvContactSeller.setClickable(true);
tvContactSeller.setVisibility(View.VISIBLE);
} else {
tvContactSeller.setClickable(false);
tvContactSeller.setVisibility(View.GONE);
}
if (sellerDataRider.sellerInfo.reviewList != null && sellerDataRider.sellerInfo.reviewList.size() > 0) {
sellerReviewAdapter.addAll(sellerDataRider.sellerInfo.reviewList);
} else {
llReview.setVisibility(View.GONE);
}
JSONArray jsonArray1 = jsonObject.getJSONArray(RequestParamUtils.products);
if (jsonArray1.length() > 0) {
jsonArray = concatArray(jsonArray, jsonArray1);
new setDataInRecycleview().execute(jsonArray1.toString());
} else {
setNoItemFound = true;
}
} else {
Log.e("else ", "Called");
JSONArray jsonArray1 = jsonObject.getJSONArray(RequestParamUtils.products);
if (jsonArray1.length() > 0) {
jsonArray = concatArray(jsonArray, jsonArray1);
new setDataInRecycleview().execute(jsonArray1.toString());
} else {
setNoItemFound = true;
}
}
} catch (Exception e) {
Log.e(methodName + "Gson Exception is ", e.getMessage());
}
loading = true;
nsvSellerData.setVisibility(View.VISIBLE);
}
}
}
public class setDataInRecycleview extends AsyncTask<String, String, List<CategoryList>> {
@Override
protected List<CategoryList> doInBackground(String... params) {
Log.e("DoInBackground", "Called");
list = new ArrayList<>();
try {
JSONArray array = new JSONArray(params[0]);
for (int i = 0; i < array.length(); i++) {
String jsonResponse = array.get(i).toString();
CategoryList categoryListRider = new Gson().fromJson(
jsonResponse, new TypeToken<CategoryList>() {
}.getType());
list.add(categoryListRider);
}
} catch (JSONException e) {
Log.e("Json Exception is ", e.getMessage());
}
return list;
}
@Override
protected void onPostExecute(List<CategoryList> categoryLists) {
super.onPostExecute(categoryLists);
Log.e("On Post", "Called");
sellerProductAdapter.addAll(categoryLists);
}
}
private JSONArray concatArray(JSONArray arr1, JSONArray arr2)
throws JSONException {
JSONArray result = new JSONArray();
for (int i = 0; i < arr1.length(); i++) {
result.put(arr1.get(i));
}
for (int i = 0; i < arr2.length(); i++) {
result.put(arr2.get(i));
}
return result;
}
}
| [
"mr.ahmed@stop-group.com"
] | mr.ahmed@stop-group.com |
6be010e8d4eb3a65d70029c6ff1a74383bd78f17 | a7a7f0a32ebd007027cb6020cb5a2afc3aa8d62d | /app/src/main/java/com/exampdm/moneybook/db/dao/MoneyTagJoinDAO.java | feb1c83b0fc83cb2a65af4af324b1440de9be900 | [] | no_license | DragoE99/MoneyBookApp | a7f1c05956b51bea221f13f4be3ab123db01b456 | 384ffb0f5f61ce3f9af99545c086bcd1eabb3148 | refs/heads/master | 2020-06-26T00:05:49.788835 | 2019-09-11T14:32:23 | 2019-09-11T14:32:23 | 199,462,306 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,232 | java | package com.exampdm.moneybook.db.dao;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import com.exampdm.moneybook.db.entity.MoneyTagJoin;
import java.util.List;
@Dao
public interface MoneyTagJoinDAO {
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertItemTag(MoneyTagJoin moneyTagJoin);
/*@Insert
void insertAll(List<MoneyTagJoin> itemTags);*/
@Query("DELETE FROM item_tag_join")
void deleteAllItemTags();
@Query("DELETE FROM item_tag_join WHERE itemId= :currentId")
void clearItemTags(long currentId);
@Query("SELECT DISTINCT * FROM item_tag_join WHERE itemId NOT IN(SELECT id FROM money_item)")
List<MoneyTagJoin> getOldItemTags();
@Query("SELECT* FROM ITEM_TAG_JOIN")
LiveData<List<MoneyTagJoin>> getItemsTags();
@Query("SELECT tag FROM item_tag JOIN item_tag_join ON item_tag.tag = item_tag_join.tagId WHERE item_tag_join.itemId = :currentItemId")
List<String> getTagForItem(final long currentItemId);
/*@Query("SELECT * FROM item_tag_join WHERE tagId=:selectedTag")
List<MoneyTagJoin> getItemForTag(String selectedTag);*/
}
| [
"emanuele.drago@outlook.it"
] | emanuele.drago@outlook.it |
69b0d9c3e03bcf996749fa7636933109001a672a | 91626788c398af6c489e5df549052cd32cfdc383 | /src/main/java/com/yzh/emos/wx/EmosWxApiApplication.java | 33677a6376828bac0a9a5ebbaad4dc40abef783f | [] | no_license | yz80325/emos-wx | 6dfd1bf9cf878ea9c0167012ac84972d06fe7537 | 27ca90b4be34148a95ae036b7b4bd5e806ee090f | refs/heads/master | 2023-02-17T04:15:14.323907 | 2021-01-17T03:33:24 | 2021-01-17T03:33:24 | 328,159,204 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 414 | java | package com.yzh.emos.wx;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
@ServletComponentScan
@SpringBootApplication
public class EmosWxApiApplication {
public static void main(String[] args) {
SpringApplication.run(EmosWxApiApplication.class, args);
}
}
| [
"yz202113@163.com"
] | yz202113@163.com |
656ba9f6a23b675336f5a4851540b66479356fcd | adedf18a22dd3ed91d85639a9bf4704a90b30732 | /tutorials/src/main/java/com/tutorial/glsltutorials/tutorials/Portability/BitConverter.java | edb9b489c225b49bb8e045a478671c3aec02691c | [] | no_license | j1s1e1/GlslAndroidExamples | ae7b4a948cebd98c07b008b8d57fbd7181406bb7 | e4b0f5cf8133776742b7167924c4a7dfaab2bdec | refs/heads/master | 2021-01-20T06:59:23.231951 | 2016-09-01T16:38:24 | 2016-09-01T16:38:26 | 23,824,976 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,126 | java | package com.tutorial.glsltutorials.tutorials.Portability;
import android.provider.Settings;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.IntBuffer;
import java.util.ArrayList;
/**
* Created by jamie on 10/26/14.
*/
public class BitConverter {
public static byte[] GetBytes(Integer value)
{
ByteBuffer buffer = ByteBuffer.allocate(4).order(ByteOrder.nativeOrder());
buffer.putInt(value);
return buffer.array();
}
public static byte[] GetBytes(Float value)
{
ByteBuffer buffer = ByteBuffer.allocate(4).order(ByteOrder.nativeOrder());
buffer.putFloat(value);
return buffer.array();
}
public static byte[] GetBytes(Short value)
{
ByteBuffer buffer = ByteBuffer.allocate(4).order(ByteOrder.nativeOrder());
buffer.putShort(value);
return buffer.array();
}
public static ArrayList<Byte> GetByteList(Integer value)
{
ArrayList<Byte> result = new ArrayList<Byte>();
byte[] bytes = GetBytes(value);
for (byte b : bytes)
{
result.add(b);
}
return result;
}
public static ArrayList<Byte> GetByteList(Float value)
{
ArrayList<Byte> result = new ArrayList<Byte>();
byte[] bytes = GetBytes(value);
for (byte b : bytes)
{
result.add(b);
}
return result;
}
public static ArrayList<Byte> GetByteList(Short value)
{
ArrayList<Byte> result = new ArrayList<Byte>();
byte[] bytes = GetBytes(value);
for (byte b : bytes)
{
result.add(b);
}
return result;
}
public static int byteArrayToInt(byte[] b) {
final ByteBuffer bb = ByteBuffer.wrap(b);
bb.order(ByteOrder.LITTLE_ENDIAN);
return bb.getInt();
}
public static byte[] intToByteArray(int i) {
final ByteBuffer bb = ByteBuffer.allocate(Integer.SIZE / Byte.SIZE);
bb.order(ByteOrder.LITTLE_ENDIAN);
bb.putInt(i);
return bb.array();
}
public static ByteBuffer ArrayToBuffer(float[] data)
{
ByteBuffer buffer = ByteBuffer.allocate(4 * data.length).order(ByteOrder.nativeOrder());
for (Float f : data) {
buffer.putFloat(f);
}
return buffer;
}
public static ArrayList<Byte> GetByteListFromFloatList(ArrayList<Float> data)
{
ArrayList<Byte> result = new ArrayList<Byte>();
for (Float f : data)
{
result.addAll(GetByteList(f));
}
return result;
}
public static ArrayList<Byte> GetByteListFromShortList(ArrayList<Short> data)
{
ArrayList<Byte> result = new ArrayList<Byte>();
for (Short s : data)
{
result.addAll(GetByteList(s));
}
return result;
}
public static IntBuffer GetIntBufferFromByteArray(byte[] byteArray)
{
IntBuffer intBuf = ByteBuffer.wrap(byteArray)
.order(ByteOrder.nativeOrder())
.asIntBuffer();
int[] array = new int[intBuf.remaining()];
intBuf.get(array);
return intBuf;
}
public static Integer ToInt32(Byte[] byteArray, int offset)
{
byte[] selectedBytes = new byte[4];
System.arraycopy(byteArray, offset, selectedBytes, 0, 4);
ByteBuffer buffer = ByteBuffer.wrap(selectedBytes);
return buffer.getInt();
}
public static Integer ToInt32(byte[] byteArray, int offset)
{
byte[] selectedBytes = new byte[4];
System.arraycopy(byteArray, offset, selectedBytes, 0, 4);
ByteBuffer buffer = ByteBuffer.wrap(selectedBytes);
buffer.order(ByteOrder.nativeOrder());
return buffer.getInt();
}
public static Float ToSingle(Byte[] byteArray, int offset)
{
byte[] selectedBytes = new byte[4];
System.arraycopy(byteArray, offset, selectedBytes, 0, 4);
ByteBuffer buffer = ByteBuffer.wrap(selectedBytes);
buffer.order(ByteOrder.nativeOrder());
return buffer.getFloat();
}
public static Float ToSingle(byte[] byteArray, int offset)
{
byte[] selectedBytes = new byte[4];
System.arraycopy(byteArray, offset, selectedBytes, 0, 4);
ByteBuffer buffer = ByteBuffer.wrap(selectedBytes);
buffer.order(ByteOrder.nativeOrder());
return buffer.getFloat();
}
public static Short ToInt16(Byte[] byteArray, int offset)
{
byte[] selectedBytes = new byte[2];
System.arraycopy(byteArray, offset, selectedBytes, 0, 2);
ByteBuffer buffer = ByteBuffer.wrap(selectedBytes);
buffer.order(ByteOrder.nativeOrder());
return buffer.getShort();
}
public static Short ToInt16(byte[] byteArray, int offset)
{
byte[] selectedBytes = new byte[2];
System.arraycopy(byteArray, offset, selectedBytes, 0, 2);
ByteBuffer buffer = ByteBuffer.wrap(selectedBytes);
buffer.order(ByteOrder.nativeOrder());
return buffer.getShort();
}
}
| [
"JamesSEdgar@GMail.com"
] | JamesSEdgar@GMail.com |
d4653acc0dadfb6b08b49e944d17cc418f7150d5 | 2eeac066b128f7b408cdc700f9e395bde68069dd | /src/test/java/axInfo/AppTest.java | 586f02cadad8502245bf321378c82fb722675485 | [] | no_license | AaXJW/XujwInfo | a4ad9d765be62edb3498a260096ccf80a085b17c | bd58199142da65af3d65886272c906d707d9378f | refs/heads/master | 2023-08-05T12:09:01.141030 | 2019-07-13T03:47:42 | 2019-07-13T03:47:42 | 195,369,221 | 0 | 0 | null | 2023-07-22T10:05:24 | 2019-07-05T08:17:54 | HTML | UTF-8 | Java | false | false | 672 | java | package axInfo;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}
/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
}
/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
}
}
| [
"ybq00027@ybq00027-PC"
] | ybq00027@ybq00027-PC |
207fb890b8c98fc7afda9cffe5130b384348705c | d96bef4c2cadc6caab4aeedcca3e083468f39c5c | /jayanagadurgabhavani/src/AbstractBank.java | 3d9318a91a342b7e3ebd7b2415b90ec09918dcc7 | [] | no_license | TechieFrogs-Achievers/JavaBasics | a06d46a9b912c587982a52975d61c84722b5b1b1 | 9a5c5653610449dc7265406fb4343079089328e9 | refs/heads/main | 2023-03-20T20:42:30.820354 | 2021-03-12T06:17:19 | 2021-03-12T06:17:19 | 313,300,339 | 4 | 0 | null | null | null | null | UTF-8 | Java | false | false | 722 | java | abstract class SBI
{
abstract void getmethode();//abtract methode
}
class SBIA extends SBI//class extend
{
void getmethode()//methode
{
System.out.println("Bank A deposited in:"+ "$100");
}
}
class SBIB extends SBI//class extend
{
void getmethode()//methode
{
System.out.println("Bank B deposited in:" +"$150");
}
}
class SBIC extends SBI//class extend
{
void getmethode()
{
System.out.println("Bank C deposited in:" +"$200");
}
}
public class AbstractBank
{
public static void main(String[] args)
{
SBI a=new SBIA();
a.getmethode();
SBI b=new SBIB();
b.getmethode();
SBI c=new SBIC();
c.getmethode();
}
} | [
"jayachinna94@email.com"
] | jayachinna94@email.com |
c5f3390be2dbee3be521c23d2d7a2bf0e857fdd0 | d7e05d580c6afe979c4ca80b2021726456512e9c | /java/Vigenere/src/frequencyAnalysis/Main.java | 9900813eeff49812d7ab94dd3f99944747b09b44 | [] | no_license | johnTurbo3/Uni-Security | 7ba4ba71ca2e356384b80b0107b2acaab2d55390 | 56a7a0c8fdee057d2feab1655c3872b914c5db5d | refs/heads/master | 2016-08-04T13:15:00.737804 | 2011-11-10T17:26:45 | 2011-11-10T17:26:45 | 2,750,166 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 966 | java | package frequencyAnalysis;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
public class Main
{
public static void main(String[] args)
{
long start = System.currentTimeMillis();
MyFileReader fr = new MyFileReader();
List<String> sixLetterWords = fr
.get_words("../files/dictionary.txt");
List<String> allWords = fr
.get_all("../files/common-words.txt");
CharGrouper cg = new CharGrouper();
char[] groups = cg.get_groups();
VigenereDecryption vd = new VigenereDecryption(allWords);
vd.decrypt(groups);
Map<String, String> matches = vd.get_matches();
Iterator it = matches.entrySet().iterator();
int i = 1;
while (it.hasNext())
{
Map.Entry pairs = (Map.Entry) it.next();
System.out.println(i + ": " + pairs.getKey() + " = " + pairs.getValue());
i++;
}
long end = System.currentTimeMillis() - start;
System.out.println(end);
}
}
| [
"johnnyturbo3@gmail.com"
] | johnnyturbo3@gmail.com |
a71440c7b7c25932c018a647856b170fc71adebf | 6cd756bf890b53b748d41d14d6c460349a898c99 | /fr-designer-report-8.0/com/fr/design/designer/properties/FRBorderLayoutConstraints.java | c5ff8d55fdf88b5a16efe796b9900cc496db5d88 | [] | no_license | jiangzhenjian/FineReport | 4208b347f3b7fe839fec97cc0cb67bd33d761ba8 | ca34e419b4f117684ecbfafdd6a1178cc94ce5c6 | refs/heads/master | 2021-01-07T20:53:20.460962 | 2017-01-22T03:25:11 | 2017-01-22T03:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,232 | java | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
package com.fr.design.designer.properties;
import com.fr.design.designer.beans.ConstraintsGroupModel;
import com.fr.design.designer.creator.XWBorderLayout;
import com.fr.design.designer.creator.XWidgetCreator;
import com.fr.design.mainframe.widget.editors.*;
import com.fr.form.ui.FreeButton;
import com.fr.form.ui.Widget;
import com.fr.form.ui.container.WBorderLayout;
import com.fr.general.Inter;
import java.awt.Component;
import java.awt.Container;
import java.lang.reflect.Method;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.table.*;
// Referenced classes of package com.fr.design.designer.properties:
// FRBorderLayoutConstraintsRenderer, FRBorderConstraintsEditor
public class FRBorderLayoutConstraints
implements ConstraintsGroupModel
{
private FRBorderLayoutConstraintsRenderer renderer0;
private DefaultTableCellRenderer renderer;
private FRBorderConstraintsEditor editor1;
private PropertyCellEditor editor2;
private PropertyCellEditor editor3;
private Widget widget;
private WBorderLayout layout;
private XWBorderLayout container;
public FRBorderLayoutConstraints(Container container1, Component component)
{
container = (XWBorderLayout)container1;
layout = ((XWBorderLayout)container1).toData();
widget = ((XWidgetCreator)component).toData();
renderer0 = new FRBorderLayoutConstraintsRenderer();
renderer = new DefaultTableCellRenderer();
editor1 = new FRBorderConstraintsEditor(layout.getDirections());
editor2 = new PropertyCellEditor(new StringEditor());
editor3 = new PropertyCellEditor(new IntegerPropertyEditor());
}
public String getGroupName()
{
return Inter.getLocText("Layout_Constraints");
}
public int getRowCount()
{
Object obj = layout.getConstraints(widget);
if(obj == null)
return 0;
else
return "Center".equals(obj) ? 2 : 3;
}
public TableCellRenderer getRenderer(int i)
{
if(i == 0)
return renderer0;
else
return renderer;
}
public TableCellEditor getEditor(int i)
{
switch(i)
{
case 0: // '\0'
return editor1;
case 1: // '\001'
return editor2;
}
return editor3;
}
public Object getValue(int i, int j)
{
if(j == 0)
{
switch(i)
{
case 0: // '\0'
return Inter.getLocText("BorderLayout-Constraints");
case 1: // '\001'
return Inter.getLocText("Title");
}
return getSizeDisplayName();
}
switch(i)
{
case 0: // '\0'
return getChildPositionDisplayName();
case 1: // '\001'
return getChildTitle();
}
return Integer.valueOf(getChildSize());
}
public boolean setValue(Object obj, int i, int j)
{
if(j == 1)
{
switch(i)
{
case 0: // '\0'
return switchWidgets(obj);
case 1: // '\001'
return setChildTitle(obj);
}
return setChildSize(obj);
} else
{
return true;
}
}
public boolean isEditable(int i)
{
if(i == 2)
return !(widget instanceof FreeButton) || !((FreeButton)widget).isCustomStyle();
else
return true;
}
private String getSizeDisplayName()
{
Object obj = layout.getConstraints(widget);
if("North".equals(obj) || "South".equals(obj))
return Inter.getLocText("Tree-Height");
if("West".equals(obj) || "East".equals(obj))
return Inter.getLocText("Tree-Width");
else
return "";
}
private String getChildPositionDisplayName()
{
Object obj = layout.getConstraints(widget);
return obj.toString();
}
private boolean switchWidgets(Object obj)
{
Widget widget1 = layout.getLayoutWidget(obj);
if(widget1 == null)
{
layout.removeWidget(widget);
XWBorderLayout.add(layout, widget, obj);
} else
{
Object obj1 = layout.getConstraints(widget);
layout.removeWidget(widget);
layout.removeWidget(widget1);
XWBorderLayout.add(layout, widget, obj);
XWBorderLayout.add(layout, widget1, obj1);
}
container.convert();
return true;
}
private int getChildSize()
{
Object obj = layout.getConstraints(widget);
try
{
Method method = layout.getClass().getDeclaredMethod((new StringBuilder()).append("get").append(obj).append("Size").toString(), new Class[0]);
Object obj1 = method.invoke(layout, new Object[0]);
if(obj1 instanceof Number)
return ((Number)obj1).intValue();
}
catch(Exception exception)
{
Logger.getLogger(com/fr/design/designer/properties/FRBorderLayoutConstraints.getName()).log(Level.SEVERE, null, exception);
}
return 0;
}
private boolean setChildSize(Object obj)
{
int i = 0;
if(obj != null)
i = ((Number)obj).intValue();
Object obj1 = layout.getConstraints(widget);
try
{
Method method = layout.getClass().getDeclaredMethod((new StringBuilder()).append("set").append(obj1).append("Size").toString(), new Class[] {
Integer.TYPE
});
method.invoke(layout, new Object[] {
Integer.valueOf(i)
});
container.recalculateChildrenPreferredSize();
}
catch(Exception exception)
{
return false;
}
return true;
}
private String getChildTitle()
{
Object obj = layout.getConstraints(widget);
try
{
Method method = layout.getClass().getDeclaredMethod((new StringBuilder()).append("get").append(obj).append("Title").toString(), new Class[0]);
return (String)method.invoke(layout, new Object[0]);
}
catch(Exception exception)
{
Logger.getLogger(com/fr/design/designer/properties/FRBorderLayoutConstraints.getName()).log(Level.SEVERE, null, exception);
}
return "";
}
private boolean setChildTitle(Object obj)
{
Object obj1 = layout.getConstraints(widget);
try
{
Method method = layout.getClass().getDeclaredMethod((new StringBuilder()).append("set").append(obj1).append("Title").toString(), new Class[] {
java/lang/String
});
method.invoke(layout, new Object[] {
obj
});
}
catch(Exception exception)
{
return false;
}
return true;
}
}
| [
"hao01@hao"
] | hao01@hao |
255cdb4def8920f43d0f6d41a5434be46820893c | 0ad51dde288a43c8c2216de5aedcd228e93590ac | /src/com/vmware/converter/VirtualE1000EOption.java | 55e4f34a485bca851766c8f81f4b3653e5307297 | [] | no_license | YujiEda/converter-sdk-java | 61c37b2642f3a9305f2d3d5851c788b1f3c2a65f | bcd6e09d019d38b168a9daa1471c8e966222753d | refs/heads/master | 2020-04-03T09:33:38.339152 | 2019-02-11T15:19:04 | 2019-02-11T15:19:04 | 155,151,917 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,897 | java | /**
* VirtualE1000EOption.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.vmware.converter;
public class VirtualE1000EOption extends com.vmware.converter.VirtualEthernetCardOption implements java.io.Serializable {
public VirtualE1000EOption() {
}
public VirtualE1000EOption(
java.lang.String type,
com.vmware.converter.VirtualDeviceConnectOption connectOption,
com.vmware.converter.VirtualDeviceBusSlotOption busSlotOption,
java.lang.String controllerType,
com.vmware.converter.BoolOption autoAssignController,
com.vmware.converter.VirtualDeviceBackingOption[] backingOption,
java.lang.Integer defaultBackingOptionIndex,
java.lang.String[] licensingLimit,
boolean deprecated,
boolean plugAndPlay,
java.lang.Boolean hotRemoveSupported,
com.vmware.converter.ChoiceOption supportedOUI,
com.vmware.converter.ChoiceOption macType,
com.vmware.converter.BoolOption wakeOnLanEnabled,
java.lang.Boolean vmDirectPathGen2Supported,
com.vmware.converter.BoolOption uptCompatibilityEnabled) {
super(
type,
connectOption,
busSlotOption,
controllerType,
autoAssignController,
backingOption,
defaultBackingOptionIndex,
licensingLimit,
deprecated,
plugAndPlay,
hotRemoveSupported,
supportedOUI,
macType,
wakeOnLanEnabled,
vmDirectPathGen2Supported,
uptCompatibilityEnabled);
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof VirtualE1000EOption)) return false;
VirtualE1000EOption other = (VirtualE1000EOption) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj);
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(VirtualE1000EOption.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:vim25", "VirtualE1000eOption"));
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
| [
"yuji_eda@dwango.co.jp"
] | yuji_eda@dwango.co.jp |
aed745ff6de47e88cd66072c095ed5e2516011be | 9fd91b75d01378286155556bd51deed5bcbd94f9 | /Excercises/src/utils/Messwert.java | 85d6e3540fdfb7b48f359913eed2a9091c30825a | [] | no_license | Ebbele/AE_Kurs | fa77623b2694c22b29ca5a61cfbe2cd8549a3f14 | ae7d6f4276afb83b05204afb2970ecfc6d1276ea | refs/heads/master | 2020-12-30T13:19:52.386747 | 2017-07-17T09:12:13 | 2017-07-17T09:12:13 | 91,343,486 | 0 | 0 | null | 2017-05-15T13:52:18 | 2017-05-15T13:52:17 | null | UTF-8 | Java | false | false | 841 | java | package utils;
import java.util.Random;
public class Messwert {
private int messNummer;
private int messReihe;
private int messwert;
Random rd = new Random( );
Messwert( int messNummer, int messReihe ) {
setMessNummer(messNummer);
setMessReihe(messReihe);
this.messwert = erzeugeZufallszahl( );
}
public int getMessNummer( ) {
return this.messNummer;
}
private void setMessNummer( int messNummer ) {
this.messNummer = messNummer;
}
public int getMessReihe( ) {
return this.messReihe;
}
private void setMessReihe( int messReihe ) {
this.messReihe = messReihe;
}
public int getMesswert( ) {
return messwert;
}
private int erzeugeZufallszahl( ) {
int zufallszahl = rd.nextInt( 16 ) + 20;
return zufallszahl;
}
}
| [
"Benjamin.Kerkes@web.de"
] | Benjamin.Kerkes@web.de |
9b32fe0025263dd0f012ccd96f245d8e7452886c | 9b5ac55848fdbac42234a85c2a9ed419bd714626 | /Externalsort.java | 8716a74751e29fc676707beb123918d5a7b0a610 | [] | no_license | despinoza17/ExternalSorting | b28c5261cd8b00936f71cabc71ef43efcc8e4000 | 113f264e00a2a056edeb2d6bc2b6772b73f5f592 | refs/heads/master | 2022-06-12T06:46:25.106150 | 2020-05-03T18:10:56 | 2020-05-03T18:10:56 | 258,624,192 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 660 | java | import java.io.File;
import java.io.IOException;
/**
* Externalsort class executes the program
*
* @author despi17
* @author oli1230
* @version 4.27.2020
*
*/
public class Externalsort {
/**
* Externalsort main method
* @param args Command line arguments
* @throws IOException
*/
public static void main(String[] args) throws IOException
{
ReplacementSelection ext = new ReplacementSelection(new File(args[0]));
ext.replacementSort();
MergeSort merge = new MergeSort(RunManager.getRunManager(args[0]));
merge.merge();
Parser.printFirstRecordOfEachBlock(args[0]);
}
}
| [
"despi17@vt.edu"
] | despi17@vt.edu |
37396cf471aa87824dcc48f7d501707747efe468 | d828b2deceddff2bd406debe7a3fcfc556c27c55 | /gpconnect-database/src/main/java/uk/gov/hscic/patient/structuredAllergyIntolerance/StructuredAllergyRepository.java | 80b970f635ab9b35d2f102ef71786bad5d76f1be | [
"Apache-2.0"
] | permissive | nhsconnect/gpconnect-demonstrator | 3184e9c531fccea09a2dabf587563972d0d4e654 | 8bf36cad8f2f1289d688631bec6f1d8b0fd18b8c | refs/heads/master | 2022-12-12T12:21:40.726152 | 2021-04-29T13:42:17 | 2021-04-29T13:42:17 | 57,110,085 | 11 | 8 | Apache-2.0 | 2021-11-15T14:45:02 | 2016-04-26T08:10:29 | Java | UTF-8 | Java | false | false | 337 | java | package uk.gov.hscic.patient.structuredAllergyIntolerance;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
public interface StructuredAllergyRepository extends JpaRepository<StructuredAllergyIntoleranceEntity, Long> {
List<StructuredAllergyIntoleranceEntity> findByNhsNumber(String patientId);
}
| [
"christopher.jobling@answerdigital.com"
] | christopher.jobling@answerdigital.com |
e57dfbfa037c8b0e9d00ed667968c3cd8a2526ea | 8e022d90d65acb401f2dff195b3d3a0a806472d1 | /app/build/generated/source/r/debug/android/support/design/R.java | 96bd49bb6df5f89be97e5ea38049657280cd113a | [] | no_license | HelpPal/Android-Driver-App | b0e924b647d606c9c7ee94d2b752ff428aa0c311 | a92466dfee41b16196609afea6cce58112fc51af | refs/heads/master | 2020-03-24T07:57:32.886847 | 2018-09-15T08:33:03 | 2018-09-15T08:33:03 | 142,580,738 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 118,512 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package android.support.design;
public final class R {
public static final class anim {
public static final int abc_fade_in = 0x7f050000;
public static final int abc_fade_out = 0x7f050001;
public static final int abc_grow_fade_in_from_bottom = 0x7f050002;
public static final int abc_popup_enter = 0x7f050003;
public static final int abc_popup_exit = 0x7f050004;
public static final int abc_shrink_fade_out_from_bottom = 0x7f050005;
public static final int abc_slide_in_bottom = 0x7f050006;
public static final int abc_slide_in_top = 0x7f050007;
public static final int abc_slide_out_bottom = 0x7f050008;
public static final int abc_slide_out_top = 0x7f050009;
public static final int design_appbar_state_list_animator = 0x7f05000d;
public static final int design_bottom_sheet_slide_in = 0x7f05000e;
public static final int design_bottom_sheet_slide_out = 0x7f05000f;
public static final int design_fab_in = 0x7f050010;
public static final int design_fab_out = 0x7f050011;
public static final int design_snackbar_in = 0x7f050012;
public static final int design_snackbar_out = 0x7f050013;
}
public static final class attr {
public static final int actionBarDivider = 0x7f010062;
public static final int actionBarItemBackground = 0x7f010063;
public static final int actionBarPopupTheme = 0x7f01005c;
public static final int actionBarSize = 0x7f010061;
public static final int actionBarSplitStyle = 0x7f01005e;
public static final int actionBarStyle = 0x7f01005d;
public static final int actionBarTabBarStyle = 0x7f010058;
public static final int actionBarTabStyle = 0x7f010057;
public static final int actionBarTabTextStyle = 0x7f010059;
public static final int actionBarTheme = 0x7f01005f;
public static final int actionBarWidgetTheme = 0x7f010060;
public static final int actionButtonStyle = 0x7f01007d;
public static final int actionDropDownStyle = 0x7f010079;
public static final int actionLayout = 0x7f010158;
public static final int actionMenuTextAppearance = 0x7f010064;
public static final int actionMenuTextColor = 0x7f010065;
public static final int actionModeBackground = 0x7f010068;
public static final int actionModeCloseButtonStyle = 0x7f010067;
public static final int actionModeCloseDrawable = 0x7f01006a;
public static final int actionModeCopyDrawable = 0x7f01006c;
public static final int actionModeCutDrawable = 0x7f01006b;
public static final int actionModeFindDrawable = 0x7f010070;
public static final int actionModePasteDrawable = 0x7f01006d;
public static final int actionModePopupWindowStyle = 0x7f010072;
public static final int actionModeSelectAllDrawable = 0x7f01006e;
public static final int actionModeShareDrawable = 0x7f01006f;
public static final int actionModeSplitBackground = 0x7f010069;
public static final int actionModeStyle = 0x7f010066;
public static final int actionModeWebSearchDrawable = 0x7f010071;
public static final int actionOverflowButtonStyle = 0x7f01005a;
public static final int actionOverflowMenuStyle = 0x7f01005b;
public static final int actionProviderClass = 0x7f01015a;
public static final int actionViewClass = 0x7f010159;
public static final int activityChooserViewStyle = 0x7f010085;
public static final int alertDialogButtonGroupStyle = 0x7f0100a9;
public static final int alertDialogCenterButtons = 0x7f0100aa;
public static final int alertDialogStyle = 0x7f0100a8;
public static final int alertDialogTheme = 0x7f0100ab;
public static final int allowStacking = 0x7f0100ce;
public static final int alpha = 0x7f0100e8;
public static final int arrowHeadLength = 0x7f010129;
public static final int arrowShaftLength = 0x7f01012a;
public static final int autoCompleteTextViewStyle = 0x7f0100b0;
public static final int background = 0x7f010029;
public static final int backgroundSplit = 0x7f01002b;
public static final int backgroundStacked = 0x7f01002a;
public static final int backgroundTint = 0x7f0101ce;
public static final int backgroundTintMode = 0x7f0101cf;
public static final int barLength = 0x7f01012b;
public static final int behavior_autoHide = 0x7f010132;
public static final int behavior_hideable = 0x7f0100cc;
public static final int behavior_overlapTop = 0x7f01016e;
public static final int behavior_peekHeight = 0x7f0100cb;
public static final int behavior_skipCollapsed = 0x7f0100cd;
public static final int borderWidth = 0x7f010130;
public static final int borderlessButtonStyle = 0x7f010082;
public static final int bottomSheetDialogTheme = 0x7f010114;
public static final int bottomSheetStyle = 0x7f010115;
public static final int buttonBarButtonStyle = 0x7f01007f;
public static final int buttonBarNegativeButtonStyle = 0x7f0100ae;
public static final int buttonBarNeutralButtonStyle = 0x7f0100af;
public static final int buttonBarPositiveButtonStyle = 0x7f0100ad;
public static final int buttonBarStyle = 0x7f01007e;
public static final int buttonGravity = 0x7f0101c3;
public static final int buttonPanelSideLayout = 0x7f01003e;
public static final int buttonStyle = 0x7f0100b1;
public static final int buttonStyleSmall = 0x7f0100b2;
public static final int buttonTint = 0x7f0100e9;
public static final int buttonTintMode = 0x7f0100ea;
public static final int checkboxStyle = 0x7f0100b3;
public static final int checkedTextViewStyle = 0x7f0100b4;
public static final int closeIcon = 0x7f010173;
public static final int closeItemLayout = 0x7f01003b;
public static final int collapseContentDescription = 0x7f0101c5;
public static final int collapseIcon = 0x7f0101c4;
public static final int collapsedTitleGravity = 0x7f0100e3;
public static final int collapsedTitleTextAppearance = 0x7f0100dd;
public static final int color = 0x7f010125;
public static final int colorAccent = 0x7f0100a0;
public static final int colorBackgroundFloating = 0x7f0100a7;
public static final int colorButtonNormal = 0x7f0100a4;
public static final int colorControlActivated = 0x7f0100a2;
public static final int colorControlHighlight = 0x7f0100a3;
public static final int colorControlNormal = 0x7f0100a1;
public static final int colorPrimary = 0x7f01009e;
public static final int colorPrimaryDark = 0x7f01009f;
public static final int colorSwitchThumbNormal = 0x7f0100a5;
public static final int commitIcon = 0x7f010178;
public static final int contentInsetEnd = 0x7f010034;
public static final int contentInsetEndWithActions = 0x7f010038;
public static final int contentInsetLeft = 0x7f010035;
public static final int contentInsetRight = 0x7f010036;
public static final int contentInsetStart = 0x7f010033;
public static final int contentInsetStartWithNavigation = 0x7f010037;
public static final int contentScrim = 0x7f0100de;
public static final int controlBackground = 0x7f0100a6;
public static final int counterEnabled = 0x7f0101ad;
public static final int counterMaxLength = 0x7f0101ae;
public static final int counterOverflowTextAppearance = 0x7f0101b0;
public static final int counterTextAppearance = 0x7f0101af;
public static final int customNavigationLayout = 0x7f01002c;
public static final int defaultQueryHint = 0x7f010172;
public static final int dialogPreferredPadding = 0x7f010077;
public static final int dialogTheme = 0x7f010076;
public static final int displayOptions = 0x7f010022;
public static final int divider = 0x7f010028;
public static final int dividerHorizontal = 0x7f010084;
public static final int dividerPadding = 0x7f010136;
public static final int dividerVertical = 0x7f010083;
public static final int drawableSize = 0x7f010127;
public static final int drawerArrowStyle = 0x7f010000;
public static final int dropDownListViewStyle = 0x7f010096;
public static final int dropdownListPreferredItemHeight = 0x7f01007a;
public static final int editTextBackground = 0x7f01008b;
public static final int editTextColor = 0x7f01008a;
public static final int editTextStyle = 0x7f0100b5;
public static final int elevation = 0x7f010039;
public static final int errorEnabled = 0x7f0101ab;
public static final int errorTextAppearance = 0x7f0101ac;
public static final int expandActivityOverflowButtonDrawable = 0x7f01003d;
public static final int expanded = 0x7f010043;
public static final int expandedTitleGravity = 0x7f0100e4;
public static final int expandedTitleMargin = 0x7f0100d7;
public static final int expandedTitleMarginBottom = 0x7f0100db;
public static final int expandedTitleMarginEnd = 0x7f0100da;
public static final int expandedTitleMarginStart = 0x7f0100d8;
public static final int expandedTitleMarginTop = 0x7f0100d9;
public static final int expandedTitleTextAppearance = 0x7f0100dc;
public static final int fabSize = 0x7f01012e;
public static final int foregroundInsidePadding = 0x7f010133;
public static final int gapBetweenBars = 0x7f010128;
public static final int goIcon = 0x7f010174;
public static final int headerLayout = 0x7f010162;
public static final int height = 0x7f010001;
public static final int hideOnContentScroll = 0x7f010032;
public static final int hintAnimationEnabled = 0x7f0101b1;
public static final int hintEnabled = 0x7f0101aa;
public static final int hintTextAppearance = 0x7f0101a9;
public static final int homeAsUpIndicator = 0x7f01007c;
public static final int homeLayout = 0x7f01002d;
public static final int icon = 0x7f010026;
public static final int iconifiedByDefault = 0x7f010170;
public static final int imageButtonStyle = 0x7f01008c;
public static final int indeterminateProgressStyle = 0x7f01002f;
public static final int initialActivityCount = 0x7f01003c;
public static final int insetForeground = 0x7f01016d;
public static final int isLightTheme = 0x7f010002;
public static final int itemBackground = 0x7f010160;
public static final int itemIconTint = 0x7f01015e;
public static final int itemPadding = 0x7f010031;
public static final int itemTextAppearance = 0x7f010161;
public static final int itemTextColor = 0x7f01015f;
public static final int keylines = 0x7f01010b;
public static final int layout = 0x7f01016f;
public static final int layoutManager = 0x7f010165;
public static final int layout_anchor = 0x7f01010e;
public static final int layout_anchorGravity = 0x7f010110;
public static final int layout_behavior = 0x7f01010d;
public static final int layout_collapseMode = 0x7f0100e6;
public static final int layout_collapseParallaxMultiplier = 0x7f0100e7;
public static final int layout_dodgeInsetEdges = 0x7f010112;
public static final int layout_insetEdge = 0x7f010111;
public static final int layout_keyline = 0x7f01010f;
public static final int layout_scrollFlags = 0x7f010046;
public static final int layout_scrollInterpolator = 0x7f010047;
public static final int listChoiceBackgroundIndicator = 0x7f01009d;
public static final int listDividerAlertDialog = 0x7f010078;
public static final int listItemLayout = 0x7f010042;
public static final int listLayout = 0x7f01003f;
public static final int listMenuViewStyle = 0x7f0100bd;
public static final int listPopupWindowStyle = 0x7f010097;
public static final int listPreferredItemHeight = 0x7f010091;
public static final int listPreferredItemHeightLarge = 0x7f010093;
public static final int listPreferredItemHeightSmall = 0x7f010092;
public static final int listPreferredItemPaddingLeft = 0x7f010094;
public static final int listPreferredItemPaddingRight = 0x7f010095;
public static final int logo = 0x7f010027;
public static final int logoDescription = 0x7f0101c8;
public static final int maxActionInlineWidth = 0x7f01018d;
public static final int maxButtonHeight = 0x7f0101c2;
public static final int measureWithLargestChild = 0x7f010134;
public static final int menu = 0x7f01015d;
public static final int multiChoiceItemLayout = 0x7f010040;
public static final int navigationContentDescription = 0x7f0101c7;
public static final int navigationIcon = 0x7f0101c6;
public static final int navigationMode = 0x7f010021;
public static final int overlapAnchor = 0x7f010163;
public static final int paddingEnd = 0x7f0101cc;
public static final int paddingStart = 0x7f0101cb;
public static final int panelBackground = 0x7f01009a;
public static final int panelMenuListTheme = 0x7f01009c;
public static final int panelMenuListWidth = 0x7f01009b;
public static final int passwordToggleContentDescription = 0x7f0101b4;
public static final int passwordToggleDrawable = 0x7f0101b3;
public static final int passwordToggleEnabled = 0x7f0101b2;
public static final int passwordToggleTint = 0x7f0101b5;
public static final int passwordToggleTintMode = 0x7f0101b6;
public static final int popupMenuStyle = 0x7f010088;
public static final int popupTheme = 0x7f01003a;
public static final int popupWindowStyle = 0x7f010089;
public static final int preserveIconSpacing = 0x7f01015b;
public static final int pressedTranslationZ = 0x7f01012f;
public static final int progressBarPadding = 0x7f010030;
public static final int progressBarStyle = 0x7f01002e;
public static final int queryBackground = 0x7f01017a;
public static final int queryHint = 0x7f010171;
public static final int radioButtonStyle = 0x7f0100b6;
public static final int ratingBarStyle = 0x7f0100b7;
public static final int ratingBarStyleIndicator = 0x7f0100b8;
public static final int ratingBarStyleSmall = 0x7f0100b9;
public static final int reverseLayout = 0x7f010167;
public static final int rippleColor = 0x7f01012d;
public static final int scrimAnimationDuration = 0x7f0100e2;
public static final int scrimVisibleHeightTrigger = 0x7f0100e1;
public static final int searchHintIcon = 0x7f010176;
public static final int searchIcon = 0x7f010175;
public static final int searchViewStyle = 0x7f010090;
public static final int seekBarStyle = 0x7f0100ba;
public static final int selectableItemBackground = 0x7f010080;
public static final int selectableItemBackgroundBorderless = 0x7f010081;
public static final int showAsAction = 0x7f010157;
public static final int showDividers = 0x7f010135;
public static final int showText = 0x7f010198;
public static final int singleChoiceItemLayout = 0x7f010041;
public static final int spanCount = 0x7f010166;
public static final int spinBars = 0x7f010126;
public static final int spinnerDropDownItemStyle = 0x7f01007b;
public static final int spinnerStyle = 0x7f0100bb;
public static final int splitTrack = 0x7f010197;
public static final int srcCompat = 0x7f010048;
public static final int stackFromEnd = 0x7f010168;
public static final int state_above_anchor = 0x7f010164;
public static final int state_collapsed = 0x7f010044;
public static final int state_collapsible = 0x7f010045;
public static final int statusBarBackground = 0x7f01010c;
public static final int statusBarScrim = 0x7f0100df;
public static final int subMenuArrow = 0x7f01015c;
public static final int submitBackground = 0x7f01017b;
public static final int subtitle = 0x7f010023;
public static final int subtitleTextAppearance = 0x7f0101bb;
public static final int subtitleTextColor = 0x7f0101ca;
public static final int subtitleTextStyle = 0x7f010025;
public static final int suggestionRowLayout = 0x7f010179;
public static final int switchMinWidth = 0x7f010195;
public static final int switchPadding = 0x7f010196;
public static final int switchStyle = 0x7f0100bc;
public static final int switchTextAppearance = 0x7f010194;
public static final int tabBackground = 0x7f01019c;
public static final int tabContentStart = 0x7f01019b;
public static final int tabGravity = 0x7f01019e;
public static final int tabIndicatorColor = 0x7f010199;
public static final int tabIndicatorHeight = 0x7f01019a;
public static final int tabMaxWidth = 0x7f0101a0;
public static final int tabMinWidth = 0x7f01019f;
public static final int tabMode = 0x7f01019d;
public static final int tabPadding = 0x7f0101a8;
public static final int tabPaddingBottom = 0x7f0101a7;
public static final int tabPaddingEnd = 0x7f0101a6;
public static final int tabPaddingStart = 0x7f0101a4;
public static final int tabPaddingTop = 0x7f0101a5;
public static final int tabSelectedTextColor = 0x7f0101a3;
public static final int tabTextAppearance = 0x7f0101a1;
public static final int tabTextColor = 0x7f0101a2;
public static final int textAllCaps = 0x7f01004c;
public static final int textAppearanceLargePopupMenu = 0x7f010073;
public static final int textAppearanceListItem = 0x7f010098;
public static final int textAppearanceListItemSmall = 0x7f010099;
public static final int textAppearancePopupMenuHeader = 0x7f010075;
public static final int textAppearanceSearchResultSubtitle = 0x7f01008e;
public static final int textAppearanceSearchResultTitle = 0x7f01008d;
public static final int textAppearanceSmallPopupMenu = 0x7f010074;
public static final int textColorAlertDialogListItem = 0x7f0100ac;
public static final int textColorError = 0x7f010116;
public static final int textColorSearchUrl = 0x7f01008f;
public static final int theme = 0x7f0101cd;
public static final int thickness = 0x7f01012c;
public static final int thumbTextPadding = 0x7f010193;
public static final int thumbTint = 0x7f01018e;
public static final int thumbTintMode = 0x7f01018f;
public static final int tickMark = 0x7f010049;
public static final int tickMarkTint = 0x7f01004a;
public static final int tickMarkTintMode = 0x7f01004b;
public static final int title = 0x7f010020;
public static final int titleEnabled = 0x7f0100e5;
public static final int titleMargin = 0x7f0101bc;
public static final int titleMarginBottom = 0x7f0101c0;
public static final int titleMarginEnd = 0x7f0101be;
public static final int titleMarginStart = 0x7f0101bd;
public static final int titleMarginTop = 0x7f0101bf;
public static final int titleMargins = 0x7f0101c1;
public static final int titleTextAppearance = 0x7f0101ba;
public static final int titleTextColor = 0x7f0101c9;
public static final int titleTextStyle = 0x7f010024;
public static final int toolbarId = 0x7f0100e0;
public static final int toolbarNavigationButtonStyle = 0x7f010087;
public static final int toolbarStyle = 0x7f010086;
public static final int track = 0x7f010190;
public static final int trackTint = 0x7f010191;
public static final int trackTintMode = 0x7f010192;
public static final int useCompatPadding = 0x7f010131;
public static final int voiceIcon = 0x7f010177;
public static final int windowActionBar = 0x7f01004d;
public static final int windowActionBarOverlay = 0x7f01004f;
public static final int windowActionModeOverlay = 0x7f010050;
public static final int windowFixedHeightMajor = 0x7f010054;
public static final int windowFixedHeightMinor = 0x7f010052;
public static final int windowFixedWidthMajor = 0x7f010051;
public static final int windowFixedWidthMinor = 0x7f010053;
public static final int windowMinWidthMajor = 0x7f010055;
public static final int windowMinWidthMinor = 0x7f010056;
public static final int windowNoTitle = 0x7f01004e;
}
public static final class bool {
public static final int abc_action_bar_embed_tabs = 0x7f0a0000;
public static final int abc_allow_stacked_button_bar = 0x7f0a0002;
public static final int abc_config_actionMenuItemAllCaps = 0x7f0a0003;
public static final int abc_config_closeDialogWhenTouchOutside = 0x7f0a0004;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent = 0x7f0a0005;
}
public static final class color {
public static final int abc_background_cache_hint_selector_material_dark = 0x7f0d009c;
public static final int abc_background_cache_hint_selector_material_light = 0x7f0d009d;
public static final int abc_btn_colored_borderless_text_material = 0x7f0d009e;
public static final int abc_color_highlight_material = 0x7f0d009f;
public static final int abc_input_method_navigation_guard = 0x7f0d0000;
public static final int abc_primary_text_disable_only_material_dark = 0x7f0d00a0;
public static final int abc_primary_text_disable_only_material_light = 0x7f0d00a1;
public static final int abc_primary_text_material_dark = 0x7f0d00a2;
public static final int abc_primary_text_material_light = 0x7f0d00a3;
public static final int abc_search_url_text = 0x7f0d00a4;
public static final int abc_search_url_text_normal = 0x7f0d0001;
public static final int abc_search_url_text_pressed = 0x7f0d0002;
public static final int abc_search_url_text_selected = 0x7f0d0003;
public static final int abc_secondary_text_material_dark = 0x7f0d00a5;
public static final int abc_secondary_text_material_light = 0x7f0d00a6;
public static final int abc_tint_btn_checkable = 0x7f0d00a7;
public static final int abc_tint_default = 0x7f0d00a8;
public static final int abc_tint_edittext = 0x7f0d00a9;
public static final int abc_tint_seek_thumb = 0x7f0d00aa;
public static final int abc_tint_spinner = 0x7f0d00ab;
public static final int abc_tint_switch_thumb = 0x7f0d00ac;
public static final int abc_tint_switch_track = 0x7f0d00ad;
public static final int accent_material_dark = 0x7f0d0004;
public static final int accent_material_light = 0x7f0d0005;
public static final int background_floating_material_dark = 0x7f0d0006;
public static final int background_floating_material_light = 0x7f0d0007;
public static final int background_material_dark = 0x7f0d0008;
public static final int background_material_light = 0x7f0d0009;
public static final int bright_foreground_disabled_material_dark = 0x7f0d0011;
public static final int bright_foreground_disabled_material_light = 0x7f0d0012;
public static final int bright_foreground_inverse_material_dark = 0x7f0d0013;
public static final int bright_foreground_inverse_material_light = 0x7f0d0014;
public static final int bright_foreground_material_dark = 0x7f0d0015;
public static final int bright_foreground_material_light = 0x7f0d0016;
public static final int button_material_dark = 0x7f0d0017;
public static final int button_material_light = 0x7f0d0018;
public static final int design_error = 0x7f0d00b2;
public static final int design_fab_shadow_end_color = 0x7f0d0031;
public static final int design_fab_shadow_mid_color = 0x7f0d0032;
public static final int design_fab_shadow_start_color = 0x7f0d0033;
public static final int design_fab_stroke_end_inner_color = 0x7f0d0034;
public static final int design_fab_stroke_end_outer_color = 0x7f0d0035;
public static final int design_fab_stroke_top_inner_color = 0x7f0d0036;
public static final int design_fab_stroke_top_outer_color = 0x7f0d0037;
public static final int design_snackbar_background_color = 0x7f0d0038;
public static final int design_textinput_error_color_dark = 0x7f0d0039;
public static final int design_textinput_error_color_light = 0x7f0d003a;
public static final int design_tint_password_toggle = 0x7f0d00b3;
public static final int dim_foreground_disabled_material_dark = 0x7f0d003d;
public static final int dim_foreground_disabled_material_light = 0x7f0d003e;
public static final int dim_foreground_material_dark = 0x7f0d003f;
public static final int dim_foreground_material_light = 0x7f0d0040;
public static final int foreground_material_dark = 0x7f0d0041;
public static final int foreground_material_light = 0x7f0d0042;
public static final int highlighted_text_material_dark = 0x7f0d0043;
public static final int highlighted_text_material_light = 0x7f0d0044;
public static final int hint_foreground_material_dark = 0x7f0d0045;
public static final int hint_foreground_material_light = 0x7f0d0046;
public static final int material_blue_grey_800 = 0x7f0d0047;
public static final int material_blue_grey_900 = 0x7f0d0048;
public static final int material_blue_grey_950 = 0x7f0d0049;
public static final int material_deep_teal_200 = 0x7f0d004a;
public static final int material_deep_teal_500 = 0x7f0d004b;
public static final int material_grey_100 = 0x7f0d004c;
public static final int material_grey_300 = 0x7f0d004d;
public static final int material_grey_50 = 0x7f0d004e;
public static final int material_grey_600 = 0x7f0d004f;
public static final int material_grey_800 = 0x7f0d0050;
public static final int material_grey_850 = 0x7f0d0051;
public static final int material_grey_900 = 0x7f0d0052;
public static final int primary_dark_material_dark = 0x7f0d0083;
public static final int primary_dark_material_light = 0x7f0d0084;
public static final int primary_material_dark = 0x7f0d0085;
public static final int primary_material_light = 0x7f0d0086;
public static final int primary_text_default_material_dark = 0x7f0d0087;
public static final int primary_text_default_material_light = 0x7f0d0088;
public static final int primary_text_disabled_material_dark = 0x7f0d0089;
public static final int primary_text_disabled_material_light = 0x7f0d008a;
public static final int ripple_material_dark = 0x7f0d008b;
public static final int ripple_material_light = 0x7f0d008c;
public static final int secondary_text_default_material_dark = 0x7f0d008d;
public static final int secondary_text_default_material_light = 0x7f0d008e;
public static final int secondary_text_disabled_material_dark = 0x7f0d008f;
public static final int secondary_text_disabled_material_light = 0x7f0d0090;
public static final int switch_thumb_disabled_material_dark = 0x7f0d0096;
public static final int switch_thumb_disabled_material_light = 0x7f0d0097;
public static final int switch_thumb_material_dark = 0x7f0d00b8;
public static final int switch_thumb_material_light = 0x7f0d00b9;
public static final int switch_thumb_normal_material_dark = 0x7f0d0098;
public static final int switch_thumb_normal_material_light = 0x7f0d0099;
}
public static final class dimen {
public static final int abc_action_bar_content_inset_material = 0x7f08001e;
public static final int abc_action_bar_content_inset_with_nav = 0x7f08001f;
public static final int abc_action_bar_default_height_material = 0x7f080003;
public static final int abc_action_bar_default_padding_end_material = 0x7f080020;
public static final int abc_action_bar_default_padding_start_material = 0x7f080021;
public static final int abc_action_bar_elevation_material = 0x7f08003d;
public static final int abc_action_bar_icon_vertical_padding_material = 0x7f08003e;
public static final int abc_action_bar_overflow_padding_end_material = 0x7f08003f;
public static final int abc_action_bar_overflow_padding_start_material = 0x7f080040;
public static final int abc_action_bar_progress_bar_size = 0x7f080004;
public static final int abc_action_bar_stacked_max_height = 0x7f080041;
public static final int abc_action_bar_stacked_tab_max_width = 0x7f080042;
public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f080043;
public static final int abc_action_bar_subtitle_top_margin_material = 0x7f080044;
public static final int abc_action_button_min_height_material = 0x7f080045;
public static final int abc_action_button_min_width_material = 0x7f080046;
public static final int abc_action_button_min_width_overflow_material = 0x7f080047;
public static final int abc_alert_dialog_button_bar_height = 0x7f080002;
public static final int abc_button_inset_horizontal_material = 0x7f080048;
public static final int abc_button_inset_vertical_material = 0x7f080049;
public static final int abc_button_padding_horizontal_material = 0x7f08004a;
public static final int abc_button_padding_vertical_material = 0x7f08004b;
public static final int abc_cascading_menus_min_smallest_width = 0x7f08004c;
public static final int abc_config_prefDialogWidth = 0x7f08000e;
public static final int abc_control_corner_material = 0x7f08004d;
public static final int abc_control_inset_material = 0x7f08004e;
public static final int abc_control_padding_material = 0x7f08004f;
public static final int abc_dialog_fixed_height_major = 0x7f08000f;
public static final int abc_dialog_fixed_height_minor = 0x7f080010;
public static final int abc_dialog_fixed_width_major = 0x7f080011;
public static final int abc_dialog_fixed_width_minor = 0x7f080012;
public static final int abc_dialog_list_padding_vertical_material = 0x7f080050;
public static final int abc_dialog_min_width_major = 0x7f080013;
public static final int abc_dialog_min_width_minor = 0x7f080014;
public static final int abc_dialog_padding_material = 0x7f080051;
public static final int abc_dialog_padding_top_material = 0x7f080052;
public static final int abc_disabled_alpha_material_dark = 0x7f080053;
public static final int abc_disabled_alpha_material_light = 0x7f080054;
public static final int abc_dropdownitem_icon_width = 0x7f080055;
public static final int abc_dropdownitem_text_padding_left = 0x7f080056;
public static final int abc_dropdownitem_text_padding_right = 0x7f080057;
public static final int abc_edit_text_inset_bottom_material = 0x7f080058;
public static final int abc_edit_text_inset_horizontal_material = 0x7f080059;
public static final int abc_edit_text_inset_top_material = 0x7f08005a;
public static final int abc_floating_window_z = 0x7f08005b;
public static final int abc_list_item_padding_horizontal_material = 0x7f08005c;
public static final int abc_panel_menu_list_width = 0x7f08005d;
public static final int abc_progress_bar_height_material = 0x7f08005e;
public static final int abc_search_view_preferred_height = 0x7f08005f;
public static final int abc_search_view_preferred_width = 0x7f080060;
public static final int abc_seekbar_track_background_height_material = 0x7f080061;
public static final int abc_seekbar_track_progress_height_material = 0x7f080062;
public static final int abc_select_dialog_padding_start_material = 0x7f080063;
public static final int abc_switch_padding = 0x7f08003a;
public static final int abc_text_size_body_1_material = 0x7f080064;
public static final int abc_text_size_body_2_material = 0x7f080065;
public static final int abc_text_size_button_material = 0x7f080066;
public static final int abc_text_size_caption_material = 0x7f080067;
public static final int abc_text_size_display_1_material = 0x7f080068;
public static final int abc_text_size_display_2_material = 0x7f080069;
public static final int abc_text_size_display_3_material = 0x7f08006a;
public static final int abc_text_size_display_4_material = 0x7f08006b;
public static final int abc_text_size_headline_material = 0x7f08006c;
public static final int abc_text_size_large_material = 0x7f08006d;
public static final int abc_text_size_medium_material = 0x7f08006e;
public static final int abc_text_size_menu_header_material = 0x7f08006f;
public static final int abc_text_size_menu_material = 0x7f080070;
public static final int abc_text_size_small_material = 0x7f080071;
public static final int abc_text_size_subhead_material = 0x7f080072;
public static final int abc_text_size_subtitle_material_toolbar = 0x7f080005;
public static final int abc_text_size_title_material = 0x7f080073;
public static final int abc_text_size_title_material_toolbar = 0x7f080006;
public static final int design_appbar_elevation = 0x7f080078;
public static final int design_bottom_navigation_active_item_max_width = 0x7f080079;
public static final int design_bottom_navigation_active_text_size = 0x7f08007a;
public static final int design_bottom_navigation_height = 0x7f08007b;
public static final int design_bottom_navigation_item_max_width = 0x7f08007c;
public static final int design_bottom_navigation_margin = 0x7f08007d;
public static final int design_bottom_navigation_text_size = 0x7f08007e;
public static final int design_bottom_sheet_modal_elevation = 0x7f08007f;
public static final int design_bottom_sheet_peek_height_min = 0x7f080080;
public static final int design_fab_border_width = 0x7f080081;
public static final int design_fab_elevation = 0x7f080082;
public static final int design_fab_image_size = 0x7f080083;
public static final int design_fab_size_mini = 0x7f080084;
public static final int design_fab_size_normal = 0x7f080085;
public static final int design_fab_translation_z_pressed = 0x7f080086;
public static final int design_navigation_elevation = 0x7f080087;
public static final int design_navigation_icon_padding = 0x7f080088;
public static final int design_navigation_icon_size = 0x7f080089;
public static final int design_navigation_max_width = 0x7f080022;
public static final int design_navigation_padding_bottom = 0x7f08008a;
public static final int design_navigation_separator_vertical_padding = 0x7f08008b;
public static final int design_snackbar_action_inline_max_width = 0x7f080023;
public static final int design_snackbar_background_corner_radius = 0x7f080024;
public static final int design_snackbar_elevation = 0x7f08008c;
public static final int design_snackbar_extra_spacing_horizontal = 0x7f080025;
public static final int design_snackbar_max_width = 0x7f080026;
public static final int design_snackbar_min_width = 0x7f080027;
public static final int design_snackbar_padding_horizontal = 0x7f08008d;
public static final int design_snackbar_padding_vertical = 0x7f08008e;
public static final int design_snackbar_padding_vertical_2lines = 0x7f080028;
public static final int design_snackbar_text_size = 0x7f08008f;
public static final int design_tab_max_width = 0x7f080090;
public static final int design_tab_scrollable_min_width = 0x7f080029;
public static final int design_tab_text_size = 0x7f080091;
public static final int design_tab_text_size_2line = 0x7f080092;
public static final int disabled_alpha_material_dark = 0x7f080093;
public static final int disabled_alpha_material_light = 0x7f080094;
public static final int highlight_alpha_material_colored = 0x7f0800bb;
public static final int highlight_alpha_material_dark = 0x7f0800bc;
public static final int highlight_alpha_material_light = 0x7f0800bd;
public static final int item_touch_helper_max_drag_scroll_per_frame = 0x7f0800be;
public static final int item_touch_helper_swipe_escape_max_velocity = 0x7f0800bf;
public static final int item_touch_helper_swipe_escape_velocity = 0x7f0800c0;
public static final int notification_large_icon_height = 0x7f080101;
public static final int notification_large_icon_width = 0x7f080102;
public static final int notification_subtext_size = 0x7f080103;
}
public static final class drawable {
public static final int abc_ab_share_pack_mtrl_alpha = 0x7f020000;
public static final int abc_action_bar_item_background_material = 0x7f020001;
public static final int abc_btn_borderless_material = 0x7f020002;
public static final int abc_btn_check_material = 0x7f020003;
public static final int abc_btn_check_to_on_mtrl_000 = 0x7f020004;
public static final int abc_btn_check_to_on_mtrl_015 = 0x7f020005;
public static final int abc_btn_colored_material = 0x7f020006;
public static final int abc_btn_default_mtrl_shape = 0x7f020007;
public static final int abc_btn_radio_material = 0x7f020008;
public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f020009;
public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f02000a;
public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f02000b;
public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f02000c;
public static final int abc_cab_background_internal_bg = 0x7f02000d;
public static final int abc_cab_background_top_material = 0x7f02000e;
public static final int abc_cab_background_top_mtrl_alpha = 0x7f02000f;
public static final int abc_control_background_material = 0x7f020010;
public static final int abc_dialog_material_background = 0x7f020011;
public static final int abc_edit_text_material = 0x7f020012;
public static final int abc_ic_ab_back_material = 0x7f020013;
public static final int abc_ic_arrow_drop_right_black_24dp = 0x7f020014;
public static final int abc_ic_clear_material = 0x7f020015;
public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f020016;
public static final int abc_ic_go_search_api_material = 0x7f020017;
public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f020018;
public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f020019;
public static final int abc_ic_menu_overflow_material = 0x7f02001a;
public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f02001b;
public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f02001c;
public static final int abc_ic_menu_share_mtrl_alpha = 0x7f02001d;
public static final int abc_ic_search_api_material = 0x7f02001e;
public static final int abc_ic_star_black_16dp = 0x7f02001f;
public static final int abc_ic_star_black_36dp = 0x7f020020;
public static final int abc_ic_star_black_48dp = 0x7f020021;
public static final int abc_ic_star_half_black_16dp = 0x7f020022;
public static final int abc_ic_star_half_black_36dp = 0x7f020023;
public static final int abc_ic_star_half_black_48dp = 0x7f020024;
public static final int abc_ic_voice_search_api_material = 0x7f020025;
public static final int abc_item_background_holo_dark = 0x7f020026;
public static final int abc_item_background_holo_light = 0x7f020027;
public static final int abc_list_divider_mtrl_alpha = 0x7f020028;
public static final int abc_list_focused_holo = 0x7f020029;
public static final int abc_list_longpressed_holo = 0x7f02002a;
public static final int abc_list_pressed_holo_dark = 0x7f02002b;
public static final int abc_list_pressed_holo_light = 0x7f02002c;
public static final int abc_list_selector_background_transition_holo_dark = 0x7f02002d;
public static final int abc_list_selector_background_transition_holo_light = 0x7f02002e;
public static final int abc_list_selector_disabled_holo_dark = 0x7f02002f;
public static final int abc_list_selector_disabled_holo_light = 0x7f020030;
public static final int abc_list_selector_holo_dark = 0x7f020031;
public static final int abc_list_selector_holo_light = 0x7f020032;
public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f020033;
public static final int abc_popup_background_mtrl_mult = 0x7f020034;
public static final int abc_ratingbar_indicator_material = 0x7f020035;
public static final int abc_ratingbar_material = 0x7f020036;
public static final int abc_ratingbar_small_material = 0x7f020037;
public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f020038;
public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f020039;
public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f02003a;
public static final int abc_scrubber_primary_mtrl_alpha = 0x7f02003b;
public static final int abc_scrubber_track_mtrl_alpha = 0x7f02003c;
public static final int abc_seekbar_thumb_material = 0x7f02003d;
public static final int abc_seekbar_tick_mark_material = 0x7f02003e;
public static final int abc_seekbar_track_material = 0x7f02003f;
public static final int abc_spinner_mtrl_am_alpha = 0x7f020040;
public static final int abc_spinner_textfield_background_material = 0x7f020041;
public static final int abc_switch_thumb_material = 0x7f020042;
public static final int abc_switch_track_mtrl_alpha = 0x7f020043;
public static final int abc_tab_indicator_material = 0x7f020044;
public static final int abc_tab_indicator_mtrl_alpha = 0x7f020045;
public static final int abc_text_cursor_material = 0x7f020046;
public static final int abc_text_select_handle_left_mtrl_dark = 0x7f020047;
public static final int abc_text_select_handle_left_mtrl_light = 0x7f020048;
public static final int abc_text_select_handle_middle_mtrl_dark = 0x7f020049;
public static final int abc_text_select_handle_middle_mtrl_light = 0x7f02004a;
public static final int abc_text_select_handle_right_mtrl_dark = 0x7f02004b;
public static final int abc_text_select_handle_right_mtrl_light = 0x7f02004c;
public static final int abc_textfield_activated_mtrl_alpha = 0x7f02004d;
public static final int abc_textfield_default_mtrl_alpha = 0x7f02004e;
public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f02004f;
public static final int abc_textfield_search_default_mtrl_alpha = 0x7f020050;
public static final int abc_textfield_search_material = 0x7f020051;
public static final int abc_vector_test = 0x7f020052;
public static final int design_fab_background = 0x7f020094;
public static final int design_ic_visibility = 0x7f020095;
public static final int design_snackbar_background = 0x7f020096;
public static final int navigation_empty_icon = 0x7f0200c4;
public static final int notification_template_icon_bg = 0x7f0200ea;
}
public static final class id {
public static final int action0 = 0x7f0e01a2;
public static final int action_bar = 0x7f0e006e;
public static final int action_bar_activity_content = 0x7f0e0000;
public static final int action_bar_container = 0x7f0e006d;
public static final int action_bar_root = 0x7f0e0069;
public static final int action_bar_spinner = 0x7f0e0001;
public static final int action_bar_subtitle = 0x7f0e004e;
public static final int action_bar_title = 0x7f0e004d;
public static final int action_context_bar = 0x7f0e006f;
public static final int action_divider = 0x7f0e01a6;
public static final int action_menu_divider = 0x7f0e0002;
public static final int action_menu_presenter = 0x7f0e0003;
public static final int action_mode_bar = 0x7f0e006b;
public static final int action_mode_bar_stub = 0x7f0e006a;
public static final int action_mode_close_button = 0x7f0e004f;
public static final int activity_chooser_view_content = 0x7f0e0050;
public static final int add = 0x7f0e001e;
public static final int alertTitle = 0x7f0e005c;
public static final int all = 0x7f0e0034;
public static final int always = 0x7f0e003f;
public static final int auto = 0x7f0e0025;
public static final int beginning = 0x7f0e0036;
public static final int bottom = 0x7f0e0026;
public static final int buttonPanel = 0x7f0e0057;
public static final int cancel_action = 0x7f0e01a3;
public static final int center = 0x7f0e000c;
public static final int center_horizontal = 0x7f0e0027;
public static final int center_vertical = 0x7f0e0028;
public static final int checkbox = 0x7f0e0065;
public static final int chronometer = 0x7f0e01a9;
public static final int clip_horizontal = 0x7f0e0030;
public static final int clip_vertical = 0x7f0e0031;
public static final int collapseActionView = 0x7f0e0040;
public static final int contentPanel = 0x7f0e005d;
public static final int custom = 0x7f0e0063;
public static final int customPanel = 0x7f0e0062;
public static final int decor_content_parent = 0x7f0e006c;
public static final int default_activity_button = 0x7f0e0053;
public static final int design_bottom_sheet = 0x7f0e0144;
public static final int design_menu_item_action_area = 0x7f0e014b;
public static final int design_menu_item_action_area_stub = 0x7f0e014a;
public static final int design_menu_item_text = 0x7f0e0149;
public static final int design_navigation_view = 0x7f0e0148;
public static final int disableHome = 0x7f0e0012;
public static final int edit_query = 0x7f0e0070;
public static final int end = 0x7f0e000d;
public static final int end_padder = 0x7f0e01ae;
public static final int enterAlways = 0x7f0e0019;
public static final int enterAlwaysCollapsed = 0x7f0e001a;
public static final int exitUntilCollapsed = 0x7f0e001b;
public static final int expand_activities_button = 0x7f0e0051;
public static final int expanded_menu = 0x7f0e0064;
public static final int fill = 0x7f0e0032;
public static final int fill_horizontal = 0x7f0e0033;
public static final int fill_vertical = 0x7f0e0029;
public static final int fixed = 0x7f0e004b;
public static final int home = 0x7f0e0004;
public static final int homeAsUp = 0x7f0e0013;
public static final int icon = 0x7f0e0055;
public static final int ifRoom = 0x7f0e0041;
public static final int image = 0x7f0e0052;
public static final int info = 0x7f0e01ad;
public static final int item_touch_helper_previous_elevation = 0x7f0e0005;
public static final int left = 0x7f0e002a;
public static final int line1 = 0x7f0e01a7;
public static final int line3 = 0x7f0e01ab;
public static final int listMode = 0x7f0e000f;
public static final int list_item = 0x7f0e0054;
public static final int media_actions = 0x7f0e01a5;
public static final int middle = 0x7f0e0037;
public static final int mini = 0x7f0e0035;
public static final int multiply = 0x7f0e001f;
public static final int navigation_header_container = 0x7f0e0147;
public static final int never = 0x7f0e0042;
public static final int none = 0x7f0e0014;
public static final int normal = 0x7f0e0010;
public static final int parallax = 0x7f0e002d;
public static final int parentPanel = 0x7f0e0059;
public static final int pin = 0x7f0e002e;
public static final int progress_circular = 0x7f0e0006;
public static final int progress_horizontal = 0x7f0e0007;
public static final int radio = 0x7f0e0067;
public static final int right = 0x7f0e002b;
public static final int screen = 0x7f0e0020;
public static final int scroll = 0x7f0e001c;
public static final int scrollIndicatorDown = 0x7f0e0061;
public static final int scrollIndicatorUp = 0x7f0e005e;
public static final int scrollView = 0x7f0e005f;
public static final int scrollable = 0x7f0e004c;
public static final int search_badge = 0x7f0e0072;
public static final int search_bar = 0x7f0e0071;
public static final int search_button = 0x7f0e0073;
public static final int search_close_btn = 0x7f0e0078;
public static final int search_edit_frame = 0x7f0e0074;
public static final int search_go_btn = 0x7f0e007a;
public static final int search_mag_icon = 0x7f0e0075;
public static final int search_plate = 0x7f0e0076;
public static final int search_src_text = 0x7f0e0077;
public static final int search_voice_btn = 0x7f0e007b;
public static final int select_dialog_listview = 0x7f0e007c;
public static final int shortcut = 0x7f0e0066;
public static final int showCustom = 0x7f0e0015;
public static final int showHome = 0x7f0e0016;
public static final int showTitle = 0x7f0e0017;
public static final int snackbar_action = 0x7f0e0146;
public static final int snackbar_text = 0x7f0e0145;
public static final int snap = 0x7f0e001d;
public static final int spacer = 0x7f0e0058;
public static final int split_action_bar = 0x7f0e0009;
public static final int src_atop = 0x7f0e0021;
public static final int src_in = 0x7f0e0022;
public static final int src_over = 0x7f0e0023;
public static final int start = 0x7f0e000e;
public static final int status_bar_latest_event_content = 0x7f0e01a4;
public static final int submenuarrow = 0x7f0e0068;
public static final int submit_area = 0x7f0e0079;
public static final int tabMode = 0x7f0e0011;
public static final int text = 0x7f0e01ac;
public static final int text2 = 0x7f0e01aa;
public static final int textSpacerNoButtons = 0x7f0e0060;
public static final int text_input_password_toggle = 0x7f0e014c;
public static final int time = 0x7f0e01a8;
public static final int title = 0x7f0e0056;
public static final int title_template = 0x7f0e005b;
public static final int top = 0x7f0e002c;
public static final int topPanel = 0x7f0e005a;
public static final int touch_outside = 0x7f0e0143;
public static final int up = 0x7f0e000a;
public static final int useLogo = 0x7f0e0018;
public static final int view_offset_helper = 0x7f0e000b;
public static final int withText = 0x7f0e0043;
public static final int wrap_content = 0x7f0e0024;
}
public static final class integer {
public static final int abc_config_activityDefaultDur = 0x7f0b0001;
public static final int abc_config_activityShortDur = 0x7f0b0002;
public static final int app_bar_elevation_anim_duration = 0x7f0b0003;
public static final int bottom_sheet_slide_duration = 0x7f0b0004;
public static final int cancel_button_image_alpha = 0x7f0b0005;
public static final int design_snackbar_text_max_lines = 0x7f0b0000;
public static final int status_bar_notification_info_maxnum = 0x7f0b0007;
}
public static final class layout {
public static final int abc_action_bar_title_item = 0x7f040000;
public static final int abc_action_bar_up_container = 0x7f040001;
public static final int abc_action_bar_view_list_nav_layout = 0x7f040002;
public static final int abc_action_menu_item_layout = 0x7f040003;
public static final int abc_action_menu_layout = 0x7f040004;
public static final int abc_action_mode_bar = 0x7f040005;
public static final int abc_action_mode_close_item_material = 0x7f040006;
public static final int abc_activity_chooser_view = 0x7f040007;
public static final int abc_activity_chooser_view_list_item = 0x7f040008;
public static final int abc_alert_dialog_button_bar_material = 0x7f040009;
public static final int abc_alert_dialog_material = 0x7f04000a;
public static final int abc_dialog_title_material = 0x7f04000b;
public static final int abc_expanded_menu_layout = 0x7f04000c;
public static final int abc_list_menu_item_checkbox = 0x7f04000d;
public static final int abc_list_menu_item_icon = 0x7f04000e;
public static final int abc_list_menu_item_layout = 0x7f04000f;
public static final int abc_list_menu_item_radio = 0x7f040010;
public static final int abc_popup_menu_header_item_layout = 0x7f040011;
public static final int abc_popup_menu_item_layout = 0x7f040012;
public static final int abc_screen_content_include = 0x7f040013;
public static final int abc_screen_simple = 0x7f040014;
public static final int abc_screen_simple_overlay_action_mode = 0x7f040015;
public static final int abc_screen_toolbar = 0x7f040016;
public static final int abc_search_dropdown_item_icons_2line = 0x7f040017;
public static final int abc_search_view = 0x7f040018;
public static final int abc_select_dialog_material = 0x7f040019;
public static final int design_bottom_sheet_dialog = 0x7f04002b;
public static final int design_layout_snackbar = 0x7f04002c;
public static final int design_layout_snackbar_include = 0x7f04002d;
public static final int design_layout_tab_icon = 0x7f04002e;
public static final int design_layout_tab_text = 0x7f04002f;
public static final int design_menu_item_action_area = 0x7f040030;
public static final int design_navigation_item = 0x7f040031;
public static final int design_navigation_item_header = 0x7f040032;
public static final int design_navigation_item_separator = 0x7f040033;
public static final int design_navigation_item_subheader = 0x7f040034;
public static final int design_navigation_menu = 0x7f040035;
public static final int design_navigation_menu_item = 0x7f040036;
public static final int design_text_input_password_icon = 0x7f040037;
public static final int notification_media_action = 0x7f040057;
public static final int notification_media_cancel_action = 0x7f040058;
public static final int notification_template_big_media = 0x7f040059;
public static final int notification_template_big_media_narrow = 0x7f04005a;
public static final int notification_template_lines = 0x7f04005b;
public static final int notification_template_media = 0x7f04005c;
public static final int notification_template_part_chronometer = 0x7f04005d;
public static final int notification_template_part_time = 0x7f04005e;
public static final int select_dialog_item_material = 0x7f040063;
public static final int select_dialog_multichoice_material = 0x7f040064;
public static final int select_dialog_singlechoice_material = 0x7f040065;
public static final int support_simple_spinner_dropdown_item = 0x7f040067;
}
public static final class string {
public static final int abc_action_bar_home_description = 0x7f070000;
public static final int abc_action_bar_home_description_format = 0x7f070001;
public static final int abc_action_bar_home_subtitle_description_format = 0x7f070002;
public static final int abc_action_bar_up_description = 0x7f070003;
public static final int abc_action_menu_overflow_description = 0x7f070004;
public static final int abc_action_mode_done = 0x7f070005;
public static final int abc_activity_chooser_view_see_all = 0x7f070006;
public static final int abc_activitychooserview_choose_application = 0x7f070007;
public static final int abc_capital_off = 0x7f070008;
public static final int abc_capital_on = 0x7f070009;
public static final int abc_font_family_body_1_material = 0x7f070039;
public static final int abc_font_family_body_2_material = 0x7f07003a;
public static final int abc_font_family_button_material = 0x7f07003b;
public static final int abc_font_family_caption_material = 0x7f07003c;
public static final int abc_font_family_display_1_material = 0x7f07003d;
public static final int abc_font_family_display_2_material = 0x7f07003e;
public static final int abc_font_family_display_3_material = 0x7f07003f;
public static final int abc_font_family_display_4_material = 0x7f070040;
public static final int abc_font_family_headline_material = 0x7f070041;
public static final int abc_font_family_menu_material = 0x7f070042;
public static final int abc_font_family_subhead_material = 0x7f070043;
public static final int abc_font_family_title_material = 0x7f070044;
public static final int abc_search_hint = 0x7f07000a;
public static final int abc_searchview_description_clear = 0x7f07000b;
public static final int abc_searchview_description_query = 0x7f07000c;
public static final int abc_searchview_description_search = 0x7f07000d;
public static final int abc_searchview_description_submit = 0x7f07000e;
public static final int abc_searchview_description_voice = 0x7f07000f;
public static final int abc_shareactionprovider_share_with = 0x7f070010;
public static final int abc_shareactionprovider_share_with_application = 0x7f070011;
public static final int abc_toolbar_collapse_description = 0x7f070012;
public static final int appbar_scrolling_view_behavior = 0x7f07004d;
public static final int bottom_sheet_behavior = 0x7f070057;
public static final int character_counter_pattern = 0x7f07006b;
public static final int search_menu_title = 0x7f070033;
public static final int status_bar_notification_info_overflow = 0x7f070034;
}
public static final class style {
public static final int AlertDialog_AppCompat = 0x7f090093;
public static final int AlertDialog_AppCompat_Light = 0x7f090094;
public static final int Animation_AppCompat_Dialog = 0x7f090095;
public static final int Animation_AppCompat_DropDownUp = 0x7f090096;
public static final int Animation_Design_BottomSheetDialog = 0x7f090097;
public static final int Base_AlertDialog_AppCompat = 0x7f09009b;
public static final int Base_AlertDialog_AppCompat_Light = 0x7f09009c;
public static final int Base_Animation_AppCompat_Dialog = 0x7f09009d;
public static final int Base_Animation_AppCompat_DropDownUp = 0x7f09009e;
public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0900a0;
public static final int Base_DialogWindowTitle_AppCompat = 0x7f09009f;
public static final int Base_TextAppearance_AppCompat = 0x7f090040;
public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f090041;
public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f090042;
public static final int Base_TextAppearance_AppCompat_Button = 0x7f090025;
public static final int Base_TextAppearance_AppCompat_Caption = 0x7f090043;
public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f090044;
public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f090045;
public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f090046;
public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f090047;
public static final int Base_TextAppearance_AppCompat_Headline = 0x7f090048;
public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f09000c;
public static final int Base_TextAppearance_AppCompat_Large = 0x7f090049;
public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f09000d;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f09004a;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f09004b;
public static final int Base_TextAppearance_AppCompat_Medium = 0x7f09004c;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f09000e;
public static final int Base_TextAppearance_AppCompat_Menu = 0x7f09004d;
public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f0900a1;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f09004e;
public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f09004f;
public static final int Base_TextAppearance_AppCompat_Small = 0x7f090050;
public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f09000f;
public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f090051;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f090010;
public static final int Base_TextAppearance_AppCompat_Title = 0x7f090052;
public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f090011;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f09008c;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f090053;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f090054;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f090055;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f090056;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f090057;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f090058;
public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f090059;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f09008d;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0900a2;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f09005a;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f09005b;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f09005c;
public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f09005d;
public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f09005e;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0900a3;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f09005f;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f090060;
public static final int Base_ThemeOverlay_AppCompat = 0x7f0900ac;
public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0900ad;
public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0900ae;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0900af;
public static final int Base_ThemeOverlay_AppCompat_Dialog = 0x7f090014;
public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0900b0;
public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0900b1;
public static final int Base_Theme_AppCompat = 0x7f090061;
public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0900a4;
public static final int Base_Theme_AppCompat_Dialog = 0x7f090012;
public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f090002;
public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f0900a5;
public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0900a6;
public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f0900a7;
public static final int Base_Theme_AppCompat_Light = 0x7f090062;
public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0900a8;
public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f090013;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f090003;
public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f0900a9;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0900aa;
public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0900ab;
public static final int Base_V11_ThemeOverlay_AppCompat_Dialog = 0x7f090017;
public static final int Base_V11_Theme_AppCompat_Dialog = 0x7f090015;
public static final int Base_V11_Theme_AppCompat_Light_Dialog = 0x7f090016;
public static final int Base_V12_Widget_AppCompat_AutoCompleteTextView = 0x7f090021;
public static final int Base_V12_Widget_AppCompat_EditText = 0x7f090022;
public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 0x7f090067;
public static final int Base_V21_Theme_AppCompat = 0x7f090063;
public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f090064;
public static final int Base_V21_Theme_AppCompat_Light = 0x7f090065;
public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f090066;
public static final int Base_V22_Theme_AppCompat = 0x7f09008a;
public static final int Base_V22_Theme_AppCompat_Light = 0x7f09008b;
public static final int Base_V23_Theme_AppCompat = 0x7f09008e;
public static final int Base_V23_Theme_AppCompat_Light = 0x7f09008f;
public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 0x7f0900b6;
public static final int Base_V7_Theme_AppCompat = 0x7f0900b2;
public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0900b3;
public static final int Base_V7_Theme_AppCompat_Light = 0x7f0900b4;
public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0900b5;
public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0900b7;
public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0900b8;
public static final int Base_Widget_AppCompat_ActionBar = 0x7f0900b9;
public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0900ba;
public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0900bb;
public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f090068;
public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f090069;
public static final int Base_Widget_AppCompat_ActionButton = 0x7f09006a;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f09006b;
public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f09006c;
public static final int Base_Widget_AppCompat_ActionMode = 0x7f0900bc;
public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0900bd;
public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f090023;
public static final int Base_Widget_AppCompat_Button = 0x7f09006d;
public static final int Base_Widget_AppCompat_ButtonBar = 0x7f090071;
public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0900bf;
public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f09006e;
public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f09006f;
public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0900be;
public static final int Base_Widget_AppCompat_Button_Colored = 0x7f090090;
public static final int Base_Widget_AppCompat_Button_Small = 0x7f090070;
public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f090072;
public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f090073;
public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0900c0;
public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f090000;
public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0900c1;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f090074;
public static final int Base_Widget_AppCompat_EditText = 0x7f090024;
public static final int Base_Widget_AppCompat_ImageButton = 0x7f090075;
public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f0900c2;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0900c3;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0900c4;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f090076;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f090077;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f090078;
public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f090079;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f09007a;
public static final int Base_Widget_AppCompat_ListMenuView = 0x7f0900c5;
public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f09007b;
public static final int Base_Widget_AppCompat_ListView = 0x7f09007c;
public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f09007d;
public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f09007e;
public static final int Base_Widget_AppCompat_PopupMenu = 0x7f09007f;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f090080;
public static final int Base_Widget_AppCompat_PopupWindow = 0x7f0900c6;
public static final int Base_Widget_AppCompat_ProgressBar = 0x7f090018;
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f090019;
public static final int Base_Widget_AppCompat_RatingBar = 0x7f090081;
public static final int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f090091;
public static final int Base_Widget_AppCompat_RatingBar_Small = 0x7f090092;
public static final int Base_Widget_AppCompat_SearchView = 0x7f0900c7;
public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0900c8;
public static final int Base_Widget_AppCompat_SeekBar = 0x7f090082;
public static final int Base_Widget_AppCompat_SeekBar_Discrete = 0x7f0900c9;
public static final int Base_Widget_AppCompat_Spinner = 0x7f090083;
public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f090004;
public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f090084;
public static final int Base_Widget_AppCompat_Toolbar = 0x7f0900ca;
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f090085;
public static final int Base_Widget_Design_AppBarLayout = 0x7f0900cb;
public static final int Base_Widget_Design_TabLayout = 0x7f0900cc;
public static final int Platform_AppCompat = 0x7f09001c;
public static final int Platform_AppCompat_Light = 0x7f09001d;
public static final int Platform_ThemeOverlay_AppCompat = 0x7f090086;
public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f090087;
public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f090088;
public static final int Platform_V11_AppCompat = 0x7f09001e;
public static final int Platform_V11_AppCompat_Light = 0x7f09001f;
public static final int Platform_V14_AppCompat = 0x7f090026;
public static final int Platform_V14_AppCompat_Light = 0x7f090027;
public static final int Platform_Widget_AppCompat_Spinner = 0x7f090020;
public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f090032;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f090033;
public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f090034;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f090035;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f090036;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f090037;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f09003d;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f090038;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f090039;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f09003a;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f09003b;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f09003c;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f09003e;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f09003f;
public static final int TextAppearance_AppCompat = 0x7f0900d4;
public static final int TextAppearance_AppCompat_Body1 = 0x7f0900d5;
public static final int TextAppearance_AppCompat_Body2 = 0x7f0900d6;
public static final int TextAppearance_AppCompat_Button = 0x7f0900d7;
public static final int TextAppearance_AppCompat_Caption = 0x7f0900d8;
public static final int TextAppearance_AppCompat_Display1 = 0x7f0900d9;
public static final int TextAppearance_AppCompat_Display2 = 0x7f0900da;
public static final int TextAppearance_AppCompat_Display3 = 0x7f0900db;
public static final int TextAppearance_AppCompat_Display4 = 0x7f0900dc;
public static final int TextAppearance_AppCompat_Headline = 0x7f0900dd;
public static final int TextAppearance_AppCompat_Inverse = 0x7f0900de;
public static final int TextAppearance_AppCompat_Large = 0x7f0900df;
public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0900e0;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0900e1;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0900e2;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0900e3;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0900e4;
public static final int TextAppearance_AppCompat_Medium = 0x7f0900e5;
public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0900e6;
public static final int TextAppearance_AppCompat_Menu = 0x7f0900e7;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0900e8;
public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0900e9;
public static final int TextAppearance_AppCompat_Small = 0x7f0900ea;
public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0900eb;
public static final int TextAppearance_AppCompat_Subhead = 0x7f0900ec;
public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0900ed;
public static final int TextAppearance_AppCompat_Title = 0x7f0900ee;
public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0900ef;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0900f0;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0900f1;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0900f2;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0900f3;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0900f4;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0900f5;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0900f6;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0900f7;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0900f8;
public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0900f9;
public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0900fa;
public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0900fb;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0900fc;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0900fd;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0900fe;
public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f0900ff;
public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f090100;
public static final int TextAppearance_Design_CollapsingToolbar_Expanded = 0x7f090101;
public static final int TextAppearance_Design_Counter = 0x7f090102;
public static final int TextAppearance_Design_Counter_Overflow = 0x7f090103;
public static final int TextAppearance_Design_Error = 0x7f090104;
public static final int TextAppearance_Design_Hint = 0x7f090105;
public static final int TextAppearance_Design_Snackbar_Message = 0x7f090106;
public static final int TextAppearance_Design_Tab = 0x7f090107;
public static final int TextAppearance_StatusBar_EventContent = 0x7f090028;
public static final int TextAppearance_StatusBar_EventContent_Info = 0x7f090029;
public static final int TextAppearance_StatusBar_EventContent_Line2 = 0x7f09002a;
public static final int TextAppearance_StatusBar_EventContent_Time = 0x7f09002b;
public static final int TextAppearance_StatusBar_EventContent_Title = 0x7f09002c;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f090108;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f090109;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f09010a;
public static final int ThemeOverlay_AppCompat = 0x7f090120;
public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f090121;
public static final int ThemeOverlay_AppCompat_Dark = 0x7f090122;
public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f090123;
public static final int ThemeOverlay_AppCompat_Dialog = 0x7f090124;
public static final int ThemeOverlay_AppCompat_Dialog_Alert = 0x7f090125;
public static final int ThemeOverlay_AppCompat_Light = 0x7f090126;
public static final int Theme_AppCompat = 0x7f09010b;
public static final int Theme_AppCompat_CompactMenu = 0x7f09010c;
public static final int Theme_AppCompat_DayNight = 0x7f090005;
public static final int Theme_AppCompat_DayNight_DarkActionBar = 0x7f090006;
public static final int Theme_AppCompat_DayNight_Dialog = 0x7f090007;
public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f09000a;
public static final int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f090008;
public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f090009;
public static final int Theme_AppCompat_DayNight_NoActionBar = 0x7f09000b;
public static final int Theme_AppCompat_Dialog = 0x7f09010d;
public static final int Theme_AppCompat_DialogWhenLarge = 0x7f090110;
public static final int Theme_AppCompat_Dialog_Alert = 0x7f09010e;
public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f09010f;
public static final int Theme_AppCompat_Light = 0x7f090111;
public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f090112;
public static final int Theme_AppCompat_Light_Dialog = 0x7f090113;
public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f090116;
public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f090114;
public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f090115;
public static final int Theme_AppCompat_Light_NoActionBar = 0x7f090117;
public static final int Theme_AppCompat_NoActionBar = 0x7f090118;
public static final int Theme_Design = 0x7f09011a;
public static final int Theme_Design_BottomSheetDialog = 0x7f09011b;
public static final int Theme_Design_Light = 0x7f09011c;
public static final int Theme_Design_Light_BottomSheetDialog = 0x7f09011d;
public static final int Theme_Design_Light_NoActionBar = 0x7f09011e;
public static final int Theme_Design_NoActionBar = 0x7f09011f;
public static final int Widget_AppCompat_ActionBar = 0x7f090127;
public static final int Widget_AppCompat_ActionBar_Solid = 0x7f090128;
public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f090129;
public static final int Widget_AppCompat_ActionBar_TabText = 0x7f09012a;
public static final int Widget_AppCompat_ActionBar_TabView = 0x7f09012b;
public static final int Widget_AppCompat_ActionButton = 0x7f09012c;
public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f09012d;
public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f09012e;
public static final int Widget_AppCompat_ActionMode = 0x7f09012f;
public static final int Widget_AppCompat_ActivityChooserView = 0x7f090130;
public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f090131;
public static final int Widget_AppCompat_Button = 0x7f090132;
public static final int Widget_AppCompat_ButtonBar = 0x7f090138;
public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f090139;
public static final int Widget_AppCompat_Button_Borderless = 0x7f090133;
public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f090134;
public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f090135;
public static final int Widget_AppCompat_Button_Colored = 0x7f090136;
public static final int Widget_AppCompat_Button_Small = 0x7f090137;
public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f09013a;
public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f09013b;
public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f09013c;
public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f09013d;
public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f09013e;
public static final int Widget_AppCompat_EditText = 0x7f09013f;
public static final int Widget_AppCompat_ImageButton = 0x7f090140;
public static final int Widget_AppCompat_Light_ActionBar = 0x7f090141;
public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f090142;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f090143;
public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f090144;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f090145;
public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f090146;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f090147;
public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f090148;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f090149;
public static final int Widget_AppCompat_Light_ActionButton = 0x7f09014a;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f09014b;
public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f09014c;
public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f09014d;
public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f09014e;
public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f09014f;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f090150;
public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f090151;
public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f090152;
public static final int Widget_AppCompat_Light_PopupMenu = 0x7f090153;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f090154;
public static final int Widget_AppCompat_Light_SearchView = 0x7f090155;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f090156;
public static final int Widget_AppCompat_ListMenuView = 0x7f090157;
public static final int Widget_AppCompat_ListPopupWindow = 0x7f090158;
public static final int Widget_AppCompat_ListView = 0x7f090159;
public static final int Widget_AppCompat_ListView_DropDown = 0x7f09015a;
public static final int Widget_AppCompat_ListView_Menu = 0x7f09015b;
public static final int Widget_AppCompat_PopupMenu = 0x7f09015c;
public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f09015d;
public static final int Widget_AppCompat_PopupWindow = 0x7f09015e;
public static final int Widget_AppCompat_ProgressBar = 0x7f09015f;
public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f090160;
public static final int Widget_AppCompat_RatingBar = 0x7f090161;
public static final int Widget_AppCompat_RatingBar_Indicator = 0x7f090162;
public static final int Widget_AppCompat_RatingBar_Small = 0x7f090163;
public static final int Widget_AppCompat_SearchView = 0x7f090164;
public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f090165;
public static final int Widget_AppCompat_SeekBar = 0x7f090166;
public static final int Widget_AppCompat_SeekBar_Discrete = 0x7f090167;
public static final int Widget_AppCompat_Spinner = 0x7f090168;
public static final int Widget_AppCompat_Spinner_DropDown = 0x7f090169;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f09016a;
public static final int Widget_AppCompat_Spinner_Underlined = 0x7f09016b;
public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f09016c;
public static final int Widget_AppCompat_Toolbar = 0x7f09016d;
public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f09016e;
public static final int Widget_Design_AppBarLayout = 0x7f090089;
public static final int Widget_Design_BottomSheet_Modal = 0x7f09016f;
public static final int Widget_Design_CollapsingToolbar = 0x7f090170;
public static final int Widget_Design_CoordinatorLayout = 0x7f090171;
public static final int Widget_Design_FloatingActionButton = 0x7f090172;
public static final int Widget_Design_NavigationView = 0x7f090173;
public static final int Widget_Design_ScrimInsetsFrameLayout = 0x7f090174;
public static final int Widget_Design_Snackbar = 0x7f090175;
public static final int Widget_Design_TabLayout = 0x7f090001;
public static final int Widget_Design_TextInputLayout = 0x7f090176;
}
public static final class styleable {
public static final int[] ActionBar = { 0x7f010001, 0x7f010020, 0x7f010021, 0x7f010022, 0x7f010023, 0x7f010024, 0x7f010025, 0x7f010026, 0x7f010027, 0x7f010028, 0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035, 0x7f010036, 0x7f010037, 0x7f010038, 0x7f010039, 0x7f01003a, 0x7f01007c };
public static final int[] ActionBarLayout = { 0x010100b3 };
public static final int ActionBarLayout_android_layout_gravity = 0;
public static final int ActionBar_background = 10;
public static final int ActionBar_backgroundSplit = 12;
public static final int ActionBar_backgroundStacked = 11;
public static final int ActionBar_contentInsetEnd = 21;
public static final int ActionBar_contentInsetEndWithActions = 25;
public static final int ActionBar_contentInsetLeft = 22;
public static final int ActionBar_contentInsetRight = 23;
public static final int ActionBar_contentInsetStart = 20;
public static final int ActionBar_contentInsetStartWithNavigation = 24;
public static final int ActionBar_customNavigationLayout = 13;
public static final int ActionBar_displayOptions = 3;
public static final int ActionBar_divider = 9;
public static final int ActionBar_elevation = 26;
public static final int ActionBar_height = 0;
public static final int ActionBar_hideOnContentScroll = 19;
public static final int ActionBar_homeAsUpIndicator = 28;
public static final int ActionBar_homeLayout = 14;
public static final int ActionBar_icon = 7;
public static final int ActionBar_indeterminateProgressStyle = 16;
public static final int ActionBar_itemPadding = 18;
public static final int ActionBar_logo = 8;
public static final int ActionBar_navigationMode = 2;
public static final int ActionBar_popupTheme = 27;
public static final int ActionBar_progressBarPadding = 17;
public static final int ActionBar_progressBarStyle = 15;
public static final int ActionBar_subtitle = 4;
public static final int ActionBar_subtitleTextStyle = 6;
public static final int ActionBar_title = 1;
public static final int ActionBar_titleTextStyle = 5;
public static final int[] ActionMenuItemView = { 0x0101013f };
public static final int ActionMenuItemView_android_minWidth = 0;
public static final int[] ActionMenuView = { };
public static final int[] ActionMode = { 0x7f010001, 0x7f010024, 0x7f010025, 0x7f010029, 0x7f01002b, 0x7f01003b };
public static final int ActionMode_background = 3;
public static final int ActionMode_backgroundSplit = 4;
public static final int ActionMode_closeItemLayout = 5;
public static final int ActionMode_height = 0;
public static final int ActionMode_subtitleTextStyle = 2;
public static final int ActionMode_titleTextStyle = 1;
public static final int[] ActivityChooserView = { 0x7f01003c, 0x7f01003d };
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
public static final int ActivityChooserView_initialActivityCount = 0;
public static final int[] AlertDialog = { 0x010100f2, 0x7f01003e, 0x7f01003f, 0x7f010040, 0x7f010041, 0x7f010042 };
public static final int AlertDialog_android_layout = 0;
public static final int AlertDialog_buttonPanelSideLayout = 1;
public static final int AlertDialog_listItemLayout = 5;
public static final int AlertDialog_listLayout = 2;
public static final int AlertDialog_multiChoiceItemLayout = 3;
public static final int AlertDialog_singleChoiceItemLayout = 4;
public static final int[] AppBarLayout = { 0x010100d4, 0x7f010039, 0x7f010043 };
public static final int[] AppBarLayoutStates = { 0x7f010044, 0x7f010045 };
public static final int AppBarLayoutStates_state_collapsed = 0;
public static final int AppBarLayoutStates_state_collapsible = 1;
public static final int[] AppBarLayout_Layout = { 0x7f010046, 0x7f010047 };
public static final int AppBarLayout_Layout_layout_scrollFlags = 0;
public static final int AppBarLayout_Layout_layout_scrollInterpolator = 1;
public static final int AppBarLayout_android_background = 0;
public static final int AppBarLayout_elevation = 1;
public static final int AppBarLayout_expanded = 2;
public static final int[] AppCompatImageView = { 0x01010119, 0x7f010048 };
public static final int AppCompatImageView_android_src = 0;
public static final int AppCompatImageView_srcCompat = 1;
public static final int[] AppCompatSeekBar = { 0x01010142, 0x7f010049, 0x7f01004a, 0x7f01004b };
public static final int AppCompatSeekBar_android_thumb = 0;
public static final int AppCompatSeekBar_tickMark = 1;
public static final int AppCompatSeekBar_tickMarkTint = 2;
public static final int AppCompatSeekBar_tickMarkTintMode = 3;
public static final int[] AppCompatTextHelper = { 0x01010034, 0x0101016d, 0x0101016e, 0x0101016f, 0x01010170, 0x01010392, 0x01010393 };
public static final int AppCompatTextHelper_android_drawableBottom = 2;
public static final int AppCompatTextHelper_android_drawableEnd = 6;
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_drawableTop = 1;
public static final int AppCompatTextHelper_android_textAppearance = 0;
public static final int[] AppCompatTextView = { 0x01010034, 0x7f01004c };
public static final int AppCompatTextView_android_textAppearance = 0;
public static final int AppCompatTextView_textAllCaps = 1;
public static final int[] AppCompatTheme = { 0x01010057, 0x010100ae, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050, 0x7f010051, 0x7f010052, 0x7f010053, 0x7f010054, 0x7f010055, 0x7f010056, 0x7f010057, 0x7f010058, 0x7f010059, 0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d, 0x7f01005e, 0x7f01005f, 0x7f010060, 0x7f010061, 0x7f010062, 0x7f010063, 0x7f010064, 0x7f010065, 0x7f010066, 0x7f010067, 0x7f010068, 0x7f010069, 0x7f01006a, 0x7f01006b, 0x7f01006c, 0x7f01006d, 0x7f01006e, 0x7f01006f, 0x7f010070, 0x7f010071, 0x7f010072, 0x7f010073, 0x7f010074, 0x7f010075, 0x7f010076, 0x7f010077, 0x7f010078, 0x7f010079, 0x7f01007a, 0x7f01007b, 0x7f01007c, 0x7f01007d, 0x7f01007e, 0x7f01007f, 0x7f010080, 0x7f010081, 0x7f010082, 0x7f010083, 0x7f010084, 0x7f010085, 0x7f010086, 0x7f010087, 0x7f010088, 0x7f010089, 0x7f01008a, 0x7f01008b, 0x7f01008c, 0x7f01008d, 0x7f01008e, 0x7f01008f, 0x7f010090, 0x7f010091, 0x7f010092, 0x7f010093, 0x7f010094, 0x7f010095, 0x7f010096, 0x7f010097, 0x7f010098, 0x7f010099, 0x7f01009a, 0x7f01009b, 0x7f01009c, 0x7f01009d, 0x7f01009e, 0x7f01009f, 0x7f0100a0, 0x7f0100a1, 0x7f0100a2, 0x7f0100a3, 0x7f0100a4, 0x7f0100a5, 0x7f0100a6, 0x7f0100a7, 0x7f0100a8, 0x7f0100a9, 0x7f0100aa, 0x7f0100ab, 0x7f0100ac, 0x7f0100ad, 0x7f0100ae, 0x7f0100af, 0x7f0100b0, 0x7f0100b1, 0x7f0100b2, 0x7f0100b3, 0x7f0100b4, 0x7f0100b5, 0x7f0100b6, 0x7f0100b7, 0x7f0100b8, 0x7f0100b9, 0x7f0100ba, 0x7f0100bb, 0x7f0100bc, 0x7f0100bd };
public static final int AppCompatTheme_actionBarDivider = 23;
public static final int AppCompatTheme_actionBarItemBackground = 24;
public static final int AppCompatTheme_actionBarPopupTheme = 17;
public static final int AppCompatTheme_actionBarSize = 22;
public static final int AppCompatTheme_actionBarSplitStyle = 19;
public static final int AppCompatTheme_actionBarStyle = 18;
public static final int AppCompatTheme_actionBarTabBarStyle = 13;
public static final int AppCompatTheme_actionBarTabStyle = 12;
public static final int AppCompatTheme_actionBarTabTextStyle = 14;
public static final int AppCompatTheme_actionBarTheme = 20;
public static final int AppCompatTheme_actionBarWidgetTheme = 21;
public static final int AppCompatTheme_actionButtonStyle = 50;
public static final int AppCompatTheme_actionDropDownStyle = 46;
public static final int AppCompatTheme_actionMenuTextAppearance = 25;
public static final int AppCompatTheme_actionMenuTextColor = 26;
public static final int AppCompatTheme_actionModeBackground = 29;
public static final int AppCompatTheme_actionModeCloseButtonStyle = 28;
public static final int AppCompatTheme_actionModeCloseDrawable = 31;
public static final int AppCompatTheme_actionModeCopyDrawable = 33;
public static final int AppCompatTheme_actionModeCutDrawable = 32;
public static final int AppCompatTheme_actionModeFindDrawable = 37;
public static final int AppCompatTheme_actionModePasteDrawable = 34;
public static final int AppCompatTheme_actionModePopupWindowStyle = 39;
public static final int AppCompatTheme_actionModeSelectAllDrawable = 35;
public static final int AppCompatTheme_actionModeShareDrawable = 36;
public static final int AppCompatTheme_actionModeSplitBackground = 30;
public static final int AppCompatTheme_actionModeStyle = 27;
public static final int AppCompatTheme_actionModeWebSearchDrawable = 38;
public static final int AppCompatTheme_actionOverflowButtonStyle = 15;
public static final int AppCompatTheme_actionOverflowMenuStyle = 16;
public static final int AppCompatTheme_activityChooserViewStyle = 58;
public static final int AppCompatTheme_alertDialogButtonGroupStyle = 94;
public static final int AppCompatTheme_alertDialogCenterButtons = 95;
public static final int AppCompatTheme_alertDialogStyle = 93;
public static final int AppCompatTheme_alertDialogTheme = 96;
public static final int AppCompatTheme_android_windowAnimationStyle = 1;
public static final int AppCompatTheme_android_windowIsFloating = 0;
public static final int AppCompatTheme_autoCompleteTextViewStyle = 101;
public static final int AppCompatTheme_borderlessButtonStyle = 55;
public static final int AppCompatTheme_buttonBarButtonStyle = 52;
public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 99;
public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 100;
public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 98;
public static final int AppCompatTheme_buttonBarStyle = 51;
public static final int AppCompatTheme_buttonStyle = 102;
public static final int AppCompatTheme_buttonStyleSmall = 103;
public static final int AppCompatTheme_checkboxStyle = 104;
public static final int AppCompatTheme_checkedTextViewStyle = 105;
public static final int AppCompatTheme_colorAccent = 85;
public static final int AppCompatTheme_colorBackgroundFloating = 92;
public static final int AppCompatTheme_colorButtonNormal = 89;
public static final int AppCompatTheme_colorControlActivated = 87;
public static final int AppCompatTheme_colorControlHighlight = 88;
public static final int AppCompatTheme_colorControlNormal = 86;
public static final int AppCompatTheme_colorPrimary = 83;
public static final int AppCompatTheme_colorPrimaryDark = 84;
public static final int AppCompatTheme_colorSwitchThumbNormal = 90;
public static final int AppCompatTheme_controlBackground = 91;
public static final int AppCompatTheme_dialogPreferredPadding = 44;
public static final int AppCompatTheme_dialogTheme = 43;
public static final int AppCompatTheme_dividerHorizontal = 57;
public static final int AppCompatTheme_dividerVertical = 56;
public static final int AppCompatTheme_dropDownListViewStyle = 75;
public static final int AppCompatTheme_dropdownListPreferredItemHeight = 47;
public static final int AppCompatTheme_editTextBackground = 64;
public static final int AppCompatTheme_editTextColor = 63;
public static final int AppCompatTheme_editTextStyle = 106;
public static final int AppCompatTheme_homeAsUpIndicator = 49;
public static final int AppCompatTheme_imageButtonStyle = 65;
public static final int AppCompatTheme_listChoiceBackgroundIndicator = 82;
public static final int AppCompatTheme_listDividerAlertDialog = 45;
public static final int AppCompatTheme_listMenuViewStyle = 114;
public static final int AppCompatTheme_listPopupWindowStyle = 76;
public static final int AppCompatTheme_listPreferredItemHeight = 70;
public static final int AppCompatTheme_listPreferredItemHeightLarge = 72;
public static final int AppCompatTheme_listPreferredItemHeightSmall = 71;
public static final int AppCompatTheme_listPreferredItemPaddingLeft = 73;
public static final int AppCompatTheme_listPreferredItemPaddingRight = 74;
public static final int AppCompatTheme_panelBackground = 79;
public static final int AppCompatTheme_panelMenuListTheme = 81;
public static final int AppCompatTheme_panelMenuListWidth = 80;
public static final int AppCompatTheme_popupMenuStyle = 61;
public static final int AppCompatTheme_popupWindowStyle = 62;
public static final int AppCompatTheme_radioButtonStyle = 107;
public static final int AppCompatTheme_ratingBarStyle = 108;
public static final int AppCompatTheme_ratingBarStyleIndicator = 109;
public static final int AppCompatTheme_ratingBarStyleSmall = 110;
public static final int AppCompatTheme_searchViewStyle = 69;
public static final int AppCompatTheme_seekBarStyle = 111;
public static final int AppCompatTheme_selectableItemBackground = 53;
public static final int AppCompatTheme_selectableItemBackgroundBorderless = 54;
public static final int AppCompatTheme_spinnerDropDownItemStyle = 48;
public static final int AppCompatTheme_spinnerStyle = 112;
public static final int AppCompatTheme_switchStyle = 113;
public static final int AppCompatTheme_textAppearanceLargePopupMenu = 40;
public static final int AppCompatTheme_textAppearanceListItem = 77;
public static final int AppCompatTheme_textAppearanceListItemSmall = 78;
public static final int AppCompatTheme_textAppearancePopupMenuHeader = 42;
public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 67;
public static final int AppCompatTheme_textAppearanceSearchResultTitle = 66;
public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 41;
public static final int AppCompatTheme_textColorAlertDialogListItem = 97;
public static final int AppCompatTheme_textColorSearchUrl = 68;
public static final int AppCompatTheme_toolbarNavigationButtonStyle = 60;
public static final int AppCompatTheme_toolbarStyle = 59;
public static final int AppCompatTheme_windowActionBar = 2;
public static final int AppCompatTheme_windowActionBarOverlay = 4;
public static final int AppCompatTheme_windowActionModeOverlay = 5;
public static final int AppCompatTheme_windowFixedHeightMajor = 9;
public static final int AppCompatTheme_windowFixedHeightMinor = 7;
public static final int AppCompatTheme_windowFixedWidthMajor = 6;
public static final int AppCompatTheme_windowFixedWidthMinor = 8;
public static final int AppCompatTheme_windowMinWidthMajor = 10;
public static final int AppCompatTheme_windowMinWidthMinor = 11;
public static final int AppCompatTheme_windowNoTitle = 3;
public static final int[] BottomSheetBehavior_Layout = { 0x7f0100cb, 0x7f0100cc, 0x7f0100cd };
public static final int BottomSheetBehavior_Layout_behavior_hideable = 1;
public static final int BottomSheetBehavior_Layout_behavior_peekHeight = 0;
public static final int BottomSheetBehavior_Layout_behavior_skipCollapsed = 2;
public static final int[] ButtonBarLayout = { 0x7f0100ce };
public static final int ButtonBarLayout_allowStacking = 0;
public static final int[] CollapsingToolbarLayout = { 0x7f010020, 0x7f0100d7, 0x7f0100d8, 0x7f0100d9, 0x7f0100da, 0x7f0100db, 0x7f0100dc, 0x7f0100dd, 0x7f0100de, 0x7f0100df, 0x7f0100e0, 0x7f0100e1, 0x7f0100e2, 0x7f0100e3, 0x7f0100e4, 0x7f0100e5 };
public static final int[] CollapsingToolbarLayout_Layout = { 0x7f0100e6, 0x7f0100e7 };
public static final int CollapsingToolbarLayout_Layout_layout_collapseMode = 0;
public static final int CollapsingToolbarLayout_Layout_layout_collapseParallaxMultiplier = 1;
public static final int CollapsingToolbarLayout_collapsedTitleGravity = 13;
public static final int CollapsingToolbarLayout_collapsedTitleTextAppearance = 7;
public static final int CollapsingToolbarLayout_contentScrim = 8;
public static final int CollapsingToolbarLayout_expandedTitleGravity = 14;
public static final int CollapsingToolbarLayout_expandedTitleMargin = 1;
public static final int CollapsingToolbarLayout_expandedTitleMarginBottom = 5;
public static final int CollapsingToolbarLayout_expandedTitleMarginEnd = 4;
public static final int CollapsingToolbarLayout_expandedTitleMarginStart = 2;
public static final int CollapsingToolbarLayout_expandedTitleMarginTop = 3;
public static final int CollapsingToolbarLayout_expandedTitleTextAppearance = 6;
public static final int CollapsingToolbarLayout_scrimAnimationDuration = 12;
public static final int CollapsingToolbarLayout_scrimVisibleHeightTrigger = 11;
public static final int CollapsingToolbarLayout_statusBarScrim = 9;
public static final int CollapsingToolbarLayout_title = 0;
public static final int CollapsingToolbarLayout_titleEnabled = 15;
public static final int CollapsingToolbarLayout_toolbarId = 10;
public static final int[] ColorStateListItem = { 0x010101a5, 0x0101031f, 0x7f0100e8 };
public static final int ColorStateListItem_alpha = 2;
public static final int ColorStateListItem_android_alpha = 1;
public static final int ColorStateListItem_android_color = 0;
public static final int[] CompoundButton = { 0x01010107, 0x7f0100e9, 0x7f0100ea };
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 = { 0x7f01010b, 0x7f01010c };
public static final int[] CoordinatorLayout_Layout = { 0x010100b3, 0x7f01010d, 0x7f01010e, 0x7f01010f, 0x7f010110, 0x7f010111, 0x7f010112 };
public static final int CoordinatorLayout_Layout_android_layout_gravity = 0;
public static final int CoordinatorLayout_Layout_layout_anchor = 2;
public static final int CoordinatorLayout_Layout_layout_anchorGravity = 4;
public static final int CoordinatorLayout_Layout_layout_behavior = 1;
public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 6;
public static final int CoordinatorLayout_Layout_layout_insetEdge = 5;
public static final int CoordinatorLayout_Layout_layout_keyline = 3;
public static final int CoordinatorLayout_keylines = 0;
public static final int CoordinatorLayout_statusBarBackground = 1;
public static final int[] DesignTheme = { 0x7f010114, 0x7f010115, 0x7f010116 };
public static final int DesignTheme_bottomSheetDialogTheme = 0;
public static final int DesignTheme_bottomSheetStyle = 1;
public static final int DesignTheme_textColorError = 2;
public static final int[] DrawerArrowToggle = { 0x7f010125, 0x7f010126, 0x7f010127, 0x7f010128, 0x7f010129, 0x7f01012a, 0x7f01012b, 0x7f01012c };
public static final int DrawerArrowToggle_arrowHeadLength = 4;
public static final int DrawerArrowToggle_arrowShaftLength = 5;
public static final int DrawerArrowToggle_barLength = 6;
public static final int DrawerArrowToggle_color = 0;
public static final int DrawerArrowToggle_drawableSize = 2;
public static final int DrawerArrowToggle_gapBetweenBars = 3;
public static final int DrawerArrowToggle_spinBars = 1;
public static final int DrawerArrowToggle_thickness = 7;
public static final int[] FloatingActionButton = { 0x7f010039, 0x7f01012d, 0x7f01012e, 0x7f01012f, 0x7f010130, 0x7f010131, 0x7f0101ce, 0x7f0101cf };
public static final int[] FloatingActionButton_Behavior_Layout = { 0x7f010132 };
public static final int FloatingActionButton_Behavior_Layout_behavior_autoHide = 0;
public static final int FloatingActionButton_backgroundTint = 6;
public static final int FloatingActionButton_backgroundTintMode = 7;
public static final int FloatingActionButton_borderWidth = 4;
public static final int FloatingActionButton_elevation = 0;
public static final int FloatingActionButton_fabSize = 2;
public static final int FloatingActionButton_pressedTranslationZ = 3;
public static final int FloatingActionButton_rippleColor = 1;
public static final int FloatingActionButton_useCompatPadding = 5;
public static final int[] ForegroundLinearLayout = { 0x01010109, 0x01010200, 0x7f010133 };
public static final int ForegroundLinearLayout_android_foreground = 0;
public static final int ForegroundLinearLayout_android_foregroundGravity = 1;
public static final int ForegroundLinearLayout_foregroundInsidePadding = 2;
public static final int[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f010028, 0x7f010134, 0x7f010135, 0x7f010136 };
public static final int[] LinearLayoutCompat_Layout = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 };
public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
public static final int LinearLayoutCompat_android_baselineAligned = 2;
public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
public static final int LinearLayoutCompat_android_gravity = 0;
public static final int LinearLayoutCompat_android_orientation = 1;
public static final int LinearLayoutCompat_android_weightSum = 4;
public static final int LinearLayoutCompat_divider = 5;
public static final int LinearLayoutCompat_dividerPadding = 8;
public static final int LinearLayoutCompat_measureWithLargestChild = 6;
public static final int LinearLayoutCompat_showDividers = 7;
public static final int[] ListPopupWindow = { 0x010102ac, 0x010102ad };
public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
public static final int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 };
public static final int MenuGroup_android_checkableBehavior = 5;
public static final int MenuGroup_android_enabled = 0;
public static final int MenuGroup_android_id = 1;
public static final int MenuGroup_android_menuCategory = 3;
public static final int MenuGroup_android_orderInCategory = 4;
public static final int MenuGroup_android_visible = 2;
public static final int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f010157, 0x7f010158, 0x7f010159, 0x7f01015a };
public static final int MenuItem_actionLayout = 14;
public static final int MenuItem_actionProviderClass = 16;
public static final int MenuItem_actionViewClass = 15;
public static final int MenuItem_android_alphabeticShortcut = 9;
public static final int MenuItem_android_checkable = 11;
public static final int MenuItem_android_checked = 3;
public static final int MenuItem_android_enabled = 1;
public static final int MenuItem_android_icon = 0;
public static final int MenuItem_android_id = 2;
public static final int MenuItem_android_menuCategory = 5;
public static final int MenuItem_android_numericShortcut = 10;
public static final int MenuItem_android_onClick = 12;
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_visible = 4;
public static final int MenuItem_showAsAction = 13;
public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f01015b, 0x7f01015c };
public static final int MenuView_android_headerBackground = 4;
public static final int MenuView_android_horizontalDivider = 2;
public static final int MenuView_android_itemBackground = 5;
public static final int MenuView_android_itemIconDisabledAlpha = 6;
public static final int MenuView_android_itemTextAppearance = 1;
public static final int MenuView_android_verticalDivider = 3;
public static final int MenuView_android_windowAnimationStyle = 0;
public static final int MenuView_preserveIconSpacing = 7;
public static final int MenuView_subMenuArrow = 8;
public static final int[] NavigationView = { 0x010100d4, 0x010100dd, 0x0101011f, 0x7f010039, 0x7f01015d, 0x7f01015e, 0x7f01015f, 0x7f010160, 0x7f010161, 0x7f010162 };
public static final int NavigationView_android_background = 0;
public static final int NavigationView_android_fitsSystemWindows = 1;
public static final int NavigationView_android_maxWidth = 2;
public static final int NavigationView_elevation = 3;
public static final int NavigationView_headerLayout = 9;
public static final int NavigationView_itemBackground = 7;
public static final int NavigationView_itemIconTint = 5;
public static final int NavigationView_itemTextAppearance = 8;
public static final int NavigationView_itemTextColor = 6;
public static final int NavigationView_menu = 4;
public static final int[] PopupWindow = { 0x01010176, 0x010102c9, 0x7f010163 };
public static final int[] PopupWindowBackgroundState = { 0x7f010164 };
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
public static final int PopupWindow_android_popupAnimationStyle = 1;
public static final int PopupWindow_android_popupBackground = 0;
public static final int PopupWindow_overlapAnchor = 2;
public static final int[] RecyclerView = { 0x010100c4, 0x010100f1, 0x7f010165, 0x7f010166, 0x7f010167, 0x7f010168 };
public static final int RecyclerView_android_descendantFocusability = 1;
public static final int RecyclerView_android_orientation = 0;
public static final int RecyclerView_layoutManager = 2;
public static final int RecyclerView_reverseLayout = 4;
public static final int RecyclerView_spanCount = 3;
public static final int RecyclerView_stackFromEnd = 5;
public static final int[] ScrimInsetsFrameLayout = { 0x7f01016d };
public static final int ScrimInsetsFrameLayout_insetForeground = 0;
public static final int[] ScrollingViewBehavior_Layout = { 0x7f01016e };
public static final int ScrollingViewBehavior_Layout_behavior_overlapTop = 0;
public static final int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f01016f, 0x7f010170, 0x7f010171, 0x7f010172, 0x7f010173, 0x7f010174, 0x7f010175, 0x7f010176, 0x7f010177, 0x7f010178, 0x7f010179, 0x7f01017a, 0x7f01017b };
public static final int SearchView_android_focusable = 0;
public static final int SearchView_android_imeOptions = 3;
public static final int SearchView_android_inputType = 2;
public static final int SearchView_android_maxWidth = 1;
public static final int SearchView_closeIcon = 8;
public static final int SearchView_commitIcon = 13;
public static final int SearchView_defaultQueryHint = 7;
public static final int SearchView_goIcon = 9;
public static final int SearchView_iconifiedByDefault = 5;
public static final int SearchView_layout = 4;
public static final int SearchView_queryBackground = 15;
public static final int SearchView_queryHint = 6;
public static final int SearchView_searchHintIcon = 11;
public static final int SearchView_searchIcon = 10;
public static final int SearchView_submitBackground = 16;
public static final int SearchView_suggestionRowLayout = 14;
public static final int SearchView_voiceIcon = 12;
public static final int[] SnackbarLayout = { 0x0101011f, 0x7f010039, 0x7f01018d };
public static final int SnackbarLayout_android_maxWidth = 0;
public static final int SnackbarLayout_elevation = 1;
public static final int SnackbarLayout_maxActionInlineWidth = 2;
public static final int[] Spinner = { 0x010100b2, 0x01010176, 0x0101017b, 0x01010262, 0x7f01003a };
public static final int Spinner_android_dropDownWidth = 3;
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_popupTheme = 4;
public static final int[] SwitchCompat = { 0x01010124, 0x01010125, 0x01010142, 0x7f01018e, 0x7f01018f, 0x7f010190, 0x7f010191, 0x7f010192, 0x7f010193, 0x7f010194, 0x7f010195, 0x7f010196, 0x7f010197, 0x7f010198 };
public static final int SwitchCompat_android_textOff = 1;
public static final int SwitchCompat_android_textOn = 0;
public static final int SwitchCompat_android_thumb = 2;
public static final int SwitchCompat_showText = 13;
public static final int SwitchCompat_splitTrack = 12;
public static final int SwitchCompat_switchMinWidth = 10;
public static final int SwitchCompat_switchPadding = 11;
public static final int SwitchCompat_switchTextAppearance = 9;
public static final int SwitchCompat_thumbTextPadding = 8;
public static final int SwitchCompat_thumbTint = 3;
public static final int SwitchCompat_thumbTintMode = 4;
public static final int SwitchCompat_track = 5;
public static final int SwitchCompat_trackTint = 6;
public static final int SwitchCompat_trackTintMode = 7;
public static final int[] TabItem = { 0x01010002, 0x010100f2, 0x0101014f };
public static final int TabItem_android_icon = 0;
public static final int TabItem_android_layout = 1;
public static final int TabItem_android_text = 2;
public static final int[] TabLayout = { 0x7f010199, 0x7f01019a, 0x7f01019b, 0x7f01019c, 0x7f01019d, 0x7f01019e, 0x7f01019f, 0x7f0101a0, 0x7f0101a1, 0x7f0101a2, 0x7f0101a3, 0x7f0101a4, 0x7f0101a5, 0x7f0101a6, 0x7f0101a7, 0x7f0101a8 };
public static final int TabLayout_tabBackground = 3;
public static final int TabLayout_tabContentStart = 2;
public static final int TabLayout_tabGravity = 5;
public static final int TabLayout_tabIndicatorColor = 0;
public static final int TabLayout_tabIndicatorHeight = 1;
public static final int TabLayout_tabMaxWidth = 7;
public static final int TabLayout_tabMinWidth = 6;
public static final int TabLayout_tabMode = 4;
public static final int TabLayout_tabPadding = 15;
public static final int TabLayout_tabPaddingBottom = 14;
public static final int TabLayout_tabPaddingEnd = 13;
public static final int TabLayout_tabPaddingStart = 11;
public static final int TabLayout_tabPaddingTop = 12;
public static final int TabLayout_tabSelectedTextColor = 10;
public static final int TabLayout_tabTextAppearance = 8;
public static final int TabLayout_tabTextColor = 9;
public static final int[] TextAppearance = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x7f01004c };
public static final int TextAppearance_android_shadowColor = 4;
public static final int TextAppearance_android_shadowDx = 5;
public static final int TextAppearance_android_shadowDy = 6;
public static final int TextAppearance_android_shadowRadius = 7;
public static final int TextAppearance_android_textColor = 3;
public static final int TextAppearance_android_textSize = 0;
public static final int TextAppearance_android_textStyle = 2;
public static final int TextAppearance_android_typeface = 1;
public static final int TextAppearance_textAllCaps = 8;
public static final int[] TextInputLayout = { 0x0101009a, 0x01010150, 0x7f0101a9, 0x7f0101aa, 0x7f0101ab, 0x7f0101ac, 0x7f0101ad, 0x7f0101ae, 0x7f0101af, 0x7f0101b0, 0x7f0101b1, 0x7f0101b2, 0x7f0101b3, 0x7f0101b4, 0x7f0101b5, 0x7f0101b6 };
public static final int TextInputLayout_android_hint = 1;
public static final int TextInputLayout_android_textColorHint = 0;
public static final int TextInputLayout_counterEnabled = 6;
public static final int TextInputLayout_counterMaxLength = 7;
public static final int TextInputLayout_counterOverflowTextAppearance = 9;
public static final int TextInputLayout_counterTextAppearance = 8;
public static final int TextInputLayout_errorEnabled = 4;
public static final int TextInputLayout_errorTextAppearance = 5;
public static final int TextInputLayout_hintAnimationEnabled = 10;
public static final int TextInputLayout_hintEnabled = 3;
public static final int TextInputLayout_hintTextAppearance = 2;
public static final int TextInputLayout_passwordToggleContentDescription = 13;
public static final int TextInputLayout_passwordToggleDrawable = 12;
public static final int TextInputLayout_passwordToggleEnabled = 11;
public static final int TextInputLayout_passwordToggleTint = 14;
public static final int TextInputLayout_passwordToggleTintMode = 15;
public static final int[] Toolbar = { 0x010100af, 0x01010140, 0x7f010020, 0x7f010023, 0x7f010027, 0x7f010033, 0x7f010034, 0x7f010035, 0x7f010036, 0x7f010037, 0x7f010038, 0x7f01003a, 0x7f0101ba, 0x7f0101bb, 0x7f0101bc, 0x7f0101bd, 0x7f0101be, 0x7f0101bf, 0x7f0101c0, 0x7f0101c1, 0x7f0101c2, 0x7f0101c3, 0x7f0101c4, 0x7f0101c5, 0x7f0101c6, 0x7f0101c7, 0x7f0101c8, 0x7f0101c9, 0x7f0101ca };
public static final int Toolbar_android_gravity = 0;
public static final int Toolbar_android_minHeight = 1;
public static final int Toolbar_buttonGravity = 21;
public static final int Toolbar_collapseContentDescription = 23;
public static final int Toolbar_collapseIcon = 22;
public static final int Toolbar_contentInsetEnd = 6;
public static final int Toolbar_contentInsetEndWithActions = 10;
public static final int Toolbar_contentInsetLeft = 7;
public static final int Toolbar_contentInsetRight = 8;
public static final int Toolbar_contentInsetStart = 5;
public static final int Toolbar_contentInsetStartWithNavigation = 9;
public static final int Toolbar_logo = 4;
public static final int Toolbar_logoDescription = 26;
public static final int Toolbar_maxButtonHeight = 20;
public static final int Toolbar_navigationContentDescription = 25;
public static final int Toolbar_navigationIcon = 24;
public static final int Toolbar_popupTheme = 11;
public static final int Toolbar_subtitle = 3;
public static final int Toolbar_subtitleTextAppearance = 13;
public static final int Toolbar_subtitleTextColor = 28;
public static final int Toolbar_title = 2;
public static final int Toolbar_titleMargin = 14;
public static final int Toolbar_titleMarginBottom = 18;
public static final int Toolbar_titleMarginEnd = 16;
public static final int Toolbar_titleMarginStart = 15;
public static final int Toolbar_titleMarginTop = 17;
public static final int Toolbar_titleMargins = 19;
public static final int Toolbar_titleTextAppearance = 12;
public static final int Toolbar_titleTextColor = 27;
public static final int[] View = { 0x01010000, 0x010100da, 0x7f0101cb, 0x7f0101cc, 0x7f0101cd };
public static final int[] ViewBackgroundHelper = { 0x010100d4, 0x7f0101ce, 0x7f0101cf };
public static final int ViewBackgroundHelper_android_background = 0;
public static final int ViewBackgroundHelper_backgroundTint = 1;
public static final int ViewBackgroundHelper_backgroundTintMode = 2;
public static final int[] ViewStubCompat = { 0x010100d0, 0x010100f2, 0x010100f3 };
public static final int ViewStubCompat_android_id = 0;
public static final int ViewStubCompat_android_inflatedId = 2;
public static final int ViewStubCompat_android_layout = 1;
public static final int View_android_focusable = 1;
public static final int View_android_theme = 0;
public static final int View_paddingEnd = 3;
public static final int View_paddingStart = 2;
public static final int View_theme = 4;
}
}
| [
"justinjones201811@gmail.com"
] | justinjones201811@gmail.com |
604343e171187c8179eec2d60d8030f5895f7566 | fdbca75c07a2cfe7d05119801bbb464a78fe9e29 | /src/main/java/com/rubbishman/rubbishcombat/actions/internalcombat/DodgeDamageOTResolution.java | 57e81706472266930c51e2ff593070cb55025bfa | [] | no_license | Rubbishman/rubbishCombat | b1cf8aa2a449294b66a93da750328bf23485f62b | 4bac5f0b4a30a8a537641fde841ce6ce8bb15960 | refs/heads/master | 2022-09-21T13:16:55.436804 | 2020-06-04T05:12:37 | 2020-06-04T05:12:37 | 217,960,963 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 378 | java | package com.rubbishman.rubbishcombat.actions.internalcombat;
import com.rubbishman.rubbishRedux.external.operational.store.Identifier;
public class DodgeDamageOTResolution {
public final Identifier target;
public final int damage;
public DodgeDamageOTResolution(Identifier target, int damage) {
this.target = target;
this.damage = damage;
}
}
| [
"jonathan@kitomba.com"
] | jonathan@kitomba.com |
759fa33a2e58ed3d8f4d7b808eae2004dc1ccac9 | 765c32f00ba582b9a4eaa63d06953056412b6715 | /app/src/main/java/me/sheepyang/opengldemo/activity/PolygonActivity.java | fd25866765884775235f18c2c63e83c01d35a60e | [] | no_license | SheepYang1993/OpenGLDemo | df7afcabbc3953b1239069662b54149f192ca127 | 9116e8c6da86d44c7ad16b7ff8d1d0fa573961e4 | refs/heads/master | 2021-07-03T17:49:08.039894 | 2017-09-25T14:56:45 | 2017-09-25T14:56:45 | 104,195,887 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,131 | java | package me.sheepyang.opengldemo.activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import me.sheepyang.opengldemo.R;
import me.sheepyang.opengldemo.renderer.Square;
/**
* 画一个正多边形及圆形
*/
public class PolygonActivity extends BaseActivity implements View.OnClickListener {
@BindView(R.id.gl_view)
GLSurfaceView mGlView;
private Square mSquare;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_polygon);
ButterKnife.bind(this);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setTitle("正多边形及圆形");
mGlView.setEGLContextClientVersion(2);//创建一个OpenGL ES 2.0 context
mSquare = new Square(mGlView);
mGlView.setRenderer(mSquare);
mGlView.setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);//脏模式,这样可以有效降低cpu负载
}
@Override
protected void onResume() {
super.onResume();
mGlView.onResume();
}
@Override
protected void onPause() {
super.onPause();
mGlView.onPause();
}
@Override
@OnClick({R.id.btn_change})
public void onClick(View view) {
switch (view.getId()) {
case R.id.btn_change:
mSquare.changeDrawType();
mGlView.requestRender();
switch (mSquare.getDrawType()) {
case 0:
Toast.makeText(this, "顶点法绘制正方形", Toast.LENGTH_SHORT).show();
break;
case 1:
Toast.makeText(this, "索引法绘制正方形", Toast.LENGTH_SHORT).show();
break;
}
break;
default:
break;
}
}
}
| [
"332594623@qq.com"
] | 332594623@qq.com |
ee8be0363a0f107d188ddabf9feda3039d88dd41 | d68f9e53c7b75c632fc655ec25ac896805389568 | /src/main/java/com/zrz/mqtt/config/WebConfig.java | 0c8331b989b78dbf4f8d9983e1d2d7c223d9c081 | [] | no_license | zhouruizhong/mqtt | 6ceedb4ee03d0810b7ae36d2c67df33483499366 | a5110798ccfad77eed4780fb1539845c66fb2d1a | refs/heads/master | 2023-01-24T13:12:02.198095 | 2020-11-30T02:48:26 | 2020-11-30T02:48:26 | 314,748,549 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,299 | java | package com.zrz.mqtt.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* @author 周瑞忠
*/
@Configuration
public class WebConfig implements WebMvcConfigurer {
/**
* 注册static静态资源访问
* @param registry
*/
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry){
registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
//获取文件的真实路径
String path = System.getProperty("user.dir")+"\\src\\main\\resources\\static\\image\\";
String os = System.getProperty("os.name");
if (os.toLowerCase().startsWith("win")) {
registry.addResourceHandler("/image/**").addResourceLocations("file:"+path);
}else{
//linux和mac系统 可以根据逻辑再做处理
registry.addResourceHandler("/image/**").addResourceLocations("file:"+path);
}
//registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
}
}
| [
"528441592@qq.com"
] | 528441592@qq.com |
2648a2189f28524581394e6e921f453a0f49b6b2 | 9aaa2597121e6af068b9a0ed724effd3f3265c19 | /src/game/random/RandomGenerator.java | 8e1ab1b6b8fcc583a068f20f0d456fe5ce96e906 | [] | no_license | sricharan13/Battle | fe64e9f54280c440293f35c29e0703aa1caf3222 | 6f180fa2b7bb703e980253ad4a03ae2752046a20 | refs/heads/master | 2023-08-15T20:54:13.076648 | 2021-10-17T14:55:58 | 2021-10-17T14:55:58 | 418,149,962 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 346 | java | package game.random;
/**
* A Random number Generator. Generates a Random Number in the given range.
*/
public interface RandomGenerator {
/**
* return a random number.
* @param min - floor value.
* @param max - max value.
* @return - a random number between min and max.
*/
public int getRandomNumber(int min, int max);
}
| [
"sricharan13@Sris-Air.cable.rcn.com"
] | sricharan13@Sris-Air.cable.rcn.com |
8adfe83ca6ec038f509001e70291c0f54d77bae2 | 3b28d2f100d3711781c721a1c4ec40391e225f94 | /src/com/android/mantingfang/fourth/FourthDianzan.java | 4507d740d637df77d325e776d52d9ec4460b610a | [] | no_license | liujinlong123/Mantingfang | bcd7e318fae201cf1f301c536f4d36b82f5a5943 | 31d835847093bb6c810e021e4e83eff17f6bad63 | refs/heads/master | 2021-06-15T01:43:32.256534 | 2020-06-13T07:57:30 | 2020-06-13T07:57:30 | 90,544,764 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,886 | java | package com.android.mantingfang.fourth;
import java.util.ArrayList;
import java.util.List;
import com.android.mantingfanggsc.R;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;
public class FourthDianzan extends FragmentActivity {
private LinearLayout linearBack;
private TextView title;
private TextView backTitle;
private RadioGroup rgpTitle;
private RadioButton left;
private RadioButton right;
private ViewPager viewPager;
private Fragment dianzanL;
private Fragment dianzanR;
private List<Fragment> fragmentList = new ArrayList<Fragment>();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.fourth_dianzan);
linearBack = (LinearLayout)findViewById(R.id.topbar_all_back);
linearBack.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
title = (TextView)findViewById(R.id.topbar_tv_theme);
title.setVisibility(View.GONE);
backTitle = (TextView)findViewById(R.id.topbar_tv_back);
backTitle.setText("我");
rgpTitle = (RadioGroup)findViewById(R.id.topbar_radgp_select);
rgpTitle.setVisibility(View.VISIBLE);
initViewPager();
}
@SuppressWarnings("deprecation")
private void initViewPager() {
viewPager = (ViewPager)findViewById(R.id.fourth_dianzan_view_pager);
left = (RadioButton)findViewById(R.id.topbar_rbtn_selectL);
right = (RadioButton)findViewById(R.id.topbar_rbtn_selectR);
left.setOnClickListener(new MyOnClickListener(0));
right.setOnClickListener(new MyOnClickListener(1));
dianzanL = new DianzanL();
dianzanR = new DianzanR();
fragmentList.add(dianzanL);
fragmentList.add(dianzanR);
viewPager.setOffscreenPageLimit(2);
viewPager.setAdapter(new HomePageAdapter(getSupportFragmentManager(), fragmentList));
viewPager.setOnPageChangeListener(new MyOnPageChangeListener());
viewPager.setCurrentItem(0);
left.setChecked(true);
}
class HomePageAdapter extends android.support.v4.app.FragmentStatePagerAdapter {// FragmentPagerAdapter
// private FragmentManager fm;
private List<Fragment> fragments = null;
@SuppressWarnings("unused")
private FragmentManager fm;
public HomePageAdapter(FragmentManager fm, List<Fragment> fragments) {
super(fm);
this.fm = fm;
this.fragments = fragments;
notifyDataSetChanged();
}
@Override
public Fragment getItem(int arg0) {
return fragments.get(arg0);
}
@Override
public int getItemPosition(Object object) {
return PagerAdapter.POSITION_NONE;
}
@Override
public int getCount() {
return fragments.size();// hotIssuesList.size();
}
}
public class MyOnClickListener implements View.OnClickListener {
private int index = 0;
public MyOnClickListener(int i) {
index = i;
}
@Override
public void onClick(View v) {
viewPager.setCurrentItem(index);
}
}
@SuppressLint("ResourceAsColor")
public class MyOnPageChangeListener implements OnPageChangeListener {
@SuppressLint("ResourceAsColor")
@Override
public void onPageSelected(int arg0) {
switch (arg0) {
case 0:
left.setChecked(true);
break;
case 1:
right.setChecked(true);
break;
}
}
@Override
public void onPageScrolled(int arg0, float arg1, int arg2) {
}
@Override
public void onPageScrollStateChanged(int arg0) {
}
}
}
| [
"1048338958@qq.com"
] | 1048338958@qq.com |
b77b707c2d5b571b85bded598ee362c16ddd25d4 | 09dfa9547a6f16cc0320ba82ccfae0a4b9101211 | /src/main/java/com/experts/core/biller/statemachine/api/gigaspace/daos/repo/employees/EmployeePerfomanceRepo.java | 7f43ba556e0e5060fbaa7a857df1415410c55035 | [] | no_license | yousefataya/CloudServer2.0 | 06d6da5fc18c1742f5ad5177bde8743cd637053e | 5b59297555f28da08354c9ede43d1f2113795a21 | refs/heads/master | 2022-12-08T15:01:29.777783 | 2019-12-21T16:14:28 | 2019-12-21T16:14:28 | 229,401,900 | 0 | 2 | null | 2022-11-15T23:53:30 | 2019-12-21T08:55:45 | Java | UTF-8 | Java | false | false | 947 | java | package com.experts.core.biller.statemachine.api.gigaspace.daos.repo.employees;
import com.experts.core.biller.statemachine.api.model.domain.jpa.employee.leave.EmployeeLeaveManage;
import com.experts.core.biller.statemachine.api.model.domain.jpa.employee.performance.EmployeePerfomance;
import io.swagger.annotations.Api;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.data.rest.core.annotation.RestResource;
import javax.ws.rs.Consumes;
@Api(tags = "EmployeePerfomance Entity")
@RepositoryRestResource(path = "EmployeePerfomance" , collectionResourceRel = "EmployeePerfomance")
@RestResource(exported = true ,path = "/service/EmployeePerfomance" , rel = "/service/EmployeePerfomance")
@Consumes("application/json")
public interface EmployeePerfomanceRepo extends JpaRepository<EmployeePerfomance, Long> {
}
| [
"yousef.experts@outlook.com"
] | yousef.experts@outlook.com |
f5183bcd2e49b58e3b0e00f9f7afffb280921377 | 69787a93753b3ae419ba750068ea2908af63a7be | /app/src/test/java/com/masa34/nk225analyzer/ExampleUnitTest.java | 1b576eb608856a072e2be850f3797349c7157b00 | [] | no_license | masa34/Nk225Analyzer | a83b2617ee22e572efe527a1fd0cf7a68538d91c | 3379ab32f068352f9734212d9c53c9cc15194e18 | refs/heads/master | 2021-01-11T09:15:28.947723 | 2020-01-05T14:42:47 | 2020-01-05T14:42:47 | 77,237,244 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 402 | java | package com.masa34.nk225analyzer;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} | [
"masa34.sato@nifty.com"
] | masa34.sato@nifty.com |
eef30a9be8415daa9a4a4fb72d069393df531450 | bf37576ef74315f532c9949cf36a42fb5c2f66b5 | /cc.creativecomputing/demo/cc/creativecomputing/demo/math/spline/CCLinearSplineDemo.java | e5c308e31bc1633320a2df541f2658be16aa1c64 | [] | no_license | nickvido/creativecomputing | bd95d060e9b0e86e531c0dd017e2a034e7277252 | 109148ffd342e5f6ab241b858c89a1c2778d900f | refs/heads/master | 2020-04-09T17:24:35.926062 | 2012-01-23T10:31:50 | 2012-01-23T10:31:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,845 | java | package cc.creativecomputing.demo.math.spline;
import cc.creativecomputing.CCApp;
import cc.creativecomputing.CCApplicationManager;
import cc.creativecomputing.control.CCControl;
import cc.creativecomputing.graphics.CCDrawMode;
import cc.creativecomputing.math.CCMath;
import cc.creativecomputing.math.CCVector3f;
import cc.creativecomputing.math.spline.CCLinearSpline;
public class CCLinearSplineDemo extends CCApp {
private CCLinearSpline _mySpline;
@CCControl(name = "interpolation", min = 0, max = 1)
private float _cInterpolation = 0;
@Override
public void setup() {
CCMath.randomSeed(0);
_mySpline = new CCLinearSpline(true);
for(int i = 0; i < 10;i++){
_mySpline.addControlPoint(new CCVector3f(CCMath.random(-width/3, width/3), CCMath.random(-height/3, height/3)));
}
addControls("app", "app", this);
g.pointSize(8);
frameRate(20);
}
@CCControl(name = "close")
public void closeCurve(boolean theIsClosed){
_mySpline.isClosed(theIsClosed);
}
@Override
public void update(final float theDeltaTime) {
}
@Override
public void draw() {
g.clear();
g.color(255);
_mySpline.draw(g);
g.beginShape(CCDrawMode.POINTS);
g.color(255,0,0);
g.vertex(_mySpline.controlPoints().get(0));
g.color(255);
for(int i = 1; i < _mySpline.controlPoints().size() - 1;i++){
g.vertex(_mySpline.controlPoints().get(i));
}
g.color(0,0,255);
g.vertex(_mySpline.controlPoints().get(_mySpline.controlPoints().size() - 1));
g.endShape();
CCVector3f myInterploatedValue = _mySpline.interpolate(_cInterpolation);
g.ellipse(myInterploatedValue, 10);
}
public static void main(String[] args) {
CCApplicationManager myManager = new CCApplicationManager(CCLinearSplineDemo.class);
myManager.settings().size(500, 500);
myManager.settings().antialiasing(8);
myManager.start();
}
}
| [
"info@texone.org"
] | info@texone.org |
6f2ba7d85240f29612d32977c3ef316c661cf7f6 | 1fec016178991e2e9fcc8722843adb960a211c17 | /chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivityLocationBarLayout.java | 16b71700f1fefba0115130e5c084e570ca0f1261 | [
"BSD-3-Clause"
] | permissive | youngbeezee/chromium | 7504dd95c1529c6b25a383cfad095b7681ab7686 | 7938b191e4a1bae161445ab33dd664a1afa799b7 | refs/heads/master | 2022-12-11T01:53:02.566554 | 2017-05-01T16:14:22 | 2017-05-01T16:14:22 | 89,991,004 | 1 | 0 | null | 2017-05-02T04:17:34 | 2017-05-02T04:17:34 | null | UTF-8 | Java | false | false | 3,264 | java | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.searchwidget;
import android.content.Context;
import android.os.Handler;
import android.util.AttributeSet;
import android.view.View;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.omnibox.LocationBarLayout;
import org.chromium.chrome.browser.profiles.Profile;
import org.chromium.ui.UiUtils;
/** Implementation of the {@link LocationBarLayout} that is displayed for widget searches. */
public class SearchActivityLocationBarLayout extends LocationBarLayout {
/** Delegates calls out to the containing Activity. */
public static interface Delegate {
/** Load a URL in the associated tab. */
void loadUrl(String url);
/** The user hit the back button. */
void backKeyPressed();
}
private Delegate mDelegate;
public SearchActivityLocationBarLayout(Context context, AttributeSet attrs) {
super(context, attrs, R.layout.location_bar_base);
setUrlBarFocusable(true);
}
/** Set the {@link Delegate}. */
void setDelegate(Delegate delegate) {
mDelegate = delegate;
}
@Override
protected void loadUrl(String url, int transition) {
mDelegate.loadUrl(url);
}
@Override
public void backKeyPressed() {
mDelegate.backKeyPressed();
}
@Override
public boolean mustQueryUrlBarLocationForSuggestions() {
return true;
}
@Override
public void setUrlToPageUrl() {
// Explicitly do nothing. The tab is invisible, so showing its URL would be confusing.
}
@Override
public void onNativeLibraryReady() {
super.onNativeLibraryReady();
setAutocompleteProfile(Profile.getLastUsedProfile().getOriginalProfile());
setShowCachedZeroSuggestResults(true);
}
/** Called when the SearchActivity has finished initialization. */
void onDeferredStartup(boolean isVoiceSearchIntent) {
SearchWidgetProvider.updateCachedVoiceSearchAvailability(isVoiceSearchEnabled());
if (isVoiceSearchIntent && mUrlBar.isFocused()) onUrlFocusChange(true);
}
/** Begins a new query. */
void beginQuery(boolean isVoiceSearchIntent) {
if (isVoiceSearchEnabled() && isVoiceSearchIntent) {
startVoiceRecognition();
} else {
focusTextBox();
}
}
@Override
protected void updateButtonVisibility() {
super.updateButtonVisibility();
updateMicButtonVisibility(1.0f);
findViewById(R.id.url_action_container).setVisibility(View.VISIBLE);
}
private void focusTextBox() {
if (mNativeInitialized) onUrlFocusChange(true);
mUrlBar.setIgnoreTextChangesForAutocomplete(true);
mUrlBar.setUrl("", null);
mUrlBar.setIgnoreTextChangesForAutocomplete(false);
mUrlBar.setCursorVisible(true);
mUrlBar.setSelection(0, mUrlBar.getText().length());
new Handler().post(new Runnable() {
@Override
public void run() {
UiUtils.showKeyboard(mUrlBar);
}
});
}
}
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
bf233b5682ff5c66168fc847b67b3546d95cd50a | 87d6d510092887fd39ed92e3738df7c0b7962abf | /src/main/java/nc/noumea/mairie/kiosque/validation/ValidationMessage.java | ea7ffec30212a9152d2daede60e4e41eda8fef8f | [] | no_license | DSI-Ville-Noumea/sirh-kiosque-j2ee | 9a68e41f17f97d03677e5907eebd10ba306361a6 | 4659fe24b4deae881cf76af4384fc5577e7fc4e1 | refs/heads/master | 2021-01-25T06:25:05.887273 | 2018-12-19T01:05:45 | 2018-12-19T01:05:45 | 93,568,449 | 0 | 0 | null | 2017-11-16T03:17:48 | 2017-06-06T22:13:31 | Java | UTF-8 | Java | false | false | 1,139 | java | package nc.noumea.mairie.kiosque.validation;
/*
* #%L
* sirh-kiosque-j2ee
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2014 Mairie de Nouméa
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
public class ValidationMessage {
private String message;
public ValidationMessage(String message) {
this.message = message;
}
public ValidationMessage() {
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}
| [
"nicno85@ville-noumea.nc"
] | nicno85@ville-noumea.nc |
57a71e9501659d03ef0c12d1aac2618b3680d121 | 908974d95d3cb5032bc63ae8006d2fff775c0f6a | /Possible/src/main/java/com/yedam/possable/app/rent/domain/CompEstiListJoinVO.java | 05b2e3748b42b9daa7baf088ab17107dec02c77a | [] | no_license | foreveryoun910/Possible | 1093307fa0cf7b0e77023689e10c2408d7b745f1 | 72d46fc659f9fc00b0a7b3e8605e8974370934e9 | refs/heads/main | 2023-08-22T08:07:52.353065 | 2021-10-25T00:57:59 | 2021-10-25T00:57:59 | 406,572,670 | 0 | 4 | null | 2021-09-15T01:58:07 | 2021-09-15T01:23:34 | null | UTF-8 | Java | false | false | 1,369 | java | package com.yedam.possable.app.rent.domain;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.yedam.possable.app.car.domain.CarVO;
import com.yedam.possable.app.company.domain.CompanyVO;
import com.yedam.possable.app.member.domain.MemberVO;
import lombok.Data;
@Data
public class CompEstiListJoinVO {
//EstiSubmitHistoryVO
private Long seq;
private String items;
private Long price;
private String memo;
@DateTimeFormat(pattern = "yyyy/MM/dd")
private Date genDate;
@DateTimeFormat(pattern = "yyyy/MM/dd")
private Date uptDate;
//private CarVO carVO;
private String carNum;
private String brand;
private String segment;
private String model;
private String trim;
private String color;
private Long year;
private String fuel; //가솔린
private Long passenger; //인원
private String mission; //수동 or 자동
private Long trunk;
private Long door;
private Long kmpl;
//private String name;
private String memName;
private String phone; //회원전화번호
//private Long estiSeq;
private Long cmpnSeq;
//private Long carSeq;
private String status;
private MemberVO memberVO;
private CarVO carVO;
private CompanyVO companyVO;
//String[] itemsArr;
}
| [
"lgh0480@gmail.com"
] | lgh0480@gmail.com |
1a741af453141d63b916b07d4352a427ffa8e047 | f63803e896884ba807caad9955d40850b9ecfc67 | /src/main/java/org/myapp/dao/StudentDao.java | 9f6bc0728d60c0e62bcf4656c1767d6ce5db73c0 | [] | no_license | suresh-jagadeesan/spring_boot | ee0193505c9ff2ca8825cf07cc02359ab08e5909 | f9da9e3113c371a771b5cee3f53708ec2f9c5274 | refs/heads/master | 2020-09-05T09:49:11.000883 | 2016-12-02T21:30:28 | 2016-12-02T21:30:28 | 73,521,571 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 870 | java | package org.myapp.dao;
import org.myapp.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
/**
* Created by v-jagads-pho on 11/7/16.
*/
@Repository
public class StudentDao {
@Autowired
private static Map<Integer,Student> students;
static {
students = new HashMap<Integer,Student>() {
{
put(1, new Student(1, "Sam", "CSE"));
put(2, new Student(2, "Terry", "Accounts"));
put(3, new Student(3, "Tamy", "Maths"));
}
};
}
public Collection<Student> getStudents() {
return this.students.values();
}
public Student getStudent(Integer id) {
return this.students.get(id);
}
}
| [
"noreply@github.com"
] | suresh-jagadeesan.noreply@github.com |
2f22f2eda0afad7594537947ff9db5a446f4a407 | 9e2c43c0e5b82bcb2238fc489c630ffd852026c4 | /01_day/src/ForTest.java | 7cb8c25d6af38bc6370764abdcfa66d0c2fc49fe | [] | no_license | arun8082/javaCore | bb51f2835c4e78e18d0da345c01db05af6b29855 | 152f70c8e053e81d47b200e3adf933a6ce3461ec | refs/heads/master | 2020-05-18T02:51:04.310783 | 2019-05-12T14:36:31 | 2019-05-12T14:36:31 | 184,129,619 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 157 | java | class ForTest {
public static void main(String args[]) {
for(int x = 0; x<10; x = x+1)
System.out.println("This is x: " + x);
}
} | [
"Arunendra Kumar@Arunendra_Kumar"
] | Arunendra Kumar@Arunendra_Kumar |
b8e29a19e373972187f8d3f7058d3c020f4d2fbd | d0551662525de02234d45416a3db119ab41d4487 | /pattern6.java | 9452abf53c7b9adcfca22d846dddf0dcf3614f45 | [] | no_license | snehakadam22/Edac-may2021 | b17d9598ebecb6183a2442f81a5388cbdb6708a8 | 11d711085b5e630516a7b0fc1b741fb52a50d42a | refs/heads/main | 2023-04-30T13:48:20.663178 | 2021-05-15T16:48:17 | 2021-05-15T16:48:17 | 365,245,422 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 299 | java | import java.util.*;
class pattern6
{
public static void main(String args[])
{
int i,j,k,l;
for(i=0;i<=5;i++)
{
for(j=1;j<=i;j++)
{
System.out.print(" ");
}
for(k=5;k>=i;k--)
{
System.out.print("*");
}
for(l=4;l>=i;l--)
{
System.out.print("*");
}
System.out.println();
}
}
}
| [
"noreply@github.com"
] | snehakadam22.noreply@github.com |
a159bffbb2ec723a10f606c44911f3c94e7b3584 | 7e160416a566a0c7f2de8c3b7bb899db85c5acf2 | /comxjtu/src/main/java/com/leetcode/everyday/MaxValueAfterReverse.java | 6805720f10c41eff74788e832de6211951a29b3a | [] | no_license | JayVae/Algorithms-java | 03ced94484442a3909c58baff55378b8718cba93 | 01efc96aaafb48e405d252e126734d16ea421661 | refs/heads/master | 2023-08-04T09:06:31.025758 | 2023-07-20T03:15:54 | 2023-07-20T03:15:54 | 133,602,614 | 4 | 2 | null | 2022-04-28T10:00:40 | 2018-05-16T03:01:17 | Java | UTF-8 | Java | false | false | 989 | java | package com.leetcode.everyday;
/**
* @author JS
* @version 1.0
* @date 2023/5/12 16:02
* @description //1330. 翻转子数组得到最大的数组值
*/
public class MaxValueAfterReverse {
public int maxValueAfterReverse(int[] nums) {
int value = 0, n = nums.length;
for (int i = 0; i < n - 1; i++) {
value += Math.abs(nums[i] - nums[i + 1]);
}
int mx1 = 0;
for (int i = 1; i < n - 1; i++) {
mx1 = Math.max(mx1, Math.abs(nums[0] - nums[i + 1]) - Math.abs(nums[i] - nums[i + 1]));
mx1 = Math.max(mx1, Math.abs(nums[n - 1] - nums[i - 1]) - Math.abs(nums[i] - nums[i - 1]));
}
int mx2 = Integer.MIN_VALUE, mn2 = Integer.MAX_VALUE;
for (int i = 0; i < n - 1; i++) {
int x = nums[i], y = nums[i + 1];
mx2 = Math.max(mx2, Math.min(x, y));
mn2 = Math.min(mn2, Math.max(x, y));
}
return value + Math.max(mx1, 2 * (mx2 - mn2));
}
}
| [
"919433524@qq.com"
] | 919433524@qq.com |
d8cd5b54df339fc6efb2ec8b45adcf4d842ef3ac | 7af5e5593b5be186a175dd1f7738daa271b41798 | /src/main/java/com/javaspring/coronavirustracker/controllers/HomeController.java | f42b629b6a11ea00305f76256e5ae4c026350ca3 | [] | no_license | jatin107/coronavirustracker | 7560c5c2aca30a47f28dfbb85556ec87b39fe91c | 6f6ca24187cbd28718e3d1a870f0b4c5a3511de3 | refs/heads/master | 2023-01-01T15:04:09.156451 | 2020-10-31T09:37:48 | 2020-10-31T09:37:48 | 308,847,618 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,384 | java | package com.javaspring.coronavirustracker.controllers;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import com.javaspring.coronavirustracker.models.LocationStats;
import com.javaspring.coronavirustracker.services.CoronaVirusDataService;
@Controller
public class HomeController {
@Autowired
CoronaVirusDataService coronaVirusDataService;
@GetMapping("/")
public String home(Model model) {
List<LocationStats> allStats = coronaVirusDataService.getAllStats();
int totalReportedCases = allStats.stream().mapToInt(stat -> stat.getLatestTotalCases()).sum();
int totalNewCases = allStats.stream().mapToInt(stat -> stat.getDiffFromPrevDay()).sum();
model.addAttribute("locationStats", allStats);
model.addAttribute("totalReportedCases", totalReportedCases);
model.addAttribute("totalNewCases", totalNewCases);
model.addAttribute("lastUpdateOn", coronaVirusDataService.getLastUpdateOn());
//model.addAttribute("totalCountry", allStats.stream().distinct().collect(Collectors.toList()));
List<LocationStats> allStatsDead = coronaVirusDataService.getAllStatsDead();
int totalReportedCasesDead = allStatsDead.stream().mapToInt(stat -> stat.getLatestTotalCases()).sum();
int totalNewCasesDead = allStatsDead.stream().mapToInt(stat -> stat.getDiffFromPrevDay()).sum();
model.addAttribute("totalReportedDeadCases", totalReportedCasesDead);
model.addAttribute("totalNewDeadCases", totalNewCasesDead);
List<LocationStats> allStatsRecovered = coronaVirusDataService.getAllStatsRecovered();
int totalReportedCaseRecovered = allStatsRecovered.stream().mapToInt(stat -> stat.getLatestTotalCases()).sum();
int totalNewCasesRecovered = allStatsRecovered.stream().mapToInt(stat -> stat.getDiffFromPrevDay()).sum();
model.addAttribute("totalReportedRecoveredCases", totalReportedCaseRecovered);
model.addAttribute("totalNewRecoveredCases", totalNewCasesRecovered);
model.addAttribute("mortalityRate", "" + (float) ((float) totalReportedCasesDead / (float) totalReportedCases));
return "home";
}
}
| [
"jatingoyal100@gmail.com"
] | jatingoyal100@gmail.com |
7edea57094cbf88f99727ffe47a73a272440389d | 9fd642a76295160d8c995c2b28871b29776d97a8 | /javaSchoolPrj/src/dto/NoticeBoard.java | 240aee86bbd8764098e76f6838e30342f469f3f5 | [] | no_license | rkdenckdrh/jdh | 7b8da50ae057145c40d7f26a180f980916eb42d5 | 36f14369f2de0625cd98cd89c54dcdb565e0fd73 | refs/heads/master | 2020-06-28T05:08:25.831365 | 2019-08-04T17:03:17 | 2019-08-04T17:03:17 | 200,149,261 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,772 | java | package dto;
import java.sql.Timestamp;
public class NoticeBoard {
private int notice_no;
private String notice_id;
private String notice_title;
private String notice_content;
private Timestamp notice_date;
private int notice_read_count;
private String notice_filename;
public int getNotice_no() {
return notice_no;
}
public void setNotice_no(int notice_no) {
this.notice_no = notice_no;
}
public String getNotice_id() {
return notice_id;
}
public void setNotice_id(String notice_id) {
this.notice_id = notice_id;
}
public String getNotice_title() {
return notice_title;
}
public void setNotice_title(String notice_title) {
this.notice_title = notice_title;
}
public String getNotice_content() {
return notice_content;
}
public void setNotice_content(String notice_content) {
this.notice_content = notice_content;
}
public Timestamp getNotice_date() {
return notice_date;
}
public void setNotice_date(Timestamp notice_date) {
this.notice_date = notice_date;
}
public int getNotice_read_count() {
return notice_read_count;
}
public void setNotice_read_count(int notice_read_count) {
this.notice_read_count = notice_read_count;
}
public String getNotice_filename() {
return notice_filename;
}
public void setNotice_filename(String notice_filename) {
this.notice_filename = notice_filename;
}
@Override
public String toString() {
return "NoticeBoard [notice_no=" + notice_no + ", notice_id=" + notice_id + ", notice_title=" + notice_title
+ ", notice_content=" + notice_content + ", notice_date=" + notice_date + ", notice_read_count="
+ notice_read_count + ", notice_filename=" + notice_filename + "]";
}
} | [
"it@DESKTOP-KKV9RH3"
] | it@DESKTOP-KKV9RH3 |
44028cd0324ffa4f388e598f33ba72caebf737c4 | 4b80a1d37087ca4c352fb026cca641b5310f8a24 | /trunk/andedu/src/main/java/com/eb/bi/rs/andedu/itemcf/similarity/.svn/text-base/UserScoreMapper.java.svn-base | 9ab39906d7b42f31b4dd42d7b69ff6bdc0a95167 | [] | no_license | byr-ly/leetcode | 292ff93245d81a6b271c7785896330d271ea5915 | 4eb8966b237c81a68822f81b17158ee5d91c9400 | refs/heads/master | 2022-11-09T15:20:29.792485 | 2017-11-07T12:06:05 | 2017-11-07T12:06:05 | 77,654,665 | 1 | 0 | null | 2022-11-04T22:44:01 | 2016-12-30T02:40:38 | Java | UTF-8 | Java | false | false | 691 | package com.eb.bi.rs.andedu.itemcf.similarity;
import java.io.IOException;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
public class UserScoreMapper extends Mapper<Object, Text, Text, ScoreWritable> {
/*
* 格式:用户|物品|评分
*/
protected void map(Object key, Text value, Context context)
throws IOException, InterruptedException {
String[] fields = value.toString().split("\\|");
if(fields.length != 3){
return;
}
String userID = fields[0];
String objID = fields[1];
double score = Double.parseDouble(fields[2]);
context.write(new Text(userID), new ScoreWritable(objID, score));
}
}
| [
"liyang@liyangdeMacBook-Pro.local"
] | liyang@liyangdeMacBook-Pro.local | |
b03ae20351353d73ebd59849fbc38bac65435d9f | 8a38bc7a1061cfb01cd581da9958033ccbdee654 | /dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/user/UserDeletionHandler.java | 5f259794df0e37edf4a35e8fdd959427a855d798 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | abyot/eotcnor | e4432448c91ca8a761fcb3088ecb52d97d0931e5 | 7220fd9f830a7a718c1231aa383589986f6ac5b9 | refs/heads/main | 2022-11-05T14:48:38.028658 | 2022-10-28T10:07:33 | 2022-10-28T10:07:33 | 120,287,850 | 0 | 0 | null | 2018-02-05T11:02:05 | 2018-02-05T10:10:22 | null | UTF-8 | Java | false | false | 4,109 | java | /*
* Copyright (c) 2004-2021, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* Neither the name of the HISP project nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.hisp.dhis.user;
import lombok.AllArgsConstructor;
import org.hisp.dhis.common.IdentifiableObjectManager;
import org.hisp.dhis.fileresource.FileResource;
import org.hisp.dhis.organisationunit.OrganisationUnit;
import org.hisp.dhis.system.deletion.DeletionHandler;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
/**
* @author Lars Helge Overland
*/
@AllArgsConstructor
@Component( "org.hisp.dhis.user.UserDeletionHandler" )
public class UserDeletionHandler
extends DeletionHandler
{
private final IdentifiableObjectManager idObjectManager;
private final JdbcTemplate jdbcTemplate;
// -------------------------------------------------------------------------
// DeletionHandler implementation
// -------------------------------------------------------------------------
@Override
public String getClassName()
{
return User.class.getSimpleName();
}
@Override
public void deleteUserAuthorityGroup( UserAuthorityGroup authorityGroup )
{
for ( UserCredentials credentials : authorityGroup.getMembers() )
{
credentials.getUserAuthorityGroups().remove( authorityGroup );
idObjectManager.updateNoAcl( credentials );
}
}
@Override
public void deleteOrganisationUnit( OrganisationUnit unit )
{
for ( User user : unit.getUsers() )
{
user.getOrganisationUnits().remove( unit );
idObjectManager.updateNoAcl( user );
}
}
@Override
public void deleteUserGroup( UserGroup group )
{
for ( User user : group.getMembers() )
{
user.getGroups().remove( group );
idObjectManager.updateNoAcl( user );
}
}
@Override
public String allowDeleteUserAuthorityGroup( UserAuthorityGroup authorityGroup )
{
for ( UserCredentials credentials : authorityGroup.getMembers() )
{
for ( UserAuthorityGroup role : credentials.getUserAuthorityGroups() )
{
if ( role.equals( authorityGroup ) )
{
return credentials.getName();
}
}
}
return null;
}
@Override
public String allowDeleteFileResource( FileResource fileResource )
{
String sql = "SELECT COUNT(*) FROM userinfo where avatar=" + fileResource.getId();
return jdbcTemplate.queryForObject( sql, Integer.class ) == 0 ? null : ERROR;
}
}
| [
"abyota@gmail.com"
] | abyota@gmail.com |
7e13d9f5a32b047811b3498aed4a4a81a2c12160 | 53469227fa2f0ea31d4d1555841e4a9de01f87da | /Lab4/src/expressions/unaryOp/Ln.java | 79f237907ffea656d214a05bc807fd93ea75faea | [] | no_license | FedosOnGIT/Optimization | bc5c1e05b06b4d6ee8b120d1b055f54e1458e08c | 5da46f0f2e3b60d0d47deb7c0d76c210ab17ca72 | refs/heads/master | 2023-05-31T23:21:28.327421 | 2021-06-24T11:35:38 | 2021-06-24T12:22:45 | 340,658,338 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 398 | java | package expressions.unaryOp;
import expressions.Expression;
import expressions.binaryOp.Divide;
public class Ln extends UnaryOperation {
public Ln(Expression x) {
super(x, "ln");
}
@Override
protected Double doEvaluate(Double a) {
return Math.log(a);
}
@Override
protected Expression doDiff(Expression dx) {
return new Divide(dx, x);
}
}
| [
"a.slastin@bk.ru"
] | a.slastin@bk.ru |
c6b3d81b300e951bddcf9ce0e95af9f854fd383f | 9d7a8345845e53843958263c75b618eef83327f1 | /RestInterfaces/ClientBase/src/main/java/edu/kit/dama/rest/base/ICommonRestInterface.java | 9331bdbc1af619c120760065bc347bb2995ccedb | [
"Apache-2.0"
] | permissive | kit-data-manager/base | 39f543b2b7824ebc2cd92f46366f7d4b82e44895 | 3420af44035768f5111ea9f279b285ac0e22633a | refs/heads/master | 2021-07-18T07:40:27.960912 | 2020-06-16T05:30:20 | 2020-06-16T05:30:20 | 41,793,596 | 3 | 4 | Apache-2.0 | 2020-07-01T20:55:08 | 2015-09-02T09:52:14 | Java | UTF-8 | Java | false | false | 1,478 | java | /**
* Copyright (C) 2014 Karlsruhe Institute of Technology
*
* 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 edu.kit.dama.rest.base;
import com.qmino.miredot.annotations.ReturnType;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
/**
* Basic service interface providing method that should be available in all
* services.
*
* @author mf6319
*/
public interface ICommonRestInterface {
/**
* Perform a simple service check by calling it. If the service is available,
* status 200 should be returned.
*
* @summary Perform a simple service check.
*
* @return HTTP response with an according HTTP status code.
*/
@GET
@Path(value = "/checkService/")
@Produces(MediaType.APPLICATION_JSON)
@ReturnType("edu.kit.dama.rest.base.types.CheckServiceResponse")
Response checkService();
}
| [
"thomas.jejkal@kit.edu"
] | thomas.jejkal@kit.edu |
a887cd75f533c7de24a49f81c9652bb8d3116c58 | 5e6e22a25a8437690c235ce4bee9ee372b532e99 | /app/src/main/java/com/example/wolf_z/bookingroom/BookingDetail.java | 0a87a8a0d82f22a5527269f28d720e37ebc63213 | [] | no_license | Saksukrit/Booking-Room | 9859f24b38a322585bcec7e9e2e2e387458b1dae | ba85f32313ed0d63fbf50c6357d28b8b2f4e2f78 | refs/heads/master | 2020-09-24T12:09:54.455801 | 2016-11-28T02:57:37 | 2016-11-28T02:57:37 | 67,211,661 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 13,664 | java | package com.example.wolf_z.bookingroom;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.AsyncTask;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import com.example.wolf_z.bookingroom.Bean.AccountBean;
import com.example.wolf_z.bookingroom.Bean.BookBean;
import com.example.wolf_z.bookingroom.Bean.Participant;
import com.example.wolf_z.bookingroom.Config.Check_Internet_Connection;
import com.example.wolf_z.bookingroom.Config.ServiceURLconfig;
import com.example.wolf_z.bookingroom.Createbooking.Createbooking;
import com.example.wolf_z.bookingroom.Custom.CustomAdapter_Pname;
import com.google.gson.Gson;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Objects;
public class BookingDetail extends AppCompatActivity {
private Check_Internet_Connection connection = new Check_Internet_Connection(this);
private ServiceURLconfig serviceURLconfig = new ServiceURLconfig();
protected Bundle bundle;
protected String username;
protected String bookingid;
protected String checkfrommain;
private ArrayList<BookBean> bookBeans = new ArrayList<>();
private ArrayList<AccountBean> accountBeans = new ArrayList<>();
private Participant participant = new Participant();
private ProgressDialog prgDialog;
protected ActionBar actionBar;
private TextView txtsubject;
private TextView txtdetail;
private TextView txtmeetingtype;
private TextView txtdate;
private TextView txtstarttime;
private TextView txtendtime;
private TextView txtroomid;
private TextView txtprojectorid;
private ListView listView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_booking_detail);
bundle = getIntent().getExtras();
username = bundle.getString("username"); // for permission to delete
bookingid = bundle.getString("bookingid");
checkfrommain = bundle.getString("checkfrommain");
prgDialog = new ProgressDialog(this);
prgDialog.setMessage("Please wait...");
prgDialog.setCancelable(false);
listView = (ListView) findViewById(R.id.Pnamelist);
txtsubject = (TextView) findViewById(R.id.subject);
txtdetail = (TextView) findViewById(R.id.detail);
txtmeetingtype = (TextView) findViewById(R.id.meetingtype);
txtdate = (TextView) findViewById(R.id.txtdate);
txtstarttime = (TextView) findViewById(R.id.txtstarttime);
txtendtime = (TextView) findViewById(R.id.txtendtime);
txtroomid = (TextView) findViewById(R.id.roomid);
txtprojectorid = (TextView) findViewById(R.id.projectorid);
actionBar = getSupportActionBar();
/** Query */
String[] URL = {serviceURLconfig.getLocalhosturl() + "/BookingRoomService/mainrest/restservice/showdetail"
, serviceURLconfig.getLocalhosturl() + "/BookingRoomService/mainrest/restservice/showpaticipant"};
// Params
participant.setBookingid(Integer.parseInt(bookingid));
//check internet connection
if (!connection.isOnline()) {
Toast.makeText(getApplicationContext(), "Sorry ,Not internet connected", Toast.LENGTH_LONG).show();
} else {
new Detail().execute(URL);
}
}
private class Detail extends AsyncTask<String, Void, String[]> {
String[] result = {""};
@Override
protected void onPreExecute() {
prgDialog.show();
}
protected String doCon(String url, Participant participant) {
String result = "";
try {
/** POST **/
HttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(url);
Gson gson = new Gson();
StringEntity stringEntity = new StringEntity(gson.toJson(participant));
httpPost.setEntity(stringEntity);
httpPost.setHeader("Content-type", "application/json");
HttpResponse httpResponse = httpClient.execute(httpPost);
HttpEntity httpEntity = httpResponse.getEntity();
if (httpEntity != null) {
result = EntityUtils.toString(httpEntity);
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (ClientProtocolException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return result;
}
@Override
protected String[] doInBackground(String... urls) {
result = new String[urls.length];
result[0] = doCon(urls[0], participant);
result[1] = doCon(urls[1], participant);
return result;
}
@Override
protected void onPostExecute(String[] result) {
prgDialog.dismiss();
/** detail */
JSONArray jsonArray;
try {
jsonArray = new JSONArray(result[0]);
for (int i = 0; i < jsonArray.length(); i++) {
JSONObject jsonObject = jsonArray.getJSONObject(i);
BookBean bookBean = new BookBean();
bookBean.setSubject(jsonObject.getString("subject"));
bookBean.setMeeting_type(jsonObject.getString("meeting_type"));
bookBean.setDate(jsonObject.getString("date"));
bookBean.setStarttime(jsonObject.getString("starttime"));
bookBean.setEndtime(jsonObject.getString("endtime"));
bookBean.setDetail(jsonObject.getString("detail"));
bookBean.setRoomid(jsonObject.getInt("roomid"));
bookBean.setProjid(jsonObject.getInt("projid"));
bookBeans.add(bookBean);
}
} catch (JSONException e) {
e.printStackTrace();
}
for (int i = 0; i < bookBeans.size(); i++) {
txtsubject.setText(bookBeans.get(i).getSubject());
txtdetail.setText(bookBeans.get(i).getDetail());
txtmeetingtype.setText(bookBeans.get(i).getMeeting_type());
txtdate.setText(bookBeans.get(i).getDate());
txtstarttime.setText(bookBeans.get(i).getStarttime());
txtendtime.setText(bookBeans.get(i).getEndtime());
txtroomid.setText(String.valueOf(bookBeans.get(i).getRoomid()));
if (bookBeans.get(i).getProjid() == 0) {
txtprojectorid.setText("unselected");
} else {
txtprojectorid.setText(String.valueOf(bookBeans.get(i).getProjid()));
}
}
/**********************************************************/
/** participant */
try {
jsonArray = new JSONArray(result[1]);
for (int i = 0; i < jsonArray.length(); i++) {
JSONObject jsonObject = jsonArray.getJSONObject(i);
AccountBean accountBean = new AccountBean();
accountBean.setDisplayname(jsonObject.getString("displayname"));
accountBean.setDepartment(jsonObject.getString("department"));
accountBeans.add(accountBean);
}
} catch (JSONException e) {
e.printStackTrace();
}
CustomAdapter_Pname adapter = new CustomAdapter_Pname(getApplicationContext(), accountBeans);
listView.setAdapter(adapter);
}
}
private class DeleteBooking extends AsyncTask<String, Void, String> {
String result = "";
@Override
protected void onPreExecute() {
prgDialog.show();
}
@Override
protected String doInBackground(String... urls) {
try {
/** POST **/
HttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(urls[0]);
Gson gson = new Gson();
StringEntity stringEntity = new StringEntity(gson.toJson(participant));
httpPost.setEntity(stringEntity);
httpPost.setHeader("Content-type", "application/json");
HttpResponse httpResponse = httpClient.execute(httpPost);
HttpEntity httpEntity = httpResponse.getEntity();
if (httpEntity != null) {
result = EntityUtils.toString(httpEntity);
}
} catch (IOException e) {
e.printStackTrace();
}
return result;
}
@Override
protected void onPostExecute(String result) {
prgDialog.dismiss();
String error_msg = "";
try {
JSONObject jsonObject = new JSONObject(result);
error_msg = jsonObject.getString("error_msg");
} catch (JSONException e) {
e.printStackTrace();
}
if (Objects.equals(error_msg, "") || Objects.equals(error_msg, null)) {
String success = "Delete Booking Success ";
Toast toast = Toast.makeText(getApplicationContext(), success, Toast.LENGTH_SHORT);
toast.show();
} else {
String OutputData = " Ops! : " + error_msg;
Toast toast = Toast.makeText(getApplicationContext(), OutputData, Toast.LENGTH_SHORT);
toast.show();
}
}
}
/**
* Actionbar
*/
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
MenuItem menu_edit = menu.add(0, 0, 0, "Edit");
{
menu_edit.setIcon(R.drawable.edit128);
menu_edit.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
}
MenuItem menu_create = menu.add(1, 1, 1, "Create");
{
menu_create.setIcon(R.drawable.create512);
menu_create.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
}
MenuItem menu_delete = menu.add(2, 2, 2, "Delete");
{
menu_delete.setIcon(R.drawable.clearicon25);
menu_delete.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
}
//check create or edit
if (Objects.equals(checkfrommain, "main")) {
menu_create.setVisible(false);
}
return true;
}
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case 0:
Toast.makeText(this, "Go Edit", Toast.LENGTH_SHORT).show();
Intent intentEdit = new Intent(this, Createbooking.class);
intentEdit.putExtra("bookingid", bookingid);
intentEdit.putExtra("status", "Edit Booking");
intentEdit.putExtra("from", "detail_to_edit");
startActivity(intentEdit);
finish();
return true;
case 1:
Intent intentCreate = new Intent(this, Createbooking.class);
intentCreate.putExtra("from", "detail_to_create");
startActivity(intentCreate);
finish();
return true;
case 2:
//show AlertDialog confirm to delete
new AlertDialog.Builder(this)
.setTitle("Delete Booking")
.setMessage("Do you want to delete this booking ?")
.setIcon(android.R.drawable.ic_dialog_alert)
.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
String URL = serviceURLconfig.getLocalhosturl() + "/BookingRoomService/bookingrest/restservice/deletebooking";
new DeleteBooking().execute(URL);
Intent intentdelete = new Intent();
setResult(1, intentdelete);
finish();
}
})
.setNegativeButton(android.R.string.no, null).show();
return true;
case android.R.id.home:
Intent intent = new Intent();
setResult(1, intent);
finish();
return true;
}
return false;
}
}
| [
"kritzastep@gmail.com"
] | kritzastep@gmail.com |
270a73f8d06d3cf6055819b0d1033a03cc4ad1be | d3201e7294821c84315c2e4b7e4123cd7de29e1d | /src/main/java/com/minionz/backend/visit/domain/VisitRepository.java | de4f75b49421ed87735ff9a9636775b240706686 | [] | no_license | DongLee99/springboot-study-project-qrna | 3408cffe50bccad93041a6fb1f13a4471d1f3cda | 8a67e0f3c596ddbb41218f1ee6772f899c7de733 | refs/heads/main | 2023-08-27T08:18:18.906782 | 2021-10-24T06:52:25 | 2021-10-24T06:52:25 | 410,699,282 | 0 | 1 | null | 2021-09-27T00:55:16 | 2021-09-27T00:55:14 | null | UTF-8 | Java | false | false | 240 | java | package com.minionz.backend.visit.domain;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface VisitRepository extends JpaRepository<Visit, Long> {
}
| [
"jhnj741@naver.com"
] | jhnj741@naver.com |
cac810681cc6eb5f2e28b84d8b19e5fa0794c1c1 | c46f99dbb1ea967302d4ba6f974928c43e0b7eb1 | /src/main/java/org/docx4j/jaxb/NamespacePrefixMappings.java | 9dda184f5b8315db4c28d184e125ab348a90fe74 | [
"Apache-2.0"
] | permissive | manivannans/docx4j | 688320ebde87c6f6d7cd43f32d475eb635d5e9c1 | 777c78a844b98e15c3d472fedd3b3e01e6017327 | refs/heads/master | 2020-12-25T00:50:18.304299 | 2012-05-29T03:59:59 | 2012-05-29T03:59:59 | 4,479,085 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 12,363 | java | /*
* Copyright 2007-2008, Plutext Pty Ltd.
*
* This file is part of docx4j.
docx4j is licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.docx4j.jaxb;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.xml.XMLConstants;
import javax.xml.namespace.NamespaceContext;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathFactory;
import org.apache.commons.lang.text.StrTokenizer;
import org.docx4j.openpackaging.parts.relationships.Namespaces;
/**
* NamespacePrefixMappings, required for JAXB, and XPath.
*
* The intent is to define the namespace prefix mappings in a
* single place.
*
* This class implements NamespaceContext, so it can be used as follows:
*
* XPathFactory factory = XPathFactory.newInstance();
* XPath xPath = factory.newXPath();
* xPath.setNamespaceContext(new NamespacePrefixMappings());
*
* For JAXB, NamespacePrefixMapper (for RI) and NamespacePrefixMapperSunInternal
* (for Java 6) both refer to this class.
*
* @author jharrop
*
*/
public class NamespacePrefixMappings implements NamespaceContext {
/**
* Returns a preferred prefix for the given namespace URI.
*
* @param namespaceUri
* The namespace URI for which the prefix needs to be found.
* Never be null. "" is used to denote the default namespace.
* @param suggestion
* When the content tree has a suggestion for the prefix
* to the given namespaceUri, that suggestion is passed as a
* parameter. Typically this value comes from QName.getPrefix()
* to show the preference of the content tree. This parameter
* may be null, and this parameter may represent an already
* occupied prefix.
* @param requirePrefix
* If this method is expected to return non-empty prefix.
* When this flag is true, it means that the given namespace URI
* cannot be set as the default namespace.
*
* @return
* null if there's no preferred prefix for the namespace URI.
* In this case, the system will generate a prefix for you.
*
* Otherwise the system will try to use the returned prefix,
* but generally there's no guarantee if the prefix will be
* actually used or not.
*
* return "" to map this namespace URI to the default namespace.
* Again, there's no guarantee that this preference will be
* honored.
*
* If this method returns "" when requirePrefix=true, the return
* value will be ignored and the system will generate one.
*/
protected static String getPreferredPrefixStatic(String namespaceUri, String suggestion, boolean requirePrefix) {
if (namespaceUri.equals(Namespaces.NS_WORD12)) {
return "w";
}
if (namespaceUri.equals(Namespaces.PKG_XML)) {
return "pkg";
}
if (namespaceUri.equals("http://schemas.openxmlformats.org/presentationml/2006/main")) {
return "p";
}
if (namespaceUri.equals("http://schemas.openxmlformats.org/officeDocument/2006/custom-properties")) {
return "prop";
}
if (namespaceUri.equals("http://schemas.openxmlformats.org/officeDocument/2006/extended-properties")) {
return "properties";
}
if (namespaceUri.equals("http://schemas.openxmlformats.org/package/2006/metadata/core-properties")) {
return "cp";
}
if (namespaceUri.equals("http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes")) {
return "vt";
}
if (namespaceUri.equals("http://schemas.openxmlformats.org/package/2006/relationships")) {
return "rel";
}
if (namespaceUri.equals(Namespaces.RELATIONSHIPS_OFFICEDOC)) {
return "r";
}
// DrawingML
if (namespaceUri.equals("http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")) {
return "wp";
}
if (namespaceUri.equals("http://schemas.openxmlformats.org/drawingml/2006/chart")) {
return "c";
}
if (namespaceUri.equals("http://schemas.openxmlformats.org/drawingml/2006/main")) {
return "a";
}
if (namespaceUri.equals("http://schemas.openxmlformats.org/drawingml/2006/picture")) {
return "pic";
}
if (namespaceUri.equals("http://schemas.openxmlformats.org/drawingml/2006/diagram")) {
return "dgm";
}
if (namespaceUri.equals("http://schemas.microsoft.com/office/drawing/2008/diagram")) {
return "dsp";
}
if (namespaceUri.equals("urn:schemas-microsoft-com:office:office")) {
return "o";
}
if (namespaceUri.equals("urn:schemas-microsoft-com:vml")) {
return "v";
}
if (namespaceUri.equals("http://schemas.microsoft.com/office/word/2003/auxHint")) {
return "WX";
}
if (namespaceUri.equals("http://schemas.microsoft.com/aml/2001/core")) {
return "aml";
}
if (namespaceUri.equals("urn:schemas-microsoft-com:office:word")) {
return "w10";
}
if (namespaceUri.equals("http://schemas.openxmlformats.org/officeDocument/2006/math")) {
return "m";
}
if (namespaceUri.equals("http://www.w3.org/2001/XMLSchema-instance")) {
return "xsi";
}
if (namespaceUri.equals("http://purl.org/dc/elements/1.1/")) {
return "dc";
}
if (namespaceUri.equals("http://purl.org/dc/terms/")) {
return "dcterms";
}
if (namespaceUri.equals("http://www.w3.org/XML/1998/namespace")) {
return "xml";
}
if (namespaceUri.equals("http://schemas.openxmlformats.org/officeDocument/2006/customXml")) {
return "ds";
}
// OpenDoPE
if (namespaceUri.equals("http://opendope.org/xpaths")) {
return "odx";
}
if (namespaceUri.equals("http://opendope.org/conditions")) {
return "odc";
}
if (namespaceUri.equals("http://opendope.org/components")) {
return "odi";
}
if (namespaceUri.equals("http://opendope.org/questions")) {
return "odq";
}
if (namespaceUri.equals("http://opendope.org/SmartArt/DataHierarchy")) {
return "odgm";
}
// if (namespaceUri.equals("urn:schemas-microsoft-com:office:excel")) {
// return "?";
// }
// if (namespaceUri.equals("http://schemas.openxmlformats.org/drawingml/2006/compatibility")) {
// return "?";
// }
// if (namespaceUri.equals("http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas")) {
// return "?";
// }
// if (namespaceUri.equals("http://schemas.openxmlformats.org/drawingml/2006/chartDrawing")) {
// return "?";
// }
// if (namespaceUri.equals("http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing")) {
// return "?";
// }
// if (namespaceUri.equals("http://schemas.openxmlformats.org/officeDocument/2006/bibliography")) {
// return "?";
// }
// if (namespaceUri.equals("http://schemas.openxmlformats.org/schemaLibrary/2006/main")) {
// return "?";
// }
return suggestion;
}
// ----------------------------------------------------
// implement NamespaceContext,
// for use with for use with javax.xml.xpath
public String getNamespaceURI(String prefix) {
return getNamespaceURIStatic(prefix);
}
protected static String getNamespaceURIStatic(String prefix) {
// Pre-defined prefixes
if (prefix.equals("w"))
return Namespaces.NS_WORD12;
if (prefix.equals("r"))
return Namespaces.RELATIONSHIPS_OFFICEDOC;
if (prefix.equals("pkg"))
return Namespaces.PKG_XML;
if (prefix.equals("p"))
return "http://schemas.openxmlformats.org/presentationml/2006/main";
if (prefix.equals("prop"))
return "http://schemas.openxmlformats.org/officeDocument/2006/custom-properties";
if (prefix.equals("properties"))
return "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties";
if (prefix.equals("cp"))
return "http://schemas.openxmlformats.org/package/2006/metadata/core-properties";
if (prefix.equals("vt"))
return "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes";
if (prefix.equals("rel"))
return "http://schemas.openxmlformats.org/package/2006/relationships";
// DrawingML
if (prefix.equals("wp"))
return "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing";
if (prefix.equals("c"))
return "http://schemas.openxmlformats.org/drawingml/2006/chart";
if (prefix.equals("a"))
return "http://schemas.openxmlformats.org/drawingml/2006/main";
if (prefix.equals("pic"))
return "http://schemas.openxmlformats.org/drawingml/2006/picture";
if (prefix.equals("dgm"))
return "http://schemas.openxmlformats.org/drawingml/2006/diagram";
if (prefix.equals("dsp"))
return "http://schemas.microsoft.com/office/drawing/2008/diagram";
if (prefix.equals("o"))
return "urn:schemas-microsoft-com:office:office";
if (prefix.equals("v"))
return "urn:schemas-microsoft-com:vml";
if (prefix.equals("WX"))
return "http://schemas.microsoft.com/office/word/2003/auxHint";
if (prefix.equals("aml"))
return "http://schemas.microsoft.com/aml/2001/core";
if (prefix.equals("w10"))
return "urn:schemas-microsoft-com:office:word";
if (prefix.equals("m"))
return "http://schemas.openxmlformats.org/officeDocument/2006/math";
if (prefix.equals("xsi"))
return "http://www.w3.org/2001/XMLSchema-instance";
if (prefix.equals("dc"))
return "http://purl.org/dc/elements/1.1/";
if (prefix.equals("dcterms"))
return "http://purl.org/dc/terms/";
if (prefix.equals("xml"))
return "http://www.w3.org/XML/1998/namespace";
if (prefix.equals("ds"))
return "http://schemas.openxmlformats.org/officeDocument/2006/customXml";
// OpenDoPE
if (prefix.equals("odx"))
return "http://opendope.org/xpaths";
if (prefix.equals("odc"))
return "http://opendope.org/conditions";
if (prefix.equals("odi"))
return "http://opendope.org/components";
if (prefix.equals("odq"))
return "http://opendope.org/questions";
if (prefix.equals("odgm"))
return "http://opendope.org/SmartArt/DataHierarchy";
// Registered prefixes
String result = namespaces.get(prefix);
if (result==null) {
return XMLConstants.NULL_NS_URI;
} else {
return result;
}
}
public String getPrefix(String namespaceURI) {
return getPreferredPrefixStatic(namespaceURI, null, false );
// if (namespaceURI.equals(Namespaces.NS_WORD12))
// return "w";
// else if (namespaceURI.equals(Namespaces.RELATIONSHIPS_OFFICEDOC))
// return "r";
// else if (namespaceURI.equals(Namespaces.PKG_XML))
// return "pkg";
// else return null;
}
public Iterator getPrefixes(String namespaceURI) {
return null;
}
private static Map<String, String> namespaces = new HashMap<String, String>();
public static void registerPrefixMappings(String prefixMappings) {
// eg w:prefixMappings="xmlns:ns0='http://schemas.medchart'"
// according to the spec, whitespace is the delimiter
if (prefixMappings==null || prefixMappings.equals("") ) return;
// we get one of these each time we encounter a w:dataBinding
// element in a content control; pity it is not done just
// once!
// first tokenise on space
StrTokenizer tokens = new StrTokenizer(prefixMappings);
while (tokens.hasNext() ) {
String token = tokens.nextToken();
//log.debug("Got: " + token);
int pos = token.indexOf("=");
String prefix = token.substring(6, pos); // drop xmlns:
//log.debug("Got: " + prefix);
String uri = token.substring(pos+2, token.lastIndexOf("'"));
//log.debug("Got: " + uri);
namespaces.put(prefix, uri);
}
}
}
| [
"jason@plutext.org"
] | jason@plutext.org |
2f89efcc844e9eccb94e7adda9e81f962e7a5ec3 | 7c15c16bcbbc25eed280917cca4ae0c22c6c475c | /IRMC-ejb/src/main/java/tn/esprit/IRMC/persistence/Video.java | 3bfb5796800d70a77fe01c00b8b42ebae72c5d40 | [] | no_license | raniakalai/IRMC-JavaEE | 20ddcc1a15682f52665d0dbc27265a7827776b89 | 762af1fcebe93bd3b63fd7c9e1592dd1db38eff5 | refs/heads/master | 2020-04-06T15:13:23.197871 | 2018-11-14T15:39:29 | 2018-11-14T15:39:29 | 157,570,875 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,250 | java | package tn.esprit.IRMC.persistence;
import java.io.Serializable;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import javax.persistence.*;
/**
* Entity implementation class for Entity: Video
*
*/
@Entity
@Table(name ="Video")
public class Video implements Serializable {
// class attributes
private long idVideo;
private String title;
private Double length_Sec;
private String url;
private String description;
private String format;
private boolean enabled;
// Association Attributes
private List<VideoTags> videoTags;
private static final long serialVersionUID = 1L;
public Video() {
super();
this.title = "";
this.length_Sec = 0d;
this.url = "";
this.description = "";
this.format = "";
this.enabled = false;
}
public Video(String title, Double length_Sec, String url, String description, String format, boolean enabled) {
super();
this.title = title;
this.length_Sec = length_Sec;
this.url = url;
this.description = description;
this.format = format;
this.enabled = enabled;
}
@Id
@GeneratedValue( strategy = GenerationType.IDENTITY )
public long getIdVideo() {
return idVideo;
}
public String getTitle() {
return title;
}
public Double getLength_Sec() {
return length_Sec;
}
public String getUrl() {
return url;
}
public String getDescription() {
return description;
}
public String getFormat() {
return format;
}
public boolean isEnabled() {
return enabled;
}
@OneToMany(mappedBy="video" , cascade = {CascadeType.PERSIST , CascadeType.REMOVE })
public List<VideoTags> getVideoTags() {
return videoTags;
}
public void setIdVideo(long idVideo) {
this.idVideo = idVideo;
}
public void setTitle(String title) {
this.title = title;
}
public void setLength_Sec(Double length_Sec) {
this.length_Sec = length_Sec;
}
public void setUrl(String url) {
this.url = url;
}
public void setDescription(String description) {
this.description = description;
}
public void setFormat(String format) {
this.format = format;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public void setVideoTags(List<VideoTags> videoTags) {
this.videoTags = videoTags;
}
}
| [
"rania.kalai@esprit.tn"
] | rania.kalai@esprit.tn |
63018c46b33c0439dc5734018437b8039bce36c7 | d111182dc47dbdba2fec3c5299e988e2b583a9f8 | /src/com/cos/model/ResponseData.java | d4d56a02f1e38deee3487d26ec82c23dd83a3aa5 | [] | no_license | sori4739/Jsp-Model2-MySQL-blog | 813d68ce147bc166cd914ad8d946428b87688ea7 | cf068b8dcd101b9f05e054c61d01d72f7e36f5f3 | refs/heads/master | 2020-09-09T06:55:32.160392 | 2019-11-13T05:44:13 | 2019-11-13T05:44:13 | 221,376,380 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 328 | java | package com.cos.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseData {
private int statusCode; //1,-1
private String status; // "ok" , "fail"
private String statusMessage; //"Parsing error", "Page not found"
}
| [
"sori4739@naver.com"
] | sori4739@naver.com |
e8ad991f1fe6bcd491912a050ee73781624894ac | 87ffc9f9cf1af839e9b919957ebda898de370c91 | /ssm/src/main/java/com/service/ReferalLinkService.java | ed2b5aa8764a4c0ab5bf0aa2f25266ee96101e28 | [] | no_license | yuwei1998/T_mao | bba57f6640bf069fd7553a04b1d3107fbdad88b6 | 1fe953daf550dcf8707c0dc266271543fc94bd29 | refs/heads/master | 2022-12-22T03:13:03.327941 | 2019-10-15T02:56:15 | 2019-10-15T02:56:15 | 215,185,094 | 0 | 0 | null | 2022-12-16T00:46:33 | 2019-10-15T02:11:00 | Java | UTF-8 | Java | false | false | 307 | java | package com.service;
import java.util.List;
import com.form.ReferalLink;
public interface ReferalLinkService {
List<ReferalLink> listAll();
void update(ReferalLink link);
void updateLinkText(Integer id, String text);
void updateLinkLink(Integer id, String link);
ReferalLink get(Integer id);
}
| [
"15179336564@163.com"
] | 15179336564@163.com |
ac475effb816cddb7c1293b4f8e685e9f013f029 | 4950b62d8f08f889781d956d7673ee55a82767d8 | /app/src/main/java/com/green/auri/dsensor/DSensorEventProcessor.java | d86d6b722bf621ddf0df867477e5725c1cb6a79f | [] | no_license | jinghul/auri | 19a10c71edddd6434f2836d7efab3a3e0a91ab89 | 1cb7a3c0862d188cd3e78c5eb581ba219d907ced | refs/heads/master | 2020-04-08T10:38:46.781311 | 2019-04-09T05:16:37 | 2019-04-09T05:16:37 | 159,276,806 | 0 | 2 | null | 2018-11-27T22:31:42 | 2018-11-27T04:37:21 | Java | UTF-8 | Java | false | false | 38,133 | java | package com.green.auri.dsensor;
import android.annotation.TargetApi;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import com.green.auri.dsensor.interfaces.DSensorEventListener;
import com.green.auri.dsensor.utils.DMath;
import com.green.auri.dsensor.utils.Logger;
import java.util.LinkedList;
/**
* Class to process onSensorChanged
* Created by Hoan on 1/31/2016.
*/
public class DSensorEventProcessor implements SensorEventListener {
public static final int DEFAULT_HISTORY_SIZE = 10;
private static final float TWENTY_FIVE_DEGREE_IN_RADIAN = 0.436332313f;
private static final float ONE_FIFTY_FIVE_DEGREE_IN_RADIAN = 2.7052603f;
/**
* Low pass filter constant.
* Use to filter linear acceleration from accelerometer values.
*/
private static final float ALPHA = .1f;
private static final float ONE_MINUS_ALPHA = 1 - ALPHA;
private final float[] mRotationMatrix = new float[9];
private DSensorEvent mAccelerometer;
private DSensorEvent mGravity;
private DSensorEvent mMagneticField;
// need this member to calculate TYPE_WORLD_LINEAR_ACCELERATION
// when device has TYPE_LINEAR_ACCELERATION
private DSensorEvent mLinearAcceleration;
private float mInclination;
/**
* List to keep history of sensor in world coordinate for averaging.
*/
private WorldHistory mAccelerometerInWorldBasisHistories;
private WorldHistory mGravityInWorldBasisHistories;
private WorldHistory mLinearAccelerationInWorldBasisHistories;
/**
* List to keep history directions of compass for averaging.
*/
private DirectionHistory mXAxisDirectionHistories;
private DirectionHistory mMinusXAxisDirectionHistories;
private DirectionHistory mYAxisDirectionHistories;
private DirectionHistory mMinusYAxisDirectionHistories;
private DirectionHistory mZAxisDirectionHistories;
private DirectionHistory mMinusZAxisDirectionHistories;
/**
* The type of sensor to listen to. See DSensor.
*/
private final int mDSensorTypes;
/**
* For DSensor types that required Rotation Matrix
* i.e. direction or world coordinate
*/
private final boolean mProcessDataWithRotationMatrix;
/**
* For sensor type that does not require Rotation Matrix'
* but gravity for calculation
*/
private final boolean mProcessData;
private final boolean mCalculateInclination;
/**
* Flag to indicate device has TYPE_ROTATION_VECTOR. If value is HAS_TYPE_ROTATION_VECTOR then
* all calculation is done when onSensorChanged is of TYPE_ROTATION_VECTOR.
*/
private final int mHasTypeRotationVector;
/**
* Flag to indicate device has TYPE_GRAVITY. If needed and the value is
* DSensorManager.TYPE_GRAVITY_NOT_AVAILABLE then use low filter on accelerometer value.
*/
private final int mHasTypeGravity;
/**
* Flag to indicate device has TYPE_LINEAR_ACCELERATION. If needed and the value is
* DSensorManager.TYPE_LINEAR_ACCELERATION_NOT_AVAILABLE then calculate from
* accelerometer and gravity.
*/
private final int mHasTypeLinearAcceleration;
private final DSensorEventListener mDSensorEventListener;
private final Handler mUIHandler = new Handler(Looper.getMainLooper());
/**
* Constructor.
* @param dSensorTypes Bitwise OR of DSensor types.
* @param historyMaxLength Maximum list length to keep history.
* @param hasTypeRotationVector one of the flag HAS_TYPE_ROTATION_VECTOR,
* TYPE_ROTATION_VECTOR_NOT_NEEDED or
* TYPE_ROTATION_VECTOR_NOT_AVAILABLE.
* @param hasTypeGravity one of the flag HAS_TYPE_GRAVITY,
* TYPE_GRAVITY_NOT_NEEDED or
* TYPE_GRAVITY_NOT_AVAILABLE.
* @param hasTypeLinearAcceleration one of the flag HAS_TYPE_LINEAR_ACCELERATION,
* TYPE_LINEAR_ACCELERATION_NOT_NEEDED or
* TYPE_LINEAR_ACCELERATION_NOT_AVAILABLE.
* @param dSensorEventListener Callback for processed values
*/
public DSensorEventProcessor(int dSensorTypes, int historyMaxLength, int hasTypeRotationVector, int hasTypeGravity,
int hasTypeLinearAcceleration, DSensorEventListener dSensorEventListener) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "constructor(" + dSensorTypes + ", " + historyMaxLength
+ ", " + hasTypeRotationVector + ", " + hasTypeGravity + ", " + hasTypeLinearAcceleration + ")");
mDSensorTypes = dSensorTypes;
mDSensorEventListener = dSensorEventListener;
mHasTypeRotationVector = hasTypeRotationVector;
mHasTypeGravity = hasTypeGravity;
mHasTypeLinearAcceleration = hasTypeLinearAcceleration;
boolean hasDirectionMember = initDirectionHistoryMembers(historyMaxLength);
mProcessDataWithRotationMatrix = initWorldHistoryMembers(historyMaxLength) || hasDirectionMember;
mCalculateInclination = (mDSensorTypes & DSensor.TYPE_INCLINATION) != 0
|| (mDSensorTypes & DSensor.TYPE_DEVICE_ROTATION) != 0 || hasDirectionMember;
mProcessData = mCalculateInclination || (mDSensorTypes & DSensor.TYPE_PITCH) != 0
|| (mDSensorTypes & DSensor.TYPE_ROLL) != 0;
initDSensorEventMembers();
}
private void initDSensorEventMembers() {
if (mProcessDataWithRotationMatrix) {
mMagneticField = new DSensorEvent(DSensor.TYPE_DEVICE_MAGNETIC_FIELD, 3);
mGravity = new DSensorEvent(DSensor.TYPE_DEVICE_GRAVITY, 3);
} else if ((mDSensorTypes & DSensor.TYPE_WORLD_GRAVITY) != 0){
mGravity = new DSensorEvent(DSensor.TYPE_DEVICE_GRAVITY, 3);
} else if ((mDSensorTypes & DSensor.TYPE_WORLD_MAGNETIC_FIELD) != 0){
mMagneticField = new DSensorEvent(DSensor.TYPE_DEVICE_MAGNETIC_FIELD, 3);
}
if (mHasTypeGravity == DSensorManager.TYPE_GRAVITY_NOT_AVAILABLE
|| (mDSensorTypes & DSensor.TYPE_WORLD_ACCELEROMETER) != 0) {
mAccelerometer = new DSensorEvent(DSensor.TYPE_DEVICE_ACCELEROMETER, 3);
}
if (mHasTypeLinearAcceleration == DSensorManager.TYPE_LINEAR_ACCELERATION_NOT_AVAILABLE
&& (mDSensorTypes & DSensor.TYPE_WORLD_LINEAR_ACCELERATION) != 0) {
mLinearAcceleration = new DSensorEvent(DSensor.TYPE_DEVICE_LINEAR_ACCELERATION, 3);
}
}
private boolean initDirectionHistoryMembers(int historyMaxLength) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "initDirectionHistoryMembers(" + historyMaxLength + ")");
if ((mDSensorTypes & DSensor.TYPE_X_AXIS_DIRECTION) != 0) {
mXAxisDirectionHistories = new DirectionHistory(historyMaxLength);
}
if ((mDSensorTypes & DSensor.TYPE_MINUS_X_AXIS_DIRECTION) != 0) {
mMinusXAxisDirectionHistories = new DirectionHistory(historyMaxLength);
}
if ((mDSensorTypes & DSensor.TYPE_Y_AXIS_DIRECTION) != 0) {
mYAxisDirectionHistories = new DirectionHistory(historyMaxLength);
}
if ((mDSensorTypes & DSensor.TYPE_MINUS_Y_AXIS_DIRECTION) != 0) {
mMinusYAxisDirectionHistories = new DirectionHistory(historyMaxLength);
}
if ((mDSensorTypes & DSensor.TYPE_Z_AXIS_DIRECTION) != 0) {
mZAxisDirectionHistories = new DirectionHistory(historyMaxLength);
}
if ((mDSensorTypes & DSensor.TYPE_MINUS_Z_AXIS_DIRECTION) != 0) {
mMinusZAxisDirectionHistories = new DirectionHistory(historyMaxLength);
}
return mXAxisDirectionHistories != null || mYAxisDirectionHistories != null
|| mZAxisDirectionHistories != null || mMinusXAxisDirectionHistories != null
|| mMinusYAxisDirectionHistories != null || mMinusZAxisDirectionHistories != null;
}
private boolean initWorldHistoryMembers(int historyMaxLength) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "initWorldHistoryMembers(" + historyMaxLength + ")");
if ((mDSensorTypes & DSensor.TYPE_WORLD_ACCELEROMETER) != 0) {
mAccelerometerInWorldBasisHistories = new WorldHistory(historyMaxLength, 3);
}
if ((mDSensorTypes & DSensor.TYPE_WORLD_GRAVITY) != 0) {
mGravityInWorldBasisHistories = new WorldHistory(historyMaxLength, 3);
}
if ((mDSensorTypes & DSensor.TYPE_WORLD_LINEAR_ACCELERATION) != 0) {
mLinearAccelerationInWorldBasisHistories = new WorldHistory(historyMaxLength, 3);
}
return ((mDSensorTypes & DSensor.TYPE_WORLD_MAGNETIC_FIELD) != 0)
|| mLinearAccelerationInWorldBasisHistories != null
|| mGravityInWorldBasisHistories != null
|| mAccelerometerInWorldBasisHistories != null;
}
@Override
public void onSensorChanged(SensorEvent event) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "onSensorChanged");
final DProcessedSensorEvent.DProcessedSensorEventBuilder builder
= new DProcessedSensorEvent.DProcessedSensorEventBuilder();
final int changedSensorTypes;
int sensorType = event.sensor.getType();
if (sensorType == Sensor.TYPE_ACCELEROMETER) {
changedSensorTypes = onAccelerometerChanged(event, builder);
} else if (sensorType == Sensor.TYPE_GYROSCOPE) {
changedSensorTypes = onGyroscopeChanged(event, builder);
} else if (sensorType == Sensor.TYPE_MAGNETIC_FIELD) {
changedSensorTypes = onMagneticFieldChanged(event, builder);
} else if (sensorType == Sensor.TYPE_ORIENTATION) {
changedSensorTypes = onOrientationChanged(event, builder);
} else if (Build.VERSION.SDK_INT > Build.VERSION_CODES.FROYO) {
if (sensorType == Sensor.TYPE_GRAVITY) {
changedSensorTypes = onGravityChanged(event, builder);
} else if (sensorType == Sensor.TYPE_LINEAR_ACCELERATION) {
changedSensorTypes = onLinearAccelerationChanged(event, builder);
} else if (sensorType == Sensor.TYPE_ROTATION_VECTOR) {
changedSensorTypes = onRotationVectorChanged(event, builder);
} else {
changedSensorTypes = 0;
}
} else {
changedSensorTypes = 0;
}
if (changedSensorTypes != 0) {
mUIHandler.post(new Runnable() {
@Override
public void run() {
mDSensorEventListener.onDSensorChanged(changedSensorTypes, builder.build());
}
});
}
}
@Override
public void onAccuracyChanged(Sensor sensor, int accuracy) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "onAccuracyChanged(" + sensor.getName() + ", " + accuracy + ")");
}
private int onAccelerometerChanged(SensorEvent event, DProcessedSensorEvent.DProcessedSensorEventBuilder builder) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "onAccelerometerChanged");
int changedSensorTypes = 0;
if (mAccelerometer != null) {
mAccelerometer.accuracy = event.accuracy;
mAccelerometer.timestamp = event.timestamp;
System.arraycopy(event.values, 0, mAccelerometer.values, 0, event.values.length);
}
if ((mDSensorTypes & DSensor.TYPE_DEVICE_ACCELEROMETER) != 0) {
builder.setAccelerometerInDeviceBasis(new DSensorEvent(DSensor.TYPE_DEVICE_ACCELEROMETER,
event.accuracy, event.timestamp, event.values));
changedSensorTypes = DSensor.TYPE_DEVICE_ACCELEROMETER;
}
if (mHasTypeGravity == DSensorManager.TYPE_GRAVITY_NOT_AVAILABLE) {
changedSensorTypes |= calculateGravity(builder);
if ((mDSensorTypes & DSensor.TYPE_DEVICE_LINEAR_ACCELERATION) != 0
|| (mDSensorTypes & DSensor.TYPE_WORLD_LINEAR_ACCELERATION) != 0) {
changedSensorTypes |= calculateLinearAcceleration(builder);
}
if (mMagneticField != null) {
if (mProcessDataWithRotationMatrix && mHasTypeRotationVector == DSensorManager.TYPE_ROTATION_VECTOR_NOT_AVAILABLE) {
if (SensorManager.getRotationMatrix(mRotationMatrix, null, mGravity.values, mMagneticField.values)) {
changedSensorTypes |= processSensorDataWithRotationMatrix(builder);
}
} else if (mProcessData) {
changedSensorTypes |= processSensorData(builder);
}
}
}
return changedSensorTypes;
}
private int onGravityChanged(SensorEvent event, DProcessedSensorEvent.DProcessedSensorEventBuilder builder) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "onGravityChanged");
int changedSensorTypes = 0;
if (mGravity != null) {
mGravity.accuracy = event.accuracy;
mGravity.timestamp = event.timestamp;
System.arraycopy(event.values, 0, mGravity.values, 0, event.values.length);
}
if ((mDSensorTypes & DSensor.TYPE_DEVICE_GRAVITY) != 0) {
builder.setGravityInDeviceBasis(new DSensorEvent(DSensor.TYPE_DEVICE_GRAVITY, event.accuracy,
event.timestamp, event.values));
changedSensorTypes |= DSensor.TYPE_DEVICE_GRAVITY;
}
if (mMagneticField != null) {
if (mProcessDataWithRotationMatrix && mHasTypeRotationVector == DSensorManager.TYPE_ROTATION_VECTOR_NOT_AVAILABLE) {
if (SensorManager.getRotationMatrix(mRotationMatrix, null, mGravity.values, mMagneticField.values)) {
changedSensorTypes |= processSensorDataWithRotationMatrix(builder);
}
} else if (mProcessData) {
changedSensorTypes |= processSensorData(builder);
}
}
return changedSensorTypes;
}
private int onMagneticFieldChanged(SensorEvent event, DProcessedSensorEvent.DProcessedSensorEventBuilder builder) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "onMagneticFieldChanged");
int changedSensorTypes = 0;
if (mMagneticField != null) {
mMagneticField.accuracy = event.accuracy;
mMagneticField.timestamp = event.timestamp;
System.arraycopy(event.values, 0, mMagneticField.values, 0, event.values.length);
}
if ((mDSensorTypes & DSensor.TYPE_DEVICE_MAGNETIC_FIELD) != 0) {
builder.setMagneticFieldInDeviceBasis(new DSensorEvent(DSensor.TYPE_DEVICE_MAGNETIC_FIELD,
event.accuracy, event.timestamp, event.values));
changedSensorTypes |= DSensor.TYPE_DEVICE_MAGNETIC_FIELD;
}
if (mGravity != null) {
if (mProcessDataWithRotationMatrix && mHasTypeRotationVector == DSensorManager.TYPE_ROTATION_VECTOR_NOT_AVAILABLE) {
if (SensorManager.getRotationMatrix(mRotationMatrix, null, mGravity.values, mMagneticField.values)) {
changedSensorTypes |= processSensorDataWithRotationMatrix(builder);
}
} else if (mProcessData) {
changedSensorTypes |= processSensorData(builder);
}
}
return changedSensorTypes;
}
private int onLinearAccelerationChanged(SensorEvent event, DProcessedSensorEvent.DProcessedSensorEventBuilder builder) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "onLinearAccelerationChanged");
int changedSensorTypes = 0;
if ((mDSensorTypes & DSensor.TYPE_DEVICE_LINEAR_ACCELERATION) != 0) {
builder.setLinearAccelerationInDeviceBasis(new DSensorEvent(DSensor.TYPE_DEVICE_LINEAR_ACCELERATION,
event.accuracy, event.timestamp, event.values));
changedSensorTypes |= DSensor.TYPE_DEVICE_LINEAR_ACCELERATION;
}
if ((mDSensorTypes & DSensor.TYPE_WORLD_LINEAR_ACCELERATION) != 0) {
if (mRotationMatrix != null) {
mLinearAccelerationInWorldBasisHistories.add(DSensor.TYPE_DEVICE_LINEAR_ACCELERATION,
event.accuracy, event.timestamp, event.values, mRotationMatrix);
builder.setLinearAccelerationInWorldBasis(mLinearAccelerationInWorldBasisHistories
.getAverageSensorEvent(DSensor.TYPE_DEVICE_LINEAR_ACCELERATION));
changedSensorTypes |= DSensor.TYPE_WORLD_LINEAR_ACCELERATION;
}
}
return changedSensorTypes;
}
private int onOrientationChanged(SensorEvent event, DProcessedSensorEvent.DProcessedSensorEventBuilder builder) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "onOrientationChanged angle = " + Math.round(event.values[0]));
builder.setDepreciatedOrientation(new DSensorEvent(DSensor.TYPE_DEPRECIATED_ORIENTATION,
event.accuracy, event.timestamp, event.values));
return DSensor.TYPE_DEPRECIATED_ORIENTATION;
}
private int onGyroscopeChanged(SensorEvent event, DProcessedSensorEvent.DProcessedSensorEventBuilder builder) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "onGyroscopeChanged");
int changedSensorTypes = 0;
float[] gyroscope = new float[event.values.length];
System.arraycopy(event.values, 0, gyroscope, 0, event.values.length);
if ((mDSensorTypes & DSensor.TYPE_GYROSCOPE) != 0) {
builder.setGyroscope(new DSensorEvent(DSensor.TYPE_GYROSCOPE, event.accuracy,
event.timestamp, gyroscope));
changedSensorTypes |= DSensor.TYPE_GYROSCOPE;
}
return changedSensorTypes;
}
@TargetApi(9)
private int onRotationVectorChanged(SensorEvent event, DProcessedSensorEvent.DProcessedSensorEventBuilder builder) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "onRotationVectorChanged");
int changedSensorTypes = 0;
float[] rotationVector = new float[event.values.length];
System.arraycopy(event.values, 0, rotationVector, 0, event.values.length);
if ((mDSensorTypes & DSensor.TYPE_ROTATION_VECTOR) != 0) {
builder.setRotationVector(new DSensorEvent(DSensor.TYPE_ROTATION_VECTOR, event.accuracy,
event.timestamp, rotationVector));
changedSensorTypes |= DSensor.TYPE_ROTATION_VECTOR;
}
SensorManager.getRotationMatrixFromVector(mRotationMatrix, rotationVector);
if (mProcessDataWithRotationMatrix) {
changedSensorTypes |= processSensorDataWithRotationMatrix(builder);
}
return changedSensorTypes;
}
private int processSensorData(DProcessedSensorEvent.DProcessedSensorEventBuilder builder) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "processSensorData");
int changedSensorTypes = 0;
float gravityNorm = DMath.calculateNorm(mGravity.values);
if ((mDSensorTypes & DSensor.TYPE_DEVICE_ROTATION) != 0) {
mInclination = (float) Math.acos(mGravity.values[2] / gravityNorm);
if ((mDSensorTypes & DSensor.TYPE_INCLINATION) != 0) {
builder.setInclination(new DSensorEvent(DSensor.TYPE_INCLINATION,
mGravity.accuracy, mGravity.timestamp, mInclination));
changedSensorTypes |= DSensor.TYPE_INCLINATION;
}
float deviceRotation;
if (mInclination < TWENTY_FIVE_DEGREE_IN_RADIAN
|| mInclination > ONE_FIFTY_FIVE_DEGREE_IN_RADIAN) {
deviceRotation = Float.NaN;
} else {
deviceRotation = (float) Math.atan2(mGravity.values[0] / gravityNorm,
mGravity.values[1] / gravityNorm);
}
builder.setDeviceRotation(new DSensorEvent(DSensor.TYPE_DEVICE_ROTATION,
mGravity.accuracy, mGravity.timestamp, deviceRotation));
changedSensorTypes |= DSensor.TYPE_DEVICE_ROTATION;
} else if ((mDSensorTypes & DSensor.TYPE_INCLINATION) != 0) {
mInclination = (float) Math.acos(mGravity.values[2] / gravityNorm);
builder.setInclination(new DSensorEvent(DSensor.TYPE_INCLINATION,
mGravity.accuracy, mGravity.timestamp, mInclination));
changedSensorTypes |= DSensor.TYPE_INCLINATION;
}
if ((mDSensorTypes & DSensor.TYPE_PITCH) != 0) {
builder.setPitch(new DSensorEvent(DSensor.TYPE_PITCH, mGravity.accuracy,
mGravity.timestamp, (float)Math.asin(-mGravity.values[1] / gravityNorm)));
changedSensorTypes |= DSensor.TYPE_PITCH;
}
if ((mDSensorTypes & DSensor.TYPE_ROLL) != 0) {
builder.setRoll(new DSensorEvent(DSensor.TYPE_ROLL, mGravity.accuracy, mGravity.timestamp,
(float)Math.atan2(-mGravity.values[0] / gravityNorm, mGravity.values[2] / gravityNorm)));
changedSensorTypes |= DSensor.TYPE_ROLL;
}
return changedSensorTypes;
}
private int processSensorDataWithRotationMatrix(DProcessedSensorEvent.DProcessedSensorEventBuilder builder) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "processSensorDataWithRotationMatrix()");
int changedSensorTypes = 0;
if ((mDSensorTypes & DSensor.TYPE_ROLL) != 0) {
builder.setRoll(new DSensorEvent(DSensor.TYPE_ROLL, mGravity.accuracy, mGravity.timestamp,
(float)Math.atan2(-mRotationMatrix[6], mRotationMatrix[8])));
changedSensorTypes |= DSensor.TYPE_ROLL;
}
if ((mDSensorTypes & DSensor.TYPE_PITCH) != 0) {
builder.setPitch(new DSensorEvent(DSensor.TYPE_PITCH, mGravity.accuracy,
mGravity.timestamp, (float) Math.asin(-mRotationMatrix[7])));
changedSensorTypes |= DSensor.TYPE_PITCH;
}
if ((mDSensorTypes & DSensor.TYPE_WORLD_ACCELEROMETER) != 0) {
mAccelerometerInWorldBasisHistories.add(mAccelerometer, mRotationMatrix);
builder.setAccelerometerInWorldBasis(mAccelerometerInWorldBasisHistories
.getAverageSensorEvent(DSensor.TYPE_WORLD_ACCELEROMETER));
changedSensorTypes |= DSensor.TYPE_WORLD_ACCELEROMETER;
}
if ((mDSensorTypes & DSensor.TYPE_WORLD_GRAVITY) != 0) {
mGravityInWorldBasisHistories.add(mGravity, mRotationMatrix);
builder.setGravityInWorldBasis(mGravityInWorldBasisHistories
.getAverageSensorEvent(DSensor.TYPE_WORLD_GRAVITY));
changedSensorTypes |= DSensor.TYPE_WORLD_GRAVITY;
}
if ((mDSensorTypes & DSensor.TYPE_WORLD_MAGNETIC_FIELD) != 0) {
builder.setMagneticFieldInWorldBasis(new DSensorEvent(DSensor.TYPE_WORLD_MAGNETIC_FIELD,
mMagneticField.accuracy, mMagneticField.timestamp,
DMath.productOfSquareMatrixAndVector(mRotationMatrix, mMagneticField.values)));
changedSensorTypes |= DSensor.TYPE_WORLD_MAGNETIC_FIELD;
}
if (mHasTypeLinearAcceleration == DSensorManager.TYPE_LINEAR_ACCELERATION_NOT_AVAILABLE) {
mLinearAccelerationInWorldBasisHistories.add(mLinearAcceleration, mRotationMatrix);
builder.setLinearAccelerationInWorldBasis(mLinearAccelerationInWorldBasisHistories
.getAverageSensorEvent(DSensor.TYPE_WORLD_MAGNETIC_FIELD));
changedSensorTypes |= DSensor.TYPE_WORLD_LINEAR_ACCELERATION;
}
if (mCalculateInclination) {
mInclination = (float) Math.acos(mRotationMatrix[8]);
if ((mDSensorTypes & DSensor.TYPE_INCLINATION) != 0) {
builder.setInclination(new DSensorEvent(DSensor.TYPE_INCLINATION,
mGravity.accuracy, mGravity.timestamp, mInclination));
changedSensorTypes |= DSensor.TYPE_INCLINATION;
}
// Due to noise and numerical limitation, only compass
// field is calculable when inclination < 25 or inclination > 155
if (mInclination < TWENTY_FIVE_DEGREE_IN_RADIAN
|| mInclination > ONE_FIFTY_FIVE_DEGREE_IN_RADIAN) {
if ((mDSensorTypes & DSensor.TYPE_Z_AXIS_DIRECTION) != 0) {
mZAxisDirectionHistories.clearHistories();
builder.setZAxisDirection(new DSensorEvent(DSensor.TYPE_Z_AXIS_DIRECTION, 0, 0, Float.NaN));
changedSensorTypes |= DSensor.TYPE_Z_AXIS_DIRECTION;
}
if ((mDSensorTypes & DSensor.TYPE_MINUS_Z_AXIS_DIRECTION) != 0) {
mMinusZAxisDirectionHistories.clearHistories();
builder.setMinusZAxisDirection(new DSensorEvent(DSensor.TYPE_MINUS_Z_AXIS_DIRECTION, 0, 0, Float.NaN));
changedSensorTypes |= DSensor.TYPE_MINUS_Z_AXIS_DIRECTION;
}
if ((mDSensorTypes & DSensor.TYPE_Y_AXIS_DIRECTION) != 0) {
mYAxisDirectionHistories.add(new DSensorEvent(DSensor.TYPE_Y_AXIS_DIRECTION,
mGravity.accuracy, mGravity.timestamp > mMagneticField.timestamp ? mGravity.timestamp
: mMagneticField.timestamp, (float) Math.atan2(mRotationMatrix[1], mRotationMatrix[4])));
builder.setYAxisDirection(mYAxisDirectionHistories
.getAverageSensorEvent(DSensor.TYPE_Y_AXIS_DIRECTION));
changedSensorTypes |= DSensor.TYPE_Y_AXIS_DIRECTION;
}
if ((mDSensorTypes & DSensor.TYPE_MINUS_Y_AXIS_DIRECTION) != 0) {
mMinusYAxisDirectionHistories.add(new DSensorEvent(DSensor.TYPE_MINUS_Y_AXIS_DIRECTION,
mGravity.accuracy, mGravity.timestamp > mMagneticField.timestamp ? mGravity.timestamp
: mMagneticField.timestamp, (float) Math.atan2(-mRotationMatrix[1], -mRotationMatrix[4])));
builder.setMinusYAxisDirection(mMinusYAxisDirectionHistories
.getAverageSensorEvent(DSensor.TYPE_MINUS_Y_AXIS_DIRECTION));
changedSensorTypes |= DSensor.TYPE_MINUS_Y_AXIS_DIRECTION;
}
if ((mDSensorTypes & DSensor.TYPE_X_AXIS_DIRECTION) != 0) {
mXAxisDirectionHistories.add(new DSensorEvent(DSensor.TYPE_X_AXIS_DIRECTION,
mGravity.accuracy, mGravity.timestamp > mMagneticField.timestamp ? mGravity.timestamp
: mMagneticField.timestamp, (float) Math.atan2(mRotationMatrix[0], mRotationMatrix[3])));
builder.setXAxisDirection(mXAxisDirectionHistories
.getAverageSensorEvent(DSensor.TYPE_X_AXIS_DIRECTION));
changedSensorTypes |= DSensor.TYPE_X_AXIS_DIRECTION;
}
if ((mDSensorTypes & DSensor.TYPE_MINUS_X_AXIS_DIRECTION) != 0) {
mMinusXAxisDirectionHistories.add(new DSensorEvent(DSensor.TYPE_MINUS_X_AXIS_DIRECTION,
mGravity.accuracy, mGravity.timestamp > mMagneticField.timestamp ? mGravity.timestamp
: mMagneticField.timestamp, (float) Math.atan2(-mRotationMatrix[0], -mRotationMatrix[3])));
builder.setMinusXAxisDirection(mMinusXAxisDirectionHistories
.getAverageSensorEvent(DSensor.TYPE_MINUS_X_AXIS_DIRECTION));
changedSensorTypes |= DSensor.TYPE_MINUS_X_AXIS_DIRECTION;
}
if ((mDSensorTypes & DSensor.TYPE_DEVICE_ROTATION) != 0) {
builder.setDeviceRotation(new DSensorEvent(DSensor.TYPE_DEVICE_ROTATION,
mGravity.accuracy, mGravity.timestamp, Float.NaN));
changedSensorTypes |= DSensor.TYPE_DEVICE_ROTATION;
}
} else {
if ((mDSensorTypes & DSensor.TYPE_Y_AXIS_DIRECTION) != 0) {
mYAxisDirectionHistories.clearHistories();
builder.setYAxisDirection(new DSensorEvent(DSensor.TYPE_Y_AXIS_DIRECTION, 0, 0, Float.NaN));
changedSensorTypes |= DSensor.TYPE_Y_AXIS_DIRECTION;
}
if ((mDSensorTypes & DSensor.TYPE_MINUS_Y_AXIS_DIRECTION) != 0) {
mMinusYAxisDirectionHistories.clearHistories();
builder.setMinusYAxisDirection(new DSensorEvent(DSensor.TYPE_MINUS_Y_AXIS_DIRECTION, 0, 0, Float.NaN));
changedSensorTypes |= DSensor.TYPE_MINUS_Y_AXIS_DIRECTION;
}
if ((mDSensorTypes & DSensor.TYPE_X_AXIS_DIRECTION) != 0) {
mXAxisDirectionHistories.clearHistories();
builder.setXAxisDirection(new DSensorEvent(DSensor.TYPE_X_AXIS_DIRECTION, 0, 0, Float.NaN));
changedSensorTypes |= DSensor.TYPE_X_AXIS_DIRECTION;
}
if ((mDSensorTypes & DSensor.TYPE_MINUS_X_AXIS_DIRECTION) != 0) {
mMinusXAxisDirectionHistories.clearHistories();
builder.setMinusXAxisDirection(new DSensorEvent(DSensor.TYPE_MINUS_X_AXIS_DIRECTION, 0, 0, Float.NaN));
changedSensorTypes |= DSensor.TYPE_MINUS_X_AXIS_DIRECTION;
}
if ((mDSensorTypes & DSensor.TYPE_Z_AXIS_DIRECTION) != 0) {
mZAxisDirectionHistories.add(new DSensorEvent(DSensor.TYPE_Z_AXIS_DIRECTION,
mGravity.accuracy, mGravity.timestamp > mMagneticField.timestamp ? mGravity.timestamp
: mMagneticField.timestamp, (float) Math.atan2(mRotationMatrix[2], mRotationMatrix[5])));
builder.setZAxisDirection(mZAxisDirectionHistories
.getAverageSensorEvent(DSensor.TYPE_Z_AXIS_DIRECTION));
changedSensorTypes |= DSensor.TYPE_Z_AXIS_DIRECTION;
}
if ((mDSensorTypes & DSensor.TYPE_MINUS_Z_AXIS_DIRECTION) != 0) {
mMinusZAxisDirectionHistories.add(new DSensorEvent(DSensor.TYPE_MINUS_Z_AXIS_DIRECTION,
mGravity.accuracy, mGravity.timestamp > mMagneticField.timestamp ? mGravity.timestamp
: mMagneticField.timestamp, (float) Math.atan2(-mRotationMatrix[2], -mRotationMatrix[5])));
builder.setMinusZAxisDirection(mMinusZAxisDirectionHistories
.getAverageSensorEvent(DSensor.TYPE_MINUS_Z_AXIS_DIRECTION));
changedSensorTypes |= DSensor.TYPE_MINUS_Z_AXIS_DIRECTION;
}
if ((mDSensorTypes & DSensor.TYPE_DEVICE_ROTATION) != 0) {
builder.setDeviceRotation(new DSensorEvent(DSensor.TYPE_DEVICE_ROTATION,
mGravity.accuracy, mGravity.timestamp,
(float) Math.atan2(mRotationMatrix[6], mRotationMatrix[7])));
changedSensorTypes |= DSensor.TYPE_DEVICE_ROTATION;
}
}
}
return changedSensorTypes;
}
private int calculateGravity(DProcessedSensorEvent.DProcessedSensorEventBuilder builder)
{
Logger.d(DSensorEventProcessor.class.getSimpleName(), "calculateGravity");
if (mGravity != null) {
if (mGravity.timestamp == 0) {
System.arraycopy(mAccelerometer.values, 0, mGravity.values, 0, 3);
} else {
for (int i = 0; i < 3; i++) {
mGravity.values[i] = ALPHA * mAccelerometer.values[i] + ONE_MINUS_ALPHA * mGravity.values[i];
}
}
}
if ((mDSensorTypes & DSensor.TYPE_DEVICE_GRAVITY) != 0) {
builder.setGravityInDeviceBasis(new DSensorEvent(DSensor.TYPE_DEVICE_GRAVITY,
mAccelerometer.accuracy, mAccelerometer.timestamp, mGravity.values));
return DSensor.TYPE_DEVICE_GRAVITY;
}
return 0;
}
private int calculateLinearAcceleration(DProcessedSensorEvent.DProcessedSensorEventBuilder builder) {
Logger.d(DSensorEventProcessor.class.getSimpleName(), "calculateLinearAcceleration");
float[] linearAcceleration = new float[3];
for (int i = 0; i < 3; i++) {
linearAcceleration[i] = mAccelerometer.values[i] - mGravity.values[i];
}
if (mLinearAccelerationInWorldBasisHistories != null) {
mLinearAcceleration.accuracy = mAccelerometer.accuracy;
mLinearAcceleration.timestamp = mAccelerometer.timestamp;
System.arraycopy(linearAcceleration, 0, mLinearAcceleration.values, 0, 3);
}
if ((mDSensorTypes & DSensor.TYPE_DEVICE_LINEAR_ACCELERATION) != 0) {
builder.setLinearAccelerationInDeviceBasis(new DSensorEvent(DSensor.TYPE_DEVICE_LINEAR_ACCELERATION,
mAccelerometer.accuracy, mAccelerometer.timestamp, linearAcceleration));
return DSensor.TYPE_DEVICE_LINEAR_ACCELERATION;
}
return 0;
}
private static class DirectionHistory {
static int mHistoryMaxSize;
final LinkedList<DSensorEvent> mHistories = new LinkedList<>();
final float[] mHistoriesSum = new float[]{0.0f, 0.0f};
long mHistoryTimeStampSum;
public DirectionHistory(int historyMaxSize) {
mHistoryMaxSize = historyMaxSize;
}
public void clearHistories() {
Logger.d(DirectionHistory.class.getSimpleName(), "clearHistories");
mHistories.clear();
mHistoriesSum[0] = 0.0f;
mHistoriesSum[1] = 0.0f;
}
public void add(DSensorEvent item) {
Logger.d(DirectionHistory.class.getSimpleName(), "add size = " + mHistories.size()
+ " angle = " + Math.round(Math.toDegrees(item.values[0])));
mHistoryTimeStampSum += item.timestamp;
if (mHistories.size() == mHistoryMaxSize) {
DSensorEvent firstTerm = mHistories.removeFirst();
mHistoryTimeStampSum -= firstTerm.timestamp;
DMath.removeAngle(firstTerm.values[0], mHistoriesSum);
}
mHistories.addLast(item);
DMath.addAngle(item.values[0], mHistoriesSum);
}
public DSensorEvent getAverageSensorEvent(int sensorType) {
return new DSensorEvent(sensorType, mHistories.getFirst().accuracy,
((long) (1.0f / mHistories.size()) * mHistoryTimeStampSum),
mHistories.isEmpty() ? Float.NaN : DMath.averageAngle(mHistoriesSum, mHistories.size()));
}
}
private static class WorldHistory {
static int mHistoryMaxSize;
final LinkedList<DSensorEvent> mHistories = new LinkedList<>();
final float[] mHistoriesValuesSum;
long mHistoryTimeStampSum;
public WorldHistory(int historyMaxSize, int historyValuesSumLength) {
mHistoryMaxSize = historyMaxSize;
mHistoriesValuesSum = new float[historyValuesSumLength];
}
public void add(DSensorEvent itemInDeviceBasis, float[] rotationMatrix) {
Logger.d(WorldHistory.class.getSimpleName(), "add");
mHistoryTimeStampSum += itemInDeviceBasis.timestamp;
DSensorEvent firstTerm = null;
if (mHistories.size() == mHistoryMaxSize) {
firstTerm = mHistories.removeFirst();
mHistoryTimeStampSum -= firstTerm.timestamp;
}
float[] itemInWorldBasisValues = DMath.productOfSquareMatrixAndVector(rotationMatrix, itemInDeviceBasis.values);
for (int i = 0; i < mHistoriesValuesSum.length; i++) {
mHistoriesValuesSum[i] += itemInWorldBasisValues[i];
if (firstTerm != null) {
mHistoriesValuesSum[i] -= firstTerm.values[i];
}
}
mHistories.addLast(new DSensorEvent(itemInDeviceBasis.sensorType, itemInDeviceBasis.accuracy,
itemInDeviceBasis.timestamp, itemInWorldBasisValues));
}
public void add(int sensorType, int accuracy, long timestamp, float[] valuesInDeviceBasis, float[] rotationMatrix) {
Logger.d(WorldHistory.class.getSimpleName(), "add");
mHistoryTimeStampSum += timestamp;
DSensorEvent firstTerm = null;
if (mHistories.size() == mHistoryMaxSize) {
firstTerm = mHistories.removeFirst();
mHistoryTimeStampSum -= firstTerm.timestamp;
}
float[] itemInWorldBasisValues = DMath.productOfSquareMatrixAndVector(rotationMatrix, valuesInDeviceBasis);
for (int i = 0; i < mHistoriesValuesSum.length; i++) {
mHistoriesValuesSum[i] += itemInWorldBasisValues[i];
if (firstTerm != null) {
mHistoriesValuesSum[i] -= firstTerm.values[i];
}
}
mHistories.addLast(new DSensorEvent(sensorType, accuracy, timestamp, itemInWorldBasisValues));
}
public DSensorEvent getAverageSensorEvent(int sensorType) {
Logger.d(WorldHistory.class.getSimpleName(), "getAverageSensorEvent");
return new DSensorEvent(sensorType, mHistories.getFirst().accuracy,
((long) (1.0f / mHistories.size()) * mHistoryTimeStampSum),
DMath.scaleVector(mHistoriesValuesSum, (1.0f / mHistories.size())));
}
}
}
| [
"jinghul@bu.edu"
] | jinghul@bu.edu |
84f838ae5865b6f5a3fd65fa420133b137fef2c3 | a3c39b340d9b96b9896ee4b01d9d4b63bf6dbf4f | /src/main/java/com/mintic/lagenerica/controller/ClienteController.java | f8c35674e19cd779eaebe4ce7214bf3451d6cab3 | [] | no_license | AngelicaCamachoM/Clientes-back-ciclo4 | 0935a1742efe36e54864e218b3620224b2a1f1dd | e9b12523b16e4c185b4709bb5bfa0fe8ff185e90 | refs/heads/master | 2023-08-26T09:57:25.006609 | 2021-11-12T22:23:19 | 2021-11-12T22:23:19 | 427,510,326 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,145 | java | package com.mintic.lagenerica.controller;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.mintic.lagenerica.model.Cliente;
import com.mintic.lagenerica.repository.ClienteRepository;
@CrossOrigin(origins = "http://localhost:8181") // Seguridad
@RestController
@RequestMapping("/clientes")
public class ClienteController {
@Autowired
private ClienteRepository clienteRepository;
@PostMapping("/guardar")
public ResponseEntity<?> crearCliente(@RequestBody Cliente cliente){
return ResponseEntity.status(HttpStatus.CREATED).body(clienteRepository.save(cliente));
}
@GetMapping("/listar")
public List<Cliente> listarClientes() {
List<Cliente> listaClientes = StreamSupport.stream(clienteRepository.findAll().spliterator(), false).collect(Collectors.toList());
return listaClientes;
}
@GetMapping("/buscar/{id}")
public ResponseEntity<?> bucarCliente(@PathVariable(value = "id") Long id) {
Optional<Cliente> oCliente = clienteRepository.findById(id) ;
if (oCliente.isEmpty())
return ResponseEntity.notFound().build();
return ResponseEntity.ok(oCliente);
}
@DeleteMapping("/eliminar/{id}")
public ResponseEntity<?> borrarClienteporId(@PathVariable(value = "id") Long id) {
Optional<Cliente> oCliente = clienteRepository.findById(id) ;
if (oCliente.isEmpty())
return ResponseEntity.notFound().build();
clienteRepository.deleteById(id);
return ResponseEntity.ok(oCliente);
}
@DeleteMapping("/eliminar")
public ResponseEntity<?> borrarTodos() {
Cliente oCliente = new Cliente();
clienteRepository.deleteAll();;
return ResponseEntity.ok(oCliente);
}
@PutMapping("actualizar")
public ResponseEntity<?> actualizarCliente(@RequestBody Cliente cliente) {
Optional<Cliente> clienteAnt = clienteRepository.findById(cliente.getCedula_cliente());
if(clienteAnt.isEmpty())
return ResponseEntity.notFound().build();
clienteAnt.get().setNombre_cliente(cliente.getNombre_cliente());
clienteAnt.get().setCedula_cliente(cliente.getCedula_cliente());
clienteAnt.get().setDireccion_cliente(cliente.getDireccion_cliente());
clienteAnt.get().setTelefono_cliente(cliente.getTelefono_cliente());
clienteAnt.get().setCorreo_cliente(cliente.getCorreo_cliente());
return ResponseEntity.status(HttpStatus.CREATED).body(clienteRepository.save(clienteAnt.get()));
}
}
| [
"ASUS@DESKTOP-28BH5NL"
] | ASUS@DESKTOP-28BH5NL |
74f2f9b0d6101ff86a84fa0d81221344088b556e | 90495c6359bee8c6e6e79fdde2c28c60986a70a5 | /app/src/main/java/cc/listviewdemo/model/ActivityModel.java | 5b19d14ca27008c85e3d9ccf23210888af301931 | [] | no_license | Finderchangchang/DKDJForUser | d70c7a2b08fd2a37b61bb53f091b808e2e0d5a9f | 5bf9913d27e12e17d1c9e26e0cf17586978a128a | refs/heads/master | 2020-04-06T06:54:58.295903 | 2016-09-12T10:19:14 | 2016-09-12T10:19:14 | 63,030,898 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,193 | java | package cc.listviewdemo.model;
/**
* Created by Administrator on 2016/8/25.
*/
public class ActivityModel {
private String 商家编号;
private String 编号;
private String 活动图片;
private String 活动名称;
private String 有效开始日期;
private String 有效结束日期;
private String 满N;
private String 减N;
private String 满N送;
private String 活动类型;
private String 是否开启;
private String 添加时间;
private String 优惠;
/**
* 商家编号 : 913
* 编号 : 2
* 活动图片 : http://www.dakedaojia.com//upload/huodong/201608250942510388.png
* 活动名称 : 新用户满15减3元
* 有效开始日期 : 2016/8/1 0:00:00
* 有效结束日期 : 2017/8/1 0:00:00
* 满N : 15
* 减N : 3
* 满N送 : 0
* 活动类型 : (在线支付)(新用户)满N元减少M元
* 是否开启 : 是
* 添加时间 : 2016/8/25 9:42:51
* 优惠 : 3
*/
public String get商家编号() {
return 商家编号;
}
public void set商家编号(String 商家编号) {
this.商家编号 = 商家编号;
}
public String get编号() {
return 编号;
}
public void set编号(String 编号) {
this.编号 = 编号;
}
public String get活动图片() {
return 活动图片;
}
public void set活动图片(String 活动图片) {
this.活动图片 = 活动图片;
}
public String get活动名称() {
return 活动名称;
}
public void set活动名称(String 活动名称) {
this.活动名称 = 活动名称;
}
public String get有效开始日期() {
return 有效开始日期;
}
public void set有效开始日期(String 有效开始日期) {
this.有效开始日期 = 有效开始日期;
}
public String get有效结束日期() {
return 有效结束日期;
}
public void set有效结束日期(String 有效结束日期) {
this.有效结束日期 = 有效结束日期;
}
public String get满N() {
return 满N;
}
public void set满N(String 满N) {
this.满N = 满N;
}
public String get减N() {
return 减N;
}
public void set减N(String 减N) {
this.减N = 减N;
}
public String get满N送() {
return 满N送;
}
public void set满N送(String 满N送) {
this.满N送 = 满N送;
}
public String get活动类型() {
return 活动类型;
}
public void set活动类型(String 活动类型) {
this.活动类型 = 活动类型;
}
public String get是否开启() {
return 是否开启;
}
public void set是否开启(String 是否开启) {
this.是否开启 = 是否开启;
}
public String get添加时间() {
return 添加时间;
}
public void set添加时间(String 添加时间) {
this.添加时间 = 添加时间;
}
public String get优惠() {
return 优惠;
}
public void set优惠(String 优惠) {
this.优惠 = 优惠;
}
}
| [
"10310662802@qq.com"
] | 10310662802@qq.com |
574f19329ab466cc94d21ef9e61dd236994f7174 | 99491619cd129184b30b3c6692a7ac6e996b216b | /src/main/java/com.cgx/nio/ServerTest.java | ec9b7881281277c2781e11af4863b970b763bec3 | [] | no_license | rqwxin/java-high-level | 482df347f206d029ddcfa3106fb17d0910b1fef0 | c2c1912650425190b65227e7682892745cb571fb | refs/heads/master | 2022-07-12T01:49:01.911450 | 2019-09-11T14:52:10 | 2019-09-11T14:52:10 | 133,777,562 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,653 | java | package com.cgx.nio;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.ClosedChannelException;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.util.Iterator;
import java.util.Set;
public class ServerTest {
private static Selector selector ;
public static void main(String[] args) {
Thread t = new Thread(new Runnable() {
@Override
public void run() {
try {
start();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
t.start();
}
private static void start() throws IOException, ClosedChannelException {
int port = 1234;
startSelector(port);
while(true){
selector.select();
Set<SelectionKey> keys = selector.selectedKeys();
Iterator<SelectionKey> it = keys.iterator();
SelectionKey key = null;
while(it.hasNext()){
key = it.next();
it.remove();
if(key.isValid()){
handleInput(key);
}
}
}
}
private static void handleInput(SelectionKey key) throws IOException {
if(key.isAcceptable()){
ServerSocketChannel ssc = (ServerSocketChannel) key.channel();
SocketChannel sc = ssc.accept();
sc.configureBlocking(false);
sc.register(selector, SelectionKey.OP_READ);
}
if(key.isReadable()){
SocketChannel sc = (SocketChannel) key.channel();
SocketChannel sch = (SocketChannel) key.channel();
ByteBuffer buffer = ByteBuffer.allocate(1024);
int readBytes = sc.read(buffer);
if(readBytes>0){
buffer.flip();
//根据缓冲区可读字节数创建字节数组
byte[] bytes = new byte[buffer.remaining()];
buffer.get(bytes);
String expression = new String(bytes,"UTF-8");
System.out.println("服务器收到消息:" + expression);
}
String response = "发送消息到客户端";
byte[] bytes = response.getBytes();
//ByteBuffer writeBuffer = ByteBuffer.allocate(bytes.length);
//writeBuffer.put(bytes);
//writeBuffer.flip();
//sch.write(writeBuffer);
}
}
private static void startSelector(int port) throws IOException, ClosedChannelException {
selector = Selector.open();
ServerSocketChannel serverChannel = ServerSocketChannel.open();
serverChannel.configureBlocking(false);
serverChannel.socket().bind(new InetSocketAddress(port),1024);
serverChannel.register(selector, SelectionKey.OP_ACCEPT);
System.out.println("服务器已启动,端口号:" + port);
}
}
| [
"605760016@qq.com"
] | 605760016@qq.com |
8088e9e187dbf0f82bc7fa57286717e596a95c67 | 17ceff5268758fd10164676f0d25fc5300d383e6 | /TourGuide/app/src/main/java/com/example/hind/tourguide/FoodPlacesFragment.java | c016a76273b0e69a7b9aab43ade27cb4d4aba7b3 | [] | no_license | hindfh/Udacity_ABND | 2ecd2ed362aebb27ac09e3c8ee7787876f49cef7 | 05731966c6333e50ea7070d64bedbdcf22241839 | refs/heads/master | 2020-09-11T13:51:37.231228 | 2019-11-16T11:30:48 | 2019-11-16T11:30:48 | 222,087,983 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,034 | java | package com.example.hind.tourguide;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import android.widget.TextView;
import java.util.ArrayList;
/**
* A simple {@link Fragment} subclass.
*/
public class FoodPlacesFragment extends Fragment {
public FoodPlacesFragment() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.list_places, container, false);
final ArrayList<Place> places = new ArrayList<>();
places.add(new Place(R.string.al_baik,R.string.baik_time,R.drawable.baik));
places.add(new Place(R.string.shobak,R.string.shobak_time,R.drawable.shobak));
places.add(new Place(R.string.al_tazij,R.string.tazij_time,R.drawable.tazij));
places.add(new Place(R.string.lokmah,R.string.lokma_time,R.drawable.lokmah));
places.add(new Place(R.string.root,R.string.root_time,R.drawable.root));
// Create an {@link PlaceAdapter}, whose data source is a list of {@link Place}s. The
// adapter knows how to create list items for each item in the list.
PlaceAdapter adapter = new PlaceAdapter(getActivity(),places,R.color.category_food_places);
// Find the {@link ListView} object in the view hierarchy of the l{@link Activity}.
// There should be a {@link ListView} with the view ID called list, which is declared in the
// activity_numbers.xml layout file.
ListView listView = (ListView) rootView.findViewById(R.id.list);
// Make the {@link ListView} use the {@link PlaceAdapter} we created above, so that the
// {@link ListView} will display list items for each {@link Place} in the list.
listView.setAdapter(adapter);
return rootView;
}
}
| [
"hfmss77@hotmail.com"
] | hfmss77@hotmail.com |
1b0d6d26443b2a17b71affb1548eff7a9b28ee42 | 36f0a80d2dcf84e5fa4257fa3128b6fb0faf256e | /aura-nebula-dashboard/src/main/java/co/aurasphere/aura/nebula/dashboard/dao/ProjectStatusDao.java | 51368accc67b601300ef1abd1647983f4d91e2a3 | [
"MIT"
] | permissive | aurasphere/aura | ecec7e145e6f01d531985f96745e4eea06f321c3 | 441bdb950ee90486e7035187591253d43c7d5c3b | refs/heads/main | 2023-02-14T02:52:19.548417 | 2021-01-17T00:36:34 | 2021-01-17T00:36:34 | 330,276,689 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,011 | java | package co.aurasphere.aura.nebula.dashboard.dao;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;
import co.aurasphere.aura.common.interfaces.dao.AuraBaseDao;
import co.aurasphere.aura.nebula.dashboard.common.enumeration.ProjectStatus;
@Repository
public class ProjectStatusDao extends AuraBaseDao<ProjectStatus>{
private static final Logger log = LoggerFactory.getLogger(ProjectStatusDao.class);
@Override
public void create(ProjectStatus object) {
sessionFactory.getCurrentSession().save(object);
}
@Override
public List<ProjectStatus> readAll() {
return sessionFactory.getCurrentSession().createCriteria(ProjectStatus.class).list();
}
@Override
public void update(ProjectStatus object) {
sessionFactory.getCurrentSession().update(object);
}
@Override
public void delete(ProjectStatus object) {
log.error("Operazione delete non consentita su classe " + object.getClass().getName());
return;
}
}
| [
"donatohan.rimenti@gmail.com"
] | donatohan.rimenti@gmail.com |
11dd87c761ce76e094c38a359cd1480d379cc8e2 | 59ca721ca1b2904fbdee2350cd002e1e5f17bd54 | /aliyun-java-sdk-cbn/src/main/java/com/aliyuncs/cbn/model/v20170912/DescribeGeographicRegionMembershipResponse.java | b6d8b3900fd4224ebe324c6030450e2f62a398bf | [
"Apache-2.0"
] | permissive | longtx/aliyun-openapi-java-sdk | 8fadfd08fbcf00c4c5c1d9067cfad20a14e42c9c | 7a9ab9eb99566b9e335465a3358553869563e161 | refs/heads/master | 2020-04-26T02:00:35.360905 | 2019-02-28T13:47:08 | 2019-02-28T13:47:08 | 173,221,745 | 2 | 0 | NOASSERTION | 2019-03-01T02:33:35 | 2019-03-01T02:33:35 | null | UTF-8 | Java | false | false | 2,294 | 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.cbn.model.v20170912;
import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cbn.transform.v20170912.DescribeGeographicRegionMembershipResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class DescribeGeographicRegionMembershipResponse extends AcsResponse {
private String requestId;
private Integer totalCount;
private Integer pageNumber;
private Integer pageSize;
private List<RegionId> regionIds;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public Integer getTotalCount() {
return this.totalCount;
}
public void setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
}
public Integer getPageNumber() {
return this.pageNumber;
}
public void setPageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
}
public Integer getPageSize() {
return this.pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
public List<RegionId> getRegionIds() {
return this.regionIds;
}
public void setRegionIds(List<RegionId> regionIds) {
this.regionIds = regionIds;
}
public static class RegionId {
private String regionId;
public String getRegionId() {
return this.regionId;
}
public void setRegionId(String regionId) {
this.regionId = regionId;
}
}
@Override
public DescribeGeographicRegionMembershipResponse getInstance(UnmarshallerContext context) {
return DescribeGeographicRegionMembershipResponseUnmarshaller.unmarshall(this, context);
}
}
| [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
cda095be555c40b55cadae4b3b2156dfde19b10f | 77ef58ec67593fbdc023ed55df61a6fe61a3e056 | /Binary to decimal/Main.java | 66742ead646aef3fda45245eae0bde8cbcac2c2c | [] | no_license | santhanam18/Playground | ffadbf1ef30f72d3691e81230de3ef23621c1425 | 848da99f60e2fee405918cf6470979f68cb0e7cf | refs/heads/master | 2020-06-09T12:32:33.094166 | 2019-07-27T09:48:54 | 2019-07-27T09:48:54 | 193,438,690 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 331 | java | #include<stdio.h>
int main()
{
int num, binary_val, decimal_val = 0, base = 1, rem;
scanf("%d", &num);
binary_val = num;
while (num > 0)
{
rem = num % 10;
decimal_val = decimal_val + rem * base;
num = num / 10 ;
base = base * 2;
}
printf("%d", decimal_val);
return 0;
} | [
"52148462+santhanam18@users.noreply.github.com"
] | 52148462+santhanam18@users.noreply.github.com |
83a04b23b119a418d43c1af28cefeb895862ad2f | 2e9213adf373c5900c04e528c0001bb29f9bae3d | /src/main/java/com/estudos/backend/domain/Cidade.java | d47ab62a024514e7052e19459e3699a4d9d51c75 | [] | no_license | Jmarcelo98/cursoSpringBoot | 48ec6973901e9c0f921777ee748dc2fbcf4d0e3c | 034d1a19f64535608d72ae2622d02fd2d4dc56a1 | refs/heads/master | 2021-08-05T17:20:04.939352 | 2021-08-04T15:44:26 | 2021-08-04T15:44:26 | 226,119,555 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,539 | java | package com.estudos.backend.domain;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
@Entity
public class Cidade implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String nome;
@ManyToOne
@JoinColumn(name = "estado_id")
private Estado estado;
public Cidade() {
}
public Cidade(Integer id, String nome, Estado estado) {
super();
this.id = id;
this.nome = nome;
this.estado = estado;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public Estado getEstado() {
return estado;
}
public void setEstado(Estado estado) {
this.estado = estado;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((id == null) ? 0 : id.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Cidade other = (Cidade) obj;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
return true;
}
}
| [
"joaomarcelo588@gmail.com"
] | joaomarcelo588@gmail.com |
55d6b2d69f767b82827a065a3d3c98dda3f45291 | d0a49c4bfc1e4e210156806651bb933c485cd54b | /backend/quote-service/src/main/java/com/easyerp/quoteservice/exceptions/ConflictException.java | 0c29971a5376feda9ba46ac1cc814bf619e83e63 | [] | no_license | delta94/easy-erp | 72ccc564636fc4c0ba9f035081f44667a9234b2f | bcc2aa21d88d9166f9f55cff9c8e0c492ae9ddd6 | refs/heads/master | 2023-01-29T21:01:36.406085 | 2020-12-01T12:13:07 | 2020-12-01T12:13:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 301 | java | package com.easyerp.quoteservice.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.CONFLICT, reason = "can't processing your request")
public class ConflictException extends RuntimeException {
}
| [
"maliszewskid3@gmail.com"
] | maliszewskid3@gmail.com |
dd0a11612636858995223072a6dad43eba7c8b2c | 1ca1298a408e439253bdd9798f23394aa10b6fef | /codestory2013/src/main/java/com/sdevolder/codestory2013/dialog/DialogBotException.java | dc76d2d81a2f4585173dd5c0d7c4cb061105640c | [] | no_license | sebdev/codestory2013 | 5d5c9ab390e38897224cd4b6db1896c1af3ed683 | 70331b09d23bea7a1c7ddcbb448e6399127fed71 | refs/heads/master | 2020-05-29T23:35:16.288553 | 2013-01-17T23:23:48 | 2013-01-17T23:23:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 215 | java | package com.sdevolder.codestory2013.dialog;
public class DialogBotException extends RuntimeException {
public DialogBotException(Throwable arg1) {
super("initialisationError", arg1);
}
}
| [
"sebastien.devolder@gmail.com"
] | sebastien.devolder@gmail.com |
459635a6d14dfe8858b2310b08206e63dbf5bb6e | 40e40c06406acbfe052758e853c5127e0a919e82 | /SomeHospital/src/main/java/com/peerless2012/somehospital/utils/IOUtils.java | f34d3002edb23ad2126396c4e3b452c95a2a554f | [
"Apache-2.0"
] | permissive | peerless2012/SomeHospital | 40e1d51bc0b50a83e841734b6bac43c35e983e0c | c0ff07a46304be29a4d3b224855b091c0c6bd5af | refs/heads/master | 2020-12-21T18:08:13.136880 | 2016-08-09T07:55:56 | 2016-08-09T07:55:56 | 57,964,962 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,264 | java | package com.peerless2012.somehospital.utils;
import java.io.Closeable;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* IO utils
*
* @author Vladislav Bauer
*/
public class IOUtils {
private IOUtils() {
throw new AssertionError();
}
/**
* Close closable object and wrap {@link IOException} with {@link
* RuntimeException}
*
* @param closeable closeable object
*/
public static void close(Closeable closeable) {
if (closeable != null) {
try {
closeable.close();
} catch (IOException e) {
throw new RuntimeException("IOException occurred. ", e);
}
}
}
/**
* Close closable and hide possible {@link IOException}
*
* @param closeable closeable object
*/
public static void closeQuietly(Closeable closeable) {
if (closeable != null) {
try {
closeable.close();
} catch (IOException e) {
// Ignored
}
}
}
/**
*保存文本
* @param fileName 文件名字
* @param content 内容
* @param append 是否累加
* @return 是否成功
*/
public static boolean saveTextValue(String fileName, String content, boolean append) {
try {
File textFile = new File(fileName);
if (!append && textFile.exists()) textFile.delete();
FileOutputStream os = new FileOutputStream(textFile);
os.write(content.getBytes("UTF-8"));
os.close();
} catch (Exception ee) {
return false;
}
return true;
}
/**
* 删除目录下所有文件
* @param Path 路径
*/
public static void deleteAllFile(String Path) {
// 删除目录下所有文件
File path = new File(Path);
File files[] = path.listFiles();
if (files != null) {
for (File tfi : files) {
if (tfi.isDirectory()) {
System.out.println(tfi.getName());
}
else {
tfi.delete();
}
}
}
}
}
| [
"peerless2012@126.com"
] | peerless2012@126.com |
a164b607196853e333c3ba422ab9e51371efccbc | ea5488b95ade28d1185b6f0684f6a68ad7b1faca | /AdocaoAnimais/src/ufsc/br/ine5605/adocaoAnimais/Model/ConteudoTelaFormularioAcompanhamento.java | b063821da2e56c878d3032dcf7958e8e8bfc406a | [] | no_license | engdough/Adocao-de-animais | ee5feeef37b31ea9e838cbdd5ce0c6e786cce1d9 | 4ab0419862a782acdd4056eb3153547a55781e25 | refs/heads/master | 2020-05-27T11:20:54.941397 | 2019-06-04T18:50:26 | 2019-06-04T18:50:26 | 188,599,455 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,713 | java | package ufsc.br.ine5605.adocaoAnimais.Model;
import java.io.Serializable;
import ufsc.br.ine5605.adocaoAnimais.Interfaces.IConteudoTelaFormularioAcompanhamento;
public class ConteudoTelaFormularioAcompanhamento implements IConteudoTelaFormularioAcompanhamento, Serializable {
boolean animalLimpo;
boolean animalMagro;
boolean animalFerido;
boolean animalFoiVeterinario;
String motivoIdaVeterinario;
boolean animalMedicado;
String qualMedicamento;
String obs;
public ConteudoTelaFormularioAcompanhamento() {
}
public ConteudoTelaFormularioAcompanhamento(boolean animalLimpo, boolean animalMagro, boolean animalFerido, boolean animalFoiVeterinario, String motivoIdaVeterinario, boolean animalMedicado, String qualMedicamento, String obs){
this.animalLimpo = animalLimpo;
this.animalMagro = animalMagro;
this.animalFerido = animalFerido;
this.animalFoiVeterinario = animalFoiVeterinario;
this.motivoIdaVeterinario = motivoIdaVeterinario;
this.animalMedicado = animalMedicado;
this.qualMedicamento = qualMedicamento;
this.obs = obs;
}
public boolean isAnimalLimpo() {
return animalLimpo;
}
public void setAnimalLimpo(boolean animalLimpo) {
this.animalLimpo = animalLimpo;
}
public boolean isAnimalMagro() {
return animalMagro;
}
public void setAnimalMagro(boolean animalMagro) {
this.animalMagro = animalMagro;
}
public boolean isAnimalFerido() {
return animalFerido;
}
public void setAnimalFerido(boolean animalFerido) {
this.animalFerido = animalFerido;
}
public boolean isAnimalFoiVeterinario() {
return animalFoiVeterinario;
}
public void setAnimalFoiVeterinario(boolean animalFoiVeterinario) {
this.animalFoiVeterinario = animalFoiVeterinario;
}
public String getMotivoIdaVeterinario() {
return motivoIdaVeterinario;
}
public void setMotivoIdaVeterinario(String motivoIdaVeterinario) {
this.motivoIdaVeterinario = motivoIdaVeterinario;
}
public boolean isAnimalMedicado() {
return animalMedicado;
}
public void setAnimalMedicado(boolean animalMedicado) {
this.animalMedicado = animalMedicado;
}
public String getQualMedicamento() {
return qualMedicamento;
}
public void setQualMedicamento(String qualMedicamento) {
this.qualMedicamento = qualMedicamento;
}
public String getObs() {
return obs;
}
public void setObs(String obs) {
this.obs = obs;
}
} | [
"gilmar500@gmail.com"
] | gilmar500@gmail.com |
34bc9fda7dafd90a2a4d44c410b338e7de983220 | bc2247449fce6060b1e9d2c39999061b9ff37154 | /product-thymeleaf/src/test/java/com/codegym/productthymeleaf/ProductThymeleafApplicationTests.java | c9e4e21405810ad9ff77a227ab744a7af1b1c62d | [] | no_license | CheCongBach/C0320G1-CheCongBach | ceffcea04cc6f4692832620c09d7cd3246320cce | 76f0558143529a0aeea90634e6a46a0d96c5f344 | refs/heads/master | 2023-01-20T13:04:53.455672 | 2020-07-15T03:20:16 | 2020-07-15T03:20:16 | 249,336,618 | 0 | 0 | null | 2023-01-07T20:07:04 | 2020-03-23T04:37:12 | HTML | UTF-8 | Java | false | false | 239 | java | package com.codegym.productthymeleaf;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class ProductThymeleafApplicationTests {
@Test
void contextLoads() {
}
}
| [
"chebach97bk@gmail.com"
] | chebach97bk@gmail.com |
413302ead021d9c37f7c3c7012b78676e1dfce6c | 9bcda94038b41b6010a0bc25bf3a1cfab44c6785 | /src/main/java/com/pojo/Employee.java | 2023a0a4a3143426f0ea014ab7546dc8995f4cd6 | [] | no_license | SuspectCat/MyBatisDemo | 261cf56b2a11034f8ef5e4f294eff068e7631e1e | ff70d78f2632e28d80a8b7ef6792fcacf0175a6a | refs/heads/main | 2023-09-03T16:00:08.608126 | 2021-11-10T11:08:53 | 2021-11-10T11:08:53 | 426,590,289 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 252 | java | package com.pojo;
import lombok.Data;
@Data
public class Employee {
private Integer employeeId;
private String employeeName;
private Integer employeeTelephone;
private Integer employeeDepartment;
private Department department;
}
| [
"65328918+SuspectCat@users.noreply.github.com"
] | 65328918+SuspectCat@users.noreply.github.com |
5993c7a123f261c8683238daf6f30815887db9f3 | 304ba754484c46c77c9a588e6cde5d559be9d436 | /src/com/jorflekel/mathtutor/OperationDrawnItem.java | b633d6e60b36015ba5fc647f8866bb5b89d6abcb | [] | no_license | mjordanco/AndMathTutor | 2511cb8109b34f872be11f632555e7f06ed6fa52 | 84855339e5770899fb6037ea5ac3d3689c9195e9 | refs/heads/master | 2016-09-11T08:38:57.462351 | 2012-10-29T03:14:37 | 2012-10-29T03:14:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 895 | java | package com.jorflekel.mathtutor;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
public class OperationDrawnItem extends DrawnItem {
private Resources resources;
private Drawable operationDrawable;
public OperationDrawnItem(int left, int top, int right, int bottom,
int resId, Resources resources, int operationResId) {
super(left, top, right, bottom, resId, resources);
this.resources = resources;
operationDrawable = resources.getDrawable(operationResId);
}
@Override
public void draw(Canvas c) {
super.draw(c);
operationDrawable.setBounds(new Rect(drawRect.left + 10, drawRect.top + 10, drawRect.right - 10, drawRect.bottom - 10));
operationDrawable.draw(c);
}
public void setOperationDrawable(int resId) {
operationDrawable = resources.getDrawable(resId);
}
}
| [
"mjordan@mines.edu"
] | mjordan@mines.edu |
2a2ea0adaab4546c221f12571cda1f56508a6b4f | d6935e15696ea8398dd1a92da3bbd7f1bbcb9fcb | /src/Solver_Check_Valid_String_Paranthesis.java | 5497a15e4496c113ef9504f2c464c247ca94f650 | [] | no_license | Chaitali-Pawar/LeetCode_Algorithms | 50e9b2f0b894b75d66f7a093012ef1865a705d25 | cc0a6547101bae4990ce01f9b07d72301e374473 | refs/heads/master | 2020-04-17T09:45:56.026242 | 2019-04-13T19:58:19 | 2019-04-13T19:58:19 | 166,472,641 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,484 | java | import java.util.HashMap;
import java.util.Stack;
public class Solver_Check_Valid_String_Paranthesis {
/*
* Description
* Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
An input string is valid if:
Open brackets must be closed by the same type of brackets.
Open brackets must be closed in the correct order.
Note that an empty string is also considered valid.
*
*
* */
}
class Solve_Check_Valid_String_Paranthesis {
public boolean isStringValid(String s) {
// use the concept of stack for matching the paranthesis
HashMap<Character, Character> mapOfParanthesis= new HashMap<Character, Character>();
mapOfParanthesis.put(')', '(');
mapOfParanthesis.put(']', '[');
mapOfParanthesis.put('}', '{');
Stack<Character> stackParanthesis = new Stack<>();
for (int i = 0; i < s.length(); i++) {
if(!mapOfParanthesis.containsKey(s.charAt(i))){
// if is an opening bracket then push it on top of stack
stackParanthesis.push(s.charAt(i));
}else{
if( stackParanthesis.empty() || stackParanthesis.pop() != mapOfParanthesis.get(s.charAt(i)) ){
return false;
}
}
}
if(!stackParanthesis.empty()){
return false;
}
return true;
}
}
| [
"chaitali.projectx@gmail.com"
] | chaitali.projectx@gmail.com |
5c10cef251b576c28ff904a910899d69287f5a7f | 031c16b45881a41ff67c68f5f93b15e0f4c02ded | /src/main/java/pw/snas/resultwrapper/Result.java | 141d6ea8fe4b17453ba5f4de87147bb9b0ba6b87 | [
"MIT"
] | permissive | snasphysicist/resultwrapper | 8bbc606f0294310e3489173836a1232cf0b8ea04 | 45d9d5ff732f3f4ecbf622f16275021043714dce | refs/heads/master | 2020-12-18T09:45:36.819995 | 2020-02-17T12:54:03 | 2020-02-17T12:54:03 | 235,335,405 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,573 | java |
package pw.snas.resultwrapper;
/**
* @author Scott Nicholas Allan Smith
* @version 1.0.1
* @since 1.0.0
* @param <T> The type of the result that the class wraps
*/
public class Result<T> {
/**
* The default error message
* to be returned in the case
* that the message is not set/updated
*/
private static final String DEFAULT_REASON = "No result found";
/**
* Records whether the
* operation to produce
* the result was successful
*/
private boolean success;
/**
* The reason that
* the operation failed
*/
private String failureReason;
/**
* The result of the operation
* stored if it is successful
*/
private T result;
/**
* Default constructor -
* assumes failure initially
* and sets the reason
* to the default one
*/
public Result() {
success = false;
failureReason = DEFAULT_REASON;
result = null;
}
/**
* Report that the operation was successful and provide the result of the operation
* @param result The result produced by the successful operation
*/
public void succeed(T result) {
this.result = result;
success = true;
failureReason = "";
}
/**
* Report that the operation failed and provide a reason for the failure
* @param message A message to describe why the operation failed
*/
public void fail(String message) {
// If first time adding a reason for failure
if (DEFAULT_REASON.equals(failureReason)) {
// Overwrite default
failureReason = message;
} else {
failureReason = failureReason + " " + message;
}
}
/**
* Check whether the operation was successful
* @return True when the operation was reported successful, False otherwise
*/
public boolean succeeded() {
return success;
}
/**
* Check whether the operation failed
* @return False when the operation was reported failed, True otherwise
*/
public boolean failed() {
return !success;
}
/**
* Get the message String explaining the reason for the failed operation
* @return Reason or reasons that the operation did not succeed
*/
public String getFailureReason() {
return failureReason;
}
/**
* Get the result stored in the wrapper
* @return The result produced by the operation
*/
public T getResult() {
return result;
}
}
| [
"ih8coldplay@hotmail.com"
] | ih8coldplay@hotmail.com |
628d1c5caa311170dad53e2adb8e7121baa3a2b2 | f0d25d83176909b18b9989e6fe34c414590c3599 | /app/src/main/java/com/amazonaws/services/s3/model/BucketLifecycleConfiguration.java | ff59c2de4b44c6a5f5453220443293dc6d2dbc5d | [] | no_license | lycfr/lq | e8dd702263e6565486bea92f05cd93e45ef8defc | 123914e7c0d45956184dc908e87f63870e46aa2e | refs/heads/master | 2022-04-07T18:16:31.660038 | 2020-02-23T03:09:18 | 2020-02-23T03:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,079 | java | package com.amazonaws.services.s3.model;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
public class BucketLifecycleConfiguration {
public static final String DISABLED = "Disabled";
public static final String ENABLED = "Enabled";
private List<Rule> rules;
public List<Rule> getRules() {
return this.rules;
}
public void setRules(List<Rule> rules2) {
this.rules = rules2;
}
public BucketLifecycleConfiguration withRules(List<Rule> rules2) {
setRules(rules2);
return this;
}
public BucketLifecycleConfiguration withRules(Rule... rules2) {
setRules(Arrays.asList(rules2));
return this;
}
public BucketLifecycleConfiguration(List<Rule> rules2) {
this.rules = rules2;
}
public BucketLifecycleConfiguration() {
}
public static class Rule {
private Date expirationDate;
private int expirationInDays = -1;
private String id;
private int noncurrentVersionExpirationInDays = -1;
private NoncurrentVersionTransition noncurrentVersionTransition;
private String prefix;
private String status;
private Transition transition;
public void setId(String id2) {
this.id = id2;
}
public void setPrefix(String prefix2) {
this.prefix = prefix2;
}
public void setExpirationInDays(int expirationInDays2) {
this.expirationInDays = expirationInDays2;
}
public void setNoncurrentVersionExpirationInDays(int value) {
this.noncurrentVersionExpirationInDays = value;
}
public String getId() {
return this.id;
}
public Rule withId(String id2) {
this.id = id2;
return this;
}
public String getPrefix() {
return this.prefix;
}
public Rule withPrefix(String prefix2) {
this.prefix = prefix2;
return this;
}
public int getExpirationInDays() {
return this.expirationInDays;
}
public Rule withExpirationInDays(int expirationInDays2) {
this.expirationInDays = expirationInDays2;
return this;
}
public int getNoncurrentVersionExpirationInDays() {
return this.noncurrentVersionExpirationInDays;
}
public Rule withNoncurrentVersionExpirationInDays(int value) {
setNoncurrentVersionExpirationInDays(value);
return this;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status2) {
this.status = status2;
}
public Rule withStatus(String status2) {
setStatus(status2);
return this;
}
public void setExpirationDate(Date expirationDate2) {
this.expirationDate = expirationDate2;
}
public Date getExpirationDate() {
return this.expirationDate;
}
public Rule withExpirationDate(Date expirationDate2) {
this.expirationDate = expirationDate2;
return this;
}
public void setTransition(Transition transition2) {
this.transition = transition2;
}
public Transition getTransition() {
return this.transition;
}
public Rule withTransition(Transition transition2) {
this.transition = transition2;
return this;
}
public void setNoncurrentVersionTransition(NoncurrentVersionTransition value) {
this.noncurrentVersionTransition = value;
}
public NoncurrentVersionTransition getNoncurrentVersionTransition() {
return this.noncurrentVersionTransition;
}
public Rule withNoncurrentVersionTransition(NoncurrentVersionTransition value) {
setNoncurrentVersionTransition(value);
return this;
}
}
public static class Transition {
private Date date;
private int days = -1;
private StorageClass storageClass;
public void setDays(int expirationInDays) {
this.days = expirationInDays;
}
public int getDays() {
return this.days;
}
public Transition withDays(int expirationInDays) {
this.days = expirationInDays;
return this;
}
public void setStorageClass(StorageClass storageClass2) {
this.storageClass = storageClass2;
}
public StorageClass getStorageClass() {
return this.storageClass;
}
public Transition withStorageClass(StorageClass storageClass2) {
this.storageClass = storageClass2;
return this;
}
public void setDate(Date expirationDate) {
this.date = expirationDate;
}
public Date getDate() {
return this.date;
}
public Transition withDate(Date expirationDate) {
this.date = expirationDate;
return this;
}
}
public static class NoncurrentVersionTransition {
private int days = -1;
private StorageClass storageClass;
public void setDays(int expirationInDays) {
this.days = expirationInDays;
}
public int getDays() {
return this.days;
}
public NoncurrentVersionTransition withDays(int expirationInDays) {
this.days = expirationInDays;
return this;
}
public void setStorageClass(StorageClass storageClass2) {
this.storageClass = storageClass2;
}
public StorageClass getStorageClass() {
return this.storageClass;
}
public NoncurrentVersionTransition withStorageClass(StorageClass storageClass2) {
this.storageClass = storageClass2;
return this;
}
}
}
| [
"quyenlm.vn@gmail.com"
] | quyenlm.vn@gmail.com |
ff7cf003133c4881320d886e2e4cb71dced2100c | ddc2e0a1c6d6c30221da9ef95ffdadb661836702 | /src/main/java/com/apptrics/studentdetailswork/StudentHibernateWork/Marks.java | 5258898006952dcf024160e985ecbd843b471d18 | [] | no_license | Lok-Aravind-Palu/StudentHibernateOnetoOne | 6c656b9fdcaad42465a53198cb1e530c6d1fa6da | 5b72697a2ba06b2884d7b2882895a03f12a31ea9 | refs/heads/master | 2020-03-20T20:17:09.286940 | 2018-06-17T19:01:10 | 2018-06-17T19:01:10 | 137,678,962 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 789 | java | package com.apptrics.studentdetailswork.StudentHibernateWork;
public class Marks {
private int id;
private double m1;
private double m2;
private double m3;
private double m4;
@Override
public String toString() {
return "Marks [id=" + id + ", m1=" + m1 + ", m2=" + m2 + ", m3=" + m3 + ", m4=" + m4 + "]";
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public double getM1() {
return m1;
}
public void setM1(double m1) {
this.m1 = m1;
}
public double getM2() {
return m2;
}
public void setM2(double m2) {
this.m2 = m2;
}
public double getM3() {
return m3;
}
public void setM3(double m3) {
this.m3 = m3;
}
public double getM4() {
return m4;
}
public void setM4(double m4) {
this.m4 = m4;
}
}
| [
"aravind.paluvadi93@gmail.com"
] | aravind.paluvadi93@gmail.com |
e23bea2598678a8cec77057929ce599fc98d11a9 | a6472a1fbb6aee780ed9de97657a8c419c2d9839 | /src/main/java/job4j_url_shortcut/service/RedirectService.java | 788023692917eb363f89d58215dbdaaada94b907 | [] | no_license | DenisViskov/job4j_url_shortcut | 516b11d812d2a6226ce5d10bb6f5b15c42413b5a | 37aba7dcfc0fa6d15f356e633eb8c9eae2fa0f38 | refs/heads/master | 2023-01-07T15:10:25.543400 | 2020-11-07T16:13:25 | 2020-11-07T16:13:25 | 310,369,313 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,422 | java | package job4j_url_shortcut.service;
import job4j_url_shortcut.domain.Url;
import job4j_url_shortcut.repository.UrlRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Optional;
/**
* Class is an implementation Redirect interface
*
* @author Денис Висков
* @version 1.0
* @since 06.11.2020
*/
@Service
public class RedirectService implements Redirect<String> {
/**
* Url repository
*/
private final UrlRepository repository;
/**
* Statistic service
*/
private final Statistic statisticService;
@Autowired
public RedirectService(UrlRepository repository, Statistic statisticService) {
this.repository = repository;
this.statisticService = statisticService;
}
/**
* Method returns string url by given code
* and mark url total calls through statistic service
*
* @param code
* @return Optional<String>
*/
@Override
public Optional<String> getRedirect(String code) {
Optional<String> result = Optional.empty();
Optional<Url> urlBox = repository.findByCode(code);
if (urlBox.isPresent()) {
result = Optional.of(urlBox
.get()
.getUrl());
statisticService.incrementTotal(urlBox.get());
}
return result;
}
}
| [
"DenisViskov16@gmail.com"
] | DenisViskov16@gmail.com |
93b4f7709c3459fa06b0fc7dca17afe7400ad38d | 9254e7279570ac8ef687c416a79bb472146e9b35 | /cddc-20200320/src/main/java/com/aliyun/cddc20200320/models/DescribeBriefDedicatedHostsResponse.java | 0a76ecbf2f10ce88e2013793f283807d73608e50 | [
"Apache-2.0"
] | permissive | lquterqtd/alibabacloud-java-sdk | 3eaa17276dd28004dae6f87e763e13eb90c30032 | 3e5dca8c36398469e10cdaaa34c314ae0bb640b4 | refs/heads/master | 2023-08-12T13:56:26.379027 | 2021-10-19T07:22:15 | 2021-10-19T07:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,170 | java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.cddc20200320.models;
import com.aliyun.tea.*;
public class DescribeBriefDedicatedHostsResponse extends TeaModel {
@NameInMap("headers")
@Validation(required = true)
public java.util.Map<String, String> headers;
@NameInMap("body")
@Validation(required = true)
public DescribeBriefDedicatedHostsResponseBody body;
public static DescribeBriefDedicatedHostsResponse build(java.util.Map<String, ?> map) throws Exception {
DescribeBriefDedicatedHostsResponse self = new DescribeBriefDedicatedHostsResponse();
return TeaModel.build(map, self);
}
public DescribeBriefDedicatedHostsResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public DescribeBriefDedicatedHostsResponse setBody(DescribeBriefDedicatedHostsResponseBody body) {
this.body = body;
return this;
}
public DescribeBriefDedicatedHostsResponseBody getBody() {
return this.body;
}
}
| [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
7de925867cda55872e18e5ebe7a227f4ab37d861 | 2891ab7d455728b4bcb51a6196b9cec5265f666f | /src/main/java/student_aleksandrs_jakovenko/lesson_4/level_2/Task6.java | b62a6122038ce6770bb66a8478b38c98fa359d65 | [] | no_license | AlexJavaGuru/java_1_wednesday_2022 | 14eefec7c15ab7fce4d5b5a8ee545ff674e944df | dea5c75a855f4987bdf245aab7a05dddbb6ea9d0 | refs/heads/master | 2022-09-07T13:01:57.188817 | 2022-06-10T19:03:48 | 2022-06-10T19:03:48 | 449,743,084 | 11 | 7 | null | 2022-07-15T20:26:17 | 2022-01-19T15:16:45 | Java | UTF-8 | Java | false | false | 659 | java | package student_aleksandrs_jakovenko.lesson_4.level_2;
import java.util.Scanner;
class Task6 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Enter the first number: ");
int firstNum = scanner.nextInt();
System.out.println("Enter the second number: ");
int secondNum = scanner.nextInt();
if (firstNum > secondNum){
System.out.println(secondNum + " is less!");
} else if (firstNum < secondNum){
System.out.println(firstNum + " is less!");
} else
System.out.println("Numbers are equals!");
}
}
| [
"jako2577@gmail.com"
] | jako2577@gmail.com |
8fbe969d1af368bf9b0c9b075f47be57e8384097 | 3850f97a562007d26e5a8187cbe1cdee0e61b36c | /Week2_Day1/CreateLEad.java | 573942361719801f0100eefce784fb72af51c85a | [] | no_license | Sakthikumar-M/Java-Selenium-code | e974975657dd90a0bef9ba282d0e7f05c0f71ebe | 0a14b92ad1f99a60f532f661c0a2bb2349a50235 | refs/heads/master | 2023-01-21T08:31:23.832702 | 2020-12-02T05:50:10 | 2020-12-02T05:50:10 | 295,115,017 | 0 | 0 | null | 2020-09-17T11:03:43 | 2020-09-13T09:05:21 | Java | UTF-8 | Java | false | false | 2,069 | java | package Week2_Day1;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
import org.testng.annotations.Test;
import io.github.bonigarcia.wdm.WebDriverManager;
public class CreateLEad {
public static void main(String args[]){
//WebDriverManager.chromedriver().setup();
ChromeDriver dr = new ChromeDriver();
dr.get("http://leaftaps.com/opentaps/control/login");
dr.findElementById("username").sendKeys("demosalesmanager");
dr.findElementById("password").sendKeys("crmsfa");
dr.findElementByClassName("decorativeSubmit").click();
dr.findElementByClassName("crmsfa").click();
dr.findElementByClassName("sectionTabButtonSelected").click();
dr.findElementByLinkText("Create Lead").click();
dr.findElementById("createLeadForm_companyName").sendKeys("Test Company");
dr.findElementById("createLeadForm_firstName").sendKeys("FirstName1");
dr.findElementById("createLeadForm_lastName").sendKeys("LastName1");
WebElement source = dr.findElementById("createLeadForm_dataSourceId");
Select src_dd = new Select(source);
src_dd.selectByVisibleText("Employee");
WebElement mk_camp = dr.findElementById("createLeadForm_marketingCampaignId");
Select merk_dd = new Select(mk_camp);
merk_dd.selectByVisibleText("Pay Per Click Advertising");
WebElement indus = dr.findElementById("createLeadForm_industryEnumId");
Select indus_dd = new Select(indus);
indus_dd.selectByVisibleText("Telecommunications");
WebElement owner = dr.findElementById("createLeadForm_ownershipEnumId");
Select owner_dd = new Select(owner);
owner_dd.selectByVisibleText("Corporation");
WebElement ctry = dr.findElementById("createLeadForm_generalCountryGeoId");
Select ctry_dd = new Select(ctry);
ctry_dd.selectByVisibleText("India");
dr.findElementByName("submitButton").click();
String title = dr.findElementById("sectionHeaderTitle_leads").getText();
System.out.println("Title is :" +title);
}
}
| [
"noreply@github.com"
] | Sakthikumar-M.noreply@github.com |
b8476cf9d3517e7145dcb076b0888bd68a773dc6 | 299fa337e8ada47e10dbafc777f0ed666095c091 | /jam-processor/src/main/java-jdk8/sk/annotation/library/jam/processor/utils/JdkPackageUtils.java | 67082db406802503987ed82b7397b3566dd591db | [
"Apache-2.0"
] | permissive | AnnotationSro/java-annotation-mapper | 9deb8befa5a11788fb8230118a30926133375186 | a26876dcfd3d2ed95c631fdabf107f7d3da264e5 | refs/heads/master | 2022-11-09T15:55:42.227159 | 2022-10-29T21:19:39 | 2022-10-29T21:19:39 | 193,459,611 | 2 | 0 | Apache-2.0 | 2020-10-13T14:16:13 | 2019-06-24T07:52:05 | Java | UTF-8 | Java | false | false | 331 | java | package sk.annotation.library.jam.processor.utils;
import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.PackageElement;
public class JdkPackageUtils {
public static PackageElement getPackageElement(ProcessingEnvironment processingEnv, String pckParentName) {
return null;
}
}
| [
"pavol.slany@annotation.sk"
] | pavol.slany@annotation.sk |
c846dd2f4a1e957d156db88779aa53752073a633 | e735aa4dd05e47a055f68ac2fd787efba1b97ef0 | /src/makeDeposit1.java | d2a7fcce6a547a513dab010e65c5c2be5e862644 | [] | no_license | loymascarenhas/Banking | edc7e0c4978b965348e14150461b1a28d0cce0e1 | 1576568351ad2b4d32ae82b5f6937c5526b59f8d | refs/heads/master | 2021-01-01T04:52:42.101440 | 2017-07-14T18:21:07 | 2017-07-14T18:21:07 | 97,261,636 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 226 | java |
public class makeDeposit1 extends makeDeposit{
public makeDeposit1(Data data) {
// TODO Auto-generated constructor stub
float total = data.getFbal();
data.setFbal(total);
System.out.println(total);
}
}
| [
"Loy@192.168.1.105"
] | Loy@192.168.1.105 |
9740a4402317ed7c169cfb330530ce46ca69b297 | 0803de6651472fa26efab52b09cad726e1fb1461 | /app/src/main/java/org/zaregoto/apl/lasttimecounter/db/ItemDBException.java | 9132196383122467959cb2d2f349d3d43eecac6c | [] | no_license | wanwan/lasttimeCounter | 3164cb255984a130851023a7b008c2d2bdff9e4d | 02f26c3156e2d5e70b011392f8082bb4ea71e141 | refs/heads/master | 2021-09-11T13:22:57.611700 | 2018-04-07T11:58:35 | 2018-04-07T11:58:35 | 112,743,462 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 241 | java | package org.zaregoto.apl.lasttimecounter.db;
import java.text.ParseException;
public class ItemDBException extends Exception {
public ItemDBException() {
}
public ItemDBException(ParseException e) {
super(e);
}
}
| [
"waka@zaregoto.org"
] | waka@zaregoto.org |
a9946ac1ad21d7c531880de8c63d99400a82dee0 | 81719679e3d5945def9b7f3a6f638ee274f5d770 | /aws-java-sdk-cloud9/src/main/java/com/amazonaws/services/cloud9/model/transform/DeleteEnvironmentMembershipRequestMarshaller.java | 892fc51292547af14fc4f2774f0d9e0be8135ffc | [
"Apache-2.0"
] | permissive | ZeevHayat1/aws-sdk-java | 1e3351f2d3f44608fbd3ff987630b320b98dc55c | bd1a89e53384095bea869a4ea064ef0cf6ed7588 | refs/heads/master | 2022-04-10T14:18:43.276970 | 2020-03-07T12:15:44 | 2020-03-07T12:15:44 | 172,681,373 | 1 | 0 | Apache-2.0 | 2019-02-26T09:36:47 | 2019-02-26T09:36:47 | null | UTF-8 | Java | false | false | 2,460 | java | /*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.cloud9.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.cloud9.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* DeleteEnvironmentMembershipRequestMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class DeleteEnvironmentMembershipRequestMarshaller {
private static final MarshallingInfo<String> ENVIRONMENTID_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("environmentId").build();
private static final MarshallingInfo<String> USERARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("userArn").build();
private static final DeleteEnvironmentMembershipRequestMarshaller instance = new DeleteEnvironmentMembershipRequestMarshaller();
public static DeleteEnvironmentMembershipRequestMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(DeleteEnvironmentMembershipRequest deleteEnvironmentMembershipRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteEnvironmentMembershipRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(deleteEnvironmentMembershipRequest.getEnvironmentId(), ENVIRONMENTID_BINDING);
protocolMarshaller.marshall(deleteEnvironmentMembershipRequest.getUserArn(), USERARN_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
| [
""
] | |
8723ba8ef14d85f3da55ecc8a2a9dcb7fc5e8bef | bcd89b4dea985817bf68c49482985c67c552457e | /compass3d/src/com/adaptive_enterprises/android/compass3d/activity/Compass3dPreferenceActivity.java | 8cf9d44e568c03aaab2f65f0f4f8ed975d883127 | [] | no_license | hilsonshrestha/android-compass3d | 980f293650a9427630bf42d4802ea2c385338e0e | f443457088239b3771397d957b903a54f0d8834c | refs/heads/master | 2021-01-10T10:41:56.734210 | 2010-11-23T06:30:12 | 2010-11-23T06:30:12 | 43,532,807 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 916 | java | package com.adaptive_enterprises.android.compass3d.activity;
import com.adaptive_enterprises.android.compass3d.R;
import com.adaptive_enterprises.android.compass3d.model.SettingsModel;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;
public class Compass3dPreferenceActivity extends PreferenceActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.preferences);
}
public static void loadSettings(Context context, SettingsModel settings) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
settings.setVibrateOnAlignment(prefs.getBoolean("vibrateOnAlignment", true));
}
}
| [
"dleonard2009@db34aede-62c7-e659-5472-d1b8b7d0d3b3"
] | dleonard2009@db34aede-62c7-e659-5472-d1b8b7d0d3b3 |
8ca21856411e270a85b4c2a6fa274114880bd625 | e3ccbfcc3a10c1536c7ec4e8ebaf699b63af666f | /ease/src/main/java/com/hyphenate/easeui/viewholder/EaseCustomViewHolder.java | 26eac93586ce98211d3badbbbcfa3d5698468f66 | [] | no_license | llyy0812/IM_Android | 043c87a4d573fa4bd3d02c8007c587aa5155300d | d6246e8fb5dc7b7e6fc482c113b27f6985819c09 | refs/heads/master | 2023-06-01T18:01:45.710709 | 2021-06-19T13:23:52 | 2021-06-19T13:23:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,528 | java | package com.hyphenate.easeui.viewholder;
import android.view.View;
import com.hyphenate.chat.EMClient;
import com.hyphenate.chat.EMMessage;
import com.hyphenate.easeui.EaseIM;
import com.hyphenate.easeui.interfaces.MessageListItemClickListener;
import com.hyphenate.easeui.manager.EaseDingMessageHelper;
import com.hyphenate.exceptions.HyphenateException;
import androidx.annotation.NonNull;
public class EaseCustomViewHolder extends EaseChatRowViewHolder {
public EaseCustomViewHolder(@NonNull View itemView, MessageListItemClickListener itemClickListener) {
super(itemView, itemClickListener);
}
@Override
protected void handleReceiveMessage(EMMessage message) {
if(!EaseIM.getInstance().getConfigsManager().enableSendChannelAck()) {
//此处不再单独发送read_ack消息,改为进入聊天页面发送channel_ack
//新消息在聊天页面的onReceiveMessage方法中,排除视频,语音和文件消息外,发送read_ack消息
if (!message.isAcked() && message.getChatType() == EMMessage.ChatType.Chat) {
try {
EMClient.getInstance().chatManager().ackMessageRead(message.getFrom(), message.getMsgId());
} catch (HyphenateException e) {
e.printStackTrace();
}
return;
}
}
// Send the group-ack cmd type msg if this msg is a ding-type msg.
EaseDingMessageHelper.get().sendAckMessage(message);
}
}
| [
"592923908@qq.com"
] | 592923908@qq.com |
ca044417166587819ce4e19f3a9c6d6706666e03 | 3ef08872401d8f92b25b966f60cf13859eeadc56 | /app/src/main/java/com/opentouhou/opentouhouandroid/scene/scenes/startmenu/StartMenuScreen30.java | 04f13e044c44d13777f41cec6c4e800d9917be6f | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | opentouhouproject/OpenTouhouAndroid | dacaa74fd27252b0a291384b6007f5e98021fb3b | 0a2904188f0d0a34ea492f5821503df00e99e1a0 | refs/heads/master | 2023-05-25T07:56:08.624412 | 2023-05-14T14:13:23 | 2023-05-14T14:13:23 | 174,387,071 | 4 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,825 | java | package com.opentouhou.opentouhouandroid.scene.scenes.startmenu;
import android.util.Log;
import android.view.MotionEvent;
import com.opentouhou.opentouhouandroid.io.xml.SceneParser;
import com.scarlet.graphics.opengl.Camera;
import com.scarlet.graphics.opengl.Renderer;
import com.scarlet.graphics.opengl.Version;
import com.scarlet.math.Vector4f;
import com.scarlet.scene.Scene;
import com.scarlet.scene.Stage;
import com.scarlet.scene.State;
import com.scarlet.ui.button.PlayButton;
import com.scarlet.ui.charactermenu.CharacterMenu;
import com.scarlet.ui.difficultymenu.DifficultyMenu;
import com.scarlet.ui.stagemenu.StageMenu;
import java.io.InputStreamReader;
import com.opentouhou.opentouhouandroid.entity.background.Background;
public class StartMenuScreen30 extends Scene {
// Game State
public boolean startGame = false;
private State<StartMenuScreen30> state;
// Game Objects
Background background;
//Menu menu;
CharacterMenu characterMenu;
DifficultyMenu difficultyMenu;
StageMenu stageMenu;
PlayButton playButton;
/*
* Constructor(s).
*/
public StartMenuScreen30(String name, Stage stage) {
super(name, stage);
}
/*
* Implement Scene
*/
@Override
public void setup() {
// Get the renderer.
Renderer renderer = stage.getRenderer();
// Load the assets.
InputStreamReader reader = stage.getFileManager().openRawAsset("scene/startmenu/loadInfo30.xml");
SceneParser.parse(reader, this);
// Create the camera.
camera = new Camera(0.0f, 0.0f, 10.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f);
// Create light source(s).
light = new Vector4f(0.0f, 0.0f, 2.0f, 0.0f);
// Create background.
background = new Background(renderer, Version.OPENGL_ES_30, true);
background.setTexture(renderer.getTextureManager().getTexture("art/startmenu_bg.png"));
//menu = new Menu(renderer);
characterMenu = new CharacterMenu(renderer);
difficultyMenu = new DifficultyMenu(renderer);
stageMenu = new StageMenu(renderer);
playButton = new PlayButton(renderer, true);
playButton.setPosition(-3.0f, -4.0f, 3.0f);
playButton.setAngle(0);
playButton.setText("Play");
// Finished loading.
Log.d("Scene Loading.", "Start Menu Loading Completed.");
ready = true;
}
@Override
public void init() {
// Setup the state.
state = States.INITIAL_STATE;
state.enter(this);
}
@Override
public void handleInput(MotionEvent event) {
state.handleInput(this, event);
}
@Override
public void update() {
state.update(this);
}
@Override
public void draw() {
state.draw(this);
}
}
| [
"opentouhouproject@gmail.com"
] | opentouhouproject@gmail.com |
7d67bf928d55ec50b1e2af534b8228d3c8786d15 | c747944f401a426b58db7d3af8690d8b3591f178 | /app/src/test/java/com/example/nandawk/keyboardsample/ExampleUnitTest.java | 46c2cdee87682648b15c875195b1aec37fa1e202 | [] | no_license | nandawawank/KeyboardSample | 189b8b386df27b8c217c8144df13de057d44b101 | e36ae6fdbffc4303b7801f0109316d12de66def8 | refs/heads/master | 2021-05-07T06:47:08.504132 | 2017-11-23T07:43:28 | 2017-11-23T07:43:28 | 111,778,715 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 412 | java | package com.example.nandawk.keyboardsample;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} | [
"nandawawank@gmail.com"
] | nandawawank@gmail.com |
dc3ab584f63e7b2f575a40e3864aaea70b8587df | 0837b4d5c2268ff3da6decbee04501e2950db560 | /TEMPORARY/ACCOUNTS/AccountTypes.java | 4dedcec4ff7d72b839017923ada1c1ccaced9dc9 | [] | no_license | AlexanderYakovlev-Yassa/EPAM | aeef859f1d0c15192f3e207e00feac78830252fc | 6f2d33325b3f45f4e1ea2a5b108fef0dda7258c1 | refs/heads/master | 2023-03-04T16:19:24.497011 | 2020-02-14T12:51:08 | 2020-02-14T12:51:08 | 196,065,789 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 368 | java |
public enum AccountTypes {
CURRENT("текущий", true), //может быть только один в группе счетов Accounts
CARD("карточный", true);
String rusName;
boolean multiple;
AccountTypes(String rusName, boolean multiple){
this.rusName = rusName;
this.multiple = multiple;
}
}
| [
"noreply@github.com"
] | AlexanderYakovlev-Yassa.noreply@github.com |
8381adcddc83f62a72d03dc521ad3dcb8048b78f | b3d9de772e9d86059fbb05012f5d86473b34d079 | /apache-maven-3.8.3/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java | 1afff4e4ef798f33a315f66fa9dd14d491ff7a4c | [
"Apache-2.0"
] | permissive | sudhansu133/Testing | 08f4b3b8b624df4f5a3af7d06336bc75fe99d3b4 | b9a7bfa0e8289716d41ec56572cfb9b6acef6fd6 | refs/heads/master | 2023-08-30T20:44:55.930466 | 2021-10-12T18:40:30 | 2021-10-12T18:40:30 | 416,307,796 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 35,567 | java | package org.apache.maven.bridge;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.maven.RepositoryUtils;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.DefaultArtifact;
import org.apache.maven.artifact.InvalidRepositoryException;
import org.apache.maven.artifact.handler.ArtifactHandler;
import org.apache.maven.artifact.handler.manager.ArtifactHandlerManager;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy;
import org.apache.maven.artifact.repository.Authentication;
import org.apache.maven.artifact.repository.MavenArtifactRepository;
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout2;
import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout;
import org.apache.maven.artifact.resolver.filter.ExclusionArtifactFilter;
import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException;
import org.apache.maven.artifact.versioning.VersionRange;
import org.apache.maven.execution.MavenExecutionRequest;
import org.apache.maven.model.Dependency;
import org.apache.maven.model.Plugin;
import org.apache.maven.repository.Proxy;
import org.apache.maven.repository.RepositorySystem;
import org.apache.maven.settings.Mirror;
import org.codehaus.plexus.component.annotations.Component;
import org.codehaus.plexus.component.annotations.Requirement;
import org.codehaus.plexus.util.StringUtils;
import org.eclipse.aether.RepositorySystemSession;
import org.eclipse.aether.repository.AuthenticationContext;
import org.eclipse.aether.repository.AuthenticationSelector;
import org.eclipse.aether.repository.ProxySelector;
import org.eclipse.aether.repository.RemoteRepository;
/**
* @author Jason van Zyl
*/
@Component( role = MavenRepositorySystem.class, hint = "default" )
public class MavenRepositorySystem
{
@Requirement
private ArtifactHandlerManager artifactHandlerManager;
@Requirement( role = ArtifactRepositoryLayout.class )
private Map<String, ArtifactRepositoryLayout> layouts;
// DefaultProjectBuilder
public Artifact createArtifact( String groupId, String artifactId, String version, String scope, String type )
{
return createArtifactX( groupId, artifactId, version, scope, type );
}
// DefaultProjectBuilder
public Artifact createProjectArtifact( String groupId, String artifactId, String metaVersionId )
{
return createProjectArtifactX( groupId, artifactId, metaVersionId );
}
// DefaultProjectBuilder
public Artifact createDependencyArtifact( Dependency d )
{
if ( d.getVersion() == null )
{
return null;
}
VersionRange versionRange;
try
{
versionRange = VersionRange.createFromVersionSpec( d.getVersion() );
}
catch ( InvalidVersionSpecificationException e )
{
return null;
}
Artifact artifact =
createDependencyArtifactX( d.getGroupId(), d.getArtifactId(), versionRange, d.getType(),
d.getClassifier(), d.getScope(), d.isOptional() );
if ( Artifact.SCOPE_SYSTEM.equals( d.getScope() ) && d.getSystemPath() != null )
{
artifact.setFile( new File( d.getSystemPath() ) );
}
if ( !d.getExclusions().isEmpty() )
{
artifact.setDependencyFilter( new ExclusionArtifactFilter( d.getExclusions() ) );
}
return artifact;
}
// DefaultProjectBuilder
public Artifact createExtensionArtifact( String groupId, String artifactId, String version )
{
VersionRange versionRange;
try
{
versionRange = VersionRange.createFromVersionSpec( version );
}
catch ( InvalidVersionSpecificationException e )
{
return null;
}
return createExtensionArtifactX( groupId, artifactId, versionRange );
}
// DefaultProjectBuilder
public Artifact createParentArtifact( String groupId, String artifactId, String version )
{
return createParentArtifactX( groupId, artifactId, version );
}
// DefaultProjectBuilder
public Artifact createPluginArtifact( Plugin plugin )
{
VersionRange versionRange;
try
{
String version = plugin.getVersion();
if ( StringUtils.isEmpty( version ) )
{
version = "RELEASE";
}
versionRange = VersionRange.createFromVersionSpec( version );
}
catch ( InvalidVersionSpecificationException e )
{
return null;
}
return createPluginArtifactX( plugin.getGroupId(), plugin.getArtifactId(), versionRange );
}
public void injectMirror( List<ArtifactRepository> repositories, List<Mirror> mirrors )
{
if ( repositories != null && mirrors != null )
{
for ( ArtifactRepository repository : repositories )
{
Mirror mirror = getMirror( repository, mirrors );
injectMirror( repository, mirror );
}
}
}
private Mirror getMirror( RepositorySystemSession session, ArtifactRepository repository )
{
if ( session != null )
{
org.eclipse.aether.repository.MirrorSelector selector = session.getMirrorSelector();
if ( selector != null )
{
RemoteRepository repo = selector.getMirror( RepositoryUtils.toRepo( repository ) );
if ( repo != null )
{
Mirror mirror = new Mirror();
mirror.setId( repo.getId() );
mirror.setUrl( repo.getUrl() );
mirror.setLayout( repo.getContentType() );
mirror.setBlocked( repo.isBlocked() );
return mirror;
}
}
}
return null;
}
public void injectMirror( RepositorySystemSession session, List<ArtifactRepository> repositories )
{
if ( repositories != null && session != null )
{
for ( ArtifactRepository repository : repositories )
{
Mirror mirror = getMirror( session, repository );
injectMirror( repository, mirror );
}
}
}
private void injectMirror( ArtifactRepository repository, Mirror mirror )
{
if ( mirror != null )
{
ArtifactRepository original =
createArtifactRepository( repository.getId(), repository.getUrl(), repository.getLayout(),
repository.getSnapshots(), repository.getReleases() );
repository.setMirroredRepositories( Collections.singletonList( original ) );
repository.setId( mirror.getId() );
repository.setUrl( mirror.getUrl() );
if ( StringUtils.isNotEmpty( mirror.getLayout() ) )
{
repository.setLayout( getLayout( mirror.getLayout() ) );
}
repository.setBlocked( mirror.isBlocked() );
}
}
private Authentication getAuthentication( RepositorySystemSession session, ArtifactRepository repository )
{
if ( session != null )
{
AuthenticationSelector selector = session.getAuthenticationSelector();
if ( selector != null )
{
RemoteRepository repo = RepositoryUtils.toRepo( repository );
org.eclipse.aether.repository.Authentication auth = selector.getAuthentication( repo );
if ( auth != null )
{
repo = new RemoteRepository.Builder( repo ).setAuthentication( auth ).build();
AuthenticationContext authCtx = AuthenticationContext.forRepository( session, repo );
Authentication result =
new Authentication( authCtx.get( AuthenticationContext.USERNAME ),
authCtx.get( AuthenticationContext.PASSWORD ) );
result.setPrivateKey( authCtx.get( AuthenticationContext.PRIVATE_KEY_PATH ) );
result.setPassphrase( authCtx.get( AuthenticationContext.PRIVATE_KEY_PASSPHRASE ) );
authCtx.close();
return result;
}
}
}
return null;
}
public void injectAuthentication( RepositorySystemSession session, List<ArtifactRepository> repositories )
{
if ( repositories != null && session != null )
{
for ( ArtifactRepository repository : repositories )
{
repository.setAuthentication( getAuthentication( session, repository ) );
}
}
}
private Proxy getProxy( RepositorySystemSession session, ArtifactRepository repository )
{
if ( session != null )
{
ProxySelector selector = session.getProxySelector();
if ( selector != null )
{
RemoteRepository repo = RepositoryUtils.toRepo( repository );
org.eclipse.aether.repository.Proxy proxy = selector.getProxy( repo );
if ( proxy != null )
{
Proxy p = new Proxy();
p.setHost( proxy.getHost() );
p.setProtocol( proxy.getType() );
p.setPort( proxy.getPort() );
if ( proxy.getAuthentication() != null )
{
repo = new RemoteRepository.Builder( repo ).setProxy( proxy ).build();
AuthenticationContext authCtx = AuthenticationContext.forProxy( session, repo );
p.setUserName( authCtx.get( AuthenticationContext.USERNAME ) );
p.setPassword( authCtx.get( AuthenticationContext.PASSWORD ) );
p.setNtlmDomain( authCtx.get( AuthenticationContext.NTLM_DOMAIN ) );
p.setNtlmHost( authCtx.get( AuthenticationContext.NTLM_WORKSTATION ) );
authCtx.close();
}
return p;
}
}
}
return null;
}
public void injectProxy( RepositorySystemSession session, List<ArtifactRepository> repositories )
{
if ( repositories != null && session != null )
{
for ( ArtifactRepository repository : repositories )
{
repository.setProxy( getProxy( session, repository ) );
}
}
}
private ArtifactRepositoryLayout getLayout( String id )
{
ArtifactRepositoryLayout layout = layouts.get( id );
return layout;
}
//
// Taken from LegacyRepositorySystem
//
public static org.apache.maven.model.Repository fromSettingsRepository( org.apache.maven.settings.Repository
settingsRepository )
{
org.apache.maven.model.Repository modelRepository = new org.apache.maven.model.Repository();
modelRepository.setId( settingsRepository.getId() );
modelRepository.setLayout( settingsRepository.getLayout() );
modelRepository.setName( settingsRepository.getName() );
modelRepository.setUrl( settingsRepository.getUrl() );
modelRepository.setReleases( fromSettingsRepositoryPolicy( settingsRepository.getReleases() ) );
modelRepository.setSnapshots( fromSettingsRepositoryPolicy( settingsRepository.getSnapshots() ) );
return modelRepository;
}
public static org.apache.maven.model.RepositoryPolicy fromSettingsRepositoryPolicy(
org.apache.maven.settings.RepositoryPolicy settingsRepositoryPolicy )
{
org.apache.maven.model.RepositoryPolicy modelRepositoryPolicy = new org.apache.maven.model.RepositoryPolicy();
if ( settingsRepositoryPolicy != null )
{
modelRepositoryPolicy.setEnabled( settingsRepositoryPolicy.isEnabled() );
modelRepositoryPolicy.setUpdatePolicy( settingsRepositoryPolicy.getUpdatePolicy() );
modelRepositoryPolicy.setChecksumPolicy( settingsRepositoryPolicy.getChecksumPolicy() );
}
return modelRepositoryPolicy;
}
public static ArtifactRepository buildArtifactRepository( org.apache.maven.settings.Repository repo )
throws InvalidRepositoryException
{
return buildArtifactRepository( fromSettingsRepository( repo ) );
}
public static ArtifactRepository buildArtifactRepository( org.apache.maven.model.Repository repo )
throws InvalidRepositoryException
{
if ( repo != null )
{
String id = repo.getId();
if ( StringUtils.isEmpty( id ) )
{
throw new InvalidRepositoryException( "Repository identifier missing", "" );
}
String url = repo.getUrl();
if ( StringUtils.isEmpty( url ) )
{
throw new InvalidRepositoryException( "URL missing for repository " + id, id );
}
ArtifactRepositoryPolicy snapshots = buildArtifactRepositoryPolicy( repo.getSnapshots() );
ArtifactRepositoryPolicy releases = buildArtifactRepositoryPolicy( repo.getReleases() );
ArtifactRepositoryLayout layout = new DefaultRepositoryLayout();
return createArtifactRepository( id, url, layout, snapshots, releases );
}
else
{
return null;
}
}
public static ArtifactRepositoryPolicy buildArtifactRepositoryPolicy( org.apache.maven.model.RepositoryPolicy
policy )
{
boolean enabled = true;
String updatePolicy = null;
String checksumPolicy = null;
if ( policy != null )
{
enabled = policy.isEnabled();
if ( policy.getUpdatePolicy() != null )
{
updatePolicy = policy.getUpdatePolicy();
}
if ( policy.getChecksumPolicy() != null )
{
checksumPolicy = policy.getChecksumPolicy();
}
}
return new ArtifactRepositoryPolicy( enabled, updatePolicy, checksumPolicy );
}
public ArtifactRepository createArtifactRepository( String id, String url, String layoutId,
ArtifactRepositoryPolicy snapshots,
ArtifactRepositoryPolicy releases )
throws Exception
{
ArtifactRepositoryLayout layout = layouts.get( layoutId );
checkLayout( id, layoutId, layout );
return createArtifactRepository( id, url, layout, snapshots, releases );
}
private void checkLayout( String repositoryId, String layoutId, ArtifactRepositoryLayout layout )
throws Exception
{
if ( layout == null )
{
throw new Exception( String.format( "Cannot find ArtifactRepositoryLayout instance for: %s %s", layoutId,
repositoryId ) );
}
}
public static ArtifactRepository createArtifactRepository( String id, String url,
ArtifactRepositoryLayout repositoryLayout,
ArtifactRepositoryPolicy snapshots,
ArtifactRepositoryPolicy releases )
{
if ( snapshots == null )
{
snapshots = new ArtifactRepositoryPolicy();
}
if ( releases == null )
{
releases = new ArtifactRepositoryPolicy();
}
ArtifactRepository repository;
if ( repositoryLayout instanceof ArtifactRepositoryLayout2 )
{
repository =
( (ArtifactRepositoryLayout2) repositoryLayout ).newMavenArtifactRepository( id, url, snapshots,
releases );
}
else
{
repository = new MavenArtifactRepository( id, url, repositoryLayout, snapshots, releases );
}
return repository;
}
// ArtifactFactory
private Artifact createArtifactX( String groupId, String artifactId, String version, String scope, String type )
{
return createArtifactX( groupId, artifactId, version, scope, type, null, null );
}
private Artifact createDependencyArtifactX( String groupId, String artifactId, VersionRange versionRange,
String type, String classifier, String scope, boolean optional )
{
return createArtifactX( groupId, artifactId, versionRange, type, classifier, scope, null, optional );
}
private Artifact createProjectArtifactX( String groupId, String artifactId, String version )
{
return createProjectArtifactX( groupId, artifactId, version, null );
}
private Artifact createParentArtifactX( String groupId, String artifactId, String version )
{
return createProjectArtifactX( groupId, artifactId, version );
}
private Artifact createPluginArtifactX( String groupId, String artifactId, VersionRange versionRange )
{
return createArtifactX( groupId, artifactId, versionRange, "maven-plugin", null, Artifact.SCOPE_RUNTIME, null );
}
private Artifact createProjectArtifactX( String groupId, String artifactId, String version, String scope )
{
return createArtifactX( groupId, artifactId, version, scope, "pom" );
}
private Artifact createExtensionArtifactX( String groupId, String artifactId, VersionRange versionRange )
{
return createArtifactX( groupId, artifactId, versionRange, "jar", null, Artifact.SCOPE_RUNTIME, null );
}
private Artifact createArtifactX( String groupId, String artifactId, String version, String scope, String type,
String classifier, String inheritedScope )
{
VersionRange versionRange = null;
if ( version != null )
{
versionRange = VersionRange.createFromVersion( version );
}
return createArtifactX( groupId, artifactId, versionRange, type, classifier, scope, inheritedScope );
}
private Artifact createArtifactX( String groupId, String artifactId, VersionRange versionRange, String type,
String classifier, String scope, String inheritedScope )
{
return createArtifactX( groupId, artifactId, versionRange, type, classifier, scope, inheritedScope, false );
}
@SuppressWarnings( "checkstyle:parameternumber" )
private Artifact createArtifactX( String groupId, String artifactId, VersionRange versionRange, String type,
String classifier, String scope, String inheritedScope, boolean optional )
{
String desiredScope = Artifact.SCOPE_RUNTIME;
if ( inheritedScope == null )
{
desiredScope = scope;
}
else if ( Artifact.SCOPE_TEST.equals( scope ) || Artifact.SCOPE_PROVIDED.equals( scope ) )
{
return null;
}
else if ( Artifact.SCOPE_COMPILE.equals( scope ) && Artifact.SCOPE_COMPILE.equals( inheritedScope ) )
{
// added to retain compile artifactScope. Remove if you want compile inherited as runtime
desiredScope = Artifact.SCOPE_COMPILE;
}
if ( Artifact.SCOPE_TEST.equals( inheritedScope ) )
{
desiredScope = Artifact.SCOPE_TEST;
}
if ( Artifact.SCOPE_PROVIDED.equals( inheritedScope ) )
{
desiredScope = Artifact.SCOPE_PROVIDED;
}
if ( Artifact.SCOPE_SYSTEM.equals( scope ) )
{
// system scopes come through unchanged...
desiredScope = Artifact.SCOPE_SYSTEM;
}
ArtifactHandler handler = artifactHandlerManager.getArtifactHandler( type );
return new DefaultArtifact( groupId, artifactId, versionRange, desiredScope, type, classifier, handler,
optional );
}
//
// Code taken from LegacyRepositorySystem
//
public ArtifactRepository createDefaultRemoteRepository( MavenExecutionRequest request )
throws Exception
{
return createRepository( RepositorySystem.DEFAULT_REMOTE_REPO_URL, RepositorySystem.DEFAULT_REMOTE_REPO_ID,
true, ArtifactRepositoryPolicy.UPDATE_POLICY_DAILY, false,
ArtifactRepositoryPolicy.UPDATE_POLICY_DAILY,
ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN );
}
public ArtifactRepository createRepository( String url, String repositoryId, boolean releases,
String releaseUpdates, boolean snapshots, String snapshotUpdates,
String checksumPolicy ) throws Exception
{
ArtifactRepositoryPolicy snapshotsPolicy =
new ArtifactRepositoryPolicy( snapshots, snapshotUpdates, checksumPolicy );
ArtifactRepositoryPolicy releasesPolicy =
new ArtifactRepositoryPolicy( releases, releaseUpdates, checksumPolicy );
return createArtifactRepository( repositoryId, url, "default", snapshotsPolicy, releasesPolicy );
}
public Set<String> getRepoIds( List<ArtifactRepository> repositories )
{
Set<String> repoIds = new HashSet<>();
if ( repositories != null )
{
for ( ArtifactRepository repository : repositories )
{
repoIds.add( repository.getId() );
}
}
return repoIds;
}
/**
* Source from org.apache.maven.repository.legacy.LegacyRepositorySystem#getEffectiveRepositories
*
* @param repositories
* @return
* @since 3.6.1
*/
public List<ArtifactRepository> getEffectiveRepositories( List<ArtifactRepository> repositories )
{
if ( repositories == null )
{
return null;
}
Map<String, List<ArtifactRepository>> reposByKey = new LinkedHashMap<>();
for ( ArtifactRepository repository : repositories )
{
String key = repository.getId();
List<ArtifactRepository> aliasedRepos = reposByKey.get( key );
if ( aliasedRepos == null )
{
aliasedRepos = new ArrayList<>();
reposByKey.put( key, aliasedRepos );
}
aliasedRepos.add( repository );
}
List<ArtifactRepository> effectiveRepositories = new ArrayList<>();
for ( List<ArtifactRepository> aliasedRepos : reposByKey.values() )
{
List<ArtifactRepository> mirroredRepos = new ArrayList<>();
List<ArtifactRepositoryPolicy> releasePolicies =
new ArrayList<>( aliasedRepos.size() );
for ( ArtifactRepository aliasedRepo : aliasedRepos )
{
releasePolicies.add( aliasedRepo.getReleases() );
mirroredRepos.addAll( aliasedRepo.getMirroredRepositories() );
}
ArtifactRepositoryPolicy releasePolicy = getEffectivePolicy( releasePolicies );
List<ArtifactRepositoryPolicy> snapshotPolicies =
new ArrayList<>( aliasedRepos.size() );
for ( ArtifactRepository aliasedRepo : aliasedRepos )
{
snapshotPolicies.add( aliasedRepo.getSnapshots() );
}
ArtifactRepositoryPolicy snapshotPolicy = getEffectivePolicy( snapshotPolicies );
ArtifactRepository aliasedRepo = aliasedRepos.get( 0 );
ArtifactRepository effectiveRepository =
createArtifactRepository( aliasedRepo.getId(), aliasedRepo.getUrl(), aliasedRepo.getLayout(),
snapshotPolicy, releasePolicy );
effectiveRepository.setAuthentication( aliasedRepo.getAuthentication() );
effectiveRepository.setProxy( aliasedRepo.getProxy() );
effectiveRepository.setMirroredRepositories( mirroredRepos );
effectiveRepository.setBlocked( aliasedRepo.isBlocked() );
effectiveRepositories.add( effectiveRepository );
}
return effectiveRepositories;
}
private ArtifactRepositoryPolicy getEffectivePolicy( Collection<ArtifactRepositoryPolicy> policies )
{
ArtifactRepositoryPolicy effectivePolicy = null;
for ( ArtifactRepositoryPolicy policy : policies )
{
if ( effectivePolicy == null )
{
effectivePolicy = new ArtifactRepositoryPolicy( policy );
}
else
{
effectivePolicy.merge( policy );
}
}
return effectivePolicy;
}
public ArtifactRepository createLocalRepository( MavenExecutionRequest request, File localRepository )
throws Exception
{
return createRepository( "file://" + localRepository.toURI().getRawPath(),
RepositorySystem.DEFAULT_LOCAL_REPO_ID, true,
ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS, true,
ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS,
ArtifactRepositoryPolicy.CHECKSUM_POLICY_IGNORE );
}
private static final String WILDCARD = "*";
private static final String EXTERNAL_WILDCARD = "external:*";
private static final String EXTERNAL_HTTP_WILDCARD = "external:http:*";
public static Mirror getMirror( ArtifactRepository repository, List<Mirror> mirrors )
{
String repoId = repository.getId();
if ( repoId != null && mirrors != null )
{
for ( Mirror mirror : mirrors )
{
if ( repoId.equals( mirror.getMirrorOf() ) && matchesLayout( repository, mirror ) )
{
return mirror;
}
}
for ( Mirror mirror : mirrors )
{
if ( matchPattern( repository, mirror.getMirrorOf() ) && matchesLayout( repository, mirror ) )
{
return mirror;
}
}
}
return null;
}
/**
* This method checks if the pattern matches the originalRepository. Valid patterns:
* <ul>
* <li>{@code *} = everything,</li>
* <li>{@code external:*} = everything not on the localhost and not file based,</li>
* <li>{@code external:http:*} = any repository not on the localhost using HTTP,</li>
* <li>{@code repo,repo1} = {@code repo} or {@code repo1},</li>
* <li>{@code *,!repo1} = everything except {@code repo1}.</li>
* </ul>
*
* @param originalRepository to compare for a match.
* @param pattern used for match. Currently only '*' is supported.
* @return true if the repository is a match to this pattern.
*/
static boolean matchPattern( ArtifactRepository originalRepository, String pattern )
{
boolean result = false;
String originalId = originalRepository.getId();
// simple checks first to short circuit processing below.
if ( WILDCARD.equals( pattern ) || pattern.equals( originalId ) )
{
result = true;
}
else
{
// process the list
String[] repos = pattern.split( "," );
for ( String repo : repos )
{
// see if this is a negative match
if ( repo.length() > 1 && repo.startsWith( "!" ) )
{
if ( repo.substring( 1 ).equals( originalId ) )
{
// explicitly exclude. Set result and stop processing.
result = false;
break;
}
}
// check for exact match
else if ( repo.equals( originalId ) )
{
result = true;
break;
}
// check for external:*
else if ( EXTERNAL_WILDCARD.equals( repo ) && isExternalRepo( originalRepository ) )
{
result = true;
// don't stop processing in case a future segment explicitly excludes this repo
}
// check for external:http:*
else if ( EXTERNAL_HTTP_WILDCARD.equals( repo ) && isExternalHttpRepo( originalRepository ) )
{
result = true;
// don't stop processing in case a future segment explicitly excludes this repo
}
else if ( WILDCARD.equals( repo ) )
{
result = true;
// don't stop processing in case a future segment explicitly excludes this repo
}
}
}
return result;
}
/**
* Checks the URL to see if this repository refers to an external repository
*
* @param originalRepository
* @return true if external.
*/
static boolean isExternalRepo( ArtifactRepository originalRepository )
{
try
{
URL url = new URL( originalRepository.getUrl() );
return !( isLocal( url.getHost() ) || url.getProtocol().equals( "file" ) );
}
catch ( MalformedURLException e )
{
// bad url just skip it here. It should have been validated already, but the wagon lookup will deal with it
return false;
}
}
private static boolean isLocal( String host )
{
return "localhost".equals( host ) || "127.0.0.1".equals( host );
}
/**
* Checks the URL to see if this repository refers to a non-localhost repository using HTTP.
*
* @param originalRepository
* @return true if external.
*/
static boolean isExternalHttpRepo( ArtifactRepository originalRepository )
{
try
{
URL url = new URL( originalRepository.getUrl() );
return ( "http".equalsIgnoreCase( url.getProtocol() ) || "dav".equalsIgnoreCase( url.getProtocol() )
|| "dav:http".equalsIgnoreCase( url.getProtocol() )
|| "dav+http".equalsIgnoreCase( url.getProtocol() ) ) && !isLocal( url.getHost() );
}
catch ( MalformedURLException e )
{
// bad url just skip it here. It should have been validated already, but the wagon lookup will deal with it
return false;
}
}
static boolean matchesLayout( ArtifactRepository repository, Mirror mirror )
{
return matchesLayout( RepositoryUtils.getLayout( repository ), mirror.getMirrorOfLayouts() );
}
/**
* Checks whether the layouts configured for a mirror match with the layout of the repository.
*
* @param repoLayout The layout of the repository, may be {@code null}.
* @param mirrorLayout The layouts supported by the mirror, may be {@code null}.
* @return {@code true} if the layouts associated with the mirror match the layout of the original repository,
* {@code false} otherwise.
*/
static boolean matchesLayout( String repoLayout, String mirrorLayout )
{
boolean result = false;
// simple checks first to short circuit processing below.
if ( StringUtils.isEmpty( mirrorLayout ) || WILDCARD.equals( mirrorLayout ) )
{
result = true;
}
else if ( mirrorLayout.equals( repoLayout ) )
{
result = true;
}
else
{
// process the list
String[] layouts = mirrorLayout.split( "," );
for ( String layout : layouts )
{
// see if this is a negative match
if ( layout.length() > 1 && layout.startsWith( "!" ) )
{
if ( layout.substring( 1 ).equals( repoLayout ) )
{
// explicitly exclude. Set result and stop processing.
result = false;
break;
}
}
// check for exact match
else if ( layout.equals( repoLayout ) )
{
result = true;
break;
}
else if ( WILDCARD.equals( layout ) )
{
result = true;
// don't stop processing in case a future segment explicitly excludes this repo
}
}
}
return result;
}
}
| [
"sudhansu133@gmail.com"
] | sudhansu133@gmail.com |
6be128d4e1a8d7b677a7a82c01c082e1d4f25675 | 1ba14a05e7c8ac551fe6e60a77cad624121644a6 | /app/src/main/java/app/edwin/com/reportapetrabajador/core/BaseFragment.java | c00efdc0d88f9c31803e1d8d4b9f6afc1c9a9ad4 | [] | no_license | EdDeza/demo-practica | a3ff215bd321cd974b068c9d49c30c199628e29e | ca404b0e4f1c4da3682eae4c184e7e525203c75e | refs/heads/master | 2020-04-06T03:59:39.617854 | 2017-02-24T19:54:52 | 2017-02-24T19:54:52 | 83,077,526 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 661 | java | package app.edwin.com.reportapetrabajador.core;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
/**
* Created by linuxdesarrollo01 on 20/02/17.
*/
public class BaseFragment extends Fragment {
private boolean loading= false;
protected void nextActivity(Activity context, Bundle bundle, Class<?> activity, boolean destroy) {
Intent intent= new Intent(context,activity);
if(bundle!=null){intent.putExtras(bundle);}
startActivity(intent);
if(destroy)context.finish();
}
public boolean isLoading() {
return loading;
}
}
| [
"edwin.deza@gmail.com"
] | edwin.deza@gmail.com |
3343319cd244f17d7251b1d14254a5c9bc8e25ea | 40ab2ac5524f8dbabd6a0415673d697a8f1a89e6 | /server/src/manager/player/Backpack.java | 3eed1756e7898540bd05491fa045fd53ef01f74e | [] | no_license | timi-liuliang/zmcet | 89c735b7c7cf85a52457a75b8d7cb12db3d89ec9 | e43d850f336ba631740cdeff4b07588304271e99 | refs/heads/master | 2021-09-02T09:31:57.585743 | 2018-01-01T13:02:59 | 2018-01-01T13:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,485 | java | package manager.player;
import java.util.ArrayList;
import java.util.Collection;
import com.google.gson.Gson;
import io.netty.channel.ChannelHandlerContext;
class Cell{
public int cell_idx;
public int item_id;
public int item_num;
Cell(){
cell_idx = 0;
item_id = 0;
item_num = 0;
}
Cell(int idx, int id, int num){
cell_idx = idx;
item_id = id;
item_num = num;
}
}
public class Backpack {
public int cell_number=15;
public ArrayList<Cell> cells = new ArrayList<Cell>();
public Backpack() {
}
public Cell AddItem(int item_id, int count, int type){
Cell cell = getCellByItemID(item_id);
if( cell!=null){
cell.item_num += count;
}else
{
int fristCellEmpty = getFirstEmptyCell();
if( fristCellEmpty!=-1) {
cell = new Cell(fristCellEmpty, item_id, count);
cells.add(cell);
}
}
return cell;
}
public Cell getCellByItemID(int id) {
for(Cell cell : cells) {
if(cell.item_id == id) {
return cell;
}
}
return null;
}
public Cell getCellByItemIdx(int idx) {
for(Cell cell : cells) {
if(cell.cell_idx == idx) {
return cell;
}
}
return null;
}
public int getFirstEmptyCell() {
int cellIdx = -1;
for(int i=0; i<cell_number; i++) {
if(isCellEmpty(i)) {
cellIdx = i;
break;
}
}
return cellIdx;
}
public boolean isCellEmpty(int idx) {
for(Cell cell : cells) {
if(cell.cell_idx == idx) {
return false;
}
}
return true;
}
}
| [
"qq79402005@gmail.com"
] | qq79402005@gmail.com |
3b29ef0f3cbab29a81995b4ac6ae93df0cbfa94a | 0acf3212fcd1b3ff069ab13722a219d61a8a179a | /src/main/java/com/sap/xi/sapscore/sfin/PartyInternalID.java | c36ce5ff3baacb6013317714e9945201bee22391 | [] | no_license | rvodela/battlemath | 83785150cae1eb66031ba99c78ca340735236de2 | 1455ac890d79ec3e8a9342b5d4b0357a235f39f2 | refs/heads/master | 2020-05-26T02:11:54.700784 | 2019-11-14T16:49:10 | 2019-11-14T16:49:10 | 188,071,374 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,432 | java | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-558
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.11.12 at 10:52:02 AM EST
//
package com.sap.xi.sapscore.sfin;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
*
* <pre>
* <?xml version="1.0" encoding="UTF-8"?><ccts:RepresentationTerm xmlns:ccts="urn:un:unece:uncefact:documentation:standard:CoreComponentsTechnicalSpecification:3.0" xmlns="http://sap.com/xi/SAPSCORE/SFIN" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://sap.com/xi/SAPSCORE/SFIN" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema">Identifier</ccts:RepresentationTerm>
* </pre>
*
*
* <p>Java class for PartyInternalID complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="PartyInternalID">
* <simpleContent>
* <extension base="<http://sap.com/xi/SAPSCORE/SFIN>PartyInternalID.Content">
* <attribute name="schemeID">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <maxLength value="60"/>
* <minLength value="1"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="schemeAgencyID">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <maxLength value="60"/>
* <minLength value="1"/>
* </restriction>
* </simpleType>
* </attribute>
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PartyInternalID", propOrder = {
"value"
})
public class PartyInternalID {
@XmlValue
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String value;
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String schemeID;
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String schemeAgencyID;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
/**
* Gets the value of the schemeID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSchemeID() {
return schemeID;
}
/**
* Sets the value of the schemeID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSchemeID(String value) {
this.schemeID = value;
}
/**
* Gets the value of the schemeAgencyID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSchemeAgencyID() {
return schemeAgencyID;
}
/**
* Sets the value of the schemeAgencyID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSchemeAgencyID(String value) {
this.schemeAgencyID = value;
}
}
| [
"rvodela@ford.com"
] | rvodela@ford.com |
b63c9939a121bd977f5d088bb6a6b20b0594006c | c51e6dada10afa5a824c05d125264b2d41ce2305 | /ExellParody/src/main/java/com/exellParody/parserFiles/GrammarBaseVisitor.java | 7da8600b8f974683dbc706620e1153e3d4140e4d | [] | no_license | TraineeBeba/ExellParody- | 33da607ad6eb77aa8561686a51dbcfa0c37e4866 | 3afa2443b6f699c6c4f0f25cb82ed365635aef9e | refs/heads/main | 2023-09-02T14:23:38.031106 | 2021-11-11T15:47:42 | 2021-11-11T15:47:42 | 423,269,325 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,489 | java | // Generated from D:/JavaCourse/ExellParody/src/main/java/com/exellParody/parser\Grammar.g4 by ANTLR 4.9.1
package com.exellParody.parserFiles;
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
/**
* This class provides an empty implementation of {@link GrammarVisitor},
* which can be extended to create a visitor which only needs to handle a subset
* of the available methods.
*
* @param <T> The return type of the visit operation. Use {@link Void} for
* operations with no return type.
*/
public class GrammarBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements GrammarVisitor<T> {
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitMultiplicativeExpr(GrammarParser.MultiplicativeExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitExponentialExpr(GrammarParser.ExponentialExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitAdditiveExpr(GrammarParser.AdditiveExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitNumberExpr(GrammarParser.NumberExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitDividiveWithRemainderExpr(GrammarParser.DividiveWithRemainderExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitParenthesizedExpr(GrammarParser.ParenthesizedExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitComparativeExpr(GrammarParser.ComparativeExprContext ctx) { return visitChildren(ctx); }
} | [
"noreply@github.com"
] | TraineeBeba.noreply@github.com |
2b02b1428d84ecf44709f91de2a13a345af769c0 | 42816ebebe8e29e53f1a651a836ed51abf76bcf4 | /LogiWeb/src/main/java/ru/usachev/LogiWebProject/dto/TruckDTO.java | 4759cf3f369fefcf9f6a23edbca48abdbc01a557 | [] | no_license | alexusachev1999/ModuleProject | fcacd72f300280e06a25747b153e372897b30eb9 | 759fe59e6cc4f24f96a7fd0684cfd67e726dedf0 | refs/heads/master | 2023-06-03T19:28:03.650754 | 2021-06-22T09:29:47 | 2021-06-22T09:29:47 | 375,293,862 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,565 | java | package ru.usachev.LogiWebProject.dto;
import org.springframework.format.annotation.NumberFormat;
import javax.validation.constraints.*;
import java.util.Objects;
public class TruckDTO {
private int id;
@Pattern(regexp = "[А-Я]{2}\\d{5}", message = "Используйте следующий шаблон \"АБ12345\"")
private String registrationNumber;
@Positive(message = "Должно быть > 0")
@NotNull(message = "Не может быть пустым!")
private int driverShiftDuration;
@Positive(message = "Должно быть > 0")
@NotNull(message = "Не может быть пустым!")
private int capacity;
@NotBlank(message = "Не может быть пустым!")
private String city;
@NotNull(message = "Не может быть пустым!")
private boolean state;
public TruckDTO() {
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getRegistrationNumber() {
return registrationNumber;
}
public void setRegistrationNumber(String registrationNumber) {
this.registrationNumber = registrationNumber;
}
public int getDriverShiftDuration() {
return driverShiftDuration;
}
public void setDriverShiftDuration(int driverShiftDuration) {
this.driverShiftDuration = driverShiftDuration;
}
public int getCapacity() {
return capacity;
}
public void setCapacity(int capacity) {
this.capacity = capacity;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public boolean isState() {
return state;
}
public void setState(boolean state) {
this.state = state;
}
@Override
public String toString() {
return "Рег. номер: " + registrationNumber;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TruckDTO truckDTO = (TruckDTO) o;
return id == truckDTO.id && driverShiftDuration == truckDTO.driverShiftDuration && capacity == truckDTO.capacity && state == truckDTO.state && Objects.equals(registrationNumber, truckDTO.registrationNumber) && Objects.equals(city, truckDTO.city);
}
@Override
public int hashCode() {
return Objects.hash(id, registrationNumber, driverShiftDuration, capacity, city, state);
}
}
| [
"sashulya.usachev@list.ru"
] | sashulya.usachev@list.ru |
48a450bedc5857c64ed1a9439517c3eaf4ab8e61 | 2530039420f040723b868d4f61883e5c9ce5c844 | /src/com/rskytech/sys/dao/impl/SysTreeDao.java | b2a2e1a60a41ed4eb1cd63a4b704bb81964fa475 | [] | no_license | learnlong/mpas | cf730aa797b4bd1d1eb247c295049ecb2f85e940 | 996da09782d329a1f98242720646480f8a3e45ab | refs/heads/master | 2020-03-23T10:39:08.809136 | 2018-08-08T02:17:35 | 2018-08-08T02:17:35 | 141,454,351 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,017 | java | package com.rskytech.sys.dao.impl;
import java.util.List;
import com.richong.arch.bo.BusinessException;
import com.richong.arch.dao.impl.BaseDAO;
import com.rskytech.ComacConstants;
import com.rskytech.pojo.ComUser;
import com.rskytech.sys.dao.ISysTreeDao;
@SuppressWarnings("rawtypes")
public class SysTreeDao extends BaseDAO implements ISysTreeDao {
@Override
public List searchSubAtaOrMsiTree(ComUser user, String parentAtaId, String modelSeriesId, String searchType) throws BusinessException {
StringBuffer sb = new StringBuffer();
if(ComacConstants.CHOOSE.equals(searchType)){
sb.append("select a.ata_id,");
sb.append(" b.msi_id,");
sb.append(" a.ata_code,");
sb.append(" a.ata_name,");
sb.append(" a.ata_level,");
sb.append(" b.status,");
// sb.append(" case when b.msi_id is not null then 1 else 0 end is_msi,");
sb.append(" (select to_char(count(1))");
sb.append(" from com_ata c");
sb.append(" where c.parent_ata_id = a.ata_id");
sb.append(" and c.valid_flag = " + ComacConstants.VALIDFLAG_YES + ") isChild,");
sb.append(" fun_is_owner_auth(a.model_series_id, '" + ComacConstants.SYSTEM_CODE + "', a.ata_id, '" + user.getUserId() + "', '" + ComacConstants.POSITION_ID_PROFESSION_ANAYIST + "') quanxian");
sb.append(" from com_ata a, m_main b");
sb.append(" where a.ata_id = b.ata_id(+)");
sb.append(" and a.valid_flag = " + ComacConstants.VALIDFLAG_YES);
sb.append(" and b.valid_flag(+) = " + ComacConstants.VALIDFLAG_YES);
sb.append(" and a.model_series_id = '" + modelSeriesId + "'");
sb.append(" and b.model_series_id(+) = '" + modelSeriesId + "'");
if("0".equals(parentAtaId)){
sb.append(" and a.parent_ata_id is null");
}else{
sb.append(" and a.parent_ata_id = '" + parentAtaId + "'");
}
sb.append(" order by a.ata_code");
return this.executeQueryBySql(sb.toString());
}else if(ComacConstants.ANALYSIS.equals(searchType) || ComacConstants.REPORT.equals(searchType)){
sb.append("select a.ata_id,");
sb.append(" b.msi_id,");
sb.append(" a.ata_code,");
sb.append(" a.ata_name,");
sb.append(" a.ata_level,");
sb.append(" b.status,");
// sb.append(" case when b.msi_id is not null then 1 else 0 end is_msi,");
sb.append(" (select to_char(count(1))");
sb.append(" from com_ata c");
sb.append(" where c.parent_ata_id = a.ata_id");
sb.append(" and c.valid_flag = " + ComacConstants.VALIDFLAG_YES + ") isChild,");
sb.append(" case when fun_is_owner_auth(a.model_series_id, '" + ComacConstants.SYSTEM_CODE + "', a.ata_id, '" + user.getUserId() + "', '" + ComacConstants.POSITION_ID_PROFESSION_ANAYIST + "') = '1' and b.msi_id is not null and d.is_msi = 1 then '1' else '0' end quanxian");
sb.append(" from com_ata a, m_main b, m_select d");
sb.append(" where a.ata_id = b.ata_id(+)");
sb.append(" and a.ata_id = d.ata_id(+)");
sb.append(" and a.valid_flag = " + ComacConstants.VALIDFLAG_YES);
sb.append(" and b.valid_flag(+) = " + ComacConstants.VALIDFLAG_YES);
sb.append(" and d.valid_flag(+) = " + ComacConstants.VALIDFLAG_YES);
sb.append(" and a.model_series_id = '" + modelSeriesId + "'");
sb.append(" and b.model_series_id(+) = '" + modelSeriesId + "'");
if("0".equals(parentAtaId)){
sb.append(" and a.parent_ata_id is null");
}else{
sb.append(" and a.parent_ata_id = '" + parentAtaId + "'");
}
sb.append(" order by a.ata_code");
return this.executeQueryBySql(sb.toString());
}
return null;
}
@Override
public List searchMyMaintain(ComUser user, String modelSeriesId, String searchType)
throws BusinessException {
StringBuffer sb = new StringBuffer();
if(ComacConstants.CHOOSE.equals(searchType)){
sb.append("select a.ata_id,");
sb.append(" a.ata_code,");
sb.append(" a.ata_name,");
sb.append(" a.ata_level,");
sb.append(" b.status,");
sb.append(" b.msi_id");
sb.append(" from com_ata a, m_main b");
sb.append(" where a.ata_id = b.ata_id(+)");
sb.append(" and a.valid_flag = " + ComacConstants.VALIDFLAG_YES);
sb.append(" and b.valid_flag(+) = " + ComacConstants.VALIDFLAG_YES);
sb.append(" and a.model_series_id = '" + modelSeriesId + "'");
sb.append(" and b.model_series_id(+) = '" + modelSeriesId + "'");
sb.append(" and fun_is_owner_auth(a.model_series_id, '" + ComacConstants.SYSTEM_CODE + "', a.ata_id, '" + user.getUserId() + "', '" + ComacConstants.POSITION_ID_PROFESSION_ANAYIST + "') = '1'");
sb.append(" order by a.ata_code");
return this.executeQueryBySql(sb.toString());
}else if(ComacConstants.ANALYSIS.equals(searchType) || ComacConstants.REPORT.equals(searchType)){
sb.append("select a.ata_id,");
sb.append(" a.ata_code,");
sb.append(" a.ata_name,");
sb.append(" a.ata_level,");
sb.append(" b.status,");
sb.append(" b.msi_id");
sb.append(" from com_ata a, m_main b, m_select c");
sb.append(" where a.ata_id = b.ata_id");
sb.append(" and a.ata_id = c.ata_id");
sb.append(" and a.valid_flag = " + ComacConstants.VALIDFLAG_YES);
sb.append(" and b.valid_flag = " + ComacConstants.VALIDFLAG_YES);
sb.append(" and c.valid_flag = " + ComacConstants.VALIDFLAG_YES);
sb.append(" and c.is_msi = 1");
sb.append(" and a.model_series_id = '" + modelSeriesId + "'");
sb.append(" and b.model_series_id = '" + modelSeriesId + "'");
sb.append(" and fun_is_owner_auth(a.model_series_id, '" + ComacConstants.SYSTEM_CODE + "', a.ata_id, '" + user.getUserId() + "', '" + ComacConstants.POSITION_ID_PROFESSION_ANAYIST + "') = '1'");
sb.append(" order by a.ata_code");
return this.executeQueryBySql(sb.toString());
}
return null;
}} | [
"feijibaba@DESKTOP-5KLL9MM"
] | feijibaba@DESKTOP-5KLL9MM |
92969bb4d67c4b6f20e2d19962bd17d3c2fade15 | d44afa3570d26886894b848e0faeadffdd56d298 | /plugins/connectors/salesforcecom/src/com/apatar/salesforcecom/ws/.svn/text-base/DescribeGlobal.java.svn-base | f5bb75be46e3600f0dd5f00fda218593259bb190 | [] | no_license | ap0n/dynamo | 9bfa6d96147448c795a19f468096f0670fa4086f | 2c756fff07157af6a076416e5c0f77994c80d600 | refs/heads/master | 2021-01-10T13:56:07.470945 | 2016-03-20T07:42:10 | 2016-03-20T07:42:10 | 54,305,984 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,365 | /**
* DescribeGlobal.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.apatar.salesforcecom.ws;
public class DescribeGlobal implements java.io.Serializable {
public DescribeGlobal() {
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof DescribeGlobal)) return false;
DescribeGlobal other = (DescribeGlobal) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true;
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(DescribeGlobal.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeGlobal"));
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
| [
"anydriotis@gmail.com"
] | anydriotis@gmail.com | |
5d1d2c4d6e8f70adc85b275e993c76e6956afca9 | 180e78725121de49801e34de358c32cf7148b0a2 | /dataset/protocol1/kylin/learning/4671/CubeController.java | faa25e0d10e1370902c7e821a458e20edb64e6e1 | [] | no_license | ASSERT-KTH/synthetic-checkstyle-error-dataset | 40e8d1e0a7ebe7f7711def96a390891a6922f7bd | 40c057e1669584bfc6fecf789b5b2854660222f3 | refs/heads/master | 2023-03-18T12:50:55.410343 | 2019-01-25T09:54:39 | 2019-01-25T09:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 45,198 | java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.kylin.rest.controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import org.apache.kylin.common.util.JsonUtil;
import org.apache.kylin.common.util.RandomUtil;
import org.apache.kylin.cube.CubeInstance;
import org.apache.kylin.cube.CubeManager;
import org.apache.kylin.cube.CubeSegment;
import org.apache.kylin.cube.cuboid.CuboidScheduler;
import org.apache.kylin.cube.cuboid.TreeCuboidScheduler;
import org.apache.kylin.cube.model.CubeBuildTypeEnum;
import org.apache.kylin.cube.model.CubeDesc;
import org.apache.kylin.cube.model.CubeJoinedFlatTableDesc;
import org.apache.kylin.cube.model.RowKeyColDesc;
import org.apache.kylin.dimension.DimensionEncodingFactory;
import org.apache.kylin.engine.mr.common.CuboidStatsReaderUtil;
import org.apache.kylin.job.JobInstance;
import org.apache.kylin.job.JoinedFlatTable;
import org.apache.kylin.job.exception.JobException;
import org.apache.kylin.metadata.model.IJoinedFlatTableDesc;
import org.apache.kylin.metadata.model.ISourceAware;
import org.apache.kylin.metadata.model.SegmentRange;
import org.apache.kylin.metadata.model.SegmentRange.TSRange;
import org.apache.kylin.metadata.project.ProjectInstance;
import org.apache.kylin.metadata.realization.RealizationStatusEnum;
import org.apache.kylin.metrics.MetricsManager;
import org.apache.kylin.metrics.property.QueryCubePropertyEnum;
import org.apache.kylin.rest.exception.BadRequestException;
import org.apache.kylin.rest.exception.ForbiddenException;
import org.apache.kylin.rest.exception.InternalErrorException;
import org.apache.kylin.rest.exception.NotFoundException;
import org.apache.kylin.rest.exception.TooManyRequestException;
import org.apache.kylin.rest.msg.Message;
import org.apache.kylin.rest.msg.MsgPicker;
import org.apache.kylin.rest.request.CubeRequest;
import org.apache.kylin.rest.request.JobBuildRequest;
import org.apache.kylin.rest.request.JobBuildRequest2;
import org.apache.kylin.rest.request.JobOptimizeRequest;
import org.apache.kylin.rest.request.LookupSnapshotBuildRequest;
import org.apache.kylin.rest.request.SQLRequest;
import org.apache.kylin.rest.response.CubeInstanceResponse;
import org.apache.kylin.rest.response.CuboidTreeResponse;
import org.apache.kylin.rest.response.EnvelopeResponse;
import org.apache.kylin.rest.response.GeneralResponse;
import org.apache.kylin.rest.response.HBaseResponse;
import org.apache.kylin.rest.response.ResponseCode;
import org.apache.kylin.rest.service.CubeService;
import org.apache.kylin.rest.service.JobService;
import org.apache.kylin.rest.service.ProjectService;
import org.apache.kylin.rest.service.QueryService;
import org.apache.kylin.rest.util.ValidateUtil;
import org.apache.kylin.source.kafka.util.KafkaClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
/**
* CubeController is defined as Restful API entrance for UI.
*/
@Controller
@RequestMapping(value = "/cubes")
public class CubeController extends BasicController {
private static final Logger logger = LoggerFactory.getLogger(CubeController.class);
@Autowired
@Qualifier("cubeMgmtService")
private CubeService cubeService;
@Autowired
@Qualifier("jobService")
private JobService jobService;
@Autowired
@Qualifier("projectService")
private ProjectService projectService;
@Autowired
@Qualifier("queryService")
private QueryService queryService;
@RequestMapping(value = "/validate/{cubeName}", method = RequestMethod.GET, produces = { "application/json" })
@ResponseBody
public EnvelopeResponse<Boolean> validateModelName(@PathVariable String cubeName) {
return new EnvelopeResponse<>(ResponseCode.CODE_SUCCESS, cubeService.isCubeNameVaildate(cubeName), "");
}
@RequestMapping(value = "", method = { RequestMethod.GET }, produces = { "application/json" })
@ResponseBody
public List<CubeInstanceResponse> getCubes(@RequestParam(value = "cubeName", required = false) String cubeName,
@RequestParam(value = "modelName", required = false) String modelName,
@RequestParam(value = "projectName", required = false) String projectName,
@RequestParam(value = "limit", required = false) Integer limit,
@RequestParam(value = "offset", required = false) Integer offset) {
List<CubeInstance> cubes = cubeService.listAllCubes(cubeName, projectName, modelName, false);
List<CubeInstanceResponse> response = Lists.newArrayListWithExpectedSize(cubes.size());
for (CubeInstance cube : cubes) {
try {
response.add(cubeService.createCubeInstanceResponse(cube));
} catch (Exception e) {
logger.error("Error creating cube instance response, skipping.", e);
}
}
int climit = (null == limit) ? response.size() : limit;
int coffset = (null == offset) ? 0 : offset;
if (response.size() <= coffset) {
return Collections.emptyList();
}
if ((response.size() - coffset) < climit) {
return response.subList(coffset, response.size());
}
return response.subList(coffset, coffset + climit);
}
@RequestMapping(value = "validEncodings", method = { RequestMethod.GET }, produces = { "application/json" })
@ResponseBody
public Map<String, Integer> getValidEncodings() {
Map<String, Integer> encodings;
try {
encodings = DimensionEncodingFactory.getValidEncodings();
} catch (Exception e) {
logger.error("Error when getting valid encodings", e);
return Maps.newHashMap();
}
return encodings;
}
@RequestMapping(value = "/{cubeName}", method = { RequestMethod.GET }, produces = { "application/json" })
@ResponseBody
public CubeInstance getCube(@PathVariable String cubeName) {
checkCubeExists(cubeName);
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
return cube;
}
/**
* Get SQL of a Cube
*
* @param cubeName Cube Name
* @return
* @throws IOException
*/
@RequestMapping(value = "/{cubeName}/sql", method = { RequestMethod.GET }, produces = { "application/json" })
@ResponseBody
public GeneralResponse getSql(@PathVariable String cubeName) {
checkCubeExists(cubeName);
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
IJoinedFlatTableDesc flatTableDesc = new CubeJoinedFlatTableDesc(cube.getDescriptor(), true);
String sql = JoinedFlatTable.generateSelectDataStatement(flatTableDesc);
GeneralResponse response = new GeneralResponse();
response.setProperty("sql", sql);
return response;
}
/**
* Get SQL of a Cube segment
*
* @param cubeName Cube Name
* @param segmentName Segment Name
* @return
* @throws IOException
*/
@RequestMapping(value = "/{cubeName}/segs/{segmentName}/sql", method = { RequestMethod.GET }, produces = {
"application/json" })
@ResponseBody
public GeneralResponse getSql(@PathVariable String cubeName, @PathVariable String segmentName) {
checkCubeExists(cubeName);
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
CubeSegment segment = cube.getSegment(segmentName, null);
if (segment == null) {
throw new NotFoundException("Cannot find segment " + segmentName);
}
IJoinedFlatTableDesc flatTableDesc = new CubeJoinedFlatTableDesc(segment, true);
String sql = JoinedFlatTable.generateSelectDataStatement(flatTableDesc);
GeneralResponse response = new GeneralResponse();
response.setProperty("sql", sql);
return response;
}
/**
* Update cube notify list
*
* @param cubeName
* @param notifyList
* @throws IOException
*/
@RequestMapping(value = "/{cubeName}/notify_list", method = { RequestMethod.PUT }, produces = {
"application/json" })
@ResponseBody
public void updateNotifyList(@PathVariable String cubeName, @RequestBody List<String> notifyList) {
checkCubeExists(cubeName);
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
try {
cubeService.updateCubeNotifyList(cube, notifyList);
} catch (Exception e) {
logger.error(e.getLocalizedMessage(), e);
throw new InternalErrorException(e.getLocalizedMessage());
}
}
@RequestMapping(value = "/{cubeName}/cost", method = { RequestMethod.PUT }, produces = { "application/json" })
@ResponseBody
public CubeInstance updateCubeCost(@PathVariable String cubeName, @RequestParam(value = "cost") int cost) {
checkCubeExists(cubeName);
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
try {
return cubeService.updateCubeCost(cube, cost);
} catch (Exception e) {
String message = "Failed to update cube cost: " + cubeName + " : " + cost;
logger.error(message, e);
throw new InternalErrorException(message + " Caused by: " + e.getMessage(), e);
}
}
/**
* Force rebuild a cube's lookup table snapshot
*
* @throws IOException
*/
@RequestMapping(value = "/{cubeName}/segs/{segmentName}/refresh_lookup", method = {
RequestMethod.PUT }, produces = { "application/json" })
@ResponseBody
public CubeInstance rebuildLookupSnapshot(@PathVariable String cubeName, @PathVariable String segmentName,
@RequestParam(value = "lookupTable") String lookupTable) {
try {
final CubeManager cubeMgr = cubeService.getCubeManager();
final CubeInstance cube = cubeMgr.getCube(cubeName);
return cubeService.rebuildLookupSnapshot(cube, segmentName, lookupTable);
} catch (IOException e) {
logger.error(e.getLocalizedMessage(), e);
throw new InternalErrorException(e.getLocalizedMessage());
}
}
/**
* Force rebuild a cube's lookup table snapshot
*
* @throws IOException
*/
@RequestMapping(value = "/{cubeName}/refresh_lookup", method = { RequestMethod.PUT }, produces = {
"application/json" })
@ResponseBody
public JobInstance rebuildLookupSnapshot(@PathVariable String cubeName,
@RequestBody LookupSnapshotBuildRequest request) {
try {
final CubeManager cubeMgr = cubeService.getCubeManager();
final CubeInstance cube = cubeMgr.getCube(cubeName);
String submitter = SecurityContextHolder.getContext().getAuthentication().getName();
return jobService.submitLookupSnapshotJob(cube, request.getLookupTableName(), request.getSegmentIDs(),
submitter);
} catch (IOException e) {
logger.error(e.getLocalizedMessage(), e);
throw new InternalErrorException(e.getLocalizedMessage());
}
}
/**
* Delete a cube segment
*
* @throws IOException
*/
@RequestMapping(value = "/{cubeName}/segs/{segmentName}", method = { RequestMethod.DELETE }, produces = {
"application/json" })
@ResponseBody
public CubeInstance deleteSegment(@PathVariable String cubeName, @PathVariable String segmentName) {
checkCubeExists(cubeName);
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
CubeSegment segment = cube.getSegment(segmentName, null);
if (segment == null) {
throw new NotFoundException("Cannot find segment '" + segmentName + "'");
}
try {
return cubeService.deleteSegment(cube, segmentName);
} catch (Exception e) {
logger.error(e.getLocalizedMessage(), e);
throw new InternalErrorException(e.getLocalizedMessage());
}
}
/**
* Build/Rebuild a cube segment
*/
@RequestMapping(value = "/{cubeName}/build", method = { RequestMethod.PUT }, produces = { "application/json" })
@ResponseBody
public JobInstance build(@PathVariable String cubeName, @RequestBody JobBuildRequest req) {
return rebuild(cubeName, req);
}
/** Build/Rebuild a cube segment */
/**
* Build/Rebuild a cube segment
*/
@RequestMapping(value = "/{cubeName}/rebuild", method = { RequestMethod.PUT }, produces = { "application/json" })
@ResponseBody
public JobInstance rebuild(@PathVariable String cubeName, @RequestBody JobBuildRequest req) {
return buildInternal(cubeName, new TSRange(req.getStartTime(), req.getEndTime()), null, null, null,
req.getBuildType(), req.isForce() || req.isForceMergeEmptySegment());
}
/**
* Build/Rebuild a cube segment by source offset
*/
@RequestMapping(value = "/{cubeName}/build2", method = { RequestMethod.PUT }, produces = { "application/json" })
@ResponseBody
public JobInstance build2(@PathVariable String cubeName, @RequestBody JobBuildRequest2 req) {
try {
Class<?> clazz = Class.forName("org.apache.kafka.clients.consumer.KafkaConsumer");
if (clazz == null) {
throw new ClassNotFoundException();
}
} catch (ClassNotFoundException e) {
throw new InternalErrorException("Could not find Kafka dependency");
}
return rebuild2(cubeName, req);
}
/**
* Build/Rebuild a cube segment by source offset
*/
@RequestMapping(value = "/{cubeName}/rebuild2", method = { RequestMethod.PUT }, produces = { "application/json" })
@ResponseBody
public JobInstance rebuild2(@PathVariable String cubeName, @RequestBody JobBuildRequest2 req) {
return buildInternal(cubeName, null, new SegmentRange(req.getSourceOffsetStart(), req.getSourceOffsetEnd()),
req.getSourcePartitionOffsetStart(), req.getSourcePartitionOffsetEnd(), req.getBuildType(),
req.isForce());
}
private JobInstance buildInternal(String cubeName, TSRange tsRange, SegmentRange segRange, //
Map<Integer, Long> sourcePartitionOffsetStart, Map<Integer, Long> sourcePartitionOffsetEnd,
String buildType, boolean force) {
try {
String submitter = SecurityContextHolder.getContext().getAuthentication().getName();
CubeInstance cube = jobService.getCubeManager().getCube(cubeName);
checkBuildingSegment(cube);
return jobService.submitJob(cube, tsRange, segRange, sourcePartitionOffsetStart, sourcePartitionOffsetEnd,
CubeBuildTypeEnum.valueOf(buildType), force, submitter);
} catch (Throwable e) {
logger.error(e.getLocalizedMessage(), e);
throw new InternalErrorException(e.getLocalizedMessage(), e);
}
}
/**
* Send a optimize cube job
*
* @param cubeName Cube ID
* @return JobInstance of CheckpointExecutable
*/
@RequestMapping(value = "/{cubeName}/optimize", method = { RequestMethod.PUT })
@ResponseBody
public JobInstance optimize(@PathVariable String cubeName, @RequestBody JobOptimizeRequest jobOptimizeRequest) {
try {
String submitter = SecurityContextHolder.getContext().getAuthentication().getName();
CubeInstance cube = jobService.getCubeManager().getCube(cubeName);
checkCubeExists(cubeName);
logger.info("cuboid recommend:" + jobOptimizeRequest.getCuboidsRecommend());
return jobService.submitOptimizeJob(cube, jobOptimizeRequest.getCuboidsRecommend(), submitter).getFirst();
} catch (BadRequestException e) {
logger.error(e.getLocalizedMessage(), e);
throw e;
} catch (JobException e) {
logger.error(e.getLocalizedMessage(), e);
throw new BadRequestException(e.getLocalizedMessage());
} catch (Exception e) {
logger.error(e.getLocalizedMessage(), e);
throw new InternalErrorException(e.getLocalizedMessage());
}
}
/**
* Send a optimize cube segment job
*
* @param cubeName Cube ID
* @param segmentID for segment to be optimized
*/
@RequestMapping(value = "/{cubeName}/recover_segment_optimize/{segmentID}", method = { RequestMethod.PUT })
@ResponseBody
public JobInstance recoverSegmentOptimize(@PathVariable String cubeName, @PathVariable String segmentID) {
try {
String submitter = SecurityContextHolder.getContext().getAuthentication().getName();
CubeInstance cube = jobService.getCubeManager().getCube(cubeName);
CubeSegment segment = cube.getSegmentById(segmentID);
if (segment == null) {
throw new NotFoundException("Cannot find segment '" + segmentID + "'");
}
return jobService.submitRecoverSegmentOptimizeJob(segment, submitter);
} catch (JobException e) {
logger.error(e.getLocalizedMessage(), e);
throw new BadRequestException(e.getLocalizedMessage());
} catch (Exception e) {
logger.error(e.getLocalizedMessage(), e);
throw new InternalErrorException(e.getLocalizedMessage());
}
}
@RequestMapping(value = "/{cubeName}/disable", method = { RequestMethod.PUT }, produces = { "application/json" })
@ResponseBody
public CubeInstance disableCube(@PathVariable String cubeName) {
try {
checkCubeExists(cubeName);
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
return cubeService.disableCube(cube);
} catch (Exception e) {
String message = "Failed to disable cube: " + cubeName;
logger.error(message, e);
throw new InternalErrorException(message + " Caused by: " + e.getMessage(), e);
}
}
@RequestMapping(value = "/{cubeName}/purge", method = { RequestMethod.PUT }, produces = { "application/json" })
@ResponseBody
public CubeInstance purgeCube(@PathVariable String cubeName) {
try {
checkCubeExists(cubeName);
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
return cubeService.purgeCube(cube);
} catch (Exception e) {
String message = "Failed to purge cube: " + cubeName;
logger.error(message, e);
throw new InternalErrorException(message + " Caused by: " + e.getMessage(), e);
}
}
@RequestMapping(value = "/{cubeName}/clone", method = { RequestMethod.PUT }, produces = { "application/json" })
@ResponseBody
public CubeInstance cloneCube(@PathVariable String cubeName, @RequestBody CubeRequest cubeRequest) {
String newCubeName = cubeRequest.getCubeName();
String projectName = cubeRequest.getProject();
checkCubeExists(cubeName);
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
if (cube.getStatus() == RealizationStatusEnum.DESCBROKEN) {
throw new BadRequestException("Broken cube can't be cloned");
}
if (!ValidateUtil.isAlphanumericUnderscore(newCubeName)) {
throw new BadRequestException("Invalid Cube name, only letters, numbers and underscore supported.");
}
ProjectInstance project = cubeService.getProjectManager
().getProject(projectName);
if (project == null) {
throw new NotFoundException("Project " + projectName + " doesn't exist");
}
// KYLIN-1925, forbid cloning cross projects
if (!project.getName().equals(cube.getProject())) {
throw new BadRequestException("Cloning cubes across projects is not supported.");
}
CubeDesc cubeDesc = cube.getDescriptor();
CubeDesc newCubeDesc = CubeDesc.getCopyOf(cubeDesc);
newCubeDesc.setName(newCubeName);
CubeInstance newCube;
try {
newCube = cubeService.createCubeAndDesc(project, newCubeDesc);
//reload to avoid shallow clone
cubeService.getCubeDescManager().reloadCubeDescLocal(newCubeName);
} catch (IOException e) {
throw new InternalErrorException("Failed to clone cube ", e);
}
return newCube;
}
@RequestMapping(value = "/{cubeName}/enable", method = { RequestMethod.PUT }, produces = { "application/json" })
@ResponseBody
public CubeInstance enableCube(@PathVariable String cubeName) {
try {
checkCubeExists(cubeName);
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
cubeService.checkEnableCubeCondition(cube);
return cubeService.enableCube(cube);
} catch (Exception e) {
String message = "Failed to enable cube: " + cubeName;
logger.error(message, e);
throw new InternalErrorException(message + " Caused by: " + e.getMessage(), e);
}
}
@RequestMapping(value = "/{cubeName}", method = { RequestMethod.DELETE }, produces = { "application/json" })
@ResponseBody
public void deleteCube(@PathVariable String cubeName) {
checkCubeExists(cubeName);
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
//drop Cube
try {
cubeService.deleteCube(cube);
} catch (Exception e) {
logger.error(e.getLocalizedMessage(), e);
throw new InternalErrorException("Failed to delete cube. " + " Caused by: " + e.getMessage(), e);
}
}
/**
* save cubeDesc
*
* @return Table metadata array
* @throws IOException
*/
@RequestMapping(value = "", method = { RequestMethod.POST }, produces = { "application/json" })
@ResponseBody
public CubeRequest saveCubeDesc(@RequestBody CubeRequest cubeRequest) {
CubeDesc desc = deserializeCubeDesc(cubeRequest);
if (desc == null) {
cubeRequest.setMessage("CubeDesc is null.");
return cubeRequest;
}
String name = desc.getName();
if (StringUtils.isEmpty(name)) {
logger.info("Cube name should not be empty.");
throw new BadRequestException("Cube name should not be empty.");
}
if (!ValidateUtil.isAlphanumericUnderscore(name)) {
throw new BadRequestException("Invalid Cube name, only letters, numbers and underscore supported.");
}
try {
desc.setUuid(RandomUtil.randomUUID().toString());
String projectName = (null == cubeRequest.getProject()) ? ProjectInstance.DEFAULT_PROJECT_NAME
: cubeRequest.getProject();
ProjectInstance project = cubeService.getProjectManager().getProject(projectName);
if (project == null) {
throw new NotFoundException("Project " + projectName + " doesn't exist");
}
cubeService.createCubeAndDesc(project, desc);
} catch (Exception e) {
logger.error("Failed to deal with the request.", e);
throw new InternalErrorException(e.getLocalizedMessage(), e);
}
cubeRequest.setUuid(desc.getUuid());
cubeRequest.setSuccessful(true);
return cubeRequest;
}
/**
* update CubDesc
*
* @return Table metadata array
* @throws JsonProcessingException
* @throws IOException
*/
@RequestMapping(value = "", method = { RequestMethod.PUT }, produces = { "application/json" })
@ResponseBody
public CubeRequest updateCubeDesc(@RequestBody CubeRequest cubeRequest) throws JsonProcessingException {
CubeDesc desc = deserializeCubeDesc(cubeRequest);
if (desc == null) {
return cubeRequest;
}
String projectName = (null == cubeRequest.getProject()) ? ProjectInstance.DEFAULT_PROJECT_NAME
: cubeRequest.getProject();
try {
CubeInstance cube = cubeService.getCubeManager().getCube(cubeRequest.getCubeName());
if (cube == null) {
String error = "The cube named " + cubeRequest.getCubeName() + " does not exist ";
updateRequest(cubeRequest, false, error);
return cubeRequest;
}
//cube renaming is not allowed
if (!cube.getDescriptor().getName().equalsIgnoreCase(desc.getName())) {
String error = "Cube Desc renaming is not allowed: desc.getName(): " + desc.getName()
+ ", cubeRequest.getCubeName(): " + cubeRequest.getCubeName();
updateRequest(cubeRequest, false, error);
return cubeRequest;
}
if (cube.getSegments().size() != 0 && !cube.getDescriptor().consistentWith(desc)) {
String error = "CubeDesc " + desc.getName()
+ " is inconsistent with existing. Try purge that cube first or avoid updating key cube desc fields.";
updateRequest(cubeRequest, false, error);
return cubeRequest;
}
desc = cubeService.updateCubeAndDesc(cube, desc, projectName, true);
} catch (AccessDeniedException accessDeniedException) {
throw new ForbiddenException("You don't have right to update this cube.");
} catch (Exception e) {
logger.error("Failed to deal with the request:" + e.getLocalizedMessage(), e);
throw new InternalErrorException("Failed to deal with the request: " + e.getLocalizedMessage());
}
if (desc.isBroken()) {
updateRequest(cubeRequest, false, desc.getErrorsAsString());
return cubeRequest;
}
String descData = JsonUtil.writeValueAsIndentString(desc);
cubeRequest.setCubeDescData(descData);
cubeRequest.setSuccessful(true);
return cubeRequest;
}
/**
* get Hbase Info
*
* @return true
* @throws IOException
*/
@RequestMapping(value = "/{cubeName}/hbase", method = { RequestMethod.GET }, produces = { "application/json" })
@ResponseBody
public List<HBaseResponse> getHBaseInfo(@PathVariable String cubeName) {
List<HBaseResponse> hbase = new ArrayList<HBaseResponse>();
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
if (null == cube) {
throw new InternalErrorException("Cannot find cube " + cubeName);
}
List<CubeSegment> segments = cube.getSegments();
for (CubeSegment segment : segments) {
String tableName = segment.getStorageLocationIdentifier();
HBaseResponse hr = null;
// Get info of given table.
try {
hr = cubeService.getHTableInfo(cubeName, tableName);
} catch (IOException e) {
logger.error("Failed to calcuate size of HTable \"" + tableName + "\".", e);
}
if (null == hr) {
logger.info("Failed to calcuate size of HTable \"" + tableName + "\".");
hr = new HBaseResponse();
}
hr.setTableName(tableName);
hr.setDateRangeStart(segment.getTSRange().start.v);
hr.setDateRangeEnd(segment.getTSRange().end.v);
hr.setSegmentName(segment.getName());
hr.setSegmentStatus(segment.getStatus().toString());
hr.setSourceCount(segment.getInputRecords());
if (segment.isOffsetCube()) {
hr.setSourceOffsetStart((Long) segment.getSegRange().start.v);
hr.setSourceOffsetEnd((Long) segment.getSegRange().end.v);
}
hbase.add(hr);
}
return hbase;
}
/**
* get cube segment holes
*
* @return a list of CubeSegment, each representing a hole
* @throws IOException
*/
@RequestMapping(value = "/{cubeName}/holes", method = { RequestMethod.GET }, produces = { "application/json" })
@ResponseBody
public List<CubeSegment> getHoles(@PathVariable String cubeName) {
checkCubeExists(cubeName);
return cubeService.getCubeManager().calculateHoles(cubeName);
}
/**
* fill cube segment holes
*
* @return a list of JobInstances to fill the holes
* @throws IOException
*/
@RequestMapping(value = "/{cubeName}/holes", method = { RequestMethod.PUT }, produces = { "application/json" })
@ResponseBody
public List<JobInstance> fillHoles(@PathVariable String cubeName) {
checkCubeExists(cubeName);
List<JobInstance> jobs = Lists.newArrayList();
List<CubeSegment> holes = cubeService.getCubeManager().calculateHoles(cubeName);
if (holes.size() == 0) {
logger.info("No hole detected for cube '" + cubeName + "'");
return jobs;
}
for (CubeSegment hole : holes) {
if (hole.isOffsetCube()) {
JobBuildRequest2 request = new JobBuildRequest2();
request.setBuildType(CubeBuildTypeEnum.BUILD.toString());
request.setSourceOffsetStart((Long) hole.getSegRange().start.v);
request.setSourceOffsetEnd((Long) hole.getSegRange().end.v);
request.setSourcePartitionOffsetStart(hole.getSourcePartitionOffsetStart());
request.setSourcePartitionOffsetEnd(hole.getSourcePartitionOffsetEnd());
try {
JobInstance job = build2(cubeName, request);
jobs.add(job);
} catch (Exception e) {
// it may exceed the max allowed job number
logger.info("Error to submit job for hole '" + hole.toString() + "', skip it now.", e);
continue;
}
} else {
JobBuildRequest request = new JobBuildRequest();
request.setBuildType(CubeBuildTypeEnum.BUILD.toString());
request.setStartTime(hole.getTSRange().start.v);
request.setEndTime(hole.getTSRange().end.v);
try {
JobInstance job = build(cubeName, request);
jobs.add(job);
} catch (Exception e) {
// it may exceed the max allowed job number
logger.info("Error to submit job for hole '" + hole.toString() + "', skip it now.", e);
continue;
}
}
}
return jobs;
}
@RequestMapping(value = "/{cubeName}/cuboids/export", method = RequestMethod.GET)
@ResponseBody
public void cuboidsExport(@PathVariable String cubeName, @RequestParam(value = "top") Integer top,
HttpServletResponse response) throws IOException {
checkCubeExists(cubeName);
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
Map<Long, Long> cuboidList = getRecommendCuboidList(cube);
List<Set<String>> dimensionSetList = Lists.newLinkedList();
if (cuboidList == null || cuboidList.isEmpty()) {
logger.info("Cannot get recommended cuboid list for cube " + cubeName);
} else {
if (cuboidList.size() < top) {
logger.info("Require " + top + " recommended cuboids, but only " + cuboidList.size() + " is found.");
}
Iterator<Long> cuboidIterator = cuboidList.keySet().iterator();
RowKeyColDesc[] rowKeyColDescList = cube.getDescriptor().getRowkey().getRowKeyColumns();
while (top-- > 0 && cuboidIterator.hasNext()) {
Set<String> dimensionSet = Sets.newHashSet();
dimensionSetList.add(dimensionSet);
long cuboid = cuboidIterator.next();
for (int i = 0; i < rowKeyColDescList.length; i++) {
if ((cuboid & (1L << rowKeyColDescList[i].getBitIndex())) > 0) {
dimensionSet.add(rowKeyColDescList[i].getColumn());
}
}
}
}
response.setContentType("text/json;charset=utf-8");
response.setHeader("Content-Disposition", "attachment; filename=\"" + cubeName + ".json\"");
try (PrintWriter writer = response.getWriter()) {
writer.write(JsonUtil.writeValueAsString(dimensionSetList));
} catch (IOException e) {
logger.error("", e);
throw new InternalErrorException("Failed to write: " + e.getLocalizedMessage());
}
}
@RequestMapping(value = "/{cubeName}/cuboids/current", method = RequestMethod.GET)
@ResponseBody
public CuboidTreeResponse getCurrentCuboids(@PathVariable String cubeName) {
checkCubeExists(cubeName);
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
// The cuboid tree displayed should be consistent with the current one
CuboidScheduler cuboidScheduler = cube.getCuboidScheduler();
Map<Long, Long> cuboidStatsMap = cube.getCuboids();
if (cuboidStatsMap == null) {
cuboidStatsMap = CuboidStatsReaderUtil.readCuboidStatsFromCube(cuboidScheduler.getAllCuboidIds(), cube);
}
Map<Long, Long> hitFrequencyMap = null;
Map<Long, Long> queryMatchMap = null;
try {
hitFrequencyMap = getTargetCuboidHitFrequency(cubeName);
queryMatchMap = getCuboidQueryMatchCount(cubeName);
} catch (Exception e) {
logger.warn("Fail to query on system cube due to " + e);
}
Set<Long> currentCuboidSet = cube.getCuboidScheduler().getAllCuboidIds();
return cubeService.getCuboidTreeResponse(cuboidScheduler, cuboidStatsMap, hitFrequencyMap, queryMatchMap,
currentCuboidSet);
}
@RequestMapping(value = "/{cubeName}/cuboids/recommend", method = RequestMethod.GET)
@ResponseBody
public CuboidTreeResponse getRecommendCuboids(@PathVariable String cubeName) throws IOException {
checkCubeExists(cubeName);
CubeInstance cube = cubeService.getCubeManager().getCube(cubeName);
Map<Long, Long> recommendCuboidStatsMap = getRecommendCuboidList(cube);
if (recommendCuboidStatsMap == null || recommendCuboidStatsMap.isEmpty()) {
return new CuboidTreeResponse();
}
CuboidScheduler cuboidScheduler = new TreeCuboidScheduler(cube.getDescriptor(),
Lists.newArrayList(recommendCuboidStatsMap.keySet()),
new TreeCuboidScheduler.CuboidCostComparator(recommendCuboidStatsMap));
// Get cuboid target info for displaying heat map of cuboid hit
Map<Long, Long> displayHitFrequencyMap = getTargetCuboidHitFrequency(cubeName);
// Get exactly matched cuboid query count
Map<Long, Long> queryMatchMap = getCuboidQueryMatchCount(cubeName);
Set<Long> currentCuboidSet = cube.getCuboidScheduler().getAllCuboidIds();
return cubeService.getCuboidTreeResponse(cuboidScheduler, recommendCuboidStatsMap, displayHitFrequencyMap,
queryMatchMap, currentCuboidSet);
}
private Map<Long, Long> getRecommendCuboidList(CubeInstance cube) throws IOException {
// Get cuboid source info
Map<Long, Long> optimizeHitFrequencyMap = getSourceCuboidHitFrequency(cube.getName());
Map<Long, Map<Long, Long>> rollingUpCountSourceMap = getCuboidRollingUpCount(cube.getName());
return cubeService.getRecommendCuboidStatistics(cube, optimizeHitFrequencyMap, rollingUpCountSourceMap);
}
private Map<Long, Long> getSourceCuboidHitFrequency(String cubeName) {
return getCuboidHitFrequency(cubeName, true);
}
private Map<Long, Long> getTargetCuboidHitFrequency(String cubeName) {
return getCuboidHitFrequency(cubeName, false);
}
private Map<Long, Long> getCuboidHitFrequency(String cubeName, boolean isCuboidSource) {
SQLRequest sqlRequest = new SQLRequest();
sqlRequest.setProject(MetricsManager.SYSTEM_PROJECT);
String cuboidColumn = QueryCubePropertyEnum.CUBOID_SOURCE.toString();
if (!isCuboidSource) {
cuboidColumn = QueryCubePropertyEnum.CUBOID_TARGET.toString();
}
String hitMeasure = QueryCubePropertyEnum.WEIGHT_PER_HIT.toString();
String table = cubeService.getMetricsManager()
.getSystemTableFromSubject(cubeService.getConfig().getKylinMetricsSubjectQueryCube());
String sql = "select " + cuboidColumn + ", sum(" + hitMeasure + ") " //
+ "from " + table//
+ " where " + QueryCubePropertyEnum.CUBE.toString() + " = '" + cubeName + "' " //
+ "group by " + cuboidColumn;
sqlRequest.setSql(sql);
List<List<String>> orgHitFrequency = queryService.doQueryWithCache(sqlRequest).getResults();
return cubeService.formatQueryCount(orgHitFrequency);
}
private Map<Long, Map<Long, Long>> getCuboidRollingUpCount(String cubeName) {
SQLRequest sqlRequest = new SQLRequest();
sqlRequest.setProject(MetricsManager.SYSTEM_PROJECT);
String cuboidSource = QueryCubePropertyEnum.CUBOID_SOURCE.toString();
String cuboidTarget = QueryCubePropertyEnum.CUBOID_TARGET.toString();
String aggCount = QueryCubePropertyEnum.AGGR_COUNT.toString();
String table = cubeService.getMetricsManager()
.getSystemTableFromSubject(cubeService.getConfig().getKylinMetricsSubjectQueryCube());
String sql = "select " + cuboidSource + ", " + cuboidTarget + ", sum(" + aggCount + ")/count(*) " //
+ "from " + table //
+ " where " + QueryCubePropertyEnum.CUBE.toString() + " = '" + cubeName + "' " //
+ "group by " + cuboidSource + ", " + cuboidTarget;
sqlRequest.setSql(sql);
List<List<String>> orgRollingUpCount = queryService.doQueryWithCache(sqlRequest).getResults();
return cubeService.formatRollingUpCount(orgRollingUpCount);
}
private Map<Long, Long> getCuboidQueryMatchCount(String cubeName) {
SQLRequest sqlRequest = new SQLRequest();
sqlRequest.setProject(MetricsManager.SYSTEM_PROJECT);
String cuboidSource = QueryCubePropertyEnum.CUBOID_SOURCE.toString();
String hitMeasure = QueryCubePropertyEnum.WEIGHT_PER_HIT.toString();
String table = cubeService.getMetricsManager()
.getSystemTableFromSubject(cubeService.getConfig().getKylinMetricsSubjectQueryCube());
String sql = "select " + cuboidSource + ", sum(" + hitMeasure + ") " //
+ "from " + table //
+ " where " + QueryCubePropertyEnum.CUBE.toString() + " = '" + cubeName + "' and "
+ QueryCubePropertyEnum.IF_MATCH.toString() + " = true " //
+ "group by " + cuboidSource;
sqlRequest.setSql(sql);
List<List<String>> orgMatchHitFrequency = queryService.doQueryWithCache(sqlRequest).getResults();
return cubeService.formatQueryCount(orgMatchHitFrequency);
}
/**
* Initiate the very beginning of a streaming cube. Will seek the latest offests of each partition from streaming
* source (kafka) and record in the cube descriptor; In the first build job, it will use these offests as the start point.
*
* @param cubeName
* @return
*/
@RequestMapping(value = "/{cubeName}/init_start_offsets", method = { RequestMethod.PUT }, produces = {
"application/json" })
@ResponseBody
public GeneralResponse initStartOffsets(@PathVariable String cubeName) {
checkCubeExists(cubeName);
CubeInstance cubeInstance = cubeService.getCubeManager().getCube(cubeName);
if (cubeInstance.getSourceType() != ISourceAware.ID_STREAMING) {
String msg = "Cube '" + cubeName + "' is not a Streaming Cube.";
throw new IllegalArgumentException(msg);
}
final GeneralResponse response = new GeneralResponse();
try {
final Map<Integer, Long> startOffsets = KafkaClient.getLatestOffsets(cubeInstance);
CubeDesc desc = cubeInstance.getDescriptor();
desc.setPartitionOffsetStart(startOffsets);
cubeService.getCubeDescManager().updateCubeDesc(desc);
response.setProperty("result", "success");
response.setProperty("offsets", startOffsets.toString());
} catch (Throwable e) {
throw new RuntimeException(e);
}
return response;
}
private CubeDesc deserializeCubeDesc(CubeRequest cubeRequest) {
CubeDesc desc = null;
try {
logger.debug("Saving cube " + cubeRequest.getCubeDescData());
desc = JsonUtil.readValue(cubeRequest.getCubeDescData(), CubeDesc.class);
} catch (JsonParseException e) {
logger.error("The cube definition is not valid.", e);
updateRequest(cubeRequest, false, e.getMessage());
} catch (JsonMappingException e) {
logger.error("The cube definition is not valid.", e);
updateRequest(cubeRequest, false, e.getMessage());
} catch (IOException e) {
logger.error("Failed to deal with the request.", e);
throw new InternalErrorException("Failed to deal with the request:" + e.getMessage(), e);
}
return desc;
}
private void updateRequest(CubeRequest request, boolean success, String message) {
request.setCubeDescData("");
request.setSuccessful(success);
request.setMessage(message);
}
private void checkCubeExists(String cubeName) {
CubeInstance cubeInstance = cubeService.getCubeManager().getCube(cubeName);
if (cubeInstance == null) {
Message msg = MsgPicker.getMsg();
throw new NotFoundException(String.format(Locale.ROOT, msg.getCUBE_NOT_FOUND(), cubeName));
}
}
private void checkBuildingSegment(CubeInstance cube) {
checkBuildingSegment(cube, cube.getConfig().getMaxBuildingSegments());
}
private void checkBuildingSegment(CubeInstance cube, int maxBuildingSeg) {
if (cube.getBuildingSegments().size() >= maxBuildingSeg) {
throw new TooManyRequestException(
"There is already " + cube.getBuildingSegments().size() + " building segment; ");
}
}
@RequestMapping(value = "/{cube}/{project}/migrate", method = { RequestMethod.POST })
@ResponseBody
public void migrateCube(@PathVariable String cube, @PathVariable String project) {
CubeInstance cubeInstance = cubeService.getCubeManager().getCube(cube);
cubeService.migrateCube(cubeInstance, project);
}
public void setCubeService(CubeService cubeService) {
this.cubeService = cubeService;
}
public void setJobService(JobService jobService) {
this.jobService = jobService;
}
} | [
"bloriot97@gmail.com"
] | bloriot97@gmail.com |
e871ef0108576616034361afab7d03a6cd80e4d0 | 731de625046e71c4e22ce4dba3a79aaa301eb370 | /src/steve/s/journey/RectangleParticle.java | be2f89df6e9c0108fafd2a0860e580821a05c938 | [] | no_license | captainFlameheart2/StevesJourney | 4684b76881474e7e551998e9758910038c403d87 | ddb51d9ca73376a5fcc3321ece1e7f1f82a017e0 | refs/heads/master | 2020-07-24T15:33:06.028518 | 2019-09-12T05:22:14 | 2019-09-12T05:22:14 | 207,970,975 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,662 | 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 steve.s.journey;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Shape;
import java.awt.geom.Rectangle2D;
/**
*
* @author jonat
*/
public class RectangleParticle extends Particle {
private final Vector2D SIZE, HALF_SIZE;
private double angle;
private final double ANGLE_CHANGE;
public RectangleParticle(Display display, double lifespanLerpVal, Vector2D pos, Vector2D vel, Vector2D size, double angleChange) {
super(display, 255, lifespanLerpVal, pos, vel);
SIZE = size;
HALF_SIZE = Vector2D.div(SIZE, 2);
ANGLE_CHANGE = angleChange;
}
@Override
public void update() {
super.update();
angle += ANGLE_CHANGE;
}
@Override
public boolean whitinPaintingDist() {
return Paintable.rectWithinPaintDist(pos(), SIZE, angle, DISPLAY.CAMERA);
}
@Override
public void paint(Graphics2D sourceGraphics) {
mainPaintingGraphics(sourceGraphics).fill(mainPaintingShape());
}
@Override
public Graphics2D mainPaintingGraphics(Graphics2D sourceGraphics) {
Graphics2D mainPaintingGraphics = super.mainPaintingGraphics(sourceGraphics);
mainPaintingGraphics.rotate(angle);
return mainPaintingGraphics;
}
@Override
public Shape mainPaintingShape() {
return new Rectangle2D.Double(-HALF_SIZE.x, -HALF_SIZE.y, SIZE.x, SIZE.y);
}
}
| [
"jonatanlarsson2001@gmail.com"
] | jonatanlarsson2001@gmail.com |
c09728bb3240598afa380e9005c9f2ab7bd04c22 | b6562acb7b6f632abe1b44fcc0c11d16d977795e | /1.JavaSyntax/src/com/javarush/task/task07/task0720/Solution.java | 33edbcb19806881026229766db96587af5682e64 | [] | no_license | Bearzerk1488/JavaRushTasks | 59db9733f239998754939fe63a6ecbfb97387a5f | 33d56801e78f492c3428a7caf28c9fc792bffcae | refs/heads/master | 2022-06-30T07:31:06.891666 | 2020-05-13T07:00:00 | 2020-05-13T07:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 920 | java | package com.javarush.task.task07.task0720;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Iterator;
/*
Перестановочка подоспела
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
//напишите тут ваш код
int n = Integer.parseInt(reader.readLine());
int m = Integer.parseInt(reader.readLine());
ArrayList<String> list = new ArrayList<>();
for (int i = 0; i < n; i++) list.add(reader.readLine());
for (int i = 0; i < m; i++) {
String s = list.get(0);
list.remove(0);
list.add(s);
}
for (int i = 0; i < list.size(); i++) System.out.println(list.get(i));
}
}
| [
"bearzerk@gmail.com"
] | bearzerk@gmail.com |
994c0849b1aca6f8332029a7fa788eeeec0966a3 | 9ce00056eca57bac79b35969bae21ecde60b63ed | /src/main/java/com/cognizant/rnr/service/impl/IpAddressServiceImpl.java | 20b65dc033e7276d9e9516fa5d8ba33a16ab892f | [] | no_license | MigLMA/RnR | 5e2ec2b0acfc1c53f88a8ffc3ef684f9d0c5c1a0 | 0a3282114e6d6a0efd05352e642bbb956807f893 | refs/heads/master | 2021-04-18T19:41:13.839355 | 2018-03-21T16:52:56 | 2018-03-21T16:52:56 | 126,211,490 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 519 | java | package com.cognizant.rnr.service.impl;
import java.net.InetAddress;
import java.net.UnknownHostException;
import org.springframework.stereotype.Service;
import com.cognizant.rnr.service.IpAddressService;
/**
* This is the implementation class for service.
*
* @author 628700
* @since 0.0.0
*/
@Service
public class IpAddressServiceImpl implements IpAddressService {
@Override
public String getServerAddress() throws UnknownHostException {
return InetAddress.getLocalHost().getHostAddress();
}
}
| [
"Miguel.Marcos@cognizant.com"
] | Miguel.Marcos@cognizant.com |
545f2afd6613fb032455fce7eb7f61992c57dcf2 | 226811f119c3e986bab72531474fa26b43944801 | /src/main/java/com/ies/kentucky/admin/controller/CitizenController.java | b4415e111cc73b7296017a57434e9c87dd33a1e2 | [] | no_license | anusha-447/05_IES_PROJECT | acfe4caef0758dfc969be36aa3816fd255c9473a | 0745aa37b4345af91b5a4c16f1b5a7bfce42423c | refs/heads/master | 2023-01-25T03:44:49.795551 | 2020-12-10T04:20:03 | 2020-12-10T04:20:03 | 320,157,511 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,462 | java | package com.ies.kentucky.admin.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import com.ies.kentucky.admin.entity.Citizen;
import com.ies.kentucky.admin.entity.CitizenInformation;
import com.ies.kentucky.admin.service.ICitizenService;
@Controller
public class CitizenController {
@Autowired
private ICitizenService cservice;
@GetMapping("/show")
public String showCitizen(Model model) {
CitizenInformation citz = new CitizenInformation();
model.addAttribute("citz", citz);
return "ApplicatonRegister";
}
@PostMapping("/register")
public String registerCitizen(CitizenInformation cInfo, RedirectAttributes model) {
Boolean isSaved = cservice.registerCitizen(cInfo);
if (isSaved) {
model.addFlashAttribute("success", "User Registerd successfuui..");
} else {
model.addFlashAttribute("fail", "something went wrong");
}
return "redirect:/show";
}
}
| [
"kandakatlasahithi@gmail.com"
] | kandakatlasahithi@gmail.com |
ed7b048b945dc87d4bb5991de618995dc6e8eaa7 | c8c0e12bb5ffd8054268edea240b0f1380283496 | /SimpleTest/src/studentExecse/Account.java | 8775ffb10babb5f08f878f29ba63bc998e3a366f | [] | no_license | DC-Joney/Simples | 5431400623585d8bf68211358a1475d2479465c7 | fbb49597b31736603c3ebfed3cfeea7529232d81 | refs/heads/master | 2021-01-15T21:39:10.262652 | 2016-09-25T16:05:23 | 2016-09-25T16:05:23 | 68,460,137 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,320 | java | package studentExecse;
/**
* Created by Administrator on 2016/9/10.
*/
public class Account {
private String name;
private Integer price;
private String password;
public Account(String name, Integer price, String password) {
this.name = name;
this.price = price;
this.password = password;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getPrice() {
return price;
}
public void setPrice(Integer price) {
if (!(price>20)){
System.out.println("对不起金额不足");
}
this.price =price;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
if (!(password.length()==4)){
System.out.println("对不起输入不正确");
return;
}
this.password = password;
}
public static void main(String[] args) {
Account account=new Account("Joney",10,"123");
String name= account.getName();
Integer price= account.getPrice();
String passworld=account.getPassword();
System.out.println(name+" : "+price+ ": "+passworld);
account.setPassword("123");
}
}
| [
"1050617313@qq.com"
] | 1050617313@qq.com |
021b3af4579dc2b75975eaa5dc7afa260d004aa5 | f0edeae7c28b1878ac0f08a75b28a7765bb6f006 | /src/com/zijiyou/text/dict/WordGenerator.java | abbfc1e74ffaa64d49237aa06cbc077f00b7bdff | [] | no_license | cheewu/tools2 | 96489151cb6146148a925711531f98674c596aa7 | 07ec1f7717c2a892830646325d36fab54e74447f | refs/heads/master | 2021-01-19T11:52:10.552143 | 2012-12-13T06:38:53 | 2012-12-13T06:38:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,861 | java | package com.zijiyou.text.dict;
//import java.io.FileWriter;
//import java.io.IOException;
//import java.util.HashMap;
//import java.util.HashSet;
//import java.util.Iterator;
//import java.util.Map;
//import java.util.Set;
//import java.util.TreeMap;
//
//import org.apache.log4j.Logger;
//
//
//import com.mongodb.BasicDBObject;
//import com.mongodb.DB;
//import com.mongodb.DBCollection;
//import com.mongodb.DBCursor;
//import com.mongodb.DBObject;
//import com.zijiyou.mongo.MongoConnector;
public class WordGenerator {
//
// public static final Integer CAT_COUNTRY=1;
// public final static Integer CAT_PROVINCE=2;
// public final static Integer CAT_DESTINATION=3;
//
// public final static Integer CAT_POI=4;
//
// public final static Integer CAT_NOTE=5;
// public final static Integer CAT_FOOD=6;
// public final static Integer CAT_ITEM=7;
//
// public final static Integer CAT_OTHER=99;
//
// private static final Logger LOG = Logger.getLogger(WordGenerator.class);
//
// private static Map<String, Integer> keywordMap=new TreeMap<String,Integer>(); //keyword->category(country,province,destination,poi,food,item,note)
// private static Map<String, String[]> regionMap=new HashMap<String, String[]>(); //regionID-->regionName,category
// private static Map<String, String[]> poiMap =new HashMap<String, String[]>(); //keyword-->poiName,poiID,regionName
// private static Set<String> kwset=new HashSet<String>();
//
// private static boolean isInitialized=false;
//
//// public static Integer getKeywordInfo(String kw){
//// if(!isInitialized)
//// initialize();
//// return keywordMap.get(kw);
////
//// }
//
//// public static String getKeywordCategory(String kw){
//// Integer category=getKeywordInfo(kw);
//// if (category==null ){
//// LOG.error("Can't find category for keyword:"+kw);
//// return "null";
//// }
//// switch (category){
//// case 1:
//// return "country";
//// case 2:
//// return "province";
//// case 3:
//// return "destination";
//// case 4:
//// return "poi";
//// case 5:
//// return "note";
//// case 6:
//// return "food";
//// case 7 :
//// return "item";
//// case 99:
//// return "other";
//// }
//// return "null";
//// }
//
// public static String[] getRegionInfo(String regionName){
// if(!isInitialized)
// initialize();
// return regionMap.get(regionName);
// }
//
//
// public static String[] getPOIInfo(String poiName){
// if(!isInitialized)
// initialize();
// return poiMap.get(poiName);
// }
//
// public static void initialize(){
// if(isInitialized)
// return;
//
// FileWriter fw = null;
// try {
// fw = new FileWriter("duplicatepoit.txt");
// }catch (Exception e){
// e.printStackTrace();
// }
//
// DB db=MongoConnector.getDBByProperties("analyzer.properties", "mongo_tripfm");
//
// // 初始化region
// DBCollection regionColl = db.getCollection("Region");
// BasicDBObject regionQuery = new BasicDBObject();
// String regioncategories[] = new String[] { "country", "province", "destination" };
// regionQuery.put("category", new BasicDBObject("$in", regioncategories));
// DBCursor regionCur = regionColl.find();
//
// while (regionCur.hasNext()) {
// DBObject regionObject = regionCur.next();
//
// if(!regionObject.containsField("name")){
// System.out.println(regionObject);
// continue;
// }
//
// String regionName=regionObject.get("name").toString();
//
// if (regionName== null||!isChinese(regionName.charAt(0)))
// continue;
//
// String[] regionInfo = new String[2];
// Integer regionCat=CAT_OTHER;
// regionInfo[0] = regionObject.get("name").toString();
// regionInfo[1] = regionObject.get("category").toString();
// if(regionInfo[1].equals("country"))
// regionCat=CAT_COUNTRY;
//
// if(regionInfo[1].equals("province"))
// regionCat=CAT_PROVINCE;
//
// if(regionInfo[1].equals("destination"))
// regionCat=CAT_DESTINATION;
//
// keywordMap.put(regionObject.get("name").toString().trim(), regionCat);
// regionMap.put(regionObject.get("_id").toString().trim(), regionInfo);
// }
//
// regionCur.close();
//
// // 初始化POI
// DBCollection poiColl = db.getCollection("POI");
// BasicDBObject query = new BasicDBObject();
// query.put("category", "attraction");
// DBCursor poiCur = poiColl.find(query);
// while (poiCur.hasNext()) {
// DBObject poiObject = poiCur.next();
// if (poiObject.get("name") == null)
// continue;
// String[] poiInfo = new String[3];
// poiInfo[0] = poiObject.get("name").toString();
// poiInfo[1] = poiObject.get("_id").toString();
//
// if (poiObject.get("regionId") != null){
// if(regionMap.get(poiObject.get("regionId").toString())!=null)
// poiInfo[2] = regionMap.get(poiObject.get("regionId").toString())[0];
// }
//
// String[] kws = null;
// if ((poiObject.get("keyword")) != null) {
// kws = poiObject.get("keyword").toString().split(",");
// for (int j = 0; j < kws.length; j++) {
// keywordMap.put(kws[j].trim(), CAT_POI);
// if (poiMap.containsKey(kws[j]) ){
// /*
// * 两个景点的关键字一样 且不在一个region下面 则忽略
// */
// try {
// fw.write(kws[j]+" "+poiObject.get("name").toString()+" "+poiObject.get("_id").toString()+"\n");
// fw.flush();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// }
// poiMap.put(kws[j], null);
// //System.out.println("Duplicate Keyword: "+kws[j]+" "+poiObject.get("_id"));
// } else
// poiMap.put(kws[j], poiInfo);
// }
// } else {
// keywordMap.put(poiObject.get("name").toString().trim(), CAT_POI);
// poiMap.put(poiObject.get("name").toString().trim(), poiInfo);
// }
// }
// poiCur.close();
//
// //初始化keyword
// DBCollection keywordColl = db.getCollection("Keyword");
// query = new BasicDBObject();
// String categories[] = new String[] { "food", "note", "item" };
// query.put("category", new BasicDBObject("$in", categories));
// query.put("is_del", false);
// DBCursor keywordCur = keywordColl.find(query);
// while (keywordCur.hasNext()) {
// DBObject kwObject = keywordCur.next();
// String kw = kwObject.get("keyword").toString();
// if (kw == null)
// continue;
// Integer kwCat=0;
// String catergory=kwObject.get("category").toString();
// if(catergory.equals("food"))
// kwCat=CAT_FOOD;
// if(catergory.equals("note"))
// kwCat=CAT_NOTE;
// if(catergory.equals("item"))
// kwCat=CAT_ITEM;
//
//
// keywordMap.put(kwObject.get("keyword").toString().trim(),kwCat );
// kwset.add(kwObject.get("keyword").toString().trim());
// }
// keywordCur.close();
// isInitialized=true;
// }
//
// public static boolean isChinese(char c) {
// Character.UnicodeBlock ub = Character.UnicodeBlock.of(c);
// if (ub == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS
// || ub == Character.UnicodeBlock.CJK_COMPATIBILITY_IDEOGRAPHS
// || ub == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A
// || ub == Character.UnicodeBlock.GENERAL_PUNCTUATION
// || ub == Character.UnicodeBlock.CJK_SYMBOLS_AND_PUNCTUATION
// || ub == Character.UnicodeBlock.HALFWIDTH_AND_FULLWIDTH_FORMS) {
// return true;
// }
// return false;
// }
//
//
// public static void main(String args[]) {
// initialize();
// // 输出分词文件
// FileWriter fw;
// try {
// fw = new FileWriter("kw.txt");
// Iterator<String> itKey = keywordMap.keySet().iterator();
// while (itKey.hasNext()) {
// String keyword = itKey.next();
// fw.write(keyword+"\n");
// }
// fw.flush();
// fw.close();
//
// } catch (IOException e) {
// e.printStackTrace();
// }
//
// }
} | [
"chee.wu@gmail.com"
] | chee.wu@gmail.com |
7c5dd2224feed74cb5246e70c44ce46b8091dd49 | 43ea91f3ca050380e4c163129e92b771d7bf144a | /services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/CreateOrDeleteInstanceTags.java | 313b6230495b38e068e16388f459ced761557e30 | [
"Apache-2.0"
] | permissive | wxgsdwl/huaweicloud-sdk-java-v3 | 660602ca08f32dc897d3770995b496a82a1cc72d | ee001d706568fdc7b852792d2e9aefeb9d13fb1e | refs/heads/master | 2023-02-27T14:20:54.774327 | 2021-02-07T11:48:35 | 2021-02-07T11:48:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,186 | java | package com.huaweicloud.sdk.dcs.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.huaweicloud.sdk.dcs.v2.model.ResourceTag;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import java.util.Objects;
/**
* CreateOrDeleteInstanceTags
*/
public class CreateOrDeleteInstanceTags {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="action")
private String action;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="tags")
private List<ResourceTag> tags = null;
public CreateOrDeleteInstanceTags withAction(String action) {
this.action = action;
return this;
}
/**
* 操作标识:仅限于create(创建)、delete(删除)。
* @return action
*/
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public CreateOrDeleteInstanceTags withTags(List<ResourceTag> tags) {
this.tags = tags;
return this;
}
public CreateOrDeleteInstanceTags addTagsItem(ResourceTag tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
this.tags.add(tagsItem);
return this;
}
public CreateOrDeleteInstanceTags withTags(Consumer<List<ResourceTag>> tagsSetter) {
if(this.tags == null ){
this.tags = new ArrayList<>();
}
tagsSetter.accept(this.tags);
return this;
}
/**
* 标签列表。
* @return tags
*/
public List<ResourceTag> getTags() {
return tags;
}
public void setTags(List<ResourceTag> tags) {
this.tags = tags;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateOrDeleteInstanceTags createOrDeleteInstanceTags = (CreateOrDeleteInstanceTags) o;
return Objects.equals(this.action, createOrDeleteInstanceTags.action) &&
Objects.equals(this.tags, createOrDeleteInstanceTags.tags);
}
@Override
public int hashCode() {
return Objects.hash(action, tags);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateOrDeleteInstanceTags {\n");
sb.append(" action: ").append(toIndentedString(action)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
cda547bd34ccfcd49deb59d8aacbcbf5eab9516e | c75fb400a72330caf6a2f9c25b374b00a91276dc | /android/src/main/gen/com/pritesh/calldetection/R.java | 4b1a2b743b4889c840b73cea159602b2a1b113db | [
"MIT"
] | permissive | priteshrnandgaonkar/react-native-call-detection | f9d6e591be973cdf458cadfe7247fbe9188d5170 | a74ddb3cd4adeddf44bae58b09233bd219702aeb | refs/heads/master | 2022-10-15T14:26:40.155851 | 2021-12-15T15:10:46 | 2021-12-15T15:10:46 | 94,617,244 | 182 | 111 | MIT | 2023-09-13T21:09:25 | 2017-06-17T10:40:07 | Java | UTF-8 | Java | false | false | 181 | java | /*___Generated_by_IDEA___*/
package com.pritesh.calldetection;
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
public final class R {
} | [
"packmaster@riawolf.com"
] | packmaster@riawolf.com |
1f04e142db124d6bbb5f2da0dd5d74bc110efe20 | 9fb61b06aac34a630aa58bc2f2aff5df59f0fd02 | /src/com/InAndOut/Views/RoundedImageView.java | 6fa6bb5ed4db60c1c0a137d816c51ce02f15024a | [] | no_license | jhysum/InAndOut | 63315675fc6afa3efa889a9e8adb75baa00ef008 | 2658f7c02d980fa240dd626b7834fb30d48553b8 | refs/heads/master | 2021-01-23T12:15:39.169043 | 2013-11-15T19:51:24 | 2013-11-15T19:51:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,518 | java | package com.InAndOut.Views;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.ImageView;
/**
* Created by V on 10/22/13.
*/
public class RoundedImageView extends ImageView {
public RoundedImageView(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
public RoundedImageView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public RoundedImageView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
@Override
protected void onDraw(Canvas canvas) {
Drawable drawable = getDrawable();
if (drawable == null) {
return;
}
if (getWidth() == 0 || getHeight() == 0) {
return;
}
Bitmap b = ((BitmapDrawable) drawable).getBitmap();
Bitmap bitmap = b.copy(Bitmap.Config.ARGB_8888, true);
int w = getWidth(), h = getHeight();
Bitmap roundBitmap = getCroppedBitmap(bitmap, w);
canvas.drawBitmap(roundBitmap, 0, 0, null);
}
public static Bitmap getCroppedBitmap(Bitmap bmp, int radius) {
Bitmap sbmp;
if (bmp.getWidth() != radius || bmp.getHeight() != radius)
sbmp = Bitmap.createScaledBitmap(bmp, radius, radius, false);
else
sbmp = bmp;
Bitmap output = Bitmap.createBitmap(sbmp.getWidth(),
sbmp.getHeight(), Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(output);
final int color = 0xffa19774;
final Paint paint = new Paint();
final Rect rect = new Rect(0, 0, sbmp.getWidth(), sbmp.getHeight());
paint.setAntiAlias(true);
paint.setFilterBitmap(true);
paint.setDither(true);
canvas.drawARGB(0, 0, 0, 0);
paint.setColor(Color.parseColor("#BAB399"));
canvas.drawCircle(sbmp.getWidth() / 2 + 0.7f, sbmp.getHeight() / 2 + 0.7f,
sbmp.getWidth() / 2 + 0.1f, paint);
paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));
canvas.drawBitmap(sbmp, rect, rect, paint);
return output;
}
}
| [
"victorvuc@gmail.com"
] | victorvuc@gmail.com |
5dc1b122773ea5ac1b894fe6e4ece4b25a0a599a | edd10677daa44de2daf8876931457505c356d01e | /application/Application/app/src/main/java/com/dms/beinone/application/appcontent/AppcontentArticleActivity.java | 898ec8cb7d311d5c6c97a8408bd8cfc91cbf27da | [
"MIT"
] | permissive | DSM-DMS/DMS | c6e9d9cd95cec66b17c0a578f66a4181351ace98 | 73a5d8fc2310bca90169414abf50f541ca0724c7 | refs/heads/master | 2021-09-01T02:56:36.561572 | 2017-12-23T09:39:25 | 2017-12-23T09:39:25 | 96,187,872 | 6 | 0 | MIT | 2022-05-23T00:29:57 | 2017-07-04T07:19:53 | Java | UTF-8 | Java | false | false | 7,456 | java | package com.dms.beinone.application.appcontent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import android.view.View;
import android.webkit.WebView;
import android.widget.TextView;
import android.widget.Toast;
import com.dms.beinone.application.R;
import com.dms.beinone.application.utils.JSONParser;
import com.dms.boxfox.networking.HttpBox;
import com.dms.boxfox.networking.HttpBoxCallback;
import com.dms.boxfox.networking.datamodel.Response;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import java.util.List;
/**
* Created by BeINone on 2017-01-26.
*/
public class AppcontentArticleActivity extends AppCompatActivity {
private FloatingActionButton mFAB;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_appcontent_article);
// display back button on action bar
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
Appcontent appcontent = getIntent().getParcelableExtra(getString(R.string.EXTRA_APPCONTENT));
try {
loadAppcontent(appcontent.getCategory(), appcontent.getNumber());
} catch (IOException e) {
System.out.println("IOException in AppcontentArticleActivity: GET /post/school/appcontent");
e.printStackTrace();
}
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == android.R.id.home) {
finish();
}
return false;
}
@Override
protected void onDestroy() {
super.onDestroy();
mFAB.setVisibility(View.INVISIBLE);
}
/**
* sets text of article
*
* @param appcontent Appcontent object that contains information of article
*/
private void bind(final Appcontent appcontent) {
TextView titleTV = (TextView) findViewById(R.id.tv_appcontent_article_title);
TextView writerTV = (TextView) findViewById(R.id.tv_appcontent_article_writer);
TextView dateTV = (TextView) findViewById(R.id.tv_appcontent_article_date);
WebView contentWV = (WebView) findViewById(R.id.wv_appcontent_article_content);
titleTV.setText(appcontent.getTitle());
writerTV.setText(appcontent.getWriter());
dateTV.setText(appcontent.getDate());
contentWV.loadData(appcontent.getContent(), "text/html; charset=UTF-8", null);
mFAB = (FloatingActionButton) findViewById(R.id.fab_appcontent_article);
final List<Attachment> attachmentList = appcontent.getAttachmentList();
if (attachmentList != null && attachmentList.size() != 0) {
mFAB.setImageResource(R.drawable.ic_file_download_white_24dp);
mFAB.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
DownloadAttachmentDialogFragment
.newInstance(AppcontentArticleActivity.this, attachmentList)
.show(getSupportFragmentManager(), null);
}
});
mFAB.setVisibility(View.VISIBLE);
}
}
private void loadAppcontent(final int category, int number) throws IOException {
try {
JSONObject params = new JSONObject();
params.put("no", number);
String path = null;
switch (category) {
case Appcontent.NOTICE:
path = "/post/school/notice";
break;
case Appcontent.NEWSLETTER:
path = "/post/school/newsletter";
break;
case Appcontent.COMPETITION:
path = "/post/school/competition";
break;
default:
break;
}
HttpBox.get(AppcontentArticleActivity.this, path)
.putQueryString(params)
.push(new HttpBoxCallback() {
@Override
public void done(Response response) {
int errorMsgResId = 0;
int emptyMsgResId = 0;
switch (category) {
case Appcontent.NOTICE:
errorMsgResId = R.string.appcontent_notice_error;
emptyMsgResId = R.string.appcontent_notice_empty;
break;
case Appcontent.NEWSLETTER:
errorMsgResId = R.string.appcontent_newsletter_error;
emptyMsgResId = R.string.appcontent_newsletter_empty;
break;
case Appcontent.COMPETITION:
errorMsgResId = R.string.appcontent_competition_error;
emptyMsgResId = R.string.appcontent_competition_empty;
break;
default:
break;
}
switch (response.getCode()) {
case HttpBox.HTTP_OK:
try {
Appcontent appcontent = JSONParser.parseAppcontentJSON(response.getJsonObject());
bind(appcontent);
} catch (JSONException e) {
System.out.println("JSONException in AppcontentArticleActivity: GET /post/school/appcontent");
e.printStackTrace();
}
break;
case HttpBox.HTTP_NO_CONTENT:
Toast.makeText(AppcontentArticleActivity.this, emptyMsgResId, Toast.LENGTH_SHORT).show();
break;
case HttpBox.HTTP_BAD_REQUEST:
Toast.makeText(AppcontentArticleActivity.this, R.string.http_bad_request, Toast.LENGTH_SHORT).show();
break;
case HttpBox.HTTP_INTERNAL_SERVER_ERROR:
Toast.makeText(AppcontentArticleActivity.this, errorMsgResId, Toast.LENGTH_SHORT).show();
break;
default:
break;
}
}
@Override
public void err(Exception e) {
System.out.println("Error in AppcontentArticleActivity: GET /post/school/appcontent");
e.printStackTrace();
}
});
} catch (JSONException e) {
System.out.println("JSONException AppcontentArticleActivity: GET /post/school/appcontent");
e.printStackTrace();
}
}
}
| [
"sbeinone@gmail.com"
] | sbeinone@gmail.com |
853507635a76ef4f33cc1d9799a1c924410784c1 | 0c2288fe1b11e0fe7868b714bc4f077f6edf7ffa | /ImagePanel.java | 3865fec2c987534615deebc4e8bbfa69872232d9 | [] | no_license | Prep-IntroToProgramming/guis-test-classes-DComair | acf42ff1c9e9ff5a36eec13b79b2bcd38c7ee088 | 05859d017e8352c947d7beac96f47baf136494e4 | refs/heads/master | 2020-04-21T13:36:04.901054 | 2019-02-21T17:26:12 | 2019-02-21T17:26:12 | 169,604,696 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 380 | java | import java.awt.*;
import javax.swing.*;
public class ImagePanel extends JPanel {
ImageIcon icon = new ImageIcon("Prep.jpg");
@Override
public void paintComponent(Graphics g) {
Image image = icon.getImage();
g.drawImage(image, 3, 4, this);
/*
g.setColor(Color.blue);
g.fillRect(20, 50,100,100);
*/
}
}
| [
"19ComerD@flintridgeprep.org"
] | 19ComerD@flintridgeprep.org |
a2657ad596e7e389d60880cb2ca159e2e7586da7 | 92ba8dd3cfb00defcd1dd7e44604c7e8560ec1b5 | /distribute-scheduler-webapp/src/main/java/com/yl/distribute/scheduler/service/impl/UserServiceImpl.java | 4b5b41a612a8f8f93980cd4d3dd0609d687c4527 | [] | no_license | ylpu/distribute-scheduler | 39eb063051ee402dee6864199200e975775bcdc0 | c171bff956b23f9418565e5246c0fdc5fccbe825 | refs/heads/master | 2022-11-06T16:18:30.808335 | 2019-08-14T06:16:41 | 2019-08-14T06:16:41 | 141,548,279 | 15 | 3 | null | 2022-11-01T23:34:11 | 2018-07-19T08:27:16 | JavaScript | UTF-8 | Java | false | false | 2,654 | java | package com.yl.distribute.scheduler.service.impl;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.yl.distribute.scheduler.dao.UserMapper;
import com.yl.distribute.scheduler.entity.User;
import com.yl.distribute.scheduler.service.UserService;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import com.yl.distribute.scheduler.utils.SecurityContextUtils;
import static java.util.stream.Collectors.toSet;
@Service
@Transactional
public class UserServiceImpl implements UserService {
private UserMapper userDao;
private PasswordEncoder passwordEncoder;
@Override
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
return Optional
.of(userDao.loadUserByUsername(username))
.get();
}
@Override
public UserDetails getCurrentUser(){
return SecurityContextUtils.getCurrentUser();
}
@Override
public Set<User> findMoreUser(@Nonnull String condition){
UserDetails onlineUser = getCurrentUser();
return doFindMoreUser( "%" + condition + "%").stream()
.filter(user -> !user.getUsername().equals(onlineUser))
.collect(toSet());
}
private List<User> doFindMoreUser(String condition){
return userDao.findMoreUser(condition);
}
@Override
@Transactional(readOnly = false)
public void addUser(User user){
user.setPassword(
passwordEncoder.encode(user.getPassword())
);
if(userDao.loadUserByUsername(user.getUsername()) != null){
throw new RuntimeException("用户名重复");
}
userDao.addUser(user);
}
@Override
public User getUserInfo(@Nullable String username){
if(StringUtils.isEmpty(username)){
username = getCurrentUser().getUsername();
}
return userDao.loadUserByUsername(username);
}
@Autowired
public void setUserDao(UserMapper userDao){
this.userDao = userDao;
}
@Autowired
public void setPasswordEncoder(PasswordEncoder passwordEncoder){
this.passwordEncoder = passwordEncoder;
}
}
| [
"puyulu@ppdai.com"
] | puyulu@ppdai.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.